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.

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

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
Cook hwhrhett
 
Posts: 3120
Joined: Fri Jun 02, 2006 8:55 pm
Location: TEXAS --- The Imperial Dragoons

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

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

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

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

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

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

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

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: 1595
Joined: Thu May 03, 2007 3:21 am
Location: Zwolle

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

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

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
Private 1st Class Boss_oss_ss
 
Posts: 1003
Joined: Tue Mar 27, 2007 6:43 am
Location: England, next to Strider24!

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

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: 1595
Joined: Thu May 03, 2007 3:21 am
Location: Zwolle

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

Postby impassive on Thu Sep 03, 2009 1:24 pm

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

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

Postby LordF on Tue Sep 22, 2009 1:22 pm

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

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

Postby sherkaner on Tue Sep 22, 2009 3:44 pm

Number of armies is impossible (there's nothing about that in the logs), number of territories is already in the script (statistics).
Colonel sherkaner
 
Posts: 1595
Joined: Thu May 03, 2007 3:21 am
Location: Zwolle

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

Postby BigBallinStalin on Sun Oct 25, 2009 10:53 pm

Sorry just bringing this back up to the top when I search "ajax."
User avatar
Major 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

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

Postby yeti_c on Mon Oct 26, 2009 3:22 am

This is an old topic - you want to goto

viewtopic.php?f=59&t=91386

C.
Image
Highest score : 2297
User avatar
Lieutenant yeti_c
 
Posts: 9624
Joined: Thu Jan 04, 2007 9:02 am

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

Postby Rakio on Tue Oct 27, 2009 12:11 pm

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

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

Postby yeti_c on Wed Oct 28, 2009 3:23 am

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

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

Postby louenlax on Thu Oct 29, 2009 12:40 am

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.
New Recruit louenlax
 
Posts: 1
Joined: Sat Oct 24, 2009 2:16 am

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

Postby sherkaner on Thu Oct 29, 2009 3:25 am

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

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

Postby Rakio on Sat Oct 31, 2009 2:56 pm

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

PreviousNext

Return to Tool Archives

Who is online

Users browsing this forum: No registered users