HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Array Problems...?

05-15-2002, 12:53 AM#1
Guest
Okay, so whenever I try to start a multiplayer I get an assertion error(error seen below) in the loading screen for the map.

Now, from what it says it seems to be error occuring in relation to an array, although it also seems to be saying that something is less then the max it can be, which would be sorta silly...

I also have to assume that it has something to do with the amount of other people in the game (or just having other people in the game) cause whenever I tried single player (before updating) it worked fine.

The last assumption I make is that it's in my trigger that happens when the map initializes, as it screws up at the loading process of the game.

Anyways, the error is below, if you wanna see my init trigger I'll post it.

Thanks in Advance for the help
-

This application has encountered a critical error:

ASSERTION!

Program: C:\Program Files\Warcraft III Beta\war3.exe
File: E:\Drive1\Temp\buildWar3Beta\engine\source\Jass2\Instance.h
Line: 121
Expr: index < MAX_ARRAY_SIZE


Played Maps\GolemWars.w3m
Player 0 Race Orc StartLoc 0
Player 1 Race Orc StartLoc 1
Player 2 Race Human StartLoc 2
Player 3 Race Human StartLoc 3
Player 4 Race Human StartLoc 4
Player 5 Race Human StartLoc 5
Player 6 Race Human StartLoc 6
Player 7 Race Human StartLoc 7
Player 8 Race Human StartLoc 8
Player 9 Race Undead StartLoc -1
Player 10 Race Human StartLoc -1
Player 11 Race Orc StartLoc -1
------------------------------------------------------------------------------

----------------------------------------
Stack Trace (Using DBGHELP.DLL)
----------------------------------------

3062B798 GameAE.dll <unknown symbol>+0 (0x6E736866,0x0012F714,0x02586A7C,0x00000000)
3062A823 GameAE.dll <unknown symbol>+0 (0x0CA67A08,0x00000000,0x0012F714,0x000493E0)
30615CF2 GameAE.dll <unknown symbol>+0 (0x00000000,0x0012F714,0x000493E0,0x00000000)
304E09A1 GameAE.dll <unknown symbol>+0 (0x0000000A,0x0012F714,0x106300E4,0x00000000)
3052E9AF GameAE.dll <unknown symbol>+0 (0x0012F714,0x106300E4,0x00000000,0x00000000)
30534819 GameAE.dll <unknown symbol>+0 (0x0F490574,0x00000000,0x10630088,0x0012F788)
3053415D GameAE.dll <unknown symbol>+0 (0x0F490578,0x00000000,0x00000000,0x018700A8)
30527623 GameAE.dll <unknown symbol>+0 (0x00000000,0x0012F7D4,0x0F490534,0x00000002)
30527A8C GameAE.dll <unknown symbol>+0 (0x00000000,0x0012F80C,0x304B2570,0x0F490534)
304B2654 GameAE.dll <unknown symbol>+0 (0x001000A6,0x0257B984,0x053E00A8,0x000002DC)
306252CA GameAE.dll <unknown symbol>+0 (0x0012F80C,0x00000000,0x053E00A8,0x0B72737C)
3062B991 GameAE.dll <unknown symbol>+0 (0x001000A6,0x00000000,0x0B709A54,0x00000000)
3062A6B5 GameAE.dll <unknown symbol>+0 (0x307FAEC4,0x00000000,0x00000000,0x000493E0)
30615C79 GameAE.dll <unknown symbol>+0 (0x00000000,0x00000000,0x00000000,0x000493E0)
304D2D15 GameAE.dll <unknown symbol>+0 (0x02B52BFC,0x30426AB0,0xFB27FF03,0x305A78EE)
30426B9A GameAE.dll <unknown symbol>+0 (0x4009007D,0x0012FC54,0x02AE00A0,0x0012FC8C)
305A7851 GameAE.dll <unknown symbol>+0 (0x0012FC54,0x024500A4,0x04FD0104,0x00000000)
30491148 GameAE.dll <unknown symbol>+0 (0x0000001A,0x0012FD50,0x024500A4,0x0124013C)
30492216 GameAE.dll <unknown symbol>+0 (0x00000000,0x024500A4,0x77F7EE0F,0x77E8030E)
304943A0 GameAE.dll <unknown symbol>+0 (0xCA587FCC,0x0124013C,0x3001A785,0x012200AC)
3049490D GameAE.dll <unknown symbol>+0 (0x0012FD8C,0x00000001,0x012200AC,0x00000102)
30016D4D GameAE.dll <unknown symbol>+0 (0x00000000,0x30000000,0x30004540,0x69676E45)
300167A5 GameAE.dll <unknown symbol>+0 (0x00000000,0x300045A3,0x505C3A43,0x72676F72)
300165D1 GameAE.dll <unknown symbol>+0 (0x30000000,0x00000000,0x00000000,0x00141EE8)
00401104 war3.exe <unknown symbol>+0 (0x00000000,0x00000000,0x7FFDF000,0xF1BD4CF4)
77E7EB69 kernel32.dll CreateProcessInternalW+4471 (0x00401226,0x00000000,0x78746341,0x00000020)


