bedges 0 Posted August 23, 2005 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
Trapper 0 Posted August 23, 2005 "\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
DBR_ONIX 0 Posted August 23, 2005 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 ) 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
bedges 0 Posted August 23, 2005 excellent. the ole ..\ works gentlemen, thanks Share this post Link to post Share on other sites
Trapper 0 Posted August 23, 2005 DBR_ONIX don't confuse anyone new to editing... 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
Chris Death 0 Posted August 24, 2005 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