Page 68 of 69

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

PostPosted: Thu Jun 25, 2009 3:50 am
by yeti_c
Sherkaner is now taking over maintenance and development of BOB.

C.

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

PostPosted: Thu Jun 25, 2009 12:19 pm
by Angus Khan
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:)

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

PostPosted: Thu Jun 25, 2009 6:29 pm
by cicero
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 ;))

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

PostPosted: Fri Jun 26, 2009 5:31 am
by yeti_c
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.

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

PostPosted: Fri Jun 26, 2009 8:08 am
by sherkaner
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.

Re:

PostPosted: Tue Jul 21, 2009 3:25 pm
by Cyantist
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...

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

PostPosted: Thu Jul 30, 2009 7:35 am
by Lucalupulasa
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.

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

PostPosted: Thu Jul 30, 2009 11:03 am
by Boss_oss_ss
the same way you do it normally, your thinking of clickable maps ;)

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

PostPosted: Thu Sep 03, 2009 11:20 am
by impassive
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.

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

PostPosted: Thu Sep 03, 2009 12:21 pm
by sherkaner
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.

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

PostPosted: Thu Sep 03, 2009 1:24 pm
by impassive
Thanks for the info.

I had assumed from what I knew about how the site works that the reinforcing would need to be done on the server side first to have the page reflect any reinforcements done. That is, if the snapshot was performed before the request was sent that it wouldn't reflect the reinforcements. I'll try taking the snapshot where you suggest to see how that goes. It would be good to see if it saves any snapshot at all to see if I've got something else wrong going on.

The /* Ishiro's Confirm Commands code */ area is where I'm setting the 'lastCommand' variable, but an end turn boolean might be a better way to do it.

I've loaded firebug and it isn't reporting any errors. I'm also able to step through scripts on the page (game.js, etc.), but I haven't seen where to access greasemonkey code. It doesn't show up for me so far. I'll keep digging and googling.

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

PostPosted: Tue Sep 22, 2009 1:22 pm
by LordF
This may have been raised before as a TODO - would it be possible to calculate how many armies (as well as territories) each player has in a fog of war game? This is presumably relatively easy to work out from the game log provided you know the initial number of armies for each player.

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

PostPosted: Tue Sep 22, 2009 3:44 pm
by sherkaner
Number of armies is impossible (there's nothing about that in the logs), number of territories is already in the script (statistics).

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

PostPosted: Sun Oct 25, 2009 10:53 pm
by BigBallinStalin
Sorry just bringing this back up to the top when I search "ajax."

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

PostPosted: Mon Oct 26, 2009 3:22 am
by yeti_c
This is an old topic - you want to goto

viewtopic.php?f=59&t=91386

C.

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

PostPosted: Tue Oct 27, 2009 12:11 pm
by Rakio
The link in the tool thread should be changed as well.

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

PostPosted: Wed Oct 28, 2009 3:23 am
by yeti_c
Rakio wrote:The link in the tool thread should be changed as well.


Actually - the link links to the topic - so it can stay...

People just need to STOP POSTING IN HERE.

C.

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

PostPosted: Thu Oct 29, 2009 12:40 am
by louenlax
How to sort a table using ajax? I need an ajax code of sorting table. I will use this for my jsf component. I have a custom data table component then I want that when you click each column header it will automatically sort. I have already a javascript code in sorting and it is already working will. And now I want to add an ajax code on it. The problem is I don't have yet any knowledge in ajax.
_____________________
market samurai ~ marketsamurai ~ marketsamurai.com

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

PostPosted: Thu Oct 29, 2009 3:25 am
by sherkaner
louenlax wrote:How to sort a table using ajax? I need an ajax code of sorting table. I will use this for my jsf component. I have a custom data table component then I want that when you click each column header it will automatically sort. I have already a javascript code in sorting and it is already working will. And now I want to add an ajax code on it. The problem is I don't have yet any knowledge in ajax.


Lol, totally offtopic in a thread where the last comment was STOP POSTING. But I'll answer his question in a PM (strangely enough I can answer it).

Rakio wrote:The link in the tool thread should be changed as well.


I think he means the link in 'Users Guide To Plugins & Addons'. Wouldn't be a bad idea actually, I'll ask chipv to change that.

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

PostPosted: Sat Oct 31, 2009 2:56 pm
by Rakio
viewtopic.php?t=8801

This thread is what I mean and have used so far to find this tool and thread.

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

PostPosted: Mon Nov 09, 2009 1:24 pm
by endar1077
Okay, I think I've got a really good idea here.

The motivation behind this development is discussed in the head post of the link below. I think it is an important issue that needs to be addressed for the sake of better team play. The idea of how to fix the problem, though, changed throughout the course of the thread. This link directs you to my conclusion about how to address it (thanks to the ideas of others in the thread):

http://www.conquerclub.com/forum/viewtopic.php?f=4&t=101027&p=2295109#p2295109.

I think this would be a pretty feasible modification, but I could be wrong. Just move the chat box up above the map, and team play will be enhanced by all users of BOB.

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

PostPosted: Mon Nov 09, 2009 2:33 pm
by Dako
It would be great to see the option "chat box location: above map, below map, bottom (default)". Would be sooo handy.

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

PostPosted: Mon Nov 09, 2009 3:25 pm
by sherkaner
Good idea, I'll see whether I can make that work.

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

PostPosted: Mon Nov 09, 2009 6:04 pm
by sherkaner
Lol, and that wasn't really hard. But it's not too pretty yet.

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

PostPosted: Mon Nov 09, 2009 6:39 pm
by endar1077
I talked to Foxglove earlier today and she said she was working on a script to make it re-sizable, drag-able, etc.
I wonder if she's done enough work to compliment yours, or if they will remain two separate scripts, or if she will simply defer to the Bob version.

P.S. That was really damn quick. :D