I am trying to make my own hediff Giver. Unfortunately, I get an error during the startup of the game saying that my custom class for the giver could not be found.
Could not find type named ModTest.Class1 from node <li Class="ModTest.Class1"></li>
I can't figure out where my problem is. I have my dll file in the "Assemblies" file. My "Assemblies" file is in the "1.3" file. My xml file is in the "Defs" file. This seems like something simple but I can't figure it out. Does anyone know where I am going wrong with my code?
Hediff Giver:
<?xml version="1.0" encoding="utf-8" ?>
<Defs>
<HediffGiverSetDef>
<defName>Lapelli</defName>
<hediffGivers>
<li Class="ModTest.Class1">
</li>
</hediffGivers>
</HediffGiverSetDef>
</Defs>
c# code:
using RimWorld;
using Verse;
namespace ModTest
{
public class Class1 : HediffGiver
{
// nothing here yet
}
}
add trace output to make sure that your dll is actually loaded