Post Pacific

Post Pacific (https://postpacific.loc-online.com/index.php)
-   Темы без сохранившегося раздела (https://postpacific.loc-online.com/forumdisplay.php?f=10001)
-   -   Fixin NPC crash in Retail Server (https://postpacific.loc-online.com/showthread.php?t=5283)

KTPSMF 01.08.2006 07:06

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...

hel 01.08.2006 09:07

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)

GeNtOo 01.08.2006 09:10

my npc not crashing just quest's not work^^

KTPSMF 01.08.2006 09:16

i dont think i't sql problem

KTPSMF 01.08.2006 09:25

someone give me example of incorrect function

and how u found when it is correct and when it is not

hel 01.08.2006 09:38

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...

dar55 01.08.2006 10:14

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 сервер больше незнает ?)

Zil 01.08.2006 12:54

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!

Zil 01.08.2006 13:15

Give us it :) and we will finishing ur work ;)

but as I see this handler works fine, because we tested it

rodier 01.08.2006 13:18

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.

rodier 01.08.2006 13:20

Quote:

Originally Posted by testdude
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)

Sauron 01.08.2006 13:40

Quote:

Originally Posted by rodier
Quote:

Originally Posted by testdude
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

KTPSMF 01.08.2006 13:53

Quote:

Originally Posted by rodier
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

Zil 01.08.2006 14:27

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

KTPSMF 01.08.2006 17:50

Quote:

Originally Posted by Zil
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.

Drac 01.08.2006 17:57

How to fix AI?

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%.

Cardon 01.08.2006 18:04

"I don't tell you about how to fix it, but it's works 100%"

Wow. Just wow.

dknod 01.08.2006 18:08

Quote:

Originally Posted by barabashka
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 ;)

rodier 01.08.2006 18:08

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.

DeKoth 01.08.2006 18:10

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...

DeKoth 01.08.2006 18:41

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.

Zil 01.08.2006 18:49

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)

hel 01.08.2006 19:03

Anyone could explain to nonAIscripter, as me, how to fix new handlers and\or new functions?

DeKoth 01.08.2006 19:07

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.

DeKoth 01.08.2006 19:28

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

MamonT 01.08.2006 19:31

долбоеб че еще сказать...

нпсы тупо не грузятся, если закоментировать всех (ex) то в городах нет, а вроде как сервак не падает....

barabashka 01.08.2006 19:35

думаю, что в этом топике тебе делать нечего.

MamonT 01.08.2006 19:37

спасибо друК, рад был поодщатся

Zil 01.08.2006 19:39

MamonT, see LinError to view ur error when npc server crashed!
barabashka, ну хотя б чуток намекни че какие функции должы делать, которые птс нпц.ехе не хавает

Truffe 01.08.2006 19:42

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).

dar55 01.08.2006 19:51

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?)

Zil 01.08.2006 20:00

We try that :) We know that we can....but some pplz too lazy :-/
and goto IRC...there we can talk on russian:)


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