Hello, I'm looking to edit NPC and vehicle spawns per district and I cannot find the xbtl files to do so after extracting common.vpp and city_load.vpp. Any help is welcomed.
 
Hello, I'm looking to edit NPC and vehicle spawns per district and I cannot find the xbtl files to do so after extracting common.vpp and city_load.vpp. Any help is welcomed.
The file you're looking for is spawn_info_groups.xtbl

SR2 doesn't assign NPCs directly to a district, but NPCs are put into groups which are then spawned in multiple districts.
For example; All "Jogger" NPCs are grouped together. That group can then be spawned in various districts.

I'm unsure if there's another .xtbl file which decides which groups are used for each district, but spawn_info_groups.xtbl decides which NPCs belong to which groups (and what they drive in traffic).

Hope this helps!
 
The file you're looking for is spawn_info_groups.xtbl

SR2 doesn't assign NPCs directly to a district, but NPCs are put into groups which are then spawned in multiple districts.
For example; All "Jogger" NPCs are grouped together. That group can then be spawned in various districts.

I'm unsure if there's another .xtbl file which decides which groups are used for each district, but spawn_info_groups.xtbl decides which NPCs belong to which groups (and what they drive in traffic).

Hope this helps!
Thank you for that insight.
 
Hello again! After studying the xbtl file and reacquainting myself SR2, I have some questions. I apologise if these are too many questions and have already been answered:

1) Does adding more characters to a table than originally intended cause any technical issues?

2) Does for example ‘’Barrio – Muscle cars’’ only pertain to car traffic? If so, can the NPCs listed in the muscle car table for Barrio be different to the default Barrio table?

3) Would assigning NPCs vehicles who have no vehicles by default such as skateboarders and rollerskaters cause the game to crash or glitch if they spawned?

4) If I assigned luxury and exotic cars to the Projects for example but made no changes to the NPCs on foot, would rich NPCs spawn in their cars?

5) What would happen if I assigned different NPCs to the Saints on spawn_info_groups while GoTR was installed, accessed the gang customisation menu and changed their style from its default to a modded option?

6) If you assign different NPCs to the Saints, do their interaction with playa change in terms of quotes and compliments?

7) Is there a way to assign districts to gangs who ordinarily wouldn’t control them and could this work after the Saints gain all territory?

8) Is it possible for the respective gang vehicles to have gang decals and paint jobs of another gang assigned to their vehicle?

9) Is there a beater variant to every vehicle?
 
Last edited:
1) Does adding more characters to a table than originally intended cause any technical issues?

2) Does for example ‘’Barrio – Muscle cars’’ only pertain to car traffic? If so, can the NPCs listed in the muscle car table for Barrio be different to the default Barrio table?
Tbh, I haven't actually modified this file before. I found it while working on something else and thought "I should try modding that at some point.", but I haven't yet done so. So it'll be up to you to figure out some of this stuff through trial and error.
3) Would assigning NPCs vehicles who have no vehicles by default such as skateboarders and rollerskaters cause the game to crash or glitch if they spawned?
No. When a skater NPC drives a car, they use vehicle animations like everyone else. The skating animations are nothing more than replacements for Walking/Running animations.
4) If I assigned luxury and exotic cars to the Projects for example but made no changes to the NPCs on foot, would rich NPCs spawn in their cars?
I would imagine the poor pedestrians would be driving luxury cars.
5) What would happen if I assigned different NPCs to the Saints on spawn_info_groups while GoTR was installed, accessed the gang customisation menu and changed their style from its default to a modded option?
Any Saints Gang Member NPC which has "_s_" in it's name is hard coded to be switched using Gang Customization. So you could assign "npc_s_gangster_male_lt" in the file, but if you have "Sporty" assigned via Gang Customization in-game, they will actually be "npc_s_sporty_male_lt".
6) If you assign different NPCs to the Saints, do their interaction with playa change in terms of quotes and compliments?
Yes. This can be observed with GotR's alternate Saints styles. This is controlled by an NPC's Persona, which you can learn more about in my guide.
7) Is there a way to assign districts to gangs who ordinarily wouldn’t control them and could this work after the Saints gain all territory?
Districts aren't in a constant state of ownership, but are awarded to a Team through a one-time action of unlocking. Therefore, the current owner of a district cannot be changed, but it is possible to prevent the Saints from being awarded a district. This can be done by removing the awarded hood for each mission from sr2_city_missions.xtbl. To see the effects of this, you would have to play through a new game.

One untested theory I have is getting enemy gang members to spawn alongside Saints in Saints owned districts post-game by modifying the Design files for the enemy gang member NPCs. This might mess with the notoriety system though.
8) Is it possible for the respective gang vehicles to have gang decals and paint jobs of another gang assigned to their vehicle?
With some work, yes. It depends on which vehicles you want to use, and what textures they have available to them in their .peg files. But you could change the logos via texture editing. The paint scheme can be changed via the vehicle's .xtbl file (much like with NPC clothing colors).
9) Is there a beater variant to every vehicle?
I wouldn't have thought so. But many of them do have one.
 
Back
Top