AJAX BOB 4.7.1 Development/Discussion (don't post bugs here)

Archival storage to keep things organized and uncluttered. Can't find what you need? Search for old topics here.

Moderator: Tech Team

Forum rules
Please read the Community Guidelines before posting.
Locked
User avatar
Tisha
Posts: 1065
Joined: Sat Dec 23, 2006 12:41 am

Post by Tisha »

yeti_c wrote:
Ishiro wrote:yeti,
In games you are not in, BOB is broke. Its the floating action form. Replace:

Code: Select all

    if (OPTIONS["floatActions"] == "On")
    {
   var actionForm = document.getElementById('action-form')
   actionForm.style.position='fixed'
   actionForm.style.bottom=0
   actionForm.style.zIndex=1
    }


With:

Code: Select all

    if (OPTIONS["floatActions"] == "On")
    {
   var actionForm = document.getElementById('action-form')
   if (actionForm != null)
   {
   actionForm.style.position='fixed'
   actionForm.style.bottom=0
   actionForm.style.zIndex=1
   }
    }


In games you are not in (just spectating), there is no action form.


Ah I see - of course - In games you are in - but not playing a turn - there is still an action form - it says "Click here to goto next game"...

Cheers...

Will fix.

C.


yes, that.. :D
User avatar
yeti_c
Posts: 9624
Joined: Thu Jan 04, 2007 9:02 am
Gender: Male

Post by yeti_c »

VERSION : 3.4.5

FIXED :
ActionForm Floater no longer breaks games you are not in.
Show menu div is now dynamically resized to the height of the webpage... not the height of the screen... (i.e. it now goes all the way to the bottom - and doesn't stop just about at Map Inspect)

C.
Image
Highest score : 2297
User avatar
yeti_c
Posts: 9624
Joined: Thu Jan 04, 2007 9:02 am
Gender: Male

Post by yeti_c »

Ishiro wrote:yeti,
In games you are not in, BOB is broke. Its the floating action form. Replace:

Code: Select all

    if (OPTIONS["floatActions"] == "On")
    {
   var actionForm = document.getElementById('action-form')
   actionForm.style.position='fixed'
   actionForm.style.bottom=0
   actionForm.style.zIndex=1
    }


With:

Code: Select all

    if (OPTIONS["floatActions"] == "On")
    {
   var actionForm = document.getElementById('action-form')
   if (actionForm != null)
   {
   actionForm.style.position='fixed'
   actionForm.style.bottom=0
   actionForm.style.zIndex=1
   }
    }


In games you are not in (just spectating), there is no action form.


BTW - here's a js tip for you...

For determining whether or not a var is null or undefined... you can simply do...

Code: Select all

  var dave;
  if (dave)
  {
     //do stuff with dave
  }
  else
  {
     //assign dave
  }


C.
Image
Highest score : 2297
User avatar
Ishiro
Posts: 324
Joined: Mon Jul 17, 2006 5:53 pm
Gender: Male
Location: Under the Rainbow
Contact:

Post by Ishiro »

Yeah... I spend too much time doing C# where null values mess everything up.
Image
User avatar
yeti_c
Posts: 9624
Joined: Thu Jan 04, 2007 9:02 am
Gender: Male

Post by yeti_c »

The more eagle eyed of you will notice that I've added "Progress Bar" to the TODO list...

I thought that a progress bar for BOB would be a good idea so that people know how the script is progressing - especially for Conquerman and AOM...

I'm currently looking for ideas on how to display it though - thoughts anyone?

C.
Image
Highest score : 2297
User avatar
Angus Khan
Posts: 147
Joined: Fri Jul 06, 2007 2:14 pm
Gender: Male
Location: screwed up the buttville by BS CC Dice!!

progress bar for big maps

Post by Angus Khan »

yeti_c wrote:The more eagle eyed of you will notice that I've added "Progress Bar" to the TODO list...

I thought that a progress bar for BOB would be a good idea so that people know how the script is progressing - especially for Conquerman and AOM...

I'm currently looking for ideas on how to display it though - thoughts anyone?

C.


I think the progress bar would be less necessary if there were some logic to check for instance whether stats were on before BOB went thru all the processing steps on a Conquerman map. We've discussed this before, and it looks like BOB goes thru the work whether or not stats is enabled. I don't mind BOB spending the time at first to calculate things, but then I'd like to turn stats off, because the only thing I /really/ need on a conquerman map is the map inspect so I can decide if I really can eliminate someone and take their cards. So far of course, that has been a dismal failure, map inspect or not, because the Battle Operations Briefing neglects to inform me that I'm going to lose 18v3 YET AGAIN!! :cry: :roll:


On another topic, since Yeti has done such a GREAT job coding all this up, what we should do is all agree to play against Yeti and just throw the games. That way, he'll be a captain in no time, a rank suitable to his coding achievements. ;)
User avatar
yeti_c
Posts: 9624
Joined: Thu Jan 04, 2007 9:02 am
Gender: Male

Post by yeti_c »

Angus - you make a valid point here - I could do this quite easily with a little bit of work...

I'll have a think about it - and see how feasible it is - there may be bigger issues that I've not thought of at the moment...

The main issue is - if I don't calculate the stats always - whenever you turn the stats on - I would have to update the stats... but that might not be too much an issue either... Hmmm.

C.

PS - any free points welcome :wink: :wink:
Image
Highest score : 2297
User avatar
IBPhunkadelik
Posts: 2
Joined: Sun Aug 26, 2007 11:04 am
Location: Florida

Post by IBPhunkadelik »

I couldn't find a solution to this in the first post detailing updates, but on an 8 player doubles game, the last four players are all grouped under the same team, showing that the script hasn't been updated to handle 8 player teams yet. Or I could just be lame at keeping it updated. Not sure which yet...
User avatar
IBPhunkadelik
Posts: 2
Joined: Sun Aug 26, 2007 11:04 am
Location: Florida

Post by IBPhunkadelik »

*It as in my installed AJAX...
User avatar
yeti_c
Posts: 9624
Joined: Thu Jan 04, 2007 9:02 am
Gender: Male

Post by yeti_c »

IBPhunkadelik wrote:Or I could just be lame at keeping it updated.


This one's been fixed a while back - get the latest version - there are many more new features that you will love...

C.
Image
Highest score : 2297
User avatar
Frop
Posts: 1201
Joined: Thu May 10, 2007 3:02 pm

Post by Frop »

Some of the new features are just luxury for me, but still pretty cool, thanks. :)

Remember that army alignment bug (-1 pixels left to align the army overlay) some people had? Check out what happens when I reset Map Centering Left to 0 pixels and use the Hide Menu feature (top picture is with menu, overlay is without). As you can see the alignment is suddenly perfect as soon as the menu disappears. :P

Image
User avatar
yeti_c
Posts: 9624
Joined: Thu Jan 04, 2007 9:02 am
Gender: Male

Post by yeti_c »

Frop wrote:Some of the new features are just luxury for me, but still pretty cool, thanks. :)

