Auto Snap (BOB) on game starts

Have suggestion for a new or old tool/enhancement? Found a tool bug? Come on in!

Moderators: Tech Team, Global Moderators

Forum rules
Please read the Community Guidelines before posting.

Auto Snap (BOB) on game starts

Postby ViperOverLord on Sun Jun 16, 2013 9:31 pm

A great enhancement would be to create an auto snap option for BOB on game starts. This means that BOB takes automatically snaps the map once the last player has joined the game. Is it feasible? I don't know. I'm just suggesting it.
User avatar
Major ViperOverLord
 
Posts: 2187
Joined: Sun Apr 19, 2009 3:19 pm
Location: California
Medals: 128
Standard Achievement (4) Doubles Achievement (3) Triples Achievement (3) Quadruples Achievement (3) Terminator Achievement (3)
Assassin Achievement (2) Manual Troops Achievement (2) Freestyle Achievement (3) Polymorphic Achievement (1) Nuclear Spoils Achievement (2)
Fog of War Achievement (4) Trench Warfare Achievement (2) Speed Achievement (4) Teammate Achievement (2) Random Map Achievement (3)
Cross-Map Achievement (4) Beta Map Achievement (1) Battle Royale Achievement (1) Ratings Achievement (3) Tournament Achievement (30)
General Achievement (6) Clan Achievement (10) Challenge Achievement (1) Tournament Contribution (31)

Re: Auto Snap (BOB) on game starts

Postby ender516 on Wed Jun 19, 2013 11:50 am

Not really feasible. BOB can only act on what is in a page you have open. If you can get the page to open automatically when the game is initialized, then BOB might have a shot at doing such a thing.
User avatar
Sergeant 1st Class ender516
 
Posts: 4452
Joined: Wed Dec 17, 2008 6:07 pm
Location: Waterloo, Ontario
Medals: 37
Standard Achievement (2) Doubles Achievement (1) Triples Achievement (1) Quadruples Achievement (1) Freestyle Achievement (1)
Fog of War Achievement (1) Teammate Achievement (1) Cross-Map Achievement (1) Ratings Achievement (3) General Achievement (9)
Map Contribution (5) General Contribution (11)

Re: Auto Snap (BOB) on game starts

Postby docchaos on Thu Aug 08, 2013 7:12 pm

I thought about something similar, that is actually not impossible: Autosnap each time you end your turn (of course with an option to turn it off).
What do you think about that? I figure it's not even much work


And this could even have more features, I'm thinking about a complete history of the game.
I'll try to paint you a picture (It goes ithout saying, that all of this only applies to sunny games):
- First, the controls for browsing snaps should be changed, something like forward/backward/jump to start/jump to live view while the links in the chat should become invisible
- On the first turn of each players turn, BOB could post some sort of "activation code" to the game chat, something not to intrusive to not disturb the game chat too much.
- If all players have posted this code, BOB notices that. That means that all players in the game are using BOB and have turned this option on
- From that point on, BOB posts all snaps publicly

Of course there would have to be some safety measures, to prevent users from turning that option off and posting the activation code themselves, thus getting to see other players snaps without giving away their own snaps.
This could be:
- BOB ignores it's settings if the code has been posted (i.e. if you turn that option off but post the code, BOB starts posting the snaps anyway)
- If a user has turned the option off and posts the code, BOB immediately posts a deactivation code
- If a user has turned the option off, BOB monitors what the user tries to post and stops it form being sent to the server, if the user tries to sneak in the activation code

I'll admit, that's probably a lot of work to do. But I think it would be great to have this feature.
Major docchaos
 
Posts: 88
Joined: Wed Jul 12, 2006 7:11 am
Medals: 26
Standard Achievement (3) Doubles Achievement (2) Triples Achievement (1) Quadruples Achievement (1) Terminator Achievement (2)
Assassin Achievement (1) Manual Troops Achievement (2) Freestyle Achievement (2) Nuclear Spoils Achievement (1) Fog of War Achievement (2)
Trench Warfare Achievement (2) Teammate Achievement (1) Cross-Map Achievement (3) Beta Map Achievement (1) Ratings Achievement (2)

Re: Auto Snap (BOB) on game starts

Postby ender516 on Thu Aug 08, 2013 10:11 pm

I doubt there would be much support for BOB sharing all the snapshots to all players, but the auto-snap at the end of a turn is something I have considered often. I may have more spare time in September and October, so I might be able to do something about this then.
User avatar
Sergeant 1st Class ender516
 
