Opened 2 years ago

Last modified 6 months ago

#13876 new defect

ULTIMA8: smart navigation make avatar run in circles

Reported by: aybe Owned by:
Priority: normal Component: Engine: Ultima
Version: Keywords:
Cc: Game: Ultima VIII: Pagan

Description

In the 'bug move' save you can see him totally stuck not finding a path to go to.

I opened that door first, then middle mouse clicked the opposite door and he then started doing this.

C:\Program Files\ScummVM>scummvm.exe -v
ScummVM 2.6.0 (Jul 17 2022 00:04:49)
Features compiled in: Vorbis FLAC MP3 RGB zLib MPEG2 FluidSynth Theora AAC A/52 FreeType2 FriBiDi JPEG PNG GIF taskbar TTS cloud (servers, local) TinyGL OpenGL (with shaders)

Attachments (1)

ScummVM.zip (532.8 KB ) - added by aybe 2 years ago.

Download all attachments as: .zip

Change History (3)

by aybe, 2 years ago

Attachment: ScummVM.zip added

comment:1 by OMGPizzaGuy, 6 months ago

This may harder to reproduce now, so the attached save may be the best way to see issue. The middle-click navigation does not tie in to normal movement, so other movement options do not cancel it and it does not appear to end on its own.

comment:2 by OMGPizzaGuy, 6 months ago

Using the debugger shows this to be a continual recalculation of the path, leaving the avatar continually stuck in a loop.

Commit 18c6eb8c31d9e208c6396fd4d8dc8cbf1741369b makes another middle-click stop the old pathfinder, which allows you to break the loop. However, this bug is still valid as the pathfinder fails to create a valid path in this case.

Note: See TracTickets for help on using tickets.