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

[Trigger] Everything NULL

Status
Not open for further replies.
Level 7
Joined
Mar 22, 2010
Messages
228
okay, now i call it null because every single trigger i have dont work..
they dont take actions or everything...just in a snap...

i have a thought why this happend because of my """ANTI leak system"""..
its like records previous datas so next incoming datas wont leak..
ok dont mind that system...

my problem is my triggers wont work even they are ENABLED...
last TEST MAP WAS GOOD...but next TEST MAP was ...like that it wont work..

PLEASE HELP ME :(

that also happens when im making custom spells with arrays..
 

Attachments

  • AI programming.w3x
    43.8 KB · Views: 76
Level 18
Joined
Jan 21, 2006
Messages
2,552
Very strange. What editor do you use? It seems like none of the triggers added via GUI are being executed.

Psh. It's because you defined an array with 8192 available indexes. This will run a loop that initializes each element of the array so you're going to have a loop that iterates over 8000 times. This will overload the operation stack.

You don't need to define 8192 available indexes, just set the number to 1. All arrays that are defined in JASS have 8191 indexes, no matter what. The only thing the GUI size input does it cause it to run through all listed indexes and set them to their default value. This is unnecessary, and in your case it is crashing your code.

Here is an updated map that has the 4 changes applied.
 

Attachments

  • AI programming.w3x
    43.4 KB · Views: 44
Level 7
Joined
Mar 22, 2010
Messages
228
so is it ok that i will create a variable with array of [1] then set that variable and uses an array of 0 up to 5 or so ever?
 
Status
Not open for further replies.
Top