xendance 3 Posted February 17, 2014 (edited) 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): What to do? I was under the impression that navigating to parent folder worked by .. like in all operating systems. Edited February 17, 2014 by Xendance Share this post Link to post Share on other sites
tryteyker 28 Posted February 17, 2014 (edited) 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 February 17, 2014 by tryteyker Share this post Link to post Share on other sites
xendance 3 Posted February 17, 2014 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: Share this post Link to post Share on other sites
na_palm 19 Posted February 17, 2014 (edited) The root for the include is equal to the file path of the file you put it in. https://community.bistudio.com/wiki/PreProcessor_Commands#.23include Erase the leading backslash and check path and filename, then it will function. greetings Na_Palm Edited February 17, 2014 by Na_Palm Share this post Link to post Share on other sites