OFPEC Forum

Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: spoon_fed05 on 05 Mar 2007, 22:32:48

Title: How do i get a script 'associated' with a mission outside of the editor?
Post by: spoon_fed05 on 05 Mar 2007, 22:32:48
hi there....i'm new to mission editing so this may seem a pretty obvious question.....

just made a mission in the ArmA editor and have used the urban patrol script on some of the units.  i have placed the script in "my documents.....Arma\scripts" (you know what i mean!) and all works well if i run the mission in preview mode in the editor.  

however, i have also exported the mission to single and multiplayer and if i try to run the mission from "missions" i get a messege along the lines of the script not being detected (the mission runs but i presume the UPS script isn't running).  i have tried putting the ups.sqf file into the missions folder in the bohemia\armed assault\missions folder but no luck there - anyone know what i'm doing wrong?

also....i have read a lot about PBOTool....i've tried looking for it but not found it (not sure i really need it right now, but you never know) - anyone supply a link?

 ???
Title: Re: How do i get a script 'associated' with a mission outside of the editor?
Post by: Cheetah on 05 Mar 2007, 23:47:26
PBO tools (http://www.ofpec.com/ed_depot/tools.php)

Title: Re: How do i get a script 'associated' with a mission outside of the editor?
Post by: Wolfrug on 06 Mar 2007, 00:21:23
you need to put the ups.sqf into the mission BEFORE you export it to singleplayer :) Having it in the global script folder (which is where you have it now) will work fine when previewing and testing and messing around, but not when actually exporting and handing the thing over to other people. You can find the mission in /.../YourProfile/Missions/YourMissionName.sara. Just pop the script in there and then export, should work ok. Alternatively, use your newly discovered PBO utility and open up the .pbo, pop in the script, and re-pbo the file.

Good luck!

Wolfrug out.
Title: Re: How do i get a script 'associated' with a mission outside of the editor?
Post by: spoon_fed05 on 06 Mar 2007, 09:09:37
aha!  it works!  makes sense now!!   :good:

thanks for the replies!!