OpenKH / OpenKh

Kingdom Hearts libraries, tools, game engine and documentation
https://openkh.dev
Apache License 2.0
295 stars 83 forks source link

[BUG] - Game engine crash due to invalid FOV value #422

Open MarioSonic2987 opened 3 years ago

MarioSonic2987 commented 3 years ago

OpenKH Build Build 1385

OpenKH Program Game engine

Describe the Bug The game engine crashes when camera looks at Demyx.

To Reproduce

  1. Go to map he10 and load event 105 (When Demyx appears for the first time)
  2. Close the main menu and wait until the game window closes.

Expected behavior The event should play normally.

Screenshots This is when the engine crashes. image

Additional context Crash due to invalid FOV value. Log Game engine

Delta-473 commented 3 years ago

This pr should fix the issue haven't tested it myself https://github.com/Xeeynamo/OpenKh/pull/418

ghost commented 3 years ago

The issue will remain open until #418 is merged and tested.

Delta-473 commented 3 years ago

Latest release build (298) still crashes with fov out of range: tt34 event: 314 (fov has a value of 204.something) on previous testing before pr #418 the game crashes when fov >= 204. tt04 event: 309 crashes with a negative fov of -6.something.