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.

Moderators: Tech Team, Beta Team, Global Moderators

Forum rules
Please read the Community Guidelines before posting.

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

Postby jricart on Mon Jun 08, 2009 12:35 pm

Cujo wrote:I'm having an issue with BOB 4.7.1 not calculating the "Last Bonus" under Statistics. I'm running Firefox 3.0.10. Anyone else having this issue?


Same issue!!!
Image
WINNER of the 7,000,000 game!!! - 69 Tournament Wins!
User avatar
Captain jricart
 
Posts: 3088
Joined: Fri Jan 09, 2009 6:52 pm
Location: Behind you, laying my corrupting hands upon your shoulders. Soon, you shall be an extension of me.
Medals: 142
Standard Achievement (4) Doubles Achievement (3) Triples Achievement (3) Quadruples Achievement (3) Terminator Achievement (3)
Assassin Achievement (3) Manual Troops Achievement (3) Freestyle Achievement (3) Nuclear Spoils Achievement (3) Fog of War Achievement (4)
Trench Warfare Achievement (2) Speed Achievement (3) Teammate Achievement (2) Random Map Achievement (2) Cross-Map Achievement (3)
Battle Royale Achievement (3) Ratings Achievement (4) Tournament Achievement (31) General Achievement (11) Clan Achievement (9)
Training Achievement (1) Tournament Contribution (31) General Contribution (8)

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

Postby Greycloak on Tue Jun 09, 2009 2:02 am

Yeti,

I don't know if this has been suggested yet or not but it would be nice if there was an option to disable BOB (or the log processing portion) for individual games. I am involved in the two longest running stalemates (Game 207959 and Game 230616) and it takes a really long time for BOB to process the log for those games.

An alternative would be to be have the option to disable the missed turns tracker (which is all that should be harvested from a log search of a non-escalating game, covering the vast majority of all the long-running stalemates).

Just my $0.02

~Kris
Image
User avatar
Major Greycloak
 
Posts: 74
Joined: Sat Oct 14, 2006 4:06 pm
Location: Bowness, Alberta, Canada
Medals: 44
Standard Achievement (3) Doubles Achievement (3) Triples Achievement (2) Quadruples Achievement (2) Terminator Achievement (3)
Assassin Achievement (3) Manual Troops Achievement (1) Freestyle Achievement (1) Nuclear Spoils Achievement (1) Fog of War Achievement (3)
Speed Achievement (1) Teammate Achievement (2) Random Map Achievement (1) Cross-Map Achievement (3) Ratings Achievement (3)
Tournament Achievement (3) Clan Achievement (9)

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

Postby yeti_c on Tue Jun 09, 2009 3:54 am

Yep - it appears that Lack has changed a number of the wordings involved with the Script parsing...

This will no doubt cause a number of issues...

I'll see if I can get these fixed in the next few days.

C.
Image
Highest score : 2297
User avatar
Lieutenant yeti_c
 
Posts: 9670
Joined: Thu Jan 04, 2007 9:02 am
Medals: 46
Standard Achievement (2) Doubles Achievement (2) Triples Achievement (2) Quadruples Achievement (3) Terminator Achievement (1)
Assassin Achievement (1) Freestyle Achievement (1) Fog of War Achievement (3) Cross-Map Achievement (3) Ratings Achievement (3)
General Achievement (1) Map Contribution (13) Tournament Contribution (1) General Contribution (10)

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

Postby yeti_c on Tue Jun 09, 2009 3:57 am

Greycloak wrote:Yeti,

I don't know if this has been suggested yet or not but it would be nice if there was an option to disable BOB (or the log processing portion) for individual games. I am involved in the two longest running stalemates (Game 207959 and Game 230616) and it takes a really long time for BOB to process the log for those games.

An alternative would be to be have the option to disable the missed turns tracker (which is all that should be harvested from a log search of a non-escalating game, covering the vast majority of all the long-running stalemates).

Just my $0.02

~Kris


I did code up "auto BOB" - but I actually put a bug in it - if you have this as OFF...

I need to fix that at some point - but yes - there are other methods that do this.

Note that the missed turns tracker isn't just what is used in the log parsing... there are many things such as territory coutns (FOW only) Eliminations (although these could be retrieved elsewhere now) and the card turn in (which is also now on screen)

