Post Pacific

Post Pacific (https://postpacific.loc-online.com/index.php)
-   Темы без сохранившегося раздела (https://postpacific.loc-online.com/forumdisplay.php?f=10001)
-   -   [Share] NASC.EXE C1-L2NPC compatible (https://postpacific.loc-online.com/showthread.php?t=3509)

kvoxi 28.02.2006 20:50

[Share] NASC.EXE C1-L2NPC compatible
 
This is modified NASC - L2NPC compatible
Try it.
More powerful version is in progress. It wil be my own compiler.
You can donate my work, if you like this nasc-version.

archy 28.02.2006 20:58

nice.. :)

johnsmith2 28.02.2006 21:05

great share
250 donate from me

toolpunk 28.02.2006 21:16

indeed :D
250 from me, as well^^

archy 28.02.2006 21:27

251 from me (yeah i just had to top the others :P)

Kirikups 01.03.2006 10:24

no more php ai fix to use ?

OnlyOne 01.03.2006 11:16

Nice! Keep it going :P

Kirikups 01.03.2006 11:34

i have a problem with floats:

f0 = 1;
say("Debug : f0 = " + f0): -> return Debug : f0 = 0.000000 :shock:

and

say("Debug : ms.sm.lev = " + myself.sm.level); -> return Debug : ms.sm.lev = 40 :)
say("Debug : sp.lev = " + speller.level); -> return Debug : sp.lev = 80 :)

f0 = (myself.sm.level / speller.level);
say("Debug : f0 = " + f0); -> return Debug : f0 = 0.000000 :shock:

Regards

kvoxi 02.03.2006 09:54

Quote:

Originally Posted by Kirikups
i have a problem with floats:
f0 = 1;
say("Debug : f0 = " + f0): -> return Debug : f0 = 0.000000 :shock:
Regards

1) Try to compile ur code with original NASC.exe and test results.
2) Try this:
Say("Debug: max_hp="+myself.sm.max_hp);

Difference between f0 and myself.sm.max_hp is:
f0 - type float
max_hp - type double

Kirikups 02.03.2006 10:41

okaydokey dok, ty for your answer :)

kvoxi 04.03.2006 15:51

Quote:

Originally Posted by Kirikups
okaydokey dok, ty for your answer :)

nop

nucer 08.03.2006 13:09

WOW!! Will test!! :) :) Thnks!!

filrip 08.03.2006 13:24

good job, and thx

djedai 08.03.2006 19:37

Hi All. i have a questions.
How i can decompiled AI.obj

Truffe 08.03.2006 19:41

By searching in this forum (since someone planned to write a decompiler)...

Sauron 10.03.2006 12:36

wow nice... 2k donated

Xellos 18.03.2006 17:02

found two small things that are still wrong/missing,
but good work kvoxi, your NASC is a great help :)

p_state - wrong offset
original:[php:1:2f273a4528].
push_event // myself
push_const 28
add
fetch_i // p_state
push_const 2308
add
fetch_i
.[/php:1:2f273a4528]
kvoxi mod:[php:1:2f273a4528].
push_event // myself
push_const 28
add
fetch_i // p_state
push_const 2496
add
fetch_i
.[/php:1:2f273a4528]

attack_tick - missing offset
original:[php:1:2f273a4528].
push_event // myself
push_const 28
add
fetch_i // attack_tick
push_const 2356
add
push_reg_sp
fetch_i
push_const 200
assign
shift_sp -1
.[/php:1:2f273a4528](the sample means: "myself.attack_tick = 200;" found in one of the gludio agit AIs)

kvoxi 18.03.2006 18:35

Thx Xellos
But:
1) p_state(offset 2308) and p_state(offset 2496) is the same variables
2) sorry, but not all variables is exists in public version of nasc
i will change p_state from 2496 to 2308
Thx Xellos for criticism

Xellos 18.03.2006 18:56

are u able to add missing things?

the decompiler shows me sometimes new things
and it would be nice to use them with NASC

btw - that's no criticism, u did a great job and we are getting close to a real C1 version - thx

