• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

Casting an ability crashes the game if it has the same ID as a spellbook

Status
Not open for further replies.
Level 13
Joined
Jul 15, 2007
Messages
763
With the abundance of crashes happening, including to my own project (Orc Gladiators), i did some investigating. Only by accident did i find a cause that is probably going to be an issue for several custom games.

If a unit casts a spell (for example, Acid Bomb) and has a spellbook (hidden or not) with its base ID set to Acid Bomb, the game will crash.

The ID arbitrary as far as i know. I am 100% sure this problem/interaction did not exist before 1.30.

Attached crash map. Should be fairly self-explanatory.
 

Attachments

You sure it didnt crash before? Because it sounds just like undefined behavior

Yep. If it did then Orc Glads would have had a 100% crash rate if a certain hero was picked, as i unwittingly had a Channel based ability and a spellbook on the hero that used the Inner Fire base ID.

And obviously that's why this problem might be important; if you have 100s of Channel abilities and 20-30 spellbooks there's the real chance you've accidentally got two IDs the same.
 
Status
Not open for further replies.
Back
Top