Posts: 4452
Joined: Wed Dec 17, 2008 6:07 pm
Location: Waterloo, Ontario
Medals: 37
Standard Achievement (2) Doubles Achievement (1) Triples Achievement (1) Quadruples Achievement (1) Freestyle Achievement (1)
Fog of War Achievement (1) Teammate Achievement (1) Cross-Map Achievement (1) Ratings Achievement (3) General Achievement (9)
Map Contribution (5) General Contribution (11)

Re: Auto Snap (BOB) on game starts

Postby Fewnix on Fri Aug 09, 2013 2:48 am

Is it feasible that the Auto snap option could put the snap in team chat ( or note to self) rather than into the general game chat ? I really like the auto snap at the end of a turn option, especially for team play.. I have been trying to get trainees to snap at the end of their turn so when the succeeding team mate logs on he can

CHECK OUT the situation-- for example. read the Report and Recommendations of the team mate who preceded you, click on the Snap in chat and hit Show Difference to see what the oppo who followed your team mate did,
Image
Lieutenant Fewnix
 
Posts: 654
Joined: Sat Apr 25, 2009 2:15 am
Medals: 41
Standard Achievement (3) Doubles Achievement (2) Triples Achievement (2) Quadruples Achievement (3) Terminator Achievement (2)
Assassin Achievement (1) Manual Troops Achievement (1) Freestyle Achievement (1) Polymorphic Achievement (1) Nuclear Spoils Achievement (2)
Fog of War Achievement (4) Trench Warfare Achievement (2) Speed Achievement (2) Teammate Achievement (2) Random Map Achievement (2)
Cross-Map Achievement (3) Beta Map Achievement (2) Clan Achievement (5) Training Achievement (1)

Re: Auto Snap (BOB) on game starts

Postby docchaos on Fri Aug 09, 2013 4:17 am

ender516 wrote:I doubt there would be much support for BOB sharing all the snapshots to all players, but the auto-snap at the end of a turn is something I have considered often. I may have more spare time in September and October, so I might be able to do something about this then.

I'm not sure. I for one often wished, there was some sort of history, where I could exactly see what everybody else did on their turn and I can't be the only one. So if you tell everyone, that there could be a history feature and all they would have to do is share their snaps, it might work. Plus, this is just like a live game, where you can see even more of what your opponents do.
But even if there's not enough support for the game history: That thing about changing the controls for browsing the snaps, so they would be easily accessible and BOB could actually filter them from the game chat, so it wouldn't look that cluttered...what do you think about that?

Fewnix wrote:Is it feasible that the Auto snap option could put the snap in team chat ( or note to self) rather than into the general game chat ?

And thanks for destroying my point. ;)
Yeah, that game history idea is just an extension of the auro-snap idea.
Major docchaos
 
Posts: 88
Joined: Wed Jul 12, 2006 7:11 am
Medals: 26
Standard Achievement (3) Doubles Achievement (2) Triples Achievement (1) Quadruples Achievement (1) Terminator Achievement (2)
Assassin Achievement (1) Manual Troops Achievement (2) Freestyle Achievement (2) Nuclear Spoils Achievement (1) Fog of War Achievement (2)
Trench Warfare Achievement (2) Teammate Achievement (1) Cross-Map Achievement (3) Beta Map Achievement (1) Ratings Achievement (2)

Re: Auto Snap (BOB) on game starts

Postby ender516 on Fri Aug 09, 2013 8:06 pm

Fewnix wrote:Is it feasible that the Auto snap option could put the snap in team chat ( or note to self) rather than into the general game chat ? I really like the auto snap at the end of a turn option, especially for team play.. I have been trying to get trainees to snap at the end of their turn so when the succeeding team mate logs on he can

CHECK OUT the situation-- for example. read the Report and Recommendations of the team mate who preceded you, click on the Snap in chat and hit Show Difference to see what the oppo who followed your team mate did,

All snaps are currently posted in team chat or note to self mode. Automating the snap would not change this, unless we specifically wanted it to change.
docchaos wrote:
ender516 wrote:I doubt there would be much support for BOB sharing all the snapshots to all players, but the auto-snap at the end of a turn is something I have considered often. I may have more spare time in September and October, so I might be able to do something about this then.

I'm not sure. I for one often wished, there was some sort of history, where I could exactly see what everybody else did on their turn and I can't be the only one. So if you tell everyone, that there could be a history feature and all they would have to do is share their snaps, it might work. Plus, this is just like a live game, where you can see even more of what your opponents do.
But even if there's not enough support for the game history: That thing about changing the controls for browsing the snaps, so they would be easily accessible and BOB could actually filter them from the game chat, so it wouldn't look that cluttered...what do you think about that?

