Jump to content

Re: Command line parameters and output for CoreWin.


Recommended Posts

Guest Skybuck Flying
Posted

Re: Command line parameters and output for CoreWin.

 

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.

  • Replies 6
  • Created
  • Last Reply

Popular Days

Guest Skybuck Flying
Posted

Re: Command line parameters and output for CoreWin.

 

Re: Command line parameters and output for CoreWin.

 

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.

Guest Skybuck Flying
Posted

Re: Command line parameters and output for CoreWin.

 

Re: Command line parameters and output for CoreWin.

 

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.

Guest Skybuck Flying
Posted

Re: Command line parameters and output for CoreWin.

 

Re: Command line parameters and output for CoreWin.

 

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.

Guest Skybuck Flying
Posted

Re: Command line parameters and output for CoreWin.

 

Re: Command line parameters and output for CoreWin.

 

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

 

See ya.

 

Bye,

Skybuck.

Guest Skybuck Flying
Posted

Re: Command line parameters and output for CoreWin.

 

Re: Command line parameters and output for CoreWin.

 

Hmm nope, still not working, kinda strange.

 

Back to the batch file method ;)

 

Bye,

Skybuck.

Guest Skybuck Flying
Posted

Re: Command line parameters and output for CoreWin.

 

Re: Command line parameters and output for CoreWin.

 

Ok,

 

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

 

Bye,

Skybuck.


×
×
  • Create New...