Post Pacific  

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

Notices

 
 
Thread Tools Search this Thread Display Modes
Old 11.10.2006, 06:48   #1
GMan
Архивный участник
 
Join Date: Sep 2005
Posts: 198
Default OwnItemCount(c=null)

I need some help figuring out this error, it spams my NPC window way too much to ignore it

[.\NPC.cpp][6358] OwnItemCount(c=null) I'm [giant_spider]

there seems to be only a few NPCs that it does this on

[giant_spider]
[blader]
[poker]
[langk_lizardman]
[poison_predator]

thoes seem to be the only NPC that it says it on

Anyone know what this error means

thanks in advance
GMan is offline  
Old 11.10.2006, 07:09   #2
m4rk
Архивный участник
 
Join Date: Jan 2006
Posts: 607
Default

I have it too, guess it's a problem with incorrect settings of ownitem function in the ai
m4rk is offline  
Old 14.10.2006, 22:56   #3
Mega
Архивный участник
 
Join Date: Oct 2006
Posts: 13
Default

Well actualy I was able to figure out that OwnItemCount(c=null) message appears when quest item should be add. In fact, for that code:
Code:
push_event	//  myself
	push_const 704
	add
	fetch_i
	push_event	//  myself
	push_const 704
	add
	fetch_i	//  c_quest0
	push_const 328
	add
	fetch_i
	push_const 1173
	push_const 1
	func_call 184746111	//  func[GiveItem1]
	shift_sp -3
	shift_sp -1
	push_event	//  myself
	push_const 704
	add
	fetch_i
	push_event	//  myself
	push_const 704
	add
	fetch_i	//  c_quest0
	push_const 328
	add
	fetch_i
	push_const 1173
	func_call 184680579	//  func[OwnItemCount]
	shift_sp -2
	push_const 20
	equal
	branch_false L36870
one should get spider_leg quest item for Path to Knight quest.

How can I decode that part using nasc to check code? I was trying to compare with other part of quest where player can get quest items, but still I cant figure out lot of things...

Please someone tip where to dig - 'cause i want to fix my quests (lot of them messed up) and i'm too lame to decompress from ai.obj so far.
thanks
Mega is offline  
Old 23.10.2006, 10:49   #4
Mega
Архивный участник
 
Join Date: Oct 2006
Posts: 13
Default

Quote:
Originally Posted by GMan View Post
Anyone know what this error means
That's either "protection from lamer" or, maybe, AI for pvp servers with removed quests. Found that in my AI:

Code:
class 1 poison_spider : warrior_passive_casting_curse
class_end

class 1 poison_spider1 : warrior_passive_casting_curse
handler 10 1633	//  MY_DYING
	variable_begin
	blah-blah-blah
So you need to check your npcdata and change ai to poison_spider1 (if needed).
Still I wasn't able to make few quests works for npc: poker, blader, poison_predator.

Wonder if anyone can give them..
Mega is offline  
Old 25.10.2006, 12:05   #5
HF
Архивный участник
 
Join Date: Aug 2005
Posts: 1,531
Default

Quote:
Originally Posted by Mega View Post
...
Code:
class 1 poison_spider : warrior_passive_casting_curse
class_end

class 1 poison_spider1 : warrior_passive_casting_curse
handler 10 1633	//  MY_DYING
	variable_begin
	blah-blah-blah
...
I have not same in my AI.obj. No duplicate classes. Where you take this AI.obj?

second question: you replace one class to another. Problem fixed? (example, for poison_spider)
HF is offline  
Old 25.10.2006, 13:37   #6
sys[antaris]
Архивный участник
 
Join Date: May 2005
Posts: 73
Default

//rus В этих классах мобов отсутствует проверка на наличие квеста 402 (Path to Human Knight) у аттакера. Навесьте его а себя (//setquest 402 1) и попытайтесь убить какого либо моба из этих:

giant_spider
poison_spider
poison_predator
langk_lizardman
langk_lizardman_warrior
langk_lizardman_scout
silent_horror
poker
balder

Если немного подумать, то фиксится на раз-два.
sys[antaris] is offline  
Old 25.10.2006, 14:02   #7
Mega
Архивный участник
 
