Ludeon Forums

RimWorld => Mods => Topic started by: OpposingForces on June 06, 2014, 05:30:04 PM

Title: [Help] Followed getting started tutorial, mod doesn't work
Post by: OpposingForces on June 06, 2014, 05:30:04 PM
Hi, decided to finally try my hand at modding rimworld. i followed the getting started the basics tutorial. wrote all the code, followed it's file structure, made some graphics, but according to the console it has parsing errors related to verse?  it also says it can't load the texture files or has some sorta unity 2d texture issue. not sure why, they are power of two and png format.

here's the code:

<?xml version="1.0" encoding="utf-8"?>
<Buildings>

<ThingDef Name="BuildingBase" Abstract="True">
<category>Building</category>
<bulletImpactSound>BulletImpactMetal</bulletImpactSound>
<selectable>true</selectable>
<drawerType>MapMeshAndRealTime</drawerType>
<surfaceNeeded>Light</surfaceNeeded>
<constructionEffect>ConstructMetal</constructionEffect>
<repairEffect>Repair</repairEffect>
</ThingDef>
<ThingDef ParentName="BuildingBase">
<eType>BuildingComplex</eType>
<thingClass>Building</thingClass>
<altitudeLayer>BuildingTall</altitudeLayer>
<passability>Impassible</passability>
<castEdgeShadows>True</castEdgeShadows>
<fillPercent>1</fillPercent>
<placingDraggableDimensions>0</placingDraggableDimensions>
<tickerType>Never</tickerType>
<rotatable>true</rotatable>
<neverMultiSelect>true</neverMultiSelect>
<holdsRoof>false</holdsRoof>
<Overdraw>false</Overdraw>
<designationCategory>Building</designationCategory>
<staticSunShadowHeight>0.5</staticSunShadowHeight>
<blockLight>true</blockLight>

<defName>SimpleBlock</defName>
<label>Simple Block</label>
<description>An ugly thing.</description>
<texturePath>Things/Buildings/SimpleBlock_Atlas</texturePath>
<menuIconPath>Things/Buildings/SimpleBlock_MenuIcon</menuIconPath>
<maxHealth>50</maxHealth>
<flammability>0.1</flammability>
<workToBuild>100</workToBuild>
<mineable>false</mineable>
<size>(1,1)</size>
<costList>
<li>
<thingDef>Metal</thingDef>
<count>7</count>
</li>
</costList>
<filthLeavings>
<li>
<thingDef>SlagRubble</thingDef>
<count>2</count>
</li>
</filthLeavings>
<designationHotKey>Z</designationHotKey>

</ThingDef>

</Buildings>


i also made the about file too.
Here's the mod


[attachment deleted by admin: too old]
Title: Re: [Help] Followed getting started tutorial, mod doesn't work
Post by: Cala13er on June 06, 2014, 05:36:51 PM
Can you upload the whole thing in a zip file? I will be able to help you out further then.
Title: Re: [Help] Followed getting started tutorial, mod doesn't work
Post by: OpposingForces on June 06, 2014, 05:46:33 PM
mod is at bottom of post now. sorry about that.