Right now I just assume that the clothing items are extremely hard coded to the character model itself that any changes will just result in everything failing
You can edit the chances that an already assigned clothing item will appear on an NPC, and the color set it spawns with. But you can't change what the item a character wears is because the shape of those clothing items is pre-baked into the character's mesh.
Volition probably built the NPC meshes by feeding these .xtbl files into a tool we don't have. At least we have the .cvtf cruncher.

Example:
Code:
                        <Vid_group>
                            <Name>head hair</Name>
                            <Vid_chances>
                                <Vid_chance>
                                    <Description>Shaundi hair</Description>
                                    <VID_list>12</VID_list>
                                    <Chance>100.000</Chance>    <--- YOU CAN ONLY EDIT THIS.
                                </Vid_chance>
                            </Vid_chances>
All Character Meshes (.cmesh) in SR2 are divided up into sections and given a number (known as a "Visual Identifier" or "VID"). For NPCs, each number represents a section of the mesh which is visually identifiable as a clothing item. The chances of the given VID spawning on the NPC can be changed, but the item the VID represents cannot.
 
You can edit the chances that an already assigned clothing item will appear on an NPC, and the color set it spawns with. But you can't change what the item a character wears is because the shape of those clothing items is pre-baked into the character's mesh.
Volition probably built the NPC meshes by feeding these .xtbl files into a tool we don't have. At least we have the .cvtf cruncher.

Example:
Code:
                        <Vid_group>
                            <Name>head hair</Name>
                            <Vid_chances>
                                <Vid_chance>
                                    <Description>Shaundi hair</Description>
                                    <VID_list>12</VID_list>
                                    <Chance>100.000</Chance>    <--- YOU CAN ONLY EDIT THIS.
                                </Vid_chance>
                            </Vid_chances>
All Character Meshes (.cmesh) in SR2 are divided up into sections and given a number (known as a "Visual Identifier" or "VID"). For NPCs, each number represents a section of the mesh which is visually identifiable as a clothing item. The chances of the given VID spawning on the NPC can be changed, but the item the VID represents cannot.
Darn, well thanks for the help anyways

Also yeah, you are correct about editing the chances, I managed to make the Ronin girls to only wear track pants, by reducing the chance for the latex pants to 0.001, if it's completely 0 then one of them will spawn in with no legs lol
 
I've already found it but thanks. Btw do you know what to edit if I want to disable ragdoll for protagonist? That no one would be able to knock me out.
Your best bet is using Sandbox++ code: 888-838 to disable ragdolling entirely.

If you want to do it via table files, it's a bit all over the place.
- There's some stuff in gameplay_constants.xtbl about how much force in an impact from a car characters can take before ragdolling.
- gameplay_constants.xtbl also controls how damage is inflicted when ragdolling.
- I'm sure there's something somewhere that controls the point at which during falling, your character starts to freefall instead of dropping down to their feet (so theoretically, you could have it so you could jump off the Phillips Building and land on your feet).
- spawn_info_ranks.xtbl allows you to adjust how much damage a character can take before ragdolling, but it won't actually disable it.
 
Your best bet is using Sandbox++ code: 888-838 to disable ragdolling entirely.

If you want to do it via table files, it's a bit all over the place.
- There's some stuff in gameplay_constants.xtbl about how much force in an impact from a car characters can take before ragdolling.
- gameplay_constants.xtbl also controls how damage is inflicted when ragdolling.
- I'm sure there's something somewhere that controls the point at which during falling, your character starts to freefall instead of dropping down to their feet (so theoretically, you could have it so you could jump off the Phillips Building and land on your feet).
- spawn_info_ranks.xtbl allows you to adjust how much damage a character can take before ragdolling, but it won't actually disable it.
thanks again, I will look into it tomorrow. Also I was wondering about picking up objects, is it possible to add some more objects to pick up or not? I tried something before but didnt work.
 
Oh how I hate my learning disabilities. I got so excited at the prospect of being able to customize the NPCs of Saints Row 2, to create the mod of my dreams...

