How to Reskin Materials and Textures in HumanitZ

Ei, Super estrela! neste guia, 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.

Começando

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

neste guia, we will be modifying the white box truck. Por que? Because you can find one immediately on the tutorial level, so it’s easy to test. Aqui está o Baunilha version of the truck:

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

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 setup seu 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!

Requisitos

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

  • Seu mod environment, as mentioned earlier.
  • o .uasset files of your materials.

Creating your Material

Esse, meu bom amigo, is where you meet one of the wonders of working with the Unreal Engine.

Você vê, Unreal Engine, despite having decades worth of development time, justcannot 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, desde, lembrar, we are only modifying arquivos.

Como mencionado anteriormente, we will be working with the white box truck in this example. That’s because there is no Debug ou 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! Amazing!

De qualquer forma. To prevent this guide from being another gargantuan mass of text, we will only be handling one material, for demonstration.
Você pode, é claro, 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. Para este guia, 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 NÃO work if our modded file doesn’t share the same file structure. Remember how we named our projectTSSGame“?

Nós iremos, 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.

Por exemplo, 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

agradecidamente, 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 textureaté onde sei, they are all of the extension type Targa, ou .tga

Setting up the Material

Tudo bem. 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?

Nós iremos… 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.

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

Próximo, writeTextureSampleParameter2D“. I’m no artist.

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

Select it from the dropdown list igual a:

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.

No meu caso, the material name is test:

Click over theRGBswitch at the top right of theParamwindow (The blue one), and drag it over to theBase Colorswitch on theYour Material Namewindow (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 texture. 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.

Qualquer clique a “Default Texturedropdown button, e browse for your texture, ou drag it de inspector towards the box. Like so!

Finalmente, at the very top of the window, hitAplicar” e então “Salvar“. 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:

Culinária

Jesse. It’s time to cook! Não, verdade. In Unreal you… cozinheiro… coisas. Don’t ask me why.

Head over to theContentfolder 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 selecione “Arquivo” > “Cook Content for Windows“, igual a:

Unreal will take a few seconds to do it.

It has some nice sound effects to let you know when it begins, and when it termina.

After it has finished, you can now safely press CTRL + S para Salve  your project, and close it. If Unreal asks you to save anything extra, faça isso.

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[/Lista]

Embalagem

É isso! You’re ready for packaging your mod! Agora, without doing anything else, head over to my Unofficial Modding Guide and finish your mod!

Este guia sobre HumanitZ Foi escrito por Braven. Você pode visitar a publicação original neste link. Se você tiver alguma dúvida sobre este guia, por favor, não hesite em contactar-nos aqui.

Sobre o autor