Teardown

Teardown

38 hodnocení
How To Create Your Own Character (Casual Way)
Vytvořil: May
In this guide I'll chew you all the information, show you and explain how to make your character visible in the list, without a doubt, quickly and easily. How you can create your own character and play with in the game. No need to be afraid, just need to little understand how it works and a little action to do. Even if you've never experienced modding, this guide is for beginners. Let's get modding!
4
2
3
2
   
Ocenit
Přidat do oblíbených
Oblíbeno
Odebrat z oblíbených
Right Path
First of all, we need to understand where, from where, and how to find files that we will use for our custom character. We need only 2 files from the game: model ( .vox ) and prefab ( .xml ).

All paths for characters and their files here:
Models: Steam\steamapps\common\Teardown\data\vox\player\
Prefabs: Steam\steamapps\common\Teardown\data\prefab\player\

Take 2 files with the same name (in my case, it would be player_bjorn.vox and player_bjorn.xml ). Now we need to make our local mod for Teardown.
Your Local Mod
All of the local Teardown mods friendly existing in the Documents on disk C:.
Example: C:\Users\"Name of the User"\Documents\Teardown\mods\. Sometimes it happens they are in the OneDrive folder.

Now we need to organize our folders there, as a "gold standard for everything", so we don't get confused.
  1. Make your MOD folder in the \mods\, name it whatever you want.
  2. Make \characters\ folder in the MOD folder
  3. Make 2 folders: prefab and vox in the \characters\ folder
  4. Put character's file .xml in prefab folder and file .vox in the vox folder

In the end it should be like this


Now let's get to editing the model!
Edit Model in MagicaVoxel
!!!If you know how to work in MagicaVoxel, no need to read it. This part is for very beginners!!!

All models can be created and edited in MagicaVoxel. It's a very simple and easy program to understand. You can download the program here:

Get MagicaVoxel![ephtracy.github.io]

Better to watch some tutorials on Youtube. There's a lot. But here I just want to show you some easy steps how to edit your character right now. Open .vox model with MagicaVoxel and now we start edit it.
This is a main screen. You can rotate your character with RMB and move space with WMB


There's material list. You can color your character only with plastic, add some metal, add glass, etc. Click on palette color and change color whatever you want.


Double click on the part of the model (a.k.a outlines) and start edit (double click again for exit). Paint is for to change voxel color, Erase is for removing voxels, Attach is for adding voxels


It's possible to change the size of the model's borders (just change numbers like: "12 7 12"; "8 5 8") and fit it to model size (Click on icon to the right of the numbers). On the right, there is a full list of all the parts of the model (outlines), where you can easily find them.


In the end, you can get a character like this, which I've edited for this guide. PepeGoo
The Secret of MOD
In this section, we will touch a very difficult part to understand. Keep an eye on it and stay focus! Just need to know that your folder (where your character or your mod is located) is always specified as MOD, not as you named it. It may be called by different names, but for the game it will always be automatically defined as MOD. It's important to remember that. We need to get the right path for the .xml file to your model, so that everything works correctly.

Here is on the picture you can see that my MOD is PepeGoo (MOD = PepeGoo folder).


And don't confuse the slash (this "/" with this "\") when you write your path to the model. Always right slash is "/"! In my example, the path for .xml file looks: MOD/characters/vox/pepegoo.vox.

Hooray! Now we're getting to the most magical part, which is coding.
Coding .xml file
This part is really important! Change only what I show you and nothing more. Please, read carefully!
To better edit files I'll advise you to download Visual Studio Code[code.visualstudio.com] and you'll further understand why. It can change several lines of code at a time. We only need to change the path to our model (.vox). So, in prefab (.xml), we need to find the file name of the model we took earlier from the Teardown's steam folder (in my case: player/player_bjorn.vox) and change it to the path and name of our file (in my case: MOD/characters/vox/pepegoo.vox).

Open your prefab (.xml file) with VS Code. Find the name of the model file that you use (for me its player_bjorn.vox). And every line [player/player_bjorn.vox] need to change.


Copy full your path to the model like: MOD/characters/vox/pepegoo.vox. Now in the VS Code highlight the text (player/player_bjorn.vox) along with the .vox without hitting the quotation marks. As on the picture! Click on Change All Occurrences (or Ctrl+F2)


and Paste. The result should be looks like this:

As you can see this takes us to all objects in the model: "neck", "hood", "head", "shoulder_1", "arm_upper_1" and etc. (you can see the full list in the MagicaVoxel>Outlines aswell). That's why we do this.

