In the previous versions (V1.0.1 and lower), the structure of the UserData Folder was messed up in the .zip! Make sure your UserData looks like this:https://i.imgur.com/0zjDroP.png Or just download the V1.0.2, there the .zip is now structured as it needs to be!
Please provide me the Error Message in MelonLoader. Without that it's hard to say what the error is. You can also test the mod without other mods and see if it is a compatibility issue. If so, please try to find out which mod is not compatible.
It is known already, that the app is not compatible with most Translation Mods.
Move all associated UserData files to it's own folder under UserData/MoreRealisticSleeping. Folder structure should look like this: https://i.imgur.com/0zjDroP.png
Great mod! Having a few issues that hopefully can be fixed.
-There are 2 MoreRealisticSleeping.json files appearing in the UserData folder, causing configs to reset. Screenshot: https://i.imgur.com/mdvZ0YU.png (edit: Seems to be fixed after deleting UserData/MoreRealisticSleeping.json)
-Nothing showing up in the SleepDose app. Screenshot: https://i.imgur.com/A5B1dev.png (edit: Fixed after moving all associated userdata files to UserData/MoreRealisticSleeping - Folder structure should look like this: https://i.imgur.com/0zjDroP.png)
MelonLoader errors once loading into the game save: [00:40:47.614] [MoreRealisticSleeping] Custom image failed to load [00:40:47.620] [MoreRealisticSleeping] Added SleepDose to Homescreen. [00:40:49.401] [MoreRealisticSleeping] Unhandled exception in coroutine. It will not continue executing. Il2CppInterop.Runtime.Il2CppException: System.ArgumentException: The Object you want to instantiate is null. --- BEGIN IL2CPP STACK TRACE --- System.ArgumentException: The Object you want to instantiate is null. at UnityEngine.Object.Instantiate (UnityEngine.Object original, UnityEngine.Transform parent, System.Boolean instantiateInWorldSpace) [0x00000] in <00000000000000000000000000000000>:0 at UnityEngine.Object.Instantiate[T] (T original, UnityEngine.Transform parent) [0x00000] in <00000000000000000000000000000000>:0 --- END IL2CPP STACK TRACE --- at Il2CppInterop.Runtime.Il2CppException.RaiseExceptionIfNecessary(IntPtr returnedException) in /home/runner/work/Il2CppInterop/Il2CppInterop/Il2CppInterop.Runtime/Il2CppException.cs:line 36 at UnityEngine.Object.Instantiate[T](T original, Transform parent) at MoreRealisticSleeping.PhoneApp.SleepingApp.AddEntryFromTemplate(String newObjectName, String newTitle, String newSubtitle, GameObject template, Color newBackgroundColor, String imagePath, Transform parentTransform, Boolean isFirstEntry) at MoreRealisticSleeping.MRSCore.CreateAppEntries() at MoreRealisticSleeping.MRSCore.WaitForSleepingAppAndCreateEntry()+MoveNext() at MelonLoader.Support.MonoEnumeratorWrapper.MoveNext() in D:\a\MelonLoader\MelonLoader\Dependencies\SupportModules\Il2Cpp\MonoEnumeratorWrapper.cs:line 51
Hey! Thanks for reporting this. Did you manually put the .json in the UserData Folder? Usually there should only be the "MoreRealisticSleeping" Folder in the UserData Folder. The folder itself should look like this. Please try to delete the .json file in the main UserData Folder and try again, if the issue is already resolved.
If not, please provide the Error Message, that you receive in MelonLoader.
And there is an option to disable the Phone App: Use_Legit_Version If you set it to true, the config will be loaded and applied, but no app will be created at all.
I was able to resolve both issues by moving all associated UserData files to UserData/MoreRealisticSleeping.
The folder structure of the .zip has the data files placed directly in UserData and not in it's own folder, which causes the SleepDose app and config to break. All userdata files should be in UserData/MoreRealisticSleeping.
That's weird. Can't replicate this sadly. I checked the zip - it's structured as it needs to be. Can't tell why it's uncompressing for you like that tbh. I just hope that it will be resolved with the next zip upload
I believe the zip is missing the MoreRealisticSleeping folder within userdata. On first launch, the mod creates the missing folder and config file since it doesn't detect the one in userdata, but the rest of the files are still left in UserData which causes the phone app to break.
Here is what the zip structure looks like. Shouldn't there be a MoreRealisticSleeping folder inside userdata witch contains these files?
I have been testing out the new feature to autoskip the end of day summary, and the delay before forced sleep. It seems like they both work fine on the first night, but fail on the 2nd night... however I have been testing with time skips. I am testing now without time skips. Will let you know results in about 48 mins. ^_^
1st edit: ok, it seems like this works just fine if you dont manually advance time with the settime console command. So the above just seems to be an artifact of skipping ahead for testing purposes. I will let this run for a while today.
2nd edit: after letting run for multiple cycles, even while running in the background, everything seems to be progressing nicely.
Later today I should have some other subjects to test this with and will be able to check how it works in an actual multiplayer environment.
I will post any further issues as their own comments.
This is most likely because of the cooldown. Once a user (server) slept, the cooldown (which you can adjust in the settings) starts. This stops the mods from permanently triggering the sleep. Once this cooldown is over (see in MelonLoader console). You can trigger a new sleep. This cooldown will also be set, if you go to bed normally without being forced to sleep.
[00:18:08.840] [MoreRealisticSleeping] Unhandled exception in coroutine. It will not continue executing.Il2CppInterop.Runtime.Il2CppException: System.ArgumentException: The Object you want to instantiate is null.--- BEGIN IL2CPP STACK TRACE ---System.ArgumentException: The Object you want to instantiate is null. at UnityEngine.Object.Instantiate (UnityEngine.Object original, UnityEngine.Transform parent, System.Boolean instantiateInWorldSpace) [0x00000] in <00000000000000000000000000000000>:0 at UnityEngine.Object.Instantiate[T] (T original, UnityEngine.Transform parent) [0x00000] in <00000000000000000000000000000000>:0--- END IL2CPP STACK TRACE --- at Il2CppInterop.Runtime.Il2CppException.RaiseExceptionIfNecessary(IntPtr returnedException) in /home/runner/work/Il2CppInterop/Il2CppInterop/Il2CppInterop.Runtime/Il2CppException.cs:line 36 at UnityEngine.Object.Instantiate[T](T original, Transform parent) at MoreRealisticSleeping.PhoneApp.SleepingApp.AddEntryFromTemplate(String newObjectName, String newTitle, String newSubtitle, GameObject template, Color newBackgroundColor, String imagePath, Transform parentTransform, Boolean isFirstEntry) at MoreRealisticSleeping.MRSCore.CreateAppEntries() at MoreRealisticSleeping.MRSCore.WaitForSleepingAppAndCreateEntry()+MoveNext() at MelonLoader.Support.MonoEnumeratorWrapper.MoveNext() in D:\a\MelonLoader\MelonLoader\Dependencies\SupportModules\Il2Cpp\MonoEnumeratorWrapper.cs:line 51
using only this mod and morerealisticlaundering. also melon throws "waiting for fonts" messages sometimes and when it does happen the phone app won't appear. when it doesn't say "waiting for fonts" the above error happens, the app appears but is completely blank when opened. happens on both a fresh save and my current
This is fantastic! I have been waiting for this mod. How does it work with multiplayer? If the host is running it, does it force everyone else to sleep?
edit: nm I found the appropriate settings. They were not showing up because of a conflict with another mod.
Please see the Multiplayer Heading in the Description.
If everyone got the same settings with the mod installed, everyone will be forced to sleep. However everyone has to wait for the host to finish sleeping.
Yes. You might wanna use the Legit Mode to resolve some conflicts.
Which Mod was conflicting? Maybe I can have a look.
The conflicting mod was Mod Manager & Phone App, which was breaking the in-game settings. Of course, you already gave a warning about this, I was just in a big hurry to test it and didn't bother to read carefully first.
I will test out Legit Mode here in a minute.
There is one thing I wonder about
Behavior: All players are forced to sleep simultaneously during the designated sleep hours. The game resumes once the host player has completed their sleep cycle.
My intent for this mod is to use it to facilitate something like a dedicated server for friendly competitive play, so the host might be afk for a majority of the time. could an option be included for the host to auto-skip the sleeping/xp screens, or will I just need to make a macro or something to do this?
Also, will this mod play nice with mods that expand the size of the multiplayer lobby?
Auto skipping sleep would be amazing. Right now I am editing a macro to move the mouse down a bit and click every few seconds. Functional, but not a good solution.
Just figured it out. Next Update will Introduce Automatic Continuation when forced to sleep. Additionally next update will also introduce a configurable delay (starting at 4AM) before forcing to sleep.
I will release the update tomorrow (already pretty late in my timezone). I need to find someone to test it in multiplayer tho. The Effects are more likely not synced in multiplayer yet (need to figure out how that actually works in IL2CPP). Meaning that effects are more or less clientside (the other client won't see it)
I will try to recruit a friend or two and test it out tomorrow morning, or late today, depending on when that ends up being in your time zone. Thank you. ^_^
29 comments
In the previous versions (V1.0.1 and lower), the structure of the UserData Folder was messed up in the .zip!
Make sure your UserData looks like this: https://i.imgur.com/0zjDroP.png
Or just download the V1.0.2, there the .zip is now structured as it needs to be!
You can also test the mod without other mods and see if it is a compatibility issue. If so, please try to find out which mod is not compatible.
It is known already, that the app is not compatible with most Translation Mods.
-There are 2 MoreRealisticSleeping.json files appearing in the UserData folder, causing configs to reset. Screenshot: https://i.imgur.com/mdvZ0YU.png
(edit: Seems to be fixed after deleting UserData/MoreRealisticSleeping.json)
-Nothing showing up in the SleepDose app. Screenshot: https://i.imgur.com/A5B1dev.png
(edit: Fixed after moving all associated userdata files to UserData/MoreRealisticSleeping - Folder structure should look like this: https://i.imgur.com/0zjDroP.png)
MelonLoader errors once loading into the game save:
[00:40:47.614] [MoreRealisticSleeping] Custom image failed to load
[00:40:47.620] [MoreRealisticSleeping] Added SleepDose to Homescreen.
[00:40:49.401] [MoreRealisticSleeping] Unhandled exception in coroutine. It will not continue executing.
Il2CppInterop.Runtime.Il2CppException: System.ArgumentException: The Object you want to instantiate is null.
--- BEGIN IL2CPP STACK TRACE ---
System.ArgumentException: The Object you want to instantiate is null.
at UnityEngine.Object.Instantiate (UnityEngine.Object original, UnityEngine.Transform parent, System.Boolean instantiateInWorldSpace) [0x00000] in <00000000000000000000000000000000>:0
at UnityEngine.Object.Instantiate[T] (T original, UnityEngine.Transform parent) [0x00000] in <00000000000000000000000000000000>:0
--- END IL2CPP STACK TRACE ---
at Il2CppInterop.Runtime.Il2CppException.RaiseExceptionIfNecessary(IntPtr returnedException) in /home/runner/work/Il2CppInterop/Il2CppInterop/Il2CppInterop.Runtime/Il2CppException.cs:line 36
at UnityEngine.Object.Instantiate[T](T original, Transform parent)
at MoreRealisticSleeping.PhoneApp.SleepingApp.AddEntryFromTemplate(String newObjectName, String newTitle, String newSubtitle, GameObject template, Color newBackgroundColor, String imagePath, Transform parentTransform, Boolean isFirstEntry)
at MoreRealisticSleeping.MRSCore.CreateAppEntries()
at MoreRealisticSleeping.MRSCore.WaitForSleepingAppAndCreateEntry()+MoveNext()
at MelonLoader.Support.MonoEnumeratorWrapper.MoveNext() in D:\a\MelonLoader\MelonLoader\Dependencies\SupportModules\Il2Cpp\MonoEnumeratorWrapper.cs:line 51
Thank you!
Thanks for reporting this.
Did you manually put the .json in the UserData Folder? Usually there should only be the "MoreRealisticSleeping" Folder in the UserData Folder. The folder itself should look like this. Please try to delete the .json file in the main UserData Folder and try again, if the issue is already resolved.
If not, please provide the Error Message, that you receive in MelonLoader.
And there is an option to disable the Phone App: Use_Legit_Version
If you set it to true, the config will be loaded and applied, but no app will be created at all.
The folder structure of the .zip has the data files placed directly in UserData and not in it's own folder, which causes the SleepDose app and config to break. All userdata files should be in UserData/MoreRealisticSleeping.
Edit: The zip is structured correct -> there is only a mod and a userdata folder with the correct structure in the newest zip
Here is what the zip structure looks like. Shouldn't there be a MoreRealisticSleeping folder inside userdata witch contains these files?
It seems like they both work fine on the first night, but fail on the 2nd night... however I have been testing with time skips.
I am testing now without time skips. Will let you know results in about 48 mins. ^_^
1st edit: ok, it seems like this works just fine if you dont manually advance time with the settime console command. So the above just seems to be an artifact of skipping ahead for testing purposes.
I will let this run for a while today.
2nd edit: after letting run for multiple cycles, even while running in the background, everything seems to be progressing nicely.
Later today I should have some other subjects to test this with and will be able to check how it works in an actual multiplayer environment.
I will post any further issues as their own comments.
using only this mod and morerealisticlaundering. also melon throws "waiting for fonts" messages sometimes and when it does happen the phone app won't appear. when it doesn't say "waiting for fonts" the above error happens, the app appears but is completely blank when opened. happens on both a fresh save and my current
edit: nm I found the appropriate settings. They were not showing up because of a conflict with another mod.
If everyone got the same settings with the mod installed, everyone will be forced to sleep. However everyone has to wait for the host to finish sleeping.
Yes. You might wanna use the Legit Mode to resolve some conflicts.
Which Mod was conflicting? Maybe I can have a look.
Of course, you already gave a warning about this, I was just in a big hurry to test it and didn't bother to read carefully first.
I will test out Legit Mode here in a minute.
There is one thing I wonder about
All players are forced to sleep simultaneously during the designated sleep hours. The game resumes once the host player has completed their sleep cycle.
My intent for this mod is to use it to facilitate something like a dedicated server for friendly competitive play, so the host might be afk for a majority of the time. could an option be included for the host to auto-skip the sleeping/xp screens, or will I just need to make a macro or something to do this?
Also, will this mod play nice with mods that expand the size of the multiplayer lobby?
I will have a look into the Mod Manager & Phone mod
Next Update will Introduce Automatic Continuation when forced to sleep.
Additionally next update will also introduce a configurable delay (starting at 4AM) before forcing to sleep.
The Effects are more likely not synced in multiplayer yet (need to figure out how that actually works in IL2CPP). Meaning that effects are more or less clientside (the other client won't see it)