Modding Questions

I'm not new to modding in general but I am new to modding SR2 and the lack of documentation is making it somewhat difficult to know what I can and can't do, so I have a few questions. All my testing here is done over an install of GotR 1.9.2, incorporating changes made by GotR where appropriate.

This is mainly just a personal practice/just-for-fun mod that I'm trying to make. I wanted to make it so that sometimes, instead of always spawning normal police cars at notoriety 2+, there would be a chance to spawn a Saints-colored police car with police in Saints-colored uniforms instead. The notoriety_spawn.xtbl file appears to allow a form of random chance, so I figured it was possible.

I experimented with npc_cop.xtbl and I was able to change uniform colors successfully. I then took all the npc_cop*.xtbl files, re-named them npc_srs, added an entry in character_presets.xtbl for the new name, and then changed the npc_name line for Notoriety 2 from npc_cop to npc_srs in notoriety_spawns to reference the new entry. The game crashed when I reached Police Notoriety 2. I looked around in the game files and saw that the prison guards (npc_prison) only have a _pre.xtbl and nothing else, so I tried deleting everything but npc_srs_pre. The game still crashed. To test, I changed npc_srs to npc_prison. The game completely ignored the change, and spawned three normal cops in the car despite max_vehicle_occupants being set to 2. I set it back to npc_cop, then went to npc_cop.xtbl and changed the filter from "beat cop" to "boat cop". It still spawned three normal cops.

Since the new npcs were a bust, I just went and overrode npc_cop completely. Then I started to work on the car. I was immediately confused by none of the notoriety_spawns providing variant information. How does the game know which variant of the police car to spawn? I simply overrote the default police settings and again, this worked perfectly. Wen I tried to make a new entry for the vehicle it didn't crash at Notoriety 2 but it did just never spawn any cars, so I had to again overwrite the default version.

So now I've got color-shifted cops arriving in color-shifted cop cars. They're my allies but there are two problems. First, they still try to run me over even though we're on the same team (I guess this is a hardcoded notoriety thing?) and second, both cops spawned ambiently on the streets and ones spawned by notoriety are unarmed. Also: Does the game ignore vehicles listed in gang_customization.xtbl? I added the police car but it didn't show in the list, then I deleted everything but the police car and the defaults still show and ambient Saints still spawn in the default cars. I switched a gang type to spawn as cops, but they don't spawn in the world at all (I guess this is the same thing that keeps them from spawning in cribs?).

So that's just a few issues/questions I've been having. I'm hoping not everyone has moved on to modding SR3/4 and someone can clear a few things up for me.
 
Back
Top