d3nn16 3 Posted April 9, 2018 Hello, I tried play around with server side scripts inside the configuration file and I succeeded in crashing my ArmA Linux server. This is the part of the config that crashes the server: onDifferentData = "systemChat format [""EVENT=|ON_DIFFERENT_DATA| - USER_ID=|%1| FILE_NAME=|%2|"", _this select 0, _this select 1]; kick (_this select 0)"; onUnsignedData = "systemChat format [""EVENT=|ON_UNSIGNED_DATA| - USER_ID=|%1| FILE_NAME=|%2|"", _this select 0, _this select 1]; kick (_this select 0)"; onHackedData = "systemChat format [""EVENT=|ON_HACKED_DATA| - USER_ID=|%1| FILE_NAME=|%2|"", _this select 0, _this select 1]; kick (_this select 0)"; This is the error output by the server when started with the above configuration: systemd[1]: Started MACE Server. mace[463]: 18:37:27 SteamAPI initialization failed. Steam features won't be accessible! mace[463]: 18:37:27 Cannot register unknown string STR_3DEN_CAMERA_NAME mace[463]: 18:37:27 Cannot register unknown string STR_DIFF_SCENE_ONLY mace[463]: 18:37:27 Cannot register unknown string STR_DIFF_SCENE_AND_MAP mace[463]: 18:37:27 Error context _this select 0);'; mace[463]: 18:37:27 ../lib/Network/networkServer.cpp ClearNetServer:NOT IMPLEMENTED - briefing! mace[463]: File /home/steam/mace/main.cfg, line 23: '.kick': '(' encountered instead of '=' mace[463]: 18:37:27 Extensions: systemd[1]: mace.service: Main process exited, code=exited, status=1/FAILURE systemd[1]: mace.service: Unit entered failed state. systemd[1]: mace.service: Failed with result 'exit-code'. It looks like chaining commands with semicolon separator is not accepted, eg systemChat ...; kick ... By the way, the commands alone work, ie this works (no crash and does what it should do) : onDifferentData = "systemChat format [""EVENT=|ON_DIFFERENT_DATA| - USER_ID=|%1| FILE_NAME=|%2|"", _this select 0, _this select 1]"; onUnsignedData = "systemChat format [""EVENT=|ON_UNSIGNED_DATA| - USER_ID=|%1| FILE_NAME=|%2|"", _this select 0, _this select 1]"; onHackedData = "systemChat format [""EVENT=|ON_HACKED_DATA| - USER_ID=|%1| FILE_NAME=|%2|"", _this select 0, _this select 1]"; this works also : onDifferentData = "kick (_this select 0)"; onUnsignedData = "kick (_this select 0)"; onHackedData = "kick (_this select 0)"; So any possibility to call multiple commands for an event ? How ? Thanks for any help, Regards Share this post Link to post Share on other sites
Terrano. 0 Posted May 23, 2018 see server side scripting You can use only this commands: users, ban id, kick id, level checkFile [id,file index], numberOfFiles id in config.cfg Share this post Link to post Share on other sites