tyoeer / Chaoshead

A level editor, scripting interface, campaign editor, and reverse engineering tool for Levelhead
Apache License 2.0
4 stars 1 forks source link

Anti-level caching patch causes crash when opening copied level #132

Open tyoeer opened 10 months ago

tyoeer commented 10 months ago

If LH has been patched, and you duplicate/copy level, and then quickly open it, it crashes:

image.png (Screenshot from Jeanne on Discord https://discord.com/channels/120295792266182656/568414576241016847/1140696129982451823)

As far as I can (quickly) tell it takes some time before the copy has been written to disk, and if you try to open it before then it crashes because the patch forces it to reload from disk, which it can't.

Somehow patching LH to wait on the save or cache copied levels looks like it would be a pain.