stefanhendriks / Dune-II---The-Maker

A remake of the classic Dune 2 - The Building of a Dynasty (by Westwood Studios) with several enhancements. Like: higher screenresolutions, zooming, multiselect, skirmish play, etc.
https://www.dune2themaker.com
305 stars 27 forks source link

IA unit on guard don't respond #474

Open Mira-Chronos opened 2 years ago

Mira-Chronos commented 2 years ago

In this capture, we see Unit's guard that don't respond. IA's unit attack only if i attack it.

800x600_0000

800x600_0001

800x600_0002

stefanhendriks commented 2 years ago

this is weird; not sure if it is because of linux or not. I'll also investigate this.

Do you run the game with specific startup flags?

Mira-Chronos commented 2 years ago

Only -windowed

How can i help to debug this issue ?

stefanhendriks commented 2 years ago

I am not sure what is happening. Is it consistent?

If the AI does nothing at all (but it does seem to build a base, so that is weird?) I wonder if the AI gets any events that their units are under attack. You'd need to investigate the Skirmish* or Campaign* AI (I think you play skirmish here?).

The AI has a function that has the name retaliate within it, that is code that makes units attack/defend the base. Perhaps you can find clues there.

stefanhendriks commented 2 years ago

The AI has been made more aggressive; that should be fixed. If this is no longer happening, lets close this.