----------------------------------------
Stack Trace (Manual)
----------------------------------------

Address Frame Logical addr Module

3062B798 0012F660 0001:0062A798 C:\Program Files\Warcraft III Beta\GameAE.dll
3062A823 0012F684 0001:00629823 C:\Program Files\Warcraft III Beta\GameAE.dll
30615CF2 0012F6AC 0001:00614CF2 C:\Program Files\Warcraft III Beta\GameAE.dll
304E09A1 0012F6D4 0001:004DF9A1 C:\Program Files\Warcraft III Beta\GameAE.dll
3052E9AF 0012F6F0 0001:0052D9AF C:\Program Files\Warcraft III Beta\GameAE.dll
30534819 0012F724 0001:00533819 C:\Program Files\Warcraft III Beta\GameAE.dll
3053415D 0012F738 0001:0053315D C:\Program Files\Warcraft III Beta\GameAE.dll
30527623 0012F788 0001:00526623 C:\Program Files\Warcraft III Beta\GameAE.dll
30527A8C 0012F7AC 0001:00526A8C C:\Program Files\Warcraft III Beta\GameAE.dll
304B2654 0012F7C8 0001:004B1654 C:\Program Files\Warcraft III Beta\GameAE.dll
306252CA 0012F848 0001:006242CA C:\Program Files\Warcraft III Beta\GameAE.dll
3062B991 0012F9C8 0001:0062A991 C:\Program Files\Warcraft III Beta\GameAE.dll
3062A6B5 0012F9F0 0001:006296B5 C:\Program Files\Warcraft III Beta\GameAE.dll
30615C79 0012FA10 0001:00614C79 C:\Program Files\Warcraft III Beta\GameAE.dll
304D2D15 0012FA7C 0001:004D1D15 C:\Program Files\Warcraft III Beta\GameAE.dll
30426B9A 0012FAB4 0001:00425B9A C:\Program Files\Warcraft III Beta\GameAE.dll
305A7851 0012FAC8 0001:005A6851 C:\Program Files\Warcraft III Beta\GameAE.dll
30491148 0012FC8C 0001:00490148 C:\Program Files\Warcraft III Beta\GameAE.dll
30492216 0012FCF8 0001:00491216 C:\Program Files\Warcraft III Beta\GameAE.dll
304943A0 0012FD30 0001:004933A0 C:\Program Files\Warcraft III Beta\GameAE.dll
3049490D 0012FD74 0001:0049390D C:\Program Files\Warcraft III Beta\GameAE.dll
30016D4D 0012FD9C 0001:00015D4D C:\Program Files\Warcraft III Beta\GameAE.dll
300167A5 0012FDFC 0001:000157A5 C:\Program Files\Warcraft III Beta\GameAE.dll
300165D1 0012FF10 0001:000155D1 C:\Program Files\Warcraft III Beta\GameAE.dll
00401104 0012FFC0 0001:00000104 C:\Program Files\Warcraft III Beta\war3.exe
77E7EB69 0012FFF0 0001:0001DB69 C:\WINDOWS\system32\kernel32.dll

----------------------------------------
Memory Dump
----------------------------------------

Stack: 1024 bytes starting at (ESP = 0012CFBC)

