TiltedEvolution
TiltedEvolution copied to clipboard
Use sleep / wait in Skyrim to actually progress time on the server
It is really non-immersive having to play through the night without the ability to skip time when all players go to sleep. You can roleplay an insomnia, but still...you will have to for example wait half an hour real-time for shops to open or disconnect from the server to sell items.
I saw a lot of requests for synced sleep, but I still haven't been able to find an open issue or any pull request here. Is someone working on this feature? Is there a reason why not to?
I've found this "Add TimeScale Server Setting" merged. So I thought it could be imho easily used to progress time on server when all the clients notify the server that they are either waiting or sleeping.
The SetTime should be in the next update and probaly does most of what you want.
On the "sleep" feature: Changing the time and timescale is very doable, but knowing when players are sleeping/waiting is another matter. Also, how many people should be in bed before the server "sleeps"? How long should it sleep for?
Unless anyone else wants to tackle all this, then I believe SetTime does the job well enough.
Thanks for the reply!
Also, how many people should be in bed before the server "sleeps"? How long should it sleep for?
I was thinking about that. There are several options. One would be to wait for all players on the server to lie in bed then determine the sleep length by the party leader. (This is good for small coop teams. Btw, with no alarm clock you cannot choose how long you will sleep even in RL 😄 )
Is it possible to not progress the sleep hours on the client and just stay in the bed somehow before the party leader sets the time? Right now the character "sleeps" without actually progressing the time on the server.
The
SetTimeshould be in the next update and probaly does most of what you want.
So is someone also working on on the sleep feature or how the SetTime function will be available to players? Thanks.
I am asking mostly because I was considering contributing, but I don't want to tackle a feature that someone is already working on. (And I do not really dare to fix any existing bugs since I am not that familiar with the codebase yet.)
So is someone also working on on the sleep feature or how the
SetTimefunction will be available to players? Thanks.
I added the SetTime server command and I don't have any current plans on expanding on it or doing anything sleeep related.
You could probably look at how it works and start with making a /wait server command, which just adds X number of hours to the current time instead of overwriting it. Also the CalendarService would be a good place to start for anything time related.
Feel free to stop by the Discord if you have any questions on the codebase or how to contribute. 😄
As a proposal to this problem:
As long as all recommendations in the documentation are followed, specifically the server is only used by one group and they are sticking with the same group leader, then I think it is sufficient for all group players to be waited for in the lying or sleeping state (thinking of i.e. the lying animation in hunterborn tents). The party lead then should be able to trigger all players sleep, forward time as if they are waiting respectively.
Maybe the usage of a mod or script like in the mod here https://www.nexusmods.com/skyrimspecialedition/mods/4224 would be a consideration for maximizing immersion for all players.
Fwiw, I would not be opposed to a system like this, in case anyone wants to code it, I'd probably accept it into master.