Don't forget to save changes in the file. Now we need to make you can see your character in the game. And it would displayed separately from Merlin.
characters.txt and info.txt
These 2 .txt files are really important. They should be placed in the MOD folder. Earlier I have told you what a MOD folder is. (for clarity I'll show you on the picture)



info.txt
This file adds your character to the list. You can just create an info.txt without anything inside and it will still work. But it has to exist! It's just a standard file that all mods need.
Without info.txt file you will not be able to see your character model in the game!

**This part is for those who want to fill out info.txt file.
By default info.txt looks like that:
name = "Name of your mod" author = "You" description = "Something write here" tags = "Asset, Map, Vehicle, Tool"
Here is an example how I did it in my info.txt


characters.txt
This file will allow you to see your character in the game. You can attach a picture and put description for your character. By default, it should be:
[Character] description=Short description of Character preview=characters/"characterpreview".png path=characters/"character".xml anim_speed=0.8 height=1.8

As you can see, only in the characters.txt file we specify our prefab (.xml). All paths are only inside the MOD folder! So, each path must be specified without MOD
(examples: path=characters/alexcasey.xml;
path=johnwick.xml;
preview=characters/myui/passportphoto.png)
Here is another example to clearly show how I got it in my characters.txt file:


Note that you must be sure to specify your path to the .xml file. Don't forget to save characters.txt file (open characters.txt>File>Save). Otherwise you won't be able to see your character in the game.
Preview Image
For a nice preview of your character, you should use the following parameters:

Size: 512x512
Format: PNG

You don't have to make the image maximum size, you can make it smaller, for example 189x189
Character in the game!
Thats it! Our character in the game, here's the result. Say "Hi" to PepeGoo! :D


You can also use Merlin in the Teardown Mod Manager (Mod manager > Built-In > Merlin). Merlin is a default ragdoll for characters. Get local copy of that, and edit it whatever you want in the Mod editor.

For editing your model in Teardown Mod Editor, you could find your character in "OTHER-MODS". Its name is the one you specified in the info.txt file (If your info.txt file is empty, it will display as a blank line).




I hope this somehow helped you to create and add your own character to the game, and you figured out some basic moments in modding, despite the fact that it was a casual way ¯\_(ツ)_/¯. Now the rest depends on your creativity, imagination and, of course, more extensive knowledge on this.

***Full information and documentation can be found here Animation documentation[teardowngame.com].
If you find any errors in the guide, feel free to tell me in the comments!
GOOD LUCK WITH MODDING!
Počet komentářů: 46
May  [autor] 5. lis. v 18.23 
@larrybernstein2019 Teardown workshop deserve something better than that. You probably can take my tutorial example and make it better for yourself.
larrybernstein2019 3. lis. v 15.12 
would you possibly upload the pepegoo to the workshop :3
TheFitnessGramPacerTest 28. říj. v 15.17 
I keep having an issue with my character not showing up but all the steps I had followed.
thebigstare 24. říj. v 16.25 
you cant change the \ with /

i tried
Acid 23. říj. v 16.23 
Made some progress with more specific following of the tutorial! I managed to get the model visible ingame, but it's stuck in a tpose, and its backpack falls into the water on the character select screen. Seemingly crashes upon map load.
JIMMERS42 22. říj. v 21.13 
Oh i got another problem, the black on my character is turning white ingame.
Need some help with this.
Acid 22. říj. v 19.47 
I'll probably start over tomorrow (or whenever) and use the Merlin model/XML as a base rather than the other one I was trying with, and just import the actual modelling from my custom one, since using a model I have to delete parts of just makes things more complicated.
Will get back to you on how that goes.
Acid 22. říj. v 19.32 
@May Is MOD meant to be the name of the root folder, or should it actually just be MOD? because I have mine as my mod folder. I guess maybe my mod folder's name having a space in it could be a problem maybe?
May  [autor] 22. říj. v 19.19 
@Acid Well, if you don't do exactly as my guide says, of course you won't see your character in the game. In the .xml file it's better not to touch anything if you don't know what you are doing. In your case it's better to take a new .xml file of your character and edit it in the Mod Editor.
Acid 22. říj. v 19.05 
This did not fix it, but I am fairly confident it's to do with the XML anyways. Will continue to poke around and see if I can find a fix. Let me know if there's a way I can share my files to help try to show what I'm struggling with.