![]() |
|
|
#1 |
|
Архивный участник
Join Date: Sep 2005
Posts: 198
|
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 |
|
|
|
|
#2 |
|
Архивный участник
Join Date: Jan 2006
Posts: 607
|
I have it too, guess it's a problem with incorrect settings of ownitem function in the ai
|
|
|
|
|
#3 |
|
Архивный участник
Join Date: Oct 2006
Posts: 13
|
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 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 |
|
|
|
|
#4 |
|
Архивный участник
Join Date: Oct 2006
Posts: 13
|
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 Still I wasn't able to make few quests works for npc: poker, blader, poison_predator. Wonder if anyone can give them.. |
|
|
|
|
#5 | |
|
Архивный участник
Join Date: Aug 2005
Posts: 1,531
|
Quote:
second question: you replace one class to another. Problem fixed? (example, for poison_spider) |
|
|
|
|
|
#6 |
|
Архивный участник
Join Date: May 2005
Posts: 73
|
//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 Если немного подумать, то фиксится на раз-два.
|
|
|
|
|
#7 | |||
|
Архивный участник
Join Date: Oct 2006
Posts: 13
|
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:
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] 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:
Пока заставил сервер загрузится и заработать, перебрал кучу вариантов 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:
Потому что приходилось ковырять весь класс! [/rus] |
|||
|
|
|
|
#8 |
|
Архивный участник
Join Date: May 2005
Posts: 73
|
//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);
}
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 ... p.s. sorry my english, not primary lang. |
|
|
|
|
#9 |
|
Архивный участник
Join Date: Oct 2006
Posts: 13
|
Thanx!! I'm off to RTFM
![]() [rus]*Ушел учить матчасть*[/rus] |
|
|
|
|
#10 |
|
Архивный участник
Join Date: May 2005
Posts: 463
|
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 ^^ |
|
|
|
|
#11 |
|
Архивный участник
Join Date: Aug 2005
Posts: 394
|
Code:
handler 10 1633 // MY_DYING 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 |
|
|
|
|
#12 |
|
Архивный участник
Join Date: May 2005
Posts: 463
|
xD not to understand, a little costs to me XD
xD no entendi, me cuesta un poco XD |
|
|
|
|
#13 |
|
Архивный участник
Join Date: May 2005
Posts: 979
|
please can you share your ai for langk_lizardman? most of error spam is with this npc.. thanks
|
|
|
|
|
#14 | |
|
Архивный участник
Join Date: May 2005
Posts: 73
|
Quote:
![]() http://rafb.net/paste/results/WZFcSl81.html |
|
|
|
|
|
#15 | |
|
Архивный участник
Join Date: Jun 2005
Posts: 549
|
Quote:
Not Found The requested document was not found on this server. -------------------------------------------------------------------------------- Web Server at rafb.net |
|
|
|
|
|
#16 |
|
Архивный участник
Join Date: Mar 2006
Posts: 41
|
|
|
|
|
|
#17 |
|
Архивный участник
Join Date: Jun 2006
Posts: 100
|
I still don't get this.. I compared the code with my ai code and it's the same..
Can someone explain more please? |
|
|
|
|
#18 | |
|
Архивный участник
Join Date: Mar 2006
Posts: 69
|
Quote:
Ty |
|
|
|
|
|
#19 |
|
Архивный участник
Join Date: Dec 2006
Posts: 205
|
reshare pls..
|
|
|
|
|