kvoxi 18.03.2006 18:58

Quote:

Originally Posted by Xellos
are u able to add missing things?

the decompiler shows me sometimes new things
and it would be nice to use them with NASC

btw - that's no criticism, u did a great job and we are getting close to a real C1 version - thx

already added/fixed :)

Sauron 19.03.2006 04:59

Quote:

Originally Posted by Xellos
are u able to add missing things?

the decompiler shows me sometimes new things
and it would be nice to use them with NASC

btw - that's no criticism, u did a great job and we are getting close to a real C1 version - thx

what new things?

Xellos 19.03.2006 15:33

kvoxi, here is another thing to check for u

the commented out lines will crash your NASC mod, because they refer to "level" field of the event container. please check :)
[php:1:70a659aeec].
EventHandler DOOR_HP_LEVEL_INFORMED(talker, level, fhtml0, i0, i1, i2)
{
if (Castle_IsUnderSiege())
ShowPage(talker, fnSiegeStoppedFunction);
else
{
i0 = GetCookie(talker, "gate_price");
i1 = GetCookie(talker, "gate_level");
i2 = GetCookie(talker, "gate_num");
// if (level >= i1)
{
FHTML_SetFileName(fhtml0, fnCurrentDoorLevelHigher);
// FHTML_SetInt(fhtml0, "doorlevel", level);
ShowFHTML(talker, fhtml0);
}
// *snip*... here is the code to lvlup the doors
}
}
.[/php:1:70a659aeec]

and here the code (from ai.obj) that refers to "level"
[php:1:70a659aeec].
push_event // level
push_const 188
add
fetch_i
.[/php:1:70a659aeec]


and another small thing:
the TelePosList in npcserver contains 6 parameters, NASC will only compile with 5 - are u able to extend this list to 6 parameters?


sry to bother u again ;)

Arshen 21.03.2006 14:07

So .. what is this NASC.exe used for?

toolpunk 21.03.2006 14:08

compiling ai code without the later need of ai-fix.php...

Kenster 24.03.2006 07:39

Ok. This program causes my server to crash with bugs. DONT use the download link. Although it is great to use, and it fixes and adds many skills, its totally messed up. Anyone have an updated link maybe?

toolpunk 24.03.2006 12:24

strange...
it works fine for me...

Kenster 24.03.2006 20:19

I will continue to try. But then again, the NASC from l2 Toolz dont work at all.

hamidouch 24.03.2006 20:31

it does, and this one too =), this one put ncsoft one to crappy rank

Mr. Iron 16.05.2006 16:32

Code:

[(3088) 2006/05/17 01:32:44]: =======================
an Access Violation in module ntdll.dll at 001b:7c901010.
Exception handler called in the Lineage Server.
start at 2006/5/17 01:32:44
Error occurred at 5/17/2006 01:32:46.
c:\l2server\NASC\nasc.exe, run by Mr_Iron.
1 processor(s), type 586.
511 MBytes physical memory.
Read from location 00000034 caused an access violation.

Registers:
EAX=00000020 CS=001b EIP=7c901010 EFLGS=00010202
EBX=00503ef0 SS=0023 ESP=0012f5e8 EBP=0012f620
ECX=7ffdd000 DS=0023 ESI=00000000 FS=003b
EDX=00000020 ES=0023 EDI=00000001 GS=0000
Bytes at CS:EIP:
83 7a 14 00 75 4f f0 ff 42 04 75 19 8b 41 24 89
Stack dump:
0012f5e8: 004a600c 00000020 004a1a1c 00000000 00000001 00000000 00503ef0 0012f8a4
0012f608: 0012f5f8 0012f20c 0012f8a4 004b2760 004bfe58 ffffffff 00000000 0040b9b1
0012f628: 00000000 00500944 00503ee4 0012f9b0 0012fa40 0012ffc0 00000000 00000000
0012f648: 00503f48 0000001c 00000000 dc670db0 0000197f 00000000 00000000 00000000
0012f668: 0012f678 096b0b98 7c9105c8 00000000 0012f744 7c910551 094e0000 7c91056d
0012f688: 00000000 7c91043d 00000000 00380178 00000000 00000000 00000000 00000000
0012f6a8: 00000000 00000000 00000000 094e0000 00000000 00000000 00000000 096b7e70
0012f6c8: 00000000 00000000 00380178 00000000 00000000 00000000 00000001 00000008
0012f6e8: 00000000 00380178 00000000 00000000 096b8278 00000000 00000000 000031ea
0012f708: 0012f494 00140000 00380178 7c90ee18 00000008 ffffffff 7c9140bb 0001d68e

