Chris Wilkinson 3 Posted August 31, 2017 Why is the Addaction with a title and a .sqf breaking the game? I get a preprocessor error with it and it doesn't execute the .sqf. OnAct: myaction = player addAction ["Insert Ear Defence", "EarDefence.sqf"] Error: Preprocessor failed with error - Invalid file name (empty filename) Share this post Link to post Share on other sites
das attorney 857 Posted September 1, 2017 So what's in your eardefence.sqf? Share this post Link to post Share on other sites
Midnighters 152 Posted September 1, 2017 Even further so, does it exist? Share this post Link to post Share on other sites
Chris Wilkinson 3 Posted September 4, 2017 The ear defence script is fine. If I call it straight up it will work. I just tried the following line from ArmA 2 and got the same error. act1 = u1 addaction ["Join group","join.sqf",0,1, true, true,"test2"]; This following line works but where does the call for the script go? this addAction [ "Ask for help.", { (_this select 0) removeAction (_this select 2); (_this select 0) setUnitPos "UP"; [(_this select 0)] joinSilent (group (_this select 1)); }, nil, 6, true, true, "", "_this distance _target < 5" ]; Share this post Link to post Share on other sites
f2k sel 164 Posted September 5, 2017 I've never seen a Preprocessor error, have you verified the game in steam to make sure all files are installed correctly. this worked fine for me. act1 = u1 addaction ["Join group","join.sqf",0,1, true, true,"test2"]; Share this post Link to post Share on other sites
Chris Wilkinson 3 Posted September 5, 2017 Absolutley. Everything is just fine. The error always happens with variations of addaction. Share this post Link to post Share on other sites