Sign in to follow this  
SovereignXII

Does Atton have a unique body model? Custom Robe causing invisible body + crash

Recommended Posts

I'm trying to make this mod: https://www.gamefront.com/games/knights-of-the-old-republic-ii/file/revan-s-robes-star-forge-robes-for-tsl

compatible with this mod: https://www.nexusmods.com/kotor2/mods/918

I seem to have succeeded, both item are now craftable in the workbench and they display just fine on my Female Exile, Disciple, Visas. The GameFront robes don't display on Bao-Dur properly for obvious reasons, but for Atton they also cause his body to become invisible and talking to him crashes the game? I thought he used the regular male body type so I'm a little confused here?

 

p.s How does one go about adding a restriction to an item so Bao-Dur cannot equip it? Regular robe have the Restriction of cannot equip: Bao-Dur, but I can't seem to add that to the robes.

Share this post


Link to post
Share on other sites

By default, companions don't have a body model assigned for the J slot (Revan's robes). It will required editing appearance.2da to add it in.

Adding a Sub-race: Human restriction should prevent Bao-Dur from using it, since he is the Zabrak sub-race.

  • Like 1

Share this post


Link to post
Share on other sites
7 minutes ago, DarthParametric said:

By default, companions don't have a body model assigned for the J slot (Revan's robes). It will required editing appearance.2da to add it in.

Adding a Sub-race: Human restriction should prevent Bao-Dur from using it, since he is the Zabrak sub-race.

Odd, it has User Limitation: Human in the uti file, so I don't know why he still can.

I also have no idea what J slot means, or what I'd exactly need to change in the apperance.2da file. The most I currently know how to do is open the file with Kotor Tool, but what would I do then?

Share this post


Link to post
Share on other sites

There are only two races in KOTOR, Human and Droid. Wookiees and Zabrak are a Human sub-race. So the User limitation property only tells the game whether it is for Droids or Humans. In K1, Wookiees are restricted from using robes and such via baseitems.2da. I thought that the Sub-race property added in TSL could be used to do the same directly in the UTI, but it seems selecting Human as the sub-race just acts the same as the User Limitation. You can limit and item only to Bao-Dur or Wookiees, but not restrict them. That would still have to be done in baseitems.2da. @JCarter426 might have to weigh in on that. I have vague memories of discussing the denysubrace column in the past, whether or not it can be tallied to cover more than one sub-race.

Armour and robes are divided into body types for different armour classes. What model is assigned for each is defined in appearance.2da. Revan's robes uses its own unique body type, body J. Hence the model name is PxBJ. You'll want to read up on how that all works before going further.

  • Like 2

Share this post


Link to post
Share on other sites
26 minutes ago, DarthParametric said:

There are only two races in KOTOR, Human and Droid. Wookiees and Zabrak are a Human sub-race. So the User limitation property only tells the game whether it is for Droids or Humans. In K1, Wookiees are restricted from using robes and such via baseitems.2da. I thought that the Sub-race property added in TSL could be used to do the same directly in the UTI, but it seems selecting Human as the sub-race just acts the same as the User Limitation. You can limit and item only to Bao-Dur or Wookiees, but not restrict them. That would still have to be done in baseitems.2da. @JCarter426 might have to weigh in on that. I have vague memories of discussing the denysubrace column in the past, whether or not it can be tallied to cover more than one sub-race.

Armour and robes are divided into body types for different armour classes. What model is assigned for each is defined in appearance.2da. Revan's robes uses its own unique body type, body J. Hence the model name is PxBJ. You'll want to read up on how that all works before going further.

I just found an appearance.2da file from a mod on google that claims to let Atton use the J slot revan robes. Would it be as simple as copying the lines from Party_NPC_Atton from that .2da into mine? Or would be be more involved?

Edit: Well I added PMBJ to Atton's 2da section and it seems to work now... xD

As for baseitems.2da, taking a look I assume it's the denysubrace section that controls whether Bao-Dur can wear something.

Share this post


Link to post
Share on other sites

You might as well do it manually, if you're not sure if that mod is ok. Plus it's a good modding excercise.
The first male player character row is 136, check the modelj and texj columns (values PMBJM, PMBJ), copy those to the same columns in Atton's row (452).

  • Like 1

Share this post


Link to post
Share on other sites
4 minutes ago, Effix said:

You might as well do it manually, if you're not sure if that mod is ok. Plus it's a good modding excercise.
The first male player character row is 136, check the modelj and texj columns (values PMBJM, PMBJ), copy those to the same columns in Atton's row (452).

Adding those to Atton in his row seems to make it work completely now.

  • Like 1

Share this post


Link to post
Share on other sites
10 hours ago, DarthParametric said:

@JCarter426 might have to weigh in on that. I have vague memories of discussing the denysubrace column in the past, whether or not it can be tallied to cover more than one sub-race.

I'm pretty sure it could be via bitmask flags.

0x00000002 seems to mean Wookiee, and I'm guessing 0x00000008 would mean Zabrak (Zabrak is subrace 3, and 2^3 = 8). In that case, 0x0000000A would cover both (2 + 8 = 10, aka A in hex).

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this