• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

Fatal error happening, how to solve it

Status
Not open for further replies.
Level 10
Joined
Jun 7, 2008
Messages
420
Hola, I got this really big problem with my map.

fatalerrore.png


Will be really grateful if someone can fix it.
 
Level 10
Joined
Jun 7, 2008
Messages
420
Allright could be the models as someone has already looked at the triggers some time ago. Would be nice if someone could countercheck again though.
Uploading map.
 

Attachments

  • LOTR Helms Deep Hero Defense v2.1.w3x
    404 KB · Views: 71
Level 10
Joined
Jun 7, 2008
Messages
420
Thanks, stresstesting it now. Theres lots of filth left behind by generations of mappers before me. Reworking everything while recycling some triggers have led to the messy tangle you see here.
EDIT: your fix didn't work sorry but think the fix broke the trigger that makes everyone allied. Thanks for the effort though. I've meanwhile cleared all custom unitskins out, hope this fixes things.
 
Last edited:

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,201
He is suffering from fatal errors not lag...

Triggers / events which I know cause fatal errors.
  • Creating a player event with null as the passed player.
  • Certain inifinite loops.
  • Manipulating hashtable indexes with incorrect types (recalling a saved integer as a handle for example).
  • Giving a unit a tome of hero attributes (like str, agi or int).
  • Casting spells with wierd or invalid values (<=0 delay or duration or cooldown).
  • Moving units via triggers off the edge of the map or over other units (not garunted to cause a fatal and infact is unlikly but still can or atleast causes lag).
  • Using an insane AoE value for target abilities like attack ground or AoE spells (instant fatal error).
  • Abusing morph abilities in a unsafe way.
  • Destroying triggers excessivly (can cause fatal errors but rarely).
  • Creating a quest object during map load (via initializing a global directly to one).
 
Level 10
Joined
Jun 7, 2008
Messages
420
HEres the crashlog

==============================================================================
Warcraft III (build 6374)

Exe: c:\program files\warcraft iii\war3.exe
Time: Oct 28, 2009 2:58:38.755 PM
User: SilverLeaf
Computer: SILVERLEAF-PC
------------------------------------------------------------------------------

This application has encountered a critical error:

FATAL ERROR!

Program: c:\program files\warcraft iii\war3.exe
Exception: 0xC0000005 (ACCESS_VIOLATION) at 001B:6F479B51

The instruction at '0x6F479B51' referenced memory at '0x0000000C'.
The memory could not be 'read'.


War3Build: 1.24.1.6374
Played Maps\Test\LOTR\LOTR Helms Deep Hero Defense v2.2.w3x
Player 0 Uruk-Hai Race Orc StartLoc 0
Player 1 silverleaf Race Human StartLoc 1
Player 2 asdda Race Human StartLoc 2
Player 3 JotherJono Race NightElf StartLoc 3
Player 4 Thunder[kt] Race Human StartLoc 4
Player 5 theplaya7 Race Human StartLoc 5
Player 6 Theoden Race Human StartLoc 6
Player 7 Gandalf Race Human StartLoc 7
Player 8 Shentewu Race Human StartLoc 8
Player 9 Race Human StartLoc 9
Player 10 capurazz Race NightElf StartLoc 10
Player 11 Race NightElf StartLoc 11
------------------------------------------------------------------------------

----------------------------------------
x86 Registers
----------------------------------------

EAX=0012EE64 EBX=04CD1210 ECX=00000000 EDX=0012EE64 ESI=0834866C
EDI=00000000 EBP=41456172 ESP=0012EE54 EIP=6F479B51 FLG=00210246
CS =001B DS =0023 ES =0023 SS =0023 FS =003B GS =0000


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

Address Frame Logical addr Module

6F479B51 41456172 0001:00478B51 c:\program files\warcraft iii\Game.dll

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

6F479B51 Game.dll GameMain+4653793 (0x00000000,0x00000000,0x00000000,0x00000000)


----------------------------------------
Loaded Modules
----------------------------------------

