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.
mattastrophe
Posts: 16
Joined: Sat Jul 05, 2008 7:02 pm
Location: Mississauga
Contact:

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

Post by mattastrophe »

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 ;)
User avatar
hwhrhett
Posts: 3120
Joined: Fri Jun 02, 2006 8:55 pm
Gender: Male
Location: TEXAS --- The Imperial Dragoons

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

Post by hwhrhett »

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
AndrewB
Posts: 1814
Joined: Mon Jun 12, 2006 5:02 pm
Location: Edmonton, Canada, MST

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

Post by AndrewB »

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
Incandenza
Posts: 4949
Joined: Thu Oct 19, 2006 5:34 pm
Gender: Male
Location: Playing Eschaton with a bucket of old tennis balls

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

Post by Incandenza »

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
AndrewB
Posts: 1814
Joined: Mon Jun 12, 2006 5:02 pm
Location: Edmonton, Canada, MST

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

Post by AndrewB »

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

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

Post by yeti_c »

[player]Sherkaner[/player] is now taking over maintenance and development of BOB.

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

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

Post by Angus Khan »

yeti_c wrote:[player]Sherkaner[/player] 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
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

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

Post 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 ;))
User avatar
yeti_c
Posts: 9624
Joined: Thu Jan 04, 2007 9:02 am
Gender: Male

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

Post 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.
Image
Highest score : 2297
sherkaner
Posts: 1595
Joined: Thu May 03, 2007 3:21 am
Gender: Male
Location: Zwolle

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

Post 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.
User avatar
Cyantist
Posts: 32
Joined: Tue Jul 17, 2007 2:43 pm
Location: WI

Re:

Post 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...
Lucalupulasa
Posts: 26
Joined: Tue Dec 23, 2008 11:52 pm
Gender: Male
Location: England, Essex

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

Post 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.
User avatar
Boss_oss_ss
Posts: 1003
Joined: Tue Mar 27, 2007 6:43 am
Gender: Male
Location: England, next to Strider24!
Contact:

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

Post by Boss_oss_ss »

the same way you do it normally, your thinking of clickable maps ;)
Image
User avatar
impassive
Posts: 39
Joined: Sun Jun 14, 2009 9:15 pm

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

Post 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.
sherkaner
Posts: 1595
Joined: Thu May 03, 2007 3:21 am
Gender: Male
Location: Zwolle

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

Post 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.
User avatar
impassive
Posts: 39
Joined: Sun Jun 14, 2009 9:15 pm

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

Post 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.
User avatar
LordF
Posts: 7
Joined: Mon Jun 22, 2009 10:15 am

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

Post 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.
sherkaner
Posts: 1595
Joined: Thu May 03, 2007 3:21 am
Gender: Male
Location: Zwolle

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

Post by sherkaner »

Number of armies is impossible (there's nothing about that in the logs), number of territories is already in the script (statistics).
User avatar
BigBallinStalin
Posts: 5151
Joined: Sun Oct 26, 2008 10:23 pm
Location: crying into the dregs of an empty bottle of own-brand scotch on the toilet having a dump in Dagenham
Contact:

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

Post by BigBallinStalin »

Sorry just bringing this back up to the top when I search "ajax."
User avatar
yeti_c
Posts: 9624
Joined: Thu Jan 04, 2007 9:02 am
Gender: Male

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

Post by yeti_c »

This is an old topic - you want to goto

viewtopic.php?f=59&t=91386

C.
Image
Highest score : 2297
Rakio
Posts: 67
Joined: Sat Jun 27, 2009 7:46 pm

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

Post by Rakio »

The link in the tool thread should be changed as well.
Image
Discover & Settle - a new land.
A map not in the making currently. Please have a look and comment anyway? :)
User avatar
yeti_c
Posts: 9624
Joined: Thu Jan 04, 2007 9:02 am
Gender: Male

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

Post 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.
Image
Highest score : 2297
louenlax
Posts: 1
Joined: Sat Oct 24, 2009 2:16 am

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

Post 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
Last edited by louenlax on Fri Oct 30, 2009 4:41 am, edited 1 time in total.
sherkaner
Posts: 1595
Joined: Thu May 03, 2007 3:21 am
Gender: Male
Location: Zwolle

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

Post 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.
Rakio
Posts: 67
Joined: Sat Jun 27, 2009 7:46 pm

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

Post by Rakio »

viewtopic.php?t=8801

This thread is what I mean and have used so far to find this tool and thread.
Image
Discover & Settle - a new land.
A map not in the making currently. Please have a look and comment anyway? :)
Locked

Return to “Tool Archives”