Once you have JtRH patched to level 2.0.7 (or higher), you have the capability to install modifications to your tile set without having to modify the entire thing. In the attached archive are four files, two with the extension "
.png"
and two with the extension "
.tim"
. The "
GeneralTiles.*"
files are an example of a complete mod, if you want to change all of the general game tiles. However, the "
tarmod.*"
files are an example of a smaller mod which only changes the appearance of tar and mud.
To install this mod, you simply take the "
tarmod.*"
files and place them in your "
Data/Bitmaps"
directory, and then edit your "
drod.ini"
file to add the line
General=tarmod
to the end of your [Graphics] section. (Note: this line should be included
in addition to the
General=GeneralTiles line that's already there, and it must come
after that line, or the tar mod will be ignored.) Now, when you play DROD, everything should look normal, except for tar, mud, and tar/mud babies/mothers.
So, how does this work? The secret is in the file "
tarmod.tim"
. This file specifies which tiles you want to replace. "
GeneralTiles.tim"
lists the identifiers for all the tiles in the main tile file, row by row. The "
tarmod.tim"
file only contains a few of these numbers. By looking at GeneralTiles.png, you can find that the tar tiles are the last five tiles on rows 24-26, and the tar mother tiles are the last four tiles on row 10. So, we can copy the corresponding numbers out of the same rows of GeneralTiles.tim into our "
tarmod.tim"
. You can see that the first line of tarmod.tim is
248,108,249,254,253,60-63,257-258,!2
which is made by copying the corresponding entries from GeneralTiles.tim. (The final "
!2"
indicates that the last two tiles of this row are unused.) The remainder of the .tim file is constructed in a similar way, by copying the elements from the main .tim file into our modded .tim file.
When drod.ini is read during start up, it starts off using all the default tiles in its internal GeneralTiles. By adding the line
General=tarmod
to the .ini file, we tell JtRH to replace these tiles. In this way, any number of mods can be installed sequentially, with later mods overriding earlier mods.
I hope this gives all you creative types enough to go from. Happy modding!
[Edited by AlefBet at
Local Time:05-24-2005 at 05:59 AM]
____________________________
I was charged with conspiracy to commit jay-walking, and accessory to changing lanes without signaling after the fact
.
++Adam H. Peterson