0x00400000 - 0x0047D000 c:\program files\warcraft iii\war3.exe
0x01A70000 - 0x01A77000 C:\Users\SilverLeaf\AppData\Local\FLVService\lib\FLVSrvLib.dll
0x01AA0000 - 0x01AA6000 C:\Windows\system32\DCIMAN32.dll
0x01E80000 - 0x01EA1000 C:\Program Files\WIDCOMM\Bluetooth Software\btkeyind.dll
0x01EB0000 - 0x01ECA000 C:\Program Files\Dell\QuickSet\dadkeyb.dll
0x02C20000 - 0x031C7000 C:\Windows\system32\nvd3dum.dll
0x10000000 - 0x1000D000 C:\Program Files\FlashGet\fgmgr.dll
0x15000000 - 0x15061000 c:\program files\warcraft iii\Storm.dll
0x16080000 - 0x160A5000 C:\Program Files\Bonjour\mdnsNSP.dll
0x21100000 - 0x2115F000 c:\program files\warcraft iii\mss32.dll
0x22600000 - 0x22616000 c:\program files\warcraft iii\redist\miles\Mssfast.m3d
0x22700000 - 0x22717000 c:\program files\warcraft iii\redist\miles\Mssdolby.m3d
0x22C00000 - 0x22C18000 c:\program files\warcraft iii\redist\miles\Msseax2.m3d
0x24600000 - 0x24611000 c:\program files\warcraft iii\redist\miles\Reverb3.flt
0x26F00000 - 0x26F2A000 c:\program files\warcraft iii\redist\miles\Mp3dec.asi
0x60000000 - 0x6005D000 c:\program files\warcraft iii\ijl15.dll
0x691F0000 - 0x692F6000 C:\Windows\system32\d3d8.dll
0x6B290000 - 0x6B35B000 C:\Windows\system32\OPENGL32.dll
0x6D590000 - 0x6D675000 C:\Windows\system32\DDRAW.dll
0x6E6D0000 - 0x6E6F6000 C:\Windows\system32\dssenh.dll
0x6F000000 - 0x6FBD4000 c:\program files\warcraft iii\Game.dll
0x71560000 - 0x71566000 C:\Windows\system32\d3d8thk.dll
0x71650000 - 0x716C0000 C:\Windows\system32\DSOUND.DLL
0x718D0000 - 0x718D6000 C:\Windows\system32\SensApi.dll
0x71BC0000 - 0x71BE3000 C:\Windows\system32\GLU32.dll
0x71C70000 - 0x71D4C000 C:\Windows\system32\dbghelp.dll
0x71D60000 - 0x71D72000 C:\Windows\system32\pnrpnsp.dll
0x71DF0000 - 0x71DF8000 C:\Windows\System32\winrnr.dll
0x71E00000 - 0x71E0C000 C:\Windows\system32\wshbth.dll
0x71E10000 - 0x71E1F000 C:\Windows\system32\napinsp.dll
0x72520000 - 0x72527000 C:\Windows\system32\WSOCK32.dll
0x72540000 - 0x72546000 C:\Windows\system32\rasadhlp.dll
0x72B40000 - 0x72BA6000 C:\Windows\system32\audioeng.dll
0x72DA0000 - 0x72DC1000 C:\Windows\system32\AUDIOSES.DLL
0x72EB0000 - 0x72EBC000 C:\Windows\system32\dwmapi.dll
0x72F50000 - 0x72F6B000 C:\Windows\system32\cryptnet.dll
0x73180000 - 0x731B2000 C:\Windows\system32\WINMM.dll
0x73D80000 - 0x73E05000 C:\Windows\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_5.82.6001.18000_none_886786f450a74a05\COMCTL32.dll
0x73EF0000 - 0x73F29000 C:\Windows\system32\OLEACC.dll
0x73F30000 - 0x73F6F000 C:\Windows\system32\uxtheme.dll
0x74980000 - 0x749A8000 C:\Windows\System32\MMDevApi.dll
0x74A50000 - 0x74A65000 C:\Windows\system32\Cabinet.dll
0x74A70000 - 0x74A9D000 C:\Windows\system32\WINTRUST.dll
0x74B40000 - 0x74B4F000 C:\Windows\system32\NLAapi.dll
0x74DB0000 - 0x74F4E000 C:\Windows\WinSxS\x86_microsoft.windows.common-controls_6595b64144ccf1df_6.0.6002.18005_none_5cb72f96088b0de0\comctl32.dll
0x74F50000 - 0x74F55000 C:\Windows\System32\wshtcpip.dll
0x74F60000 - 0x74F67000 C:\Windows\system32\AVRT.dll
0x74F70000 - 0x74F78000 C:\Windows\system32\VERSION.dll
0x74F80000 - 0x74F9A000 C:\Windows\system32\POWRPROF.dll
0x74FA0000 - 0x74FC1000 C:\Windows\system32\NTMARTA.DLL
0x75050000 - 0x750EB000 C:\Windows\WinSxS\x86_microsoft.vc80.crt_1fc8b3b9a1e18e3b_8.0.50727.4053_none_d08d7da0442a985d\MSVCR 80.dll
0x75120000 - 0x75135000 C:\Windows\system32\GPAPI.dll
0x75140000 - 0x7517B000 C:\Windows\system32\rsaenh.dll
0x751B0000 - 0x751F5000 C:\Windows\system32\schannel.dll
0x753C0000 - 0x753FB000 C:\Windows\system32\mswsock.dll
0x75420000 - 0x75425000 C:\Windows\System32\wship6.dll
0x754D0000 - 0x754D7000 C:\Windows\system32\credssp.dll
0x754E0000 - 0x75525000 C:\Windows\system32\BCRYPT.dll
0x75530000 - 0x75565000 C:\Windows\system32\ncrypt.dll
0x75580000 - 0x755A2000 C:\Windows\system32\dhcpcsvc6.DLL
0x755B0000 - 0x755B7000 C:\Windows\system32\WINNSI.DLL
0x755C0000 - 0x755F5000 C:\Windows\system32\dhcpcsvc.DLL
0x75600000 - 0x75619000 C:\Windows\system32\IPHLPAPI.DLL
0x75660000 - 0x7569A000 C:\Windows\system32\slc.dll
0x756A0000 - 0x75792000 C:\Windows\system32\CRYPT32.dll
0x75800000 - 0x75812000 C:\Windows\system32\MSASN1.dll
0x75820000 - 0x75831000 C:\Windows\system32\SAMLIB.dll
0x75840000 - 0x7586C000 C:\Windows\system32\DNSAPI.dll
0x75A60000 - 0x75AD6000 C:\Windows\system32\NETAPI32.dll
0x75C00000 - 0x75C14000 C:\Windows\system32\Secur32.dll
0x75C20000 - 0x75C3E000 C:\Windows\system32\USERENV.dll
0x75CD0000 - 0x75CD7000 C:\Windows\system32\PSAPI.DLL
0x75D70000 - 0x75F58000 C:\Windows\system32\iertutil.dll
0x75F60000 - 0x760A5000 C:\Windows\system32\ole32.dll
0x760B0000 - 0x76176000 C:\Windows\system32\ADVAPI32.dll
0x76180000 - 0x7622A000 C:\Windows\system32\msvcrt.dll
0x76230000 - 0x762CD000 C:\Windows\system32\USER32.dll
0x762D0000 - 0x7645A000 C:\Windows\system32\SETUPAPI.dll
0x76460000 - 0x7653C000 C:\Windows\system32\kernel32.dll
0x76540000 - 0x765C4000 C:\Windows\system32\CLBCatQ.DLL
0x765D0000 - 0x76629000 C:\Windows\system32\SHLWAPI.dll
0x76630000 - 0x76762000 C:\Windows\system32\urlmon.dll
0x76770000 - 0x76856000 C:\Windows\system32\WININET.dll
0x76860000 - 0x768A9000 C:\Windows\system32\WLDAP32.dll
0x768B0000 - 0x7693D000 C:\Windows\system32\OLEAUT32.dll
0x76940000 - 0x76969000 C:\Windows\system32\imagehlp.dll
0x76970000 - 0x76976000 C:\Windows\system32\NSI.dll
0x76980000 - 0x769F3000 C:\Windows\system32\comdlg32.dll
0x76A00000 - 0x76AC3000 C:\Windows\system32\RPCRT4.dll
0x76AD0000 - 0x76AD3000 C:\Windows\system32\Normaliz.dll
0x76AE0000 - 0x76AFE000 C:\Windows\system32\IMM32.dll
0x76B00000 - 0x77610000 C:\Windows\system32\SHELL32.dll
0x77610000 - 0x7763D000 C:\Windows\system32\WS2_32.dll
0x77640000 - 0x776BD000 C:\Windows\system32\USP10.dll
0x776C0000 - 0x777E7000 C:\Windows\system32\ntdll.dll
0x777F0000 - 0x777F9000 C:\Windows\system32\LPK.DLL
0x77800000 - 0x778C8000 C:\Windows\system32\MSCTF.dll
0x778D0000 - 0x7791B000 C:\Windows\system32\GDI32.dll


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

