ihhub / fheroes2

fheroes2 is a recreation of Heroes of Might and Magic II game engine.
https://ihhub.github.io/fheroes2/
GNU General Public License v2.0
2.7k stars 375 forks source link

Adventure map, it is not possible to capture a gold mine (0.9.4 3612) #3632

Closed LeHerosInconnu closed 3 years ago

LeHerosInconnu commented 3 years ago

In fheroes2, it is not possible to capture a gold mine. This mine is an abandoned mine at the beginning of the scenario.

In fheroes2:

Gold mine no capture 001

Gold mine no capture 002

Here is the save file: Gold mine no capture 01.zip

oleg-derevenetz commented 3 years ago

Did this mine belong to some AI player before (then vanquished)?

LeHerosInconnu commented 3 years ago

Hello @oleg-derevenetz,

Did this mine belong to some AI player before (then vanquished)?

This is possible because the production of the mine has been restored. The mine was already like this (without a flag) when one of my heroes revealed the adventure map.

Here are the save files (before Ambrose move to the Observation Tower to reveal the Gold mine, and at scenario turn 4): Gold mine bug 01.zip

oleg-derevenetz commented 3 years ago

Currently I even don't have any idea how to get an ex-abandoned mine without flag. If former owner was vanquished, then it should have a gray flag. Someone may apply Haunt spell on it, then flag should be removed, but in this case mine should be still haunted.

LeHerosInconnu commented 3 years ago

The gold mine is not displayed correctly in the "View World" screen:

Gold mine bug cercle 01

Strangely, there is a similar bug in the original game: :D https://heroes2.forumactif.com/t860-heroes-2-bugs-inaccessible-resource-generators

oleg-derevenetz commented 3 years ago

It's because there is no mine object on this tile anymore, it's OBJ_ZERO now. But I still don't know a way to reproduce this.

oleg-derevenetz commented 3 years ago

Here is a save file that reproduces the issue. Just press "End Turn" :)

Gold mine no capture X.zip

oleg-derevenetz commented 3 years ago

Hi @LeHerosInconnu

Here are the save files (before Ambrose move to the Observation Tower to reveal the Gold mine, and at scenario turn 4):

Thank you, the latter was really helpful and I was able to reproduce the issue.

LeHerosInconnu commented 3 years ago

Hello @oleg-derevenetz,

Here is a save file that reproduces the issue. Just press "End Turn" :)

Gold mine no capture X.zip

The bug works well, but do you have enough Dragons? :D

oleg-derevenetz commented 3 years ago

There will be never enough dragons :)