Homies & NPCs Now that I understand the NPC cruncher, I just have a few questions....

I have a few questions I want to ask about the NPC cruncher.

1. How can assign animations to npcs?

2. How do I find and assign the back stretch/pain animation?

3. How do I increase the chance of a NPC spawning?

These are the only questions, for now. I know you can't change the clothes on NPCs, so the questions are achievable.

Please help, really appreciate
Thank you
 
I have a few questions I want to ask about the NPC cruncher.

1. How can assign animations to npcs?

2. How do I find and assign the back stretch/pain animation?
Hey, MyBoy2007. It's nice to see you back!

I've started writing an in-depth guide on animations following the release of FPA+.

The NPC Cruncher isn't actually required for this. Here is the process put as straight-forwardly as I can put it:

1. Find the Character file (npc_name_cha.xtbl) for the NPC you wish to add the animation to. Find which animation set they are using. This will be called something like "GML1" or "PML1".

2. Open a COPY of the animation set file (eg: "GML1.xtbl") which you will be adding the animation to.

3. Next, open "Anim_Files.xtbl", and make sure the animation you wish to add is listed in that file. (It shouldn't matter if <Preload> is "true" or "false". I think it was just there to help keep track during development.)​

- It sounds like the animation you're describing is "pml1_bs_sd_idle_str.anim".​

4. Open "preload_anim.tbl", and make sure "pml1_bs_sd_idle_str.anim" is listed somewhere in the file.​

4a. If not, make a COPY of "preload_anim.tbl", and add "pml1_bs_sd_idle_str.anim" to the list (preferably at the top, for simplicity's sake).​

5. In "GML1.xtbl" (or whichever animation set file you're editing), find the animation you want to change, and replace what's there with "pml1_bs_sd_idle_str.anim".​

- For the sake of this tutorial, I recommend replacing "stand" first, just to make sure everything's working okay after your modifications.​

6. Install your modded files and Run Saints Row 2. If you've edited "GML1.xtbl", your Playa should now be using the new animation while standing.​

6a. If you've edited a different animation set file (like "PML1.xtbl"), you'll have to go looking for an NPC in-game who uses that animation set.​

7. If the character is T-Posing instead of performing the animation, it's likely that the animation either isn't preloaded, or isn't listed in "Anim_Files.xtbl".​


It's not possible to assign an animation to just one NPC. It will be used by any in-game character who uses that animation set.

Hope this helps!
 
How about the percentage a certain NPC spawns in that are, thanks for always helping me out by the way.
I don't know about increasing spawn percentages. The only way I can think of doing it is by adding more SPAWN nodes to a chunk's .cts file. You can find "SPAWN_" nodes in action_nodes_npcs.xtbl. You can get coordinates by using Juiced Patch's F5 keybind to print current coordinates to debug.txt in your SR2 root folder. You can find chunk numbers and where they correspond to using Masamaru's chunk maps included in "Saints Row 2 Chunks Texture Tool".
Also a out there question but I really want Katie and Anna to be civilian NPCs
I would try adding "npc_anna" and "cnpc_katie" (Katie doesn't have a regular "npc" model) to a district in spawn_info_groups.xtbl.
 
Back
Top