2009-11-28, 10:19 PM
OK, got more time for a better answer.
Let me first ask a question...when you say the textures arent showing up are you speaking about in game or on the map editor? If its the map editor, it may be because the .mdl file has the original texture imbedded in it, and no matter what you do when you change it, the map editor will always show the original texture.
If youre in the game runtime and its still not showing up...then we have to look into it a bit.
First off...the texture you made, you said it was highly detailed compared to SOM...so is it still 256 x 256 pixels or less? If not that would definitely be a problem. On NPC models, you would be limited to a 256 x 256 texture (or multiple textures no larger than 256 x 256).
When you created the custom NPC, how was it done?
I may be repeating exactly what you did...but here are the correct steps.
Take your 256 x 256 texture(s) and load them from a bitmap file to a .txr file using the BMP2TXR program in the SOM tools. once it is in the .txr format, place the texture in the SOM/NPC/Texture directory.
Now open the NPCEDIT.EXE progarm, find the specific NPC you want to change and open it..click change texture at the top and select the new texture. Save this as a new .prf file....for example newguy.prf
Now with a hex editor like xvi32, open the newguy.prf and change something in the name (without disturbing the # of characters) so you can tell which it is in the parameter editor (remember your new texture wont show up in the parameter editor or the map editor).
For example, if the npc's name was girl (1) you might change it to girl (a) so that way you can identify it compared to the original.
once that is done and saved, make sure you register your new npc or re-register an old one with the new model and test it out.
let me know if any of this helps.
Let me first ask a question...when you say the textures arent showing up are you speaking about in game or on the map editor? If its the map editor, it may be because the .mdl file has the original texture imbedded in it, and no matter what you do when you change it, the map editor will always show the original texture.
If youre in the game runtime and its still not showing up...then we have to look into it a bit.
First off...the texture you made, you said it was highly detailed compared to SOM...so is it still 256 x 256 pixels or less? If not that would definitely be a problem. On NPC models, you would be limited to a 256 x 256 texture (or multiple textures no larger than 256 x 256).
When you created the custom NPC, how was it done?
I may be repeating exactly what you did...but here are the correct steps.
Take your 256 x 256 texture(s) and load them from a bitmap file to a .txr file using the BMP2TXR program in the SOM tools. once it is in the .txr format, place the texture in the SOM/NPC/Texture directory.
Now open the NPCEDIT.EXE progarm, find the specific NPC you want to change and open it..click change texture at the top and select the new texture. Save this as a new .prf file....for example newguy.prf
Now with a hex editor like xvi32, open the newguy.prf and change something in the name (without disturbing the # of characters) so you can tell which it is in the parameter editor (remember your new texture wont show up in the parameter editor or the map editor).
For example, if the npc's name was girl (1) you might change it to girl (a) so that way you can identify it compared to the original.
once that is done and saved, make sure you register your new npc or re-register an old one with the new model and test it out.
let me know if any of this helps.
- Todd DuFore (DMPDesign)
Site Founder
Site Founder