Ok...I know some of you have been wondering how to add peds to interiors...etc and now I will show you how to do it. It is very easy and once my Bully Editor is done it will be even easier. For now this is how to do it:
1. extract every file from trigger.img to a directory of your choosing. You can use any img editor you want for this.
2. open population.dat. Best app to use for this is notepad++ which keeps the scripting intact and allows for easier editing.
3. look in population.dat for the following line:
POPULATIONDATAyou will see this line several times in population.dat. Each area with peds has this before the main ped code.
4. You should see somthing that looks about like this:
POPULATIONDATA
BEGIN
POPULATION_DAY
BEGIN
TOTAL 60
PREFECT 5
NERD 5
JOCK 5
DROPOUT 5
GREASER 5
PREPPY 5
STUDENT 5
COP 5
TEACHER 5
TOWNPERSON 5
SHOPKEEP 5
BULLY 5
END
POPULATION_CLASS
BEGIN
TOTAL 60
PREFECT 5
NERD 5
JOCK 5
DROPOUT 5
GREASER 5
PREPPY 5
STUDENT 5
COP 5
TEACHER 5
TOWNPERSON 5
SHOPKEEP 5
BULLY 5
END
POPULATION_NIGHT
BEGIN
TOTAL 60
PREFECT 5
NERD 5
JOCK 5
DROPOUT 5
GREASER 5
PREPPY 5
STUDENT 5
COP 5
TEACHER 5
TOWNPERSON 5
SHOPKEEP 5
BULLY 5
END
POPULATION_CURFEW
BEGIN
TOTAL 60
PREFECT 5
NERD 5
JOCK 5
DROPOUT 5
GREASER 5
PREPPY 5
STUDENT 5
COP 5
TEACHER 5
TOWNPERSON 5
SHOPKEEP 5
BULLY 5
END
END
5. edit the following parts in each interior you want to add peds to:
TOTAL 60
PREFECT 5
NERD 5
JOCK 5
DROPOUT 5
GREASER 5
PREPPY 5
STUDENT 5
COP 5
TEACHER 5
TOWNPERSON 5
SHOPKEEP 5
BULLY 5
change each number to the number of peds you want for each cliche to spawn in that interior...make sure you add all the values together and put the result of that for the total which is the first value in the listing. otherwise the game will likely crash.
6. once you have the population.dat file edited however you like either replace the population.dat file in trigger.img or use my img editor and make a new file...name it trigger.img in the same dir as the old one. and Add all the extracted files back in...save and then you are done.
As always. if I have missed anything please let me know in this thread and I will update the tutorial accordingly.
*UPDATE*Here is a list of the trigger names of all the interiors and what they are so you can use this as a reference when changing the population data for each interior.
RichArea = Rich area of town where the preppies generally live.
DownTown = Self Explanatory
PoorArea = This is generally where the dropouts live at
IndustrialArea_DropOutEnclave = This is the dropouts hideout in the industrial area
DT_GASSTATION = This is for the gas stations (all of them)
POOR_TENEMENTS = The tenements near the poor area
Rich_Area_Corner_Courtyard = I think this is around where derby lives.
Industrial_Sawmill = The sawmill in the industrial area
Carnival = The Carnival
Industrial_Docks = The docks in the industrial area
SchoolArea = Inside the school
RichArea_DownTown = This is the rich area of downtown where the preppy type shops are
DT_ComicShop = The Comic books shop
DT_DropOutAlley = The alley that the dropouts hang out in
DT_GreaserAlley = The alley that the greasers hang out in
Rich_GreaserAlley = Same as above but in the rich area of town
Poor_DropTurf1 = The dropout's turf in the poor area of town
GraveYard = The old graveyard
Jocks = Jocks savepoint -
thx to InsanitygamesNerds = Nerds savepoint -
thx to InsanitygamesPreps = preps savepoint -
thx to InsanitygamesGreasers = greasers savepoint -
thx to InsanitygamesFieldOverride = This overrides the population settings for the football field
Jocks_FootballField = Football field population settings. Can be overridden by the above setting
School_Basketball_Court = The basketball court/gym
PopRoads1 = Controls the population on the roads
BullyTurf = The bully's turf
BadPlaceTrigger = Not sure what this one is atm.
OutsideSchool1 = Outside the school in the schoolyard
SchoolBikeTrig = This controls how many if any at all bikes spawn around the schoolyard
You can also control vehicle spawning as well. The vehicle spawning is done in the same file (population.dat) and it edited for each area with vehicles as follows:
search for
AMBIENTVEHICLEDATA and under it a few lines you will see somthing similar to the following:
AMBIENTVEHICLEDATA
BEGIN
AMBIENTVEHICLES_DAY
BEGIN
TOTAL 30
CAR 10
BIKE 20
POLICECAR 0
END
AMBIENTVEHICLES_CLASS
BEGIN
TOTAL 30
CAR 10
BIKE 20
POLICECAR 0
END
AMBIENTVEHICLES_NIGHT
BEGIN
TOTAL 30
CAR 10
BIKE 20
POLICECAR 0
END
AMBIENTVEHICLES_CURFEW
BEGIN
TOTAL 30
CAR 10
BIKE 20
POLICECAR 0
END
END
Simply edit this part like you did for the ped population by putting how many for each vehicle type you want and add all of them together and put that value where total is.
NOTE: Do not add too many vehicles or peds to a area or it will lag your game bad. If you have a very high end system then you should be ok but I wouldnt use more then what I have already used in my code examples.
Feel free to experiment with this and come up with your own ped spawn variations.