View Full Version : 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
I have it too, guess it's a problem with incorrect settings of ownitem function in the ai
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:
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. :rolleyes:
thanks
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:
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..
...
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)
sys[antaris]
25.10.2006, 13:37
//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
Если немного подумать, то фиксится на раз-два. ;)
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..
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
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:
handler 10 1633 // MY_DYING
?
__________________________________________
Да. Пофиксил и poison_spiderов и практически все квесты на первую профу. Правда осталось несколько мобов, которые все же генерят ошибку. Это langk_lizardman_warriorы, scoutы и пару паучков..
Проблемма ещё в том, что ai моба отличается от названия в клиенте. Тот же Talon Spider называется по npcdata как poker. А Arachnid Predator как bind_poison_spider. Но то уже такое..
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 - а за ним?
handler 10 1633 // MY_DYING
?
PS В этих классах мобов отсутствует проверка на наличие квеста 402
О!! Пасиб!! Буду знать что я ищу! ^^
Потому что приходилось ковырять весь класс!
sys[antaris]
25.10.2006, 14:16
//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:
target = last_attacker
if ((myself.OwnItemCount(target, 1176) == 1) && myself.HaveMemo(target, 402))
{
always_list.SetInfo(1, target);
}
AI compiled 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.
Thanx!! I'm off to RTFM :)
*Ушел учить матчасть*
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 ^^
Phantom2005
27.10.2006, 22:21
handler 10 1633 // MY_DYING
Means of how many lines the class consists.
for example:
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.
xD not to understand, a little costs to me XD
xD no entendi, me cuesta un poco XD
please can you share your ai for langk_lizardman? most of error spam is with this npc.. thanks
sys[antaris]
29.10.2006, 06:23
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
kepler001
31.10.2006, 13:05
;70919']no problem ;)
http://rafb.net/paste/results/WZFcSl81.html
Not Found
The requested document was not found on this server.
--------------------------------------------------------------------------------
Web Server at rafb.net
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
I still don't get this.. I compared the code with my ai code and it's the same..
Can someone explain more please?
;70919']no problem ;)
http://rafb.net/paste/results/WZFcSl81.html
Sorry for bumping the old thread, any Fix to the lizardman problem or i didnt searched correctly?
Ty