Jump to content
Sign in to follow this  
gorilla1310

Arma 3 doesn't read scripts

Recommended Posts

I've ARMA 3 BETA.I Created a mission then I created briefing.sqf file,init.sqf and another script called action1.sqs and I copied them into mission folder.Then i re-entered in ARMA 3 EDITOR i created a trigger with this activation line _genACT=player1 addAction ["FREE HOSTAGE","action1.sqs"] but ARMA 3 didn't find any script.Why??

Share this post


Link to post
Share on other sites

Im very new to arma editing, but I tought scripts should use sqf files, not sqs ? Im only using sqs for cutscenes.

By the way, you dont have to reload Arma 3 or your mission when you add script files as far as i know.

Try to add

hint "Test message"; in your trigger to make sure the trigger works ?

Share this post


Link to post
Share on other sites
Im very new to arma editing, but I tought scripts should use sqf files, not sqs ? Im only using sqs for cutscenes.

By the way, you dont have to reload Arma 3 or your mission when you add script files as far as i know.

Try to add

hint "Test message";

in your trigger to make sure the trigger works ?

Arma 3 can use both SQS and SQF scripts - sqs is now outdated and not commonly used. (read: old and busted) - sqf replaced it (read: new hotness) [MiB anyone? lol]

You may need to reload your mission if you update either the description.ext or the init.sqf as they both are checked in some way when the mission is loaded in the editor.

Gorilla

if you named the player player1 in the editor then they will have an action in the scroll menu otherwise it won't show up.

I am not 100% sure myself if you can use local variables in the action of a trigger try removing the _ in front of genACT

why not just put the action line in the initialisation of the hostage - then you can use 'this' instead of player1

Share this post


Link to post
Share on other sites
You may need to reload your mission if you update either the description.ext or the init.sqf

You don't need to restart mission if you change Init.sqf -_-

_genACT=player1 addAction ["FREE HOSTAGE","action1.sqs"] but ARMA 3 didn't find any script.Why??

Maybe your script is empty? trollface.png

+

the title 'Arma 3 doesn't read scripts' - this is really shamefully to write

Edited by JTS_2009

Share this post


Link to post
Share on other sites

I have in the folder 4 files

mission.sqm

init.sqf

action1.sqs

the trigger add the action in my menu but when I push on the action the game show me "Cannot find "action1.sqs"

in action1.sqs

_gen = _this select 0

_caller = _this select 1

_id = _this select 2

; remove the action once it is activated

_gen removeAction _id;

"1" objStatus "DONE";

task_1 setTaskState "SUCCEEDED";

task_2 = player createSimpleTask ["DESTROY THE HELI"];

task_2 setSimpleTaskDestination (getMarkerPos "task_2");

player setCurrentTask task_2;

task_1 = true;

publicVariable "task_1";

Why? I can't resolve this problem

I copied all script in C://DOCUMENTS/uder/ARMA3/missions but in the editor THE GAME doesn't read ANY script

Share this post


Link to post
Share on other sites
THE GAME doesn't read ANY script

the game doesn't 'doesn't read any script', the game 'don't find' any script by you. If the game don't find any script by you, they are probably in wrong place or the file extension is wrong

Share this post


Link to post
Share on other sites

Most everything about that script is wrong. :) It's SQS but the code is half SQF/half SQS. It's using task commands from ArmA 1(!!) and ArmA 2 but not the new functions from ArmA 3. Make sure it's not a text document but instead says it's an SQS file.

Share this post


Link to post
Share on other sites

Can you suggest me a complete script in sqf format that works with the new functions?

Please I'm sorry but it's my frist mission in ARMA 3.In arma 2 editing was very simple but now it's very different

Edited by gorilla1310

Share this post


Link to post
Share on other sites

couple points to reiterate:

-you say you put the files in *User*/Documents/Arma 3/Missions --- you placed them in that folder, or one of the folders within?

--are you using your default profile in-game? if not, you need to put your files in *User/Documents/Arma 3 Other Profiles/Missions

-windows hides extensions by-default, go into explorer options to disable that...otherwise like kylania said, your file might actually be "action1.sqs.txt" but windows will only display "action1.sqs" - stupid, i know :)

-commented lines start with // and not a semi-colon (thats sqs), or multiple lines /* comment */

-every command has to end with a semi-colon, so the first 3 lines of what you posted should have semi-colons at the end.

Edited by dr_strangepete

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  

×