Conquer Club

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.

Postby Tisha on Sun Jan 06, 2008 12:25 pm

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
Major Tisha
 
Posts: 1065
Joined: Sat Dec 23, 2006 12:41 am

Postby yeti_c on Sun Jan 06, 2008 12:40 pm

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
Lieutenant yeti_c
 
Posts: 9624
Joined: Thu Jan 04, 2007 9:02 am

Postby yeti_c on Sun Jan 06, 2008 12:46 pm

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
Lieutenant yeti_c
 
Posts: 9624
Joined: Thu Jan 04, 2007 9:02 am

Postby Ishiro on Sun Jan 06, 2008 1:44 pm

Yeah... I spend too much time doing C# where null values mess everything up.
Image
User avatar
Corporal 1st Class Ishiro
 
Posts: 324
Joined: Mon Jul 17, 2006 5:53 pm
Location: Under the Rainbow

Postby yeti_c on Mon Jan 07, 2008 9:57 am

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
Lieutenant yeti_c
 
Posts: 9624
Joined: Thu Jan 04, 2007 9:02 am

progress bar for big maps

Postby Angus Khan on Mon Jan 07, 2008 3:51 pm

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
Sergeant 1st Class Angus Khan
 
Posts: 147
Joined: Fri Jul 06, 2007 2:14 pm
Location: screwed up the buttville by BS CC Dice!!

Postby yeti_c on Mon Jan 07, 2008 3:54 pm

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
Lieutenant yeti_c
 
Posts: 9624
Joined: Thu Jan 04, 2007 9:02 am

Postby IBPhunkadelik on Mon Jan 07, 2008 4:25 pm

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
Private IBPhunkadelik
 
Posts: 2
Joined: Sun Aug 26, 2007 11:04 am
Location: Florida

Postby IBPhunkadelik on Mon Jan 07, 2008 4:26 pm

*It as in my installed AJAX...
User avatar
Private IBPhunkadelik
 
Posts: 2
Joined: Sun Aug 26, 2007 11:04 am
Location: Florida

Postby yeti_c on Mon Jan 07, 2008 4:27 pm

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
Lieutenant yeti_c
 
Posts: 9624
Joined: Thu Jan 04, 2007 9:02 am

Postby Frop on Mon Jan 07, 2008 4:30 pm

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
Captain Frop
 
Posts: 1201
Joined: Thu May 10, 2007 3:02 pm

Postby yeti_c on Mon Jan 07, 2008 4:32 pm

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
Lieutenant yeti_c
 
Posts: 9624
Joined: Thu Jan 04, 2007 9:02 am

Postby clapper011 on Mon Jan 07, 2008 4:35 pm

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
Corporal 1st Class clapper011
 
Posts: 7208
Joined: Mon Feb 20, 2006 10:25 am
Location: Ontario, Canada

Postby Frop on Mon Jan 07, 2008 4:36 pm

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
Captain Frop
 
Posts: 1201
Joined: Thu May 10, 2007 3:02 pm

Postby yeti_c on Mon Jan 07, 2008 4:39 pm

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
Lieutenant yeti_c
 
Posts: 9624
Joined: Thu Jan 04, 2007 9:02 am

Postby clapper011 on Mon Jan 07, 2008 4:42 pm

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
Corporal 1st Class clapper011
 
Posts: 7208
Joined: Mon Feb 20, 2006 10:25 am
Location: Ontario, Canada

Postby yeti_c on Mon Jan 07, 2008 4:45 pm

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
Lieutenant yeti_c
 
Posts: 9624
Joined: Thu Jan 04, 2007 9:02 am

Postby the_fatty on Mon Jan 07, 2008 5:03 pm

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
Private the_fatty
 
Posts: 1063
Joined: Fri Aug 17, 2007 8:24 am
Location: On my iSuggs (Oh yea!)

Postby the_fatty on Mon Jan 07, 2008 5:43 pm

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
Private the_fatty
 
Posts: 1063
Joined: Fri Aug 17, 2007 8:24 am
Location: On my iSuggs (Oh yea!)

Postby hecter on Mon Jan 07, 2008 5:46 pm

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
Private 1st Class hecter
 
Posts: 14632
Joined: Tue Jan 09, 2007 6:27 pm
Location: Tying somebody up on the third floor

Postby the_fatty on Mon Jan 07, 2008 5:48 pm

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
User avatar
Private the_fatty
 
Posts: 1063
Joined: Fri Aug 17, 2007 8:24 am
Location: On my iSuggs (Oh yea!)

Postby State409c on Tue Jan 08, 2008 10:46 am

oops, nevermind, I figured it out
Major State409c
 
Posts: 88
Joined: Tue Mar 27, 2007 8:30 pm

Postby yeti_c on Tue Jan 08, 2008 5:08 pm

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
Lieutenant yeti_c
 
Posts: 9624
Joined: Thu Jan 04, 2007 9:02 am

Postby cicero on Tue Jan 08, 2008 5:19 pm

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
Sergeant 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

Postby yeti_c on Tue Jan 08, 2008 5:23 pm

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
User avatar
Lieutenant yeti_c
 
Posts: 9624
Joined: Thu Jan 04, 2007 9:02 am

PreviousNext

Return to Tool Archives

Who is online

Users browsing this forum: No registered users