So I've been trying to get Map Generator to use my custom Genner_ColonistsX. But I keep getting the same error.
"Could not load class MapStartEdit.Genner_ColonistsX from node <li Class="MapStartEdit.Genner_ColonistsX"></li>"
namespace MapStartEdit
{
public class Genner_ColonistsX : Genner
{
}
}
Any ideas?
Thanks, Calum.
I think someone had the exact same problem here (http://ludeon.com/forums/index.php?topic=3343.0).
Quote from: 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.
Try <li Class="MapStartEdit.Genner_ColonistsX, MapStartEdit"> I guess?
Quote from: pawnstorm on May 05, 2014, 04:10:21 PM
I think someone had the exact same problem here (http://ludeon.com/forums/index.php?topic=3343.0).
Quote from: 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.
Try <li Class="MapStartEdit.Genner_ColonistsX, MapStartEdit"> I guess?
It works, however it gives me another minor error now.
"Exception reading BaseMapGenerators.xml as XML: Unexpected token. Name is required here. Line 267, position 46.."
So, what's on line 267 of BaseMapGenerators.xml?
Quote from: pawnstorm on May 05, 2014, 04:27:11 PM
So, what's on line 267 of BaseMapGenerators.xml?
<li Class="MapStartEdit.Genner_ColonistsX", MoreThan3StartingColonists>With MapStartEdit being the NameSpace, Genner_ColonistsX being the classname, and MoreThan3StartingColonists being the Assembly name.
try moving the double quote:
<li Class="MapStartEdit.Genner_ColonistsX, MoreThan3StartingColonists">
I posted it with the double quote in the wrong place earlier, but I edited it like 10 seconds after :P
Quote from: pawnstorm on May 05, 2014, 04:34:22 PM
try moving the double quote:
<li Class="MapStartEdit.Genner_ColonistsX, MoreThan3StartingColonists">
I posted it with the double quote in the wrong place earlier, but I edited it like 10 seconds after :P
Oh, that didn't work but I found out why!
<li Class="MoreThan3StartingColonists.Genner_ColonistsX, MoreThan3StartingColonists"/>Was forgetting to add the "/" on the end, one of my typical schoolboy errors.
I ran into the same issue, and saw someone else post here about this as well.
I'm starting this think this should be a Stickied post, or maybe we could create a stickied Common Issues/FAQ post...
Quote from: pidggit on May 05, 2014, 05:25:22 PM
I ran into the same issue, and saw someone else post here about this as well.
I'm starting this think this should be a Stickied post, or maybe we could create a stickied Common Issues/FAQ post...
Had I still been a moderator! I would immediately of made a common issues thread :)
However I will message tynan.