View Full Version : Fixin NPC crash in Retail Server
Hello,
i am trying to resolve problems how to fix critical npc crashes on l2NPC.exe
i have toniced that npc crashes because ai functions to l2npc.exe
some people sayd to me that functions is disabled by "visa" to do not see errors in l2npc like My_Dying.
i am trying to fix problems but npc is still crashes .
my server is running 5 days and 2 days without players npc did not crashed
players kill's npc or push'es not correct link on npc and NPC goes down.
if someone can help me to find out or knows how to find critical functions please post.
i think all need new developers team of postpacific...
I have a problem as your. But my friend has successfuly launched L2NPC without crashes, but quests don't work.
Only 1(!) different in our configuration (C4 server files is same). He have SQL2000 SP4, I have SQL2005 x64. I think it all explains... I will go and uninstall SQL2005, and install SQL2000 SP4...
(I can join your team, I interested in fixing it all)
my npc not crashing just quest's not work^^
i dont think i't sql problem
someone give me example of incorrect function
and how u found when it is correct and when it is not
Oh, one thing more...
On npcpos we're see a lot of parameters which is not defined in AI.obj.
ai=[maker_instant_spawn_random]
ai_parameters={[maker_name1]=[t21_24_00101];[maker_name2]=[t21_24_00102];[maker_cnt]=2;[respawn_time]=130;[on_start_spawn]=1}
I fix many these errors on starting l2.npc by adding these parameters in each class with superclass default_maker:
string maker_name1 ""
string maker_name2 ""
int maker_cnt 0
int respawn_time 0
I think it will help to all...
not correct add parameter in default_maker.
If add this, then not have report error, but this parameters not work.
Need change class in problems npc
/rus
Короче, нихрена я незнаю английской грамматики. Вообщем если добавить просто в этот класс, эти параметры, то максимум чего добьетесь, это удаления ошибок из репорта, но работать они не будут. Я еще не проверял, но на 90% это ошибка в перепутанном классе у нпс.
Кстати интересно, типы waypointstype и waypointdelaystype сервер больше незнает ?)
waypointstype и waypointdelaystype - understand, but npc server has an error
testdude
01.08.2006, 13:01
my_dying handler doesnt work, theres a dll out that aparently fixes this problem but ive yet to find out how to attach this dll, cos i hate 64bit xP and ida pro is a piece of shit, olly4eva!
Give us it :) and we will finishing ur work ;)
but as I see this handler works fine, because we tested it
this code
string maker_name1 ""
string maker_name2 ""
int maker_cnt 0
int respawn_time 0
must be pasted
class 1 default_npc : (null)
parameter_define_begin
<------------------------------------here ? or where in superclass?
int DesirePqSize 50
int FavorListSize 30
...
thanks for reply.
my_dying handler doesnt work, theres a dll out that aparently fixes this problem but ive yet to find out how to attach this dll, cos i hate 64bit xP and ida pro is a piece of shit, olly4eva!
Try Windows 2003 R2 Trial 64bit ;)
btw > anyone tried VMWare? I saw VMWARE+64bit OS on 32bit OS with 64bit cpu (Xeon)
my_dying handler doesnt work, theres a dll out that aparently fixes this problem but ive yet to find out how to attach this dll, cos i hate 64bit xP and ida pro is a piece of shit, olly4eva!
Try Windows 2003 R2 Trial 64bit ;)
btw > anyone tried VMWare? I saw VMWARE+64bit OS on 32bit OS with 64bit cpu (Xeon)
works
this code
string maker_name1 ""
string maker_name2 ""
int maker_cnt 0
int respawn_time 0
must be pasted
class 1 default_npc : (null)
parameter_define_begin
<------------------------------------here ? or where in superclass?
int DesirePqSize 50
int FavorListSize 30
...
thanks for reply.
ufortunatly this fix does not fix critical crashes in l2npc
trye to remove 1,2,3 change class npc from npcpos it think there is some problems too (remove npc to see is this really problem)
without players npc does not crashes for 24hours
May be it's help some pplz to start correcting errors in AI, or write own dll for npc.exe
empathon
01.08.2006, 15:39
zil awesome! thanks man :D
May be it's help some pplz to start correcting errors in AI, or write own dll for npc.exe
how he exported it fo txt?
please tell :D
barabashka
01.08.2006, 17:56
There is no need to fix l2npc, just fix your AI. all quest works and no crushes.
barabashka
01.08.2006, 17:59
use your brain and hands.dll
i don't tell you about how to fix it, but it's works 100%.
"I don't tell you about how to fix it, but it's works 100%"
Wow. Just wow.
use your brain and hands.dll
i don't tell you about how to fix it, but it's works 100%.
Nice help :lol: "it works" Will try to work more with my brains ;)
barabashka > I dont think your way is the right one..
Why be stupid and dont learn people? Everyone hate leechers.. OK, so what about giving them chance to be developer teaching them at least something?
So tell us how to fix it, so everyone can fix it on own and there will be 0 leechers.
I think you get in basic school for nothing.. for free... you get basic information like reading..writing.. for nothing.. for free.. so dont be stupid dumb and start pay back. Start sharing info so ppl can learn how to make things .. so here will be 0 leechers.
the question is, does the mydying handler work or not, can anyone confirm it. from what i see its not working entirely
barabashka
01.08.2006, 18:35
handler my_dying works fine. there are many errors in base classes in correctly fetch_i, function_call, push_const digits. for example:
fetch_i // master
push_const 2016
but this is a stupid error, need
fetch_i // master
push_const 2008
and so on...
awesome, thank you for the brief information
barabashka
01.08.2006, 18:44
i try to fix all bugs at ai, maybe, sometimes i'll share them.
barabashka, help us!
It's not only errors in AI!!! npc.exe can't understand some functions, because they were updated and now they have new digits. Our version of AI.obj is newest then npc.exe (newest ver of nasc)
Anyone could explain to nonAIscripter, as me, how to fix new handlers and\or new functions?
well i dont know how to get the right function ids but i do know how to change them and write in ai.obj.
all you have to do is search for the old one and replace the # with the new one if u have a list.
barabashka
01.08.2006, 19:24
try to learn more about l2npc.exe and how ot works with AI. in it you can see more answers about correctly id's of all functions, variables and handlers.
About AI.OBJ, there is not so easy to rewrite it.
i dont know how to mess with exe files, but i know how to write the ai lol so we play 2 different worlds =s
долбоеб че еще сказать...
нпсы тупо не грузятся, если закоментировать всех (ex) то в городах нет, а вроде как сервак не падает....
barabashka
01.08.2006, 19:35
думаю, что в этом топике тебе делать нечего.
спасибо друК, рад был поодщатся
MamonT, see LinError to view ur error when npc server crashed!
barabashka, ну хотя б чуток намекни че какие функции должы делать, которые птс нпц.ехе не хавает
9.) Posting language
We only allow english post, so if you can't write it use a translator (http://babelfish.altavista.com/). You guys can post it in both languages, russian/english, spanish/english, whatever/english but always leave a english version with it.
barabashka
01.08.2006, 19:51
in many classes are missing such string as func_call 218103812 // func[AllocCodeInfoList], but arguments for this func are declared:(
then...
func_call 251789313 // func[SetInfo] are also missed, but it must be in class where quest was declared.
......
push_event // random1_list works with func_call 251658242 // func[RandomSelectOne], but in retail ai this func are missing.
i say once more: npc server is perfect, AI.OBJ is very bugged, couse it test AI for c5 (i think so).
Zil, тут бесполезно намекать, кто-то должен разобрать npc server, по вот такой аналогии, тога моментом все сделаем
Вот кусочек описания С1 функций вытащенных из c1 npc.exe, нам нуна тоже самое только по С4 нпс :) Всего делов то :)
........
func_call 196 // func[CreatePet] (CSharedCreatureData* to, int nPetCollarClassID, int nPetNpcClassID)
func_call 197 // func[AgitAuction]
func_call 198 // func[GetAgitDeposit]
func_call 199 // func[GetPledgeMoney] (CSharedCreatureData* c)
func_call 200 // func[OpenSiegeInfo]
func_call 201 // func[SetDoorHpLevel]
func_call 202 // func[GetDoorHpLevel]
func_call 203 // func[SetControlTowerLevel]
func_call 204 // func[GetControlTowerLevel]
and handlers:
handler 0 // NO_DESIRE
handler 1 // ATTACKED
handler 2 // SPELLED
handler 3 // TALKED
handler 4 // TALK_SELECTED
handler 5 // SEE_CREATURE
.........
myself struc:
p_state 2308 (pstate)
temper 2312 ?+
i_quest0 2316
i_quest1 2320
i_quest2 2324
i_quest3 2328
i_quest4 2332
.......
myself.sm struc
x 8 (m_Pos.x)
y 16 (m_Pos.y)
z 24 (m_Pos.z)
is_pc 108 (m_bIsUser) attacker
......
Sorry, but my english very bad. This example extract C1 function in npc.exe
We need extract function in C4 npc.exe. Who can?)
We try that :) We know that we can....but some pplz too lazy :-/
and goto IRC...there we can talk on russian:)
func_call 218300428 // func[SendScriptEvent]
func_call 184614913 // func[IsNullCreature]
droptable
10.08.2006, 10:47
My l2npc before crash, write this error:
08/10/2006 12:36:xx.xx8, [.\NPC.cpp][13493] SendScriptEvent(to=null)
08/10/2006 12:36:xx.xx8, func_call : Invalid argument count. Func[SendScriptEvent], argcount[1], sfnp.argN[3], ai[default_maker] event[ON_START], pc[67], sp[1]
I think, this is IA error,but I not Ai scripter... Please help me somebody!
Sorry for my bad english !
barabashka!
Please share the fixed Ai ! I testing certainly and report the errors!
midnight
10.08.2006, 11:25
The selected Attachment does not exist anymore
404 File Not Found: The File files/string_433.rar does not exist.
There is no need for a dll to fix this problem lol .. Someone already gave THE hint you need to fix it on a different page
The reason your NPCs are crashing IS because of MY_DYING but look at the error that l2npc generates .. read it further
You've got bad code in your AI
BTW, just so you guys know there are huge html exploits that exist and you're gonna get owned by them unless you start thinking ahead .. It is possible to fix them in AI too, you just need to know what to do :O
Launching a c4 retail server right now without taking this into consideration is like asking to have your server blown up
barabashka
12.08.2006, 06:38
Ehhh, here it is. Say tnx to me:)
AI_FULLY_FIXED (http://rapidshare.de/files/29092754/ai.rar.html)
For password PM me.
P.S. Need some cash:)
droptable
12.08.2006, 06:49
Thx ! PM sent...
TheOrder
12.08.2006, 06:56
Cash for u :) !!! I love smart people :twisted:
Phantom2005
12.08.2006, 08:21
08/10/2006 12:36:xx.xx8, [.\NPC.cpp][13493] SendScriptEvent(to=null)
08/10/2006 12:36:xx.xx8, func_call : Invalid argument count. Func[SendScriptEvent], argcount[1], sfnp.argN[3], ai[default_maker] event[ON_START], pc[67], sp[1]
goto class default_maker
goto the ON_START handler.
then go to the 67th line.. after variables stuff... that func_call is bugged.
[last-send: iria001.htm][recived: observer_1477443854_1] : INVALID link on bypass[.\UserSocket_HTMLCmd.cpp][177]
[last-send: iria001.htm][recived: observer_group_1477443854_8] : INVALID link on bypass[.\UserSocket_HTMLCmd.cpp][177]
[last-send: iria001.htm][recived: observer_1477443854_16] : INVALID link on bypass[.\UserSocket_HTMLCmd.cpp][177]
Can anyone explain what it mean? As i understand it missmatch ai with html?
wow I just opened AI to start looking at it, and I saw this share. Let me check it :P
Ehhh, here it is. Say tnx to me:)
AI_FULLY_FIXED (http://rapidshare.de/files/29092754/ai.rar.html)
For password PM me.
P.S. Need some cash:)
give me plz pass :)
Ehhh, here it is. Say tnx to me:)
AI_FULLY_FIXED (http://rapidshare.de/files/29092754/ai.rar.html)
For password PM me.
P.S. Need some cash:)
Thx thx thx
Big thx
I'm see to you work and say thx again
Ehhh, here it is. Say tnx to me:)
AI_FULLY_FIXED (http://rapidshare.de/files/29092754/ai.rar.html)
For password PM me.
P.S. Need some cash:)
I sended pm to you, but I don't know if you have received it. I gave you all my cash. Thank you!
It's not so good us he say just a regular fixes what was posted here... and some minor addons... and it aint working perfect server still goes down nothing special... :(
i didnt check all yet, but quest are working with this AI so it can be good, need to test more, thx for yor work
we are cheking it - 20 hours without cashes (the best befor was 1 hour :))
quests are working - I think it's good job :)
Thanks :)
lilith & anakim & baium work with this ai?
Some quests are working some dont. try mimirs quest at some point your stuck because a gem isnt dropping.
Some quests are working some dont. try mimirs quest at some point your stuck because a gem isnt dropping.
I've thought the same on other quest - but killing mobs for about two hours I've got first quest item (char lvl 70+, mobs - 39)
Chines random, like our players says...
3rd class change quests are working fine, rest i didnt checked yet
[last-send: iria001.htm][recived: observer_1477443854_1] : INVALID link on bypass[.\UserSocket_HTMLCmd.cpp][177]
[last-send: iria001.htm][recived: observer_group_1477443854_8] : INVALID link on bypass[.\UserSocket_HTMLCmd.cpp][177]
[last-send: iria001.htm][recived: observer_1477443854_16] : INVALID link on bypass[.\UserSocket_HTMLCmd.cpp][177]
Can anyone explain what it mean? As i understand it missmatch ai with html?
Can anyone help??? Where is the problem: client side\npc+ai\html???
I don't know what it the problem for the invalid link too, if anyone can help us.. thnk
Well, i was fixing AI... and i test some of AI posted in this thread... all seens to work good... but i have a problem with this NPC...
http://img151.imageshack.us/img151/3541/shot00001ab2.th.jpg (http://img151.imageshack.us/my.php?image=shot00001ab2.jpg)
This NPC is supposed to walk (yes, walk, not run) along Talking Island Village, from a door of the city to other.. and talk... i dont know what is bad.. i think maybe using WayPoints but i think this AI must me enought but i dont understand how SCRIPT_EVENT handler works or how it starts... someone can help ? i try to decompile AI of scribe_leandro.. i have this.. any idea ? why this npc dont walk ? this AI is incomplete ? or what is happening ?
NOTE: i dont know if I decompile this AI good.. is my first attemp with C4 AI. Maybe someone do a decompiler ? and a compiler ? It will be very usefull.
class 1 scribe_leandro : citizen {
handler:
EventHandler CREATED(myself) {
AddMoveSuperPointDesire((myself.sm.name), 0, 2000);
ChangeMoveType(myself, 0);
super;
}
EventHandler SCRIPT_EVENT(myself, script_event_arg1, script_event_arg2) {
if (script_event_arg1 == 10020) {
if (script_event_arg2 == 3) {
Say(MakeFString(1010205, "", "", "", "", ""));
}
else if (script_event_arg2 == 4) {
Say(MakeFString(1010206, "", "", "", "", ""));
}
AddMoveSuperPointDesire((myself.sm.name), 0, 50);
}
super;
}
}
Hmmm....I have another version ;)
class 1 scribe_leandro : citizen {
handler:
EventHandler CREATED(myself) {
AddMoveSuperPointDesire((myself.sm+200), 0, 2000);
ChangeMoveType(0);
super;
}
EventHandler USER_CONNECTED(myself, script_event_arg1, script_event_arg2) {
if (script_event_arg1 == 10020) {
if (script_event_arg2 == 3) {
Say(MakeFString(1010205, "", "", "", "", ""));
}
else if (script_event_arg2 == 4) {
Say(MakeFString(1010206, "", "", "", "", ""));
}
AddMoveSuperPointDesire((myself.sm+200), 0, 50);
}
super;
}
}
You are using bad handler IDs....
ID 49 now is SCRIPT_EVENT
USER_CONNECTED is id 55
Aikeleer
13.08.2006, 19:19
You mean
AddMoveSuperPointDesire((myself.sm.name), 0, 2000);
My best guess is that you changed HDAI's functions etc for a bit. Check up on the creaturenames aswell. ;)
Aikeleer
13.08.2006, 19:23
Ok, it uses someknid of waypoint interface indeed, SuperPoints to be exact. What is the issue? He doesn't mvoe at all? In that case the superpointlist just doesnt exists. If you don't want to bother creating one and you know where he should walk, you can do it manually with the func[AddMoveToDesire].
In my server this npc is moving correctly, it's related with SuperPoint.bin in geodata, have you this file correctly?
In my server this npc is moving correctly, it's related with SuperPoint.bin in geodata, you have this file correctly?
Maybe that is the problem, thanks MuNLoK, go to check that.
Hmmm....I have another version ;)
lol you dont have another version..
myself.sm+200 = myself.sm.name
Some quests are working some dont. try mimirs quest at some point your stuck because a gem isnt dropping.
I've thought the same on other quest - but killing mobs for about two hours I've got first quest item (char lvl 70+, mobs - 39)
Chines random, like our players says...
I killed like over 500 chimera_pieces now still no drop so i think its broken.
I get the my_dying thing in npc when i kill those.
Ehhh, here it is. Say tnx to me:)
AI_FULLY_FIXED (http://rapidshare.de/files/29092754/ai.rar.html)
For password PM me.
P.S. Need some cash:)
Give the pwd, your box to pm is full.
Thanks.
seraphii
21.08.2006, 14:26
Anyboby have the passwordof AI, i send pm for barabashka an i have no aswer :(
athlon64
21.08.2006, 19:49
http://rapidshare.de/files/29092754/ai.rar.html
THX
seraphii
21.08.2006, 19:55
this is the AI full?
No
http://rapidshare.de/files/29092754/ai.rar.html
THX
seraphii
21.08.2006, 20:02
why you share the same thing and don´t share the pass? anybody have this ai fixed or the password of AI, Barabashka can you share the password your private box is full :(
seraphii
21.08.2006, 20:04
this guy have a fake user and flood with this things :(
seraphii
22.08.2006, 13:13
For Barabashka, share your pass please, i send PM for you, and this message return to me:
barabashka has exceeded their stored private messages quota and can not accept further messages until they clear some space.
Yep would love that password please.
can someone pm me the pass please Barabashka seems to be MIA
Yeah I need it to i tryed some Ai from 99Nets but server dont start
it crash after some npcs :(
Black666666
01.09.2006, 20:12
Guys. plz tell pas for AI Barabashka.
barabashka
08.09.2006, 11:27
Here is my last update of AI. Fixed many parameter's misses and so on...
Have fun
P.S. Pass for archive is the same as i uploaded last time.
link: hxxp://rapidshare.de/files/32365693/ai.rar
can i get the pass please ? thanks for sharing :)
work o no work? any idea for problem... ???
liming09
11.09.2006, 00:54
can someone pm me the pass please !! thx!!
kepler001
11.09.2006, 02:37
password plz
dinesat4
04.10.2006, 07:24
Password Come On!!!