Fewnix wrote:Is it feasible that the Auto snap option could put the snap in team chat ( or note to self) rather than into the general game chat ?

And thanks for destroying my point. ;)
Yeah, that game history idea is just an extension of the auro-snap idea.

The Handy Game History script gives you the ability to visualize the ownership of the territories action by action, turn by turn, and round by round. True, it does not give you the number of troops on the territories (and getting that level of detail has been suggested elsewhere). I do like the idea of adding some extra ways to navigate the snaps. I'm not sure I would go so far as to make the snaps invisible in the chat, as their position can relate to ordinary chat which comments on them.
User avatar
Sergeant 1st Class ender516
 
Posts: 4452
Joined: Wed Dec 17, 2008 6:07 pm
Location: Waterloo, Ontario
Medals: 37
Standard Achievement (2) Doubles Achievement (1) Triples Achievement (1) Quadruples Achievement (1) Freestyle Achievement (1)
Fog of War Achievement (1) Teammate Achievement (1) Cross-Map Achievement (1) Ratings Achievement (3) General Achievement (9)
Map Contribution (5) General Contribution (11)

Re: Auto Snap (BOB) on game starts

Postby docchaos on Mon Aug 12, 2013 11:59 am

ender516 wrote:I do like the idea of adding some extra ways to navigate the snaps. I'm not sure I would go so far as to make the snaps invisible in the chat, as their position can relate to ordinary chat which comments on them.

You're right, I didn't think about that.
Anyway, Autosnap and better navigation would still be cool (and at least autosnap can probably be done by just one line of code).

EDIT:
Actually, I was just curious if it's as easy as I thought, so I took a look at the code and implemented this for myself. It was a bit more than just one line, maybe 10. After I tested it, I can give you a diff if you want to, so you can patch my changes into the public version.
Major docchaos
 
Posts: 88
Joined: Wed Jul 12, 2006 7:11 am
Medals: 26
Standard Achievement (3) Doubles Achievement (2) Triples Achievement (1) Quadruples Achievement (1) Terminator Achievement (2)
Assassin Achievement (1) Manual Troops Achievement (2) Freestyle Achievement (2) Nuclear Spoils Achievement (1) Fog of War Achievement (2)
Trench Warfare Achievement (2) Teammate Achievement (1) Cross-Map Achievement (3) Beta Map Achievement (1) Ratings Achievement (2)

Re: Auto Snap (BOB) on game starts

Postby ender516 on Tue Aug 13, 2013 6:19 pm

I would be very interested to see your work, docchaos.
User avatar
Sergeant 1st Class ender516
 
Posts: 4452
Joined: Wed Dec 17, 2008 6:07 pm
Location: Waterloo, Ontario
Medals: 37
Standard Achievement (2) Doubles Achievement (1) Triples Achievement (1) Quadruples Achievement (1) Freestyle Achievement (1)
Fog of War Achievement (1) Teammate Achievement (1) Cross-Map Achievement (1) Ratings Achievement (3) General Achievement (9)
Map Contribution (5) General Contribution (11)

Re: Auto Snap (BOB) on game starts

Postby docchaos on Thu Aug 15, 2013 8:49 am

