Ludeon Forums

RimWorld => Mods => Help => Topic started by: ItchyFlea on April 28, 2014, 02:24:35 AM

Title: How to call a .dll from the Map Generator [Solved]
Post by: ItchyFlea on April 28, 2014, 02:24:35 AM
I've modified one of the map generators to give myself some more flexibility, but have no idea how to use it.
I've got the .dll in the appropriate folder, but am not sure what is required to get the map generator to use it.

I've got: <li Class="MountainGenner.OptionalSide"> but the game just says that it failed to load the class.

The output log says this:
Non platform assembly: C:\Games\RimWorld\RimWorld413Win\Mods\MapTests\Assemblies\MountainGenner.dll (this message is harmless)
Could not load class MountainGenner.OptionalSide from node <li Class="MountainGenner.OptionalSide"><gridName>LavaGrid</gridName><gridSide>1</gridSide><possibleFadeSpans><li>0.23</li></possibleFadeSpans></li>

I'm guessing I messed up somewhere, but don't know where.
Title: Re: How to call a .dll from the Map Generator
Post by: Haplo on April 28, 2014, 06:19:50 AM
I'm unsure if it works, but try <li Class="MountainGenner.OptionalSide, MountainGenner">
Where the second is the Assembly Name.
Title: Re: How to call a .dll from the Map Generator
Post by: ItchyFlea on April 28, 2014, 08:29:03 AM
Thank-you Haplo, that works.  ;D