Hopefully the API can be improved in the future to stop log parsing except for FOW games.

C.
Image
Highest score : 2297
User avatar
Lieutenant yeti_c
 
Posts: 9670
Joined: Thu Jan 04, 2007 9:02 am
Medals: 46
Standard Achievement (2) Doubles Achievement (2) Triples Achievement (2) Quadruples Achievement (3) Terminator Achievement (1)
Assassin Achievement (1) Freestyle Achievement (1) Fog of War Achievement (3) Cross-Map Achievement (3) Ratings Achievement (3)
General Achievement (1) Map Contribution (13) Tournament Contribution (1) General Contribution (10)

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

Postby yowzer14 on Tue Jun 09, 2009 9:45 am

Greycloak wrote:Yeti,

I don't know if this has been suggested yet or not but it would be nice if there was an option to disable BOB (or the log processing portion) for individual games. I am involved in the two longest running stalemates (Game 207959 and Game 230616) and it takes a really long time for BOB to process the log for those games.

An alternative would be to be have the option to disable the missed turns tracker (which is all that should be harvested from a log search of a non-escalating game, covering the vast majority of all the long-running stalemates).

Just my $0.02

~Kris


It can be done for individual games if you add in an exclusion for that game in the Greasemonkey Manage User Scripts , such as (replace the ####### with the game of the one you want BOB to be excluded from)
Code: Select all
http://www.conquerclub.com/game.php?game=#######&full_log=Y

add in an exception as (Note the * on the end)
Code: Select all
http://www.conquerclub.com/game.php?game=#######*
Private 1st Class yowzer14
 
Posts: 196
Joined: Sun Dec 24, 2006 10:20 pm
Location: Windsor, Ontario, Canada
Medals: 31
Standard Achievement (3) Doubles Achievement (3) Triples Achievement (3) Quadruples Achievement (3) Terminator Achievement (1)
Freestyle Achievement (1) Nuclear Spoils Achievement (1) Fog of War Achievement (3) Speed Achievement (1) Teammate Achievement (3)
Cross-Map Achievement (3) Ratings Achievement (4) General Achievement (1) General Contribution (1)

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

Postby Greycloak on Wed Jun 10, 2009 9:50 am

Thanks Yowser, didn't think to just exclude them.
Image
User avatar
Major Greycloak
 
Posts: 74
Joined: Sat Oct 14, 2006 4:06 pm
Location: Bowness, Alberta, Canada
Medals: 44
Standard Achievement (3) Doubles Achievement (3) Triples Achievement (2) Quadruples Achievement (2) Terminator Achievement (3)
Assassin Achievement (3) Manual Troops Achievement (1) Freestyle Achievement (1) Nuclear Spoils Achievement (1) Fog of War Achievement (3)
Speed Achievement (1) Teammate Achievement (2) Random Map Achievement (1) Cross-Map Achievement (3) Ratings Achievement (3)
Tournament Achievement (3) Clan Achievement (9)

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

Postby richardgarr on Wed Jun 10, 2009 11:12 am

jricart wrote:
Cujo wrote:I'm having an issue with BOB 4.7.1 not calculating the "Last Bonus" under Statistics. I'm running Firefox 3.0.10. Anyone else having this issue?


Same issue!!!



I am having the same issue, no last bonus showing up in any of my games. :evil:
Image
User avatar
Sergeant richardgarr
 
Posts: 597
Joined: Tue Feb 13, 2007 5:38 pm
Location: Under your bed, with an Axe :)
Medals: 23
Standard Achievement (3) Doubles Achievement (1) Triples Achievement (1) Quadruples Achievement (1) Terminator Achievement (1)
Assassin Achievement (2) Manual Troops Achievement (1) Freestyle Achievement (1) Nuclear Spoils Achievement (1) Fog of War Achievement (2)
Speed Achievement (2) Teammate Achievement (1) Cross-Map Achievement (2) Ratings Achievement (2) Tournament Achievement (1)
Clan Achievement (1)

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

Postby yeti_c on Wed Jun 10, 2009 1:43 pm

richardgarr wrote:I am having the same issue, no last bonus showing up in any of my games. :evil:


Grumpy smileys increase the likelihood of a fix appearing rapidly.

C.
Image
Highest score : 2297
User avatar
Lieutenant yeti_c
 
