Log in

View Full Version : [SHARE] C4 Nasc Beta


Sauron
16.10.2007, 20:17
Files Needed:

http://www.microsoft.com/downloads/details.aspx?FamilyID=200B2FD9-AE1A-4A14-984D-389C36F85647&displaylang=en

http://rapidshare.com/files/63434246/NASC.rar.html

Lastest Version 1.07d

FIXES:

1.07

- Improved syntax reader.

- More functions id added. thanks to adriahu and Forcer

- category_pch.txt added

1.06

- All this was fixed see post (https://web.archive.org/web/20071222120640/http://www.postpacific.com/forums/showpost.php?p=103662&postcount=54)

1.05

- Added hex and not support. i1 & !( 0x100 )

1.04

- Added support to this while( gg::IsNull( code_info = always_list::Next() ) == 0 )

1.03

- Fixed issues with the slash bar affecting the syntax reader

1.02

- Fixed some issues with conditionals

1.01

- Fixed crashing problems with buyselllist syntax

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 16 October 2007, 20:17. Открыть источник (https://web.archive.org/web/20071222120640if_/http://www.postpacific.com/forums/archive/index.php/t-8994.html).

ZeniMax
16.10.2007, 20:23
omg, maybe will be a tool of the year >.<, im waiting to get 40. Congrats Sauron.

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 16 October 2007, 20:23. Открыть источник (https://web.archive.org/web/20071222120640if_/http://www.postpacific.com/forums/archive/index.php/t-8994.html).

suselka
16.10.2007, 20:53
I do not think

very few people can download it

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 16 October 2007, 20:53. Открыть источник (https://web.archive.org/web/20071222120640if_/http://www.postpacific.com/forums/archive/index.php/t-8994.html).

Forcer
16.10.2007, 20:58
Better than nothing!

Thanks, and 5dc from me sau.

// In test

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 16 October 2007, 20:58. Открыть источник (https://web.archive.org/web/20071222120640if_/http://www.postpacific.com/forums/archive/index.php/t-8994.html).

hel
16.10.2007, 21:09
from me 5 DC's too :)

but of course i will not be able to download it, but i'm interested in sources.

i will be very appreciated, if anyone click good share in my share threads. :)

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 16 October 2007, 21:09. Открыть источник (https://web.archive.org/web/20071222120640if_/http://www.postpacific.com/forums/archive/index.php/t-8994.html).

Forcer
16.10.2007, 21:11
I think sau will never share sources. :P

And thats good, resellers sucks. :)

// 666 Msg :P

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 16 October 2007, 21:11. Открыть источник (https://web.archive.org/web/20071222120640if_/http://www.postpacific.com/forums/archive/index.php/t-8994.html).

Ra1n0
16.10.2007, 21:24
in test..thx for share

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 16 October 2007, 21:24. Открыть источник (https://web.archive.org/web/20071222120640if_/http://www.postpacific.com/forums/archive/index.php/t-8994.html).

hel
16.10.2007, 21:29
thanks guys, who help me reach the share, but i have confused with first post... there is no sources... btw it's good share.

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 16 October 2007, 21:29. Открыть источник (https://web.archive.org/web/20071222120640if_/http://www.postpacific.com/forums/archive/index.php/t-8994.html).

Bloodust
16.10.2007, 21:41
sources plox ? :P

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 16 October 2007, 21:41. Открыть источник (https://web.archive.org/web/20071222120640if_/http://www.postpacific.com/forums/archive/index.php/t-8994.html).

emanuel
16.10.2007, 21:46
Thx for this . 5 DC from me !:D

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 16 October 2007, 21:46. Открыть источник (https://web.archive.org/web/20071222120640if_/http://www.postpacific.com/forums/archive/index.php/t-8994.html).

smeli
17.10.2007, 06:34
thanks, this is good reason to move from C1 to C4 :)

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 17 October 2007, 06:34. Открыть источник (https://web.archive.org/web/20071222120640if_/http://www.postpacific.com/forums/archive/index.php/t-8994.html).

ZeniMax
17.10.2007, 06:47
Only need break a small thing, 64 bit coding >.<.

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 17 October 2007, 06:47. Открыть источник (https://web.archive.org/web/20071222120640if_/http://www.postpacific.com/forums/archive/index.php/t-8994.html).

smeli
17.10.2007, 07:22
>Only need break a small thing, 64 bit coding >.<.

??? this nasc 64bit coded? I dont think so

by moving I mean that for true developing of L2 you need a lot of AI programming

assembler codding does not provide requied level of programming speed

so I still working with C1 server and it almost ready for new project: L2 ADV Server

C4PTS do not meet all requirements for this project

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 17 October 2007, 07:22. Открыть источник (https://web.archive.org/web/20071222120640if_/http://www.postpacific.com/forums/archive/index.php/t-8994.html).

bfgsnake
17.10.2007, 09:07
Thanks, in test.

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 17 October 2007, 09:07. Открыть источник (https://web.archive.org/web/20071222120640if_/http://www.postpacific.com/forums/archive/index.php/t-8994.html).

roxaz
17.10.2007, 09:22
I think sau will never share sources. :P

// 666 Msg :P

too bad. this prevents future progress

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 17 October 2007, 09:22. Открыть источник (https://web.archive.org/web/20071222120640if_/http://www.postpacific.com/forums/archive/index.php/t-8994.html).

smeli
17.10.2007, 09:41
I think sau will share sources, but not now

after 2-3 years I think :)

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 17 October 2007, 09:41. Открыть источник (https://web.archive.org/web/20071222120640if_/http://www.postpacific.com/forums/archive/index.php/t-8994.html).

Tilluss
17.10.2007, 10:17
humm, looks pimpin! If it's a good beta then the sources wont be needed, but it would be nice if you could cary on developing this for a few weeks just to iron out any bug's that people come across :)

Thanks.

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 17 October 2007, 10:17. Открыть источник (https://web.archive.org/web/20071222120640if_/http://www.postpacific.com/forums/archive/index.php/t-8994.html).

roxaz
17.10.2007, 12:57
I think sau will share sources, but not now

after 2-3 years I think :)

yea, like 3D Software did with quake3. First they made some money, when game got old and forgotten they released source code under GNU GPL license

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 17 October 2007, 12:57. Открыть источник (https://web.archive.org/web/20071222120640if_/http://www.postpacific.com/forums/archive/index.php/t-8994.html).

emanuel
17.10.2007, 14:00
I have this error when i want to open the nasc.exe :

This aplication failed to start.... because the aplication configuration error . ...

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 17 October 2007, 14:00. Открыть источник (https://web.archive.org/web/20071222120640if_/http://www.postpacific.com/forums/archive/index.php/t-8994.html).

Forcer
17.10.2007, 14:32
emanuel, read the first post, and first string with link to microsoft.com

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 17 October 2007, 14:32. Открыть источник (https://web.archive.org/web/20071222120640if_/http://www.postpacific.com/forums/archive/index.php/t-8994.html).

emanuel
17.10.2007, 14:37
emanuel, read the first post, and first string with link to microsoft.com

OMG, i`ve forget , SORRY , detele my posts :D:D

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 17 October 2007, 14:37. Открыть источник (https://web.archive.org/web/20071222120640if_/http://www.postpacific.com/forums/archive/index.php/t-8994.html).

Ra1n0
17.10.2007, 15:39
hope this helps

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 17 October 2007, 15:39. Открыть источник (https://web.archive.org/web/20071222120640if_/http://www.postpacific.com/forums/archive/index.php/t-8994.html).

roxaz
17.10.2007, 16:00
hope this helps

helps with what?

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 17 October 2007, 16:00. Открыть источник (https://web.archive.org/web/20071222120640if_/http://www.postpacific.com/forums/archive/index.php/t-8994.html).

Ra1n0
17.10.2007, 16:26
helps with what?

with ai scripting

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 17 October 2007, 16:26. Открыть источник (https://web.archive.org/web/20071222120640if_/http://www.postpacific.com/forums/archive/index.php/t-8994.html).

mcrabben7
17.10.2007, 23:11
I've used this and it's pretty good, but it does have some major issues like variable definitions and some bugs with L branches after compilation.

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 17 October 2007, 23:11. Открыть источник (https://web.archive.org/web/20071222120640if_/http://www.postpacific.com/forums/archive/index.php/t-8994.html).

bigman2
18.10.2007, 00:59
this are good share!

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 18 October 2007, 00:59. Открыть источник (https://web.archive.org/web/20071222120640if_/http://www.postpacific.com/forums/archive/index.php/t-8994.html).

ZeniMax
18.10.2007, 02:13
I've used this and it's pretty good, but it does have some major issues like variable definitions and some bugs with L branches after compilation.

Thanks for info, you tested too handlers?

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 18 October 2007, 02:13. Открыть источник (https://web.archive.org/web/20071222120640if_/http://www.postpacific.com/forums/archive/index.php/t-8994.html).

FidoW
18.10.2007, 02:46
I've used this and it's pretty good, but it does have some major issues like variable definitions and some bugs with L branches after compilation.

Anyway, is a great share, this will help me a lot, so now i can code something without lose a lot of time compiling, now only will need to check the result and fix the things decompiler cant do... so... thanks Sauron :)

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 18 October 2007, 02:46. Открыть источник (https://web.archive.org/web/20071222120640if_/http://www.postpacific.com/forums/archive/index.php/t-8994.html).

roxaz
18.10.2007, 12:17
I've used this and it's pretty good, but it does have some major issues like variable definitions and some bugs with L branches after compilation.

can you be more specific?

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 18 October 2007, 12:17. Открыть источник (https://web.archive.org/web/20071222120640if_/http://www.postpacific.com/forums/archive/index.php/t-8994.html).

Forcer
18.10.2007, 13:30
Found one major bug.

For example:

BuySellList SellList0 = {}; will raise error like unknown buyselllist [] + crash.

Solution (Example):

BuySellList SellList0 = {{"adena";0}};

I also should say, that this compiler works bad with BuySellLists and merchant classes.

I cant compile class merchant, and another classes who inherits merchant.

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 18 October 2007, 13:30. Открыть источник (https://web.archive.org/web/20071222120640if_/http://www.postpacific.com/forums/archive/index.php/t-8994.html).

Morfey
18.10.2007, 15:26
EventHandler SCRIPT_EVENT(script_event_arg1,script_event_arg2)

{

if( script_event_arg1 == 10020 )

{

select (script_event_arg2) {

case 1:

myself::Say(myself::MakeFString(1010201,"","","","",""));

break;

case 2:

myself::Say(myself::MakeFString(1010202,"","","","",""));

break;

case 3:

myself::Say(myself::MakeFString(1010203,"","","","",""));

break;

case 4:

myself::Say(myself::MakeFString(1010204,"","","","",""));

break;

}

myself::AddMoveSuperPointDesire(myself.sm.name,2,5 0);

}

super;

}

i cant compile select...

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 18 October 2007, 15:26. Открыть источник (https://web.archive.org/web/20071222120640if_/http://www.postpacific.com/forums/archive/index.php/t-8994.html).

Sauron
18.10.2007, 15:40
atm you have to do it this way.

switch(num)

{

case 2:

case 1:

{

do_somthing;

break;

}

}

if you have doubts with the syntax try with this source. https://postpacific.mmorpg-game.online/showthread.php?t=8917

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 18 October 2007, 15:40. Открыть источник (https://web.archive.org/web/20071222120640if_/http://www.postpacific.com/forums/archive/index.php/t-8994.html).

Forcer
18.10.2007, 15:40
Maybe SWITCH?

2Sauron, Big thanks for so quickly answer.

You can find more bugs if you try to compile your ai.

Errors like crash without any error. (For example try to compile antaras AI)

Any debug mode will be so good for bugs catching.

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 18 October 2007, 15:40. Открыть источник (https://web.archive.org/web/20071222120640if_/http://www.postpacific.com/forums/archive/index.php/t-8994.html).

Sauron
18.10.2007, 15:43
there are some stuff i never coded, like a

while( gg::IsNull( code_info = always_list::Next() ) == 0 )

or something like this !( 0x100 )

Errors like crash without any error. (For example try to compile antaras AI)

weird i remember compiling it without errors... try with the v1.02

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 18 October 2007, 15:43. Открыть источник (https://web.archive.org/web/20071222120640if_/http://www.postpacific.com/forums/archive/index.php/t-8994.html).

Forcer
18.10.2007, 17:39
GUI For this compiler is in dev.

Maybe i will release it today, for more easy compilation :P

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 18 October 2007, 17:39. Открыть источник (https://web.archive.org/web/20071222120640if_/http://www.postpacific.com/forums/archive/index.php/t-8994.html).

madar
18.10.2007, 17:44
Warning: function [myself::DecreaseTotal()] has invalid ID: 000000000

Warning: function [deleted_def::DecCount()] has invalid ID: 000000000

Warning: function [myself::GetSpawnDefine()] has invalid ID: 000000000

Warning: function [myself::IncreaseTotal()] has invalid ID: 000000000

Warning: function [def0::IncCount()] has invalid ID: 000000000

Warning: function [def0::Spawn()] has invalid ID: 000000000

youre planning to add all functions or maybe a txt where we can define functions and other params? or it will stay in BETA forever?

its gonna be a fix for "on_day_night_spawn"

btw. nice work

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 18 October 2007, 17:44. Открыть источник (https://web.archive.org/web/20071222120640if_/http://www.postpacific.com/forums/archive/index.php/t-8994.html).

madar
18.10.2007, 17:51
data\functions.txt data\vars.txt data\handlers.txt data\item_pch.txt data\skill_pch.txt data\npc_pch.txt data\quest_pch.txt data\manual_pch.txt

hmm maybe i made something wrong

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 18 October 2007, 17:51. Открыть источник (https://web.archive.org/web/20071222120640if_/http://www.postpacific.com/forums/archive/index.php/t-8994.html).

Sauron
18.10.2007, 17:54
you need to use the maker class (2) .. most functions are in the compiler.

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 18 October 2007, 17:54. Открыть источник (https://web.archive.org/web/20071222120640if_/http://www.postpacific.com/forums/archive/index.php/t-8994.html).

madar
18.10.2007, 17:59
ye it worked thx, just started to learn nasc syntax :>

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 18 October 2007, 17:59. Открыть источник (https://web.archive.org/web/20071222120640if_/http://www.postpacific.com/forums/archive/index.php/t-8994.html).

madar
18.10.2007, 19:48
It should fix the red message "quote increase failed" in L2NPC for the npcs that spawns at night, im just finished it so not tested yet.

and thanks to GMan for default_maker code

UPDATE:

attachement updated and im running it on my server there wasnt any error yet.

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 18 October 2007, 19:48. Открыть источник (https://web.archive.org/web/20071222120640if_/http://www.postpacific.com/forums/archive/index.php/t-8994.html).

suselka
18.10.2007, 20:54
have a litle question

C4 NASC v1.02 by Sauron

Scrips Loaded

Source file processed

== start compiling ==

unknown param 30

unknown param 30

done in 78 milliseconds

original code

myself::AddEffectActionDesire( myself.sm, 3, MoveAroundSocial * 1000 / 30, 50 );

nasc compile code

push_event // myself

push_const 704

add

fetch_i // sm

push_const 544

add

fetch_i

push_const 3

push_parameter MoveAroundSocial

push_const 1000

mul

push_parameter 30

div

push_const 50

func_call 184811541 // func[AddEffectActionDesire]

shift_sp -4

shift_sp -1

is ok? or have a problemm?

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 18 October 2007, 20:54. Открыть источник (https://web.archive.org/web/20071222120640if_/http://www.postpacific.com/forums/archive/index.php/t-8994.html).

Corund
18.10.2007, 21:02
replace

push_parameter 30

by

push_const 30

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 18 October 2007, 21:02. Открыть источник (https://web.archive.org/web/20071222120640if_/http://www.postpacific.com/forums/archive/index.php/t-8994.html).

Sauron
18.10.2007, 21:26
try with v1.03

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 18 October 2007, 21:26. Открыть источник (https://web.archive.org/web/20071222120640if_/http://www.postpacific.com/forums/archive/index.php/t-8994.html).

suselka
19.10.2007, 12:20
invalid function Next

while( gg::IsNull( code_info = always_list::Next() ) == 0 )

I can am mistaken. But function next here is necessary. But the compiler does not recognize it

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 19 October 2007, 12:20. Открыть источник (https://web.archive.org/web/20071222120640if_/http://www.postpacific.com/forums/archive/index.php/t-8994.html).

Sauron
19.10.2007, 16:15
invalid function Next

while( gg::IsNull( code_info = always_list::Next() ) == 0 )

I can am mistaken. But function next here is necessary. But the compiler does not recognize it

i know i said that :P

new version, check it out.

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 19 October 2007, 16:15. Открыть источник (https://web.archive.org/web/20071222120640if_/http://www.postpacific.com/forums/archive/index.php/t-8994.html).

DeKoth
19.10.2007, 16:34
Sauron thanks for this thing.. seriously lol i am so tired of coding stack its not even funny

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 19 October 2007, 16:34. Открыть источник (https://web.archive.org/web/20071222120640if_/http://www.postpacific.com/forums/archive/index.php/t-8994.html).

roxaz
19.10.2007, 17:42
i dont understand one thing... why ppl develop a new compiler? lack of c1 compiler basicly is function as far as i know, so why not develop a fancy extension dll for c1 compiler?

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 19 October 2007, 17:42. Открыть источник (https://web.archive.org/web/20071222120640if_/http://www.postpacific.com/forums/archive/index.php/t-8994.html).

suselka
19.10.2007, 17:46
sauron thanks)

Because easier to write new than to change old

npcserver c1 is x32. npcC4 is x64

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 19 October 2007, 17:46. Открыть источник (https://web.archive.org/web/20071222120640if_/http://www.postpacific.com/forums/archive/index.php/t-8994.html).

k565012
19.10.2007, 18:04
from me 5 DC's too

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 19 October 2007, 18:04. Открыть источник (https://web.archive.org/web/20071222120640if_/http://www.postpacific.com/forums/archive/index.php/t-8994.html).

roxaz
19.10.2007, 21:09
sauron thanks)

Because easier to write new than to change old

npcserver c1 is x32. npcC4 is x64

oh right.. i thought that nasc did not change, just its interpreter did. apearantly i was wrong

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 19 October 2007, 21:09. Открыть источник (https://web.archive.org/web/20071222120640if_/http://www.postpacific.com/forums/archive/index.php/t-8994.html).

Sauron
19.10.2007, 21:35
being 64 or 32bits doesn't change much really.. In my case it's easier to code a new compiler than change 30% of the old one.

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 19 October 2007, 21:35. Открыть источник (https://web.archive.org/web/20071222120640if_/http://www.postpacific.com/forums/archive/index.php/t-8994.html).

Koner
20.10.2007, 02:22
When i trying compile my ai i have this error, or it my mistake?

Var ID Error myself::GetCurrentTick()-talker Event

Var ID Error quest_last_reward_time

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 20 October 2007, 02:22. Открыть источник (https://web.archive.org/web/20071222120640if_/http://www.postpacific.com/forums/archive/index.php/t-8994.html).

Orcadious
20.10.2007, 16:36
ur'e the first one i'm gonna click good share for when i can

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 20 October 2007, 16:36. Открыть источник (https://web.archive.org/web/20071222120640if_/http://www.postpacific.com/forums/archive/index.php/t-8994.html).

Forcer
20.10.2007, 21:33
2Sauron,

Look on this error:

[{"scroll_of_escape_to_agit";10;1.000000;5};{"blessed_scroll_of_escape_to_agit";

10;1.000000;3};{"deluxe_food_for_strider";10;1.000000;10}] is not a valid [BuySe

llList]

This application has requested the Runtime to terminate it in an unusual way.

Please contact the application's support team for more information.

This happens on class steward, i using your decompiled ai.

So, i think again error with buysell lists?

NASC.exe is crashed on this BuySellList (I so think)

BuySellList SellList1 = {{"scroll_of_escape_to_agit"; 10; 1.000000; 5};{"blessed_scroll_of_escape_to_agit"; 10; 1.000000; 3};{"deluxe_food_for_strider"; 10; 1.000000; 10}};

After i removed class steward i got new errors, especial this

unknown param myself::Castle_GetRawSiegeTime()-myself::Castle_GetRawSystemTime()

Also i do big experiment, and i found one more crash place (still steward, block ask -201)

switch( ( myself::Agit_GetDecoLevel( decotype_item ) - 10 ) )

This code...

Look for this errors, please.

Or maybe some functions is not implemented?

p.s In general, i compiling alot of ai classes for find major bugs :)

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 20 October 2007, 21:33. Открыть источник (https://web.archive.org/web/20071222120640if_/http://www.postpacific.com/forums/archive/index.php/t-8994.html).

Sauron
20.10.2007, 22:24
hehe i forgot the + in the ereg :P

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 20 October 2007, 22:24. Открыть источник (https://web.archive.org/web/20071222120640if_/http://www.postpacific.com/forums/archive/index.php/t-8994.html).

Forcer
20.10.2007, 22:29
Big thanks for so quickly answer.

Now works, i will write in this thread if i find new bugs.

Keep up good work! :P

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 20 October 2007, 22:29. Открыть источник (https://web.archive.org/web/20071222120640if_/http://www.postpacific.com/forums/archive/index.php/t-8994.html).

Forcer
20.10.2007, 22:48
Hah ;)

Let's welcome next bug...

EventHandler TALKED(talker) {

myself::Say( "Hello, = " + talker.name );

}

This code will throw error:

[myself::Say("Hello, ] is not a valid [variable]

error!!!!!! key: (

myself::Say("Hello,

unknown param myself::Say("Hello,

And THIS code will be compiled successfully

EventHandler TALKED(talker) {

myself::Say( "Hello, " + talker.name );

}

I hope sauron, that you see difference? :P

I talking about symbol _=_ in strings ""

See better, maybe not only = is affected to throw this error.

// Added

Also nasc.exe is crashing on class ai_boss01_queen_ant with a HUGE error (rofl) :D

I suspect this string

string Privates = "nurse_ant:nurse_ant:2:10sec;nurse_ant:nurse_ant:2: 10sec;nurse_ant:nurse_ant:2:10sec;

;royal_guard_ant:royal_guard_ant:1:20sec;royal_gua rd_ant:royal_guard_ant:1:20sec = ;

;royal_guard_ant:royal_guard_ant:1:20sec;royal_gua rd_ant:royal_guard_ant:1:20sec" = ;

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 20 October 2007, 22:48. Открыть источник (https://web.archive.org/web/20071222120640if_/http://www.postpacific.com/forums/archive/index.php/t-8994.html).

roxaz
20.10.2007, 23:07
compiler allows if(a = b) but it shouldnt. only if(a == b) should be allowed. in the other hand a = b maybe should be understood as true. if(a = b) means if we assign b to a and that is true always.

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 20 October 2007, 23:07. Открыть источник (https://web.archive.org/web/20071222120640if_/http://www.postpacific.com/forums/archive/index.php/t-8994.html).

Forcer
20.10.2007, 23:11
Next minor bug...

if( myself::IsInCategory( @summon_npc_group, attacker.npc_class_id ) )

Will create a ScriptError?

What means this error?

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 20 October 2007, 23:11. Открыть источник (https://web.archive.org/web/20071222120640if_/http://www.postpacific.com/forums/archive/index.php/t-8994.html).

madar
20.10.2007, 23:39
whats this repeted script stuff in error.txt? because there are no duplicated ids/names in pchs

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 20 October 2007, 23:39. Открыть источник (https://web.archive.org/web/20071222120640if_/http://www.postpacific.com/forums/archive/index.php/t-8994.html).

mcrabben7
21.10.2007, 02:26
compiler allows if(a = b) but it shouldnt. only if(a == b) should be allowed. in the other hand a = b maybe should be understood as true. if(a = b) means if we assign b to a and that is true always.

No, you are wrong. a = b means assign b to a, and THEN check a for true. If a is true (not 0) then enter this block.

There is nothing wrong with that code. This is C coding, not Java :)

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 21 October 2007, 02:26. Открыть источник (https://web.archive.org/web/20071222120640if_/http://www.postpacific.com/forums/archive/index.php/t-8994.html).

Sauron
21.10.2007, 03:02
whats this repeted script stuff in error.txt? because there are no duplicated ids/names in pchs

not in the same, but maybe there are names repeted in other txt. So if you put @adena, the compiler doesn't know if it has to use the item_id or let say and skill named adena.

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 21 October 2007, 03:02. Открыть источник (https://web.archive.org/web/20071222120640if_/http://www.postpacific.com/forums/archive/index.php/t-8994.html).

roxaz
21.10.2007, 10:28
No, you are wrong. a = b means assign b to a, and THEN check a for true. If a is true (not 0) then enter this block.

There is nothing wrong with that code. This is C coding, not Java :)

upss, my bad

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 21 October 2007, 10:28. Открыть источник (https://web.archive.org/web/20071222120640if_/http://www.postpacific.com/forums/archive/index.php/t-8994.html).

Forcer
21.10.2007, 17:20
Hey sauron, any news about yesterday bugs? %)

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 21 October 2007, 17:20. Открыть источник (https://web.archive.org/web/20071222120640if_/http://www.postpacific.com/forums/archive/index.php/t-8994.html).

Sauron
22.10.2007, 20:29
Hah ;)

Let's welcome next bug...

This code will throw error:

And THIS code will be compiled successfully

I hope sauron, that you see difference? :P

I talking about symbol _=_ in strings ""

See better, maybe not only = is affected to throw this error.

// Added

Also nasc.exe is crashing on class ai_boss01_queen_ant with a HUGE error (rofl) :D

I suspect this string

ok i fixed the bug with the symbol in the string. Concerning definitions, you cannot do this

asd = "lala

lalal"; so in your case there are 2 errors. The string being in 3 lines and having =; at the end

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 22 October 2007, 20:29. Открыть источник (https://web.archive.org/web/20071222120640if_/http://www.postpacific.com/forums/archive/index.php/t-8994.html).

Forcer
22.10.2007, 20:44
Good, what about inserting missed IDs of functions like GiveItemEx?

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 22 October 2007, 20:44. Открыть источник (https://web.archive.org/web/20071222120640if_/http://www.postpacific.com/forums/archive/index.php/t-8994.html).

Forcer
22.10.2007, 22:00
Hmmm...maybe SP2.

As variant, try to install winxp+sp2...for example to VirtualPC and test it.

Or ask on forums, like ruboard.

Sauron can you fix 000000000 IDs of some functions?

Manual replacing is boring, i can give functions list. (He was shared by adriahu some days ago).

Or..better make functions.txt (ex: AddAttackDesire|000000000) etc.

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. В снимке указана только дата, без времени: 23 October 2007. Открыть источник (https://web.archive.org/web/20071214115443id_/http://www.postpacific.com/forums/showthread.php?p=104417).

Forcer
22.10.2007, 22:00
Sauron, please add category_pch parsing.

Cuz cannot be used in code constans, such as @third_class_group etc.

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. В снимке указана только дата, без времени: 23 October 2007. Открыть источник (https://web.archive.org/web/20071214115443id_/http://www.postpacific.com/forums/showthread.php?p=104417).

Sauron
22.10.2007, 22:00
there is a thread "[SHARE PRIVATE] C4 Nasc FULL V 2.0" which ISN'T MINE. DO NOT DONWLOAD IT. anyway i deleted it.

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. В снимке указана только дата, без времени: 23 October 2007. Открыть источник (https://web.archive.org/web/20071214115443id_/http://www.postpacific.com/forums/showthread.php?p=104417).

HF
22.10.2007, 22:00
Very Happy Where button downgrade Reputation to negative? None? Saaaddd....

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. В снимке указана только дата, без времени: 23 October 2007. Открыть источник (https://web.archive.org/web/20071214115443id_/http://www.postpacific.com/forums/showthread.php?p=104417).

Forcer
22.10.2007, 22:00
Sauron, this was trojan.

Look for same thread in russian section.

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. В снимке указана только дата, без времени: 23 October 2007. Открыть источник (https://web.archive.org/web/20071214115443id_/http://www.postpacific.com/forums/showthread.php?p=104417).

~Marquis~
22.10.2007, 22:00
Great i got one of my comp infected.

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. В снимке указана только дата, без времени: 23 October 2007. Открыть источник (https://web.archive.org/web/20071214115443id_/http://www.postpacific.com/forums/showthread.php?p=104417).

Sauron
22.10.2007, 22:00
Quote:


Originally Posted by Forcer

Sauron can you fix 000000000 IDs of some functions?

Manual replacing is boring, i can give functions list. (He was shared by adriahu some days ago).

Or..better make functions.txt (ex: AddAttackDesire|000000000) etc.

give me the list, because the compiler needs more data than function name and id.

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. В снимке указана только дата, без времени: 23 October 2007. Открыть источник (https://web.archive.org/web/20071214115443id_/http://www.postpacific.com/forums/showthread.php?p=104417).

Forcer
22.10.2007, 22:00
Okay, i will send u pm in about one hour.

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. В снимке указана только дата, без времени: 23 October 2007. Открыть источник (https://web.archive.org/web/20071214115443id_/http://www.postpacific.com/forums/showthread.php?p=104417).

Firedaemon
22.10.2007, 23:55
Hi Sauron, here is a bug report for you regarding L branches under an elseif condition.

class 1 summon_default : default_npc

{

parameter:

handler:

EventHandler ATTACKED (attacker, damage, skill_name_id, i0, i1, i2, i3)

{

if(skill_name_id >= 357121 && skill_name_id <= 357130 )

{

i1 = skill_name_id;

if( i1 == 357121 )

{

i0 = 57;

}

elseif( i1 == 357122 )

{

i0 = 59;

}

elseif( i1 == 357123 )

{

i0 = 61;

}

elseif( i1 == 357124 )

{

i0 = 63;

}

elseif( i1 == 357125 )

{

i0 = 65;

}

elseif( i1 == 357126 )

{

i0 = 67;

}

elseif( i1 == 357127 )

{

i0 = 69;

}

elseif( i1 == 357128 )

{

i0 = 71;

}

elseif( i1 == 357129 )

{

i0 = 73;

}

elseif( i1 == 357130 )

{

i0 = 75;

}

i2 = (50 + ((i0 - myself.sm.level) * 2));

if( gg::Rand(100) < i2 )

{

myself::Despawn();

}

}

elseif( skill_name_id == 364546 )

{

myself::Despawn();

}

elseif( skill_name_id >= 353281 && skill_name_id <= 353290)

{

myself::AddAttackDesire(myself.master, 1, 1500);

}

}

}

The compiler compiles it into stack as;

class 1 summon_default : default_npc

parameter_define_begin

parameter_define_end

handler 1 204 // ATTACKED

variable_begin

"attacker"

"damage"

"skill_name_id"

"i0"

"i1"

"i2"

"i3"

"myself"

"_choiceN"

"_code"

"_from_choice"

variable_end

push_event // skill_name_id

push_const 180

add

fetch_i4

push_const 357121

greater_equal

push_reg_sp

fetch_i

branch_false L3

push_event // skill_name_id

push_const 180

add

fetch_i4

push_const 357130

less_equal

and

L3

branch_false L2

L1

push_event // i1

push_const 264

add

fetch_i4

push_const 357121

equal

branch_false L5

L4

jump L6

L5

push_event // i1

push_const 264

add

fetch_i4

push_const 357122

equal

branch_false L8

L7

jump L9

L8

push_event // i1

push_const 264

add

fetch_i4

push_const 357123

equal

branch_false L11

L10

jump L12

L11

push_event // i1

push_const 264

add

fetch_i4

push_const 357124

equal

branch_false L14

L13

jump L15

L14

push_event // i1

push_const 264

add

fetch_i4

push_const 357125

equal

branch_false L17

L16

jump L18

L17

push_event // i1

push_const 264

add

fetch_i4

push_const 357126

equal

branch_false L20

L19

jump L21

L20

push_event // i1

push_const 264

add

fetch_i4

push_const 357127

equal

branch_false L23

L22

jump L24

L23

push_event // i1

push_const 264

add

fetch_i4

push_const 357128

equal

branch_false L26

L25

jump L27

L26

push_event // i1

push_const 264

add

fetch_i4

push_const 357129

equal

branch_false L29

L28

jump L30

L29

push_event // i1

push_const 264

add

fetch_i4

push_const 357130

equal

branch_false L32

L31

L32

L30

L27

L24

L21

L18

L15

L12

L9

L6

push_event // gg

push_const 632

add

fetch_i

push_const 100

func_call 218169344 // func[Rand]

shift_sp -1

push_event // i2

push_const 268

add

fetch_i4

less

branch_false L34

L33

push_event // myself

push_const 704

add

fetch_i

func_call 184549616 // func[Despawn]

shift_sp -1

L34

jump L35

L2

push_event // skill_name_id

push_const 180

add

fetch_i4

push_const 364546

equal

branch_false L37

L36

push_event // myself

push_const 704

add

fetch_i

func_call 184549616 // func[Despawn]

shift_sp -1

jump L38

L37

push_event // skill_name_id

push_const 180

add

fetch_i4

push_const 353281

greater_equal

push_reg_sp

fetch_i

branch_false L41

push_event // skill_name_id

push_const 180

add

fetch_i4

push_const 353290

less_equal

and

L41

branch_false L40

L39

push_event // myself

push_const 704

add

fetch_i

push_event // myself

push_const 704

add

fetch_i // master

push_const 552

add

fetch_i

push_const 1

push_const 1500

func_call 184745993 // func[AddAttackDesire]

shift_sp -3

shift_sp -1

L40

L38

L35

handler_end

class_end

The L branches are a bit messed up and the code excludes the code which is between the elseif branches. i0 is not being assigned

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 22 October 2007, 23:55. Открыть источник (https://web.archive.org/web/20071222120640if_/http://www.postpacific.com/forums/archive/index.php/t-8994.html).

Sauron
23.10.2007, 00:36
i don't see any problem with the L branches, but the code was indeed excluded :P i didn't test very well my last release :P

1.07b attached

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 23 October 2007, 00:36. Открыть источник (https://web.archive.org/web/20071222120640if_/http://www.postpacific.com/forums/archive/index.php/t-8994.html).

Firedaemon
23.10.2007, 01:08
yup b version did the trick - problem resolved

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 23 October 2007, 01:08. Открыть источник (https://web.archive.org/web/20071222120640if_/http://www.postpacific.com/forums/archive/index.php/t-8994.html).

hel
23.10.2007, 06:36
don't know why NASC not starting.

vcredist installed.

error reports that application was not properly configured and can't be started.

ps: my windows xp don't have sp2, may it cause these problems?

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 23 October 2007, 06:36. Открыть источник (https://web.archive.org/web/20071222120640if_/http://www.postpacific.com/forums/archive/index.php/t-8994.html).

HF
23.10.2007, 15:03
:D Where button downgrade Reputation to negative? None? Saaaddd....

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 23 October 2007, 15:03. Открыть источник (https://web.archive.org/web/20071222120640if_/http://www.postpacific.com/forums/archive/index.php/t-8994.html).

Sauron
23.10.2007, 20:09
Sauron can you fix 000000000 IDs of some functions?

Manual replacing is boring, i can give functions list. (He was shared by adriahu some days ago).

Or..better make functions.txt (ex: AddAttackDesire|000000000) etc.

give me the list, because the compiler needs more data than function name and id.

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 23 October 2007, 20:09. Открыть источник (https://web.archive.org/web/20071222120640if_/http://www.postpacific.com/forums/archive/index.php/t-8994.html).

Sauron
23.10.2007, 22:00
the lastest version reads category_pch.txt, but in ANSI the one in the rar just needs to be placed in the data folder

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. В снимке указана только дата, без времени: 24 October 2007. Открыть источник (https://web.archive.org/web/20071214115443id_/http://www.postpacific.com/forums/showthread.php?p=104417).

superkent
23.10.2007, 22:00
very good

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. В снимке указана только дата, без времени: 24 October 2007. Открыть источник (https://web.archive.org/web/20071214115443id_/http://www.postpacific.com/forums/showthread.php?p=104417).

Omuto
28.10.2007, 00:53
W0w Great JOB!!!! Thx!!!

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 28 October 2007, 00:53. Открыть источник (https://web.archive.org/web/20071222120640if_/http://www.postpacific.com/forums/archive/index.php/t-8994.html).

N8cko
30.10.2007, 19:44
Aplication cannot be initialiced, try to reinstall (more or less)

I have installed Win Xp+Sp2, the .Net 2 thing and still can't make it work.

Plz give me some clue to fix this.

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 30 October 2007, 19:44. Открыть источник (https://web.archive.org/web/20071222120640if_/http://www.postpacific.com/forums/archive/index.php/t-8994.html).

Forcer
30.10.2007, 20:08
First post, first string, first link... -_-

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 30 October 2007, 20:08. Открыть источник (https://web.archive.org/web/20071222120640if_/http://www.postpacific.com/forums/archive/index.php/t-8994.html).

DeKoth
30.10.2007, 21:53
Does anyone have a list of what some/all the functions and handlers do. They are not all self explanatory.

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 30 October 2007, 21:53. Открыть источник (https://web.archive.org/web/20071222120640if_/http://www.postpacific.com/forums/archive/index.php/t-8994.html).

Tilluss
08.11.2007, 13:08
Hey sauron, i've come across a little bit of a problem, im trying to edit an already existing NPC using your decompiled C4 code you shared on here before. Now i've made my edits and recompiled the code, it compiles fine with no errors on your compiler but when i try to load the code in the server is breaks the AI and the server can't load it. I checked over my coding multiple times and couldn't find the issue so i decided to compare the compiled code with the already existing code in the AI (the stuff that works). I came across a few issues in the comparison (not including the L & S lines):

(NOTE: The "and" lines)

http://www.l2requiem.com/ihost/images/37263compiler1.jpg

http://www.l2requiem.com/ihost/images/94444compiler2.jpg

Now, i dont know compiled code at all, and i dont know if this would cause an issue, but these are the main differences i found. Can you advise me any further on where i might be going wrong please :)

I have attached the source for this NPC below:

Thanks

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 8 November 2007, 13:08. Открыть источник (https://web.archive.org/web/20071222120640if_/http://www.postpacific.com/forums/archive/index.php/t-8994.html).

roxaz
08.11.2007, 13:59
i noticed that too but im sure this is no big deal..

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 8 November 2007, 13:59. Открыть источник (https://web.archive.org/web/20071222120640if_/http://www.postpacific.com/forums/archive/index.php/t-8994.html).

Forcer
08.11.2007, 14:00
What is off compiler?

C1Nasc?

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 8 November 2007, 14:00. Открыть источник (https://web.archive.org/web/20071222120640if_/http://www.postpacific.com/forums/archive/index.php/t-8994.html).

roxaz
08.11.2007, 14:08
i think he mean fragments from compiled c4 ai.obj

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 8 November 2007, 14:08. Открыть источник (https://web.archive.org/web/20071222120640if_/http://www.postpacific.com/forums/archive/index.php/t-8994.html).

Tilluss
08.11.2007, 14:10
What is off compiler?

C1Nasc?

Nah, it's standard C4 PTS ai.obj, but it was obviously compiled by the official compiler before we got it, thats why i added the "off" label to it ^^.

Anyway, all i know is the original stuff works and my edited stuff doesn't, and i dont know why >.<

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 8 November 2007, 14:10. Открыть источник (https://web.archive.org/web/20071222120640if_/http://www.postpacific.com/forums/archive/index.php/t-8994.html).

Tilluss
09.11.2007, 16:46
So, any feedback on this problem? :/

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 9 November 2007, 16:46. Открыть источник (https://web.archive.org/web/20071222120640if_/http://www.postpacific.com/forums/archive/index.php/t-8994.html).

Sauron
09.11.2007, 17:19
my code is ok

retail do this

condition

condition

and

condition

and

and mine this

condition

condition

condition

and

and

its the same

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 9 November 2007, 17:19. Открыть источник (https://web.archive.org/web/20071222120640if_/http://www.postpacific.com/forums/archive/index.php/t-8994.html).

Ra1n0
08.12.2007, 19:53
bug

EventHandler SEE_CREATURE(creature)

{

if ( myself::DistFromMe(creature) >= (1*100+100) )

{

return;

}

}

compile = no errors

compiled:

handler 5 16 // SEE_CREATURE

variable_begin

"creature"

"myself"

"_choiceN"

"_code"

"_from_choice"

variable_end

push_event // myself

push_const 704

add

fetch_i

push_event // creature

push_const 112

add

fetch_i

func_call 184614996 // func[DistFromMe]

shift_sp -1

push_const 1*100+100

greater_equal

branch_false L2

L1

exit_handler

L2

handler_end

= broken AI

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 8 December 2007, 19:53. Открыть источник (https://web.archive.org/web/20071222120640if_/http://www.postpacific.com/forums/archive/index.php/t-8994.html).

Forcer
09.12.2007, 19:31
Up! ^)

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Время показано по часам снимка; часовой пояс не установлен. Дата в снимке: 9 December 2007, 19:31. Открыть источник (https://web.archive.org/web/20071222120640if_/http://www.postpacific.com/forums/archive/index.php/t-8994.html).

Corund
23.06.2008, 22:00
actually it doesn't need to keep label's and string's unique numbering throw full ai.obj, i keep unique numbering only in range of each class and it works fine, so i don't need to renumber whole ai.obj each time i add or replace classes.

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. В снимке указана только дата, без времени: 24 June 2008. Открыть источник (https://web.archive.org/web/20090401004332id_/http://www.postpacific.com:80/showthread.php?s=cc917368111d1ae12e0683c3f256732c&p=166382).

Lkzwieder
24.06.2008, 22:00
/Off topic

We want Ludmila ON.

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. В снимке указана только дата, без времени: 25 June 2008. Открыть источник (https://web.archive.org/web/20090401004332id_/http://www.postpacific.com:80/showthread.php?s=cc917368111d1ae12e0683c3f256732c&p=166382).

Stich
29.06.2008, 22:00
one more bag.

nasc code:

myself::FHTML_SetFileName(fhtml0, (fnAgitBuff + "_" + myself::IntToStr(myself::Agit_GetDecoLevel(decotyp e_buff)) + ".htm"));

compiled:

push_event // myself

push_const 704

add

fetch_i

push_event // fhtml0

push_const 520

add

fetch_i

push_parameter fnAgitBuff

S10. "_"

push_string S10

push_event // myself

push_const 704

add

fetch_i

push_event // myself

push_const 704

add

fetch_i

push_parameter decotype_buff

func_call 184615097 // func[Agit_GetDecoLevel]

shift_sp -1

func_call 184615004 // func

shift_sp -1

add_string 1028

S11. ".htm"

push_string S11

add_string 1028

func_call 184680582 // func[FHTML_SetFileName]

shift_sp -2

shift_sp -1

must be:

push_event // myself

push_const 704

add

fetch_i

push_event // fhtml0

push_const 520

add

fetch_i

push_parameter fnAgitBuff

S1864. "_"

push_string S1864

add_string 1028

push_event // myself

push_const 704

add

fetch_i

push_event // myself

push_const 704

add

fetch_i

push_parameter decotype_buff

func_call 184615097 // func[Agit_GetDecoLevel]

shift_sp -1

func_call 184615004 // func[IntToStr]

shift_sp -1

add_string 1028

S1865. ".htm"

push_string S1865

add_string 1028

func_call 184680582 // func[FHTML_SetFileName]

shift_sp -2

shift_sp -1

[i]Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. В снимке указана только дата, без времени: 30 June 2008. Открыть источник (https://web.archive.org/web/20090401004332id_/http://www.postpacific.com:80/showthread.php?s=cc917368111d1ae12e0683c3f256732c&p=166382).

Stich
30.06.2008, 22:00
so, this topic is closed?

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. В снимке указана только дата, без времени: 1 July 2008. Открыть источник (https://web.archive.org/web/20090401004332id_/http://www.postpacific.com:80/showthread.php?s=cc917368111d1ae12e0683c3f256732c&p=166382).

gieshis
29.03.2009, 22:43
How i can change Quest Item drop rate, i have sauron have L2ScriptMaker . but i have always erorrs when i trying to decode. cuz there typed C4 i need c6. Solutions? exept shot in my own head

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Дата оценена по относительному времени в снимке (2 Days Ago); точное время не сохранилось. Открыть источник (https://web.archive.org/web/20090401004332id_/http://www.postpacific.com:80/showthread.php?s=cc917368111d1ae12e0683c3f256732c&p=166382).

smeli
30.03.2009, 22:43
write own compiler

Восстановлено из публичного снимка Wayback Machine. Тема могла сохраниться частично. Дата оценена по относительному времени в снимке (1 Day Ago); точное время не сохранилось. Открыть источник (https://web.archive.org/web/20090401004332id_/http://www.postpacific.com:80/showthread.php?s=cc917368111d1ae12e0683c3f256732c&p=166382).