Call Stack Information
7c901010  0012f620  RtlEnterCriticalSection+b 0001:00000010 C:\WINDOWS\system32\ntdll.dll
Params: 00000000 00500944 00503ee4 0012f9b0
[ntdll.dll] Bytes at CS:EIP: 83 7a 14 00 75 4f f0 ff 42 04 75 19 8b 41 24 89


        Module list: names, addresses, sizes, time stamps and file times:
c:\l2server\NASC\nasc.exe, loaded at 0x00400000 - 1544192 bytes - 3f70fee0 - file date is 2/28/2006 20:54:36
C:\WINDOWS\system32\odbcint.dll, loaded at 0x20000000 - 98304 bytes - 41228ee3 - file date is 8/18/2004 21:00:00
C:\WINDOWS\system32\DBGHELP.dll, loaded at 0x59c60000 - 640000 bytes - 41228e79 - file date is 8/18/2004 21:00:00
C:\WINDOWS\system32\odbcbcp.dll, loaded at 0x5c050000 - 24576 bytes - 41228edd - file date is 8/18/2004 21:00:00
C:\WINDOWS\system32\COMCTL32.dll, loaded at 0x5d5b0000 - 611328 bytes - 41228e89 - file date is 8/18/2004 21:00:00
C:\WINDOWS\system32\WS2HELP.dll, loaded at 0x71a80000 - 19968 bytes - 41228f19 - file date is 8/18/2004 21:00:00
C:\WINDOWS\system32\WS2_32.dll, loaded at 0x71a90000 - 82944 bytes - 41228f18 - file date is 8/18/2004 21:00:00
C:\WINDOWS\system32\ODBC32.dll, loaded at 0x73fb0000 - 249856 bytes - 41228edb - file date is 8/18/2004 21:00:00
C:\WINDOWS\system32\pdh.dll, loaded at 0x74c70000 - 284160 bytes - 41228eae - file date is 8/18/2004 21:00:00
C:\WINDOWS\system32\comdlg32.dll, loaded at 0x76380000 - 278528 bytes - 41228e8a - file date is 8/18/2004 21:00:00
C:\WINDOWS\system32\PSAPI.DLL, loaded at 0x76be0000 - 23040 bytes - 41228ec8 - file date is 8/18/2004 21:00:00
C:\WINDOWS\system32\IMAGEHLP.dll, loaded at 0x76c80000 - 144384 bytes - 41228e92 - file date is 8/18/2004 21:00:00
C:\WINDOWS\system32\OLEAUT32.dll, loaded at 0x77110000 - 553472 bytes - 41228ef1 - file date is 8/18/2004 21:00:00
C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.26xx.xx80_x-ww_a84f1ff9\comctl32.dll, loaded at 0x773c0000 - 1050624 bytes - 41228e63 - file date is 8/18/2004 21:00:00
C:\WINDOWS\system32\ole32.dll, loaded at 0x774d0000 - 1281024 bytes - 41228ef0 - file date is 8/18/2004 21:00:00
C:\WINDOWS\system32\CRYPT32.dll, loaded at 0x77a70000 - 600576 bytes - 41228e70 - file date is 8/18/2004 21:00:00
C:\WINDOWS\system32\MSASN1.dll, loaded at 0x77b10000 - 57344 bytes - 41228ed3 - file date is 8/18/2004 21:00:00
C:\WINDOWS\system32\VERSION.dll, loaded at 0x77bf0000 - 18944 bytes - 41228ed5 - file date is 8/18/2004 21:00:00
C:\WINDOWS\system32\msvcrt.dll, loaded at 0x77c00000 - 343040 bytes - 41228f42 - file date is 8/18/2004 21:00:00
C:\WINDOWS\system32\USER32.dll, loaded at 0x77d30000 - 577536 bytes - 41228ed4 - file date is 8/18/2004 21:00:00
C:\WINDOWS\system32\ADVAPI32.dll, loaded at 0x77dc0000 - 687104 bytes - 41228e7e - file date is 8/18/2004 21:00:00
C:\WINDOWS\system32\RPCRT4.dll, loaded at 0x77e70000 - 581120 bytes - 41228eb4 - file date is 8/18/2004 21:00:00
C:\WINDOWS\system32\GDI32.dll, loaded at 0x77f10000 - 278016 bytes - 41228e7c - file date is 8/18/2004 21:00:00
C:\WINDOWS\system32\SHLWAPI.dll, loaded at 0x77f60000 - 473600 bytes - 41228ec3 - file date is 8/18/2004 21:00:00
C:\WINDOWS\system32\Secur32.dll, loaded at 0x77fe0000 - 55808 bytes - 41228ec6 - file date is 8/18/2004 21:00:00
C:\WINDOWS\system32\kernel32.dll, loaded at 0x7c800000 - 989696 bytes - 41228ee5 - file date is 8/18/2004 21:00:00
C:\WINDOWS\system32\ntdll.dll, loaded at 0x7c900000 - 712192 bytes - 41228ee4 - file date is 8/18/2004 21:00:00
C:\WINDOWS\system32\SHELL32.dll, loaded at 0x7c9c0000 - 8401408 bytes - 41228ebe - file date is 8/18/2004 21:00:00