Code: 16 bytes starting at (EIP = 6F479B51)

6F479B51: 8B 51 0C 8B 49 08 56 57 E8 02 6C BC FF 8B 7C 24 .Q..I.VW..l...|$


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

* = addr ** *
0012EE50: 00 00 00 00 00 00 00 00 3F 3F 04 6F 64 EE 12 00 ........??.od...
0012EE60: 00 00 00 00 00 00 61 44 40 C1 20 6F 01 00 00 00 ......aD@. o....
0012EE70: 01 00 00 00 00 00 00 00 08 11 CD 04 6C 1E F3 14 ............l...
0012EE80: 00 00 00 00 08 11 CD 04 00 00 00 00 03 00 00 00 ................
0012EE90: 06 00 00 00 DB C1 20 6F 20 EF 12 00 FF FF FF FF ...... o .......
0012EEA0: 6C 1E F3 14 74 EF 12 00 0B 74 3C 6F 02 00 00 00 l...t....t<o....
0012EEB0: 0C 5A 94 6F 58 DC 45 6F 43 03 10 00 02 00 00 00 .Z.oX.EoC.......
0012EEC0: C6 F4 44 6F F8 FB 29 17 02 00 00 00 3C DC 45 6F ..Do..).....<.Eo
0012EED0: F8 FB 29 17 88 00 E6 04 08 00 00 00 00 00 00 00 ..).............
0012EEE0: 00 00 00 00 74 1C 09 0E 00 00 00 00 77 91 4E 6F ....t.......w.No
0012EEF0: 76 C2 45 6F 88 00 E6 04 28 EF 12 00 33 AB 45 6F v.Eo....(...3.Eo
0012EF00: 5C D5 E3 40 00 00 00 00 28 EF 12 00 50 EF 12 00 \..@....(...P...
0012EF10: 08 0E 84 6F 00 00 00 00 43 03 10 00 02 00 00 00 ...o....C.......
0012EF20: 58 F4 29 17 56 C0 5C B1 0C 00 00 00 58 F4 29 17 X.).V.\.....X.).
0012EF30: 97 3C 03 15 D0 D5 2B 17 58 F4 29 17 FF FF FF 7F .<....+.X.).....
0012EF40: A0 00 88 05 8C 6A 8E 02 A4 D8 44 6F D0 D5 2B 17 .....j....Do..+.
0012EF50: 58 F4 29 17 08 00 00 00 18 EF 12 00 24 69 8E 02 X.).........$i..
0012EF60: 10 08 7A 0D 04 00 00 00 01 00 00 00 B0 73 3C 6F ..z..........s<o
0012EF70: 2C D5 E3 40 04 00 00 00 2C FA 45 6F F8 FB 29 17 ,..@....,.Eo..).
0012EF80: DC D5 E3 40 00 00 00 00 88 00 E6 04 00 00 00 00 ...@............
0012EF90: AC 00 E6 04 00 00 70 0D 00 04 00 00 01 00 00 00 ......p.........
0012EFA0: 08 00 00 00 56 00 00 00 00 00 00 00 00 00 00 00 ....V...........
0012EFB0: 00 00 00 00 48 5D 02 15 00 04 00 00 E2 5D 02 15 ....H].......]..
0012EFC0: 90 1C 70 0D 76 C2 45 6F 88 00 E6 04 FC EF 12 00 ..p.v.Eo........
0012EFD0: 33 AB 45 6F 80 D5 E3 40 00 00 00 00 FC EF 12 00 3.Eo...@........
0012EFE0: 24 F0 12 00 08 0E 84 6F 00 00 00 00 C2 F2 45 6F $......o......Eo
0012EFF0: AC D5 E3 40 00 00 00 00 00 00 00 00 00 00 00 00 ...@............
0012F000: 00 00 00 00 00 00 00 00 00 00 00 00 01 00 00 00 ................
0012F010: 01 00 00 00 2E 47 01 00 00 00 00 00 48 F1 12 00 .....G......H...
0012F020: 88 10 84 6F FF FF FF FF 93 06 46 6F 98 1C 6F 0E ...o......Fo..o.
0012F030: D4 F0 12 00 E0 93 04 00 00 00 00 00 19 00 00 00 ................
0012F040: 88 00 E6 04 CC 00 E8 08 D4 F0 12 00 84 C1 44 6F ..............Do
0012F050: 98 1C 6F 0E 00 00 00 00 D4 F0 12 00 E0 93 04 00 ..o.............
0012F060: 00 00 00 00 00 00 00 00 C0 00 E8 08 CC 6E 34 08 .............n4.
0012F070: 16 8E 3A 6F 00 00 00 00 D4 F0 12 00 E0 93 04 00 ..:eek:............
0012F080: 00 00 00 00 00 00 00 00 00 00 00 00 4C 04 E9 08 ............L...
0012F090: 00 00 00 00 C4 02 ED 08 44 B3 3B 6F 19 00 00 00 ........D.;o....
0012F0A0: D4 F0 12 00 CC 6E 34 08 00 00 00 00 00 00 00 00 .....n4.........
0012F0B0: 7C 6E 34 08 15 63 44 6F D4 F0 12 00 CC 6E 34 08 |n4..cDo.....n4.
0012F0C0: 00 00 00 00 00 00 00 00 7C 6E 34 08 CC 6E 34 08 ........|n4..n4.
0012F0D0: 7C 6E 34 08 00 00 00 00 B6 7E 44 6F CC 6E 34 08 |n4......~Do.n4.
0012F0E0: 00 00 00 00 7C 6E 34 08 7C 6E 34 08 C0 09 0B 15 ....|n4.|n4.....
0012F0F0: A0 6E 34 08 00 00 00 00 C0 09 0B 15 A0 6E 34 08 .n4..........n4.
0012F100: 7C 6E 34 08 27 91 CB F7 F3 5A 44 6F 32 5B 44 6F |n4.'....ZDo2[Do
0012F110: 00 00 00 00 7C 6E 34 08 A0 6E 34 08 C0 09 0B 15 ....|n4..n4.....
0012F120: 32 8A 44 6F 70 CB E3 40 FF FF FF FF 98 07 EC 08 2.Dop..@........
0012F130: 2C 41 34 08 88 00 4A 05 5C 07 EC 08 2C 41 34 08 ,A4...J.\...,A4.
0012F140: 88 00 4A 05 7C 6E 34 08 A8 F1 12 00 31 06 84 6F ..J.|n4.....1..o
0012F150: FF FF FF FF 14 8D 44 6F 98 07 EC 08 63 F8 13 F7 ......Do....c...
0012F160: 00 00 00 00 30 CB E3 40 5C 07 EC 08 5C 07 EC 08 ....0..@\...\...
0012F170: 24 01 F3 08 7C 6E 34 08 78 65 74 2B 6C 67 61 2B $...|n4.xet+lga+
0012F180: 78 65 74 2B 00 00 00 00 9C E2 30 08 64 E0 AC 6F xet+......0.d..o
0012F190: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
0012F1A0: FF FF FF FF FF FF FF FF 14 F2 12 00 88 06 84 6F ...............o
0012F1B0: 00 00 00 00 7B 8D 44 6F 00 00 00 00 B4 27 33 08 ....{.Do.....'3.
0012F1C0: E6 8E 44 6F 54 77 E0 15 54 77 E0 15 C4 4C 9C 07 ..DoTw..Tw...L..
0012F1D0: BC 16 00 16 ED AD 62 6F 90 00 E1 04 B8 CB E3 40 ......bo.......@
0012F1E0: 24 01 F3 08 2C 41 34 08 90 00 E1 04 2C 41 34 08 $...,A4.....,A4.
0012F1F0: 00 00 00 00 02 00 00 00 BC 16 00 16 04 F2 12 00 ................
0012F200: 54 77 E0 15 54 77 E0 15 5E 00 00 00 00 00 00 00 Tw..Tw..^.......
0012F210: 90 01 00 00 A8 F2 12 00 48 32 85 6F 00 00 00 00 ........H2.o....
0012F220: C0 AE 62 6F 14 02 08 00 90 00 E1 04 24 01 F3 08 ..bo........$...
0012F230: C4 1F 96 6F 91 A1 62 6F 14 02 08 00 90 00 E1 04 ...o..bo........
0012F240: 8C 77 33 08 6D 7D 43 6F 90 00 E1 04 9C D1 FF 15 .w3.m}Co........
0012F250: 24 AE E0 15 24 AE E0 15 FC 08 9C 07 B4 27 33 08 $...$........'3.

