![]() |
|
|
#1 |
|
Архивный участник
Join Date: Oct 2005
Posts: 175
|
Hello,
i would like to learn how to compil with NASC, i copied server files in "C:\L2\L2TOOLS16\NASC\" : item_pch.txt skill_pch2.txt skill_pch.txt category_pch.txt manual_pch.txt npc_pch2.txt npc_pch.txt quest_pch.txt item_pch2.txt skill_pch3.txt i created a simple txt file: source.txt Code:
class default_npc
{
parameter:
int DesirePqSize = 50;
int FavorListSize = 30;
//???? ?? ???
float IdleDesire_DecayRatio = 0.0;
float MoveAround_DecayRatio = 0.0;
float DoNothing_DecayRatio = 0.0;
float Attack_DecayRatio = 0.0;
float Chase_DecayRatio = 0.0;
float Flee_DecayRatio = 0.0;
float GetItem_DecayRatio = 0.0;
float Follow_DecayRatio = 0.0;
float Decaying_DecayRatio = 0.0;
float MoveToWayPoint_DecayRatio = 0.0;
float UseSkill_DecayRatio = 0.0;
float MoveTo_DecayRatio = 0.0;
float EffectAction_DecayRatio = 0.0;
//????? ????
//?????? ????? ??? ????? ?? ? ???? ???????.
float IdleDesire_BoostValue = 0.0;
float MoveAround_BoostValue = 0.0;
float DoNothing_BoostValue = 0.0;
float Attack_BoostValue = 0.0;
float Chase_BoostValue = 0.0;
float Flee_BoostValue = 0.0;
float GetItem_BoostValue = 0.0;
float Follow_BoostValue = 0.0;
float Decaying_BoostValue = 0.0;
float MoveToWayPoint_BoostValue = 0.0;
float UseSkill_BoostValue = 0.0;
float MoveTo_BoostValue = 0.0;
float EffectAction_BoostValue = 0.0;
handler:
EventHandler NO_DESIRE()
{
}
EventHandler TALK_SELECTED(talker)
{
ShowPage(talker, "noquest.htm");
}
}
Code:
nasc source.txt Code:
[(4076) 2006/01/31 20:35:02]: ======================= an Access Violation in module ntdll.dll at 001b:77f3200b. Exception handler called in the Lineage Server. start at 2006/1/31 20:35:00 Error occurred at 1/31/2006 20:35:04. C:\L2\L2TOOLS16\NASC\nasc.exe, run by Administrateur. 2 processor(s), type 586. 2047 MBytes physical memory. Read from location 00000034 caused an access violation. Registers: EAX=00000020 CS=001b EIP=77f3200b EFLGS=00010202 EBX=00503ef0 SS=0023 ESP=0012f5e8 EBP=0012f620 ECX=7fffe000 DS=0023 ESI=00000000 FS=003b EDX=00000020 ES=0023 EDI=00000001 GS=0000 Bytes at CS:EIP: 83 7a 14 00 75 40 90 90 90 90 90 f0 ff 42 04 75 Stack dump: 0012f5e8: 004a600c 00000020 004a1a1c 00000000 00000001 00000000 00503ef0 0012f8a4 0012f608: 0012f5f8 0012f210 0012f8a4 004b2760 004bfe58 ffffffff 00000000 0040b9b1 0012f628: 00000000 00500944 00503ee4 0012f9b0 0012fa40 0012ffc0 00000000 00000000 0012f648: 00503f48 00000020 00000000 afc84560 0004077d 00000000 00000000 00000000 0012f668: 00000000 00000000 0012f740 00000000 00000000 09a11578 77f367e1 00141378 0012f688: 77f367f9 00000008 77f366e5 00000000 059c0178 00000000 00000023 059c0178 0012f6a8: 00000002 00000000 095a0000 00000005 00160014 0012fc9c 0040002a 0012f47c 0012f6c8: 00000000 0000021a 00000000 09a113e8 0012f47c 00000000 001420a0 00000228 0012f6e8: 059c0178 059c0520 09a10c60 77f35a34 77f7ae70 ffffffff 77f3b052 77f3b1c6 0012f708: 00000001 059c0178 0012f7a4 09a11178 00140000 0012fc9c 00000045 059c0178 Call Stack Information 77f3200b 0012f620 RtlEnterCriticalSection+b 0001:0000100b C:\WINDOWS\system32\ntdll.dll Params: 00000000 00500944 00503ee4 0012f9b0 [ntdll.dll] Bytes at CS:EIP: 83 7a 14 00 75 40 90 90 90 90 90 f0 ff 42 04 75 Module list: names, addresses, sizes, time stamps and file times: C:\WINDOWS\system32\ODBC32.dll, loaded at 0x00320000 - 237568 bytes - 3e801af5 - file date is 4/24/2003 01:00:00 C:\L2\L2TOOLS16\NASC\nasc.exe, loaded at 0x00400000 - 1544192 bytes - 3f70fee0 - file date is 9/24/2003 10:18:00 C:\WINDOWS\system32\odbcint.dll, loaded at 0x1f840000 - 98304 bytes - 3e557524 - file date is 4/24/2003 01:00:00 C:\WINDOWS\system32\odbcbcp.dll, loaded at 0x1f9b0000 - 24576 bytes - 3fda51ba - file date is 12/12/2003 15:40:28 C:\WINDOWS\system32\dbghelp.dll, loaded at 0x6d850000 - 634880 bytes - 3e83854e - file date is 4/24/2003 01:00:00 C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.100.0_x-ww_8417450B\comctl32.dll, loaded at 0x70ad0000 - 928768 bytes - 3e8024c5 - file date is 3/25/2003 10:43:36 C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_5.82.0.0_x-ww_8A69BA05\COMCTL32.dll, loaded at 0x70bc0000 - 574464 bytes - 3e8024c5 - file date is 3/25/2003 10:43:36 C:\WINDOWS\system32\WS2HELP.dll, loaded at 0x71ac0000 - 19968 bytes - 3e83853a - file date is 4/24/2003 01:00:00 C:\WINDOWS\system32\WS2_32.dll, loaded at 0x71ad0000 - 89600 bytes - 3e83853a - file date is 4/24/2003 01:00:00 C:\WINDOWS\system32\pdh.dll, loaded at 0x72470000 - 284160 bytes - 3e838537 - file date is 4/24/2003 01:00:00 C:\WINDOWS\system32\MSASN1.dll, loaded at 0x76140000 - 60928 bytes - 40565fdd - file date is 3/16/2004 03:01:06 C:\WINDOWS\system32\CRYPT32.dll, loaded at 0x76160000 - 619520 bytes - 3e83852b - file date is 4/24/2003 01:00:00 C:\WINDOWS\system32\comdlg32.dll, loaded at 0x76260000 - 271872 bytes - 3e83852b - file date is 4/24/2003 01:00:00 C:\WINDOWS\system32\PSAPI.DLL, loaded at 0x76b20000 - 22016 bytes - 3e83852a - file date is 4/24/2003 01:00:00 C:\WINDOWS\system32\IMAGEHLP.dll, loaded at 0x76bc0000 - 145920 bytes - 3e83852a - file date is 4/24/2003 01:00:00 C:\WINDOWS\system32\Secur32.dll, loaded at 0x76f00000 - 64512 bytes - 3e838529 - file date is 4/24/2003 01:00:00 C:\WINDOWS\system32\OLEAUT32.dll, loaded at 0x770a0000 - 497664 bytes - 3e838529 - file date is 4/24/2003 01:00:00 C:\WINDOWS\system32\ole32.dll, loaded at 0x77120000 - 1192448 bytes - 42df1285 - file date is 7/21/2005 04:12:06 C:\WINDOWS\system32\SHLWAPI.dll, loaded at 0x77250000 - 288256 bytes - 436f2ab8 - file date is 11/7/2005 11:21:44 C:\WINDOWS\system32\VERSION.dll, loaded at 0x77b60000 - 17408 bytes - 3e838528 - file date is 4/24/2003 01:00:00 C:\WINDOWS\system32\msvcrt.dll, loaded at 0x77b70000 - 327168 bytes - 3e838528 - file date is 4/24/2003 01:00:00 C:\WINDOWS\system32\GDI32.dll, loaded at 0x77bd0000 - 271872 bytes - 43b6084a - file date is 12/31/2005 05:25:46 C:\WINDOWS\system32\RPCRT4.dll, loaded at 0x77c20000 - 660992 bytes - 40567171 - file date is 3/16/2004 04:16:10 C:\WINDOWS\system32\USER32.dll, loaded at 0x77cd0000 - 578048 bytes - 41d471bd - file date is 12/30/2004 22:23:10 C:\WINDOWS\system32\ADVAPI32.dll, loaded at 0x77d70000 - 646144 bytes - 3e838527 - file date is 4/24/2003 01:00:00 C:\WINDOWS\system32\kernel32.dll, loaded at 0x77e20000 - 1055744 bytes - 3e838527 - file date is 4/24/2003 01:00:00 C:\WINDOWS\system32\ntdll.dll, loaded at 0x77f30000 - 766464 bytes - 3e838527 - file date is 4/24/2003 01:00:00 C:\WINDOWS\system32\SHELL32.dll, loaded at 0x7cde0000 - 8228352 bytes - 43343502 - file date is 9/23/2005 18:02:00 GuardInfo : Listen Thread[11] (good): Lock Stack : GuardInfo end Guard History: ----------------------------------------------------------------------------------------- Listen Thread[11] (good): |
|
|
|
|