RimWorld can't load Class?

Started by Cala13er, May 05, 2014, 04:02:26 PM

Previous topic - Next topic

Cala13er

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.

pawnstorm

I think someone had the exact same problem here.

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?

Cala13er

Quote from: pawnstorm on May 05, 2014, 04:10:21 PM
I think someone had the exact same problem here.

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.."

pawnstorm

So, what's on line 267 of BaseMapGenerators.xml?

Cala13er

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.

pawnstorm

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

Cala13er

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.

pidggit

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...

Cala13er

#8
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.