Project Zomboid

Project Zomboid

[B42] Smart Rest
60 Comments
󠀡󠀡󠁳󠀡󠀡 18 Jun @ 5:52pm 
mod is officially broken unfortunately
BrasileirinhoPe 25 May @ 5:16am 
A ideia é boa, mas não está funcionando.
MeanSmoker 29 Apr @ 8:01pm 
Editing lines 21 and 35 to include addGoodText didn't work for me. Anyone know how to fix this mod?
Blessed Mother 19 Apr @ 2:30pm 
@mark I made a mod that lets you customize the fast forward speed controls to whatever number you'd like (from 1 to 10,000). Set the speed to 1 for F4, F5 and F6 and they will be set to normal game speed when pressed.

https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=3440221534
Project Thylacine 19 Mar @ 4:18pm 
Causes errors the entire time i'm resting and doesn't seem to work. b42.5.1
LordOfLimes 24 Feb @ 11:36am 
HELPFUL TIP:
The author of this mod has stepped away from Zomboid temporarily, and will likely not update this mod until B42 has a stable release.

See their comment here: {LINK REMOVED}
mark 24 Feb @ 9:00am 
looking for a mod that makes it so I can remove the fast forward all together
Marads~Yuuka 15 Feb @ 7:23am 
The problem is as @Count0 described, but changing the files is overall a bad idea, until the author updates you might want to try this mod.
https://gtm.steamproxy.vip/sharedfiles/filedetails/?id=3425680292
nickodemos 14 Feb @ 6:25pm 
GAH! For some reason it was working but now the errors are back.
Loccatpowersdog 14 Feb @ 5:25pm 
Would be nice to use again, here's hoping for a fix!
nickodemos 14 Feb @ 4:34pm 
Confirmed what Cout0 says works to remove the errors.
Count0 13 Feb @ 11:51am 
HaloTextHelper.addText needs to be replaced by HaloTextHelper.addGoodText
Shane 12 Feb @ 6:38am 
yea, I didnt know if it was just me. Resting causes hundreds of errors after the new update, I think the new update disables the mods functionality
Selgrin 12 Feb @ 2:12am 
Feb 11, 42.3.0: Causes hundreds of harmless errors and doesn't display on sitting
UnCheat  [author] 4 Feb @ 3:55pm 
Add/remove any time
Orange Elite 4 Feb @ 2:59pm 
can you add to a save?
UnCheat  [author] 4 Feb @ 1:35pm 
Cool! Thanks! How world is small... I watched your "Bethesda Archive Extractor" video couple of days before ^_^
gamerpoets 4 Feb @ 10:19am 
Another mod that I wont want to play without. I put your mod in a video if you care to check it out https://www.youtube.com/watch?v=scDispqKjyA
UnCheat  [author] 14 Jan @ 7:40am 
@Shane Please report how it works for you now :)
UnCheat  [author] 14 Jan @ 7:39am 
Updated: hopefully will change playspeed on platforms where speed property was not accessible to read
Resub to force update if you need
UnCheat  [author] 13 Jan @ 11:51pm 
I think I'll change property read (.CurrentSpeed) to function to get it's value for your platform compatibility (:getCurrentGameSpeed())
UnCheat  [author] 13 Jan @ 10:43pm 
@Shane So for some reasons your game does not return
UIManager.getSpeedControls().CurrentSpeed
So it can't check if you were fastforwarded.. you can check that code via console too, it should return number that shows current "play speed" 0,1,2,3