Remember that army alignment bug (-1 pixels left to align the army overlay) some people had? Check out what happens when I reset Map Centering Left to 0 pixels and use the Hide Menu feature (top picture is with menu, overlay is without). As you can see the alignment is suddenly perfect as soon as the menu disappears. :P

Image


Yeah WM mentioned that happened - I'm still ensure as to why - I'm sure it must be something from the right pushing the map in a touch...

C.
Image
Highest score : 2297
User avatar
clapper011
Posts: 7208
Joined: Mon Feb 20, 2006 10:25 am
Gender: Female
Location: Ontario, Canada

Post by clapper011 »

not sure if anyone else is still having trouble, but mine doesnt work in that conquer man map.. it freezes and tells me a script error with page. to either stop script or continue... :?
User avatar
Frop
Posts: 1201
Joined: Thu May 10, 2007 3:02 pm

Post by Frop »

Yep, as you can see in my screenshot it's actually the map that aligns with the overlay - when the menu is hidden the white area between the border and the map is one pixel wider. :D
User avatar
yeti_c
Posts: 9624
Joined: Thu Jan 04, 2007 9:02 am
Gender: Male

Post by yeti_c »

clapper011 wrote:not sure if anyone else is still having trouble, but mine doesnt work in that conquer man map.. it freezes and tells me a script error with page. to either stop script or continue... :?


Hi Clapper - if you keep pressing continue - it will complete OK.

When the new XML features are in - the map will speed up a LOT!!! - ETA - hopefully ASAP - but end of Jan probably.

C.
Image
Highest score : 2297
User avatar
clapper011
Posts: 7208
Joined: Mon Feb 20, 2006 10:25 am
Gender: Female
Location: Ontario, Canada

