Author Topic: Something about redirecting monster ai xml files.  (Read 2484 times)

Nagahaku

  • Developer
  • Named
  • ****
  • Posts: 237
  • Karma: 23
  • Lonegirl
Something about redirecting monster ai xml files.
« on: Aug 14, 2011; 11:55 AM »
i tried this out when i was managing to modificate the Xmas-zombie pet's ai because it does not follow leader at all. i really did not know what the problem was until i checked its last column in table monster.txt.cooked.

compared with other pets, such as mantawraith and mantawraithfss, same kind of pets had very same last column numbers, though those large bunches of numbers were totally a mess to me, i could at last figure out something interesting...

obviously, fester festivus should share an ai file with the zombot, just like the two kinds of mantawraith shared a same ai file. however, their last column are not so simmilar, just like below...

zombot: 0A,00,02,0C,00,64,AE,00,91,72,00,00,00,19,33,40,E4,01,00,00,40,A6,0D,10,91,00,00,00,90,71,03,44,3C,00,00,00,64,DE,00,11,05,00,00,80,19,3B,40,08,00,80,CF,09

fester festivus: 0A,00,02,0C,00,64,AE,00,11,68,00,00,00,19,33,40,E4,01,00,00,40,A6,0D,10,91,00,00,00,90,71,03,44,3C,00,00,00,64,DE,00,11,05,00,00,80,19,3B,40,08,00,80,CF,09

pay attention to the red-marked parts, they are the determination of their ai files, i modificated this two groups of numbers of the Xmas zombie pet, and it could perfectly follow the leader then.

after that i studied their connections, and found that fester festivus has this two parts exactly same as a monster: zombie_male, the fat zombie guy. so of course. it could not follow leaders...

then there must be some connections between monsters and ai xml files, after lots of hard studies into table monster.txt.cooked, ai_init.txt.cooked, and xml files, i finally find the way to redirect a monster ai file.

the red part above, is still the most important part, and do not modificate anything else beside them cause i do not know what they meaning for... and now i should just post the solution i found below...

first check table ai_init.txt.cooked, all ai files are listed there. as what i found, those ai files could only be directed in monster table's last column, no where else. and the way to determin this just located in the two group of numbers marked red above there. the first entry of ai_init table is expressed as "11,00", the second is "91,00", the third is "11,01", and so on... those numbers are hex, so there would be something like "11,0F" or "91,0D", if you want to add or chage an ai file, just find the file you want in table ai_init, count out its expression in monsters tables last column and change. if you want to add some new ai files for your new monsters, first write an ai xml file, then find a blank entry within table ai_init, add it, an then create a new monster entry within the monsters table, direct its ai file, job would be done.

in this way, i have successfully created an amazing monster: the pit baron pet, a smaller moloch who could cast almost every moloch spells except summoning minions, and he would honestly fight for you. ;)
« Last Edit: Aug 14, 2011; 12:13 PM by Nagahaku »
Charming faces are easy to lose, while the glory of youth never back...

Yandor

  • Named
  • **
  • Posts: 288
  • Karma: 6
Re: Something about redirecting monster ai xml files.
« Reply #1 on: Aug 14, 2011; 01:04 PM »
Remarkable achievement Nagahaku, well reasoned.
« Last Edit: Aug 14, 2011; 01:56 PM by Yandor »

Nagahaku

  • Developer
  • Named
  • ****
  • Posts: 237
  • Karma: 23
  • Lonegirl
Re: Something about redirecting monster ai xml files.
« Reply #2 on: Aug 15, 2011; 02:50 AM »
here comes 4 pics for pit baron pet, the ultimate minion for evoker in my coming mod...
some of the UI is displayed in chinese, thanks to Kite and Maeyan, i am finally able to localize hellgate for my pals in china, here is my best wishes to them ;)

Charming faces are easy to lose, while the glory of youth never back...

zart

  • Founder
  • Dark Will
  • ***
  • Posts: 884
  • Karma: 13
    • http://www.venoma.net
Re: Something about redirecting monster ai xml files.
« Reply #3 on: Aug 15, 2011; 09:12 AM »
Stunning work! :o Makes me wonder what else is possible.  :)
SquidlordBetty - Evoker Interruptus - 51/8
BunnyHuntress - Saw Drone Engi - 55/3
OneEyedTracy - BM - 41
HellenaHanbasket - Elemental Summoner - 51/2
SistrBubbles - Guardian - 40

Let's go bum tugging!

Jaknet

  • Founder
  • Dark Will
  • ***
  • Posts: 913
  • Karma: 6
Re: Something about redirecting monster ai xml files.
« Reply #4 on: Aug 15, 2011; 09:32 AM »
Amazing work indeed...  ;D
Nostalgia... Isn't what it used to be

Nagahaku

  • Developer
  • Named
  • ****
  • Posts: 237
  • Karma: 23
  • Lonegirl
Re: Something about redirecting monster ai xml files.
« Reply #5 on: Aug 15, 2011; 09:59 AM »
Stunning work! :o Makes me wonder what else is possible.  :)

perhaps most likely... tcv4 monsters?
Charming faces are easy to lose, while the glory of youth never back...