Help with changing Item names, and keeping the same textures.

Started by Nocturnal Moonlight, August 26, 2016, 03:10:17 PM

Previous topic - Next topic

Nocturnal Moonlight

I am currently trying to rename some items, and I can't figure out where to change EVERYTHING for them I have changed the research name, but it keeps the original name and just adds mine. And with the item specifically, it keeps the original item, but adds mine as well. And when I try to grow it, it just has an error texture instead of the regular one. How do I make it where it is just the name I want changed?

CannibarRechter

Let's take a look at Beer, thus: ....

  <ThingDef ParentName="MealBase">
    <defName>Beer</defName>
    <label>beer</label>
    <description>The first beverage besides water ever consumed by mankind. Beer can taste good, but its main effect is intoxication. Excessive consumption can lead to alcohol addiction.</description>
    <graphicData>
      <texPath>Things/Item/Drug/Beer</texPath>
      <graphicClass>Graphic_StackCount</graphicClass>
    </graphicData>


If you renamed this and ended up with a duplicate, there is a good chance that you altered the <defName> stanza. What you want to do is leave the <defName> and <graphicData> information alone, but only modify the <label> and <description> sections.

That should work.

p.s. pro modding tip. When you're not sure about this kind of stuff, only change one thing, observe what it does, roll back, and change another thing, and see what it does. It takes time, but that's the method that most modders use when they don't already have good intuition from prior modding.
CR All Mods and Tools Download Link
CR Total Texture Overhaul : Gives RimWorld a Natural Feel
CR Moddable: make RimWorld more moddable.
CR CompFX: display dynamic effects over RimWorld objects

Nocturnal Moonlight

Quote from: CannibarRechter on August 26, 2016, 03:20:36 PM
Let's take a look at Beer, thus: ....

  <ThingDef ParentName="MealBase">
    <defName>Beer</defName>
    <label>beer</label>
    <description>The first beverage besides water ever consumed by mankind. Beer can taste good, but its main effect is intoxication. Excessive consumption can lead to alcohol addiction.</description>
    <graphicData>
      <texPath>Things/Item/Drug/Beer</texPath>
      <graphicClass>Graphic_StackCount</graphicClass>
    </graphicData>


If you renamed this and ended up with a duplicate, there is a good chance that you altered the <defName> stanza. What you want to do is leave the <defName> and <graphicData> information alone, but only modify the <label> and <description> sections.

That should work.

p.s. pro modding tip. When you're not sure about this kind of stuff, only change one thing, observe what it does, roll back, and change another thing, and see what it does. It takes time, but that's the method that most modders use when they don't already have good intuition from prior modding.

Thank you! It turns out I changed WAY too many of the items names. Thank you once again for your help.