Welcome to GameHourz.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Command line parameters and output for CoreWin.

 
   Game Forums (Home) -> Core War RSS
Next:  Uncrackable activation schemes ...  
Author Message
Skybuck Flying

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
Login to vote
Skybuck Flying

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?)

pmars-sdl comes with pmars-server (no gui)

I'll give that a try.

Bye,
Skybuck.

 >> Stay informed about: Command line parameters and output for CoreWin. 
Back to top
Login to vote
Skybuck Flying

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
Login to vote
Skybuck Flying

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
Login to vote
Skybuck Flying

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
Login to vote
Skybuck Flying

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
Login to vote
Skybuck Flying

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?)

Oh I see problem now.

pmars-server requires .red extension to be present in filenames hehehe.

would help if the program at least output some kind of message so I know
it's working.

Anyway I'll probably get it working now Wink

See ya.

Bye,
Skybuck.
 >> Stay informed about: Command line parameters and output for CoreWin. 
Back to top
Login to vote
Skybuck Flying

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?)

Hmm nope, still not working, kinda strange.

Back to the batch file method Wink

Bye,
Skybuck.
 >> Stay informed about: Command line parameters and output for CoreWin. 
Back to top
Login to vote
Skybuck Flying

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?)

Ok,

The batch file method is working now, so I'll use that.

Bye,
Skybuck.
 >> Stay informed about: Command line parameters and output for CoreWin. 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Score Surface for 94nop - Hi, some anonymous person (still called "bvowk" for simplicity ;-) is so kind to provide access to a pile of computers. I have suggested to calculate one score surface for standard settings. It takes roughly 1000 times the time of one "no...

Bug in pMARS - Hi, either I don't know how EQUs work or I have found a bug in the parser of pMARS. So far I cound pin it down to: ;redcode-tiny ;name test ;assert CORESIZE == 800 v3 EQU 3 * (3 / 2 + 1) + 3 v4 EQU (CORESIZE - v3) dat.f v3, v4 With the..

KOTH.ORG: Status - ICWS Experimental 94 03/06/06 - Weekly Status on 03/06/06 -=- irc.KOTH.org is up! Meetings held in #corewars -=- Tons of new features on www.KOTH.org/koth.html pages -=- *FAQ* page located at: www.KOTH.org/corewar-faq.html Current Status of the KOTH.ORG ICWS Experimental 94..

KOTH.ORG: Status - MultiWarrior 94 03/06/06 - Weekly Status on 03/06/06 -=- irc.KOTH.org is up! Meetings held in #corewars -=- Tons of new features on www.KOTH.org/koth.html pages -=- *FAQ* page located at: www.KOTH.org/corewar-faq.html Current Status of the KOTH.ORG Multiwarrior 94 CoreWar..

KOTH.ORG: Status - 94 No Pspace 03/06/06 - Weekly Status on 03/06/06 -=- irc.KOTH.org is up! Meetings held in #corewars -=- Tons of new features on www.KOTH.org/koth.html pages -=- *FAQ* page located at: www.KOTH.org/corewar-faq.html Current Status of the KOTH.ORG 94 No Pspace CoreWar Hill...
   Game Forums (Home) -> Core War All times are: Ekaterinburg, Islamabad, Karachi, Tashkent (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]