GuardInfo :

Listen Thread[11] (good):      Lock Stack  :
GuardInfo end

Guard History:

-----------------------------------------------------------------------------------------
Listen Thread[11] (good):

Help me, please! =(

kvoxi 17.05.2006 14:59

c:\> dir c:\LineageII-C5\sources\AI\ :)
...
nasc.exe
ai_script.txt <- UNICODE (utf16-le)!!!
category_pch.txt
compile_msg.txt
fstring.txt
item_pch.txt
item_pch2.txt
manual_pch.txt
npcskills.txt
npc_pch.txt
npc_pch2.txt
quest_pch.txt
quest_pch2.txt
skill_pch.txt
skill_pch2.txt
skill_pch3.txt
watch_list.txt

Mr. Iron 17.05.2006 23:24

npcskills.txt ? Hm... I don't have this file!
So, but I make nasc.exe ai_symbol_maker.txt , and receive:

compile_msg.txt
Code:

=======================================
nasc.exe : NPC AI Script Compiler(0.03)
Copyright 2002 NC Soft Inc
any question mail to [email protected]
Patched by Kvoxi. C1-L2NPC compatible.
=======================================
Success!!!

kvoxi, thank U!

hamidouch 18.05.2006 00:00

m_MaxMeal push_const 1724 is lackin

mantrastic 18.05.2006 06:00

nice share! thanks alot :D awesome...!

kvoxi 18.05.2006 14:32

Quote:

Originally Posted by Mr. Iron
npcskills.txt ? Hm... I don't have this file!

this is my own ai-script

Quote:

Originally Posted by hamidouch
m_MaxMeal push_const 1724 is lackin

Not all variables and not full functionality present in shared nasc.
But, for common tasks, this nasc version is enough

montejo1974 03.06.2006 12:26

It seems to be a Cool and needed thing to work far away....but is it shared??? Or was?

Thx

toolpunk 03.06.2006 12:39

all attachments were removed due to some problems. (i can't really remember what kind of prob...)
however digital made a pack which contains all of the removed attachments and posted it. search for it and you'll find what you need.
hmm...
i always wanted to say this... XD
z0mGzZ!!11!1!!!one!11!111!!! lol :D

montejo1974 03.06.2006 18:27

thx for the additional info ;)


All times are GMT. The time now is 16:28.