Saints Row IV Back at the forums, with a question about notoriety_spawn...

So as the title says, finally back, done with MMOTPS gaming, F2P games have communities way too rotten.
But let's just jump straight to the point, because I have a little question regarding notoriety_spawn.xtbl...

How many more entries can I add in SRIV's notoriety spawn tables, I added about 10 new entries, as alteration for xQd's Random Encounters mod, one for each enemy the Saints has beaten in the past, excluding the Deckers.

But the problem is sofar only the Morningstars' entry shows up leaving the rest there just sitting around. There are even some Encounters where absolutely nothing spawns. I've tried about anything I could think about making them unable to spawn during the encounter. I'll also ask xQd for further intel on this.

Thanks in advance for your reply.
 
Looks like the code has a max of 50 and will ignore any beyond that.
 
Interesting. Currently, including the vanilla entries I'm at 49. Seems like I'll have to look into things more then.
Thanks for clearing it up though. :)
 
I've also had situations when no enemies will ever spawn and I didn't know about "50 entries" limit back then. I assumed it some mistake in the code I made that affected it.
 
If you guys have something you think should work but doesn't, attach the mod to a thread. Be sure to include steps for reproduction and what you think should happen.
 
I don't think the limit is at 50. I have 49 entries and the game crashes at the part pre M14.
I also included a .txt with the steps to reproduce.

I also have removed double NPCs, such as the M14 NPCs that are just wasting space, the same NPCs are right above them and if I'd just change the team of them, they're just as useful without screwing the game up.
If the limit is 50, there definitely shouldn't be a crash. The removed NPCs can't be the problem at all, as pre M14 for example worked perfectly fine before.

My hypothesis lies on that pre M14 crashes now because I moved the notoriety spawn entries to the top, if they're at the bottom the game doesn't spawn them during Gang Attack!...
 

Attachments

  • notoriety_crash.rar
    27.2 KB · Views: 356
My hypothesis lies on that pre M14 crashes now because I moved the notoriety spawn entries to the top, if they're at the bottom the game doesn't spawn them during Gang Attack!...

So here are the errors the game complains about here:
npc_s_battered01 is using a non-existent gang customization category Nudes
npc_s_battered02 is using a non-existent gang customization category Nudes
npc_s_ped_50s_sol01_fw is using a non-existent gang customization category Zombies
npc_s_ped_50s_sol02_fw is using a non-existent gang customization category Zombies
npc_s_ped_50s_sol03_fw is using a non-existent gang customization category Zombies
npc_s_ped_50s_sol04_mw is using a non-existent gang customization category Zombies
npc_s_ped_50s_sol05_mw is using a non-existent gang customization category Zombies
npc_s_ped_50s_sol06_mw is using a non-existent gang customization category Zombies
attack_sr3_stag_ground #3 notoriety level is not sequential.


At this point I hit what is probably crashing you. You ran out of string space for notoriety names. There are 768 bytes for names and we blew up trying to allocate a name for survival_8_grunts, survival_4_grunts, survival_4_grunts_bubbles, survival_glitched, survival_8_grunts_UFOs, survival_bubbles, survival copsmore, survival_mascots, survival_bikers, survival_strippers, police act 1 lvl 2, pre_m14, etc . This leaves us with a bad pointer for these notoriety levels.

We have the same issue for character preset names. There the string pool is 11264(11k) bytes large and you start running out there as well with npc_gingerbread_man.

Lots of systems are sad that we can't find the presets and things.

The crash starting mission 14 is due to not being able to find the notoriety spawn info from name.
 
Well that clears up a lot. Thank you for taking the time to look into the mess I've made here. :)
Not a problem and happy to help. If you run into further issues don't hesitate to ask.
 
I'm glad it's something that can be solved though. I'm not certain, but things will work better if I reduce the length and size of the names of the notoriety entries, right?
 
Back
Top