Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - LostFuzz

#1
Quote from: Anonemous2 on August 02, 2016, 07:09:38 PM
I've updated everything, but I ran into a problem that I can't seem to figure out; I still get error pop ups, but everything seems to work fine. In the mean time I'll include a 'beta' version here, and if anyone know how to fix the errors please share.

The errors that you get are the "Could not resolve cross-reference: No RimWorld.StatDef names comps found to give to RimWorld.StatModifier" correct?

I'm not a modder, but I took a look and managed to stop these errors on my game.

in the file "Buildings_MoreFurnitureMisc.xml" for the SimpleResearchBench you have
<statBases>
    <comps>
      <li Class="CompProperties_AffectedByFacilities">
        <linkableFacilities>
          <li>FileCabinet</li>
        </linkableFacilities>
      </li>
    </comps>
      <MaxHitPoints>250</MaxHitPoints>
      <WorkToMake>2800</WorkToMake>
      <Flammability>1.0</Flammability>
      <ResearchSpeedFactor>0.6</ResearchSpeedFactor>
    </statBases>

The "comps" tags are inside the "statBases" tags when it should be following the closing "statBases" tags yes?

like this
<statBases>
      <MaxHitPoints>250</MaxHitPoints>
      <WorkToMake>2800</WorkToMake>
      <Flammability>1.0</Flammability>
      <ResearchSpeedFactor>0.6</ResearchSpeedFactor>
    </statBases>
    <comps>
      <li Class="CompProperties_AffectedByFacilities">
        <linkableFacilities>
          <li>FileCabinet</li>
        </linkableFacilities>
      </li>
    </comps>

   
Just moving that code around stopped the errors on game load and stopped breaking a few other mods i had, while keeping the new furniture items in game. :)

Hope it helps, if I'm wrong sorry for wasting your time.