Join Date: Oct 2006
Posts: 13
Default

Yes, fixed problem with poison_spider related quests. Fixed almost all first class change quests that way. Still few mobs left generating error. Now working with langk_lizardman_warrior and scout..

Quote:
I have not same in my AI.obj. No duplicate classes. Where you take this AI.obj?
Errrr.. Not sure about source.. Have a LOT of different AIs. So I had to choose one that works and generate less errors :P
When compiling PP_C4Retail ai_merged.txt using NASC - resulting ai.obj was about 17mb and server won't start with it =)
As for exsisting ai.obj, there are some missmatches as
Code:
func_call 218103813	//  func[AllocCodeInfoList]
From digital pinned post i've learned that AllocCodeInfoList should be 218103812...

what does number next to handler mean? found that my AI differs from that in PP_C4RETAIL pack with those numbers... Maybe I should check those:
Code:
handler 10 1633	//  MY_DYING
?
__________________________________________

[rus]
Да. Пофиксил и poison_spiderов и практически все квесты на первую профу. Правда осталось несколько мобов, которые все же генерят ошибку. Это langk_lizardman_warriorы, scoutы и пару паучков..
Проблемма ещё в том, что ai моба отличается от названия в клиенте. Тот же Talon Spider называется по npcdata как poker. А Arachnid Predator как bind_poison_spider. Но то уже такое..

Quote:
I have not same in my AI.obj. No duplicate classes. Where you take this AI.obj?
Ымммм.. Тяжело сказать однозначно. Пока заставил сервер загрузится и заработать, перебрал кучу вариантов AI. Выбрал тот что больше занимает и генерит меньше ошибок :P
Пробовал компилить NASCом PP_C4Retail ai_merged.txt - получил ai.obj где-то на 17mb сервер с ним ну никак стартовать не хотел =)
А сам obj файл содержал некоторые ошибки типа func_call 218103813 // func[AllocCodeInfoList]
Я уже вычитал что AllocCodeInfoList это 218103812..

Что означает число после номера хендлера?
10ый хендлер это MY_DYING - а за ним?
Code:
handler 10 1633	//  MY_DYING
?
[/rus]

PS [rus]
Quote:
В этих классах мобов отсутствует проверка на наличие квеста 402
О!! Пасиб!! Буду знать что я ищу! ^^
Потому что приходилось ковырять весь класс!
[/rus]
Mega is offline  
Old 25.10.2006, 14:16   #8
sys[antaris]
Архивный участник
 
Join Date: May 2005
Posts: 73
Default

//rus handler 10 1633 // MY_DYING

1633 - это количество строк кода в хандлере (в скомпиленном). Переменные не учитываются.

Я пофиксил всех мобов, вставив проверку на наличие квеста и обязательного квестового итема.

Показываю на примере исправленного моба poker:
http://rafb.net/paste/results/ptmBA650.html

По аналогии фиксятся и остальные мобы.