----------------------END
Well I'm not sure about morph abilities, I've removed all custom stuff from the map. The morph abilities was already in the map, left by the generations of mappers before me. This project kinda goes wayyyy back.
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,201
This log is of no use to us as we did not make the game nor is anyone here experienced enough with machine code to be able to understand the data provided.

The only way to find the crash is to remove stuff until it no longer crashes.

Make sure it crashes on other PCs other than yours as it could be stability linked to your computer.
 
Level 10
Joined
Jun 7, 2008
Messages
420
Hmm crash seems to happen more when heroes die, but only slightly so. Sometimes crash can happen at very beginning, sometimes later. Its based off a very old map, think along the lines of 2-3 years. Could that be a problem? If so I'll start copying all the triggers over to a new map. Probably will result in the same thing and this will take insanely long, so will keep that as a last resort.
 
Hmm crash seems to happen more when heroes die, but only slightly so. Sometimes crash can happen at very beginning, sometimes later. Its based off a very old map, think along the lines of 2-3 years. Could that be a problem? If so I'll start copying all the triggers over to a new map. Probably will result in the same thing and this will take insanely long, so will keep that as a last resort.

The age of the map doesnt cause errors. If its the same hero that causes error it could be the units data or model.
 
Level 10
Joined
Jun 7, 2008
Messages
420
Still having problem

