I normally play with the Company Uniforms option enabled and kept getting the game freeze happen at varies times. One of the things I changed with my most recent playthrough was not turning that one. I was just happy the game was working without freezing, but it appears that others were having a similar issue. So if you are having issues with the game hard freezing, I suggest trying to play without using/assigning uniforms.
I've been trying to help track this down with the modders. The hang bug was happening to me a lot, but very few other people were reporting or could confirm that it happens. Not with Company Uniforms though. For me it was just when trying to draw previews when hovering over the girls in the room list.
Trist (the modder I've been working with) suggested using the option to clean memory "Every Time Slot" instead of "Each Game Day" (in preferences).
Apparently it has a lot to do with how much memory the game has to work with (for Textures I think Trist said).
I have a hack that works but probably only for high memory systems:
game\Mods\Core\Mechanics\Image_Handlers\zip_manager.rpy
Following changes:
Replace line 13:
And then re-enabled the commented out lines at the end of the file:
Code:
if not config.debug: # delays reload time (disable while debugging)
zip_manager.preload()
Still stable at day 49 now.
Trist said that my hack crashes the game on his machine in short order since it runs out of mem, so not a good all around solution. My machine is pretty beefy with 32G ram, so your mileage may vary. His has only 8 (which is normally fine for such things).
So if you have 8 or less gigs or don't want to hack code, try Trist's recommendation:
Trist suggested using the option to clean memory "Every Time Slot" instead of "Each Game Day" (in preferences).