Home   Help Search Login Register  

Author Topic: Can not find file inside a folder  (Read 620 times)

0 Members and 1 Guest are viewing this topic.

Offline Kuro

  • Former Staff
  • ****
  • 2./FschJgBtl 251 Green Devils
    • VBS2 Mission Download Site
Can not find file inside a folder
« on: 12 Oct 2004, 02:22:26 »
Hallo,

i made a single player mission with a lot of pictures and scripts. To keep them organized i put them in several folders. This works very well in the editor. But yesterday i decided to save it as a Singleplayer mission: Result: The mission begins with a error messages (can not find xxx.jpg / xxx.sqs), and some scripts (the one in the folders) are missing.

Anyone else had this problem before ?

Is there a workaround. (Reinstall OFP,  Use Make PBO, etc.

Any help is greatly appreciated.

Greetings
Kuro

Offline nominesine

  • Former Staff
  • ****
  • I'm NOT back!
    • The IKB Forum
Re:Can not find file inside a folder
« Reply #1 on: 12 Oct 2004, 10:08:12 »
... yesterday i decided to save it as a Singleplayer mission: Result: The mission begins with a error messages (can not find xxx.jpg / xxx.sqs), and some scripts (the one in the folders) are missing...

I did not understand exactly what you did with your folder

Did you use "Save as SP Mission" in the editor? That function only moves the root-folder of the mission including the mission.sqm to OFP:s missionfolder. All other files (scripts, sounds, briefing, overview, etc) must be moved manually.

Solution: open explorer, copy the entire folder (with all subcategories) from c://programfiles/operation flashpoint/users/USERNAME/mission/MISSIONNAME and paste it into the OFP missionfolder c://programfiles/operation flashpoint/missions

Now it should work  ;D

If you use separate subfolders for pictures and scripts you must include the folder name in your path when you call a script or directs the overview to a picture, but since your mission works in the editor I suppose you already did this.
OFPEC | Intel Depot
RETARDED Ooops... Retired!

Offline KTottE

  • Former Staff
  • ****
Re:Can not find file inside a folder
« Reply #2 on: 12 Oct 2004, 14:29:26 »
That's simply not true.

If you have a mission named MyCoolMission with a lot of stuff in the folder, and save it to SP Missions as MyOtherCoolName, it will just save the mission.sqm. If you save it with the name it has however, it will work.
"Life is not a journey to the grave with the intention of arriving safely in a pretty and well preserved body, but rather to skid in broadside, thoroughly used up, totally worn out, and loudly proclaiming 'WOW What a Ride!'"

Offline h-

  • OFPEC Site
  • Administrator
  • *****
  • Formerly HateR_Kint
    • OFPEC
Re:Can not find file inside a folder
« Reply #3 on: 12 Oct 2004, 16:17:43 »
I'm 1000% with KTottE...

I have never heard anyone doing the stuff like nominesine says...
How on earth would BIS missions have sounds and music folders if the exporter in the mission editor wouldn't export everything ::)
After all, all BIS missions have been made with that same editor...

Has always worked fine for me, with multiple folders and s**t...
Project MCAR   ---   Northern Fronts   ---   Emitter 3Ditor
INFORMATIVE THREAD TITLES PLEASE. "PLEASE HELP" IS NOT ONE..
Chuck Norris can divide by zero.

Offline nominesine

  • Former Staff
  • ****
  • I'm NOT back!
    • The IKB Forum
Re:Can not find file inside a folder
« Reply #4 on: 12 Oct 2004, 23:17:32 »
 :D Really?!?  :D

I've always been cutting and pasting my folders to avoid the very same problem my self. Think the reason is I've lost a couple of folders in my early editing days, but that was over 2 years ago. Thanks for the advice. I think it will save me some time in the future
OFPEC | Intel Depot
RETARDED Ooops... Retired!

Offline Tyger

  • Former Staff
  • ****
  • I was at OFPEC when it still had dirt floors...
    • OFPEC
Re:Can not find file inside a folder
« Reply #5 on: 13 Oct 2004, 03:52:48 »
@Kuro
When you executed the scripts did you include the folder they are included in, such as
Code: [Select]
this exec "\scripts\myscript.sqs"

make sure that your folders are spelled the exact same way, too. OFP has a wierd bug sometimes of noting spaces after a file name like "loonfile " versus "loonfile"

also, the '\' infront of the line of code is very important in some programs. They may be 'confused' if you don't include it because it tells the program to look in the file it's currently in for the file you looking for, if that makes sense.

*Need :beat: sleep :P *
"People sleep soundly at night only because rough men stand ready to do violence on their behalf." - George Orwell

MSG Mike Everret - We Will Never Forget - '75-'08

Offline Kuro

  • Former Staff
  • ****
  • 2./FschJgBtl 251 Green Devils
    • VBS2 Mission Download Site
Re:Can not find file inside a folder
« Reply #6 on: 14 Oct 2004, 06:35:48 »
Thanks to you all,
you really saved my week (and my believe in OFP).  With your help i solved the problem: Sometimes i wrote the path with "/", sometimes with "\". The actual issue is it works perfect in the editor (strange, but it is really so). BUT if you export it to SP only "\"  works correctly.
I will you all mention in the readme of my Mission "Seals in Nam 3".
Greetings
Kuro