Allright thanks, but your fix didnt work. Same crash problem. I'm mailing blizz support but doubt they will be able to do much. Anyone can fix or look at it ir please?
Also, will having blink, searing arrows etc at 0 cooldown cause anything funny?

EDIT: AS with version 2.5, the crash is FIXED. YAY!!! At long last.
Further tests are needed to confirm this, and crashes may occur in extremely rare circumstances, but no more likely than the average map now.
W00t!! over 650 hits, please vote to get it approved.
This is far from the final end result and I will continue to improve on it. Finding me a development team for future mapping and this map at the moment.

The leak was caused by checking for foodlimit before spawns. Removed the condition 'if player food less than 120' and everythings working like a charm.
Attachment replaced with stable 2.6. Will work on improving the actual gameplay now.
 

Attachments

  • LOTR Helms Deep Hero Defense v2.6.w3x
    191 KB · Views: 40
Last edited:
Level 3
Joined
Jan 7, 2008
Messages
45
Actually, another thing i found being able to force this bug, is when you try to remove a skill from the unit, that it is currently using.
e.g. remove avatar, while it is on for the unit.
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,201
Wow I would not imagine that causing a fatal error. . .
You sure it is not the code you are passing the 0 to causing it?

As generally all units should have that value allocated when created but it should be 0 (as I do not imagine blizzard would have made a table system just for a value like that when it could have added an extra 4 bytes per unit).
 
