own3mall: Wow, thank you so much! This fixes the restart level crash bug too.
https://steamcommunity.com/app/243060/discussions/0/365163686045023359/
TheOdds: Good to hear that it helps with that crash too. However, I should note that this hex edit does not fix the root cause of the crash, but it may change the conditions under which the the crash error occurs. If you are lucky, the game may never hit the crash conditions again, but it's more likely that the game will still crash, but at a different time/level.
I do believe this crash is related to a level lighting cache that the game uses. This cache is fixed size and in some conditions it can overflow leading to this crash when reloading a level or freezing during gameplay.
Using the widescreen patch makes this problem much worse, as the game fills up the lighting cache faster when more of the game level is visible on screen. I also believe that the draw_distance setting affects this issue, and smaller values may help with this crash (I haven't actually tested this yet).
When I made my previous post, I was working on improving the widescreen patch and had some success with it. I managed to fix the aspect ratio on game cutscenes and found a solution that alleviates the lighting cache issue on wider screen aspect ratios to the point where it works almost as well as with 4:3 aspect ratio. It's also possible that the lighting cache crash issue can be fixed with hex editing, but at this point I'm not hopeful about that. I've been interested in other things recently, but I plan to continue this work at some point.
Hey, thanks for your work so far on the texture resolution fix! I included it on my widescreen fix, this one also fixes the aspect ratio on cutscenes and allows increasing the FOV, but highly increases the risk of crashing due to the issue you mentioned. Could it be fixed in any way? Would love to incorporate it on my fix and would properly credit you. Here's the link to it: