1. Find your way through the deepest dungeon in the 18th Mini Mapping Contest Poll.
    Dismiss Notice
  2. A brave new world lies beyond the seven seas. Join the 34th Modeling Contest today!
    Dismiss Notice
  3. Check out the Staff job openings thread.
    Dismiss Notice
Dismiss Notice
Hive 3 Remoosed BETA - NOW LIVE. Go check it out at BETA Hive Workshop! Post your feedback in this new forum BETA Feedback.
Dismiss Notice
60,000 passwords have been reset on July 8, 2019. If you cannot login, read this.

Spellbook Weird Autokill Bug

Discussion in 'World Editor Help Zone' started by babblejoe23, Aug 31, 2012.

  1. babblejoe23

    babblejoe23

    Joined:
    Mar 18, 2010
    Messages:
    6
    Resources:
    0
    Resources:
    0
    Hi everyone. I've been searching solutions to this weird bug on my map.

    Each time when a unit enters the playable map, I will give him a disabled spellbook which has 2 passive skills. Between, 0 - 5 mins gametime, my map works fine, but after 6 or 7 mins, most of spawned units automatically dies. The killer of the units are unknown, Also I check all my triggers and none of them has a function an Kill unit.

    I suspected it was from the added spellbook because when I disabled the Trigger which gives the entering unit a spellbook, the bug was gone.

    All I want to know is that is the cause of this bug because I can't continue my map if I can't debug this weird thing.

    Related Posts are:

    http://www.hiveworkshop.com/forums/world-editor-help-zone-98/spellbook-suicide-issue-138204/

    http://www.hiveworkshop.com/forums/world-editor-help-zone-98/spell-book-auto-kill-help-205971/
     
  2. WaterKnight

    WaterKnight

    Joined:
    Aug 18, 2009
    Messages:
    4,035
    Resources:
    5
    Maps:
    1
    Tutorials:
    4
    Resources:
    5
    How should we know if it's the cause? Upload the map.
     
  3. Br0

    Br0

    Joined:
    May 4, 2012
    Messages:
    94
    Resources:
    0
    Resources:
    0
    Upload the map otherwise all I can guess is that you have edited a spell to make it target allies that deals a lot of damage such as immolation or a de-regen aura.
     
  4. babblejoe23

    babblejoe23

    Joined:
    Mar 18, 2010
    Messages:
    6
    Resources:
    0
    Resources:
    0
    Here is the map, Just pick the Defender in the Hero Selection (1st column,2nd row), or the hero that has pending tooltip.

    The problem is similar above, When he casts Encourage ability to a hero above level 8 (can cast self), his target automatically dies (killer is unknown).

    When he casts Encourage, the target will be given a disabled spellbook. The triggers can be found at Captain Spell Pack, Trigger names are Dummy Spell and Dummy Spell Timer.

    View attachment MyMap v0.1.w3x
     
  5. WaterKnight

    WaterKnight

    Joined:
    Aug 18, 2009
    Messages:
    4,035
    Resources:
    5
    Maps:
    1
    Tutorials:
    4
    Resources:
    5
    There is a range of Unit - Kill actions. Use the object manager to find them. Install debug messages in those triggers to see who they kill. Do the same with Unit - Set Life occurences. I could not reconstruct the problem yet because it does not happen from just waiting.
     
  6. babblejoe23

    babblejoe23

    Joined:
    Mar 18, 2010
    Messages:
    6
    Resources:
    0
    Resources:
    0
    I have created debug messages to all triggers with Unit - KIll, Unit - Set Life functions but when the bug occurs, none of the debug messages happens. Ill just check other suspicious triggers and add debug messages to them. Anyway thanks for some useful advice. +rep for the help.
     
  7. WaterKnight

    WaterKnight

    Joined:
    Aug 18, 2009
    Messages:
    4,035
    Resources:
    5
    Maps:
    1
    Tutorials:
    4
    Resources:
    5
    Can you give hints how to reconstruct the issue?
     
  8. babblejoe23

    babblejoe23

    Joined:
    Mar 18, 2010
    Messages:
    6
    Resources:
    0
    Resources:
    0
    In my map, this happens always when I add a disabled spellbook to a unit (mostly happens when a unit is above level 5 or Hero has a hero level above 7) . The unit automatically dies after having that spellbook.

    Now, I have clues regarding this issue, it is not on the triggers. It is because, last day, even i disabled almost all of the triggers and left the spell triggers alone, still the issue/bug is there. So if it is not on the triggers, i tried to reset the gameplay constants after I test my map again, the spell works fine, the issue is gone. What I am doing right now is finding the cause of this bug in the game play constants.
     
  9. Say41Plz

    Say41Plz

    Joined:
    Dec 16, 2012
    Messages:
    10
    Resources:
    0
    Resources:
    0
    Here is an alternative solution (it seems the spellbook autokill bug happens on level 5+ units or something like that, happened to me too).
    First, you need the spellbook with two levels, first level with no abilities and level 2 with the ability you want.
    Second, add in the editor the ability for all units that are supposed to get via disabled spellbook.
    Third and least, in the trigger, set the "Unit - Increase ability for unit" and select the previously disabled spellbook.

    EDIT: Make sure the number min and max spells allowed in the spellbook are the same in both levels (if the first level has 2 maximum spells, the second must have 2. Otherwise the unit will end up dying). This could be a hint to fix the bug.

    As for the bug, I do not know how to disable it.
     
    Last edited: Jan 1, 2013