![]() |
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:
Code:
push_event // myselfHow 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 |
Quote:
Code:
class 1 poison_spider : warrior_passive_casting_curseStill I wasn't able to make few quests works for npc: poker, blader, poison_predator. Wonder if anyone can give them.. |
Quote:
second question: you replace one class to another. Problem fixed? (example, for poison_spider) |
//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..
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:
Пробовал компилить 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] |
//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_attackerCode:
...p.s. sorry my english, not primary lang. |
Thanx!! I'm off to RTFM :)
[rus]*Ушел учить матчасть*[/rus] |
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 ^^ |
Code:
handler 10 1633 // MY_DYINGfor example: Code:
handler 10 27 |
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
|
Quote:
http://rafb.net/paste/results/WZFcSl81.html |
Quote:
Not Found The requested document was not found on this server. -------------------------------------------------------------------------------- Web Server at rafb.net |
Quote:
|
I still don't get this.. I compared the code with my ai code and it's the same..
Can someone explain more please? |
Quote:
Ty |
reshare pls..
|
| All times are GMT. The time now is 15:48. |