Originally posted by [b]Orcao[/b]
http://www.eathena.ws/board/index.php?autocom=bugtracker&showbug=2361
Edit: Fixes saved in Duplicate FixesNote: From what I understand, the scripts section is for problems with scripts, not for crashes/problems related to script commands...
Duplicating a non script type npc will cause a crash when interacted with.
To recreate the crash, load this:
CODE
prontera,152,170,5 shop shoptest::dupshop 86,1950:-1,1952:-1,1954:-1,1956:-1,1958:-1,1960:-1,1801:-1,1803:-1,1805:-1,1811:-1,1809:-1,1901:-1,1903:-1,1905:-1,1909:-1,1911:-1,1907:-1,1550:-1,1551:-1,1552:-1,1553:-1,1554:-1,1555:-1,1556:-1,1557:-1,1558:-1,2341:-1,2343:-1
prontera,154,170,4 duplicate(dupshop) dupshop1 859
prontera,156,170,4 duplicate(dupshop) dupshop2 859
prontera,158,170,4 duplicate(dupshop) dupshop3 859
prontera,152,165,0 warp prottest::dupwarp 2,2,prontera,156,170
prontera,154,165,4 duplicate(dupwarp) dupwarp1 859,2,2
prontera,156,165,4 duplicate(dupwarp) dupwarp2 859,2,2
prontera,158,165,4 duplicate(dupwarp) dupwarp3 859,2,2
Interact with any of the duplicates, and the map server will crash.
Related Stackdump:
CODE
-------------------
Error occured on Friday, October 17, 2008 at 12:09:32.
EADirectory\map-server_sql.exe caused an Access Violation at location 0063fdf4 in module EADirectory\map-server_sql.exe Reading from location 20010000.
Registers:
eax=030d9470 ebx=7ffdf000 ecx=00000000 edx=20010000 esi=0012fd6c edi=0012f75c
eip=0063fdf4 esp=0012f674 ebp=0012f75c iopl=0 nv up ei pl nz na pe nc
cs=001b ss=0023 ds=0023 es=0023 fs=003b gs=0000 efl=00010202
Call stack:
0063FDF4 EADirectory\map-server_sql.exe:0063FDF4 get_com EADirectory\src\map\script.c:2548
00641878 EADirectory\map-server_sql.exe:00641878 run_script_main EADirectory\src\map\script.c:3049
00641400 EADirectory\map-server_sql.exe:00641400 run_script EADirectory\src\map\script.c:2949
00602D97 EADirectory\map-server_sql.exe:00602D97 npc_click EADirectory\src\map\npc.c:968
00601EC8 EADirectory\map-server_sql.exe:00601EC8 npc_touch_areanpc EADirectory\src\map\npc.c:771
006BB46B EADirectory\map-server_sql.exe:006BB46B unit_walktoxy_timer EADirectory\src\map\unit.c:167
005334F7 EADirectory\map-server_sql.exe:005334F7 do_timer EADirectory\src\common\timer.c:390
0051AB3E EADirectory\map-server_sql.exe:0051AB3E main EADirectory\src\common\core.c:253
006D8423 EADirectory\map-server_sql.exe:006D8423 __tmainCRTStartup f:\sp\vctools\crt_bld\self_x86\crt\src\crt0.c:327
006D81DD EADirectory\map-server_sql.exe:006D81DD mainCRTStartup f:\sp\vctools\crt_bld\self_x86\crt\src\crt0.c:196
7C817067 C:\WINDOWS\system32\kernel32.dll:7C817067 RegisterWaitForInputIdle
Edit: Duplicated shops and warps are not removed when you unload the original, I know where to change this, I just don't have time to look at it right nowEdit2: See reply for a full fix :x
This post has been edited by Orcao: Nov 24 2008, 03:46 PM