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' ;)(Note: all commands will be executed with the working directory set to the game's
directory)
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.
Game Specific Commands
When you want to customize how a game is launched you can customize the whole sequence
of commands.
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.
Variables
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}