RimWorld
Android tiers
faraddox 13 MAR 2021 a las 4:06
In case of somebody else struggles with these exceptions on game start
I had 6 exceptions, all like these:
Exception loading list element from XML: System.MissingMethodException: Default constructor not found for type System.String
at System.RuntimeType.CreateInstanceMono (System.Boolean nonPublic) [0x0007b] in <567df3e0919241ba98db88bec4c6696f>:0
at System.RuntimeType.CreateInstanceSlow (System.Boolean publicOnly, System.Boolean skipCheckThis, System.Boolean fillCache, System.Threading.StackCrawlMark& stackMark) [0x00009] in <567df3e0919241ba98db88bec4c6696f>:0
at System.RuntimeType.CreateInstanceDefaultCtor (System.Boolean publicOnly, System.Boolean skipCheckThis, System.Boolean fillCache, System.Threading.StackCrawlMark& stackMark) [0x00027] in <567df3e0919241ba98db88bec4c6696f>:0
at System.Activator.CreateInstance (System.Type type, System.Boolean nonPublic) [0x00020] in <567df3e0919241ba98db88bec4c6696f>:0
at System.Activator.CreateInstance (System.Type type) [0x00000] in <567df3e0919241ba98db88bec4c6696f>:0
at Verse.DirectXmlToObject.ObjectFromXml[T] (System.Xml.XmlNode xmlRoot, System.Boolean doPostLoad) [0x0051d] in <6326ac03f61f45efb3178f3bfd084139>:0
at Verse.DirectXmlToObject.ListFromXml[T] (System.Xml.XmlNode listRootNode) [0x000ab] in <6326ac03f61f45efb3178f3bfd084139>:0
XML:
<disallowedTraits><li><defName>DrugDesire</defName></li><li><defName>AnnoyingVoice</defName></li><li><defName>CreepyBreathing</defName></li><li><defName>Pyromaniac</defName></li><li><defName>Wimp</defName></li><li><defName>Masochist</defName></li><li><defName>NightOwl</defName></li><li><defName>Jealous</defName></li><li><defName>Nudist</defName></li><li><defName>Transhumanist</defName></li><li><defName>BodyPurist</defName></li><li><defName>SuperImmune</defName></li><li><defName>Beautiful</defName></li><li><defName>Tough</defName></li><li><defName>MechAtlas</defName></li></disallowedTraits>

(Filename: C:\buildslave\unity\build\Runtime/Export/Debug/Debug.bindings.h Line: 35)


After some searching in xml's i found issue.
Go to Mods\*Android tiers mod folder*\1.2\Defs\AlienRace
There are AlienRace_AndroidT1 - AlienRace_AndroidT5 and AlienRace_M7Mech files
Find <disallowedTraits> *** </disallowedTraits> block and remove <defName> and </defName> here.
Lines should look like:
<li>Pyromaniac</li>