From 17656ca2a9d6919a72077aec3f84b90aba42222d Mon Sep 17 00:00:00 2001 From: RandumKiwi Date: Mon, 15 Sep 2008 08:56:51 +0000 Subject: [PATCH] HowTo: Edit batch/shell files.. ToDo: Mention apple stuff when resource becomes available git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@2618 e016b1c5-ed68-44aa-a2f7-31cac88cffde --- docs/commandline.xml | 61 +++++++++++++++++++++++++++++++++++++++----- 1 file changed, 54 insertions(+), 7 deletions(-) diff --git a/docs/commandline.xml b/docs/commandline.xml index d31e374b..23b14c13 100644 --- a/docs/commandline.xml +++ b/docs/commandline.xml @@ -4,15 +4,62 @@ - Command-line arguments + + Command-line arguments + -

Command-line arguments

-

About

-

- If you open the file assaultcube.bat (or the respective .sh file in linux) with a text editor, you can add or - change command line options. Some of these settings can be set ingame as well using the menu. -

+

+ Command-line arguments +

+ +

+ About +

+

+ When launching AssaultCube, you need to use a small script file, irrespective of operating system. These script files can be modified + with "switches" to allow different settings to occur on startup. Note: Some of these options can be changed in-game through the menus + without the need to manually edit the script file. +

+ +

+ How to edit the AssaultCube launcher +

+

+ Microsoft Windows +

+

+ In the AssaultCube folder, there is a file named "assaultcube.bat". Right click this and open it with "notepad" to edit the clients launcher. +
Also, after using the server wizard, in this folder will be "server_autoconfigured.bat". + Right click this and open it with "notepad" to edit the servers launcher. +

+

+ All switches are placed after the phrase: bin_win32\ac_client.exe
+ (If you're editing the client, you'll need to add it before the phrase: %1 %2 %3 %4 %5). +

+

+ Remember to save once you're finished! +

+

+ Linux +

+

+ In the AssaultCube folder, there is a file named "assaultcube.sh". Open it with your favourite text editor, such as + Gedit, Nano, etc. to edit the clients launcher. +
Also, after using the server wizard, in this folder will be "server_autogenerated.sh". + Open it with your favourite text editor to edit the servers launcher. +

+

+ All switches for the client must be put inside the quote marks on this line: + CUBE_OPTIONS="--home=${HOME}/.assaultcube --init" +

+

+ All switches for the server must be placed after the phrase: ./server.sh. +

+

+ Remember to save once you're finished! +

+

Client