Community

 
Antwort senden
Schnelle Antwort
abbrechen
Model Switching NPCs?
2 years her  ::  Oct 09, 2011 - 7:31PM #1
superbayonetta1
Beiträge: 5
Is it possiable to model swap an NPC for another?
0 (0 Bewertungen)
Schnelle Antwort
abbrechen
2 years her  ::  Oct 10, 2011 - 9:44AM #2
samlynch2
Beiträge: 2,118
Yes it is, are you looking for a tutorial on how to do it or did you just want to know?
0 (0 Bewertungen)
Modder of Saint's Row 2 for two years.
Schnelle Antwort
abbrechen
2 years her  ::  Oct 10, 2011 - 11:53AM #3
superbayonetta1
Beiträge: 5
 A tutorial would be nice, or just a simple explanation.
0 (0 Bewertungen)
Schnelle Antwort
abbrechen
2 years her  ::  Oct 11, 2011 - 8:18AM #4
samlynch2
Beiträge: 2,118

superbayonetta1]  wrote:

 A tutorial would be nice, or just a simple explanation.




Every NPC has 4 files allocated to it; a "name_cha.xtbl", a "name_pre.xtbl", a "name_des.xtbl" and "name.xtbl".

In the _cha file, it has all the technical stuff. Namely the mesh file, morph file, height, etc.

In the _des file, it has how the NPC can be spawned. Most of them have the same entry, so never mind that.

In the normal .xtbl file, it has all the parts of the NPC. These are not editable. Any changes will not take effect.



And finally, the one we need, the _pre file. It has character flags, what gang they belong to, and their behaviour when spawned.

But the best entry is "character". It references character.xtbl where it lists all the possible NPCs. 



So if I changed that entry in "npc_Tobias_pre.xtbl" from "<character>npc_Tobias</character>" to "<character>npc_ZombMale_C</character>", then in any missions, Tobias would be a zombie.

Same with snpc files, which are cutscene NPCs.



This explanation requires some slight knowledge of SR2 modding.


0 (0 Bewertungen)
Modder of Saint's Row 2 for two years.
Schnelle Antwort
abbrechen
2 years her  ::  Oct 11, 2011 - 7:11PM #5
superbayonetta1
Beiträge: 5
 Thanks for the help, but when I rename the files, the character I want doesn't appear. Am I suppose to change everything except name.xtbl, _cha file and _pre file, or just the _pre file?
0 (0 Bewertungen)
Schnelle Antwort
abbrechen
2 years her  ::  Oct 12, 2011 - 9:15AM #6
samlynch2
Beiträge: 2,118

superbayonetta1]  wrote:

 Thanks for the help, but when I rename the files, the character I want doesn't appear. Am I suppose to change everything except name.xtbl, _cha file and _pre file, or just the _pre file?




Why are you renaming the files? And you ONLY have to change the _pre file, replacing the <character> parameter with another character's.

0 (0 Bewertungen)
Modder of Saint's Row 2 for two years.
Schnelle Antwort
abbrechen
2 years her  ::  Oct 12, 2011 - 1:45PM #7
superbayonetta1
Beiträge: 5

You mean like this?:


<Preset>


<Name>npc_stripper_female</Name>


<Character>npc_elderly_male</Character>


<Spawn_Info_Rank>Civilian - Normal</Spawn_Info_Rank>


<Team>Civilian</Team>


<AI_Personality>civilian normal</AI_Personality>


<_Editor>


<Category>Entries</Category>


</_Editor>


<Flags>


<Flag>use_gang_color_scheme</Flag>


<Flag>never_use_walk_variants</Flag>


If this is what your talking about, I did this.

0 (0 Bewertungen)
Schnelle Antwort
abbrechen
2 years her  ::  Oct 13, 2011 - 11:00AM #8
samlynch2
Beiträge: 2,118
 Yep, that's the way.
0 (0 Bewertungen)
Modder of Saint's Row 2 for two years.
Schnelle Antwort
abbrechen
2 years her  ::  Oct 13, 2011 - 3:41PM #9
superbayonetta1
Beiträge: 5
My male strippers are having problems DX, but thanks for the help though
0 (0 Bewertungen)
Schnelle Antwort
abbrechen
2 years her  ::  Oct 14, 2011 - 8:54AM #10
samlynch2
Beiträge: 2,118

superbayonetta1]My male strippers are having problems DX, but thanks for the help though






O.O the tutorial is being used for evil. What have I done.
[/quote]




O.O the tutorial is being used for evil. What have I done.

0 (0 Bewertungen)
Modder of Saint's Row 2 for two years.
Schnelle Antwort
abbrechen
Antwort senden
Schnelle Antwort
abbrechen
Sprungmenü:
    Viewing this thread :: 0 registered und 1 guest
    Es schauen keine registrierten Benutzer zu