Level 14
Joined
Aug 31, 2009
Messages
775
Basically I had a set of triggers assigning custom values to all units on the map, equal to the player number of the owner of the unit.
The only unit I forgot to add it to was a summoned unit.

The Custom Value was used to keep track of the original owner of the unit, as all standard units created by a player are assigned to a computer.
When units which you originally created (now owned by computer) killed an enemy unit, a trigger would check the custom value of the killer, and award that player number a gold bounty.

Thing is, the only unit I forgot to assign this custom value was one particular summoned unit. The moment it killed something or died (and I saw it happen) there was an immediate crash.

... in retrospect, it was probably because it was assigning "Player 0" gold, who doesn't exist.

Hm, yeah.
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,201
Logically Player(-1) will crash the game... Just like Player(16) will (as they probably return null if they are not the direct cause which logically will error in some natives).

In conclusion custom values can not crash the game, invalid integer parameters can however.
 
Level 10
Joined
Jun 7, 2008
Messages
420
Is there any tool that can identify potential problems and highlight them? I've stripped the map down to its bare bones right now, and intend to add in those units/abilities/features slowly testing ea step. Would be much easier if there was a tool to just check everything though.
 
Level 14
Joined
Aug 31, 2009
Messages
775
As far as I know there's only a tool for memory leak detection (search Vexorian's Leak Detector or something like that), but as for fatal errors, it's a case of reading through every line and being extremely careful as to how the logic flows in the triggers and avoiding any mishaps (like mine).
 
Status
Not open for further replies.
Top