"Could not resolve cross-reference to verse RecipeDef.TakeBlood"

Started by Jdalt40, August 05, 2016, 03:15:25 AM

Previous topic - Next topic

Jdalt40

That's what I got when I loaded up my Vampire mod after adding in a recipe def

Here is the code it is having problems with:<?xml version="1.0" encoding="utf-8" ?>
<RecipeDefs>

<RecipeDef>
<defName>TakeBlood<defName>
<label>take blood</label>
<description>Drains a creature to obtain its blood in a more usable form.</description>
<jobString>Taking Blood.</jobString>
<workAmount>450</workAmount>
<workSpeedStat>MedicalOperationSpeed</workSpeedStat>
    <workSkill>Medical</workSkill>
    <effectWorking>ButcherFlesh</effectWorking>
    <soundWorking>Recipe_ButcherCorpseFlesh</soundWorking>
    <ingredients>
<li>
<filter>
<categories>
<li>Corpses</li>
</categories>
</filter>
<count>1</count>
</li>
</ingredients>
           <products>
           <BloodBottle>1</BloodBottle>
           </products>
<fixedIngredientFilter>
<categories>
<li>Corpses</li>
</categories>
<exceptedCategories>
<li>CorpsesMechanoid</li>
</exceptedCategories>
      <specialFiltersToDisallow>
        <li>AllowRotten</li>
      </specialFiltersToDisallow>
</fixedIngredientFilter>
<defaultIngredientFilter>
<categories>
<li>CorpsesAnimal</li>
</categories>
</defaultIngredientFilter>
</RecipeDef>

</RecipeDefs>

And here is the Output Log: (Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 37)

Non platform assembly: data-0F90E040 (this message is harmless)
Fallback handler could not load library C:/Program Files (x86)/Steam/steamapps/common/RimWorld/RimWorldWin_Data/Mono/data-0F90E040.dll
Community Core Library :: v0.14.1

(Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 37)

Non platform assembly: data-0FA0AE50 (this message is harmless)
Fallback handler could not load library C:/Program Files (x86)/Steam/steamapps/common/RimWorld/RimWorldWin_Data/Mono/data-0FA0AE50.dll
Non platform assembly: data-0F40A020 (this message is harmless)
Fallback handler could not load library C:/Program Files (x86)/Steam/steamapps/common/RimWorld/RimWorldWin_Data/Mono/data-0F40A020.dll
Non platform assembly: data-0F335F28 (this message is harmless)
Fallback handler could not load library C:/Program Files (x86)/Steam/steamapps/common/RimWorld/RimWorldWin_Data/Mono/data-0F335F28.dll
Non platform assembly: data-0FA52008 (this message is harmless)
Fallback handler could not load library C:/Program Files (x86)/Steam/steamapps/common/RimWorld/RimWorldWin_Data/Mono/data-0FA52008.dll
Try connecting to longwelwind.net

(Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 37)

Platform assembly: C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin_Data\Managed\Mono.Security.dll (this message is harmless)
Platform assembly: C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin_Data\Managed\System.Configuration.dll (this message is harmless)
Non platform assembly: data-0FA68EB8 (this message is harmless)
Fallback handler could not load library C:/Program Files (x86)/Steam/steamapps/common/RimWorld/RimWorldWin_Data/Mono/data-0FA68EB8.dll
Non platform assembly: data-155B4FB8 (this message is harmless)
Fallback handler could not load library C:/Program Files (x86)/Steam/steamapps/common/RimWorld/RimWorldWin_Data/Mono/data-155B4FB8.dll
Non platform assembly: data-15601500 (this message is harmless)
Fallback handler could not load library C:/Program Files (x86)/Steam/steamapps/common/RimWorld/RimWorldWin_Data/Mono/data-15601500.dll
Non platform assembly: data-155FB190 (this message is harmless)
Fallback handler could not load library C:/Program Files (x86)/Steam/steamapps/common/RimWorld/RimWorldWin_Data/Mono/data-155FB190.dll
Non platform assembly: data-1560DBE0 (this message is harmless)
Fallback handler could not load library C:/Program Files (x86)/Steam/steamapps/common/RimWorld/RimWorldWin_Data/Mono/data-1560DBE0.dll
Non platform assembly: data-156115E8 (this message is harmless)
Fallback handler could not load library C:/Program Files (x86)/Steam/steamapps/common/RimWorld/RimWorldWin_Data/Mono/data-156115E8.dll
Exception reading Recipes_TakingBlood.xml as XML: System.Xml.XmlException: 'defName' is expected  Line 43, position 9.
  at Mono.Xml2.XmlTextReader.Expect (System.String expected) [0x00000] in <filename unknown>:0
  at Mono.Xml2.XmlTextReader.ReadEndTag () [0x00000] in <filename unknown>:0
  at Mono.Xml2.XmlTextReader.ReadContent () [0x00000] in <filename unknown>:0
  at Mono.Xml2.XmlTextReader.ReadContent () [0x00000] in <filename unknown>:0
  at Mono.Xml2.XmlTextReader.Read () [0x00000] in <filename unknown>:0
  at System.Xml.XmlTextReader.Read () [0x00000] in <filename unknown>:0
  at System.Xml.XmlDocument.ReadNodeCore (System.Xml.XmlReader reader) [0x00000] in <filename unknown>:0
  at System.Xml.XmlDocument.ReadNodeCore (System.Xml.XmlReader reader) [0x00000] in <filename unknown>:0
  at System.Xml.XmlDocument.ReadNodeCore (System.Xml.XmlReader reader) [0x00000] in <filename unknown>:0
  at System.Xml.XmlDocument.ReadNodeCore (System.Xml.XmlReader reader) [0x00000] in <filename unknown>:0
  at System.Xml.XmlDocument.ReadNodeCore (System.Xml.XmlReader reader) [0x00000] in <filename unknown>:0
  at System.Xml.XmlDocument.ReadNode (System.Xml.XmlReader reader) [0x00000] in <filename unknown>:0
  at System.Xml.XmlDocument.Load (System.Xml.XmlReader xmlReader) [0x00000] in <filename unknown>:0
  at System.Xml.XmlDocument.LoadXml (System.String xml) [0x00000] in <filename unknown>:0
  at Verse.LoadableXmlAsset..ctor (System.String name, System.String fullFolderPath, System.String contents) [0x00000] in <filename unknown>:0

(Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 37)

Non platform assembly: data-15634880 (this message is harmless)
Fallback handler could not load library C:/Program Files (x86)/Steam/steamapps/common/RimWorld/RimWorldWin_Data/Mono/data-15634880.dll
Non platform assembly: data-15644898 (this message is harmless)
Fallback handler could not load library C:/Program Files (x86)/Steam/steamapps/common/RimWorld/RimWorldWin_Data/Mono/data-15644898.dll
Could not resolve cross-reference to Verse.RecipeDef named TakeBlood

(Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 37)

Cannot call ItemFromXmlFile with resolveCrossRefs=true while loading is already in progress.

(Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 37)

Could not resolve cross-reference to Verse.RecipeDef named TakeBlood

(Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 37)

Cannot call ItemFromXmlFile with resolveCrossRefs=true while loading is already in progress.

(Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 37)

Could not resolve cross-reference to Verse.RecipeDef named TakeBlood

(Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 37)

Connected to the server

(Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 37)

Trying to authenticate as Jdalt40

(Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 37)

Config error in Immunization: Verse.HediffCompProperties: compClass is null

(Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 37)

Cannot call ItemFromXmlFile with resolveCrossRefs=true while loading is already in progress.

(Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 37)

Could not resolve cross-reference to Verse.RecipeDef named TakeBlood

(Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 37)

Community Core Library :: Queueing Library Initialization

(Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 37)

Community Core Library :: Library Core :: Validations :: Validated
ModHelperDef :: Community Core Library :: Passed validation, requesting v0.14.1
ModHelperDef :: ED-Plants24H :: Passed validation, requesting v0.14.0
ModHelperDef :: Relations Tab :: Passed validation, requesting v0.14.0


(Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 37)

Community Core Library :: Advanced Research :: Validations :: Validated


(Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 37)

Community Core Library :: Minimap Controller :: Validations :: Validated


(Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 37)

RimWorld_Plant_Resting.

(Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 37)

RimWorld_Plant_Resting_Getter.

(Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 37)

ED_Plant_Resting.

(Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 37)

ED_Plant_Resting_Getter.

(Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 37)

TryDetourFromTo.

(Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 37)

Plants24H.DetourInjector.Inject() Compleated.

(Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 37)

Community Core Library :: Injection Controller :: Initialization :: Initialized


(Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 37)

Community Core Library :: Advanced Research :: Initialization :: No advanced research defined, hybernating...

(Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 37)

Community Core Library :: Help System :: Completed in 00:00:00.8425966


(Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 37)

Community Core Library :: Help Generator :: Initialization :: Initialized

(Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 37)

Community Core Library :: Library Core :: Initialization :: Mod Configuration Menus initialized

(Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 37)

Community Core Library :: Minimap Controller :: Initialization :: Initialized


(Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 37)

Community Core Library :: Initialized

(Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineDebugBindings.gen.cpp Line: 37)


I really don't know what is going on so please help me!

kaptain_kavern

From your pasted output :
Exception reading Recipes_TakingBlood.xml as XML: System.Xml.XmlException: 'defName' is expected  Line 43, position 9.

skullywag

Skullywag modded to death.
I'd never met an iterator I liked....until Zhentar saved me.
Why Unity5, WHY do you forsake me?

Jdalt40

Isn't </RecipeDef> and </RecipeDefs> closing the defname? Crap now I see where I went wrong, damn typo's :D