[Help] Setting up a sub-mod for PR

Making or wanting help making your own asset? Check in here
Post Reply
Outlawz7
Retired PR Developer
Posts: 17261
Joined: 2007-02-17 14:59

[Help] Setting up a sub-mod for PR

Post by Outlawz7 »

Been trying to do as title says, but whenever I run the game it keeps loading default BF2 stuff

Here are my client and server archives
fileManager.mountArchive Objects_server.zip Objects
fileManager.mountArchive Menu_server.zip Menu
fileManager.mountArchive Common_server.zip Common

fileManager.mountArchive mods/bf2/Objects_server.zip Objects
fileManager.mountArchive mods/bf2/Menu_server.zip Menu
fileManager.mountArchive mods/bf2/Common_server.zip Common

fileManager.mountArchive mods/pr/objects/Objects_server.zip Objects
fileManager.mountArchive mods/pr/menu/Menu_server.zip Menu
fileManager.mountArchive mods/pr/Common_server.zip Common
fileManager.mountArchive Objects_client.zip Objects
fileManager.mountArchive Common_client.zip Common
fileManager.mountArchive Menu_client.zip Menu
fileManager.mountArchive Fonts_client.zip Fonts

fileManager.mountArchive mods/bf2/Objects_client.zip Objects
fileManager.mountArchive mods/bf2/Common_client.zip Common
fileManager.mountArchive mods/bf2/Menu_client.zip Menu
fileManager.mountArchive mods/bf2/Fonts_client.zip Fonts
fileManager.mountArchive mods/bf2/Shaders_client.zip Shaders

fileManager.mountArchive mods/pr/Common_client.zip Common
fileManager.mountArchive mods/pr/objects/Objects_client.zip Objects
fileManager.mountArchive mods/pr/menu/Menu_client.zip Menu
fileManager.mountArchive mods/pr/menu/Fonts_client.zip Fonts
fileManager.mountArchive mods/pr/shaders_client_pr.zip Shaders
Help? :(
Tonnie
Retired PR Developer
Posts: 2014
Joined: 2007-07-31 14:59

Re: Setting up a sub-mod for PR

Post by Tonnie »

by default bf2 stuff you mean what? it runs the vbf2 or runs ur mod but with no diffrences to vbf2?

HangMan: BF2 Editor, it has very strict limitations memory wise, and crashes all the time. Its like a girl. Treat it with respect and take it slow and you'll get places. Rush and get ahead of yourself and it will turn around and punch you in the mouth
Rambo Hunter
Posts: 1899
Joined: 2006-12-22 18:40

Re: Setting up a sub-mod for PR

Post by Rambo Hunter »

IIRC the PR stuff should go at the top.
it loads items from the bottom going up, so all the vBF2 stuff is overwriting the PR archives
Image
Outlawz7
Retired PR Developer
Posts: 17261
Joined: 2007-02-17 14:59

Re: Setting up a sub-mod for PR

Post by Outlawz7 »

It runs the BF2 menu without any background movies or without any intro movies, although I do have the mod's init.con set up
bf2Engine.playMovie Movies/bss_intro.bik 1
bf2Engine.playMovie Movies/PR_intro.bik 1
Rambo Hunter wrote:IIRC the PR stuff should go at the top.
it loads items from the bottom going up, so all the vBF2 stuff is overwriting the PR archives
Just tried, didn't make any difference.
ballard_44
Retired PR Developer
Posts: 1204
Joined: 2007-05-30 22:47

Re: Setting up a sub-mod for PR

Post by ballard_44 »

+ I don't think you are accessing the files correctly.

The correct set up is more like this...
fileManager.mountArchive menu/Menu_server.zip Menu
fileManager.mountArchive objects/Objects_server.zip Objects
fileManager.mountArchive ../pr/objects/Objects_server.zip Objects
fileManager.mountArchive ../pr/menu/Menu_server.zip Menu
fileManager.mountArchive ../pr/Common_server.zip Common
fileManager.mountArchive ../bf2/Objects_server.zip Objects
fileManager.mountArchive ../bf2/Menu_server.zip Menu
fileManager.mountArchive ../bf2/Common_server.zip Common
so get rid of the mods part and replace with ..

And like others have said, the order is wrong.
Rhino
Retired PR Developer
Posts: 47909
Joined: 2005-12-13 20:00

Re: Setting up a sub-mod for PR

Post by Rhino »

what comes first in the list (closer to the top) is what gets loaded first so in that order you want to be first your mod, then you want pr, then under that you want bf2.

The engine wont reload files its already loaded so what is loaded first is very important.
Image
Outlawz7
Retired PR Developer
Posts: 17261
Joined: 2007-02-17 14:59

Re: Setting up a sub-mod for PR

Post by Outlawz7 »

Got it working now, thanks for the info. :)
Post Reply

Return to “PR:BF2 Community Modding”