Saints Row 2 NPC editing

M

Minimaul

Guest
Hi,

I've been experimenting with editing NPCs and I've been using carlos_jail as my test.

A couple of questions:

What are npc_carlos_jail, cnpc_carlos_jail and snpc_carlos_jail used for?

I tried editing Carlos to use a hot-dog suit, and got: http://steamcommunity.com/sharedfiles/filedetails/?id=155792394

Are NPC meshes prebaked or something in SR2?

Edit: attached edited files.
 

Attachments

  • cnpc_carlos_jail.cvtf
    1.4 KB · Views: 543
  • cnpc_carlos_jail.xtbl
    22.5 KB · Views: 545
  • npc_carlos_jail.cvtf
    1.4 KB · Views: 552
  • npc_carlos_jail.xtbl
    22.5 KB · Views: 530
  • snpc_carlos_jail.cvtf
    1.4 KB · Views: 547
  • snpc_carlos_jail.xtbl
    22.5 KB · Views: 534
Yeah, the geometry for NPCs is prebaked, based on the information in the xtbl files. The cvtf's also get built from the same xtbls, but they only really control some color swapping values.

See this thread for more details: http://www.saintsrowmods.com/forum/threads/how-are-npcs-clothed-made.2568/

I'm working on getting the NPC building tools updated and pushed out in one of the next couple of drops.
 
Also, SNPC files were for "story" cutscenes, where we had more memory to devote to characters. We used larger textures on these, so the PEG files for an SNPC_blah are usually significantly larger than those for the regular NPC version.
CNPCs were used in "activity" cutscenes, where we couldn't rearrange memory and block things off with loading screens. The only real difference between an NPC and a CNPC is that the CNPC version includes morphing data for full lipsync and enhanced facial animation. NPCs for normal gameplay, I believe, only had enough facial morph data to flap their mouths around arbitrarily while they played voice lines.
 
That makes sense with what I'm seeing here. I can change materials on clothing items, change colours, and interestingly I can hide parts of the mesh by changing what VIDs a clothing item obscures.

At least I'm not going mad. ;)
 
Yeah, the geometry for NPCs is prebaked, based on the information in the xtbl files. The cvtf's also get built from the same xtbls, but they only really control some color swapping values.

See this thread for more details: http://www.saintsrowmods.com/forum/threads/how-are-npcs-clothed-made.2568/

I'm working on getting the NPC building tools updated and pushed out in one of the next couple of drops.

Any chance that this will be available in the updated saints row 2? Would be cool if we had more editing power for npcs (beyond just color changes).
 
Back
Top