Jump to content
Sign in to follow this  
stilpu

Server Side Scripting

Recommended Posts

Asked this on OFPEC as well.

Has anyone managed to make some use of the server VM? I'm trying to run a script on regularCheck, but no matter what I add in that line, I keep getting an error in arma.rpt regarding a missing semicolon.

Example 1

regularCheck = "diag_log (_this select 0)";

Error in expression <diag_log (_this select 0)>
 Error position: <(_this select 0)>
 Error Missing ;

Example 2

regularCheck = "[] exec ""\myscripts\test.sqs"";";

Error in expression <[] exec "\myscripts\test.sqs";>
 Error position: <exec "\myscripts\test.sqs";>
 Error Missing ;

Is the server VM limited to just the kick/ban/users commands?

http://community.bistudio.com/wiki/ArmA:_Server_Side_Scripting

Share this post


Link to post
Share on other sites

Thank you, I was afraid of this.

A word on what I was trying to implement, maybe Suma or someone in the team reads this and reconsiders implementing some of the commands:

I wanted to exec an SQS script which would be dynamically written and contain userids of players to be kicked/banned. Since it's SQS, it will be parsed on every exec, so you could change the userid's on the fly by editing the SQS. This would allow admins to remotely admin the server or even automatically kick for TKs, asset stealing or any other server rules (using a 3rd party script/program which reads arma2.rpt and for logged events from a mission or a mod - via diag_log).

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
Sign in to follow this  

×