Optional
Deity
I made a simple mod and would like to know how to get this in the game as a mod.
It is only a single XML file that is adjusted. I see where the mods are, and every mod consists of one or more files, but there's always a ModInfofile as well that tells the game to use these files and how.
I'm assuming that I need to make a ModInfofile for my mod to make it work. I looked at what is in these files, and some things seem simple, but there are also some long codes in there. This, for example, is the ModInfofile for the Treegrowth mod:
Most of this I understand, but where do these codes come from? Codes like for Mod id and the files that are referenced. How do I get those for my mod?
I scanned the modding guide and did a search for 'ModInfofile', but had problems finding what I was looking for.
It is only a single XML file that is adjusted. I see where the mods are, and every mod consists of one or more files, but there's always a ModInfofile as well that tells the game to use these files and how.
I'm assuming that I need to make a ModInfofile for my mod to make it work. I looked at what is in these files, and some things seem simple, but there are also some long codes in there. This, for example, is the ModInfofile for the Treegrowth mod:
Spoiler :
<?xml version="1.0" encoding="utf-8"?>
<Mod id="1dd9a71f-8b9c-4e37-8dbd-298437091757" version="3">
<Properties>
<Name>TreeGrowth</Name>
<Stability>Beta</Stability>
<Description>Forests can now grow out into adjacent, suitable tiles. The rate of expansion is tied to the map speed and map size, although speed is the more significant factor. On a Marathon, Huge map, the chance of an appropriate tile growing a forest is roughly 0.05%, or 1/1950. On a Quick, Duel map, the chance is roughly 0.3%, or 1/335.</Description>
<Authors>Bhruic</Authors>
<AffectsSavedGames>1</AffectsSavedGames>
<MinCompatibleSaveVersion>0</MinCompatibleSaveVersion>
<SupportsSinglePlayer>1</SupportsSinglePlayer>
<SupportsMultiplayer>0</SupportsMultiplayer>
<SupportsMac>1</SupportsMac>
<ReloadLandmarkSystem>0</ReloadLandmarkSystem>
<ReloadUnitSystem>0</ReloadUnitSystem>
</Properties>
<Dependencies />
<References />
<Blocks />
<Files>
<File md5="28C7D3AEC1EA9754D3F0D8AB2D4EBF18">InGame.xml</File>
<File md5="D82364B06C76551BE7AD316245CAA91D">NotificationPanel.lua</File>
<File md5="DB16BFE8D0CF607A9122511F6E1A5E9D">NotificationPanel.xml</File>
<File md5="2B96CDBA2C6CA7FAA1AFB1105F3B6290">TreeGrowth.lua</File>
</Files>
<Actions>
<OnModActivated>
<UpdateDatabase>InGame.xml</UpdateDatabase>
<UpdateDatabase>Notifications.xml</UpdateDatabase>
<UpdateDatabase>NotificationPanel.xml</UpdateDatabase>
</OnModActivated>
</Actions>
<EntryPoints>
<EntryPoint type="Game Rules" file="">
<Name>TreeGrowth</Name>
<Description>Forests spread naturally</Description>
</EntryPoint>
</EntryPoints>
</Mod>
<Mod id="1dd9a71f-8b9c-4e37-8dbd-298437091757" version="3">
<Properties>
<Name>TreeGrowth</Name>
<Stability>Beta</Stability>
<Description>Forests can now grow out into adjacent, suitable tiles. The rate of expansion is tied to the map speed and map size, although speed is the more significant factor. On a Marathon, Huge map, the chance of an appropriate tile growing a forest is roughly 0.05%, or 1/1950. On a Quick, Duel map, the chance is roughly 0.3%, or 1/335.</Description>
<Authors>Bhruic</Authors>
<AffectsSavedGames>1</AffectsSavedGames>
<MinCompatibleSaveVersion>0</MinCompatibleSaveVersion>
<SupportsSinglePlayer>1</SupportsSinglePlayer>
<SupportsMultiplayer>0</SupportsMultiplayer>
<SupportsMac>1</SupportsMac>
<ReloadLandmarkSystem>0</ReloadLandmarkSystem>
<ReloadUnitSystem>0</ReloadUnitSystem>
</Properties>
<Dependencies />
<References />
<Blocks />
<Files>
<File md5="28C7D3AEC1EA9754D3F0D8AB2D4EBF18">InGame.xml</File>
<File md5="D82364B06C76551BE7AD316245CAA91D">NotificationPanel.lua</File>
<File md5="DB16BFE8D0CF607A9122511F6E1A5E9D">NotificationPanel.xml</File>
<File md5="2B96CDBA2C6CA7FAA1AFB1105F3B6290">TreeGrowth.lua</File>
</Files>
<Actions>
<OnModActivated>
<UpdateDatabase>InGame.xml</UpdateDatabase>
<UpdateDatabase>Notifications.xml</UpdateDatabase>
<UpdateDatabase>NotificationPanel.xml</UpdateDatabase>
</OnModActivated>
</Actions>
<EntryPoints>
<EntryPoint type="Game Rules" file="">
<Name>TreeGrowth</Name>
<Description>Forests spread naturally</Description>
</EntryPoint>
</EntryPoints>
</Mod>
I scanned the modding guide and did a search for 'ModInfofile', but had problems finding what I was looking for.