I hit a small roadblock, I thought it would be enough to call snapToChat() on the end of the turn. What happens is that the snap is taken, but the turn isn't ended. My guess is, that the submit-event that's triggered by snapToChat() seems to cancel the submit-event for the button that has actually been clicked, i.e. "End Reinforcements". Interestingly, if I introduce a delay (i put an alert in there somewhere, so there's a delay after the submit in snapToChat) everything works like a charm. At the moment I can't explain why this would happen, to my knowledge triggerEvent() doesn't work asynchronously, so this shouldn't happen at all.
Do you have any idea how to solve this other than completely rewriting the submit-code and constructing the http-requests ourselves?
I'll send you a diff anyway as soon as I get to make one, probably in a couple of hours.
Major docchaos
 
Posts: 88
Joined: Wed Jul 12, 2006 7:11 am
Medals: 26
Standard Achievement (3) Doubles Achievement (2) Triples Achievement (1) Quadruples Achievement (1) Terminator Achievement (2)
Assassin Achievement (1) Manual Troops Achievement (2) Freestyle Achievement (2) Nuclear Spoils Achievement (1) Fog of War Achievement (2)
Trench Warfare Achievement (2) Teammate Achievement (1) Cross-Map Achievement (3) Beta Map Achievement (1) Ratings Achievement (2)

Re: Auto Snap (BOB) on game starts

Postby sherkaner on Thu Aug 15, 2013 10:37 am

Hmm, you'll get an update after ending the turn, you could set a variable before ending the turn, and when the update is processed, take the snapshot (and reset the variable).
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: Auto Snap (BOB) on game starts

Postby docchaos on Thu Aug 15, 2013 5:33 pm

Thanks sherkaner, that did the trick.
Here are, like I promised, my changes:

diff
Full Script

Please note, that I didn't change the version number so I won't miss an update, so if you want to use this as the next update, you'll still have to change the version.
And I don't guarantee that this will work for everyone, I only tested it on FF22.0 with GM1.11
Major docchaos
 
Posts: 88
Joined: Wed Jul 12, 2006 7:11 am
Medals: 26
Standard Achievement (3) Doubles Achievement (2) Triples Achievement (1) Quadruples Achievement (1) Terminator Achievement (2)
Assassin Achievement (1) Manual Troops Achievement (2) Freestyle Achievement (2) Nuclear Spoils Achievement (1) Fog of War Achievement (2)
Trench Warfare Achievement (2) Teammate Achievement (1) Cross-Map Achievement (3) Beta Map Achievement (1) Ratings Achievement (2)

Re: Auto Snap (BOB) on game starts

Postby docchaos on Wed Sep 04, 2013 7:29 pm

I just found a bug in my code that caused the snap to be taken before the fortification on games with adjacent or chained fortifications. I think I fixed it but I'll have to wait for my turn on one of my games to test it, I'll update the above links as soon as I'm sure that I fixed it.
Major docchaos
 
Posts: 88
Joined: Wed Jul 12, 2006 7:11 am
Medals: 26
Standard Achievement (3) Doubles Achievement (2) Triples Achievement (1) Quadruples Achievement (1) Terminator Achievement (2)
Assassin Achievement (1) Manual Troops Achievement (2) Freestyle Achievement (2) Nuclear Spoils Achievement (1) Fog of War Achievement (2)
Trench Warfare Achievement (2) Teammate Achievement (1) Cross-Map Achievement (3) Beta Map Achievement (1) Ratings Achievement (2)

Re: Auto Snap (BOB) on game starts

Postby ender516 on Tue Sep 10, 2013 2:40 pm

I am still working with limited access to the Internet, but I really do plan to look at your work.
User avatar
Sergeant 1st Class ender516
 
Posts: 4452
Joined: Wed Dec 17, 2008 6:07 pm
Location: Waterloo, Ontario
Medals: 37
Standard Achievement (2) Doubles Achievement (1) Triples Achievement (1) Quadruples Achievement (1) Freestyle Achievement (1)
Fog of War Achievement (1) Teammate Achievement (1) Cross-Map Achievement (1) Ratings Achievement (3) General Achievement (9)
Map Contribution (5) General Contribution (11)

Re: Auto Snap (BOB) on game starts

Postby ElricTheGreat on Tue Oct 22, 2013 12:28 pm

this really sounds like a good implementation ... has there been any followup ... is this working or still has a little bug?
Click image to enlarge.
image
SoC Training Instructor / FOED! - Master Follower
Colonel ElricTheGreat
SoC Training Instructor
SoC Training Instructor
 
Posts: 2478
Joined: Tue Sep 28, 2010 11:37 am
Location: Montreal, Canada
Medals: 76
Monthly Leader Silver (1) Most Improved Silver (1) Standard Achievement (2) Doubles Achievement (2) Triples Achievement (2)
Quadruples Achievement (3) Terminator Achievement (3) Assassin Achievement (1) Manual Troops Achievement (2) Freestyle Achievement (1)
Polymorphic Achievement (1) Nuclear Spoils Achievement (2) Fog of War Achievement (3) Trench Warfare Achievement (2) Speed Achievement (1)
Teammate Achievement (2) Random Map Achievement (2) Cross-Map Achievement (3) Beta Map Achievement (1) Ratings Achievement (4)
Tournament Achievement (2) General Achievement (5) Clan Achievement (10) Training Achievement (4) Tournament Contribution (8)

Re: Auto Snap (BOB) on game starts

Postby Foxglove on Tue Oct 22, 2013 10:41 pm

ElricTheGreat wrote:this really sounds like a good implementation ... has there been any followup ... is this working or still has a little bug?


Correct me if I'm wrong, but none of this changes the fact that someone has to have an account logged into CC to check for changes in order for this to work.

Now that the new owner of CC has proven to be so willing to make updates to the site, this seems like a prime candidate for something that CC should do. I'll believe I'll head over to the suggestions forum right now. :)
General Foxglove
Head Thinker
Head Thinker
 
