• 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.

HELP please, I've got the stranges bugs in a map

Status
Not open for further replies.
Level 10
Joined
May 24, 2016
Messages
339
So there are 2 problems after some changes.


1) After I close the game, I get "application encountered an unexpected error", on 1.26 version (not reforged). It doesnt crash my game or somth, I just get it every time I close wc3, even without running any maps. This started to happening out of nowhere, I didnt even update any hardware or smth.


2) My hero units started to get bugged, during the game they might get undetected via engine. I mean, some functions are working, some function dont work anymore (f.e they can't be detected via Hashtables, it just return null). It happens randomly. IDK where it all started, all I did is movement speed system, where you raise or lower lvls of item spell ability.

Please give me a clue
 
Level 10
Joined
May 24, 2016
Messages
339
You're having issues while running an old patch (literally 7 years old). That's a problem of your own making.
Okay, but could give a tip about second problem?
I mean, I had something like that years ago. I could not load unit from hashtable. I can't remember how I solved it.
updgate: he can't either be added to any group. That's strange
 
Level 45
Joined
Feb 27, 2007
Messages
5,578
You need to learn basic debugging practices. Disable everything you just added. Does the behavior persist? Disable most/all triggers in your map. Does the behavior persist? Open an old version of the map and try reimporting the new stuff. Does the behavior persist?
 
Level 10
Joined
May 24, 2016
Messages
339
You need to learn basic debugging practices. Disable everything you just added. Does the behavior persist? Disable most/all triggers in your map. Does the behavior persist? Open an old version of the map and try reimporting the new stuff. Does the behavior persist?
About debugging. The problem is, this bug is happening very rare, I've had it single time through 40 times of my playthrough, controlling 4 heroes at once. Hard to test map 40 minutes every time I try to debugg something.
 
Level 45
Joined
Feb 27, 2007
Messages
5,578
2) My hero units started to get bugged, during the game they might get undetected via engine. I mean, some functions are working, some function dont work anymore (f.e they can't be detected via Hashtables, it just return null). It happens randomly. IDK where it all started, all I did is movement speed system, where you raise or lower lvls of item spell ability.
Then how can you be sure any of this is actually what's happening? You experienced some weird issue, sure. But if you can't replicate the issue then you can't test it to see what's truly happening so you're just guessing what you think the symptoms are. The unit could have been flushed from the hashtable through a logic error in some code, an erroneous function call, or something else entirely.

It's not random; you just don't know enough about the problem.
 
Level 10
Joined
May 24, 2016
Messages
339
Then how can you be sure any of this is actually what's happening? You experienced some weird issue, sure. But if you can't replicate the issue then you can't test it to see what's truly happening so you're just guessing what you think the symptoms are. The unit could have been flushed from the hashtable through a logic error in some code, an erroneous function call, or something else entirely.

It's not random; you just don't know enough about the problem.
The last time I encountered something like that is unclear, due to years passed. But I can remember it was somehow related with the trigger "trigger register unit in range". By some simple function, that I didnt have a clue why was making unit completely vanish from engine detection. It was so stupid and I thought "oh gosh this warcrarft 3 engine amuze me"
 
Status
Not open for further replies.
Top