Modding Basics 3.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
The game's zips are encrypted since Disney didn't want anyone to mess with them. So, in order to decrypt them, you're gonna need a program called QuickBMS and a script made for it named disney_infinity.bms

QuickBMS

Disney_infinity.bms

Tutorial

 * 1) Download and unpack QuickBMS into a folder of your liking and be sure to also copy the bms script into the same folder QuickBMS is in.
 * 2) Drag and drop the BMS script onto QuickBMS.exe
 * 3) You will be asked to choose a file to extract (Zip)
 * 4) Find the Zip you want to decrypt and double click on it
 * 5) You will then be asked to choose the output folder. So find the folder you wish the files to be extracted to and press save.
 * 6) Once QuickBMS says it's finished press any button to close it down and you've extracted the file!
 * 7) Sub-Tutorial on how to apply changes in-game
 * 8) Make sure you rename the old zip to file_backup.zip
 * 9) Paste all of the extracted contents in the folder the original zip is in (the one you renamed to file_backup.zip)
 * 10) Edit the lua files or replace the bent files etc.
 * 11) Run the game and you're good!

.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
the .bent files are the ones that control all the animations of the characters, scenarios, etc.

at the moment their modification is limited and they can only be modified in a hex editor.

.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.

.Bnk
bnk files are video files.

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
 * 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.
 * 1) 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.
 * 2) You can now see the code and start editing. Remember to save before launching the game.

Outroduction
Congratulations! This was the modding basics for 3.0! You can check out other tutorials for 3.0 here

And make sure to do this one about modding missing characters!