Error in xml file. Old def use

Started by Teneombre, January 20, 2018, 09:41:43 PM

Previous topic - Next topic

Teneombre

Hi,

I was cleaning a little bit my game because I have a lot of bug due to many mods (and not really clean update for my personal mod) but I found a bug in the game itself.

Here was the line in the debug log :

QuoteCould not resolve cross-reference to Verse.ThingDef named Neurotrainer

After a bit of research, the error was cause by a typo in this file : \Mods\Core\Defs\JobDefs\ItemCollectionGeneratorDefs\ItemCollectionGenerators_General.xml

Quote<ItemCollectionGeneratorDef>
    <defName>Neurotrainers</defName>
    <label>neurotrainers</label>
    <workerClass>ItemCollectionGenerator_Standard</workerClass>
    <allowedDefs>
      <li>Neurotrainer</li>
    </allowedDefs>
  </ItemCollectionGeneratorDef>

but with the B18, Neurotrainer def changed and the good code is now :
Quote<ItemCollectionGeneratorDef>
    <defName>Neurotrainers</defName>
    <label>neurotrainers</label>
    <workerClass>ItemCollectionGenerator_Standard</workerClass>
    <allowedDefs>
      <li>MechSerumNeurotrainer</li>
    </allowedDefs>
  </ItemCollectionGeneratorDef>

I was septic about the error but after, I reload the game and no more references to a Neurotrainer error. I hope I didn't make a mistake and help a bit :)

Shinzy

Hello there!
the current version of the game doesn't seem to have <ItemCollectionGeneratorDef> for neurotrainers at all anymore
Perhaps it could have been somehow left over from previous alpha. So I could recommend uninstalling/reinstalling the game all fresh just to be safe! :D

Thank you for reporting!

NeverPire

#2
Hello,
As I see one of the core developpers here, I take this opportunity to link the threads I have created related to typos and problems in the english core :

https://ludeon.com/forums/index.php?topic=37998.msg389236#msg389236
https://ludeon.com/forums/index.php?topic=37534.msg384096#msg384096
https://ludeon.com/forums/index.php?topic=36739.msg376384#msg376384
I will never do worse than what I do now.
It's what self-improvement means.