|
Next: Uncrackable activation schemes ...
|
| Author |
Message |
External

Since: May 25, 2006 Posts: 295
|
(Msg. 1) Posted: Fri Jan 18, 2008 2:48 am
Post subject: Command line parameters and output for CoreWin. Archived from groups: rec>games>corewar (more info?)
|
|
|
Hello,
It would be handy if CoreWin would include some command line parameters for
fast processing/testing/battling of warriors and output as well:
Input:
CoreWin <warrior1> <warrior2> <warior3> <-addition settings>
Output (sorted from best to worst score):
<Warrior> <Score>
<Warrior> <Score>
<Warrior> <Score>
(no gui should be displayed, just run the battle, output and exit)
Bye,
Skybuck. >> Stay informed about: Command line parameters and output for CoreWin. |
|
| Back to top |
|
 |  |
External

Since: May 25, 2006 Posts: 295
|
(Msg. 2) Posted: Fri Jan 18, 2008 2:57 am
Post subject: Re: Command line parameters and output for CoreWin. [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
|
|
| Back to top |
|
 |  |
External

Since: May 25, 2006 Posts: 295
|
(Msg. 3) Posted: Fri Jan 18, 2008 3:30 am
Post subject: Re: Command line parameters and output for CoreWin. [Login to view extended thread Info.] Archived from groups: microsoft>public>windows>64bit>general, others (more info?)
|
|
|
Damn good programmers are hard to find these days.
Can't use pmars-server with the pipe line command as follows:
Batch file d:\test.bat:
d:\blabla\pmars-server warrior1.red warrior2.red > d:\output.txt
The pipe only works if in the current folder otherwise it won't work (
output.txt empty).
Not sure if it's a windows xp 64 bit issue or a pmars issue.
Bye,
Skybuck. >> Stay informed about: Command line parameters and output for CoreWin. |
|
| Back to top |
|
 |  |
External

Since: May 25, 2006 Posts: 295
|
(Msg. 4) Posted: Fri Jan 18, 2008 3:35 am
Post subject: Re: Command line parameters and output for CoreWin. [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Ok problem seems to be with the command line parameters:
d:\bla blabla\pmars-server gen1.red > d:\output.txt
won't work.
This will work:
"d:\bla blabla\pmars-server" "d:\bla blablagen1.red" > d:\output.txt
The "" must be included for the parameters as well otherwise pmars can't
find the files, that problably explains it.
Thank god for that, now the output re-direction will probably work just fine
=D
Bye,
Skybuck. >> Stay informed about: Command line parameters and output for CoreWin. |
|
| Back to top |
|
 |  |
External

Since: May 25, 2006 Posts: 295
|
(Msg. 5) Posted: Fri Jan 18, 2008 3:40 am
Post subject: Re: Command line parameters and output for CoreWin. [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Damn the batch file method is working, but not the create process method oh
damn:
CommandLine :=
'"D:\Games\CoreWar\pMARS Server\pmars-server.exe" ' +
'"D:\Games\CoreWar\pMARS Server\' + Warrior1 + '" ' +
'"D:\Games\CoreWar\pMARS Server\' + Warrior2 + '" ' +
'" > D:\Games\CoreWar\pMARS Server\Output.txt" ';
ExecCmdLineAndWait( CommandLine, SW_NORMAL );
Bye,
Skybuck. >> Stay informed about: Command line parameters and output for CoreWin. |
|
| Back to top |
|
 |  |
External

Since: May 25, 2006 Posts: 295
|
(Msg. 6) Posted: Fri Jan 18, 2008 3:43 am
Post subject: Re: Command line parameters and output for CoreWin. [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Wow even a simple command line is not working:
I guess I'll have to generate a batch file first and execute the batch file
maybe that ll work.
CommandLine :=
'pmars-server.exe ' + Warrior1 + ' ' + Warrior2 + ' > Output.txt';
ExecCmdLineAndWait( CommandLine, SW_NORMAL );
Bye,
Skybuck. >> Stay informed about: Command line parameters and output for CoreWin. |
|
| Back to top |
|
 |  |
External

Since: May 25, 2006 Posts: 295
|
(Msg. 7) Posted: Fri Jan 18, 2008 3:47 am
Post subject: Re: Command line parameters and output for CoreWin. [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
|
|
| Back to top |
|
 |  |
External

Since: May 25, 2006 Posts: 295
|
(Msg. 8) Posted: Fri Jan 18, 2008 3:52 am
Post subject: Re: Command line parameters and output for CoreWin. [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
|
|
| Back to top |
|
 |  |
External

Since: May 25, 2006 Posts: 295
|
(Msg. 9) Posted: Fri Jan 18, 2008 3:59 am
Post subject: Re: Command line parameters and output for CoreWin. [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
|
|
| Back to top |
|
 |  |