Modding:Tutorial - Custom Player Tiles: Difference between revisions

example; editing
(finish build code steps; use more distinctive name)
(example; editing)
Line 33: Line 33:
# Paste the code somewhere you'll be able to find it later.
# Paste the code somewhere you'll be able to find it later.


== Instructions ==
== Making the mod ==
 
Now you're going make a mod that puts everything together!


# Locate your <code>Mods</code> folder, listed as “‘offline’ mods” on the [[file locations]] page.
# Locate your <code>Mods</code> folder, listed as “‘offline’ mods” on the [[file locations]] page.
Line 39: Line 41:
# Inside your new mod folder, make a folder called <code>Textures</code> and put your tile in it.
# Inside your new mod folder, make a folder called <code>Textures</code> and put your tile in it.
# Also inside the mod folder, make a file called <code>EmbarkModules.xml</code>. (The <code>.xml</code> file extension is mandatory; it can't be <code>.txt</code>. If necessary, disable hiding of file extensions in your file manager.) Add this text to it:
# Also inside the mod folder, make a file called <code>EmbarkModules.xml</code>. (The <code>.xml</code> file extension is mandatory; it can't be <code>.txt</code>. If necessary, disable hiding of file extensions in your file manager.) Add this text to it:
<syntaxhighlight lang="xml">
<syntaxhighlight lang="xml">
<embarkmodules>
<embarkmodules>
Line 64: Line 67:
* In between <code><description></code> and <code></description></code>, write whatever descriptive text you want to appear for the preset on the character creation menu.
* In between <code><description></code> and <code></description></code>, write whatever descriptive text you want to appear for the preset on the character creation menu.


Now, assuming everything has gone to plan, you should be able to boot the game and enjoy your new preset with its custom tile!
Here is an example you can look at to see if everything looks right:
 
<syntaxhighlight lang="xml">
<embarkmodules>
    <module Class="XRL.CharacterBuilds.Qud.QudPregenModule">
        <pregens>
            <pregen Name="Monad Nomad" Genotype="Mutated Human" Tile="Creatures/sw_monad.bmp" Foreground="M" Detail="y" Background="k">
                <code>H4sIAAAAAAAAA81WXWvbMBR9768QZo9uSLtsjEEeMm/sqy1pk3WF0QfZvthismSkq44s5L/vSkmNY7fLOkhJILZzztXRyf0QXh4xFhW8gjswVmgVvWXR6WA4OB2+HryMYs+mTsi8RZ8QPVxTlc6dBEvoD/rJ2DJcG2K+qMGvuLk6GyQlNzxDMO+8nB1cutx/P4LSSGHnYUHMJtZClcrFcTKjBXXMrtcbjxtTMUucRGdgrMCh4TJmU5dKkX2FxVz/BDVWTsrgL1jJOXIycW+NkBf4VF/vSaPnrdmCJO/Dveq5Q46Qs0+u4qod1MvhhlqF+yr+zxTOXHqIGdyytTOBm2iveaErnj9D3kKdSNceWuY6xnbmrqpJcNgCLEjIgkIzmevPsvXMNp26yWxSigoMb+mGkEQ7hcSfdPBrbgQPzLDD3K2ZCzpTvG7UYlfxv3n5pizyVALzY0Uyj3h69Zye5lqJjE2kBFMs9pul5vl2/0MwQTQidQgHNwVdZzvHYKqFQjt1Jiu5hXxrR3/CoAFVYEn4m3YxokkhpMBFD59rV5QKrO0xnxWClKIAlUGP/C6krPUvMD3mQ6EJGzVQq/UiXs9qCJ1yPBpt4VdQcaGEKjpDntKfnPjJ34rfU5skzqKuxG9o+ENrl8cc7mwbtR5B76GF1oB9kAqeh7p2g41WdALMHlqzr4KUWluYITdIrXGms3BQHVxR/uJy9ytBZ5nf64uua/6EdwO63h6t/gCn9Rzp5QoAAA==</code>
                <description>
I'm a monad :)
                </description>
            </pregen>
        </pregens>
    </module>
</embarkmodules>
</syntaxhighlight>
 
Now, assuming everything has gone to plan, you should be able to boot the game and enjoy your new preset with its custom tile! After selecting New Game and choosing a game mode, select Presets then whichever genotype you categorized your preset under. You should see it in the list.


[[Category:Guides]][[Category:Modding Resources]]
[[Category:Guides]][[Category:Modding Resources]]