Page 1 of 1

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

Posted: 2011-01-01 18:51
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

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

Posted: 2011-01-01 19:09
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

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

Posted: 2011-01-01 19:33
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.