Loading hidden worlds as Toyboxes 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

Hello, this tutorial is by Kyro Hazaki 57, **It requires attention**, so follow the steps closely. This will teach you how to load hidden worlds as toyboxes in 2.0.

## Tutorial

* Go to **Disney Infinity 2.0 Gold Edition/assets folder**.
* Copy and paste the **startup2.zip file** to another place, and make a backup of it of course, now you have 2 of him.
* Extract one of them, found the **zonelist.lua file** and decompile it with **unluac,** add the original name and copy to the **startup2 folder**.
* Open the file with **Notepad++** and search for **L3 = "TBX\_Mode\_Defend\_Storm"**
* Above the **L3 = "TBX\_Mode\_Defend\_Storm" line,** copy this lines :

`L3 = "avg_nycity"`

`L4 = {}`

`L5 = -128`

`L4.yDeathPlaneOffset = L5`

`L5 = true`

`L4._ShowInMenu_ = L5`

`L5 = 512`

`L4.worldExtentMaxY = L5`

`L5 = 0`

`L4.listOrder = L5`

`L5 = true`

`L4.availableInConsumerBuild = L5`

`L5 = true`

`L4.isPrebuiltToyBox = L5`

`L5 = "TBX_WORLD_BLANK"`

`L4.lock = L5`

`L5 = 512`

`L4.worldExtentCenterY = L5`

`L4.PlaysetProperties = "ToyBox"`

`L5 = true`

`L4.SAVE_INVENTORY = L5`

`L2[L3] = L4`

* Save and close the file, later you gonna select all the **startup2 files and make a new zip file, with the same original name.**

* Copy and paste the zip on **assets folder, if he ask to replace the old zip file, replace it, yes!**

* Open the game, in game go to **Toy Box/New** and select the **New York City** toy box.

* Wait the world load... done! this worked! look: