FORUM ARCHIVED

First ring and gloves have a problem

Discussion in 'Modding' started by LionsDen, Apr 10, 2012.

  1. LionsDen

    LionsDen Member

    I have created a few items before and had problems with 1 item type, shields. I was straightened out on that but now I am having a problem with a ring and a glove I created. They crash the game whenever I try to put them into the loadout of a skill to test them out. I have tried them each commented out and separated. I don't know what is causing this. The item image files are there so that isn't it. Below is my code for the items and then the loadout code. Thanks for your help.

    Code:
    <item name="Vulcan's Ring" iconfile="items/ring_vulcan.png" artifact="1" >
        <price amount="1250" />
        <armour level="2" type="ring" randoms="1" />
        <artifact quality="2" />
        <secondarybuff id="19" amount="1"/>    <!-- smithing -->
        <secondarybuff id="17" amount="1"/>    <!-- trap affinity -->
        <secondarybuff id="18" amount="1"/>    <!-- trap sight -->
        <description text="A God's work is never done." />
        </item>
     
    <item name="Alchemic Gloves" iconfile="items/gloves_alchemic.png" artifact="1" >
        <price amount="769" />
        <armour level="2" type="hands" />
        <artifact quality="2" />
        <secondarybuff id="21" amount="1"/>    <!-- alchemy -->
        <resistbuff voltaic="1" acidic="1" />
        <description text="Don't spill that!!!" />
        </item>
    
    Code:
      <loadout type="armour" subtype="Alchemic Gloves" always="1"/>
      <loadout type="armour" subtype="Vulcan's Ring" always="1"/>
    
    The skill is fine and the game loads and plays if I don't have either of these items loading.

    I had the loadout trying armor and armour.
     
  2. Kazeto

    Kazeto Member

    Are you sure the item images aren't what's crashing it?
    Because for all I know, the game can crash if you get an item that has an unreadable (for the game) icon.
     
  3. FaxCelestis

    FaxCelestis Will Mod for Digglebucks

    random="1" not randoms="1".

    Also, can you attach the images?
     
  4. LionsDen

    LionsDen Member

    Here are the two images. Thanks for the random, I thought I saw another item had randoms.

    ring_vulcan.png gloves_alchemic.png
     
  5. LionsDen

    LionsDen Member

    I just tried to use an image that worked fine for another item I created and it still crashed.
     
  6. LionsDen

    LionsDen Member

    Ok, here is some more information. I finally got DoD to not crash. If I use the following item code, it doesn't crash and the following loadout code. But, the items do not show up in my inventory. :confused: I don't know what it is about the line commented out that is causing a crash, but it is.

    Item code:
    Code:
    <item name="Vulcan's Ring" iconfile="items/ring_vulcan.png" artifact="1" >
        <price amount="1250" />
        <armour level="2" type="ring" />
        <artifact quality="2" />
        <secondarybuff id="19" amount="1"/>    <!-- smithing -->
        <secondarybuff id="16" amount="1"/>    <!-- trap affinity -->
    <!--
        <secondarybuff id="17" amount="1"/>    <!-- trap sight -->
    -->
        <description text="A God's work is never done." />
        </item>
     
    <item name="Alchemic Gloves" iconfile="items/gloves_alchemic.png" artifact="1" >
        <price amount="769" />
        <armour level="2" type="hands" />
        <artifact quality="2" />
        <secondarybuff id="21" amount="1"/>    <!-- alchemy -->
        <resistbuff voltaic="1" acidic="1" />
        <description text="Don't spill that!!!" />
        </item>
    
    Loadout code:
    Code:
    <skill name="Warlockery" id="606" type="wizard" description="Warlocks are wizards that really wish they were warriors. Or rogues. Or fishmongers. Anything but wizards, really.  Their 'spells' (as they are) serve to make them less wizard-like in a variety of ways.">
      <loadout type="weapon" subtype="Philosopher's Stone" always="1"/>
      <loadout type="armour" subtype="Alchemic Gloves" always="1"/>
      <loadout type="armour" subtype="Vulcan's Ring" always="1"/>
      <art icon="skills/skill_battlemage.png"/>
        </skill>
    
    This has really got my goat. :(

    EDIT: I had to make one little change to the code above. Trap sight is 17 and trap affinity is 16. I had 17 for trap affinity and 18 for trap sight. 18 is for visual sight. :( Still, 17 for some reason will not work. It causes my game to crash.

    Oh yeah, running on Windows XP from Steam.

    New Edit: (2012-04-11 12:40am EDT) I had steam verify my local files. No problems found. So I had steam uninstall the game and then redownloaded it and tried again. Same problems. It's not my copy of the game.
     
  7. LionsDen

    LionsDen Member

    Ok, I'm not sure what happened but I will try to tell of the events as they transpired. In my message above, I mentioned how I downloaded DoD from steam all over again and still got the same result. Well, just before I went to bed I decided to try recreating the itemDB.xml file and placing it in a new mod called test. The only items in the new itemDB were the gloves and the ring. First attempt gave me a crash. I commented out the ring and tried just the gloves. No crash, but item didn't show up in my inventory from the loadout. I then commented out the gloves and allowed the ring a go. Crash. I tried different things with the ring by commenting out lines. Crash. Crash. Crash.

    Finally, I switched back to the gloves. I tried it and the gloves appeared in my inventory. No idea why they were now showing up. The code is still the same as it was earlier. The gloves worked exactly as they were supposed to. I could even right click them in my inventory to get them to pop over and onto my hands. Great, one down! :D Just no idea what fixed it.

    So I kept the gloves and started wondering if I made the ring exactly the same except change ring to hands if it would work. So I made the change a lo and behold, the ring showed up and acted like gloves. It worked perfectly. I tried changing it to rings to see if that would do anything. It still showed up but now it was a torso armor. :confused: I switched it back to ring and tried again and the Crash came back. For some reason, I can't make a ring apparently. I tried creating a ring of the same name and commented out the original and just made it a basic ring with +1 :magic_power: Magic Power. Crash again. For some reason the game wont let me make any rings.

    If anyone figures out what is happening, I would love to know. My code for the gloves and ring are below.

    Code:
    <item name="Alchemic Gloves" iconfile="items/gloves_alchemic.png" artifact="1" >
        <price amount="769" />
        <armour level="2" type="hands" />
        <artifact quality="2" />
        <secondarybuff id="21" amount="1"/>
        <resistbuff voltaic="1" acidic="1" />
        <description text="Don't spill that!!!" />
        </item>
     
     
    <item name="Vulcan's Ring" iconfile="items/ring_vulcan.png" artifact="1" >
        <price amount="1250" />
        <armour level="1" type="ring" />
        <artifact quality="2" />
        <secondarybuff id="19" amount="1" />
        <secondarybuff id="16" amount="1" />
        <secondarybuff id="17" amount="1" />
        <description text="A God's work is never done." />
        </item>
    
    The loadout is below.

    Code:
      <loadout type="armour" subtype="Alchemic Gloves" always="1"/>
      <loadout type="armour" subtype="Vulcan's Ring" always="1"/>
    
     
  8. Kazeto

    Kazeto Member

    From what I see in the game's files, rings also have a parameter 'randoms="0"' included in their definition. Perhaps adding it would help.
     
    LionsDen likes this.
  9. LionsDen

    LionsDen Member

    Yeah, it works now. :eek:

    Fax up above said it should be random, not randoms but when I was trying to fix it, I tried that and then I removed it completely. I was trying everything I could to get this ring to work. Thanks a lot.