FORUM ARCHIVED

This Mod is not Valid

Discussion in 'Modding' started by Cliff Excellent, Aug 13, 2013.

  1. I've never created any sort of mod before, so I decided to make something simple just to test it out. I've followed all the instructions on DredMod but the launcher won't recognise it as valid, and I'm not sure if the problem is because of how I made the .xml files or how I packaged the mod.

    <dredmormod>
    <revision text="1.0"/>
    <author text="Cliff Excellent"/>
    <name text="Tat"/>
    <description text="Silly tat made by a twat."/>
    <info totalconversion="0"/>
    </dredmormod>

    This is the mod.xml files. I don't think i've done anything wrong with this, though.

    <itemDB>
    <item name="Wig of Johnson" iconFile="items/helm_hair_of_johnson"
    <price amount="800"/>
    <armour level="3" type="head"/>
    <primarybuff id="4" amount="1" />
    <secondarybuff id="9" amount="3" />
    <secondarybuff id="18" amount="-2" />
    <resistbuff existential="2"/>
    <description text="This powerful hairdo appears to be slightly alive. Just seeing it can cause enemies to stop in their tracks. Unfortunately, it's hard to see through all that hair.
    </item>
    <item name="Staff of Gordon" iconfile="items/staff_gordon.png" level="4" type="3"
    <price amount="1000"/>
    <weapon crushing="5" existential="1"/>
    <artifact quality="1"
    <description text="The legendary staff of Gordon, the Brown Wizard. Has the magical ability to bore your enemies to death."/>
    </item>
    </itemDB>

    And here is the itemDB.xml file, for two simple items,;a helmet and a staffAgain, I can't see why this would be a problem. I've also created two simple sprites.

    When packaging the folder, I put both the .xml files in a folder titled "mod" but I didn't know whether to put the sprites in "Items" or "Sprites". Neither seem to work anyway, as the launcher doesn't accept the .zip either way.

    If someone who actually knows what they're doing could tell me where I went wrong, that would be nice.
     
  2. Syphonix

    Syphonix Member

    Could you upload the ZIP file? You've got some errors in your itemDB.xml but I don't think that's the problem.
     
    Kazeto likes this.
  3. Sure, here it is. This is probably the part I messed up, the tutorial didn't make it entirely clear, and I have absolutely no idea how this kind of thing actually works.
     

    Attached Files:

  4. Syphonix

    Syphonix Member

    Here's your .zip file in working condition. Here's what to look out for:

    - Make sure all folders inside of the zip are lower-cased.

    - The .XML files were actually .TXT files. It looks like you started them in notepad or something and then tried to rename them. I suggest you go download Notepad++. It'll create files of many types, including .XML.

    - Your itemDB.xml had some syntax errors. Here's the same file, after editing. Everything I added is in red.

    <itemDB>

    <item name="Wig of Johnson" iconFile="items/helm_hair_of_johnson.png">
    <price amount="800"/>
    <armour level="3" type="head"/>
    <primarybuff id="4" amount="1" />
    <secondarybuff id="9" amount="3" />
    <secondarybuff id="18" amount="-2" />
    <resistbuff existential="2"/>
    <description text="This powerful hairdo appears to be slightly alive. Just seeing it can cause enemies to stop in their tracks. Unfortunately, it's hard to see through all that hair."/>
    </item>

    <item name="Staff of Gordon" iconFile="items/staff_gordon.png" level="4" type="3">
    <price amount="1000"/>
    <weapon crushing="5" existential="1"/>
    <artifact quality="1"/>
    <description text="The legendary staff of Gordon, the Brown Wizard. Has the magical ability to bore your enemies to death."/>
    </item>

    </itemDB>
     

    Attached Files:

    Kazeto and Vitellozzo like this.

  5. Great, thanks for the help! I can upload it fine now, I've tested it and it works fine. I'll get to work on something less stupid eventually.
     
    Last edited: Aug 13, 2013
    Vitellozzo likes this.
  6. Syphonix

    Syphonix Member

    Here's another version of your ZIP with a temporary skill added. Start a new character with the Boris skill. He'll spawn with both items, and have a skill that will spawn one of the 2 items when you cast it. Make sure not to overwrite your current ZIP with this one.
     

    Attached Files:

    Kazeto and Vitellozzo like this.
  7. I've already found another way to test it, it seems to work fine. Thanks anyway.
     
    Vitellozzo likes this.