• 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.
  • 💡 We're thrilled to announce that our upcoming texturing contest is in the works, and we're eager to hear your suggestions! Please take this opportunity to share your ideas in this theme discussion thread for the Texturing Contest #34!
  • 🏆 Hive's 7th HD Modeling Contest: Icecrown Creature is now open! The frozen wastes of Icecrown are home to some of Azeroth’s most terrifying and resilient creatures. For this contest, your challenge is to design and model a HD 3D monster that embodies the cold, undead, and sinister essence of Icecrown! 📅 Submissions close on April 13, 2025. Don't miss this opportunity to let your creativity shine! Enter now and show us your frozen masterpiece! 🔗 Click here to enter!

[General] Seek for: List of known reasons for Fatal Errors

Status
Not open for further replies.
Multiboards and leaderboards cannot be made on map initialization.

If you try to use any triggers/functions on a lightning that was destroyed, it'll crash.

This list has a decent amount as well. It is worth the read:
http://www.hiveworkshop.com/forums/world-editor-help-zone-98/list-warcraft-iii-crashes-194706/

But usually fatal errors should be handled case by case, apart from the really popular ones (which is usually because of (1) an object/faulty import (2) Player(x) index (3) lightning).
 
Hmm, I can exclude nearly all listed reasons. Referencing to player(x) is the one I can't yet exclude.
Is there any possibility that removing a unit from the game can cause a Fatal Error? Maybe because any other triggers that use waits are still refering to the already removed unit, taking its playernumber (x) and then doing something with player(x)?

I just tried to reproduce such a problem, but I wasn't successfull. The game seems to always threat player 1 as the owner of removed units. So I am probably wrong with guessing that reason.
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,275
Is there any possibility that removing a unit from the game can cause a Fatal Error? Maybe because any other triggers that use waits are still refering to the already removed unit, taking its playernumber (x) and then doing something with player(x)?
Yes it is possible. I also think it is possible that removing units under certain event states can cause a crash (eg event queued on unit after another event but unit is removed before event executes).

The game seems to always threat player 1 as the owner of removed units.
It returns Player(0) as a safe default value as opposed to null since that would almost always cause a segmentation fault type error if used. Equally well things like Player(16) will cause a fatal error.
 
Yes it is possible. I also think it is possible that removing units under certain event states can cause a crash (eg event queued on unit after another event but unit is removed before event executes).
In my case, the Fatal Error happened, when a player left the game while still being alive. His remaining units got removed, and any trigger messed up, probably.
I will change that to killing all of his units instead and hope for the best :D
 
Status
Not open for further replies.
Top