Kalyen Posted November 23, 2015 Share Posted November 23, 2015 I tried making a new character for K1 using these two tutorials. I edited the texture for both the body and the head. I have a problem with the mdl file. If I edit it like in the first tutorial, the game crashes at the character selection screen, and if I only rename it, the default head texture shows up instead of the custom one (resulting in a Twi'lek with head and body differently colored:rolleyes:). Does anyone know how to fix this? I'm sure it's a very stupid question but I can't find any answers... Link to comment Share on other sites More sharing options...
Sithspecter Posted November 23, 2015 Share Posted November 23, 2015 Kaylen, welcome to Holowan Laboratories! I see you have already found the tutorial section. As for your problem, I suspect some part of the hex editing process messed up maybe? I'm assuming from the tutorials that you extracted the twi'lek head model and then hex edited it with your new texture? Possibly re-extract the model (make sure to hit the extract button, don't double click to extract), and then try hex editing again. Also remember that you have to use a texture with the same amount of characters in the name that the default texture has. It sounds like you've narrowed it down to the .mdl file. Hopefully we can help you correct this issue. Link to comment Share on other sites More sharing options...
Fair Strides 2 Posted November 23, 2015 Share Posted November 23, 2015 Welcome, Kalyen! Trust me, there is no stupid question when it comes to hex-editing... It's all a pain. If you start from the beginning of the model, you'll find several stretches where there is readable text in great amounts. After these, the groups of readable text become smaller and much further apart; it's these smaller groupings that you're after. You will want to run a search or a find (depends on the hex-editor you're using) for the texture name itself without the extension, and then only edit it in these smaller sections. If you should find two of it very close together, it's usually the second one you want to change. Link to comment Share on other sites More sharing options...
Kalyen Posted November 24, 2015 Author Share Posted November 24, 2015 Thank you for your answers! The problem was indeed in hex-editing : I deleted numbers before typing the new ones, and it messed up everything, but it's fixed now. Thanks! Link to comment Share on other sites More sharing options...
Sithspecter Posted November 24, 2015 Share Posted November 24, 2015 Happy to help! I look forward to seeing the mods you come up with. Don't forget to post screenshots! Link to comment Share on other sites More sharing options...
Kalyen Posted November 25, 2015 Author Share Posted November 25, 2015 The screenshot is darker than in-game, but it looks like this: Show spoiler (hidden content - requires Javascript to show) Link to comment Share on other sites More sharing options...
Canderis Posted November 26, 2015 Share Posted November 26, 2015 Interesting work there! And by the way, welcome to LucasForums! Link to comment Share on other sites More sharing options...
VirusPunk Posted January 8, 2016 Share Posted January 8, 2016 I am having a similar problem, only I followed an older guide for KotOR2 which dates back to 2005 (using the latest Steam version currently). I followed the guide exactly to swap the Asian male with a Twi'lek head, yet in game when I pick the character his head is invisible, I haven't tried it in-game yet but I doubt it'll work. Not using any other modifications, BTW. I went back opened up Heads, Appearance, Portraits, etc to triple check to make sure I didn't make any typos and no, no typos. Link to comment Share on other sites More sharing options...
Fair Strides 2 Posted January 8, 2016 Share Posted January 8, 2016 I am having a similar problem, only I followed an older guide for KotOR2 which dates back to 2005 (using the latest Steam version currently). I followed the guide exactly to swap the Asian male with a Twi'lek head, yet in game when I pick the character his head is invisible, I haven't tried it in-game yet but I doubt it'll work. Not using any other modifications, BTW. I went back opened up Heads, Appearance, Portraits, etc to triple check to make sure I didn't make any typos and no, no typos. Have you tried re-doing the hex-editing? It can be very stubborn sometimes, but one thing to look out for is replacing the old texture name with a name of the exact same length... Link to comment Share on other sites More sharing options...
VirusPunk Posted January 8, 2016 Share Posted January 8, 2016 Have you tried re-doing the hex-editing? It can be very stubborn sometimes, but one thing to look out for is replacing the old texture name with a name of the exact same length... This particular guide didn't mention hex editing or the texture name having the same length as the old. Is there a more recent guide out there? Also, I tried it in game and I am completely invisible and unable to even move in game, so it didn't work at all sadly. Link to comment Share on other sites More sharing options...
DarthParametric Posted January 8, 2016 Share Posted January 8, 2016 Any hex edit you make must always be of the same length, or you will effectively destroy the file. Making a value shorter or longer will change the location of everything else, so that information will no longer match its proper location and the game won't be able to read it. I'd be very surprised if a tutorial describing hex editing didn't mention this somewhere. If you want a Twi'lek head, there is already at least one mod that does that. I'd grab that and poke through its innards to see how it works. Link to comment Share on other sites More sharing options...
VirusPunk Posted January 8, 2016 Share Posted January 8, 2016 The tutorial I read only talks about changing values in KotOR Tool, no hex editor involved. I actually tried another tutorial which finally worked, though. Changed a player female head to a female Twi'lek's and it worked like a charm. I want to try other species as well eventually, so did this for a test. See here: https://www.dropbox.com/s/8egmcoc82e3q106/2016-01-07_00001.jpg?dl=0 The tutorial: http://www.lucasforums.com/showthread.php?t=201761 However, won't the texture disappear once I become dark side? Also what about her body as well? Though I suppose this is a pretty satisfying accomplishment so far for my first attempt at modding this game. Link to comment Share on other sites More sharing options...
DarthParametric Posted January 8, 2016 Share Posted January 8, 2016 DS transitions are controlled via 2DA (heads.2da for the face texture, portraits.2da for the portrait). If you don't have/want DS changes, just reference the base texture for all of them. This should all be covered in the standard custom head tutorials. Link to comment Share on other sites More sharing options...
VirusPunk Posted January 8, 2016 Share Posted January 8, 2016 I took the Twi'lek model files and texture and renamed them as PFHA0 and placed them in the override folder and got the same effect in-game as swapping the values in the 2DA (I also edited the Twi'lek head a bit in Photoshop and saved them as PFHA0D1 and PFHA0D2 which I am presuming will show up once I become darkside, so whats the exact point in editing the 2DA files when replacing the file does the same thing basically? Sorry for the noobness on my part. Link to comment Share on other sites More sharing options...
DarthParametric Posted January 8, 2016 Share Posted January 8, 2016 Because editing the 2DAs allows you to add new head options without replacing the originals. Again, this is covered in the tutorials. I advise reading them. Link to comment Share on other sites More sharing options...
VirusPunk Posted January 13, 2016 Share Posted January 13, 2016 I read multiple tutorials and like I already said, it did not work. Invisible / missing head when character selecting. I did it over several times, even triple checked to make sure everything was in order and there were no typos. I followed this one, word for word: http://www.lucasforums.com/showthread.php?t=149992 But I'm fine with replacing an existing head. As removing the files will revert it back to default when I'm not planning on using it any longer. Link to comment Share on other sites More sharing options...
Kalyen Posted February 16, 2016 Author Share Posted February 16, 2016 I used the same tutorial and had the same problem at first. I fixed it by renaming all the head files as "twilek_f05.xxx" (i.e. changing only the last number of the original name) and hex-editing twilek_f05.mdl to change every "twilek_f02" into "twilek_f05". Be careful to only replace, and not delete anything, as it crashes the game. Hope this helps Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.