Project Zomboid

Project Zomboid

Auto Clean Blood
46 Comments
Jack Kenseng Jan 2 @ 3:13pm 
Ok I'll have to look for that
CreamPie  [author] Dec 30, 2024 @ 9:39pm 
This mode is no longer required.
Because the blood removal option was added in Build 42.
Jack Kenseng Dec 30, 2024 @ 4:12pm 
Hoping this gets updated to B42, huge help when you aren't playing custom settings (and even then, you can still get blood on stuff if you are bleeding or smack a zombie right next to a wall).
rteixeirapl Mar 6, 2024 @ 3:26am 
@Tnaz.v no, this problem you are facing is not coming from this mod.
Tnaz.v Mar 2, 2024 @ 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 Nov 7, 2023 @ 7:39am 
whats the name of the hud bottom left youre using?
Jashin Oct 6, 2023 @ 7:43pm 
How can you soft reset a home dedicated server?
Darth Bokeh Apr 25, 2023 @ 8:40pm 
Confirmed - the errors no longer come up in the bus or yacht.

Thank you for the quick fix!
CreamPie  [author] Apr 25, 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 Apr 25, 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 Apr 25, 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 Apr 25, 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 Apr 25, 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).
0kamiKaiju Apr 15, 2023 @ 3:57pm 
Strange. Alright thanks for the reply though!
CreamPie  [author] Apr 15, 2023 @ 9:02am 
I don't use RV mode, but I tested it after installing it, but I didn't get any errors.
0kamiKaiju Apr 14, 2023 @ 4:25pm 
When inside of the Interior of course!
0kamiKaiju Apr 14, 2023 @ 4:24pm 
Mod seems to have an incompatibility with - RV interiors / Mobile Home

Generates numerous errors in logs prior to completely crashing the game!

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.
[14-04-23 19:18:20.240] ERROR: General , 1681514300240> ExceptionLogger.logException> Exception thrown java.lang.reflect.InvocationTargetException at GeneratedMethodAccessor1133.invoke..
[14-04-23 19:18:20.240] ERROR: General , 1681514300240> DebugLogStream.printException> Stack trace:.
konte1m Apr 14, 2023 @ 7:42am 
can there be a sandbox option of how far the player should be from blood for it to be deleted?
xerator Apr 12, 2023 @ 7:57pm 
why is this mod in maps tag?
CreamPie  [author] Apr 10, 2023 @ 11:45am 
I've updated it once more.

To prevent performance degradation, check the floor the player is currently on and scan up to 1 floor above and below. For example, if the player is on the 2nd floor, only the 2nd, 1st, and 3rd floors will be scanned.

Also, since the player has to be more than 15 meters away from the blood for it to be removed, it does not work properly in small buildings like watchtowers. Therefore, when the player is on the 2nd floor or higher, the minimum distance for blood removal has been changed to 5 meters.
CarlosRojasCu Apr 10, 2023 @ 8:36am 
Wonderful, thank you very much for the great work... I am already happy. :)
CreamPie  [author] Apr 10, 2023 @ 8:31am 
@CarlosRojasCu
Works on all floors.
CarlosRojasCu Apr 10, 2023 @ 8:30am 
Thanks, I'll try as soon as I can...
Another question, with this change will it work with all floors? Or just the first and second? Thank you :steamhappy:
CreamPie  [author] Apr 10, 2023 @ 8:13am 
@CarlosRojasCu
Updated

Now, when cleaning up blood, the Z-axis is also taken into consideration. Therefore, blood on the 2nd floor and above will be removed as well.
CarlosRojasCu Apr 10, 2023 @ 6:25am 
Activate the blood and it removes them correctly, now I play more immersed.
Something I've noticed, I believe in two-story buildings or structures, the blood doesn't disappear on the second story. I did a test by adding the blood in the same areas of the first and second floor, I moved far enough away and only the ones on the first floor disappear.
I don't know if it will be just me or someone else will happen to him.:steamhappy:
Zen'nō Apr 9, 2023 @ 9:15am 
finally
This user has no known aliases Apr 6, 2023 @ 12:09am 
Works on existing saves now and doesn't seem to clash with over 50 mods. :steamthumbsup:
CarlosRojasCu Apr 5, 2023 @ 3:36pm 
@Satispie Ok, thanks...:steamhappy:
CreamPie  [author] Apr 5, 2023 @ 3:19pm 
@CarlosRojasCu
If you set the Blood Level to None in the Sandbox Options, you do not need to use this mode.
CarlosRojasCu Apr 5, 2023 @ 12:49pm 
One question... is there any point in using the mod if you have disabled the blood effects? :steamthumbsup:
marshmallow justice Apr 5, 2023 @ 4:42am 
I had no idea that blood fx drastically impacted frame rate until this mod and the other new rain one. For such a tiny game it sure takes a lot of work.
CreamPie  [author] Apr 4, 2023 @ 10:28pm 
@This user has no known aliases
I updated the mode.
Test it again.
This user has no known aliases Apr 4, 2023 @ 8:08pm 
Does it work on existing saves? I tried adding it to a save and it's not removing existing blood or new blood that is created. Do I need to press a key or set something in options to turn it on aside from enabling the mod in-game?
CreamPie  [author] Apr 4, 2023 @ 3:57pm 
@Ksarper
Other > BloodSplatlifespanDays
Naruru Apr 4, 2023 @ 7:29am 
그저... GOAT
Chesterfield fright Apr 4, 2023 @ 4:31am 
>In multiplayer sandbox mode, there is an option to automatically remove blood
Where? I can't find it anywhere
CreamPie  [author] Apr 3, 2023 @ 12:23am 
no
45_elangputih Apr 3, 2023 @ 12:01am 
does this also required the original receipt to clean the blood like mop & bleach?
GAMER_FR3D Apr 2, 2023 @ 12:37pm 
Oh I see, I will try this then. Also thanks for the quick response, like god damn that was fast lol
CreamPie  [author] Apr 2, 2023 @ 12:27pm 
@Gamer_fr3d

https://lordikol.github.io/PZ_MapCleaner/

Try using a chunk cleaner.
CreamPie  [author] Apr 2, 2023 @ 12:25pm 
@Gamer_Fr3D
If you mean removing all the bloody tiles from all the maps when the game loads, that is impossible.

The game will not be able to handle it and will crash.

This mode calculates the distance between the player and the bloody tiles, collects them, and removes them when the player is a certain distance away from the blood.

Therefore, you have to visit the bloody tiles.
GAMER_FR3D Apr 2, 2023 @ 12:11pm 
@Satispie Will this mod remove all the blood splatter everywhere in the mod the minute you load your world in or just once a chunk has been loaded and unloaded? I'm asking because I'm currently getting close to a full year in my CDDA world in which I killed over 9000 zombies and I was searching for a way to reset only the blood splatter as a 1 time performance maintenance type of thing, but if I have to revisit every place I went to, that's not exactly what I'm looking for.
CreamPie  [author] Apr 2, 2023 @ 12:00pm 
Updated.

improved and optimized performance and made it more efficient.
@@ Apr 2, 2023 @ 7:10am 
이런 모드를 오랫동안 기다려왔다우...
MIR Apr 2, 2023 @ 5:18am 
you are god
핫스퍼 Apr 2, 2023 @ 3:52am 
정말 너무너무 좋은 모드입니다. 최고입니다.