Modding Portal 2 Models
Particularly I'd like to add new skins for some of the various light models so they have a "turned off" skin.
I'm aware of MDL Decompiler and StudioCompiler, but neither semm to be currently working with Portal 2 models. Any ideas?
Hmmm...
You know, if only I didn't have all these side projects related to mapping and could actually map. :-p
naitoookami wrote:
to make new skins you dont have to decompile the models just search for their materials and edit them
I didn't want to replace the original skins. I wanted to create an altered version of the model that adds more skins on top of the original ones.
msleeper wrote:
Adding skins is really simple, like naitoookami said you just Decompile them and then add a new skin when you recompile it. I'm not sure if the tools have been updated for Portal 2 (there is usually some sort of format change between game versions), but I don't know for sure.
The whole problem is I haven't managed to successfully decompile any Portal2 models in the first place.
I have, however, managed to successfully (using the program I'm writing) insert 300 bytes or so into the middle of a model file and have the model still (mostly) load in model viewer after patching up various things. The goal here is to be able to take an existing model, add a few textures to its catalog, and then add a few skins using the new textures. This requires increasing the size of various structures in the file and relocating them -- not easy, but fortunately the MDL format is fairly well documented.
how hard cann you fail?