• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

Compiling Monster AI issue in 0.4, importing fixes from 3884.

Extrodus

|| Blazera.net ||
Joined
Dec 22, 2008
Messages
2,691
Solutions
7
Reaction score
549
Location
Canada
Hey there guys, I am experiencing a small issue with monsters now that I've reverted to rev.3777 from rev.3884. The problem has been discussed before here, but years ago.

Link: https://otland.net/threads/creatures-wont-walk-on-corpse-help.119460/

Basically, lets say you are surrounded by rotworms with a few rotworms wandering around outside of the circle waiting to attack. If you "exori" and kill all 8 rotworms at once, the outside rotworms will remain wandering around as if you are still blocked in by monsters... only when you move/attack one of the monsters do they realize you are pathable and start attacking.

This is a documented bug in 0.4 but the old revisions cant be viewed anymore since the release of TFS 1.0, so my question for support here is: What files would require changing in this case, or what specific functions should be updated?

I'm thinking: monster.cpp, creature.cpp and possibly an update function in game.cpp that registers the target list, like setAttackedCreature() or something.

Any help is greatly appreciated, shouts to @Printer @MatheusMkalo @cbrm @Milice if they have any ideas which files/functions should be updated.

To Review Files, download the sources here:
Rev.3777 - https://mega.nz/#!GFU2EapD!xkR4iMBIvaOTzYgWnhpzvbMgn-PypfkoUWs8HroMGTo
Rev.3884 - https://mega.nz/#!WNtlUJ5S!VISLoPCFnvV6gW5Phurn8zJIpiYKp8I0FaVw2R2Fp9Y
 
Last edited:
Back
Top