Modding Guide

# Wee Tanks Modding

## Overview

Welcome to the official Wee Tanks modding guide, modding in wee tanks is currently quite easy and does not require much skill. (Unless you make theme songs for all the tanks)

The following parts of the game are currently moddable:

* Textures
* Player and turret skins
* SFX
* Music
* Some models

More parts will be added in the future, like the ability to change models and additional behaviour scripts.

```
NOTE: If you miss any textures, sounds or music that you would like to mod, let us know on the official Wee Tanks discord and it will be added.

```

## Mod location

The modding works simple, you place the modded file with the correct name in a folder called "mods", which you might have to create yourself in the following directory:

```
C:\Users\%userprofile%\Documents\My Games\Wee Tanks\mods

```

The game will then automatically check for any modded files present in this folder, and apply it to the game.

## Textures

Texture mods can be either a **.png** or a **.jpg** file, below you will find a list of textures that are moddable.

### Texture settings

You can set some settings to how the texture is applied to the object, you can do this in a file called "mod\_settings.txt" which will also be located in the "mods" folder.

*Example mod\_settings.txt*

```
enable_block_random_rotation = 0

[Textures]
tex_wood_block_1_tile_x = 8
tex_wood_block_1_tile_y = 8
tex_wood_block_1_random_rotation = 0

```

Explanation

**enable\_block\_random\_rotation** -> if you set this to 0, it will disable all the random texture/block rotations in the game

**tex\_wood\_block\_1\_tile\_x = 8** -> set the tiling on the X axis for a specific texture (increasing makes the texture more detailed/smaller)

**tex\_wood\_block\_1\_tile\_y = 8** -> set the tiling on the Y axis for a specific texture (increasing makes the texture more detailed/smaller)

**tex\_wood\_block\_1\_random\_rotation = 0** -> set if this texture specific has random rotation

## Player and Turret skin

The player and turret skin textures are also moddable, but for this you might need some understanding of UV mapping. Because of the way complex models are textured is a little different than a normal block.

## SFX

Modding sound effects (SFX) is actually quite easy, just get any sound file and place it in the mods folder. It has to be **.ogg**, **.wav** or **.mp3**.

> Whenever you see a modded filename with **"\_1"** , that means there can be multiple and its a list. So you it can be like:
>
>
> * sfx\_ArmourHits\_1.mp3
> * sfx\_ArmourHits\_2.mp3
>
>
>

Below here you can find a list of moddable sounds.

## Music

All music in Wee Tanks is moddable, this also means all the tank themes. So feel free to create your own!

```
Note: Music needs to be **.wav!**

```

Please use the following sound sample to create themes that are fitting with the rythm Wee Tanks uses. (or create your own but then you need to replace all the themes or some will be out of sync)

## Model modding

Wee Tanks offers some support for model modding, this is not the easiest modding task. Be sure to have a 3D model program installed like Blender. Wee Tanks uses TriLib asset to import .fbx models runtime.

Wee Tanks uses .fbx models located in the following directory:

```
C:\Users\%userprofile%\Documents\My Games\Wee Tanks\mods\objects

```

**Step-by-step guide**

1. Highly recommended: Use this .fbx file when modding tanks.
2. Create/Edit your model in Blender, or download one from the internet
3. You can give your model textures/colors
4. Export your model selecting the .fbx prefab
5. Put the .fbx file in the folder as described above

Note: if you are modding the model of a tank, the model needs to consist of 4 parts named exactly like in the image below.

#### **Exporting with textures**

If you are exporting your model in blender, to the .fbx file, you might want to check that it's being embedded with textures.

In the export menu, set the Path Mode to "Copy", and enable the icon on the right of it. That's it!

**Moddable objects**