Wrong on so many levels (sorry, I couldn't stop me :P)
Remember that this is the size, not the maximum index. So there is no 0 to count. You already got that covered by adding 1 to every index, since GUI does this too.
And 5*3*4 is, contrary to popular belief, not 120, but only 60 :)
Wrong on so many levels (sorry, I couldn't stop me :P)
Remember that this is the size, not the maximum index. So there is no 0 to count. You already got that covered by adding 1 to every index, since GUI does this too.
And 5*3*4 is, contrary to popular belief, not 120, but only 60 :)
Lol I was just about to point that out and I read your post :P
But yeah I dont think I've even gotten out to any 3D arrays yet and pretty small numbers on my 2D's
lol. Of course he got an error. I could not have more than 6,000 words on NWW arrays due to the size limit. I had to keep publishing the map changing words since the dictionary had about 32,000 words.
5! = 120 indead ... The problem with array in GUI is that the number to specify is the maximum index instead of the size so i usually calculate that way. (no idea how they would code GUI that way)
Also what the OP just said is example index, not size so I'm not wrong on that.
My DK map needs a 128x128 struct array for tiles properties storage. Each struct has something like 15 variables in it so:
128x128x15 = 245.760
I know that adding a couple of variables in the struct means reaching the var amount limit
I am currently using an array of type doodad and it has 3 different levels so doodad[4][2][3] would return player 4, gate 2 , doodad 3
anyone else using some overly large arrays? :P
5x3x4 is only about 120, not too much, i think i used an 8x16x16 once
@nevjmac: Go
Nexus Word Wars
gv_words[800][6]. ;)
@nevjmac: Go
This guy: http://forums.sc2mapster.com/development/editor-bugs-and-feedback/1698-its-giving-me-an-error-could-not-allocate-global-memory/
@progammer: Go
oh that was just example... the actual array is a 8 x 3 x 7 atm, will increase if I need to store ore.
@RodrigoAlves: Go
I figured you would have a large array of words >.>
@Genopath: Go
and wow thats special
Wrong on so many levels (sorry, I couldn't stop me :P)
Remember that this is the size, not the maximum index. So there is no 0 to count. You already got that covered by adding 1 to every index, since GUI does this too.
And 5*3*4 is, contrary to popular belief, not 120, but only 60 :)
Lol I was just about to point that out and I read your post :P
But yeah I dont think I've even gotten out to any 3D arrays yet and pretty small numbers on my 2D's
lol. Of course he got an error. I could not have more than 6,000 words on NWW arrays due to the size limit. I had to keep publishing the map changing words since the dictionary had about 32,000 words.
@s3rius: Go
Ok I lost the game :(
5! = 120 indead ... The problem with array in GUI is that the number to specify is the maximum index instead of the size so i usually calculate that way. (no idea how they would code GUI that way)
Also what the OP just said is example index, not size so I'm not wrong on that.
@RodrigoAlves: Go
The memory allocation did have a limit. Using data table can circumvent it in some way but I don't have experience on that.
Critical[14][10][5][50].MaxValue[5][5][5][14]
Here I was thinking I overdid things with a size 12 array...
@obliviron: Go
far out....
@Eiviyn: Go
And what were you storing?
Pfff you are all noobs :D
My DK map needs a 128x128 struct array for tiles properties storage. Each struct has something like 15 variables in it so:
128x128x15 = 245.760
I know that adding a couple of variables in the struct means reaching the var amount limit
bla[3].amount[50][5][3][50] !!! :D
5 dimensions, one for: map, level, difficulty, location and type.
Reduces the spawning trigger to 15 lines :D
Holy crap some people use some wild arrays o.O
[ 18 ][ 8 ][ 14 ][ 10 ] = [ ships properties ][ ship type ][ owner ][ ship version ]
[ 8 ][ 250 ][ 10 ] = [ type of ship built ][ at planet ][ ship version ]
my map has 160k variables.
I had an array for my TD to store the light pathing markers, was around [4][300] I think. Had to store up to 300 markers for each path ><
Well I'm clearly not doing it right :P
I may need to create some overly large array just for the look at me factor :P
@nevjmac: Go
YOU BETTER DO IT! AND YOU BETTER DO IT FAST! NOW GO... RUN NEVJMAC!!!
@OneTwoSC: Go
But... but.... what am I going to store in this overly large array :O