//eng
Fixed class poker without error OwnItemCount (http://rafb.net/paste/results/ptmBA650.html) and inserted checks on quest 402 (Path to Human Knight) and quest item.

Check:
Code:
target = last_attacker
if ((myself.OwnItemCount(target, 1176) == 1) && myself.HaveMemo(target, 402))
{
	always_list.SetInfo(1, target);
}
AI compiled code:
Code:
...
	push_event	//  target
	push_const 96
	add
	push_reg_sp
	fetch_i
	push_event	//  last_attacker
	push_const 656
	add
	fetch_i
	assign
	shift_sp -1
	push_event	//  myself
	push_const 704
	add
	fetch_i
	push_event	//  target
	push_const 96
	add
	fetch_i
	push_const 1176
	func_call 184680579	//  func[OwnItemCount]
	shift_sp -2
	push_const 1
	equal
	push_reg_sp
	fetch_i
	branch_false L391061
	push_event	//  myself
	push_const 704
	add
	fetch_i
	push_event	//  target
	push_const 96
	add
	fetch_i
	push_const 402
	func_call 184680543	//  func[HaveMemo]
	shift_sp -2
	and
L391061
	branch_false L39107
L39106
	push_event	//  always_list
	push_const 688
	add
	fetch_i
	push_const 1
	push_event	//  target
	push_const 96
	add
	fetch_i
	func_call 251789313	//  func[SetInfo]
	shift_sp -2
	shift_sp -1
L39107
...
Others mobs are similarly corrected.

p.s. sorry my english, not primary lang.
sys[antaris] is offline  
Old 25.10.2006, 15:12   #9
Mega
Архивный участник
 
Join Date: Oct 2006
Posts: 13
Default

Thanx!! I'm off to RTFM

[rus]*Ушел учить матчасть*[/rus]
Mega is offline  
Old 27.10.2006, 21:48   #10
wton
Архивный участник
 
Join Date: May 2005
Posts: 463
Default

somebody to found some adjustment for this problem? him agrece if it is responsible for fabor ^^

alguien a encontrado algun arreglo para este problema? se le agrece si responde por fabor ^^
wton is offline  
Old 27.10.2006, 22:21   #11
Phantom2005
Архивный участник
 
Join Date: Aug 2005
Posts: 394
Default

Code:
handler 10 1633	//  MY_DYING
Means of how many lines the class consists.
for example:
Code:
handler 10 27
1	push_event	//  target
2	push_const 96
3	add
4	push_reg_sp
5	fetch_i
6	push_event	//  last_attacker
7	push_const 656
8	add
9	fetch_i
10	assign
11	shift_sp -1
12	push_event	//  myself
13	push_const 704
14	add
15	fetch_i
16	push_event	//  target
17	push_const 96
18	add
19	fetch_i
20	push_const 1176
21	func_call 184680579	//  func[OwnItemCount]
22	shift_sp -2
23	push_const 1
24	equal
25	push_reg_sp
26	fetch_i
27	branch_false L391061
handler_end
kind of useless though.
Phantom2005 is offline  
Old 28.10.2006, 15:19   #12
wton
Архивный участник
 
Join Date: May 2005
Posts: 463
Default

xD not to understand, a little costs to me XD

xD no entendi, me cuesta un poco XD
wton is offline  
Old 29.10.2006, 00:37   #13
rodier
Архивный участник
 
Join Date: May 2005
Posts: 979
Default

please can you share your ai for langk_lizardman? most of error spam is with this npc.. thanks
rodier is offline  
Old 29.10.2006, 06:23   #14
sys[antaris]
Архивный участник
 
Join Date: May 2005
Posts: 73
Default

Quote:
Originally Posted by rodier View Post
please can you share your ai for langk_lizardman? most of error spam is with this npc.. thanks
no problem

http://rafb.net/paste/results/WZFcSl81.html
sys[antaris] is offline  
Old 31.10.2006, 13:05   #15
kepler001
Архивный участник
 
Join Date: Jun 2005
Posts: 549
Default

Quote:
Originally Posted by sys[antaris] View Post


Not Found
The requested document was not found on this server.


--------------------------------------------------------------------------------

Web Server at rafb.net
kepler001 is offline  
Old 02.11.2006, 05:31   #16
Morte
Архивный участник
 
Join Date: Mar 2006
Posts: 41
Default

Quote:
Originally Posted by wton View Post
xD not to understand, a little costs to me XD

xD no entendi, me cuesta un poco XD
sys[antaris] perfectly explained how to fix this problem. Use simple logic and you will be able to fix all ownitemcount c=null problems
Morte is offline  
Old 26.11.2006, 17:54   #17
KOC2000
Архивный участник
 
Join Date: Jun 2006
Posts: 100
Default

I still don't get this.. I compared the code with my ai code and it's the same..
Can someone explain more please?
KOC2000 is offline  
Old 23.02.2007, 14:05   #18
JotaC
Архивный участник
 
Join Date: Mar 2006
Posts: 69
Default

Quote:
Originally Posted by sys[antaris] View Post
Sorry for bumping the old thread, any Fix to the lizardman problem or i didnt searched correctly?
Ty
JotaC is offline  
Old 23.02.2007, 15:10   #19
YakudZe
Архивный участник
 
Join Date: Dec 2006
Posts: 205
Default

reshare pls..
YakudZe 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 22:45.