Heroes of Might and Magic Community
visiting hero! Register | Today's Posts | Games | Search! | FAQ/Rules | AvatarList | MemberList | Profile


Age of Heroes Headlines:  
5 Oct 2016: Heroes VII development comes to an end.. - read more
6 Aug 2016: Troubled Heroes VII Expansion Release - read more
26 Apr 2016: Heroes VII XPack - Trial by Fire - Coming out in June! - read more
17 Apr 2016: Global Alternative Creatures MOD for H7 after 1.8 Patch! - read more
7 Mar 2016: Romero launches a Piano Sonata Album Kickstarter! - read more
19 Feb 2016: Heroes 5.5 RC6, Heroes VII patch 1.7 are out! - read more
13 Jan 2016: Horn of the Abyss 1.4 Available for Download! - read more
17 Dec 2015: Heroes 5.5 update, 1.6 out for H7 - read more
23 Nov 2015: H7 1.4 & 1.5 patches Released - read more
31 Oct 2015: First H7 patches are out, End of DoC development - read more
5 Oct 2016: Heroes VII development comes to an end.. - read more
[X] Remove Ads
LOGIN:     Username:     Password:         [ Register ]
New Server | HOMM1: info forum | HOMM2: info forum | HOMM3: info forum | HOMM4: info forum | HOMM5: info forum | MMH6: wiki forum | MMH7: wiki forum
Heroes Community > Library of Enlightenment > Thread: [H3] SoD_SP: a HDmod plugin
Thread: [H3] SoD_SP: a HDmod plugin This thread is 5 pages long: 1 2 3 4 5 · «PREV
Maurice
Maurice

Hero of Order
Part of the furniture
posted November 11, 2017 04:41 PM

From the looks of it, it only considers the first obstacle between it and its destination and notices it can cross it with Water Walk? And then once it enters the water, it reevaluates to find the next obstacle and calculate a different path based on it (since it lacks fly to cross the mountain range)?

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
RoseKavalier
RoseKavalier


Honorable
Famous Hero
posted November 11, 2017 05:34 PM

Salamandre said:
Great fix, would it be possible to translate this or levels overflow fix into Era plugins as well? If it is not too much work.

I've seen igrik examples of using Hooks in ERA so it should be possible. I don't understand ChineseERM at all so I can't do it by myself.

Maurice said:
From the looks of it, it only considers the first obstacle between it and its destination and notices it can cross it with Water Walk? And then once it enters the water, it reevaluates to find the next obstacle and calculate a different path based on it (since it lacks fly to cross the mountain range)?

That sounds about right. If the AI evaluates it can't reach its destination with only Waterwalk and it lacks Fly, it will just sit tight since that first step on water will never be taken... or pick a different destination.

In other words, the problem is that when AI has stepped on water, there is a procedure checking whether it's worthwhile to cast 'Fly' but it does not check if 'Fly' is available.

The fix I introduced is to check if Fly is available and prevent the cast; this re-initiates path finding which is seen by the extra delay.
____________
My Let's Plays: Metataxer's Revenge - The Empire of The World 2

 Send Instant Message | Send E-Mail | View Profile | PP | Quote Reply | Link
Salamandre
Salamandre


Admirable
Omnipresent Hero
Wog refugee
posted November 11, 2017 06:32 PM

I don't think era plugins use erm but rather direct addresses, like your plugins. I can't read them so not 100% sure.

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
Maurice
Maurice

Hero of Order
Part of the furniture
posted November 11, 2017 08:38 PM

RoseKavalier said:
In other words, the problem is that when AI has stepped on water, there is a procedure checking whether it's worthwhile to cast 'Fly' but it does not check if 'Fly' is available.


Regardless of whether it has Fly or not, the fact that it can cast a spell once it has moved onto water is a cheat in its own right. The player is unable to cast anything until the Hero has crossed the water.

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
RoseKavalier
RoseKavalier


Honorable
Famous Hero
posted November 12, 2017 03:14 AM

Salamandre said:
I don't think era plugins use erm but rather direct addresses, like your plugins. I can't read them so not 100% sure.

I guess we can move this to ERM discussion to stay on topic here.
____________
My Let's Plays: Metataxer's Revenge - The Empire of The World 2

 Send Instant Message | Send E-Mail | View Profile | PP | Quote Reply | Link
igrik
igrik


Adventuring Hero
posted November 12, 2017 11:29 AM

RoseKavalier said:
Salamandre said:
Great fix, would it be possible to translate this or levels overflow fix into Era plugins as well? If it is not too much work.

I've seen igrik examples of using Hooks in ERA so it should be possible. I don't understand ChineseERM at all so I can't do it by myself.

Please give me your code overflow levels, primary skills and count of monsters. I'm building it in an ERA.

 Send Instant Message | Send E-Mail | View Profile | Quote Reply | Link
RoseKavalier
RoseKavalier


Honorable
Famous Hero
posted November 12, 2017 03:10 PM
Edited by RoseKavalier at 15:17, 12 Nov 2017.

-Wrong thread-
____________
My Let's Plays: Metataxer's Revenge - The Empire of The World 2

 Send Instant Message | Send E-Mail | View Profile | PP | Quote Reply | Link
Jump To: « Prev Thread . . . Next Thread » This thread is 5 pages long: 1 2 3 4 5 · «PREV
Post New Poll    Post New Topic    Post New Reply

Page compiled in 0.0835 seconds