omf2097 / openomf

One Must Fall 2097 Remake
http://www.openomf.org
MIT License
362 stars 35 forks source link

AI problems with scrap/destruct. #434

Closed katajakasa closed 3 months ago

katajakasa commented 2 years ago

AI can do scrap/destruct moves. These seem to be broken, as AIs can freely move again after executing one of these, when they should return to the victory pose. Also, gargoyle scrap animation caused a segfault (not sure why).

katajakasa commented 2 years ago

No longer crashy after 4160dfbbac74efd73b75a823c235628e31b44a4f

katajakasa commented 2 years ago

Never mind, got this to reoccur with Gargoyles destruction move in demo game.

gdeda commented 1 year ago

I believe this is related (or mostly related) to how scrap/destruction is handled. I'm trying to explain better: when I use Nova and attempt a scrap, sometimes I miss the destruction and another move (punch, earthquake smash...) can happen, like there is a little "space" between the the end of the scrap/destruction and the HAR going winning pose. It's quite funny because I get again the "you win", the winning pose and can execute a scrap/destruction again, Much likely AI is better in exploiting these moments.

I believe #290 could play some role on this behaviour.

katajakasa commented 3 months ago

Closing, https://github.com/omf2097/openomf/pull/520 should fix.