Show whole topic Aug 27, 2009 9:36 pm
Leo Offline
Mitglied
Registered since: Aug 15, 2009
Location: -


Subject: Re: Single Player / Funny story
Quote by Toranaga:
I'm working on an AI project, that does exactly that - connect over TCP/IP like a normal player does. It's written in JAVA as a separate program. But at the moment I have not much time to spend on it. You can find some details here: http://www.maxthegame.de/showtopic.php?id=434

Hi Toranaga, thanks!
Strangely the thread doesn't appear in the thread list... But I can read it following your link.
I've tested your bot several times, and it finds the host immediately even if I don't start my local server.
However it always issues an exception at the very beginning:

Quote:
(...)
Received: msgType: 50 msgLength: 20 playerNr: 1
Received: msgType: 60 msgLength: 75 playerNr: 1
Warning: Unknown message arrived! MsgType: 50
Received: msgType: 50 msgLength: 20 playerNr: 1
Exception in thread "Thread-0" java.lang.ArrayIndexOutOfBoundsException
at java.lang.System.arraycopy(Native Method)
at msgs.MessageFactory.createMsgsFromStream(MessageFactory.java:38)
at Connection$ListenThread.run(Connection.java:179)

MAXR then lets me play for two turns, after which the timer disappears and nothing advances, and the app crashes if I try to close it.
I'm on Vista with MAXR v. 0.2.6.

Is there any way to convert MAXR XML saved games into the original MAX format so I can try your bot on it?

And how about starting a thread for discussing the various strategies for AI coding, not focusing on any particular implementation?