paths.ini - AMX file & path control
The paths.ini file in your addons/amx/config
folder stores the location and name for the different components of
AMX. This file is useful if you run multiple servers from a single
folder and want to run different AMX configurations for each. This is
what the default paths.ini file looks like:
; Configuration file for AMX Mod
amx_basedir addons/amx
amx_configdir addons/amx/config
amx_mapsconfigdir addons/amx/config/maps
amx_langdir addons/amx/lang
amx_modulesdir addons/amx/modules
amx_pluginsdir addons/amx/plugins
amx_mapspluginsdir addons/amx/config/maps_plugins
amx_logdir addons/amx/logs
amx_modules addons/amx/config/modules.ini
amx_plugins addons/amx/config/plugins.ini
amx_vault addons/amx/config/vault.ini
csstats_score addons/amx/plugins/csstats.amx
csstats addons/amx/modules/csstats.dat
; Modules autoloading (0 or 1)
autoload_modules 1
; Plugin optimization flags - add these up to get what you want.
; Lowering these may stop crashes on very old CPUs.
; Set 65536 to disable optimizer, NOT 0!
; Credits: AMX Mod X Dev Team
; *************************************************************
; 1 - float arithmetic
; 2 - float comparisons
; 4 - float rounding
optimizer 7
An
example would be running two instances of Counter-Strike from a single
install folder. However each CS server may require very different
configurations and plugins. If we wanted to change the location of the
AMX logs folder, and use a different AMX plugins.ini file, we would
make a change similar to this:
amx_logdir addons/amx/logs_27016
amx_plugins addons/amx/config/plugins_27016.ini
In
the example above we edit the name of the file and folder to reflect
the port in which the second server is running on, but any name will
do.
To specify a different paths.ini file for your server,
copy the paths.ini file to a different name such as paths_27016.ini.
Then you need to add this to your shortcut or startup script:
+localinfo amx_cfg addons/amx/config/paths_27016.ini