Coding AJAX-compatible GM scripts
Moderator: Tech Team
Forum rules
Please read the Community Guidelines before posting.
Please read the Community Guidelines before posting.
OK - I've just uploaded the latest version...
FIXED :
Speed up Logging - I've reimplemented the partial log processing and this should speed up the interim refreshes
Map Fade = if Map Fade = 0 (old BOB default to 0 = no map) then set to 1.
TODO :
Map Inspect.
Bombardments <- Text Map.
Confirm Buttons are a bit screwy!! <- I know why now too!!
Map Inspect and Card Redemption Div in the wrong place.
Affects Finished games and games you're not in - possibly no cards games too.
Clock Format doesn't work <- does anyone care about this one?
C.
FIXED :
Speed up Logging - I've reimplemented the partial log processing and this should speed up the interim refreshes
Map Fade = if Map Fade = 0 (old BOB default to 0 = no map) then set to 1.
TODO :
Map Inspect.
Bombardments <- Text Map.
Confirm Buttons are a bit screwy!! <- I know why now too!!
Map Inspect and Card Redemption Div in the wrong place.
Affects Finished games and games you're not in - possibly no cards games too.
Clock Format doesn't work <- does anyone care about this one?
C.

Highest score : 2297
OK - I've just uploaded the latest version...
FIXED :
Map Inspect and Card Redemption Div in the wrong place.
Affects Finished games and games you're not in - possibly no cards games too.
Preperation for Map Inspect.
TODO :
Map Inspect.
Bombardments <- Text Map.
Confirm Buttons are a bit screwy!! <- I know why now too!!
Clock Format doesn't work <- does anyone care about this one?
C.
FIXED :
Map Inspect and Card Redemption Div in the wrong place.
Affects Finished games and games you're not in - possibly no cards games too.
Preperation for Map Inspect.
TODO :
Map Inspect.
Bombardments <- Text Map.
Confirm Buttons are a bit screwy!! <- I know why now too!!
Clock Format doesn't work <- does anyone care about this one?
C.

Highest score : 2297
- rebelman
- Posts: 2968
- Joined: Thu Aug 02, 2007 5:24 pm
- Gender: Male
- Location: People's Republic of Cork
- Contact:
i suspect the answer isyeti_c wrote: Clock Format doesn't work <- does anyone care about this one?
C.
NO
Don't now why people on here don't like being cooks, remember under siege: A former SEAL, now cook, is the only person who can stop a gang of terrorists when they sieze control of a US Navy battleship.
OK - I've just uploaded the latest version...
FIXED :
Bombardments <- Text Map.
On the Large Text Map these are shown by a instead of a for normal attacks.
TODO :
Map Inspect.
Confirm Buttons are a bit screwy!! <- I know why now too!!
Clock Format doesn't work <- does anyone care about this one?
C.
FIXED :
Bombardments <- Text Map.
On the Large Text Map these are shown by a
Code: Select all
__>Code: Select all
==>TODO :
Map Inspect.
Confirm Buttons are a bit screwy!! <- I know why now too!!
Clock Format doesn't work <- does anyone care about this one?
C.

Highest score : 2297
OK - I've just uploaded the latest version...
FIXED :
Log Processing -> I found a bug where any log additions weren't getting appending to the log processing function - and thus weren't getting processed...
TODO :
Map Inspect.
Confirm Buttons are a bit screwy!! <- I know why now too!!
Clock Format doesn't work <- does anyone care about this one?
C.
FIXED :
Log Processing -> I found a bug where any log additions weren't getting appending to the log processing function - and thus weren't getting processed...
TODO :
Map Inspect.
Confirm Buttons are a bit screwy!! <- I know why now too!!
Clock Format doesn't work <- does anyone care about this one?
C.

