Help me find a typo.

Started by Adamiks, June 13, 2015, 09:32:57 AM

Previous topic - Next topic

Adamiks

I just need to find typo that in ThingDefs. I'm trying but i just can't find it :/
Only hint that i can give you is that problem appeared when i added possibility to craft this Thing.


  <!-- ==================== Microwave grenade ========================== -->

  <ThingDef ParentName="BaseGrenade">
    <defName>Proj_Snowflake</defName>
    <label>Microwave grenade</label>
    <thingClass>Projectile_Explosive</thingClass>
    <graphicPath>Things/Projectile/Snowflake</graphicPath>
    <graphicClass>Graphic_Single</graphicClass>
    <projectile>
      <explosionRadius>4</explosionRadius>
      <damageDef>Microwave</damageDef>
      <damageAmountBase>5</damageAmountBase>
      <explosionDelay>50</explosionDelay>
    </projectile>
  </ThingDef>

  <ThingDef ParentName="BaseEquipment">
    <defName>RS_Snowflake</defName>
    <equipmentType>Primary</equipmentType>
    <label>Microwave grenades</label>
    <description>Yunhwa Precision Model-3c "Snowflake" microwave grenades. This small device emit the painful millimeter wave for a brief time. It is a surprisingly effective crowd control weapon.</description>
    <graphicPath>Things/A10/Snowflake</graphicPath>
    <graphicClass>Graphic_Single</graphicClass>
    <soundInteract>InteractGrenade</soundInteract>
    <techLevel>Spacer</techLevel>
    <statBases>
      <WorkToMake>6000</WorkToMake>
      <MarketValue>1700</MarketValue>
      <RangedWeapon_Cooldown>2.18</RangedWeapon_Cooldown>
    </statBases>
<costList>
<SteelBar>50</SteelBar>
<Plasteelbar>15</PlasteelBar>
<Electronics>25</Electronics>
<Uranium>15</Uranium>
</costList>
<recipeMaker>
<skillRequirements>
<li>
<skill>Crafting</skill>
<minLevel>13</minLevel>
</li>
</skillRequirements>
<workSpeedStat>SmithingSpeed</workSpeedStat>
<workSkill>Crafting</workSkill>
<effectWorking>Smith</effectWorking>
<soundWorking>Recipe_Smith</soundWorking>
<recipeUsers>
<li>TableRimsenal</li>
</recipeUsers>
<unfinishedThingDef>UnfinishedWeapon</unfinishedThingDef>
</recipeMaker>
    <thingCategories>
      <li>Grenades</li>
    </thingCategories>
    <verbs>
      <li>
        <label>throw AT grenade</label>
        <verbClass>Verb_LaunchProjectile</verbClass>
        <hasStandardCommand>true</hasStandardCommand>
        <range>14</range>
        <forcedMissRadius>1</forcedMissRadius>
        <warmupTicks>80</warmupTicks>
        <noiseRadius>4</noiseRadius>
        <ai_IsBuildingDestroyer>false</ai_IsBuildingDestroyer>
        <soundCast>ThrowGrenade</soundCast>
        <targetParams>
          <canTargetLocations>true</canTargetLocations>
        </targetParams>
        <projectileDef>Proj_Snowflake</projectileDef>
      </li>
    </verbs>
  </ThingDef>

skullywag

you getting an error? try removing the underscore in the defnames maybe?
Skullywag modded to death.
I'd never met an iterator I liked....until Zhentar saved me.
Why Unity5, WHY do you forsake me?

Alistaire

I'm not sure SteelBar or Plasteelbar exist, and if they do "bar" isn't capitalized on the Plasteelbar one.

Adamiks

#3
Didn't work. And yes i'm getting this error:
(Filename: C:/buildslave/unity/build/artifacts/StandalonePlayerGenerated/UnityEngineDebug.cpp Line: 56)

Could not resolve cross-reference: No Verse.ThingDef named RSSnowflake found to give to RimWorld.StockGenerator_SingleDef RimWorld.StockGenerator_SingleDef


But this error only tells me that RSSnowflake is missing.

Shinzy

Quote from: Adamiks on June 13, 2015, 10:32:08 AM <costList>
<SteelBar>50</SteelBar>
<Plasteelbar>15</PlasteelBar>
<Electronics>25</Electronics>
<Uranium>15</Uranium>
</costList>


Like you see there is "PlasteelBar" not "Plasteelbar".

the opening one is Plasteelbar and closing one PlasteelBar
that'll cause issues =P

skullywag

upload the whole mod as you have it and ill take a look.
Skullywag modded to death.
I'd never met an iterator I liked....until Zhentar saved me.
Why Unity5, WHY do you forsake me?

1000101

That, and RS_Snowflake != RSSnowflake.  Double check your references.  Grep is a handy tool for things like this.
(2*b)||!(2*b) - That is the question.
There are 10 kinds of people in this world - those that understand binary and those that don't.

Powered By

skullywag

Think he changed that based on my comment. Think hes saying he removed the underscore but still got the error.
Skullywag modded to death.
I'd never met an iterator I liked....until Zhentar saved me.
Why Unity5, WHY do you forsake me?

Adamiks

#8
Quote from: skullywag on June 13, 2015, 11:14:24 AM
Think he changed that based on my comment. Think hes saying he removed the underscore but still got the error.

Yes i removed underscore and this Plasteelbar typo. I will send you files. There are only 2 file sassociated with snowflake thingDef - ThingDef (in Grenades.xml) and def in TraderKind.

Here!

skullywag

Skullywag modded to death.
I'd never met an iterator I liked....until Zhentar saved me.
Why Unity5, WHY do you forsake me?

Adamiks


1000101

Ahh, sorry for that then.  I was on the fence but decided to post in case it was a case of mismatched UIDs I mean, defNames.

I'll download your mod and take a look.  If someone else helps you before I get back on the forum I'll leave it at that.
(2*b)||!(2*b) - That is the question.
There are 10 kinds of people in this world - those that understand binary and those that don't.

Powered By

Adamiks

Oh and btw this isn't my mod. It's Rimsenal mod, so bases should work, only think that i added is possibility to craft all weapons and armors and this can don't work.

And thank you guys, for helping me.