Could Not Resolve Cross-Reference

Started by dninemfive, February 17, 2018, 02:36:39 PM

Previous topic - Next topic

dninemfive

When I attempt to load my mod, I get the following error:

QuoteCould not resolve cross-reference: No Verse.HediffDef named SimpleSpine found to give to Verse.RecipeDef InstallSimpleSpine

It also gives the same error for another item, SimpleRib, which is defined in the same format.

Looking up this error got a lot of threads where people named their items incorrectly or forgot to close angle brackets, etc., but I can find no such issues with my xml:

<?xml version="1.0" encoding="UTF-8"?>
<Defs>
   <HediffDef ParentName="addedPartBionics">
      <defName>SimpleSpine</defName>
      <label>replacement spine</label>
      <spawnThingOnRemoved>SimpleSpine</spawnThingOnRemoved>
      <addedPartProps>
         <partEfficiency>1.0</partEfficiency>
      </addedPartProps>
      <stages>
<li>
         <capMods>
            <li>
               <capacity>Manipulation</capacity>
               <offset>-.05</offset>
            </li>
            <li>
               <capacity>Moving</capacity>
               <offset>-0.1</offset>
            </li>
         </capMods>
</li>
      </stages>
   </HediffDef>

   <HediffDef ParentName="addedPartSimple">
      <defName>SimpleRib</defName>
      <label>simple rib replacement</label>
      <spawnThingOnRemoved>SimpleRib</spawnThingOnRemoved>
      <addedPartProps>
         <partEfficiency>1.0</partEfficiency>
      </addedPartProps>
   </HediffDef>
</Defs>


(note that this mod requires EPOE so the ParentName tag works fine).

Can anyone spot an issue here?

frenetica

Hrmn, I use RSBE so I'd have to verify, but could there be a contradictory similarly titled spine in EPOE?
That, or a problem in load order would be my first guess.
Ah, and the segment below still refers to simplerib, and the parent 'addedPartSimple' seems vague enough that maybe it's being called inappropriately..?

Tomorrow, I'll pop this and EPOE in and actually fiddle around wit it a bit, maybe.
Hah, or maybe my flailing'll give you the inspiration to figure it out!

dninemfive

#2
Thanks for your help! If you want to test out the full current version, I've attached it here. I don't think this is a naming conflict, as I've gone through the EPOE files and there are no parts with the same name.

edit: I found the issue. I forgot to make HediffDefs_SimpleReplacements an xml file, as I created it as a txt file.

[attachment deleted due to age]