theCrius / project-zomboid-random-zombies-full

GNU General Public License v3.0
3 stars 3 forks source link

game crashing at 6am every day. #7

Closed ArdaSinecikli closed 1 year ago

ArdaSinecikli commented 1 year ago

Describe the bug At 6am on every single day, the game crashes to desktop. When I reload into the save, I dont lose any progress (game unpauses at 5.50 am) but all the zombies around me are deleted, rougly as far as I can see.

To Reproduce Steps to reproduce the behavior:

  1. Be playing the game at 5.50 am
  2. As soon as the clock hits 6am, game freezes. "Project zomboid is not responding".
  3. Click launch game, menu loads, click Continue.
  4. Game loads, click when screen says "Click to start"
  5. Game fully loads, time is 5.50 am, all zombies withing seeing range are deleted.

Expected behavior I expect the game to not crash at 6am. When it crashes, I expect the

Screenshots The mods file for the save is in the following link: mods.txt The log file is in the following link. console.txt I'll also paste the last few lines here: "WARN : Lua , 1685403719689> LuaManager$GlobalObject.require> require("NVAPI/ctrl/instance") failed LOG : General , 1685403736055> EXITDEBUG: setGameSpeed 1 LOG : General , 1685403736056> EXITDEBUG: setGameSpeed 3 WARN : Lua , 1685403736056> LuaManager$GlobalObject.require> require("NVAPI/ctrl/instance") failed LOG : General , 1685403737141> [RZF] Schedule detected is dayTime LOG : General , 1685403737142> [RZF] Checking if preset dayTime is enabled LOG : General , 1685403737142> [RZF] Schedule need to change from nightTime to dayTime LOG : General , 1685403737142> [RZF] Disabling previous preset LOG : General , 1685403737142> [RZF] Enabling new preset LOG : General , 1685403737142> [RZF] Schedule Preset changed ---> dayTime" that line is the last line of the console.

Specification (please complete the following information):

Additional context I have a LOT of mods installed, so it could be a mod conflict, but I couldnt make sense of the log file. It seems the game crashes when it switches to Day time zombies. This bug also didnt occur jsut once, its occured multiple times on this save. Im on day 4 or so, and its happened every single morning.

theCrius commented 1 year ago

Thank you for the report @ArdaSinecikli, very detailed which I appreciate enormously.

I'll check it out either in the evening or tomorrow as I've a very busy day today between work and other personal matters.

theCrius commented 1 year ago

Gave a quick look and it seems that there are a lot of errors coming from NVAPI which is the mod to allow for night vision, which would make sense as being related to when night change to day (6AM being one of those times depending on the season).

I checked the logs and see that you are running from a windows host. Is it your own machine or a rented server? Is it feasible for you to try and remove NVAPI and mods that requires it (Like this one for example) and try to see if the crash happens again?

The logs reported by my mod are simply event logs that are not triggered by errors, they actually just report that everything have gone right when changing the distribution of zombies depending on the time of day 😕

Edit: I'll add that my mod doesn't actually change when "night/day" start or end, simply let the user decide which hours to consider "night" and which one "day" so it shouldn't cause any conflict with NVAPI or any mod that instead effectively change those parameters of the game.

ArdaSinecikli commented 1 year ago

Thanks for the response! I checked my subscribed mods and I do not have NVAPI installed. I'm guessing then its a dependency for one of my mods that didnt show up on the mod manager for some reason. I'll try to install the mod and give it a try to see if the game crashes. I'll reply here once I have done that.

ArdaSinecikli commented 1 year ago

Accidentally tapped "close issue", so im reopening. Apologies.

ArdaSinecikli commented 1 year ago

Enabling the NVAPI mod seems to have fixed the issue. Thanks again for your response.