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

Topics - benjiboy12

#1
Help / Creating a new race
July 16, 2014, 03:45:55 PM
Hello all, I've been working on a mod that will include several new races, I've got a pretty good understanding how things work when adding new content, but I've seem to hit a major road block.  The game crashes when I load in the mod i'm working on and the error message says no cross reference for BaseOrk.  Here is the race that I created, don't mind some of obvious things such as still using the mechanoid as the art.

  <ThingDef Name="BasePawn" Abstract="True">
    <eType>Pawn </eType>
    <thingClass>Pawn</thingClass>
    <category>Pawn</category>
    <selectable>true</selectable>
    <tickerType>Normal</tickerType>
    <altitudeLayer>Pawn</altitudeLayer>
    <useStandardHealth>false</useStandardHealth>
    <flammability>1.0</flammability>
    <hasTooltip>true</hasTooltip>
    <soundBulletHit>BulletImpactFlesh</soundBulletHit>
    <inspectorTabs>
      <li>ITab_Pawn_Thoughts</li>
      <li>ITab_Pawn_Needs</li>
      <li>ITab_Pawn_Prisoner</li>
      <li>ITab_Pawn_Gear</li>
      <li>ITab_Pawn_Character</li>
    </inspectorTabs>
    <drawGUIOverlay>true</drawGUIOverlay>
  </ThingDef>



  <!-- ============================ Ork ========================== -->
 
 
  <ThingDef ParentName="BasePawn" Name="BaseOrk" Abstract="True">
 
    <soundBulletHit>BulletImpactFlesh</soundBulletHit>
    <flammability>1.0</flammability>
    <race>
      <hasStory>false</hasStory>
      <needsRest>false</needsRest>
      <hasGenders>false</hasGenders>
      <isFlesh>true</isFlesh>
      <diet>NeverEats</diet>
    </race>
  </ThingDef>
 
  <!-- Ork Boy -->
 
  <ThingDef ParentName="BaseOrk">
    <defName>Ork_Boy</defName>
    <label>Ork Boy</label>
    <description>Tough, mean, and green, this ork's only concern is to shoot and smash.  It's shear muscle mass makes a protective armor coating that can abosorb a great deal of damage.</description>
    <maxHealth>200</maxHealth>
    <sunShadowInfo>
      <baseWidth>0.4</baseWidth>
      <baseHeight>0.4</baseHeight>
      <tallness>0.8</tallness>
    </sunShadowInfo>
    <targetHitChanceFactor>1.5</targetHitChanceFactor>
<race>
      <thinkTree>Humanoid</thinkTree>
      <humanoid>true</humanoid>
      <walkSpeed>1.0</walkSpeed>
      <meleeDamage>25</meleeDamage>
      <bodySize>1.25</bodySize>
      <soundWounded>Pawn_Human_Wounded</soundWounded>
      <soundDeath>Pawn_Human_Death</soundDeath>
      <soundMeleeHitPawn>Pawn_Melee_Punch_HitPawn</soundMeleeHitPawn>
      <soundMeleeHitBuilding>Pawn_Melee_Punch_HitBuilding</soundMeleeHitBuilding>
      <soundMeleeMiss>Pawn_Melee_Punch_Miss</soundMeleeMiss>
    </race>
  </ThingDef>


Here is the pawn kind
<PawnKindDef>
<defName>Ork_Choppa</defName>
    <label>Ork Choppa</label>
    <race>Ork_Boy</race>
    <pointsCost>100</pointsCost>
<defaultFactionType>Ork_Clan</defaultFactionType>
<aiAvoidCover>false</aiAvoidCover>
    <isFighter>true</isFighter>
    <standardBodyGraphicPath>Things/Pawn/Mechanoid/Centipede</standardBodyGraphicPath>
    <moneyForWeapons>
      <min>1200</min>
      <max>1200</max>
    </moneyForWeapons>
    <weaponTags>
      <li>MechanoidGunHeavy</li>
    </weaponTags>
  </PawnKindDef>


Finally the faction

<FactionDef>
    <defName>Ork_Clan</defName>
    <label>Ork Clan</label>
    <description>A large group of greenskins who travel around the galaxy looking for a fight.</description>
    <pawnsPlural>Orks</pawnsPlural>
    <requiredCountAtGameStart>1</requiredCountAtGameStart>
    <fixedName>a ork clan</fixedName>
    <raidCommonality>45</raidCommonality>
    <humanoidFaction>false</humanoidFaction>
    <hidden>false</hidden>
    <canFlee>true</canFlee>
    <techLevel>Ultra</techLevel>
    <startingGoodwill>
      <min>-100</min>
      <max>-100</max>
    </startingGoodwill>
    <naturalColonyGoodwill>
      <min>-100</min>
      <max>-100</max>
    </naturalColonyGoodwill>
    <spawnGroups>
      <li>
        <selectionWeight>100</selectionWeight>
        <kinds>
          <li>Ork_Boy</li>
        </kinds>
      </li>
    </spawnGroups>
  </FactionDef>


I've spent a entire day trying to figure out what I've done wrong.  Also if your wondering what the mod is, its a 40k mod. Any 2d artist who want to help out are more than welcome, already finished most of the imperial weapons, just need to make the armors and alien bodies  ;D.
#2
Help / Having Issues with Texture
July 08, 2014, 01:12:59 PM
Hello, so I've decide to try modding out rimworld, my first mod I was planning on just being a weapons mod with a new arsenal of weapons.  I'm no stranger to coding and although the modding wiki is a bit outdated and could use a little loving. I was able to figure out how to create a weapon, the main problem now, is the texture.  When I load the mod, on the debug screen, it says "Could not load UnityEngine.Texture2D at Thing/mode texture location in any active mod or default location".  I also have another error saying "Matform with null Sourcetext" I have no idea if these two errors are related or not. 

I made the 2d texture using paint.net I converted the file into a DDS and used DTX1, I then put the texture in my mod folder, in the folder labeled as Textures.  The texture is a 64x64 with the same resolution.  I'm sure I made a noob mistake, any advice or answers to my problem would be highly appreciated  :D.