Main Page » Mod File Architecture


Mod File Structure

Mods have a pre-arranged file structure that they must adhere to. Basically we as the developer are showing the engine where to look for game resources, be it sound effects, code, textures, landscapes, or models. The data folder contains all the information our mod needs to function properly.

Creating the Data Folder:

  • Navitgate to your mod folder, in our case it will be the myfirstmod folder
  • Double-Click to enter the folder
  • Right-Click and select "New Folder"
  • Rename the folder "data" without the quotations
Note: This stage is required for any mod, and must be set up like so for the mod to be recognized by the game engine.



So far your setup should look similar to this depending on your operating system and username. Below is an example using windows seven:

example_photo1.png

The next step will be to add the necessary files and folders inside our data folder.

  • Double-Click our "data" folder to enter it

Now we need to add a couple files and folders:

Required Folders and Files for our Mod:

The following "folders" need to be created and inserted into our mods "data" folder:

Reminders:

  • To create a new folder, right click and select new folder.
  • Check your folder spelling carefully, or your mod will not function properly.
  • Do not use capital letters.
  • Click on any of the above links for a detailed description of its purpose.

Next we need to add various "TEXT" and "XML" files using our preffered text editor. I will be using ConTEXT for basic examples within this guide.

Reminder:General Modding Tools: Text Editor

The following "TEXT" files can be created and inserted into our mods "data" folder but they are not required:


At this point our data folder in myfirstmod folder should look like this when we open it.

folder&txt.png

If your folder matches the above setup exactly CONGRATULATIONS!! You're ready to enter part two of mod file structure!

To continue to the next phase in mod structure please click here:

Mod File-Structure Part 2

Donate to Scorched3D Get it from CNET Download.com! 5 Stars