Jump to content

Welcome to our forums!

Sign In or Register to gain full access to our forums. By registering with us, you'll be able to discuss, share and private message with other members of our community.

Photo

Sleeping Overhaul (DOES NOT WORK WITH STEAM FFS)

Sleeping Overhaul Dragons Sleep Tired

  • Please log in to reply
118 replies to this topic

#1 RoboMat

RoboMat

    Adorable Troll-Cat and Wheelie-Bin Enthusiast

  • Members
  • PipPipPip
  • 3312 posts

Posted 23 July 2013 - 11:13 PM

Sleeping Overhaul


Did you ever want to hole up in the Pile 'o Crepes or Spiffo's Burger Joint but couldn't because there was no place to sleep? Then this mod is exactly what you are looking for. It allows you to sleep virtually anywhere (in beds, on sofas, in tents, in armchairs, on chairs, on benches, on the floor, and more...) and every object has its own comfortability levels which affect the recuperation process.
 

You too can sleep in the lovely smell of crêpe.

DBSaeHP.png


But this mod does more than adding more sleeping possibilites to the game. It changes the whole sleeping system. The player won't sleep for a fixed amount of time anymore but instead only until he is fully recuperated ... or awakened by a nightmare. You now can also sleep whenever you want - No more "you aren't tired enough to sleep" modals. Take a nap and be happy!
 

Church is closed... but open for napping.

wWpVSHb.png


There is also a chance to pass out when too tired now, so try to sleep regularly. If it happens, your character will drop to the floor and stay unconscious for a few hours. Of course this has a few repercussions so try to avoid it ... not to speak of the zombies who might munch on your brain while you are dreaming of better days.
 

Who wouldn't sleep in a fast food joint!?

v9FfUkR.png


The recuperation system is more realistic than with the vanilla sleeping mechanics. With this mod a healthy character who's very exhausted sleeps about 6 hours to be fully rested. But there are other factors that influence the recuperation time. For example being stressed will make the player sleep longer to regain fatigue, because who could sleep deeply during a zombie apocalypse anyway?

At the moment the most important factor for the sleeping time is the comfort level of the furniture (from best to worst):
  • Level 0: Beds
  • Level 1: Couches
  • Level 2: Armchairs, Tents*
  • Level 3: Chairs**, Benches, Treatment Tables
  • Level 4: Bathtub
  • Level 5: Toilet, Stools
  • Level 6: Floor
* Park Rangers have the "Camping Enthusiast"-Trait which makes tents as comfortable as beds for them.
** Security Guards have the "Chair Man"-Trait which makes chairs as comfortable as sofas for them.

Sleeping in a bed will of course offer the best recuperation, but I tried to keep the values balanced so even sleeping on the floor (without any other effects) won't be too bad. Of course I know that there are some people out there who'd prefer sleeping on the floor. For those people the values are easily changeable in the Sleeping_Config.lua file.









Some of the new modal dialogues.

f96o5FB.gif


As of version 1.1.0 there are two new traits for the Park Ranger and the Security Guard which affect the sleeping behaviour for those characters. The custom icons were made by the one and only Thuztor!
 

fshOsGc.png


Finally sleeping is affected by a multitude of factors (stats, comfortability, etc...) and there is even more stuff to come in the future! For a complete list of the current features check out the changelog below. As always crits && comments are appreciated. If you find any bugs or places where the sleeping overhaul doesn't work please report them here! Also the stats and different values aren't carved into stone. If there are issues with the balancing I'm totally open to change it.

 

Download for Updated Sleeping Overhaul (Build 27) updated by Pravus




The mod in action:
(ENG) Awesome showcase by Rancorist:


(GER) Great let's play by totu:


Known Bugs:
- Player starts sleeping before walking to the object (Fixed in v1.1.0)
- Fatigue is reset right after sleeping (Fixed in v1.1.0)
- Nightmares happening even when negative stats are zerored (Fixed in v.1.1.2)

Special Thanks:
EreWeGo: for all the testing and feedback!
Thuztor: for helping with the tile sheets && creating the trait-icons!
RobertJohnson: for his work and help with modding!
aricane: for pz-mods and being a nice guy!
7roses: for helping me figure out the overriding stuff!
... and finally all the people I forgot :)

