[Problem] New Item Icon not Appearing

Discussion in 'Modding' started by SamuelMarston, Jul 19, 2012.

  1. SamuelMarston

    SamuelMarston Member

    So I feel like I've made a stupid mistake somewhere. I've added a new item to the game, a Marston Spanner. It's a wrench that not only functions as a weapon, but increases your ability to tinker items. (funny... a tool that works like a tool.)

    I've got the new recipe showing up in the crafting window, but the item's icon won't show. I've checked my code several times, and everything seems to be in order.

    Hopefully someone can point out what I'm doing wrong.

    Here's what I've got in my itemDB.xml:

    <item name="Marston Spanner" iconFile="items/mace_wrench.png" level="4" type="2" >
    <price amount="1280"/>
    <weapon crushing="6"/>
    <secondarybuff id="20" amount="1" /> <!-- tinkering -->
    <description text="Great for calibrating your devices and decalibrating your foes."/>
    </item>

    Then what I've got in my craftDB.xml:

    <craft>
    <output skill="1" name="Marston spanner" amount="1"/>
    <tool tag="tinkerer"/>
    <input name="Steel Ingot"/>
    <input name="Steel Ingot"/>
    </craft>

    in my gaslampgames/mods/Relics of Aresia/items folder, I have mace_wrench.png. I copied it there from the vanilla game files until I can take the time to make my own icon.

    Any ideas?

    Thanks for looking at my problems!
     
  2. OmniaNigrum

    OmniaNigrum Member

    Sorry to doubt you, but quoting it is different from seeing it. Would you mind zipping up the mod so we can check it exactly as it is?
    (Even if you quote it exactly, the formatting of the forums messes with it and can be misleading.)
     
  3. SamuelMarston

    SamuelMarston Member

    Sure! I would love to do that.

    Um... how should I get it to everyone? Can I attach it to a post?

    Also, I've created a couple of other items at this point, and they display properly. I don't get it. D:
     
  4. OmniaNigrum

    OmniaNigrum Member

    Take your itemDB.xml, craftDB.xml and modDB.xml and zip them. Then just attach to the post. (The "Upload a File" part below the message area.

    You can save some trouble and just zip up the "Relics of Aresia" directory and all subdirectories and post that.

    *Edit* Ninja'ed!

    I will check it after my nap. Nighty night... (I should not drink...)
     
  5. SamuelMarston

    SamuelMarston Member

    NO! Fix my code under the influence!

    please.
     
  6. SamuelMarston

    SamuelMarston Member

    I solved the problem. I didn't capitalize "Spanner" in the craftDB.

    Lesson learned!
     
    OmniNegro likes this.
  7. Aegho

    Aegho Member

    EDIT: Ninja'd
     
  8. SamuelMarston

    SamuelMarston Member

    It looks like the resists go away as soon as I move and turns pass. Nevermind.
     
  9. OmniaNigrum

    OmniaNigrum Member

    You guys see that? I get drunk and sleep for 12 hours and the code is fixed! I am a winner! ;) :p :D

    Is there a Drunken Coder skill yet? (For those interested, I was just tired and had a few ounces of Port to help sleep. No major drunkenness or anything.)
     
    SamuelMarston likes this.
  10. SamuelMarston

    SamuelMarston Member

    You'll never be a drunken coder like that, then.

    You're amazing at fixing code. I've never seen someone put out so little effort and achieve such great results.
     
    OmniNegro likes this.
  11. OmniaNigrum

    OmniaNigrum Member

    Be sure to let me know if you run into any more trouble and need me to take a nap. :)
     
  12. SamuelMarston

    SamuelMarston Member

    Now that I've got my code straight, my new art is having some problems. There's a white background behind my items. Where did my transparency go?
     
  13. OmniaNigrum

    OmniaNigrum Member

    Fax and a few others have mentioned this problem. What program are you using for your graphics? I will try to find the threads where this transparency issue was discussed. They mentioned several programs that always fail and several that work.
     
  14. OmniaNigrum

    OmniaNigrum Member

    http://community.gaslampgames.com/threads/idea-sharing-help-and-stuff.1767/page-3#post-20642
    http://community.gaslampgames.com/t...and-some-templates-expanding.2799/#post-27873
    http://community.gaslampgames.com/t...guide-updated-6-5-2012.1335/page-8#post-39318

    I am sure you could find these on your own. And if you need a specific question answered, you may have better luck asking on IRC in the #gaslampgames channel where Fax and others who know basically everything lurk.

    I hope this helps point you in the right direction.
     
  15. SamuelMarston

    SamuelMarston Member

    Thanks, man. I appreciate it.
     
  16. OmniaNigrum

    OmniaNigrum Member

    You are most welcomed. :)