Jump to content

I tried making a mod, but only some of the graphics aren't showing


RAIC

Recommended Posts

Posted

So I made a mod (actually 2 mods, one of which works fine).
It's basically a copy of SCCstatues with a new format added and other graphics. 
The 3,2 and 3,3 formats work fine, but the 2,3 one has some issues. In all previews the graphics are portraied properly but when crafting one it doesn't show one, same if the building is placed.
I looked over it several times, but couldn't spot anything wrong. The other mod, which has different graphics but the same code with different defs and paths works, so I really don't know what to do with that.

Maybe somebody out here finds something.

 

<Defs>

 <ThingDef ParentName="SculptureBase">
    <defName>LargeSexySculp</defName>
    <label>Large Sexy Sculpture</label>
    <graphicData>
      <graphicClass>Graphic_Random</graphicClass>
      <texPath>Things/Building/Wide</texPath>
      <drawSize>(4,4)</drawSize>
      <drawRotated>false</drawRotated>
    </graphicData>
    <altitudeLayer>BuildingOnTop</altitudeLayer>
    <passability>PassThroughOnly</passability>
    <fillPercent>1</fillPercent>
    <rotatable>false</rotatable>
    <size>(3,2)</size>
    <statBases>
      <MaxHitPoints>350</MaxHitPoints>
      <Mass>10</Mass>
      <Beauty>400</Beauty>
      <WorkToMake>105000</WorkToMake> <!-- 105000 -->
    </statBases>
    <stuffCategories>
      <li>Metallic</li>
      <li>Woody</li>
      <li>Stony</li>
    </stuffCategories>
    <costStuffCount>500</costStuffCount>
    <minifiedDef>MinifiedThing</minifiedDef>
  </ThingDef>
  
   <ThingDef ParentName="SculptureBase">
    <defName>HugeSexySculp</defName>
    <label>Huge Sexy Sculpture</label>
    <graphicData>
      <graphicClass>Graphic_Random</graphicClass>
      <texPath>Things/Building/Tall</texPath>
      <drawSize>(4,4)</drawSize>
      <drawRotated>false</drawRotated>
    </graphicData>
    <altitudeLayer>BuildingOnTop</altitudeLayer>
    <passability>PassThroughOnly</passability>
    <fillPercent>1</fillPercent>
    <rotatable>false</rotatable>
    <size>(2,3)</size>
    <statBases>
      <MaxHitPoints>350</MaxHitPoints>
      <Mass>10</Mass>
      <Beauty>400</Beauty>
      <WorkToMake>105000</WorkToMake> <!-- 105000 -->
    </statBases>
    <stuffCategories>
      <li>Metallic</li>
      <li>Woody</li>
      <li>Stony</li>
    </stuffCategories>
    <costStuffCount>500</costStuffCount>
    <minifiedDef>MinifiedThing</minifiedDef>
  </ThingDef>
  
  <ThingDef ParentName="SculptureBase">
    <defName>GrandSexySculp</defName>
    <label>Grand Sexy Sculpture</label>
    <graphicData>
      <graphicClass>Graphic_Random</graphicClass>
      <texPath>Things/Building/Square</texPath>
      <drawSize>(4,4)</drawSize>
      <drawRotated>false</drawRotated>
    </graphicData>
    <altitudeLayer>BuildingOnTop</altitudeLayer>
    <passability>PassThroughOnly</passability>
    <fillPercent>1</fillPercent>
    <rotatable>false</rotatable>
    <size>(3,3)</size>
    <statBases>
      <MaxHitPoints>250</MaxHitPoints>
      <Mass>10</Mass>
      <Beauty>500</Beauty>
      <WorkToMake>105000</WorkToMake> 
    </statBases>
    <stuffCategories>
      <li>Metallic</li>
      <li>Woody</li>
      <li>Stony</li>
    </stuffCategories>
    <costStuffCount>500</costStuffCount>
    <minifiedDef>MinifiedThing</minifiedDef>      
  </ThingDef>
  
</Defs>

Posted

Found the issue:

I had a faulty path for the textures of the working mod which conflicted with this one.
After changing the path, the names of the files stayed loaded in the game. I have now renamed the graphics and it works properly. 
A clean reinstall should also clean up the error warnings on loading.

 

This thread may be closed, erased or kept for reference for other newbies to modding.

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...