Author Topic: Renaming compiled models  (Read 464 times)

Legacy_The Mad Poet

  • Hero Member
  • *****
  • Posts: 715
  • Karma: +0/-0
Renaming compiled models
« on: June 17, 2015, 09:19:00 pm »


               

I've been busy adding some various clothing items to my server and recently a few that I've come across are compiled models. After extracting them and renaming them to fit in my 2da's I tried using the NWN Model Renamer. It damaged the models in some way I guess. I read the help files and it says not to rename compiled models with the program. My bad.


 


However I also tried doing it manually with a text editor thinking maybe that would work. Wrong. Same issue.


 


How can I re-number these files?



               
               

               
            

Legacy_Malagant

  • Sr. Member
  • ****
  • Posts: 391
  • Karma: +0/-0
Renaming compiled models
« Reply #1 on: June 17, 2015, 09:49:47 pm »


               

Decompile, rename (or fix), re-compile. I don't know any other way around it. A text editor can't fully read compiled models and renamers won't be able to alter the necessary internal references, leading to mismatched references.



               
               

               
            

Legacy_The Mad Poet

  • Hero Member
  • *****
  • Posts: 715
  • Karma: +0/-0
Renaming compiled models
« Reply #2 on: June 17, 2015, 09:51:13 pm »


               

Aside from the command line decompiler is there any with a GUI?



               
               

               
            

Legacy_Proleric

  • Hero Member
  • *****
  • Posts: 1750
  • Karma: +0/-0
Renaming compiled models
« Reply #3 on: June 17, 2015, 10:06:33 pm »


               I haven't found one, but command line is your friend, because you can decompile a whole batch using wildcards. I like to keep a shortcut to the command line interpreter in the working folder, so that it starts in the right place.


The model renamer is great, because it also does a batch in one shot, but never use it on textures. Command line interpreter is handy for wildcard texture file renaming.
               
               

               
            

Legacy_The Mad Poet

  • Hero Member
  • *****
  • Posts: 715
  • Karma: +0/-0
Renaming compiled models
« Reply #4 on: June 17, 2015, 10:18:32 pm »


               

Thank you both for your help.



               
               

               
            

Legacy_Malagant

  • Sr. Member
  • ****
  • Posts: 391
  • Karma: +0/-0
Renaming compiled models
« Reply #5 on: June 17, 2015, 10:48:03 pm »


               

The newest version of clean models can / will batch decompile now IIRC, but I don't know how it will behave with a bungled compiled model that's been renamed (as in I'm not sure if it will work or throw an error). You can copy them to a different folder and test it.



               
               

               
            

Legacy_The Mad Poet

  • Hero Member
  • *****
  • Posts: 715
  • Karma: +0/-0
Renaming compiled models
« Reply #6 on: June 18, 2015, 01:08:50 am »


               

It wonked out like expected. I just went back to the source material. Thanks again.