Jump to content
Sign in to follow this  
Twix

include from parent folders?

Recommended Posts

According to the ARMA wiki for macros, you can use #include "..\filename.sqf" to go back a folder level.

However, I just can't get that to work. The game crashes and gives me " \foldername\..\filename.sqf not found as if it's not understanding the ..\ whatsoever

Was it removed for arma 3? Any way around that but to copy the same include files all over the place?

Share this post


Link to post
Share on other sites

I Think the problem is the "root" Folder where your mission.sqm is the End of the line. What you really wannt to do?

Share this post


Link to post
Share on other sites

Well, I have a define.sqf for example in the mission folder with just #define __DEBUG__

and I want to include that in all my scripts

Works great for the couple scripts in the root mission folder, but for my \scripts\ files, it just can't find it.

Share this post


Link to post
Share on other sites

what? no, it's the other way around that I have problems, the include is in my root mission folder and I want to include it from my script\ folder. :)

Share this post


Link to post
Share on other sites

Not possible to include files from parent folders. Only from same folder or it's children.

Share this post


Link to post
Share on other sites

Thanks, guess I'll have to copy everything everytime (and that explains the copy.bat files you can find in some projects!)

The Bohemia wiki might need updating on that: here

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  

×