Page 1 of 1

script to show starting positions.

PostPosted: Sat May 24, 2014 2:10 pm
by Woltato
It would be very useful to be able to view the starting positions for a map in fog games if it's an unfamiliar map. Is there a tool that will do this yet?

Re: script to show starting positions.

PostPosted: Sat May 24, 2014 3:20 pm
by dgz345
its imposible to get the starting positions. as the log does not say where the drops was. tho i think bW was talking about a auto snap when the game starts. but it may take some time before that.

the only possible way to make a script is to check for new games all the time and then take a snap. and still you have to be online and active before the enemy makes his turn.
so to answer your question. as a script i dont think its possible

Re: script to show starting positions.

PostPosted: Sat May 24, 2014 4:22 pm
by Woltato
That's not what I was thinking of. Sorry I didn't explain it very well.

Take maps like Feudal war, Das Schloss, Poker club. At the start of the game there's a lot of neutral territories. If it's a fog game then all you see is a load of "??". I want to be able to see where all the neutrals are. The only way I know to do this at present is to go and look in the .xml file or view page source which is a bit of a pain in the arse. It would be good to have a button that shows where all the neutrals are at the start of the game.

Re: script to show starting positions.

PostPosted: Sat May 24, 2014 6:23 pm
by dgz345
yea that would be possible if someone feel like making it

Re: script to show starting positions.

PostPosted: Sun May 25, 2014 2:57 am
by Woltato
I've had a look at this and it's fairly straight forward as most of the code needed is already there in BOB snapshots. Is it possible for me to submit changes to BOB? If not who do I need to get in touch with?

Re: script to show starting positions.

PostPosted: Sun May 25, 2014 4:01 am
by dgz345
all scripts are opensource. just play around with your as you like!

Re: script to show starting positions.

PostPosted: Sun May 25, 2014 1:43 pm
by Woltato
Is there no version control?

Re: script to show starting positions.

PostPosted: Sun May 25, 2014 3:51 pm
by jltile1
This would be a great tool. Playing the Gallipoli map it would help. Cause yes playing fog maps it takes a lot of time looking at games trying to figure starting spots out. Let me know if you get any where.

Re: script to show starting positions.

PostPosted: Sun May 25, 2014 7:00 pm
by dgz345
Woltato wrote:Is there no version control?


??

what do you mean?
userscripts is just a "text" file. you change that textfile and then you can put it up for other to download

Re: script to show starting positions.

PostPosted: Mon May 26, 2014 5:15 am
by Woltato
If I do that then there will be 2 versions of BOB out there.

Re: script to show starting positions.

PostPosted: Mon May 26, 2014 7:06 am
by Woltato
https://greasyfork.org/scripts/1694-con ... OB.user.js

Made the changes and posted on greasy fork.

At the top of the map, there's a new button "Show Start Map"
Then just click "Revert to Live" to go back to the game.

Re: script to show starting positions.

PostPosted: Tue May 27, 2014 6:50 pm
by dgz345
You could just change name of it in the meta data at the top of the script. Otherwise good work!

Re: script to show starting positions.

PostPosted: Wed May 28, 2014 3:57 am
by Woltato
Thanks.

Changing the name wouldn't really help as there would still be 2 slightly different versions of the same script. If this is going to be made available then it needs to be incorporated into the official version of BOB.

Re: script to show starting positions.

PostPosted: Thu May 29, 2014 6:06 pm
by dgz345
There is no one updating Bob. You can post your version if you like And update it. No one is managing the "official" version

Re: script to show starting positions.

PostPosted: Sat May 31, 2014 10:26 am
by Woltato
Yeah, I noticed that Sherkaner isn't active any more.

Shall I volunteer to take over custody of "the official version"?

Otherwise if anyone else decides to change it then we're gonna get into problems with version control and multiple different versions of the same script.

Re: script to show starting positions.

PostPosted: Mon Jun 02, 2014 1:03 am
by dgz345
It's good. You can take it. Then it's no need for anyone else to create a new version of Bob unless they make it better than yours :-)