How to Reskin Materials and Textures in HumanitZ

Ehilà, Superstar! In questa guida, we will be looking at how to modify existing materials in the game, to reskin something. This guide also includes modding textures, as they are an essential aspect of materials.

Iniziare

For those of you who are unfamiliar with game development as a whole, “materialirepresent the surface of objects. Questo è, they are the visual representation of everything 3D you see in a game.

In questa guida, we will be modifying the white box truck. Perché? Because you can find one immediately on the tutorial level, so it’s easy to test. Ecco il Vanilla version of the truck:

And here is how it will become after we are done modifying esso!

Setting up your Mod

If this is your first time modding an Unreal Engine game, or HumanitZ in general, please refer to my Unofficial Modding Guide.

You will find all the info you need to impostare tuo modding environment là. Please return here ONLY after your environment is complete.

For the sake of keeping this guide compact, we will be assuming you have already done that!

Requisiti

Here is what you will need in order to start making a mod that changes the game’s materials:

  • Tuo mod environment, come menzionato prima.
  • Il .uasset files of your materials.

Creating your Material

Questo, il mio buon amico, is where you meet one of the wonders of working with the Unreal Engine.

Vedi, Unreal Engine, despite having decades worth of development time, Appena… non può import its own files. You read that right!

Since Unreal is incapable of reading the files we have extracted from the game, all that is left to do is for us to manually remake the file.

This is why it’s of utmost importancy that you adhere to the file structure, Da, Ricordare, we are only modifying File.

Come menzionato prima, we will be working with the white box truck in this example. That’s because there is no Debug o Cheat modes in the game just yet.

We need a quick and reliable way to check if our mod is working, and you can find this truck within seconds, after creating a new save and selecting to play with the tutorial! Sorprendente!

Comunque. To prevent this guide from being another gargantuan mass of text, we will only be handling one material, for demonstration.
Puoi, Certo, handle as many as you want, as you will soon learn.

The first step to create your material is to look for its entire folder structure. Per questa guida, I have picked the file M_BoxTruck_Body.uasset This file is located in this exact path:

  • TSSGame\Content\VehicleVarietyPack\Materials\BoxTruck\M_BoxTruck_Body.uasset

Keep in mind that the mod will NON work if our modded file doesn’t share the same file structure. Remember how we named our projectTSSGame“?

Bene, your new, modified material must also be named M_BoxTruck_Body.uasset, and it must also be in the path:

  • TSSGame\Content\VehicleVarietyPack\Materials\BoxTruck\M_BoxTruck_Body.uasset

Here is a screenshot demonstrating the material I have made, inside the Unreal Engine project, in the proper directory path:

Keep in mind your material will not look like this initially!

Creating your Texture

If you want your material to have a texture, just follow the same steps I mentioned above for the material.

Ad esempio, the texture for the material above is called

TX_Truck_Box_Diffuse.uasset, and it is located in the path:

  • TSSGame\Content\VehicleVarietyPack\Textures\BoxTruck\TX_Truck_Box_Diffuse.uasset

Per fortuna, when unpacking the files in UModel, textures are unpacked perfectly, in their actual image state!

This means you don’t need to really create your texture, just copy it over to the exact directory path it must be in, inside your Unreal Engine project.

In case you are making a textureper quanto ne so, they are all of the extension type Targa, o .tga

Setting up the Material

Bene. So we have created the material, and imported the texture. They are both in the exact directory they come from in the original game files.

So what nowDouble click the material, and you will find a cool window that will let you edit everything in a more… visual manner. Like so!

That’s greatBut it’s just a black color. How do we assign the texture to it?

Bene… You should really watch a youtube video about this, as there’s a LOT you can do, but just for the sake of making this as inclusive as possible, we will add a simple texture to this material.

Fare quello, you want to right click anywhere in that grid, and you will see something like this:

Prossimo, writeTextureSampleParameter2D“. I’m no artist.

This is some random shenanigan to translate a texture to 2D or something.

Select it from the dropdown list così:

You will now have this small window that saysParam“. Drag it closer to the big window with the multiple switches that has the name of your material on it.

Nel mio caso, the material name is test:

Click over theRGBswitch at the top right of theParam” finestra (The blue one), and drag it over to theBase Colorswitch on theYour Material Name” finestra (The beige one) You will now see that the preview updated! Your material now has a texture in it!

The last step is to load YOUR struttura. Click over theParamwindow once more, and on the scrollable list on the very left, scroll down to the very bottom.

You will find a category namedMaterial Expression Texture Base“. Là, you will see a small box that contains the sample texture.

clic il “Default Texturedropdown button, e browse for your texture, o drag it dal inspector towards the box. Like so!

Infine, at the very top of the window, colpo “Applicare” poi “Salva“. You can now safely close the material window.

Here is my finished, modified version of M_BoxTruck_Body. If you are following this tutorial exactly, make sure yours is the exact same:

cucinando

Jesse. It’s time to cook! No, Veramente. In Unreal you… cucinare… cose. Don’t ask me why.

Head over to theContenutofolder of your project, click the first folder that ultimately leads to your mod’s files.

We are editing M_BoxTruck_Body.uasset, and that file is located in this directory:

  • TSSGame\Content\VehicleVarietyPack\Materials\BoxTruck\M_BoxTruck_Body.uasset

This means that the first folder would be VehicleVarietyPack. So select that one.

After doing that, go to the top left of your screen, e seleziona “File” > “Cook Content for Windows“, così:

Unreal will take a few seconds to do it.

It has some nice sound effects to let you know when it inizia, and when it finisce.

After it has finished, you can now safely press CTRL + S a Salva your project, and close it. If Unreal asks you to save anything extra, fallo.

Locating the Cooked files

Your cooked files are saved in a directory inside your project folder. Specifically here:

  • […]\Unreal Projects\TSSGame\Saved\Cooked\WindowsNoEditor\TSSGame\Content[/elenco]

Packaging

Questo è tutto! You’re ready for packaging your mod! Adesso, without doing anything else, head over to my Unofficial Modding Guide and finish your mod!

Questa guida su HumanitZ è stato scritto da Braven. Puoi visitare la pubblicazione originale da questo collegamento. In caso di dubbi su questa guida, per favore non esitate a contattarci qui.

Circa l'autore