[?] How do you run custom inits within a specific map?

Making or wanting help making your own asset? Check in here
Post Reply
Spyker2041
Posts: 1076
Joined: 2010-03-18 16:25

[?] How do you run custom inits within a specific map?

Post by Spyker2041 »

Hey

Would like to know how to run custom inits for sp within a specific map. I copied the faction_inits.zip folder from the main mod to the map itself, edited specific sp variants.
Then added a serverarchives.con to the map's server.zip containing:
fileManager.mountArchive Levels/sunset_city/faction_inits.zip Factions
The standard init.con for the map is:
run ../../Factions/faction_init.con 1 "ch"
run ../../Factions/faction_init.con 2 "gb"
The init_sp.con for the map is:
run ../../levels/sunset_city/faction_inits/Factions/faction_init.con 1 "ch_sp_variant_spyk"
run ../../levels/sunset_city/faction_inits/Factions/faction_init.con 2 "gb_sp_variant_spyk"
I have also tried
run ../../levels/sunset_city/Factions/faction_init.con 1 "ch_sp_variant_spyk"
run ../../levels/sunset_city/Factions/faction_init.con 2 "gb_sp_variant_spyk"
The map loads fine but it will always run kits in the MP init.con

.....and yes I did add run ../../../Init_sp.con to the gpm_coop gpo
Image
Take a look at my custom PRSP Maps --> Click Here
Take a look at my gameplay vids --> Click Here
Spyker2041
Posts: 1076
Joined: 2010-03-18 16:25

Re: How do you run custom inits within a specific map?

Post by Spyker2041 »

Don't worry I worked it out. For those interested.

I created a folder called factions inside the map's server.zip and put the contents of PR's Faction_inits.zip in there, edited the faction_init.con how I wanted and then made the init_sp.con run
run Factions/faction_init.con 1 "ch_sp_variant_spyk"
run Factions/faction_init.con 2 "gb_sp_variant_spyk"
notice the removed sets of dots before Factions
Image
Take a look at my custom PRSP Maps --> Click Here
Take a look at my gameplay vids --> Click Here
USMC scout sniper
Posts: 487
Joined: 2010-01-03 04:21

Re: How do you run custom inits within a specific map?

Post by USMC scout sniper »

I created a folder in the mods folder called pr_edit then when you change what you want run PR from pr.exe in pr_edit.Hope that helps.
Last edited by USMC scout sniper on 2011-01-01 19:34, edited 1 time in total.
Reason: i spelled in wrong oops
HELL HAVE NO FURY LIKE ME WITH A M249 SAW PIP!
Post Reply

Return to “PR:BF2 Community Modding”