This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
Hey,
I'm trying to run through an array of units to deal damage to but no matter what I do, I always get an e_arrayIndexOverflow...
Whether it's a for each loop or a picked integer loop...
And the weirdest part is that this even happens where there is NOTHING inside the actions for that loop
This is what I have right now (same error if I change 'Enemy units array size - 1' to any value, like 5 for example)
General - Pick each integer from 0 to (Enemy units array size - 1), and do (Actions)
There are no actions, but I'm still getting that error, don't understand at all anymore
Ok figures, I mess around with it for 2 hours and nothing, 5 mins after this post I solve it ...
The error is due to a different array that I tried to use but was 1 size to small
The error isnt caused inside the loop but infact right after the loop due to the timer I try to start there...
So yea, makes me kinda realize how nice it would be to have better error logging instead of these ultra generic warnings
you can enable a trigger debugger at: File ==> Preferences ==> Test Document. [v] Run Game In A Window [v] Show Trigger Debugging Window Next you can use Debug Message to throw messages to that window when testing XD. This might help you find it out faster next time.
Ah cool! :) Thanks
Hey,
I'm trying to run through an array of units to deal damage to but no matter what I do, I always get an e_arrayIndexOverflow...
Whether it's a for each loop or a picked integer loop...
And the weirdest part is that this even happens where there is NOTHING inside the actions for that loop
This is what I have right now (same error if I change 'Enemy units array size - 1' to any value, like 5 for example)
General - Pick each integer from 0 to (Enemy units array size - 1), and do (Actions)
There are no actions, but I'm still getting that error, don't understand at all anymore
Ok figures, I mess around with it for 2 hours and nothing, 5 mins after this post I solve it ...
The error is due to a different array that I tried to use but was 1 size to small
The error isnt caused inside the loop but infact right after the loop due to the timer I try to start there...
So yea, makes me kinda realize how nice it would be to have better error logging instead of these ultra generic warnings
you can enable a trigger debugger at:
File ==> Preferences ==> Test Document.
[v] Run Game In A Window
[v] Show Trigger Debugging Window
Next you can use Debug Message to throw messages to that window when testing XD.
This might help you find it out faster next time.
Ah cool! :) Thanks