Changelog
Spoiler

  • RobertJohnson, nasKo, Ludio Ludius and 10 others like this

Mics dropped: 6


#2 Rathlord

Rathlord

    HelpCat is Halpcating

  • PZ Support Team
  • PipPipPip
  • 6741 posts

Posted 23 July 2013 - 11:15 PM

Great to see all of your awesome mods here, Mat.


  • RoboMat likes this

The word of the day for tomorrow is prescient.


#3 RoboMat

RoboMat

    Adorable Troll-Cat and Wheelie-Bin Enthusiast

  • Members
  • PipPipPip
  • 3312 posts

Posted 23 July 2013 - 11:17 PM

Great to see all of your awesome mods here, Mat.


That was quick haha :) Thanks Rathlord!

I wish I could've released the Sleeping Overhaul (or at least an early version of it) today :(
Hopefully I can finish it tomorrow.

Mics dropped: 6


#4 Rathlord

Rathlord

    HelpCat is Halpcating

  • PZ Support Team
  • PipPipPip
  • 6741 posts

Posted 23 July 2013 - 11:22 PM

We'll be looking forward to it!


The word of the day for tomorrow is prescient.


#5 H_Bomb

H_Bomb

    BOOM!

  • Banned
  • PipPip
  • 24 posts

Posted 24 July 2013 - 09:33 AM

Now let us sleep on the floor, in trees, and under Dumpsters.



#6 datkid

datkid

    "OOO AH AH-AH!"

  • Members
  • PipPipPip
  • 793 posts

Posted 24 July 2013 - 09:57 AM

Good work :)


Give the time, some time.


#7 RoboMat

RoboMat

    Adorable Troll-Cat and Wheelie-Bin Enthusiast

  • Members
  • PipPipPip
  • 3312 posts

Posted 24 July 2013 - 10:06 AM

Now let us sleep on the floor, in trees, and under Dumpsters.


In trees and under Dumpsters?

Well actually sleeping (passing out) on the floor is one of the things I want to integrate.

Good work :)


Thanks! <3

Mics dropped: 6


#8 Rathlord

Rathlord

    HelpCat is Halpcating

  • PZ Support Team
  • PipPipPip
  • 6741 posts

Posted 24 July 2013 - 08:22 PM

Sleeping anywhere is planned for the final game, also. Just one of those things we may need to wait on XD


The word of the day for tomorrow is prescient.


#9 RoboMat

RoboMat

    Adorable Troll-Cat and Wheelie-Bin Enthusiast

  • Members
  • PipPipPip
  • 3312 posts

Posted 28 July 2013 - 09:36 PM

UPDATED TO VERSION 1.0.0

