ExecuteCommands
[ Show snip ]
Change 5 at 2006-04-09 16:24:54 by Herbert Poul (Kahless):
8a9,11 > (Note: all commands will be executed with the working directory set to the game's > directory) >
Change 4 at 2006-04-09 16:17:46 by Herbert Poul (Kahless):
20a21,27 > - Command: the command to be executed. > - Type: > -- LAUNCH: command will be executed when game should only be launched, not connected > -- CONNECT: command will be executed only when the game should connect to a specific server > -- BOTH: command will always be executed. > - Wait: select true if you want GOIM to wait for the process to terminate before the next command in the sequence will be executed. >
Change 3 at 2006-04-09 16:15:29 by Herbert Poul (Kahless):
13a14,15
> {image:name=GOIMscr48_execute_cmds_global.png|width=759|height=541}
>
18a21,22
> {image:name=GOIMscr49_execute_cmds_specific.png}
>
Change 2 at 2006-04-09 15:37:30 by Herbert Poul (Kahless):
19a20,35
>
> Variables which can be used within commands are just strings encapsulated within \{ \} and
> replaced by the actual value.
>
> Altough it might depend on the game the usual variables are:
>
> - gamepath - The full path to the executable file to be launched
> - gamename - The full Name of the game (e.g. Americas Army, Live For Speed)
> - gameid - The GOIM Id of the game (e.g. aao,lfss2)
> - serverip - The IP of the server to connect to (if any) (e.g. 213.202.211.80)
> - serverport - The Port of the server to connect to (if any) (e.g. 7778)
> - serveraddress - Usually the same as \{serverip\}:\{serverport\} except for games where the server is identified by the name, like LFS where it would represent the name
>
> If a variable is not defined it will not be replaced.
>
> Example: \{gamepath\} -connect \{serverip\}:\{serverport\}
Change 1 at 2006-04-09 15:19:56 by Herbert Poul (Kahless):
Since GOIM 1.1.0 it is possible to customize the way games are launched. There are two ways. Either setting globally a command which will be executed before/after a game is launched, or by customizing how a specific game is launched. In any way you can use specific 'variables' which will be replaced values. See below to section 'Variables' ;) 1 Global Execution Commands This allows you to specify a command which should be executed before the game is launched and one which will be executed as soon as the game exits. 1 Game Specific Commands When you want to customize how a game is launched you can customize the whole sequence of commands. 1 Variables