Posts: 1282
Joined: Sun Dec 16, 2007 1:05 pm
Medals: 60
Standard Achievement (2) Doubles Achievement (2) Triples Achievement (2) Quadruples Achievement (3) Terminator Achievement (1)
Freestyle Achievement (1) Polymorphic Achievement (1) Nuclear Spoils Achievement (2) Fog of War Achievement (3) Trench Warfare Achievement (1)
Speed Achievement (1) Teammate Achievement (2) Random Map Achievement (1) Cross-Map Achievement (3) Beta Map Achievement (1)
Ratings Achievement (1) Tournament Achievement (7) General Achievement (6) Clan Achievement (12) Tournament Contribution (1)
General Contribution (7)

Re: Auto Snap (BOB) on game starts

Postby ender516 on Fri Oct 25, 2013 11:43 am

Quite right, but I have always only wanted to be sure I had a snapshot at the end of my turn when playing fog, so I can compare it to the situation when my turn comes up again. I don't think there will be much hope of the site doing anything to record anything like a snapshot for players who are not online.
User avatar
Sergeant 1st Class ender516
 
Posts: 4452
Joined: Wed Dec 17, 2008 6:07 pm
Location: Waterloo, Ontario
Medals: 37
Standard Achievement (2) Doubles Achievement (1) Triples Achievement (1) Quadruples Achievement (1) Freestyle Achievement (1)
Fog of War Achievement (1) Teammate Achievement (1) Cross-Map Achievement (1) Ratings Achievement (3) General Achievement (9)
Map Contribution (5) General Contribution (11)

Re: Auto Snap (BOB) on game starts

Postby Foxglove on Fri Oct 25, 2013 12:00 pm

ender516 wrote:Quite right, but I have always only wanted to be sure I had a snapshot at the end of my turn when playing fog, so I can compare it to the situation when my turn comes up again. I don't think there will be much hope of the site doing anything to record anything like a snapshot for players who are not online.


Why not, ender? Everyone in the game has the ability to see the game at any point - should they be logged in to do so (or, whatever they can see through the fog). This suggestion will help even the playing field for players who don't have the ability to be online as frequently as their opponents and who don't use add on scripts. This suggestion won't give anyone any information that they wouldn't be able normally get - it will just make it more easily available to every player.

Oops: I thought I was responding to my post in the suggestions forum about adding snapshots to CC. Similar topics. :)

If you love BOB snapshots and make use of them, please go support the suggestion!

viewtopic.php?f=4&t=192998
General Foxglove
Head Thinker
Head Thinker
 
Posts: 1282
Joined: Sun Dec 16, 2007 1:05 pm
Medals: 60
Standard Achievement (2) Doubles Achievement (2) Triples Achievement (2) Quadruples Achievement (3) Terminator Achievement (1)
Freestyle Achievement (1) Polymorphic Achievement (1) Nuclear Spoils Achievement (2) Fog of War Achievement (3) Trench Warfare Achievement (1)
Speed Achievement (1) Teammate Achievement (2) Random Map Achievement (1) Cross-Map Achievement (3) Beta Map Achievement (1)
Ratings Achievement (1) Tournament Achievement (7) General Achievement (6) Clan Achievement (12) Tournament Contribution (1)
General Contribution (7)

Re: Auto Snap (BOB) on game starts

Postby docchaos on Tue Nov 05, 2013 11:56 am

ElricTheGreat wrote:this really sounds like a good implementation ... has there been any followup ... is this working or still has a little bug?

Uh, sorry, I forgot to post the corrected version, the one I posted has a slight bug, as described in my last posting.
On top of that, what I did is based on BOB 5.2.6, once I've updated to 5.3.0, I'll post a working and up-to-date version.
Thanks for showing some interest in my work.
Major docchaos
 
Posts: 88
Joined: Wed Jul 12, 2006 7:11 am
Medals: 26
Standard Achievement (3) Doubles Achievement (2) Triples Achievement (1) Quadruples Achievement (1) Terminator Achievement (2)
Assassin Achievement (1) Manual Troops Achievement (2) Freestyle Achievement (2) Nuclear Spoils Achievement (1) Fog of War Achievement (2)
Trench Warfare Achievement (2) Teammate Achievement (1) Cross-Map Achievement (3) Beta Map Achievement (1) Ratings Achievement (2)


Return to Tools Suggestions & Bugs

Who is online

Users browsing this forum: No registered users

Login