![]() |
|
|
#1 |
|
Архивный участник
Join Date: Dec 2005
Posts: 83
|
Reads ai.obj, does simple check of syntax and loads parameters of classes. Then reads npcdata.txt and takes from a npc_ai field ai-parameters Checks each one, on presence at a corresponding class in ai.obj
More functioanality will be added in future version. Of course you need to save ai.obj and npcdata.txt in the same forder in ansi format! Start chk_ai.bat, wait a time and results of checking see in result.txt Tips: ERROR(123456) 123456 - line number in ai.obj contain error WARN(123456) - the same ------------ v2: Checks if npc_ai class exists. Print only errors (specially for HF) pass: for_pp Вложения из исходного сообщения (сами файлы в копии отсутствуют): npcaichk.rar — 78057 байт npcaichk_v2.rar — 77993 байт |
|
|
|
|
#2 |
|
Архивный участник
Join Date: Aug 2005
Posts: 1,531
|
Can tell me more about work this tool? What checking? Have Class for Npc in Ai.obj?
And... what can i do for take password to archive? Pray? |
|
|
|
|
#3 |
|
Архивный участник
Join Date: Dec 2005
Posts: 83
|
sorri )
see first post |
|
|
|
|
#4 |
|
Архивный участник
Join Date: Dec 2005
Posts: 83
|
|
|
|
|
|
#5 |
|
Архивный участник
Join Date: Aug 2005
Posts: 1,531
|
Tell me, please, for examples - what do This Tool?
How understund this? Checking NPC: [range_golem_ep_30], AI class: range_golem_ep_30 ... DDMagic ERR Checking NPC: [dark_panther_ep_01], AI class: dark_panther_ep_01 ... DDMagic ERR what is it? Not exist? Not exist in parent class or in main class? Checking NPC: [dark_panther_ep_01], AI class: dark_panther_ep_01 ... what is it? it good or not? |
|
|
|
|
#6 | ||
|
Архивный участник
Join Date: Dec 2005
Posts: 83
|
Quote:
Quote:
npc_ai={[dark_panther_ep_01 ]} |
||
|
|
|
|
#7 |
|
Архивный участник
Join Date: Dec 2005
Posts: 83
|
Additional info: tool have commented code for handlers body checks on push_parameter XXXXX. It check if this parameter present in class of this handler or any of parents
If you have lot of CPU resources - uncomment this in chk_ai.awk: # val=get_param_value(class_name, $2) # if (val=="") val="ERR" # if (/^[:space:]*push_parameter /) print class_name, $2, val |
|
|
|
|
#8 | |
|
Архивный участник
Join Date: Aug 2005
Posts: 1,531
|
Quote:
class 1 summon_siege_tank : default_npc parameter_define_begin int DDMagic 1082881 What next? Your tool show 3Mb result for my good AI.obj. It's only last npc what i checked.
|
|
|
|
|
|
#9 |
|
Архивный участник
Join Date: Dec 2005
Posts: 83
|
have no errors while loading ai.obj ?
another problem may be if parameter_define_begin not start from begining of line... may be spaces before. Regexp sounds like: /^parameter_define_begin/ try change to /^[:space:]*parameter_define_begin/ |
|
|
|
|
#10 |
|
Архивный участник
Join Date: Dec 2005
Posts: 83
|
also problem with loading classes may cause if no spaces before and/or after ":" in class header
|
|
|
|
|
#11 |
|
Архивный участник
Join Date: Aug 2005
Posts: 1,531
|
I found problem. AI must be in ANSI too. Baaddd....
uke: Next... Checking NPC: [range_golem_ep_30], AI class: range_golem_ep_30 ... DDMagic OK Checking NPC: [dark_panther_ep_01], AI class: dark_panther_ep_01 ... [dark_panther_ep_01] again whitout OK or ERR. Are you have limit to longer of line? ![]() Next... Make report only to BAD class, because i cant find errors in my big file. Or make guide for all reports (I mean documentation - "How find error in log file?" )
|
|
|
|
|
#12 |
|
Архивный участник
Join Date: Dec 2005
Posts: 83
|
hehe
of course all files in ansi to found errors just Ctrl-F -> ERR or WARN and check Match case! |
|
|
|
|
#13 |
|
Архивный участник
Join Date: Dec 2005
Posts: 83
|
let it be )
v2: checks if npc_ai class exist, print only errors |
|
|
|
|
#14 |
|
Архивный участник
Join Date: Jul 2006
Posts: 118
|
Thank for share
|
|
|
|
|
#15 |
|
Архивный участник
Join Date: Feb 2005
Posts: 357
|
thx for sharing
|
|
|
|
|
#16 |
|
Архивный участник
Join Date: Sep 2006
Posts: 26
|
Loading ai.obj...
Finished loading ai.obj Loading npcdata... Checking NPC: [ g r e m l i n ] , AI class: ... Checking NPC: [ r a b b i t ] , AI class: ... Checking NPC: [ g o b l i n ] , AI class: ... Error? thx and thx for sharing |
|
|
|
|
#17 |
|
Архивный участник
Join Date: Feb 2005
Posts: 357
|
NPC: [r14_roomboss_teleport], AI class: r14_roomboss_teleport parameter: TeleportEffect ERR
that skill is only for visual effect but that npc doesn't teleports itself neither players at least not in our ai, any idea? |
|
|
|
|
#18 |
|
Архивный участник
Join Date: Dec 2005
Posts: 83
|
May be npcdata not in ANSI format???
|
|
|
|
|
#19 |
|
Архивный участник
Join Date: Dec 2005
Posts: 83
|
May be need to remove TeleportEffect from this npc in npcdata, if it is not needed. I dont know what does it mean at all. It is just cheker - it see exist or not. Then you have to decise what to do by self ))
|
|
|
| Thread Tools | Search this Thread |
| Display Modes | |
|
|