I might remove that part of the code because it's optional, we can just force required play speed even it's already was set
Shane 13 Jan @ 1:43pm 
the command works, but for whatever reason even in debug mode testing the time will stay fast forwarded even after the rested prompt comes up
UnCheat  [author] 13 Jan @ 10:51am 
Even timed action utilizes
UIManager.getSpeedControls():SetCurrentGameSpeed(1)
to stop fast forwarding when action is complete
UnCheat  [author] 13 Jan @ 10:49am 
@Shane
Can't recreate your problem
Try start game in a debug mode (add -debug on launch options: right click game on steam -> settings)
And ingame try to use UIManager.getSpeedControls():SetCurrentGameSpeed(0) via console does it pause? Because it should
Shane 13 Jan @ 10:34am 
the speed doesnt reset once you hit a rested state, good mod still
UnCheat  [author] 3 Jan @ 12:15am 
Had to revert to :ButtonClicked("Pause") and :ButtonClicked("Play") because it did stop working for a some reason even with out "Pause on Start"
UnCheat  [author] 2 Jan @ 11:59pm 
We've a lot of problems modding on a steamdeck on B42 version, now looks like we found a solution by removing mod inner dependencies
UnCheat  [author] 2 Jan @ 11:58pm 
Ok. Resub if did not reloaded
Platform means" pc, linux or steamdeck...
B42. I'll give it another go later. Thanks!
UnCheat  [author] 2 Jan @ 11:54pm 
UPDATE: Restored SetCurrentGameSpeed(0) instead of :ButtonClicked("Pause") for compatibilty
UnCheat  [author] 2 Jan @ 11:46pm 
Looked into pause on start:
Should be compatible
Also it uses UIManager.getSpeedControls():SetCurrentGameSpeed(0) call I used before...
I might go back to it instead of UIManager.getSpeedControls():ButtonClicked("Pause")
UnCheat  [author] 2 Jan @ 11:41pm 
@󠀡󠀡󠀡󠀡󠀡󠀡Marc What platform? I did change speedcontol call but it seems that did not apply to one of the platforms anyway...
Doesn't seem to work. Never changes back to normal speed after resting. Might be incompatible with Pause on Start mod by RaullxP.
UnCheat  [author] 1 Jan @ 7:13am 
@양이랑고 Updated:
-- Removed repeating "resting.." message, now it will be prompted once
-- Changed the way of speedcontrol calls to support steamdeck (hopefully)
UnCheat  [author] 1 Jan @ 7:07am 
Do you get prompts?
I''ll change the way I control play/pause to fully support steamdeck
양이랑고 1 Jan @ 6:56am 
Thank you for the good mod. However, even after the rest is complete, it doesn't return to normal speed.
UnCheat  [author] 1 Jan @ 6:05am 
Small update: get prompt when started resting (toggleable and editable as rested prompt)
UnCheat  [author] 31 Dec, 2024 @ 11:42pm 
@양이랑고 and @찰스 Mod should for you work now
UnCheat  [author] 31 Dec, 2024 @ 11:41pm 
Steam deck users could use it now
UnCheat  [author] 29 Dec, 2024 @ 12:14pm 
Please drop full log on here
And try resub to get last mod update
양이랑고 29 Dec, 2024 @ 12:02pm 
The following error occurs when the rest is completed

ERROR: General f:1847, t:1735482787904> ExceptionLogger.logException> Exception thrown
java.lang.RuntimeException: __lt not defined for operand at KahluaUtil.fail(KahluaUtil.java:82).
Stack trace:
se.krka.kahlua.vm.KahluaUtil.fail(KahluaUtil.java:82)
se.krka.kahlua.vm.KahluaThread.luaMainloop(KahluaThread.java:881)
se.krka.kahlua.vm.KahluaThread.call(KahluaThread.java:173)
...
UnCheat  [author] 29 Dec, 2024 @ 10:34am 
Please report if you'll get errors... something is not right.
There should not be any errors accessing those variables but 찰스 got them and looks like you too
After update you might won't pause/stop fast forwaring.
If so please check your local game files via steam to make sure it was not broken by java mods
Livesey 29 Dec, 2024 @ 10:28am 
This was before today's update, I'll try to test it again.
Livesey 29 Dec, 2024 @ 10:27am 
When I try to rest I get a bunch of errors on this mod and they start appearing endlessly until I re-enter the game.
UnCheat  [author] 29 Dec, 2024 @ 9:33am 
Happy New Year!
찰스 29 Dec, 2024 @ 9:23am 
Playing on Steam
It would be great if someone else could come over and test it with me
I'll be back after some time! Happy New Year!
UnCheat  [author] 29 Dec, 2024 @ 9:14am 
Consider check loacal files on steam might be messed up java classes
UnCheat  [author] 29 Dec, 2024 @ 9:11am 
Does anyone else get anything like 찰스 ?
UnCheat  [author] 29 Dec, 2024 @ 9:09am 
New update: Standing up while not fully rested won't be considered as rested anymore
Reminder: resub to get an update