Posts: 9670
Joined: Thu Jan 04, 2007 9:02 am
Medals: 46
Standard Achievement (2) Doubles Achievement (2) Triples Achievement (2) Quadruples Achievement (3) Terminator Achievement (1)
Assassin Achievement (1) Freestyle Achievement (1) Fog of War Achievement (3) Cross-Map Achievement (3) Ratings Achievement (3)
General Achievement (1) Map Contribution (13) Tournament Contribution (1) General Contribution (10)

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

Postby yowzer14 on Thu Jun 11, 2009 2:25 pm

Greycloak wrote:Thanks Yowser, didn't think to just exclude them.

The first thing to do before playing any Conquer Man games is to exclude that game... :)
Private 1st Class yowzer14
 
Posts: 196
Joined: Sun Dec 24, 2006 10:20 pm
Location: Windsor, Ontario, Canada
Medals: 31
Standard Achievement (3) Doubles Achievement (3) Triples Achievement (3) Quadruples Achievement (3) Terminator Achievement (1)
Freestyle Achievement (1) Nuclear Spoils Achievement (1) Fog of War Achievement (3) Speed Achievement (1) Teammate Achievement (3)
Cross-Map Achievement (3) Ratings Achievement (4) General Achievement (1) General Contribution (1)

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

Postby ubersky on Fri Jun 12, 2009 11:13 am

Aren't we not supposed to post bugs in this thread?
User avatar
Lieutenant ubersky
 
Posts: 272
Joined: Thu Mar 27, 2008 4:43 pm
Location: Surprise, AZ, USA
Medals: 14
Standard Achievement (2) Doubles Achievement (1) Quadruples Achievement (1) Terminator Achievement (1) Freestyle Achievement (1)
Fog of War Achievement (2) Teammate Achievement (1) Cross-Map Achievement (2) Ratings Achievement (3)

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

Postby mattastrophe on Fri Jun 12, 2009 12:57 pm

ubersky wrote:Aren't we not supposed to post bugs in this thread?


No, they are supposed to go to:

viewtopic.php?t=46075

And there's a fix mentioned there ;)
Major mattastrophe
 
Posts: 15
Joined: Sat Jul 05, 2008 7:02 pm
Location: Mississauga
Medals: 44
Standard Achievement (3) Doubles Achievement (3) Triples Achievement (3) Quadruples Achievement (3) Terminator Achievement (2)
Manual Troops Achievement (3) Freestyle Achievement (1) Nuclear Spoils Achievement (2) Fog of War Achievement (4) Trench Warfare Achievement (1)
Teammate Achievement (2) Random Map Achievement (1) Cross-Map Achievement (3) Bot Achievement (4) Ratings Achievement (4)
Tournament Achievement (1) Clan Achievement (4)

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

Postby hwhrhett on Wed Jun 17, 2009 12:55 am

would it be possible to have like a super-map-inspect, where we can view all attack lines at once.... like lines connecting everything that borders each other?
Image
User avatar
Major hwhrhett
 
Posts: 3080
Joined: Fri Jun 02, 2006 8:55 pm
Location: TEXAS --- The Imperial Dragoons
Medals: 109
Monthly Leader Gold (1) Most Improved Silver (1) Standard Achievement (4) Doubles Achievement (4) Triples Achievement (4)
Quadruples Achievement (4) Terminator Achievement (4) Assassin Achievement (3) Manual Troops Achievement (4) Freestyle Achievement (4)
Polymorphic Achievement (2) Nuclear Spoils Achievement (4) Fog of War Achievement (4) Trench Warfare Achievement (4) Speed Achievement (3)
Teammate Achievement (3) Random Map Achievement (3) Cross-Map Achievement (4) Beta Map Achievement (1) Battle Royale Achievement (1)
Bot Achievement (4) Ratings Achievement (4) Tournament Achievement (5) General Achievement (12) Clan Achievement (11)

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

Postby AndrewB on Thu Jun 18, 2009 3:23 pm

I dont know if that was suggested before. Currently we have an option to swap forum avatars from right to left.

Would it be possible to give an option to swap the game chat windows with game details area (to the right from the map). sometime u need to see both chat and map window and u have to scroll a lot for that...
Image
User avatar
Lieutenant AndrewB
 
