Warning: include(/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php): failed to open stream: No such file or directory in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Warning: include(): Failed opening '/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php' for inclusion (include_path='.:/usr/local/lib/php') in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Notice: Undefined index: OFPEC in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152
    Home   Help Login Register  

Author Topic: Shared Sounds/Scripts in Campaign  (Read 3261 times)

0 Members and 1 Guest are viewing this topic.

Offline SaOk

  • Missions Depot Staff
  • *****
    • My youtube profile
Shared Sounds/Scripts in Campaign
« on: 15 Jun 2011, 20:42:14 »
Is it possible to create a shared folder in campaign from where all the campaign-missions could pick resources for use? I found an "separate addon for sounds"-example, but I wouldnt want to have separate files.

Offline h-

  • OFPEC Site
  • Administrator
  • *****
  • Formerly HateR_Kint
    • OFPEC
Re: Shared Sounds/Scripts in Campaign
« Reply #1 on: 16 Jun 2011, 08:07:05 »
It seems that at least the official campaign(s) are addons so you could have a shared script and sound folder in the root of that pbo.

Just de-pbo BIS missions.pbo from the game's addon folder and you'll see how they did it; inside the missions.pbo they have a folder campaign so at least in theory (and I don't see it wouldn't work) you could store that shared sound and scipt folders in the root of the pbo.

As in your campaign pbo would include:
- campaign folder
- sounds folder
- scripts folder

You could even make a config in the sounds folder defining the sounds so you wouldn't have to add them in each mission's description.ext..

:dunno:
Project MCAR   ---   Northern Fronts   ---   Emitter 3Ditor
INFORMATIVE THREAD TITLES PLEASE. "PLEASE HELP" IS NOT ONE..
Chuck Norris can divide by zero.

Offline SaOk

  • Missions Depot Staff
  • *****
    • My youtube profile
Re: Shared Sounds/Scripts in Campaign
« Reply #2 on: 16 Jun 2011, 17:04:22 »
Thanks. I will check that missions.pbo-addon at some point. I wish the campaign-pbo´s would be more compatible with shared files which would currently lower my campaign at least 50%. But maybe that addon-way will not be very difficult at the end.