Jump to content
Sign in to follow this  
UltimateBawb

Where do I put the .sqf files?

Recommended Posts

Like this?

C:\Users\Jack\Documents\ArmA 2\MPMissions\Shapur.Shapur_BAF\buyM4A1

That doesn't work.

Share this post


Link to post
Share on other sites

Scripts will be in the same folder of the mission your trying to add to the mission, so for the editor you will need to find your mission

to add the script too, as stated it goes into the user folder.

for example:

C:\Documents and Settings\Gunter Severloh\My Documents\ArmA 2\MPMissions

for sp:

C:\Documents and Settings\Gunter Severloh\My Documents\ArmA 2\missions

understand?, does it work for you, I have win xp btw, so the folder setup may be different if you have another OS.

Share this post


Link to post
Share on other sites

From the Wiki:

File only reference

_handle = [] execVM "test.sqf";

Searches in:

.\arma2\missions\CurrentMission.CurrentWorld\test.sqf

.\arma2\scripts\test.sqf

.\arma2\test.sqf

Is this still valid?

So far I've been copying all my scripts folders from one mission to another, and I was always wondering if there was a better way, like having your scripts library in one single place for example. Updating one single line is a pain to propagate this way. Anyone knows what's the proper way to deal with script libraries (other than copy them from mission to mission)?

Share this post


Link to post
Share on other sites

I believe that works.... problem is if your missions are multiplayer you'll have to make sure everyone has your script folder. When it's included in the mission they don't need the script folder.

Share this post


Link to post
Share on other sites

Thanks twirly, I've just found that out the hard way :).

I was thinking about making a module, but you know, no script is never really finished, and I'm reluctant to having to restart the game every time I change something.

So what do you and others do then? Just copy the updated library over to every mission folder you have, like I was doing?

Share this post


Link to post
Share on other sites

I spend my life trying to make generic scripts, but without a doubt I end up customizing it in some way for the mission at hand. This is probably just because I can. One line here... one line there and before you know it... it's specific to the mission. So... yep I copy the scripts I need to the new mission and go from there.

Others might do it differently.

EDIT: My function library is a different story. These usually survive any editing and remain intact.

Share this post


Link to post
Share on other sites

Alright then. I'll keep updating all folders. Worth a try.

One line here... one line there and before you know it... it's specific to the mission.

Hippie :p.

Share this post


Link to post
Share on other sites

where would i put dms sqf files (DMS_STATIC_BASE_M3E_PROJECT), (mercbase_project) files on a hosthavoc rented server?

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  

×