Modding Basics 1.0

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 1.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 1.0. You can check out other tutorials for 1.0 here