Model replacement guide

LoU

R2D2
Movie Battles II Team Retired
Posts
746
Likes
651
Because people often ask how they can replace models, I'm just gonna sticky =Someone='s old post here.

Things you'll need:

Notepad (the basic texteditor that comes with windows)
Winrar, Winzip, WinAce or Pakscape (i recommend having WinRar and Pakscape - but this guide will not use Pakscape)
A Non-MB-Model of your Choice (Commander Neyo as an example) [I will refer to this as MyNewModel from now on]


Unpacking the Model:

When you download a model from www.pcgamemods.com, it usually comes as a .zip-file that contains the .pk3.

First off - Put the MyNewModel.zip on your desktop and unpack it into a folder. (The name of the folder is up to you, it has no importance)

Open the folder and locate the MyNewModel.pk3-file in there. Open it with Winrar (or Winzip, WinAce). In case Windows pops up a dialog asking you which Application you want to use to open this file, pick the option that allows you to select the program by yourself and choose Winrar (or Winzip, Winace).

Now that you opened the .pk3 - Unpack it into a folder. (you can name it zzzMyNewModel if you want to, but you can also rename it later)

you'll now see a few of the following folders (Note: in most cases not all of these will be there):

- botfiles (that's for bot-support)
- ext_data (that's for npc-support and hilt-references)
- models (that's the most important one)
- scripts (also for bot-support)
- shaders (well, that's for the shader...)
- sound (here are the taunts, etc...)


Editing the files:


First off - you'll delete the folders \"botfiles\", \"ext_data\" and \"scripts\" (if your model doesn't have them, be happy, less work for you).

Now double-click the \"models\"-folder, you'll find a \"players\"-folder inside. double-click that too. Now you're almost there, you will see a folder now that is called \"MyNewModel\" - Before you double-click it, you have to know what MB-Model you want to replace. We wont take the red clone, because that wont work (all clones use the same model.glm - so either you replace them all, or leave it) - Let's take a hero for now. Lando for instance.

Now that you know what to replace your file with, open the MBAssets.pk3, MBModel1.pk3 and MBModel3.pk3, go into \"/models/players/\" of each of these 3 pk.3's and look for the name of the folder that Lando is using. In this case it's \"lando\" (case-sensitive - only on Linux machines tho). Now rename your \"MyNewModel\" to \"lando\" and open that folder.

Ok, you made it into the heart of the model, now you see a bunch of .jpg's, .tga's, .skin's and a .glm-file.

Double-click the \"model_default.skin\"-file with Notepad. (Again, if windows gives you a dialogue, chose the option to select the program manually and pick Notepad). Now you'll see some text that'll look something like this:

head,models/players/MyNewModel/hair.tga

(i just add colors here to make this clear, it's important that you know what i mean at this point)

What you have to do now to make the replacement work is to change the word \"MyNewModel\" into \"lando\". This will tell the game that it has to look for the textures for your model in the \"lando\"-folder. Make sure to rename every single reference that points to \"MyNewFolder\" into \"lando\". (I personally use the search-funtion [shortcut: CTRL+F] to find all the references i need to replace and just paste [shortcut: CTRL+V] the new reference)

it should look like this now:

head,models/players/lando/hair.tga


If you also see lines like this:

hips_cap_torso_off,models/players/stormtrooper/caps.tga

leave them as they are, all lines that point to the /stormtrooper/-folder are just for the caps. (the caps are what tells the game where to dismember a limb if it's cut off by a saber. you see them too when you f.i. cut somebody's arm off, they are the burnt wound you see at the end of the stump)


Once you're done, save the file. (Keep it's exact name - \"model_default.skin\")

Now delete everything from the folder that you don't use. That means if your model comes with teamsupport, it will have .jpg's, .tga's and .skin-files for a red and a blue skin. If you don't use these skins, you should delete the files that belong to them. (If you delete these unused skins here you should remove their reference in the shader too, it's your choice, i personally do it because having too many shaders can cause a variety of bugs)


Now rename the file \"icon_default\" to \"mb2_icon_default\". Now the icon of your MyNewModel will be seen instead of the icon of the model you wish to replace.


Once you're done, move up two folders until you see the directory called \"shaders\". (If your model doesn't have it, skip this)

You'll see a file in there that is most likely called \"MyNewModel.shader\". Open the file with Notepad (again, if Windows comes up with a dialogue, well, you should know by now...).

Again there is only text in there. What you need to do is similar to the job at the \"model_default.skin\"-file. Find and replace every reference that has the name \"MyNewModel\" in it and replace it with \"lando\" (or whatever the folder-name of the model you wish to replace is). Also, delete all entries that refer to the blue or red skins of your model (Note that the entires are separated by paragraphs, you have to delete the whole paragraph if it refers to the blue or red skin). Once you're done, save the file.


Finishing it off:


Ok, you're almost done. Now move up one folder, so that you can see the following:

models
shaders
sound

Select all three of them and create a .zip-file called \"zzzMyNewModel.zip\". Rename this file to \"zzzMyNewModel.pk3\".

Now put it into your \"MBII\"-folder, delete everything you have on your Desktop from making this replacement and play. ;)
 
Posts
19
Likes
7
{SOLVED]
 

Attachments

  • Table flip.jpg
    Table flip.jpg
    15.9 KB · Views: 345
Last edited:
Posts
21
Likes
20
hey all, I was curious. how do you change out saber hilt models? is it the same concept?

and where is MBModels3 located? I don't have that file in my main directory.
 
Posts
28
Likes
7
So i downloaded penekes replacement mod and i was wondering if all i have to do to make the yavin 4 sniper luke model into a jedi was (lets say i want to replace aayla secura) replace any mention of her name into luke_yavin?
 
Posts
28
Likes
7
i have managed to put two jka characters in mb2 successfully but i cant manage to get the mb2 icon to work. the characters work dine, but when i rename it "mb2_icon_default" it renames the same, any way to fix that?
 

SomeGuy

Donator
Internal Beta Team
Posts
397
Likes
194
Does anyone know if there is a way to add model specific gun skins? Example would be changing Captain Rex to use DC-17 pistols, or the First Order Stormie Elite to use the FWMB-10, while other models use their regular gun skins.
 

T r i s t a n

Banned
Posts
212
Likes
152
Guide doesn't work, I followed it step by step and the model doesn't show up in game.
Did you rename the base file .pk3 the one that houses all of the model info and shaders? If say you were replacing a model with Rosh, you would rename the file you have been working on to Rosh_Penin.
 

Smee

Banned
Posts
116
Likes
134
Thanks to Luna i know how to get it it work now. Basically, follow LoU's guide but also change the models.pk3 file in the mb2 folder and replace the old model with the new one you created, in addition.
 
Posts
60
Likes
20
Hey, I need some help. I tried to replace leia_slave, followed every step but ingame the model is just slave leia without textures, anyone got an idea of what it could be?
 
Top