* = addr ** *
0012CFB0: 44 2B 00 00 7A 15 00 15 BC CF 12 00 00 00 00 00 D+..z...........
0012CFC0: 44 2B 00 00 EC CF 12 00 BC CF 12 00 D8 CF 12 00 D+..............
0012CFD0: 7A 15 00 15 40 51 01 15 68 E7 12 00 CF 50 01 15 [email protected]..
0012CFE0: 44 2B 00 00 02 00 00 00 00 00 00 00 50 6C 61 79 D+..........Play
0012CFF0: 65 64 20 4D 61 70 73 5C 47 6F 6C 65 6D 57 61 72 ed Maps\GolemWar
0012D000: 73 2E 77 33 6D 0A 50 6C 61 79 65 72 20 20 30 09 s.w3m.Player 0.
0012D010: 52 61 63 65 20 4F 72 63 09 53 74 61 72 74 4C 6F Race Orc.StartLo
0012D020: 63 20 20 30 0A 50 6C 61 79 65 72 20 20 31 09 52 c 0.Player 1.R
0012D030: 61 63 65 20 4F 72 63 09 53 74 61 72 74 4C 6F 63 ace Orc.StartLoc
0012D040: 20 20 31 0A 50 6C 61 79 65 72 20 20 32 09 52 61 1.Player 2.Ra
0012D050: 63 65 20 48 75 6D 61 6E 09 53 74 61 72 74 4C 6F ce Human.StartLo
0012D060: 63 20 20 32 0A 50 6C 61 79 65 72 20 20 33 09 52 c 2.Player 3.R
0012D070: 61 63 65 20 48 75 6D 61 6E 09 53 74 61 72 74 4C ace Human.StartL
0012D080: 6F 63 20 20 33 0A 50 6C 61 79 65 72 20 20 34 09 oc 3.Player 4.
0012D090: 52 61 63 65 20 48 75 6D 61 6E 09 53 74 61 72 74 Race Human.Start
0012D0A0: 4C 6F 63 20 20 34 0A 50 6C 61 79 65 72 20 20 35 Loc 4.Player 5
0012D0B0: 09 52 61 63 65 20 48 75 6D 61 6E 09 53 74 61 72 .Race Human.Star
0012D0C0: 74 4C 6F 63 20 20 35 0A 50 6C 61 79 65 72 20 20 tLoc 5.Player
0012D0D0: 36 09 52 61 63 65 20 48 75 6D 61 6E 09 53 74 61 6.Race Human.Sta
0012D0E0: 72 74 4C 6F 63 20 20 36 0A 50 6C 61 79 65 72 20 rtLoc 6.Player
0012D0F0: 20 37 09 52 61 63 65 20 48 75 6D 61 6E 09 53 74 7.Race Human.St
0012D100: 61 72 74 4C 6F 63 20 20 37 0A 50 6C 61 79 65 72 artLoc 7.Player
0012D110: 20 20 38 09 52 61 63 65 20 48 75 6D 61 6E 09 53 8.Race Human.S
0012D120: 74 61 72 74 4C 6F 63 20 20 38 0A 50 6C 61 79 65 tartLoc 8.Playe
0012D130: 72 20 20 39 09 52 61 63 65 20 55 6E 64 65 61 64 r 9.Race Undead
0012D140: 09 53 74 61 72 74 4C 6F 63 20 2D 31 0A 50 6C 61 .StartLoc -1.Pla
0012D150: 79 65 72 20 31 30 09 52 61 63 65 20 48 75 6D 61 yer 10.Race Huma
0012D160: 6E 09 53 74 61 72 74 4C 6F 63 20 2D 31 0A 50 6C n.StartLoc -1.Pl
0012D170: 61 79 65 72 20 31 31 09 52 61 63 65 20 4F 72 63 ayer 11.Race Orc
0012D180: 09 53 74 61 72 74 4C 6F 63 20 2D 31 0A 00 00 40 .StartLoc -1...@
0012D190: 04 00 00 00 01 00 00 00 C8 01 14 00 00 00 00 00 ................
0012D1A0: 68 9C 11 0A 18 D2 12 00 02 24 F8 77 00 00 00 00 h........$.w....
0012D1B0: 00 00 14 00 00 00 00 00 28 D2 12 00 C0 5E 00 00 ........(....^..
0012D1C0: 0A 00 00 00 42 C8 01 01 00 00 14 00 84 D1 12 00 ....B...........
0012D1D0: 34 00 00 00 21 E6 F5 77 0C D2 12 00 68 BB FA 77 4...!..w....h..w
0012D1E0: 00 00 14 00 00 00 00 00 B0 FF F7 0A 00 00 14 00 ................
0012D1F0: B8 FF F7 0A B0 FF F7 0A 6C D2 12 00 02 24 F8 77 ........l....$.w
0012D200: 00 00 00 00 00 00 14 00 00 00 00 00 7C D2 12 00 ............|...
0012D210: 59 C8 FA 77 08 06 14 00 42 C8 FA 77 00 00 14 00 Y..w....B..w....
0012D220: B8 FF F7 0A 60 00 00 40 42 C8 FA 77 62 CF F8 77 ....`[email protected]
0012D230: 00 00 14 00 61 00 00 50 21 E6 F5 77 00 00 14 00 ....a..P!..w....
0012D240: 70 9C 11 0A 60 00 00 40 00 00 00 00 00 00 00 00 p...`..@........
0012D250: 00 00 00 00 50 00 00 00 B0 FF F7 0A 00 00 01 01 ....P...........
0012D260: 00 00 14 00 1C D2 12 00 00 00 00 00 44 D3 12 00 ............D...
0012D270: 02 24 F8 77 68 B9 FB 77 FF FF FF FF 42 C8 FA 77 .$.wh..w....B..w
0012D280: 62 CF F8 77 00 00 14 00 61 00 00 50 21 E6 F5 77 b..w....a..P!..w
0012D290: 00 00 14 00 B8 FF F7 0A 60 00 00 40 C0 51 C7 00 ........`[email protected]..
0012D2A0: 00 00 14 00 F8 D1 12 00 57 56 C7 77 7C D3 12 00 ........WV.w|...
0012D2B0: 02 24 F8 77 08 64 F7 77 FF FF FF FF 10 00 00 00 .$.w.d.w........
0012D2C0: 0C 00 00 00 58 D3 12 00 FD 01 00 00 F4 D2 12 00 ....X...........
0012D2D0: 3E 72 D4 77 54 D6 12 00 FD 01 00 00 0C D3 12 00 >r.wT...........
0012D2E0: D8 34 55 00 18 00 00 00 00 00 00 00 D8 34 55 00 .4U..........4U.
0012D2F0: 07 00 00 00 40 D3 12 00 F5 82 D4 77 00 00 00 00 [email protected]....
0012D300: D8 34 55 00 0C 00 00 00 58 D3 12 00 0C 00 00 00 .4U.....X.......
0012D310: 00 00 00 00 F0 01 2B 05 0D 00 00 00 FE 01 00 00 ......+.........
0012D320: 00 00 00 00 00 9C 1F 03 00 00 00 00 E5 95 00 00 ................
0012D330: 00 00 00 00 00 0F 00 00 00 00 14 00 90 D2 12 00 ................
0012D340: A0 D3 12 00 FB 6F D4 77 F0 01 2B 05 0D 00 00 00 .....o.w..+.....
0012D350: FE 01 00 00 54 D6 12 00 54 D6 12 00 B2 6F D4 77 ....T...T....o.w
0012D360: F0 01 2B 05 0D 00 00 00 FE 01 00 00 C6 6F D4 77 ..+..........o.w
0012D370: F0 01 2B 05 0D 00 00 00 FE 01 00 00 0C 00 00 00 ..+.............
0012D380: 00 00 00 00 00 00 00 00 70 D3 12 00 EB FF FF FF ........p.......
0012D390: C4 D4 12 00 76 C0 D7 77 18 B8 D5 77 FF FF FF FF ....v..w...w....
0012D3A0: C6 6F D4 77 5F DA 05 30 F0 01 2B 05 0D 00 00 00 .o.w_..0..+.....
0012D3B0: FE 01 00 00 54 D6 12 00 54 D6 12 00 F0 01 2B 05 ....T...T.....+.
------------------------------------------------------------------------------
05-15-2002, 01:52 AM#2
Guest
I don't think anyone who posts on this forum can figure out the problem from an error message like that. You have to post your map for people to find the problem.
05-15-2002, 01:29 PM#3
Guest
arrays work fine for me ...
05-15-2002, 04:27 PM#4
Guest
The assertion took place because it checked if index was less than the MAX_ARRAY_SIZE and came up with an answer of 'false'. Meaning you tried to access an index higher than the max array size. Where do you use arrays in your map?

It may be prudent to note that in computers, most arrays start with index 0. Thus, if you have an array of size 10 and you try to access index 10, it will give you an error because the array uses index values 0-9. This is the most common reason for the problem you're having.

Otherwise, check to make sure your loops don't go past their bounds, or you don't otherwise try to access an index that could possibly be greater than the size of the array.
05-15-2002, 07:16 PM#5
Guest
hehe i think to remeber that you dont have to set the size of the array at we =)
05-16-2002, 02:49 PM#6
Guest
Yeah, you don't have to set the size of the array... and look

"File: E:\Drive1\Temp\buildWar3Beta\engine\source\Jass2\Instance.h \"

the problem is in that file, now, what that file is I have no idea... maybe I should read through Zepir's info on the files in the mpq's...