Modding is one of the key features in Voxel Tycoon.
Modding Tips[edit | edit source]
One of the most common issues is the difference between file path used in the "Uri" section of mod files and the use of uppercase characters in filenames.
As "Uri" file paths only work with lowercase characters, if you use entirely uppercase filenames for all the files and file paths of your mod, you will receive a warning message that the game cannot load the asset, as the code will convert the part of the file to a lowercase name.
|Don't name files like this! They won't work!|
If you enter a lowercase file path, such as "MeshUri": "myfirstmod/myfirstmod.obj", but you use an upper and lowercase filename, such as MyFirstMod.obj, then on a Windows operating system, your mod will work as it considers the file path using lowercase characters relates to the same file.
However, a Linux based system, which includes MacOS, treats files using uppercase and lowercase characters as different files, so "MyFirstMod.obj" and "myfirstmod.obj" are two different files.
Therefore, you should only ever use lowercase letters when naming files.