And for a while I was able to understand what was being said in this Editing Guide... Then suddenly my eyes crossed, and my brain short circuited.

Has anyone on here heard of the learning program Scratch?
1726881640187.png

I'm 29 now, but this is the only program I've ever successfully managed to create a game on... And that was in College... 10 Years ago.

The fact that all the lines of code were already created, so all you had to do was put them into place, made it so much easier to use. I didn't have to struggle to understand what each individual piece of code was, I just had to know which piece went where to make things work.

Maybe that is what this guide is intended to do... And maybe I just don't have to capacity to understand it... I was cursed with the ability to create an endless stream of great video game ideas or even mod ideas for pre-existing games, but unable to actually learn the ability to do anything with these ideas.

Maybe someone can help me understand what I need to do though an example.

So, this is the NPC I'm hoping to create, or as close as possible.
1726882783272.png1726882686681.png
Yes, she does have the "Stilwater Correctional" on the back of her jacket and wristband

Other than her appearance, she would also use:
Voice - Female British NPC
Movement Style - Cell Phone Walk
Compliment - Blown Kisses
Taunt - Polish Sword
Combat Style - Ronin
Melee Weapon - None
Firearm - NR4
Team - Saints

She does not appear in any of the Gang Customization options, and instead spawns in the open world like any other NPC, but she can be recruited. Her spawn chances are 100%, but if recruited she will not spawn again until being dismissed.

The spawn locations (If Possible) would be:
Sommerset - Sat at the slot machine in the Brotherhood Apartment1726883699112.png1726883738183.png

Encanto - Browsing the shelves in Sloppy Seconds1726884628799.png

Saints Hideout (Fully Upgraded) - Sat on any sofa

So, when all's said and done, what would the complete list of code look like that I'd use to make the mod? And would I just add the code straight to my game files, or would I put it through GOTR?
 
Oh how I hate my learning disabilities. I got so excited at the prospect of being able to customize the NPCs of Saints Row 2, to create the mod of my dreams...

And for a while I was able to understand what was being said in this Editing Guide... Then suddenly my eyes crossed, and my brain short circuited.

Has anyone on here heard of the learning program Scratch?
View attachment 40851

I'm 29 now, but this is the only program I've ever successfully managed to create a game on... And that was in College... 10 Years ago.

The fact that all the lines of code were already created, so all you had to do was put them into place, made it so much easier to use. I didn't have to struggle to understand what each individual piece of code was, I just had to know which piece went where to make things work.

Maybe that is what this guide is intended to do... And maybe I just don't have to capacity to understand it... I was cursed with the ability to create an endless stream of great video game ideas or even mod ideas for pre-existing games, but unable to actually learn the ability to do anything with these ideas.

Maybe someone can help me understand what I need to do though an example.

So, this is the NPC I'm hoping to create, or as close as possible.
View attachment 40854View attachment 40852
Yes, she does have the "Stilwater Correctional" on the back of her jacket and wristband

Other than her appearance, she would also use:
Voice - Female British NPC
Movement Style - Cell Phone Walk
Compliment - Blown Kisses
Taunt - Polish Sword
Combat Style - Ronin
Melee Weapon - None
Firearm - NR4
Team - Saints

She does not appear in any of the Gang Customization options, and instead spawns in the open world like any other NPC, but she can be recruited. Her spawn chances are 100%, but if recruited she will not spawn again until being dismissed.

The spawn locations (If Possible) would be:
Sommerset - Sat at the slot machine in the Brotherhood ApartmentView attachment 40855View attachment 40856

Encanto - Browsing the shelves in Sloppy SecondsView attachment 40858

Saints Hideout (Fully Upgraded) - Sat on any sofa

So, when all's said and done, what would the complete list of code look like that I'd use to make the mod? And would I just add the code straight to my game files, or would I put it through GOTR?
scratchy.. been a while i used that program
 
Back
Top