Staredit Network > Forums > SC2 Assistance > Topic: [Solved] Underflow error in array error
[Solved] Underflow error in array error
This topic is locked. You can no longer write replies here.
Aug 30 2010, 5:37 am
By: Riney  

Aug 30 2010, 5:37 am Riney Post #1

Thigh high affectionado

So I have this problem. When I load the map it gets an underflow error in an array. I have a custom library, and when I delete all my triggers it doesnt get it anymore. Ive narrowed the problem down to that, but Im really not in the mood to go trigger to trigger to find out what I messed up.

Perhaps sen has some knowledge of the problem already.

[attach=7427]

Attachments:
Zombies The Escape.SC2Map
Hits: 2 Size: 525.28kb



Riney#6948 on Discord.
Riney on Steam (Steam)
@RineyCat on Twitter

-- Updated as of December 2021 --

Aug 30 2010, 10:16 am Ahli Post #2

I do stuff and thingies... Try widening and reducing the number of small nooks and crannies to correct the problem.

If I start the map, I don't get any error. What do I have to do to see the error?

But an underflow error means that the key value is below the accepted range of values (-> negative value).

Anyway, your attack speed buff array is to small (you set it to the length of 5, but you are still trying to access with [5]). Same with Heroes...




Aug 30 2010, 12:50 pm payne Post #3

:payne:

Quote from Ahli
If I start the map, I don't get any error. What do I have to do to see the error?

But an underflow error means that the key value is below the accepted range of values (-> negative value).

Anyway, your attack speed buff array is to small (you set it to the length of 5, but you are still trying to access with [5]). Same with Heroes...
Basically, arrays start at [0], and not [1].
That's what you meant? ;o



None.

Aug 30 2010, 2:23 pm Ahli Post #4

I do stuff and thingies... Try widening and reducing the number of small nooks and crannies to correct the problem.

Quote from payne
Basically, arrays start at [0], and not [1].
That's what you meant? ;o
Uhm, I'm not sure what I ment but arrays definitely start with 0.




Aug 30 2010, 2:31 pm Devourer Post #5

Hello

Ya... so, to ensure please respond whether I am right, array length of 4 got the index 0,1,2 and 3, above 3 = overflow?



Please report errors in the Staredit.Network forum.

Aug 30 2010, 3:47 pm Riney Post #6

Thigh high affectionado

That would probably trigger overflow yea, but this is UNDERflow. And the error is displayed when you start the map from the editor with the trigger debugger open.


"00:00:00.00 Script load failed: An error occurred starting StarCraft II. Please try again.e_arrayIndexUnderflow"

Edit: Im isolated the problem to the array Player Heroes in my map.

Post has been edited 2 time(s), last time on Aug 30 2010, 3:58 pm by Riney.



Riney#6948 on Discord.
Riney on Steam (Steam)
@RineyCat on Twitter

-- Updated as of December 2021 --

Aug 30 2010, 4:16 pm Riney Post #7

Thigh high affectionado

This can be locked, I found the problem (GO FIGURE) on my own.

Post has been edited 1 time(s), last time on Aug 30 2010, 6:03 pm by Riney.



Riney#6948 on Discord.
Riney on Steam (Steam)
@RineyCat on Twitter

-- Updated as of December 2021 --

Aug 30 2010, 9:59 pm payne Post #8

:payne:

Quote from Riney
This can be locked, I found the problem (GO FIGURE) on my own.
Please share?



None.

Sep 1 2010, 10:27 pm Riney Post #9

Thigh high affectionado

It was searching an array at index -1



Riney#6948 on Discord.
Riney on Steam (Steam)
@RineyCat on Twitter

-- Updated as of December 2021 --

Sep 1 2010, 11:05 pm payne Post #10

:payne:

Quote from Riney
It was searching an array at index -1
Why/How ?



None.

Sep 4 2010, 1:48 am Riney Post #11

Thigh high affectionado

I have an array that stored player heroes whereas 0 was player 1 and 5 was player 6.

I instead of using Trggering Player-1 I had a variable that counted from 0 to 5 in my trigger called The Loop. Well I ment to put The Loop, but instead of was The Loop - 1, thus resulting in -1



Riney#6948 on Discord.
Riney on Steam (Steam)
@RineyCat on Twitter

-- Updated as of December 2021 --

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[07:46 am]
RIVE -- :wob:
[2024-4-22. : 6:48 pm]
Ultraviolet -- :wob:
[2024-4-21. : 1:32 pm]
Oh_Man -- I will
[2024-4-20. : 11:29 pm]
Zoan -- Oh_Man
Oh_Man shouted: yeah i'm tryin to go through all the greatest hits and get the runs up on youtube so my senile ass can appreciate them more readily
You should do my Delirus map too; it's a little cocky to say but I still think it's actually just a good game lol
[2024-4-20. : 8:20 pm]
Ultraviolet -- Goons were functioning like stalkers, I think a valk was made into a banshee, all sorts of cool shit
[2024-4-20. : 8:20 pm]
Ultraviolet -- Oh wait, no I saw something else. It was more melee style, and guys were doing warpgate shit and morphing lings into banelings (Infested terran graphics)
[2024-4-20. : 8:18 pm]
Ultraviolet -- Oh_Man
Oh_Man shouted: lol SC2 in SC1: https://youtu.be/pChWu_eRQZI
oh ya I saw that when Armo posted it on Discord, pretty crazy
[2024-4-20. : 8:09 pm]
Vrael -- thats less than half of what I thought I'd need, better figure out how to open SCMDraft on windows 11
[2024-4-20. : 8:09 pm]
Vrael -- woo baby talk about a time crunch
[2024-4-20. : 8:08 pm]
Vrael -- Oh_Man
Oh_Man shouted: yeah i'm tryin to go through all the greatest hits and get the runs up on youtube so my senile ass can appreciate them more readily
so that gives me approximately 27 more years to finish tenebrous before you get to it?
Please log in to shout.


Members Online: Sie_Sayoka