Jump to content
d3nn16

Configuration file crashes the server with specific server side script commands

Recommended Posts

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×