[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file /includes/functions.php on line 4586: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3765)
[phpBB Debug] PHP Warning: in file /includes/functions.php on line 4588: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3765)
[phpBB Debug] PHP Warning: in file /includes/functions.php on line 4589: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3765)
[phpBB Debug] PHP Warning: in file /includes/functions.php on line 4590: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3765)
AI Challenge Forums • View topic - Game map extractor bookmarklet

It is currently Tue Jan 23, 2018 9:54 am Advanced search

Game map extractor bookmarklet

Code won't compile? Found a bug? Post here!

Game map extractor bookmarklet

Postby iouri_ » Sat Sep 25, 2010 5:47 pm

Last edited by iouri_ on Fri Nov 26, 2010 3:42 pm, edited 6 times in total.
iouri_
Brigadier-General
 
Posts: 105
Joined: Thu Feb 11, 2010 4:16 pm
Location: Toronto, Canada

Re: Game map extractor bookmarklet

Postby DanielVonFange » Sat Sep 25, 2010 8:25 pm

Rock on!
DanielVonFange
Brigadier-General
 
Posts: 149
Joined: Wed Sep 08, 2010 1:15 pm

Re: Game map extractor bookmarklet

Postby hexist » Sun Sep 26, 2010 1:35 pm

Awesome :)
hexist
Cadet
 
Posts: 9
Joined: Sat Feb 06, 2010 5:14 am

Re: Game map extractor bookmarklet

Postby Torquemada » Tue Sep 28, 2010 12:26 am

Nice!
Torquemada
Major
 
Posts: 30
Joined: Tue Sep 21, 2010 12:39 pm

Re: Game map extractor bookmarklet

Postby RebelXT » Tue Sep 28, 2010 1:14 pm

Very useful! thanks

For anyone who wants to replay the whole game locally, there is also dmj's python script:

http://github.com/apinkin/planetwars-py ... ate_url.py
http://github.com/apinkin/planetwars-py ... /replay.sh
RebelXT
Colonel
 
Posts: 81
Joined: Fri Sep 10, 2010 2:05 pm

Re: Game map extractor bookmarklet

Postby Mistmanov » Tue Oct 19, 2010 1:27 pm

I could've sworn a similar tool for the tcp server has been posted somewhere on this forum.. but I just can't find it anymore. If it actually exists, would someone please point me in the right direction? :oops:
Mistmanov
Colonel
 
Posts: 70
Joined: Fri Sep 24, 2010 6:50 pm

Re: Game map extractor bookmarklet

Postby barabanus » Tue Oct 19, 2010 1:52 pm

barabanus
Lieutenant-Colonel
 
Posts: 44
Joined: Fri Sep 24, 2010 6:01 am

Re: Game map extractor bookmarklet

Postby iouri_ » Wed Nov 10, 2010 3:13 pm

Was reading the thread on the the new visualizer.js and remembered that even though I fixed the bookmarklet to work on the TCP server, I forgot to post it.

Anyway, I've updated the bookmarklet in the original post with the following changes:

- It now works on dhartmei's TCP server
- It also shows an option to append "go<enter>" at the end of the map, to make it easier to feed the game state into the bot's input directly.

Also, I've made it available on Gist:
iouri_
Brigadier-General
 
Posts: 105
Joined: Thu Feb 11, 2010 4:16 pm
Location: Toronto, Canada

Re: Game map extractor bookmarklet

Postby iouri_ » Fri Nov 26, 2010 3:37 pm

Made a couple more changes to the game state bookmarklet:

- There is now an option to extract all game states from turn 1 up to and including the current turn. The extracted list of states can be then fed to the bot directly, and the bot (at least the C++ starter package one) should replay the game more or less exactly up to the turn in question.

- The bookmarklet by default appends "go" to the game map.

The updated bookmarklet is now available in the original post and on .
iouri_
Brigadier-General
 
Posts: 105
Joined: Thu Feb 11, 2010 4:16 pm
Location: Toronto, Canada


Return to Technical Issues

Who is online

Users browsing this forum: No registered users and 2 guests

cron