<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.heroesofhammerwatch.com/index.php?action=history&amp;feed=atom&amp;title=Custom_Materials_%28Dyes%29</id>
	<title>Custom Materials (Dyes) - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.heroesofhammerwatch.com/index.php?action=history&amp;feed=atom&amp;title=Custom_Materials_%28Dyes%29"/>
	<link rel="alternate" type="text/html" href="https://wiki.heroesofhammerwatch.com/index.php?title=Custom_Materials_(Dyes)&amp;action=history"/>
	<updated>2026-08-09T10:53:06Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.14</generator>
	<entry>
		<id>https://wiki.heroesofhammerwatch.com/index.php?title=Custom_Materials_(Dyes)&amp;diff=1855&amp;oldid=prev</id>
		<title>Hootless: Added wiki navigator</title>
		<link rel="alternate" type="text/html" href="https://wiki.heroesofhammerwatch.com/index.php?title=Custom_Materials_(Dyes)&amp;diff=1855&amp;oldid=prev"/>
		<updated>2019-04-17T19:14:20Z</updated>

		<summary type="html">&lt;p&gt;Added wiki navigator&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left diff-editfont-monospace&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 19:14, 17 April 2019&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l36&quot; &gt;Line 36:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 36:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[File:Pink_picture.PNG]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt; &lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[File:Pink_picture.PNG]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt; &lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;{{Template:BaseNav}}&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key hohmediawiki?h35303030a2ab-hiwrfuej_:diff::1.12:old-1852:rev-1855 --&gt;
&lt;/table&gt;</summary>
		<author><name>Hootless</name></author>
	</entry>
	<entry>
		<id>https://wiki.heroesofhammerwatch.com/index.php?title=Custom_Materials_(Dyes)&amp;diff=1852&amp;oldid=prev</id>
		<title>Hootless: How to create custom materials/dyes</title>
		<link rel="alternate" type="text/html" href="https://wiki.heroesofhammerwatch.com/index.php?title=Custom_Materials_(Dyes)&amp;diff=1852&amp;oldid=prev"/>
		<updated>2019-04-17T17:17:05Z</updated>

		<summary type="html">&lt;p&gt;How to create custom materials/dyes&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Materials (or dyes) alter the color of various parts of the players sprite. They can be added to the game fairly easily, requiring adding only a simple file. If you haven't yet, make sure you [[Mod base|create the base for the mod first]].&lt;br /&gt;
&lt;br /&gt;
== Making Materials ==&lt;br /&gt;
&lt;br /&gt;
In this example, we'll add a pink skin dye.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
In your mod folder, create a folder called &amp;lt;code&amp;gt;tweak&amp;lt;/code&amp;gt;. In there, you have to create a new sval file. You can for example call this &amp;lt;code&amp;gt;extra_dyes.sval&amp;lt;/code&amp;gt;, or something else. '''Keep in mind''': the assets between base and mods are shared! This means you should use a unique filename here that no other mod is going to use. (You could also put it in a separate (or different) folder if you want to be extra cautious.)&lt;br /&gt;
&lt;br /&gt;
Sval files is the main serializable data structure used throughout the engine, and sval files describe a single SValue object. Sval files however have a special property; you can specify a &amp;lt;code&amp;gt;loader&amp;lt;/code&amp;gt; tag to tell the engine which script function to load the sval with. These are called [[SValue Loaders]]. Using this loader, we can make the file load material definitions. For example, we can make an sval file containing this to add a new pink skin dye.&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;loader&amp;gt;Materials::LoadDyes&amp;lt;/loader&amp;gt;&lt;br /&gt;
 &amp;lt;dict&amp;gt;&lt;br /&gt;
    &amp;lt;array name=&amp;quot;skin&amp;quot;&amp;gt;&lt;br /&gt;
       &amp;lt;dict&amp;gt;&lt;br /&gt;
          &amp;lt;string name=&amp;quot;id&amp;quot;&amp;gt;pink&amp;lt;/string&amp;gt;&lt;br /&gt;
          &amp;lt;string name=&amp;quot;name&amp;quot;&amp;gt;Pink&amp;lt;/string&amp;gt;&lt;br /&gt;
          &amp;lt;array name=&amp;quot;shades&amp;quot;&amp;gt;&amp;lt;string&amp;gt;#350010&amp;lt;/string&amp;gt;&amp;lt;string&amp;gt;#e646c3&amp;lt;/string&amp;gt;&amp;lt;string&amp;gt;#ffa2fa&amp;lt;/string&amp;gt;&amp;lt;/array&amp;gt;&lt;br /&gt;
          &amp;lt;string name=&amp;quot;quality&amp;quot;&amp;gt;rare&amp;lt;/string&amp;gt;&lt;br /&gt;
          &amp;lt;bool name=&amp;quot;default&amp;quot;&amp;gt;true&amp;lt;/bool&amp;gt;&lt;br /&gt;
       &amp;lt;/dict&amp;gt;&lt;br /&gt;
    &amp;lt;/array&amp;gt;&lt;br /&gt;
 &amp;lt;/dict&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Here's a breakdown of the information included here:&lt;br /&gt;
* &amp;lt;code&amp;gt;array name=&amp;quot;skin&amp;quot;&amp;lt;/code&amp;gt;: This is what the material applies to. Other options besides &amp;lt;code&amp;gt;skin&amp;lt;/code&amp;gt; are &amp;lt;code&amp;gt;hair&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;cloth&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;metal&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;leather&amp;lt;/code&amp;gt;, and &amp;lt;code&amp;gt;wood&amp;lt;/code&amp;gt;&lt;br /&gt;
* &amp;lt;code&amp;gt;string name=&amp;quot;id&amp;quot;&amp;lt;/code&amp;gt;: This is the ID used to refer to the skin.&lt;br /&gt;
* &amp;lt;code&amp;gt;string name=&amp;quot;name&amp;quot;&amp;lt;/code&amp;gt;: The name displayed in-game.&lt;br /&gt;
* &amp;lt;code&amp;gt;array name=&amp;quot;shades&amp;quot;&amp;lt;/code&amp;gt;: The three values here correspond to the hex values for the three colors used in the material. Each can be anywhere from &amp;lt;code&amp;gt;#000000&amp;lt;/code&amp;gt; to &amp;lt;code&amp;gt;#ffffff&amp;lt;/code&amp;gt;.&lt;br /&gt;
* &amp;lt;code&amp;gt;string name=&amp;quot;quality&amp;quot;&amp;lt;/code&amp;gt;: The quality of the material, can be &amp;lt;code&amp;gt;common&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;uncommon&amp;lt;/code&amp;gt;, or &amp;lt;code&amp;gt;rare&amp;lt;/code&amp;gt;.&lt;br /&gt;
* &amp;lt;code&amp;gt;bool name=&amp;quot;default&amp;quot;&amp;lt;/code&amp;gt;: Determines whether you start with the material or have to find it like the other materials. Can be either &amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt; or &amp;lt;code&amp;gt;false&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
If you've done it all right, you should be able to enable the mod in-game and see your new material available in the tailor (if you have it set to default)! Unfortunately due to limits of the game engine it currently (as of writing this page) is not possible to have custom materials show up in the character creation screen. &lt;br /&gt;
&lt;br /&gt;
[[File:Pink_picture.PNG]]&lt;/div&gt;</summary>
		<author><name>Hootless</name></author>
	</entry>
</feed>