Features as listed below:

  • Added chance to pass out when too tired.
    => player will stay unconscious for a random amount of hours
    => passing out will only restore a small amount of fatigue
    => passing out will make you unhappy :(
  • Added options to sleep virtually anywhere:
    => on the floor
    => on beds
    => on sofas
    => on armchairs
    => on chairs
    => on benches
    => on treatment table
    => on crafted chairs
    => on stools
    => differentiates between a total of 291 tiles
  • Each object has a different level of comfortability
  • Sleeping has no fixed length anymore
    => instead player will sleep until being recuperated
    => small chance to wake up early when sleeping stressed (due to nightterrors)
  • Recuperation is affected by comfortability and certain stats
    => Nightowl Perk will reduce recuperation time
    => Stress will increase recuperation time
    => Lower Comfortability will increase recuperation time
    => Having a pillow in the inventory will reduce recuperation time
  • Player can take short naps even when not tired
  • Player walks to object to sleep
  • Tweaked ISModalDialog to prevent modals from being displayed offscreen
  • Tweaked ISWorldObjectContextMenu to deactivate the vanilla sleeping option

  • Dr_Cox1911, EreWeGo, Aricane and 2 others like this

Mics dropped: 6


#10 Aricane

Aricane

    Eater of the Stone

  • Members
  • PipPipPip
  • 435 posts

Posted 28 July 2013 - 09:42 PM

This is...so awesome! Mat, have a clyde  (clyde) and a hug.. and yet another clyde  (clyde)


  • RoboMat likes this

#11 EreWeGo

EreWeGo

    Just Relax. Just Relax. Breathe.

  • Members
  • PipPipPip
  • 593 posts

Posted 28 July 2013 - 09:46 PM

Great work Mat, can't wait to try out this latest version, love the changes listed!  :)



#12 Dr_Cox1911

Dr_Cox1911

    Forum-Certified Juggernaut

  • Members
  • PipPipPip
  • 496 posts

Posted 28 July 2013 - 09:49 PM

This is just awesome!

Will test this tomorrow.


Visit the german PZ-Community!

*If my post is completely bollocks then I´m online with my phone or drunk (and sometimes both)  :mrgreen:


#13 Aricane

Aricane

    Eater of the Stone

  • Members
  • PipPipPip
  • 435 posts

Posted 28 July 2013 - 10:07 PM

Two things I noticed so far. You can sleep after you woke up, meaning if you're well rested at 2 am, you can keep on sleeping. Is that intented? Another thing is the modal windows seems to appear near the cursor rather than in the center of the screen.



#14 RoboMat

RoboMat

    Adorable Troll-Cat and Wheelie-Bin Enthusiast

  • Members
  • PipPipPip
  • 3312 posts

Posted 28 July 2013 - 10:13 PM

Thanks for the feedback.

Both are intended. The "napping" can be used to forward time a bit, because in real life you can stay in bed too if you are too lazy to get up ^^

I might change the modal position if people don't like it that way. I thought that having it at the cursors position would feel more "natural". If people don't like it, it wouldn't be a big issue to bring it to the middle ;)

Mics dropped: 6


#15 lemmy101

lemmy101

    Co-Founder, Developer, Ninja

  • PZ Dev
  • PipPipPip
  • 1577 posts

Posted 28 July 2013 - 10:40 PM

Wowzers! This is amazing!


  • Rathlord and RoboMat like this

#16 Kajin

Kajin

    Fluffy Bunny of The Buttercup Meadow

  • Bug Triagers
  • PipPipPip
  • 1889 posts

Posted 28 July 2013 - 11:27 PM

I should probably start using mods... This would be awesome.


Normally we try to stick as close to realism as possible on these forums but I'm reasonably certain we can hand wave a thing or two about the physiology of a rotting corpse that is simultaneously walking around and hungering for the flesh of the living.


#17 RoboMat

RoboMat

    Adorable Troll-Cat and Wheelie-Bin Enthusiast

  • Members
  • PipPipPip
  • 3312 posts

Posted 29 July 2013 - 04:41 AM

Wowzers! This is amazing!


Thank you very much lemmy! (clyde)
 

I should probably start using mods... This would be awesome.


What holds you back? :)


Mics dropped: 6


#18 Kajin

Kajin

    Fluffy Bunny of The Buttercup Meadow

  • Bug Triagers
  • PipPipPip
  • 1889 posts

Posted 29 July 2013 - 04:44 AM

What holds you back? :)

Laziness.


Normally we try to stick as close to realism as possible on these forums but I'm reasonably certain we can hand wave a thing or two about the physiology of a rotting corpse that is simultaneously walking around and hungering for the flesh of the living.


#19 RoboMat

RoboMat

    Adorable Troll-Cat and Wheelie-Bin Enthusiast

  • Members
  • PipPipPip
  • 3312 posts

Posted 29 July 2013 - 06:59 AM

Laziness.


... my worst enemy.

Mics dropped: 6


#20 kinyoshi

kinyoshi

    The "Mad Magpie" Modder

  • Members
  • PipPipPip
  • 689 posts

Posted 29 July 2013 - 09:59 AM

Amazing RoboMat.

 

I petition and vote for The Indie Stone to hire RoboMat as a developer.

 

 

And RoboMat? What's with the dragons? Is it a Magic Dragon named Puff? Or his cousin named Pass?


  • ROFLMAOmatt likes this

With my Pistol Whipping Mod, you can add Kitten Knives to the Shotgun to make slice and dicing blunt weapons! Check it out!!

Check out my Project Zomboid Mods at PZ-Mods OR on the forums here in the Completed and WIP Sections!!!!






Also tagged with one or more of these keywords: Sleeping, Overhaul, Dragons, Sleep, Tired