Chasm-Reverse icon indicating copy to clipboard operation
Chasm-Reverse copied to clipboard

Command Line Arguments

Open aabluedragon opened this issue 2 years ago • 3 comments

Hello, Does PanzerChasm support cmd line arguments? Mostly useful for 3rd party multiplayer launchers. That would help me add support in NukemNet.

aabluedragon avatar May 02 '23 17:05 aabluedragon

Now there are only commands to set add-on path. But it is not so hard to add some. At least, it is possible to add something, like "--exec" command, which executes command line argument string as console command. And there are already console commands for new game start, save, load, server start, server connect, etc.

Panzerschrek avatar May 02 '23 17:05 Panzerschrek

Assuming there are console commands for setting the listen port, connecting to address:port, setting player name, setting map, etc.. that would probably be enough.

aabluedragon avatar May 02 '23 18:05 aabluedragon

Added "--exec" option: https://github.com/Panzerschrek/Chasm-Reverse/commit/b2932c276ab6337f8cca9550ba4748c9d54a2b35. But some console commands are still incomplete. For example, it is impossible to specify server params, when starting a server.

Panzerschrek avatar May 03 '23 10:05 Panzerschrek