Jump to content
Sign in to follow this  
xendance

Include doesn't work and crashes game

Recommended Posts

I'm having some troubles on structuring my project in a sane way.

Basically I have few scripts in my mission folder. They are organized into subfolders A and B.

Now, I have a script in folder A, that includes like so:

#include "..\B\geometryFunctions.sqf"

Apparently this doesn't work and the #include crashes my game with the following error message (manoeuvres is folder A and utils is folder B):

3naLm0L.png

What to do? I was under the impression that navigating to parent folder worked by .. like in all operating systems.

Edited by Xendance

Share this post


Link to post
Share on other sites

Navigating with .. doesn't work and is not necessary. As you can see, the game is actively trying to squeeze in .. as a second folder. Using just "\B\geometryFunctions.sqf" will work

Edited by tryteyker

Share this post


Link to post
Share on other sites
Navigating with .. doesn't work and is not necessary. As you can see, the game is actively trying to squeeze in .. as a second folder. Using just "\B\geometryFunctions.sqf" will work

So where does \ (root) point to then? Mission folder? How does that work with addons?

I tried

#include "\utils\geometryFunctions.sqf"

But the game crashed with this error message:

eXPZXuE.png

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  

×