Project Zomboid

Project Zomboid

Auto Clean Blood
46 comentarii
Jack Kenseng 2 ian. la 15:13 
Ok I'll have to look for that
CreamPie  [autor] 30 dec. 2024 la 21:39 
This mode is no longer required.
Because the blood removal option was added in Build 42.
Jack Kenseng 30 dec. 2024 la 16:12 
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).
sannyasa 6 mart. 2024 la 3:26 
@Tnaz.v no, this problem you are facing is not coming from this mod.
Tnaz.v 2 mart. 2024 la 21:06 
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 la 7:39 
whats the name of the hud bottom left youre using?
Jashin 6 oct. 2023 la 19:43 
How can you soft reset a home dedicated server?
Darth Bokeh 25 apr. 2023 la 20:40 
Confirmed - the errors no longer come up in the bus or yacht.

Thank you for the quick fix!
CreamPie  [autor] 25 apr. 2023 la 20:25 
@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 la 18:02 
`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 la 18:02 
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 la 18:02 
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 la 18:00 
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 15 apr. 2023 la 15:57 
Strange. Alright thanks for the reply though!
CreamPie  [autor] 15 apr. 2023 la 9:02 
I don't use RV mode, but I tested it after installing it, but I didn't get any errors.
0kamiKaiju 14 apr. 2023 la 16:25 
When inside of the Interior of course!
0kamiKaiju 14 apr. 2023 la 16:24 
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 14 apr. 2023 la 7:42 
can there be a sandbox option of how far the player should be from blood for it to be deleted?
xerator 12 apr. 2023 la 19:57 
why is this mod in maps tag?
CreamPie  [autor] 10 apr. 2023 la 11:45 
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 10 apr. 2023 la 8:36 
Wonderful, thank you very much for the great work... I am already happy. :)
CreamPie  [autor] 10 apr. 2023 la 8:31 
@CarlosRojasCu
Works on all floors.
CarlosRojasCu 10 apr. 2023 la 8:30 
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  [autor] 10 apr. 2023 la 8:13 
@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 10 apr. 2023 la 6:25 
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ō 9 apr. 2023 la 9:15 
finally
This user has no known aliases 6 apr. 2023 la 0:09 
Works on existing saves now and doesn't seem to clash with over 50 mods. :steamthumbsup:
CarlosRojasCu 5 apr. 2023 la 15:36 
@Satispie Ok, thanks...:steamhappy:
CreamPie  [autor] 5 apr. 2023 la 15:19 
@CarlosRojasCu
If you set the Blood Level to None in the Sandbox Options, you do not need to use this mode.
CarlosRojasCu 5 apr. 2023 la 12:49 
One question... is there any point in using the mod if you have disabled the blood effects? :steamthumbsup:
marshmallow justice 5 apr. 2023 la 4:42 
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  [autor] 4 apr. 2023 la 22:28 
@This user has no known aliases
I updated the mode.
Test it again.
This user has no known aliases 4 apr. 2023 la 20:08 
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  [autor] 4 apr. 2023 la 15:57 
@Ksarper
Other > BloodSplatlifespanDays
Naruru 4 apr. 2023 la 7:29 
그저... GOAT
yhwhkkw 4 apr. 2023 la 4:31 
>In multiplayer sandbox mode, there is an option to automatically remove blood
Where? I can't find it anywhere
CreamPie  [autor] 3 apr. 2023 la 0:23 
no
45_elangputih 3 apr. 2023 la 0:01 
does this also required the original receipt to clean the blood like mop & bleach?
GAMER_FR3D 2 apr. 2023 la 12:37 
Oh I see, I will try this then. Also thanks for the quick response, like god damn that was fast lol
CreamPie  [autor] 2 apr. 2023 la 12:27 
@Gamer_fr3d

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

Try using a chunk cleaner.
CreamPie  [autor] 2 apr. 2023 la 12:25 
@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 2 apr. 2023 la 12:11 
@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  [autor] 2 apr. 2023 la 12:00 
Updated.

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