![]() |
|
|
#1 |
|
Архивный участник
Join Date: Oct 2006
Posts: 57
|
As good u know in c5 mobs id was changed, i made little tool to change that id in ai.obj, tool will make for u knew ai with changed push_const 10xxxxx (where 10xxxxx is npcid). I found 1 bad thing, in ai.obj is one more thing which uses push_const 10xxxxx format - fstrings, so u will need to marge your new ai with old and change ids of fstring manually or add new fstring ids to fstring.txt (i made tool for that too -fstring.pl). Tool is writed in perl so u'll need perl to use that.
p.s Before u use a tool make sure that (ai.obj/fstring.txt is in ANSI encoding and in same folder with tool). I made quick test if new ai works, and server started with new ai, mobs were spawned, baium works (when takled with baium statue->wake up baium-> baium spawned) etc need more testing but have no time xD. Update: Ver 1.1 will change only npc's id so no need to worry about fstrings :P. ver 1.2 will make a log file with some info about what was changed (line in ai.obj/npcname/c5id/c4id etc). Вложения из исходного сообщения (сами файлы в копии отсутствуют): AiIdConverter.rar — 11553 байт AiIdConverter1.1.rar — 53346 байт AiIdConverter1.2.rar — 50502 байт |
|
|
|
|
#2 |
|
Архивный участник
Join Date: Aug 2005
Posts: 34
|
it works on strings, not id's?
what's the point of this? i have changed baium id's, works with standard c4 ai. |
|
|
|
|
#3 |
|
Архивный участник
Join Date: Oct 2006
Posts: 57
|
hm... maybe, if in your ai was something what was checking id of mob and comparing it to something else this tool would be usefull for u :P (for example quest-or smth- which spawns mobs if that quest uses id from c4 data in c5 id of that mob is different so it should be changed in ai too).
p.s does quests for changing proffesion with standard c4 ai works for u too? (in c5 server). |
|
|
|
|
#4 |
|
Архивный участник
Join Date: Aug 2005
Posts: 34
|
Yes, however, in interlude, the place of 3rd Quest Tablet's have moved due to fortresses.
which will require you to change the npcpos of the tablet's and the spawn loc in createprivate func's loc. It's all strings, not id's. Nothing has changed, in that way. pretty much only direct script data movement, (also for other things). |
|
|
|
|
#5 |
|
Архивный участник
Join Date: Oct 2006
Posts: 57
|
Example:
Code:
push_event push_const 704 // myself add fetch_i push_const 1012544 <-------HERE S3100. "pirates_zombie_captain_b" push_string S3100 anyawy i'm not going to interlude but thx for info . Players told me that they couldnt finish quest to change proffesion becouse npc (which they need to kill) was not spawning, same was with the quest for subclass (fate of whisper) when rb died the chest didnt spawn (chest of cabrio/kernon/golkonda etc), so i thought that there was something wrong in ai, and i was propably right becouse now chests spawn after kiling rb etc (maybe i did something else what fixed that but i dont know what ;D ).
|
|
|
|
|
#6 |
|
Архивный участник
Join Date: May 2006
Posts: 237
|
ya all ids are changed in c5 which effects quests and fishing and stuff that uses ai to summon mobs
|
|
|
|
|
#7 |
|
Архивный участник
Join Date: Aug 2005
Posts: 34
|
I have yet to see any of your claimed issues.
I see it pushed the pch, before the string, but in the end, it's the string it pushes before the call. And if theres' an issue, go test just change the pch to something random and test on c4
|
|
|
|
|
#8 |
|
Архивный участник
Join Date: Oct 2006
Posts: 57
|
As i writed before, it solved my problems.
|
|
|
|
|
#9 |
|
Архивный участник
Join Date: May 2006
Posts: 237
|
ai uses npcpch ids to summon the mobs which is why ai pch ids need to be changed
if u try running c5 with c5 ids and not changing anything but the npcdata you will have lots of problems |
|
|
|
|
#10 |
|
Архивный участник
Join Date: Apr 2006
Posts: 461
|
I did it all by hand :P
|
|
|
|
|
#11 |
|
Архивный участник
Join Date: Aug 2005
Posts: 34
|
kinda off topic, but now that were on the whole non c4 thing.
anyone know what map some of the tombs went to that disappeared from normal positions in c4/c5?
|
|
|
|
|
#12 |
|
Архивный участник
Join Date: Oct 2006
Posts: 57
|
|
|
|
|
|
#13 |
|
Архивный участник
Join Date: Aug 2005
Posts: 34
|
|
|
|
|
|
#14 |
|
Архивный участник
Join Date: Apr 2006
Posts: 461
|
The problem is, I didn't want to ruin fstrings, so I did an UltraEdit regular expressions search, and started replacing.
|
|
|
|
|
#15 |
|
Архивный участник
Join Date: May 2006
Posts: 237
|
php does the trick to
|
|
|
|
|
#16 |
|
Архивный участник
Join Date: Oct 2006
Posts: 57
|
i writed about fstrings in first topic :P (made a tool to add changed fstring's id to fstring.txt but i'm not 100% sure if they will work well), now i need to fix 2 skills(backstab&glad/tyrant) and will be happy
|
|
|
|
|
#17 |
|
Архивный участник
Join Date: Oct 2006
Posts: 57
|
|
|
|
|
|
#18 |
|
Архивный участник
Join Date: May 2007
Posts: 2
|
Wow... that had to have taken a while.... You could regexp search for long enough numbers to where you might have to replace them, but still!
P.S. Kation, I'm more of a PHP person that perl (in fact I hardly know perl at all), but it seems that: #setting ids for normal push_const (not npc) for ($n = 1; $n <= 1019000; $n++) { $ids[$n]=$n; } Could be more effeciently done by just doing this: if(isset($ids[$tab[1]])) $tab[1]=$ids[$tab[1]]; Where that area is later on.... Then you wouldn't have to waste the memory and slight performance hit behind setting a million value array even if it is only integral values.... (P.S. I'm not sure if there's a function in Perl called isset, but that's what it's called in PHP, and surely there's something similar.) |
|
|
|
|
#19 |
|
Архивный участник
Join Date: Oct 2006
Posts: 57
|
i give a source everyone can make with that what he want to :P
updated to v1.2 ^^. |
|
|
| Thread Tools | Search this Thread |
| Display Modes | |
|
|