Koikatsu game crash

in #koikatsu10 days ago

image.png

Crash!!!

Your game suddenly crashed and closed, and at the end of your <game folder>/output_log.txt (about output_log) you see the above message followed by a bunch of C:\WINDOWS\SYSTEM32 messages.

There are numerous different reasons this could happen, some easier to solve then others. Here's a few:

Cache related issue

The game doesn't close, and you won't see a crash message, but it looks like it's frozen.

If, after you start the game, you see the loading bar but then it remains on a static image (you have no mouse cursor), it might be that the game is reloading the mods cache (You can check the log for a "reloading cache" message)
This can happen mostly after a KKManager mods update or HF patch update. Delete every sideloader_zipmod_cache.bin files in BepInEx/cache and restart the application. The process can take several minutes (10-30min).

GPU related issues

If in the log you can see messages like "D3D11: Failed to create RenderTexture" or "VRDevice said it created a texture, but the texture is NULL", you are likely running out of GPU VRAM.

  • You are trying to take a screenshot, but your resolution or upsampling settings are too high in Shift+F11
  • You are trying to load too many characters in main game
  • You are trying to load a resource heavy Studio scene (too many characters, too many high-resolution textures)
  • You are trying to load a character with many high-resolution textures (can be an issue with 4GB GPU VRAM or less)

Another potential issue could be GPU driver issues and incompatibilities, or Windows Update, but these are not easy to diagnose.

Zipmod related issues

If turning Off mods by renaming your /mods folder to /mods_OFF stops the crash from happening, it can mean:

  • One of your zipmods is corrupted (check for "is corrupted! Remove it and launch unity again!" in output_log)
  • One of your zipmods is for a different game (often happens on game launch, there's no special message)
  • One of your zipmods is too deep into your file system (can happen with very long names, often from mods in Bleeding Edge)

If this only happens for a specific Studio scene or character, load it in CharaStudio (while your mods are Off) and screenshot the list of missing mods or get the names from the log (F1->Open Log then Ctrl+F search for "[UAR]").
Then you can either remove them using Windows Files or disable them in KKManager's mods tab. Do a few of them at a time and restart Studio every time, until the crash stops happening.

If it happens with anything, or as soon as the application launches, you'll need to do a full zipmods search.
Try these one by one and restart the application every time, until the crash stops happening:

  • Remove mods/MyMods (or whatever you named the folder that contains mods you downloaded yourself)
  • Remove mods/Sideloader Modpack - Bleeding Edge (if you have it)
  • Remove mods/Sideloader ModPack - Studio
  • Remove mods/Sideloader ModPack - Maps
  • Remove mods/Sideloader ModPack
  • Everything else

Once you have found the problem folder, add everything back in and:
1- Remove half of the mods in the problem folder
2- Restart the application (this can take several minutes for the first time if the game needs to reload its cache)
3- If it still crashes, repeat from step 1
4- If it doesn't crash, add back a couple of mods from those you just now removed
5- Repeat step 4 until the game crashes again. You should now have a good idea of what mod is problematic