Ludeon Forums

RimWorld => Mods => Help => Topic started by: Jay425 on November 13, 2021, 05:48:40 AM

Title: Def mistakes?
Post by: Jay425 on November 13, 2021, 05:48:40 AM
Does anyone see any mistakes here? I cant seem to get it to appear in game

ThingDef ParentName="BaseWeaponNeolithic">
    <defName>Bow_Ginga</defName>
    <label>ginga pachinko</label>
    <description>A simple short slingshot.</description>
    <graphicData>
      <texPath>Things/Item/Equipment/WeaponRanged/GingaPachinko</texPath>
      <graphicClass>Graphic_Single</graphicClass>
    </graphicData>
    <costList>
      <WoodLog>30</WoodLog>
    </costList>
    <uiIconScale>1.5</uiIconScale>
    <statBases>
      <WorkToMake>2400</WorkToMake>
      <Mass>0.8</Mass>
      <AccuracyTouch>0.75</AccuracyTouch>
      <AccuracyShort>0.65</AccuracyShort>
      <AccuracyMedium>0.45</AccuracyMedium>
      <AccuracyLong>0.25</AccuracyLong>
      <RangedWeapon_Cooldown>1.65</RangedWeapon_Cooldown>
    </statBases>
    <weaponTags>
      <li>NeolithicRangedBasic</li>
    </weaponTags>
    <weaponClasses>
      <li>Ranged</li>
      <li>RangedLight</li>
    </weaponClasses>
    <recipeMaker>
      <recipeUsers>
        <li>CraftingSpot</li>
      </recipeUsers>
      <skillRequirements>
        <Crafting>2</Crafting>
      </skillRequirements>
    </recipeMaker>
    <verbs>
      <li>
        <verbClass>Verb_Shoot</verbClass>
        <hasStandardCommand>true</hasStandardCommand>
        <defaultProjectile>Arrow_Short</defaultProjectile>
        <warmupTime>1.35</warmupTime>
        <range>22.9</range>
      </li>
    </verbs>
    <tools>
      <li>
        <label>limb</label>
        <capacities>
          <li>Blunt</li>
          <li>Poke</li>
        </capacities>
        <power>9</power>
        <cooldownTime>2</cooldownTime>
      </li>
    </tools>
  </ThingDef>
 
  <ThingDef ParentName="BaseProjectileNeolithic">
    <defName>Pellet_Ginga</defName>
    <label>slingshot pellet</label>
    <graphicData>
      <texPath>Things/Projectile/Pellet</texPath>
      <graphicClass>Graphic_Single</graphicClass>
    </graphicData>
    <projectile>
      <damageDef>Blunt</damageDef>
      <damageAmountBase>11</damageAmountBase>
      <speed>44</speed>
    </projectile>
Title: Re: Def mistakes?
Post by: Ark on November 13, 2021, 06:36:22 AM
Well, I'm not a modder but the first line is missing a "<" and the last line is missing "</ThingDef>".
Title: Re: Def mistakes?
Post by: Jay425 on November 14, 2021, 05:04:20 AM
that was just the way i copied it i didnt think i need to include the defs since is universally understood for this type of thing this is the whole orginal

<Defs>
     
   <ThingDef ParentName="BaseWeaponNeolithic">
    <defName>Bow_Ginga</defName>
    <label>ginga pachinko</label>
    <description>A simple short slingshot.</description>
    <graphicData>
      <texPath>Things/Item/Equipment/WeaponRanged/GingaPachinko</texPath>
      <graphicClass>Graphic_Single</graphicClass>
    </graphicData>
    <costList>
      <WoodLog>30</WoodLog>
    </costList>
    <uiIconScale>1.5</uiIconScale>
    <statBases>
      <WorkToMake>2400</WorkToMake>
      <Mass>0.8</Mass>
      <AccuracyTouch>0.75</AccuracyTouch>
      <AccuracyShort>0.65</AccuracyShort>
      <AccuracyMedium>0.45</AccuracyMedium>
      <AccuracyLong>0.25</AccuracyLong>
      <RangedWeapon_Cooldown>1.65</RangedWeapon_Cooldown>
    </statBases>
    <weaponTags>
      <li>NeolithicRangedBasic</li>
    </weaponTags>
    <weaponClasses>
      <li>Ranged</li>
      <li>RangedLight</li>
    </weaponClasses>
    <recipeMaker>
      <recipeUsers>
        <li>CraftingSpot</li>
      </recipeUsers>
      <skillRequirements>
        <Crafting>2</Crafting>
      </skillRequirements>
    </recipeMaker>
    <verbs>
      <li>
        <verbClass>Verb_Shoot</verbClass>
        <hasStandardCommand>true</hasStandardCommand>
        <defaultProjectile>Arrow_Short</defaultProjectile>
        <warmupTime>1.35</warmupTime>
        <range>22.9</range>
      </li>
    </verbs>
    <tools>
      <li>
        <label>limb</label>
        <capacities>
          <li>Blunt</li>
          <li>Poke</li>
        </capacities>
        <power>9</power>
        <cooldownTime>2</cooldownTime>
      </li>
    </tools>
  </ThingDef>
 
  <ThingDef ParentName="BaseProjectileNeolithic">
    <defName>Pellet_Ginga</defName>
    <label>slingshot pellet</label>
    <graphicData>
      <texPath>Things/Projectile/Pellet</texPath>
      <graphicClass>Graphic_Single</graphicClass>
    </graphicData>
    <projectile>
      <damageDef>Blunt</damageDef>
      <damageAmountBase>11</damageAmountBase>
      <speed>44</speed>
    </projectile>
 
  </ThingDef>
</Defs>