Posts: 1814
Joined: Mon Jun 12, 2006 5:02 pm
Location: Edmonton, Canada, MST
Medals: 72
Standard Achievement (3) Doubles Achievement (3) Triples Achievement (3) Quadruples Achievement (2) Terminator Achievement (2)
Assassin Achievement (2) Manual Troops Achievement (1) Freestyle Achievement (2) Fog of War Achievement (3) Speed Achievement (2)
Cross-Map Achievement (3) Ratings Achievement (3) Tournament Achievement (22) General Achievement (1) Clan Achievement (8)
Map Contribution (3) Tournament Contribution (7) General Contribution (2)

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

Postby Incandenza on Thu Jun 18, 2009 3:29 pm

AndrewB wrote:I dont know if that was suggested before. Currently we have an option to swap forum avatars from right to left.

Would it be possible to give an option to swap the game chat windows with game details area (to the right from the map). sometime u need to see both chat and map window and u have to scroll a lot for that...


Exactly. I just posted a suggestion in the relevant forum, but I imagine that it has a better chance of implementation thru BOB. Either be able to swap windows, or perhaps even have a floating game chat window (that could be easily enabled/disabled), somewhat like the HUD.
THOTA: dingdingdingdingdingdingBOOM

Te Occidere Possunt Sed Te Edere Non Possunt Nefas Est
User avatar
Colonel Incandenza
 
Posts: 4961
Joined: Thu Oct 19, 2006 5:34 pm
Location: Playing Eschaton with a bucket of old tennis balls
Medals: 44
Standard Achievement (2) Doubles Achievement (3) Triples Achievement (2) Quadruples Achievement (2) Terminator Achievement (1)
Manual Troops Achievement (1) Nuclear Spoils Achievement (1) Fog of War Achievement (3) Speed Achievement (1) Random Map Achievement (1)
Cross-Map Achievement (3) Ratings Achievement (3) Tournament Achievement (6) General Achievement (3) Clan Achievement (8)
General Contribution (4)

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

Postby AndrewB on Thu Jun 18, 2009 7:53 pm

And one more suggestion.

Add "Starting Neutrals" to the list of the snapshots. When user selects that, then a map will be displayed with armies in the neutral starting countries only.
Image
User avatar
Lieutenant AndrewB
 
Posts: 1814
Joined: Mon Jun 12, 2006 5:02 pm
Location: Edmonton, Canada, MST
Medals: 72
Standard Achievement (3) Doubles Achievement (3) Triples Achievement (3) Quadruples Achievement (2) Terminator Achievement (2)
Assassin Achievement (2) Manual Troops Achievement (1) Freestyle Achievement (2) Fog of War Achievement (3) Speed Achievement (2)
Cross-Map Achievement (3) Ratings Achievement (3) Tournament Achievement (22) General Achievement (1) Clan Achievement (8)
Map Contribution (3) Tournament Contribution (7) General Contribution (2)

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

Postby yeti_c on Thu Jun 25, 2009 3:50 am

Sherkaner is now taking over maintenance and development of BOB.

C.
Image
Highest score : 2297
User avatar
Lieutenant yeti_c
 
Posts: 9670
Joined: Thu Jan 04, 2007 9:02 am
Medals: 46
Standard Achievement (2) Doubles Achievement (2) Triples Achievement (2) Quadruples Achievement (3) Terminator Achievement (1)
Assassin Achievement (1) Freestyle Achievement (1) Fog of War Achievement (3) Cross-Map Achievement (3) Ratings Achievement (3)
General Achievement (1) Map Contribution (13) Tournament Contribution (1) General Contribution (10)

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

Postby Angus Khan on Thu Jun 25, 2009 12:19 pm

yeti_c wrote:Sherkaner is now taking over maintenance and development of BOB.

C.


I for one want to give my heartfelt thanks to Yeti_c for his incredible work to date. Personally I would have probably quit CC without BOB because it was too cumbersome to go through and manually figure out the things BOB does for me so easily. =D> =D> =D> =D> =D>

Adding Clickable Maps was just icing on the cake. Yep, there have been headaches along the way, almost all of them attributable to Lack making undocumented changes to the server. :roll:

You've done an excellent job Yeti, and I want to be the first to commend you for it. O:)
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!!
Medals: 26
Standard Achievement (3) Doubles Achievement (2) Triples Achievement (2) Quadruples Achievement (1) Terminator Achievement (2)
Assassin Achievement (1) Manual Troops Achievement (1) Freestyle Achievement (1) Nuclear Spoils Achievement (1) Fog of War Achievement (3)
Speed Achievement (1) Teammate Achievement (1) Cross-Map Achievement (3) Ratings Achievement (3) Tournament Achievement (1)

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

Postby cicero on Thu Jun 25, 2009 6:29 pm

Version 4.7.3 has been released ... But the first post of this thread hasn't been updated ... Can you let us know what has changed please ?
(And what happened to 4.7.2 ;))
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
Medals: 9
Standard Achievement (2) Terminator Achievement (1) Speed Achievement (1) Ratings Achievement (2) General Contribution (3)

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

Postby yeti_c on Fri Jun 26, 2009 5:31 am

cicero wrote:Version 4.7.3 has been released ... But the first post of this thread hasn't been updated ... Can you let us know what has changed please ?
(And what happened to 4.7.2 ;))


4.7.3 is a transition release to Sherkaner - i.e. all the changes relate to allowing him to update the script from his logins from fileden and userscripts.

C.
Image
Highest score : 2297
User avatar
Lieutenant yeti_c
 
Posts: 9670
Joined: Thu Jan 04, 2007 9:02 am
Medals: 46
Standard Achievement (2) Doubles Achievement (2) Triples Achievement (2) Quadruples Achievement (3) Terminator Achievement (1)
Assassin Achievement (1) Freestyle Achievement (1) Fog of War Achievement (3) Cross-Map Achievement (3) Ratings Achievement (3)
General Achievement (1) Map Contribution (13) Tournament Contribution (1) General Contribution (10)

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

Postby sherkaner on Fri Jun 26, 2009 8:08 am

yeti_c wrote:
cicero wrote:Version 4.7.3 has been released ... But the first post of this thread hasn't been updated ... Can you let us know what has changed please ?
(And what happened to 4.7.2 ;))


4.7.3 is a transition release to Sherkaner - i.e. all the changes relate to allowing him to update the script from his logins from fileden and userscripts.

C.


Yes, that's correct. It also reformats the file a bit (though you won't notice), and fixes the text changes: 'loses'->'lost', 'gains'->'gained' and 'receives'->'received'.
This in turns makes sure the armies are calculated correctly again, and the Elimination Summary works correctly again too.
Colonel sherkaner
 
Posts: 1606
Joined: Thu May 03, 2007 3:21 am
Location: Zwolle
Medals: 42
Standard Achievement (3) Doubles Achievement (2) Triples Achievement (2) Quadruples Achievement (2) Terminator Achievement (2)
Freestyle Achievement (2) Nuclear Spoils Achievement (1) Fog of War Achievement (2) Speed Achievement (1) Teammate Achievement (2)
Random Map Achievement (1) Cross-Map Achievement (3) Ratings Achievement (2) Tournament Achievement (3) Clan Achievement (3)
General Contribution (11)

Re:

Postby Cyantist on Tue Jul 21, 2009 3:25 pm

thespider wrote:
yeti_c wrote:
thespider wrote:Has anyone tried to use this on Safari and GreaseKit?
I would like to if it is possible.


Feel free to try!!

C.

it didn't work =(
I don't know why...


It hasn't worked for me either...
Maybe if we get enough of us requesting that it work with Greasekit, they'll make an update for it...
User avatar
Sergeant 1st Class Cyantist
 
Posts: 31
Joined: Tue Jul 17, 2007 2:43 pm
Location: WI
Medals: 11
Standard Achievement (1) Doubles Achievement (2) Triples Achievement (1) Fog of War Achievement (2) Cross-Map Achievement (2)
Ratings Achievement (3)

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

Postby Lucalupulasa on Thu Jul 30, 2009 7:35 am

hi, i just got this.
how do i attack because it doesnt say in the help thing. is there a button or what? when i click on the territory i want to attack from it just comes up with the hover thing. please answer.
Private Lucalupulasa
 
Posts: 26
Joined: Tue Dec 23, 2008 11:52 pm
Location: England, Essex
Medals: 15
Standard Achievement (3) Assassin Achievement (2) Freestyle Achievement (2) Fog of War Achievement (2) Speed Achievement (2)
Teammate Achievement (1) Cross-Map Achievement (1) Ratings Achievement (2)

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

