HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Output to a file or stdout?

05-21-2007, 08:34 PM#1
emeraldemon
Hi, I'm trying to setup a program to automatically play to warcraft AIs against each other and record the result to a file.
To do this, I'll need to:
(1) Start my wc3 map automatically (i.e. from a single command on the command line or something similar)
(2) have a trigger at the completion of the game to output which team one, ideally to a file or back to the console somehow.

Does anyone have an idea how to do either of these two things? My eventual plan is to have a machine learning platform for wc3. If I can get it to work, I'll be happy to share.

Thanks,
Tom
05-24-2007, 11:16 PM#2
Get Undeniable Interest
why not just do the AIs in a 3 player map with you an observer and 2 AI versing each other and just save the replay at the end of the game?Its much easier then programming
05-25-2007, 03:08 AM#3
Vexorian
Quote:
(1) Start my wc3 map automatically (i.e. from a single command on the command line or something similar)
war3.exe -loadfile a\path\mapname.w3x
Quote:
(2) have a trigger at the completion of the game to output which team one, ideally to a file or back to the console somehow.

jAPI.
05-25-2007, 03:13 AM#4
Guesst
I don't remember anything about triggers, but maybe you could make a gamecache with a different name depending on who wins. I seem to remember that those are saved as files.
05-25-2007, 07:08 PM#5
PsychoPif
jAPI ?
05-25-2007, 07:35 PM#6
Vexorian
http://www.google.com/search?q=site%...ient=firefox-a