Model Swaps in 2.0

To get started modding 2.0 make sure you've read the basics

## Introduction

Hey there!

You've heard there is modding going around for Disney Infinity, so you want to know how to mod it! In this tutorial you'll be able to mod in no time! We'll be going through the different types of files the game uses to run properly, and Modding by messing around with the code.

## Decrypting The Game Zips?

Luckily there is no encryption on 2.0's zips!

Thought it is very important that you re-pack the zips after doing your edits because else it won't work. *Unless!* It's a texture zip. Then you can do like you would on 3.0.

## File types the game uses

Now, we will talk about the files the game uses so you dont get confused when modding in the future.

### .Lua

lua files are text files with lua code in them, however, there are some lua files that are obfuscated and encrypted, they need unluac.

### .Tbody

tbody files are the textures, they're actually renamed .dds files. To edit them see Texture Swaps

### .Oct

oct files are the files that gather the ibuf and vbuf (the mesh), skeleton, and textures to make sure the mesh has textures and a skeleton.

### .Ibuf and .Vbuf

ibuf and vbuf files are the mesh of the character.

### .Bent

bent files are the files that load the animations and .oct file.

### .Animtreeoverrides

animtreeoverrides files are the animation overrides of a character.

### .Dnax

dnax files are similar to the .lua files, they're lua code.

### .Sx

sx files are the script a dnax file tells the game to use.

And that would be all the file names! (For now)

## Messing around with the code

Now, we're gonna talk about messing around with the code to make cool things! As mentioned earlier, .lua and .dnax files contain lua code.

### Unluac

You're gonna need to install something called unluac. In order to use unluac you're gonna need to install java first, and if you already have java, thats great!

You can grab unluac from here: SourceForge

And if you dont have jave you can grab it from here: Java

#### Set up

1. Make a folder for decompiling and name it whatever you like.
2. Copy and paste unluac there.
3. Search for the lua file you'd like to decompile, and copy and paste it to your decompiling folder.
4. Make a new text document.
5. Put in: **java -jar unluac.jar file.lua > decrypted\_file\_name.lua**
6. Save it as a .bat file
7. Now, rename the original file.lua to file\_backup.lua (In it's original folder. Not in your decompiling folder), and rename the decrypted lua to the orignal file's name.
8. Copy the new file and paste it in the original file's folder. If it asks if you want to overwrite a file with the existing name press yes.
9. You can now see the code and start editing. Remember to save before launching the game.

## Outroduction

Congratulations! This was the modding basics for 2.0. You can check out other tutorials for 2.0 here

See the full article:Modding Basics 2.0

## Introduction

This tutorial was created by Kyro Hazaki 57 and is going to teach you how to model swap on 2.0

## Tutorial

1. Go to **Disney Infinity 2.0 Gold Edition/assets/characters folder**.
2. Extract the **characters.zip file**, later make a backup of it, and delete the **characters.zip file** inside the characters folder.
3. Now take the **.dnax** **file** of the character of your choice, decompile with **unluac** and add the original name of the file.
4. Copy and paste the edited **.dnax file** of your choice in **characters.zip**, if he asks to replace, replace it.
5. Select all the files inside the **characters folder**, less the folders, and make one zip file with all the selected files.
6. Delete all the selected files, less the own zip of course.
7. Run the game and, boom, it worked!