Post by clapper011 »

ok so just keep hitting ok then? gotcha..but i think i may lay off of that map for a bit then instead
User avatar
yeti_c
Posts: 9624
Joined: Thu Jan 04, 2007 9:02 am
Gender: Male

Post by yeti_c »

clapper011 wrote:ok so just keep hitting ok then? gotcha..but i think i may lay off of that map for a bit then instead


The map will speed up if you have "Text Map" to Off and "Map Inspect" to Off too...

But I agree - it's still slow...

C.
Image
Highest score : 2297
User avatar
the_fatty
Posts: 1063
Joined: Fri Aug 17, 2007 8:24 am
Location: On my iSuggs (Oh yea!)
Contact:

Post by the_fatty »

i just install BOB and it works great!!! thank u for making it. :D :D :D
wicked wrote:agreed, I'm scum. vote wicked.
Dariune wrote:Who said thaf > if i dont (f*ck SAKE!!!) go soon shi gfonna get in troubl with Jen. Teehee

I not drunk im tipsy and my key board is shite thats akl
User avatar
the_fatty
Posts: 1063
Joined: Fri Aug 17, 2007 8:24 am
Location: On my iSuggs (Oh yea!)
Contact:

Post by the_fatty »

sry if u answered this before, but wat is redemption value?
wicked wrote:agreed, I'm scum. vote wicked.
Dariune wrote:Who said thaf > if i dont (f*ck SAKE!!!) go soon shi gfonna get in troubl with Jen. Teehee

I not drunk im tipsy and my key board is shite thats akl
User avatar
hecter
Posts: 14632
Joined: Tue Jan 09, 2007 6:27 pm
Gender: Female
Location: Tying somebody up on the third floor
Contact:

Post by hecter »

the_fatty wrote:sry if u answered this before, but wat is redemption value?

How much the next set is worth...
In heaven... Everything is fine, in heaven... Everything is fine, in heaven... Everything is fine... You got your things, and I've got mine.
Image
User avatar
the_fatty
Posts: 1063
Joined: Fri Aug 17, 2007 8:24 am
Location: On my iSuggs (Oh yea!)
Contact:

Post by the_fatty »

hecter wrote:
the_fatty wrote:sry if u answered this before, but wat is redemption value?

How much the next set is worth...


oh :oops:

thanks
wicked wrote:agreed, I'm scum. vote wicked.
Dariune wrote:Who said thaf > if i dont (f*ck SAKE!!!) go soon shi gfonna get in troubl with Jen. Teehee

I not drunk im tipsy and my key board is shite thats akl
State409c
Posts: 88
Joined: Tue Mar 27, 2007 8:30 pm

Post by State409c »

oops, nevermind, I figured it out
User avatar
yeti_c
Posts: 9624
Joined: Thu Jan 04, 2007 9:02 am
Gender: Male

Post by yeti_c »

VERSION : 3.5.1

FIXED :
Cicero's Updated Help text included - (Cicero says this is WorkInProgress)

Actions floater now includes the Dice Rolls at the top.

New Colours into the script

C.

PS There is a bug in the unfloat code at the moment - the dice won't go back into the correct place - and then they will float in the wrong place later - so best to leave it either on or off!!
Image
Highest score : 2297
User avatar
cicero
Posts: 1358
Joined: Wed Mar 07, 2007 1:51 pm
Location: with the infected neutrals ... handing out maps to help them find their way to CC

Post by cicero »

A bug in 3.5.1. Was also present in 3.4.5.

Check this game http://www.conquerclub.com/game.php?game=1524353

Choose standard stats table and check deferred armies for arbz ... it shows 4.
However arbz has not just missed a turn.


Cicero
FREE M-E-Mbership and simple rules. Conquer Club - it's not complicated.

random me statistic @ 13 December 2008 - 1336 posts : 232nd most public posts (not counting Tower of Babble) of all time.
User avatar
yeti_c
Posts: 9624
Joined: Thu Jan 04, 2007 9:02 am
Gender: Male

Post by yeti_c »

cicero wrote:A bug in 3.5.1. Was also present in 3.4.5.

Check this game http://www.conquerclub.com/game.php?game=1524353

Choose standard stats table and check deferred armies for arbz ... it shows 4.
However arbz has not just missed a turn.


Cicero


OK - I'll look into fixing that Thursday!

C.
Image
Highest score : 2297
Locked

Return to “Tool Archives”