Post Pacific  

Go Back   Post Pacific > Восстановленный архив > Темы без сохранившегося раздела
FAQ Community Calendar Today's Posts Search

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 28.02.2006, 20:50   #1
kvoxi
Архивный участник
 
Join Date: Oct 2005
Posts: 102
Default [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.
kvoxi is offline  
Old 28.02.2006, 20:58   #2
archy
Архивный участник
 
Join Date: Mar 2005
Posts: 280
Default

nice..
archy is offline  
Old 28.02.2006, 21:05   #3
johnsmith2
Архивный участник
 
Join Date: Jan 2006
Posts: 82
Default

great share
250 donate from me
johnsmith2 is offline  
Old 28.02.2006, 21:16   #4
toolpunk
Архивный участник
 
Join Date: May 2005
Posts: 2,033
Default

indeed
250 from me, as well^^
toolpunk is offline  
Old 28.02.2006, 21:27   #5
archy
Архивный участник
 
Join Date: Mar 2005
Posts: 280
Default

251 from me (yeah i just had to top the others :P)
archy is offline  
Old 01.03.2006, 10:24   #6
Kirikups
Архивный участник
 
Join Date: Oct 2005
Posts: 175
Default

no more php ai fix to use ?
Kirikups is offline  
Old 01.03.2006, 11:16   #7
OnlyOne
Архивный участник
 
Join Date: Apr 2005
Posts: 98
Default

Nice! Keep it going :P
OnlyOne is offline  
Old 01.03.2006, 11:34   #8
Kirikups
Архивный участник
 
Join Date: Oct 2005
Posts: 175
Default

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
Kirikups is offline  
Old 02.03.2006, 09:54   #9
kvoxi
Архивный участник
 
Join Date: Oct 2005
Posts: 102
Default

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
kvoxi is offline  
Old 02.03.2006, 10:41   #10
Kirikups
Архивный участник
 
Join Date: Oct 2005
Posts: 175
Default

okaydokey dok, ty for your answer
Kirikups is offline  
Old 04.03.2006, 15:51   #11
kvoxi
Архивный участник
 
Join Date: Oct 2005
Posts: 102
Default

Quote:
Originally Posted by Kirikups
okaydokey dok, ty for your answer
nop
kvoxi is offline  
Old 08.03.2006, 13:09   #12
nucer
Архивный участник
 
Join Date: May 2005
Posts: 117
Default

WOW!! Will test!! Thnks!!
nucer is offline  
Old 08.03.2006, 13:24   #13
filrip
Архивный участник
 
Join Date: May 2005
Posts: 99
Default

good job, and thx
filrip is offline  
Old 08.03.2006, 19:37   #14
djedai
Архивный участник
 
Join Date: Nov 2005
Posts: 50
Default

Hi All. i have a questions.
How i can decompiled AI.obj
djedai is offline  
Old 08.03.2006, 19:41   #15
Truffe
Архивный участник
 
Join Date: May 2005
Posts: 944
Default

By searching in this forum (since someone planned to write a decompiler)...
Truffe is offline  
Old 10.03.2006, 12:36   #16
Sauron
Архивный участник
 
Join Date: Feb 2005
Posts: 357
Default

wow nice... 2k donated
Sauron is offline  
Old 18.03.2006, 17:02   #17
Xellos
Архивный участник
 
Join Date: Feb 2006
Posts: 88
Default

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)
Xellos is offline  
Old 18.03.2006, 18:35   #18
kvoxi
Архивный участник
 
Join Date: Oct 2005
Posts: 102
Default

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
kvoxi is offline  
Old 18.03.2006, 18:56   #19
Xellos
Архивный участник
 
Join Date: Feb 2006
Posts: 88
Default

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
Xellos is offline  
Old 18.03.2006, 18:58   #20
kvoxi
Архивный участник
 
Join Date: Oct 2005
Posts: 102
Default

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
kvoxi is offline  
Old 19.03.2006, 04:59   #21
Sauron
Архивный участник
 
Join Date: Feb 2005
Posts: 357
Default

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?
Sauron is offline  
Old 19.03.2006, 15:33   #22
Xellos
Архивный участник
 
Join Date: Feb 2006
Posts: 88
Default

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
Xellos is offline  
Old 21.03.2006, 14:07   #23
Arshen
Архивный участник
 
Join Date: Mar 2006
Posts: 111
Default

So .. what is this NASC.exe used for?
Arshen is offline  
Old 21.03.2006, 14:08   #24
toolpunk
Архивный участник
 
Join Date: May 2005
Posts: 2,033
Default

compiling ai code without the later need of ai-fix.php...
toolpunk is offline  
Old 24.03.2006, 07:39   #25
Kenster
Архивный участник
 
Join Date: Sep 2005
Posts: 455
Default

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?
Kenster is offline  
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


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