Postby Boss_oss_ss on Thu Jul 30, 2009 11:03 am

the same way you do it normally, your thinking of clickable maps ;)
Image
User avatar
Corporal Boss_oss_ss
 
Posts: 1003
Joined: Tue Mar 27, 2007 6:43 am
Location: England, next to Strider24!
Medals: 41
Standard Achievement (3) Doubles Achievement (1) Triples Achievement (1) Quadruples Achievement (1) Terminator Achievement (2)
Assassin Achievement (2) Manual Troops Achievement (1) Freestyle Achievement (2) Fog of War Achievement (2) Speed Achievement (2)
Cross-Map Achievement (3) Ratings Achievement (1) Tournament Achievement (1) General Achievement (3) Clan Achievement (3)
Tournament Contribution (13)

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

Postby impassive on Thu Sep 03, 2009 11:20 am

Hi, I'm making small changes in BOB just to see how things work a little bit (I've never developed in greasemonkey before, and I haven't done javascript in years).

Anyway, occasionally I come back to a game being surprised by the board. When one of your territories are attacked and your armies are nicked, but your territory is not conquered, it can be hard to tease out of the log what happened. Sometimes I'm left thinking I had more armies in a territory, but I can't be sure if I've been attacked or I just don't remember right. Of course a log of attack attempts would resolve this.

But what I've been fooling with is having a setting to automatically take a snapshot after you end each turn. I've hacked in the menu setting and that seems to work ok. Taking the actual snapshot isn't working though. It is calling the existing 'takeSnapshot' function where I want it to. It is even adding a menu for the new snapshot taken. But when I refresh the game page or leave and come back to it, the end turn snapshot is no longer on the menu.

Here's the part that is not working:
_________________________________________________________
Code: Select all
// ENDTURN SNAPSHOT MOD ***********************
var newhandleResponse = unsafeWindow.handleResponse;

unsafeWindow.handleResponse = function() {
   var ret = newhandleResponse();
   if (lastCommand == 'End Reinforcement' || (lastCommand == 'Reinforce' && gameSettings.fortifications != eFortifications.UNLIMITED)) {
      confirm("ENDTURN SNAPSHOT MOD 1:");
      if (!gameSettings.speed && myOptions["endTurnSnapshot"]=="On") {
         confirm("ENDTURN SNAPSHOT MOD 2: about to attempt to take snapshot");
         takeSnapshot();  //THIS IS DEFINITELY BEING CALLED
      }
      lastCommand = '';
   }
   return ret;
}

_____________________________________________________________________

After the turn is completed, this is being run - I see both confirms. And the snapshot shows up in the snapshot menu. But it then goes away when the game is refreshed or reloaded.

I suspect I'm not calling 'takesnapshot' at the right time. If anybody can give me any ideas on where to call it, or any other pointers in general, I'd appreciate it.
User avatar
Brigadier impassive
 
Posts: 39
Joined: Sun Jun 14, 2009 9:15 pm
Medals: 5
Standard Achievement (2) Terminator Achievement (1) Cross-Map Achievement (1) Ratings Achievement (1)

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

Postby sherkaner on Thu Sep 03, 2009 12:21 pm

I'm not sure what's happening here. You're not getting any errors with firebug?

I think I'd perform the snapshot just before the request is sent, I'd probably use the part indicated by /* Ishiro's Confirm Commands code */ for that, 1 boolean for finished turn would be nice there anyway. At the end everything should be at the right place.
Colonel sherkaner
 
Posts: 1606
Joined: Thu May 03, 2007 3:21 am
Location: Zwolle
Medals: 42
Standard Achievement (3) Doubles Achievement (2) Triples Achievement (2) Quadruples Achievement (2) Terminator Achievement (2)
Freestyle Achievement (2) Nuclear Spoils Achievement (1) Fog of War Achievement (2) Speed Achievement (1) Teammate Achievement (2)
Random Map Achievement (1) Cross-Map Achievement (3) Ratings Achievement (2) Tournament Achievement (3) Clan Achievement (3)
General Contribution (11)

PreviousNext

Return to Tool Archives

Who is online

Users browsing this forum: No registered users

Login