-
Notifications
You must be signed in to change notification settings - Fork 4
Creating Mods
#Creating a Mod Reference the included sample mods. I think it's easier to understand visually!
Each mod is packed in it's own folder inside of the mods folder.
##info.txt (Optional) Each mod has an info.txt file. It stores basic information about the mod.
If this file does not exist, the folder name will be used as the title and no author or description will be available.
Sample:
Loading Time Fix
Iran & mumboking
Speeds up the pizza loading screen in fullscreen mode.
The first line is the title of the mod.
The second line is the name of the creator.
The remaining lines are the mod's detailed description.
##patch.txt Each line in this file is a hex edit for the game's executable file.
It uses this format (all values are in hexadecimal):
Offset ; New bytes to write ((Optional) ; Original bytes)
The original bytes portion can usually be ignored, but it is useful if you want your patch to be compatible with different versions of the game.
Sample A:
29B2;01;00
This would change byte 0x29B2 to 0x01 but only if the value was originally 0x00.
Sample B:
29B2;01
This would change byte 0x29B2 to 0x01 regardless of what the original value was.
##File Replacement See the included "Island Grass" mod.
When a mod has a _data subfolder, it will mirror whatever is in that folder into the game's real _data folder.
Something like
_data\z02LGI\textures\text008.tga
would replace a grass texture on the island.