Home   Help Search Login Register  

Author Topic: [Maybe OT] AddOn Manager Code Question  (Read 555 times)

0 Members and 1 Guest are viewing this topic.

RaiN_MaN

  • Guest
[Maybe OT] AddOn Manager Code Question
« on: 03 Jun 2003, 13:04:07 »
Hi

Sorry, this post is probably OT here, but i can't find a better palce to post this one.

I play OPF now for more than a year and i reached a critical amount of AddOns (more than 600Mb). The game is likely to crash with so many addons, but i love all of them ;D and i used them alot in all of my missions. Problem is, i can't play them anymore :'( ;D. The game crashes every 5 secs, after a few tests i noticed the problem's root is the amout of AddOns so i decided to leave only AddOns i need to play the current mission and cut the rest into another folder.
Obiously this is time and HD space consuming, so i decided to code a little AddOn Manager. It allows to select the mission you wanna play from a list and the soft checks which addons you need to play the mission (parsing the mission file). You can select and deselect every single addon, i think it will be pretty usefull.
Only one thing left me a bit curious, i don't wanna copy all the AddOns everytime i start a mission, obviuosly, so i thought instead of moving the file i just rename the extension. Maybe from .pbo to .pb0 or whatelse comes in my mine.
Just wondering if this would work or if the games maybe loads the addons even if they have different extensions.
Any ideas or comments would be greatly appreciated  ;D

Thx in advance

RED

  • Guest
Re:[Maybe OT] AddOn Manager Code Question
« Reply #1 on: 03 Jun 2003, 15:00:44 »
It will work, the DKM mod have already done something like this. Why not just put your addons into mod folders? That way only the addons in the selected mod folder will be loaded.

RED

RaiN_MaN

  • Guest
Re:[Maybe OT] AddOn Manager Code Question
« Reply #2 on: 03 Jun 2003, 18:02:25 »
Sounds intresting! (i'm not really uptodate ;D)
Can you plz point me somewhere i can get some info on this mod folder stuff?

Thx again!

RED

  • Guest
Re:[Maybe OT] AddOn Manager Code Question
« Reply #3 on: 03 Jun 2003, 18:32:07 »
If you search the official forums on this you will find some info, a quick start would be to do this:

1. Make a folder in your OFP dir, name it whatever you want.
2. Make a folder called Addons inside the folder you made before.
3. Put all the addons you want to load when OFP starts up in the addons folder.
4. Make a shortcut to your resistance executable file, with something like:

-mod=yourfoldername in the target of the shortcut.

You can set up lots of mod folders, one for BAS addons one for the nam pack etc.

Hope that helped you :)

RED
« Last Edit: 03 Jun 2003, 18:32:57 by RED »