script to show starting positions.

Discuss developing tools and get details on Conquer Club's API.

Moderator: Tech Team

Forum rules
Please read the Community Guidelines before posting.
Post Reply
User avatar
Woltato
Posts: 192
Joined: Sat Jan 17, 2009 8:09 pm
Gender: Male
Location: Bingley, UK

script to show starting positions.

Post 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?
User avatar
dgz345
Posts: 1363
Joined: Thu Oct 07, 2010 10:53 am

Re: script to show starting positions.

Post 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
User avatar
Woltato
Posts: 192
Joined: Sat Jan 17, 2009 8:09 pm
Gender: Male
Location: Bingley, UK

Re: script to show starting positions.

Post 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.
User avatar
dgz345
Posts: 1363
Joined: Thu Oct 07, 2010 10:53 am

Re: script to show starting positions.

Post by dgz345 »

yea that would be possible if someone feel like making it
User avatar
Woltato
Posts: 192
Joined: Sat Jan 17, 2009 8:09 pm
Gender: Male
Location: Bingley, UK

Re: script to show starting positions.

Post 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?
User avatar
dgz345
Posts: 1363
Joined: Thu Oct 07, 2010 10:53 am

Re: script to show starting positions.

Post by dgz345 »

all scripts are opensource. just play around with your as you like!
User avatar
Woltato
Posts: 192
Joined: Sat Jan 17, 2009 8:09 pm
Gender: Male
Location: Bingley, UK

Re: script to show starting positions.

Post by Woltato »

Is there no version control?
User avatar
jltile1
Posts: 867
Joined: Wed Apr 07, 2010 4:12 pm
Location: Bay area

Re: script to show starting positions.

Post 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.
User avatar
dgz345
Posts: 1363
Joined: Thu Oct 07, 2010 10:53 am

Re: script to show starting positions.

Post 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
User avatar
Woltato
Posts: 192
Joined: Sat Jan 17, 2009 8:09 pm
Gender: Male
Location: Bingley, UK

Re: script to show starting positions.

Post by Woltato »

If I do that then there will be 2 versions of BOB out there.
User avatar
Woltato
Posts: 192
Joined: Sat Jan 17, 2009 8:09 pm
Gender: Male
Location: Bingley, UK

Re: script to show starting positions.

Post 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.
User avatar
dgz345
Posts: 1363
Joined: Thu Oct 07, 2010 10:53 am

Re: script to show starting positions.

Post by dgz345 »

You could just change name of it in the meta data at the top of the script. Otherwise good work!
User avatar
Woltato
Posts: 192
Joined: Sat Jan 17, 2009 8:09 pm
Gender: Male
Location: Bingley, UK

Re: script to show starting positions.

Post 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.
User avatar
dgz345
Posts: 1363
Joined: Thu Oct 07, 2010 10:53 am

Re: script to show starting positions.

Post 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
User avatar
Woltato
Posts: 192
Joined: Sat Jan 17, 2009 8:09 pm
Gender: Male
Location: Bingley, UK

Re: script to show starting positions.

Post 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.
User avatar
dgz345
Posts: 1363
Joined: Thu Oct 07, 2010 10:53 am

Re: script to show starting positions.

Post 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 :-)
Post Reply

Return to “Tools Development”