MyCampaign/Scripts/ directory

OFP editing, missions, modeling, textures, configs, but not islands

Moderators: Lone Wolf, Snake Man

Snake Man
Commander-In-Chief
Posts: 9833
Joined: 2000-07-31 22:01:01
Gaming Interests: ArmA, ArmA 2, Falcon 4.0 and OFP.
Editing Interests: All, I (try) to edit everything.
Location: PMC

MyCampaign/Scripts/ directory

Post by Snake Man »

It amazes me why is it only now that I discover this feature. When you're making campaign, you can place music and sound into the main campaign root dir, thats nothing new, but now I discovered from Killswitch (thanks!) that if you place a directory called Scripts/ into the campaign root dir, OFP checks all scripts first from this directory.

Think about all those scripts that are duplicated on the many mission dirs, these are for example ai.sqs Bremmers improved AI, CoC Command Engine various script directories, all effects scripts, helicopter operations scripts, etc etc.

It saves space and is much more easier to edit when the script is only in the main root directory.

All PMC made campaigns just got tons of smaller and more efficient because of this feature. Big thanks goes to Killswitch for letting me know!
PMC TACTICAL FORUM AND OTHER WEBSITES GO DOWN SEPTEMBER 13TH 2025 IF WEB HOSTING YEARLY FEES ARE NOT PAID.

IF YOU WANT TO KEEP USING PMC WEBSITES INCLUDING THIS FORUM, DOWNLOAD ADDONS, READ TUTORIALS, ETC, PLEASE HELP BY SUPPORTING PMC.

Support PMC

Please help to keep PMC websites online, if domains are let to expire then it will be "game over, man!".
kutya
Recruit
Posts: 18
Joined: 2006-09-19 12:10:20

Post by kutya »

Ha!

If I did know about this, it would save me much work! In a 9 phased GDCE dyn camp, I had 9 copies of all the scripts. I tried to make a thing you described, but didn't manage (I mean, until now). Thanks!
Snake Man
Commander-In-Chief
Posts: 9833
Joined: 2000-07-31 22:01:01
Gaming Interests: ArmA, ArmA 2, Falcon 4.0 and OFP.
Editing Interests: All, I (try) to edit everything.
Location: PMC

Post by Snake Man »

I have now moved all the generic scripts in all of my campaigns except in PMC Fury (which I think has very few scripts). Of course I didn't test others than the most fierce CoC CE campaigns, they ran just fine. As the scripts are identical on all mission dirs, they work perfect on the MyCampaign/Scripts/ directory.

Few campaigns dropped like 10mb in size, that is just sweet!
PMC TACTICAL FORUM AND OTHER WEBSITES GO DOWN SEPTEMBER 13TH 2025 IF WEB HOSTING YEARLY FEES ARE NOT PAID.

IF YOU WANT TO KEEP USING PMC WEBSITES INCLUDING THIS FORUM, DOWNLOAD ADDONS, READ TUTORIALS, ETC, PLEASE HELP BY SUPPORTING PMC.

Support PMC

Please help to keep PMC websites online, if domains are let to expire then it will be "game over, man!".

Return to “OFP Editing”