Highest score : 2297
- jennifermarie
- Posts: 1316
- Joined: Wed Mar 07, 2007 8:07 pm
- Gender: Female
- Location: Indiana, USA
- Boilers2000
- Posts: 5
- Joined: Tue Jan 16, 2007 4:45 pm
- Contact:
C.,yeti_c wrote:Righto...
I'm off next week... so will return the following Monday...
I hope you enjoy BOB for now...
Please feel free to add to this thread in my absence... anyone who wants to add code - feel free too... (Focus on the TODO areas!)
C.
Thank you for all of your hard work and effort. It is greatly appreciated by me and countless other Conquer Clubbers!
--SGS
- Ishiro
- Posts: 324
- Joined: Mon Jul 17, 2006 5:53 pm
- Gender: Male
- Location: Under the Rainbow
- Contact:
If you haven't done it yet, here is what I did for my rebuild of BOB that I have not finished.yeti_c wrote: TODO :
Confirm Buttons are a bit screwy!! <- I know why now too!!
C.
Code: Select all
//Override sendRequest
var newsendRequest = unsafeWindow.sendRequest;
unsafeWindow.sendRequest = function(command) {
/* --- Confirmation Popups --- */
if (((command == 'End Attacks' || command == 'End Fortification' || (command == 'Fortify' && !(dashboard.innerHTML.indexOf("Unlimited") > -1))) && myOptions['confirmEnds']) || (command == 'Auto-Attack' && myOptions['confirmAutoAttack']) || (command == 'Deploy' && myOptions['confirmDeploy']))
{
if (confirm("Are you sure?"))
{
return newsendRequest(command);
}
else {
return false;
}
}
else {
return newsendRequest(command);
}
}- Aerial Attack
- Posts: 1132
- Joined: Mon Jun 04, 2007 7:59 pm
- Location: Generation One: The Clan
I'm not sure if this is a BOB issue or just a standard AJAX issue.
I was deploying my armies - I had 9 to deploy. I selected 1 army and then selected my target location. Just before I clicked deploy (perhaps a few milliseconds), the AJAX refresh occurred. It saved my location selection, but it reset the army count to 9 (the default of max). I realize that I had just changed my army count option - so maybe it wasn't saved in the array or what not (but, then why would my target location have carried forward?).
I know I've run into the AJAX refresh thing before - but I'm fairly certain my selections were always preserved. I could be wrong. I don't think the mis-deploy cost me the game, but it definitely didn't help my cause.
I was deploying my armies - I had 9 to deploy. I selected 1 army and then selected my target location. Just before I clicked deploy (perhaps a few milliseconds), the AJAX refresh occurred. It saved my location selection, but it reset the army count to 9 (the default of max). I realize that I had just changed my army count option - so maybe it wasn't saved in the array or what not (but, then why would my target location have carried forward?).
I know I've run into the AJAX refresh thing before - but I'm fairly certain my selections were always preserved. I could be wrong. I don't think the mis-deploy cost me the game, but it definitely didn't help my cause.
Last edited by Aerial Attack on Tue Oct 23, 2007 12:30 pm, edited 1 time in total.
- stringybeany
- Posts: 551
- Joined: Mon May 28, 2007 10:28 am
- Gender: Male
Did you get your issues resolved yet? If not, go here.kenbeuken wrote:Con someone please help me with this mapfade issue. I clicked the box on uninstall of old BOB and did everything I read about, but i cannot get a clear picture.
Check out this game
http://www.conquerclub.com/game.php?game=817664
The blue player is in europe and the green player is in NA, but I cannot see how many armies are on each country no matter what I do with the fade option.
Please help.
Stay out of the registry but do clean all your user files. I don't claim to be a firefox wizard but I do know I had similar problems and cleaning the data files did seem to resolve the issue. Steps one through three should be all you need.
Again, I strongly recommend you stay out of your registry files unless you are fully prepared to deal with major "accidents".
Ajax bob
I really appreciate all the work that you guys do with this stuff - its totally beyond a luddite like me. I have tried the Ajax Bob however i prefer (at this stage) the old pre-ajax bob with map inspect etc. i would like to go back to it for the moment however i dont know what to do - can anyone advise how this would be done. Cheers 
'You don't need a weatherman to know which way the wind blows' Robert Zimmerman
WhoopsIshiro wrote:13 pages of thread during which Map Inspect not working is mentioned probably no less than 15 times...RobinJ wrote:Does the map inspect work because mine doesn't. Do I need to reinstall or what?
Highest Score: 2437nmhunate wrote:Speak English... It is the language that God wrote the bible in.
Highest Place: 84
Re: Ajax bob
1. It is important to ensure that Map opacity is set to 0-30% before you change BOB's! (maps may white-out prior to change.)Begbie wrote:I really appreciate all the work that you guys do with this stuff - its totally beyond a luddite like me. I have tried the Ajax Bob however i prefer (at this stage) the old pre-ajax bob with map inspect etc. i would like to go back to it for the moment however i dont know what to do - can anyone advise how this would be done. Cheers
otherwise you will not be able to see the maps which revert to Map fade.
(Map fade and Map Opacity settings move in opposite directions.)
I think old Bob will supersede the new Ajax compatible BOB but for a fresh start:
2. Go to Tools on your menu bar at the top of Mozilla.
Scroll down to Greeasemonkey
select Manage User Scripts
Click on Conquer Club Bob
and Uninstall
3. You will then need to download the original GM script.
http://greasemonkey.mozdev.org/
4. and then the Bug fix version of BOB.
http://www.trentolson.ca/downloads/conq ... ob.user.js
5. Last step is to turn off Ajax in My Settings or the script will not work.
That should now work fine! Bobs you uncle and Fanny's your father's sister!
Love what you've got so far, I have a few suggestions:
1. Map Opacity is fading the army count as well as the map... it should only fade the map. The point of this helpful feature is to make the army count more readable. If this is just a bug for me, then never mind.
2. Please rename the script. This will help us test it for you, but still be able to use the old BoB 1.2.
3. Obviously not priority, but the comments in the script are in need of serious updating. Perhaps you should scrap the comments, start with what you have, and give credit to the original creator.
4. Create a new thread for AJAX BOB and have the version number link (in the settings pane) point to this thread, instead of the old BoB 1.2 thread.
1. Map Opacity is fading the army count as well as the map... it should only fade the map. The point of this helpful feature is to make the army count more readable. If this is just a bug for me, then never mind.
2. Please rename the script. This will help us test it for you, but still be able to use the old BoB 1.2.
3. Obviously not priority, but the comments in the script are in need of serious updating. Perhaps you should scrap the comments, start with what you have, and give credit to the original creator.
4. Create a new thread for AJAX BOB and have the version number link (in the settings pane) point to this thread, instead of the old BoB 1.2 thread.
- Aerial Attack
- Posts: 1132
- Joined: Mon Jun 04, 2007 7:59 pm
- Location: Generation One: The Clan
When I was just looking at games where it was my turn, as soon as BOB turned on the hours would be truncated. This does NOT happen if I have 10+ hours remaining. I was paying HUGE attention, but I think it might only affect turns where you have 9 hours and some minutes remaining.yeti_c wrote: TODO :
Map Inspect.
Confirm Buttons are a bit screwy!! <- I know why now too!!
Clock Format doesn't work <- does anyone care about this one?
C.
I have a turn that's about to switch to 8 hours - I'll check that and update. Still, I had 9 hours and 4 minutes and BOB said 4 minutes and it wasn't red or blinking (but I was concerned!).
EDIT: 8 hours goes to zero too
Map Inspect is not working.jaydog wrote:Hey mate, I have updated to your new bob, but my favorite function no longer works or I am un-computer literate.
the part where i put the arrow on my name and the countries i won are highlighted seems to not work.
Can some one please pm me with the solution
thanks heaps
JD
I'll never pay for another Premium on ConquerClub.
Yeah - I don't know why but the javascript seems to be a bit confused with times that begin with 0 -> it happens with 8 and you say 9 -> 7 works however!?Aerial Attack wrote:When I was just looking at games where it was my turn, as soon as BOB turned on the hours would be truncated. This does NOT happen if I have 10+ hours remaining. I was paying HUGE attention, but I think it might only affect turns where you have 9 hours and some minutes remaining.yeti_c wrote: TODO :
Map Inspect.
Confirm Buttons are a bit screwy!! <- I know why now too!!
Clock Format doesn't work <- does anyone care about this one?
C.
I have a turn that's about to switch to 8 hours - I'll check that and update. Still, I had 9 hours and 4 minutes and BOB said 4 minutes and it wasn't red or blinking (but I was concerned!).
EDIT: 8 hours goes to zero too
I will attempt to investigate...
C.

Highest score : 2297

