Jump to content

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


Recommended Posts

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>

Link to comment

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.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more information, see our Privacy Policy & Terms of Use