What ids to use for new spells?

Discussion in 'General Modification' started by Rudy, Mar 16, 2015.

Remove all ads!
  1. Rudy

    Rudy Established Member

    Joined:
    Jan 30, 2005
    Messages:
    345
    Likes Received:
    2
    Oh, nevermind. Thank you for finding that; I had made that change when testing what each field in spell.mes actually did. heh.
     
  2. Sitra Achara

    Sitra Achara Senior Member

    Joined:
    Sep 1, 2003
    Messages:
    3,613
    Likes Received:
    537
    Ok, I found a function (accessed when doing the levelup spell selection) that checks for the range [802, 813] and also [1604, 1615]. I'll be investigating the code itself, but sometimes just jumping in and testing the spells could be quicker ;)

    Also I've found that when you use the scroll, it somehow sets the spellIdx to 0 (instead of 803). So that's what must cause the crash.
     
  3. Rudy

    Rudy Established Member

    Joined:
    Jan 30, 2005
    Messages:
    345
    Likes Received:
    2
    Tested a bit; crashes still occur at ids 892, 1292 with both spells.
     
  4. Sitra Achara

    Sitra Achara Senior Member

    Joined:
    Sep 1, 2003
    Messages:
    3,613
    Likes Received:
    537
    FWIW as of version 1.0.12 Temple+ will support spell enums from 814 to 3999. (finally :p )
    I'll also use this opportunity to reserve the range of 3000-3999 to class abilities spells / spell like abilities...

    edit:
    1604-1613 are likewise reserved for internal usage (they are used as dummy spell enums for sorting the "new spell list" on leveling up sorcerers/bards).
    802 denotes "vacant slot" and 803-812 denote the "Spell Level x" labels (where x is the spell enum minus 803).
     
    Last edited: Jun 10, 2016
  5. Allyx

    Allyx Master Crafter Global Moderator Supporter

    Joined:
    Dec 2, 2004
    Messages:
    5,001
    Likes Received:
    250
    o_ODoes that mean we're adding Psionic powers now too? :D
     
  6. Sitra Achara

    Sitra Achara Senior Member

    Joined:
    Sep 1, 2003
    Messages:
    3,613
    Likes Received:
    537
    I think I'll leave that honor to @bradrinwi
    It seems like adding new classes is the wall of death for DLL hackers :p let's see if I can make it...
     
Our Host!