[?] Making a Mod Xpack Compatible?

Making or wanting help making your own asset? Check in here
Post Reply
sw33tsp0t
Posts: 4
Joined: 2010-01-25 18:20

[?] Making a Mod Xpack Compatible?

Post by sw33tsp0t »

Hi, I would like to add special forces maps/vehicles/equipment to my mod, how Can I make my Special Forces (Xpack) Compatible so I can play SF Maps as well as BF2 Maps? thanks!
Serbiak
Posts: 608
Joined: 2008-01-22 16:40

Re: Making a Mod Xpack Compatible...

Post by Serbiak »

You do realize that this is the Project Reality forum right?

So I wonder why do you still want to play BF2 and or Special forces when you have PR?


Even if you don´t want to try PR you should probably try a different forum then right? Like a BF2 forum for example.
Image

"Remember, your penis size is proportional to your post count...or was it inversely proportional...I can't remember"
- [R-CON]Rudd -
Sniperdog
Retired PR Developer
Posts: 1177
Joined: 2009-02-27 00:06

Re: Making a Mod Xpack Compatible...

Post by Sniperdog »

You need to edit two files:

"clientarchives.con"

and

"serverarchives.con"

both in your mod's main directory. You will need to add a few lines in, I will use the pr directory as an example:



Client archives edited (changes are underlined):

Code: Select all

rem checking for file that was auto generated in 0856

var v_ex
fileManager.fileExists shaders_client_pr.zip -> v_ex

if v_ex == 1
    fileManager.deleteFile shaders_client_pr.zip
endIf

fileManager.copyFile shaders_client.zip shaders_client_pr.zip

rem custom mount for testing new fonts

fileManager.mountArchive menu/Fonts_custom.zip Fonts

rem patch
fileManager.mountArchive objects/objects_client_patch2.zip Objects
fileManager.mountArchive menu/menu_client_patch2.zip Menu

fileManager.mountArchive menu/fonts_client_patch1.zip Fonts
fileManager.mountArchive objects/objects_client_patch1.zip Objects
fileManager.mountArchive menu/menu_client_patch1.zip Menu
fileManager.mountArchive common_client_patch1.zip Common


fileManager.mountArchive Common_client.zip Common
fileManager.mountArchive objects/Objects_client.zip Objects
fileManager.mountArchive menu/Menu_client.zip Menu
fileManager.mountArchive menu/Fonts_client.zip Fonts

[u]fileManager.mountArchive ../xpack/Objects_client.zip Objects
fileManager.mountArchive ../xpack/Common_client.zip Common
fileManager.mountArchive ../xpack/Menu_client.zip Menu
fileManager.mountArchive ../xpack/Fonts_client.zip Fonts
[/u] 
fileManager.mountArchive ../bf2/Objects_client.zip Objects
fileManager.mountArchive ../bf2/Common_client.zip Common
fileManager.mountArchive ../bf2/Menu_client.zip Menu
fileManager.mountArchive ../bf2/Fonts_client.zip Fonts
fileManager.mountArchive shaders_client_pr.zip Shaders
[u]fileManager.mountArchive ../xpack/shaders_client.zip Shaders[/u]
fileManager.mountArchive ../bf2/shaders_client.zip Shaders

Server archives edited (changes are underlined):

Code: Select all

fileManager.mountArchive menu/menu_server_patch2.zip Menu
fileManager.mountArchive objects/objects_server_patch2.zip Objects
fileManager.mountArchive menu/menu_server_patch1.zip Menu
fileManager.mountArchive common_server_patch1.zip Common
fileManager.mountArchive objects/objects_server_patch1.zip Objects
fileManager.mountArchive objects/Objects_server.zip Objects
fileManager.mountArchive menu/Menu_server.zip Menu
fileManager.mountArchive Common_server.zip Common
[u]fileManager.mountArchive ../xpack/Objects_server.zip Objects
fileManager.mountArchive ../xpack/Menu_server.zip Menu
fileManager.mountArchive ../xpack/Common_server.zip Common[/u]
fileManager.mountArchive ../bf2/Objects_server.zip Objects
fileManager.mountArchive ../bf2/Menu_server.zip Menu
fileManager.mountArchive ../bf2/Common_server.zip Common
Remember: Order Matters! You are telling the mod what files to load and in what order as your mod runs...

Additionally, if you intend to use the editor to add things for special forces be sure to add all of the files outlined in bold to your edit directory. When you are extracting files extract the xpack files first and then extract the ones for your mod. If you have any questions about any of this feel free to ask...
Last edited by Sniperdog on 2010-01-31 14:30, edited 2 times in total.
Image

Image

Will Stahl aka "Merlin" in the Squad community
Post Reply

Return to “PR:BF2 Community Modding”