Jump to content
Sign in to follow this  
bedges

filename structure...

Recommended Posts

i have a folder structure for a campaign, and i want to have two folders which all missions in the 'missions' foldere can have access to. i know the filename structure for a file within a mission folder is "foldername\filename.ext", but how do i access something farther up the tree?

in html it's "../" - what's the ofp equivalent?

Share this post


Link to post
Share on other sites

"\addon-pbo-name\scriptname.sqs" is the way to call scripts inside of an addon for a mission.

Maybe "\campaign-pbo-name\possible-subfolder-name\filename.ext" ?

Share this post


Link to post
Share on other sites

To access somethin from a PBO it's

"/PBOName/script.sqs"

So for a campain PBO the logical path would be..

"/PBOName/MissionFolder/script.sqs"

or

"../../Campaigns/PBOName/FolderName/script.sqs"

../../ should access the root of the OFP foldler (You can store scripts/files there smile_o.gif )

Try a few variations, hopefully one will reach it..

Sorry I can't be more specific, but I've never tried what your saying (A campaign PBO)

- Ben

Share this post


Link to post
Share on other sites

excellent. the ole ..\ works gentlemen, thanks smile_o.gif

Share this post


Link to post
Share on other sites

DBR_ONIX don't confuse anyone new to editing... wink_o.gif

You have to use \ (backslashs) in ofp missions for things like this, not / (slashs) !

It's really tricky, because the error only shows up after pboing the mission. The ingame editor doesn't care while working on a mission.

Share this post


Link to post
Share on other sites

yep Trapper is right - i reckon such a debatte on ofpec where

exactly this has been figured out at the end.

~S~ CD

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  

×