Project Zomboid

Project Zomboid

Pillows Upgrade Beds!
 This topic has been pinned, so it's probably important
Serellan  [developer] 6 Mar, 2024 @ 12:49pm
Note on TrueActions Compatibility (TLDR: It works!)
(TLDR: Yes, it works fine, just sometimes when lying down the pillow bonus text doesn't display properly)

A few folks have reported compatibility issues with the TrueActions mod when lying on beds.

The short answer is the Pillow Upgrade works fine with TrueActions, but sometimes the text tips don't display properly. I verified both in code and by functional tests in debug that the pillows bonus is functioning fine, as TrueActions uses the Vanilla sleeping system when activated, but because TrueActions create's it's own tooltips when you activate from the "Lie Down" position, the text popup does not display the Pillow bonus.

I may look at updating this for full tooltip compatibility in the future, but it would be quite a bit of work to maintain full compatibility between TrueActions and Vanilla.

Again, the bonuses for sleeping with a pillow DO function fine when using TrueActions. If you see the "+ Pillow} bonus when selecting Sleep when standing, you will get the bonus, even if the "+ Pillow" doesn't display when you activate it after lying down.
< >
Showing 1-2 of 2 comments
The US Doctor 6 Mar, 2024 @ 9:24pm 
man that's weird, but good to know it works at least
Serellan  [developer] 7 Mar, 2024 @ 7:59pm 
It's just a function of how the Lua scripting is set up. When you "Lie Down" using TrueActions, a new menu option for Sleep is created (that is a copy of the Vanilla one, and looks the same to the player), with just the text prompts so that you don't try and "Walk to" the bed like you would in Vanilla. When you select that Sleep option, it then runs the Vanilla sleep block, which activates PUB.

How TrueActions does it makes perfect sense, but it's difficult for PUB to intercept that duplicated Sleep command and change the text tooltip (since it doesn't exist in Vanilla), without replicating a bunch of things that they could then change, causing a whole other string of issues. :)

Fun gamedev stuff, mods supporting other mods is often more challenging than just modding the base game.
Last edited by Serellan; 8 Mar, 2024 @ 1:48am
< >
Showing 1-2 of 2 comments
Per page: 1530 50