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.xtblHello, 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.
Thank you for that insight.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!
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.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?
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.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?
I would imagine the poor pedestrians would be driving luxury cars.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?
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".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?
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.6) If you assign different NPCs to the Saints, do their interaction with playa change in terms of quotes and compliments?
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.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?
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).8) Is it possible for the respective gang vehicles to have gang decals and paint jobs of another gang assigned to their vehicle?
I wouldn't have thought so. But many of them do have one.9) Is there a beater variant to every vehicle?