OFPEC Forum

Editors Depot - Mission Editing and Scripting => Arma2 - Editing/Scripting Multiplayer => Topic started by: Vic on 07 Oct 2009, 07:52:28

Title: Server Side Scripting
Post by: Vic on 07 Oct 2009, 07:52:28
http://community.bistudio.com/wiki/ArmA:_Server_Side_Scripting

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
Code: [Select]
regularCheck = "diag_log (_this select 0)";
Code: [Select]
Error in expression <diag_log (_this select 0)>
  Error position: <(_this select 0)>
  Error Missing ;

Example 2
Code: [Select]
regularCheck = "[] exec ""\myscripts\test.sqs"";";
Code: [Select]
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?
Title: Re: Server Side Scripting
Post by: tcp on 07 Oct 2009, 21:37:20
Try regularCheck = "{diag_log (_this select 0);}";
Title: Re: Server Side Scripting
Post by: Rommel92 on 08 Oct 2009, 11:45:35
diag_log doesn't work in default ArmA2. You need the 'developers' version I believe?  :P
Title: Re: Server Side Scripting
Post by: Shuko on 08 Oct 2009, 15:28:58
diag_log works, debug_log doesnt