MetaMod:Source plugin for Source 2 that authorizes a game server account by +sv_setsteamaccount
command line parameter or autoexec command.
ambuild
command is available via the PATH
environment variable;mkdir build
& cd build
in the root of the plugin folder.python3 ../configure.py --plugin-name={PLUGIN_NAME} --plugin-alias={PLUGIN_ALIAS} -s {SDKNAME} --targets={TARGET} --mms_path={MMS_PATH} --steamworks_path={STEAMWORKS_PATH} --hl2sdk-root={HL2SDKROOT}
where:
{PLUGIN_NAME}
should be the plugin name which is used for the resulting binary name and folder naming scheme (this doesn't affect the plugin name you'd see in the plugin list if you don't modify the base plugin functions);{PLUGIN_ALIAS}
should be used to set the plugin alias that is used as a short hand version to load, unload, list info etc via the metamod-source menu (example being meta unload server_steam_account
, where server_steam_account
is the alias);{SDKNAME}
should be the hl2sdk game name that you are building for;{TARGET}
should be the target platform you are targeting (x86
or x86_64
);{MMS_PATH}
should point to the root of the metamod-source folder;{STEAMWORKS_PATH}
should point to the root of the SteamWorks project folder;{HL2SDKROOT}
should point to the root of the hl2sdk's folders, note that it should not point to the actual hl2sdk-GAME
folder but a root parent of it;{MMS_PATH}
& {HL2SDKROOT}
could be put as a PATH
environment variables, like MMSOURCE112=D:\mmsource-1.12
& HL2SDKCS2=D:\hl2sdks\hl2sdk-cs2
(note the metamod version and that here hl2sdk environment variable should point directly to the game's hl2sdk folder and not to the root of it!)python3 ../configure.py --plugin-name=server_steam_account --plugin-alias=server_steam_account -s cs2 --targets=x86_64 --mms_path=D:\mmsource-1.12 --steamworks_path=D:\steamworks_sdk --hl2sdk-root=D:\hl2sdks
ambuild
in the \build
folder to compile the plugin.\build\package
folder.\package
. Be aware that plugins get loaded either by corresponding .vdf
files (automatic step) in the metamod folder, or by listing them in addons/metamod/metaplugins.ini
file (manual step).http://wiki.alliedmods.net/Category:Metamod:Source_Development