Home   Help Search Login Register  

Author Topic: Using folders to organize scripts/etc.  (Read 488 times)

0 Members and 2 Guests are viewing this topic.

Offline General Barron

  • Former Staff
  • ****
  • Semper Fi!
Using folders to organize scripts/etc.
« on: 07 Aug 2003, 07:16:11 »
I know there is a tutorial describing how to organize your scripts for your mission. HOWEVER, Toadlife has marked it as defunct, and says that it doesn't work once you pbo your mission. Is there a way to organize your scripts in folders? I swear I've seen missions that do this. How should I? Also, can I put my functions in folders?

Thanks.
HANDSIGNALS COMMAND SYSTEM-- A realistic squad-control modification for OFP
kexp.org-- The best radio station in the world, right here at home! Listen to John Richards!

deaddog

  • Guest
Re:Using folders to organize scripts/etc.
« Reply #1 on: 07 Aug 2003, 15:38:15 »
Yes, you can do that.  Just make a folder and put your scripts in it.

Example:

Your scripts are in the folder called "test"

call the script like this:  [] exec "test\scriptname.sqs"


Offline Mrc

  • Members
  • *
  • International man of mystery
Re:Using folders to organize scripts/etc.
« Reply #2 on: 08 Aug 2003, 22:07:16 »
Avoid Unix style slash ("/"), it does problems after PBOing, use backslash ("\") only and PBOed mission works with no problems (did not tried it on Linux dedic but for example CTI uses it and it works okay). Don't forget that you have to write absolute path even if you're execing script from different one in same directory.