Project Zomboid

Project Zomboid

244 ratings
Auto Clean Blood
3
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
107.316 KB
1 Apr, 2023 @ 11:35pm
26 Apr, 2023 @ 11:17pm
17 Change Notes ( view )

Subscribe to download
Auto Clean Blood

Description
In multiplayer sandbox mode, there is an option to automatically remove blood, but this option does not exist in single-player mode. As you may already know, blood has a significant impact on frame rate.

This mode automatically deletes blood when the player moves a certain distance away from it.

Set the bleeding level to maximum and enjoy the game without frame loss.

You can easily understand this by watching the video.

Does it work inside a building? Yes. Does it work if I'm in a car? Yes, but vehicles are moving at high speeds, so there may be bloodstains that can't be removed in time. Workshop ID: 2956358929 Mod ID: Auto Blood Clean
43 Comments
rteixeirapl 6 Mar @ 3:26am 
@Tnaz.v no, this problem you are facing is not coming from this mod.
Tnaz.v 2 Mar @ 9:06pm 
Could this mod eliminate the hordes of zombies? I walk 1 block and when I return, the horde of 300 zombies disappear out of nowhere.
NonstickSQYD 7 Nov, 2023 @ 7:39am 
whats the name of the hud bottom left youre using?
Jashin 6 Oct, 2023 @ 7:43pm 
How can you soft reset a home dedicated server?
Darth Bokeh 25 Apr, 2023 @ 8:40pm 
Confirmed - the errors no longer come up in the bus or yacht.

Thank you for the quick fix!
DoriPie  [author] 25 Apr, 2023 @ 8:25pm 
@1sot0pe
I have made some changes to the code based on the logs you sent. Can you please confirm if the errors have been resolved?
Darth Bokeh 25 Apr, 2023 @ 6:02pm 
`Callframe at: haveBlood
function: updateBloodCache -- file: AutoBloodClean.lua line # 71 | MOD: Auto Blood Clean
function: onTick -- file: AutoBloodClean.lua line # 138 | MOD: Auto Blood Clean
java.lang.reflect.InvocationTargetException
at jdk.internal.reflect.GeneratedMethodAccessor1691.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
at se.krka.kahlua.integration.expose.caller.MethodCaller.call(MethodCaller.java:62)
at se.krka.kahlua.integration.expose.LuaJavaInvoker.call(LuaJavaInvoker.java:198)
at se.krka.kahlua.integration.expose.LuaJavaInvoker.call(LuaJavaInvoker.java:188)
at se.krka.kahlua.vm.KahluaThread.callJava(KahluaThread.java:182)
at se.krka.kahlua.vm.KahluaThread.luaMainloop(KahluaThread.java:1007)
at se.krka.kahlua.vm.KahluaThread.call(KahluaThread.java:163)
Darth Bokeh 25 Apr, 2023 @ 6:02pm 
at se.krka.kahlua.vm.KahluaThread.pcall(KahluaThread.java:1980)
at se.krka.kahlua.vm.KahluaThread.pcallvoid(KahluaThread.java:1812)
at se.krka.kahlua.integration.LuaCaller.pcallvoid(LuaCaller.java:66)
at se.krka.kahlua.integration.LuaCaller.protectedCallVoid(LuaCaller.java:139)
at zombie.Lua.Event.trigger(Event.java:64)
at zombie.Lua.LuaEventManager.triggerEvent(LuaEventManager.java:92)
at zombie.gameStates.IngameState.updateInternal(IngameState.java:1624)
at zombie.gameStates.IngameState.update(IngameState.java:1333)
at zombie.gameStates.GameStateMachine.update(GameStateMachine.java:101)
at zombie.GameWindow.logic(GameWindow.java:298)
Darth Bokeh 25 Apr, 2023 @ 6:02pm 
at zombie.core.profiling.AbstractPerformanceProfileProbe.invokeAndMeasure(AbstractPerformanceProfileProbe.java:71)
at zombie.GameWindow.frameStep(GameWindow.java:765)
at zombie.GameWindow.run_ez(GameWindow.java:681)
at zombie.GameWindow.mainThread(GameWindow.java:495)
at java.base/java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NullPointerException: Cannot read field "FloorBloodSplats" because the return value of "zombie.iso.IsoGridSquare.getChunk()" is null
at zombie.iso.IsoGridSquare.haveBlood(IsoGridSquare.java:4967)
... 24 more
`
Darth Bokeh 25 Apr, 2023 @ 6:00pm 
I get those errors as well, but not in every interior and so far it hasn't crashed my game. I get them in the Bear Bus and sailing yacht interiors but not the Autotsar iLYA-1990 from the Autotsar Trailers mod. I've only come across one bus, yacht and iLYA trailer so far in my game since installing this mod so don't know if it consistently errors for those types of interiors or only sometimes (if it errors at all for an interior, it errors all the time).


The error happens whether there is blood present in the interior or not.

I'll include the error text in subsequent comments (there's a 1000 character limit for comments).