Staxel
Sundial: Custom Day Length
52 Comments
Fenya 16 May, 2024 @ 9:52am 
i tried way too much to do anything i saw in here but nothing i trued worked
Fenya 16 May, 2024 @ 3:57am 
staxel.translation.translateexeption: mods.sundial.hooks.sundialhook.disconnect
what dis?
sorry me stupid but i installed this mod earlier today and it worked and made my days longer and now i get this error code
Mr.BlackJack 11 Apr, 2024 @ 2:12am 
nah i dont need the achievements, thanks for the fast help :3
wowi  [author] 10 Apr, 2024 @ 2:49pm 
If you're alright with disabling Steam achievements for that world, you may use the EnableCheats command before using the SetDayLength command. If you'd rather go through the game with achievements enabled, then you could try the workaround provided by Knot Yu: create a world, enable cheats, set the day length, then copy the config.json file from that temporary world into your current one.
Another solution would be to edit your world's rights.config file to include the "owner" and "tutorial" permissions.
If you need help with either of those two solutions, do let me know! :staxelCow:
Mr.BlackJack 10 Apr, 2024 @ 1:23pm 
it is a bit late to ask, but where can i find a tutorial how to use it. im trying a / comment but he says i dont have the authorization to do that. Im the host, i dont know what do do
KruhlSentru 2 Aug, 2023 @ 11:43pm 
YES! THIS! I thought this kind of game was supposed to be relaxing, but it's one of the most stressful games I've ever played. There's never enough time to do anything, and everyone has all these timed chores for you. It's been driving me CRAZY. This might actually make things calm down a notch or two. Now I just need to get the cow to stop fence hopping.
wowi  [author] 3 Apr, 2023 @ 9:10am 
Oh my, that's certainly one way of doing it! Glad it worked, haha.
I'll keep on trying to find a simpler, easier way to go about this. Perhaps an in-game command?
Knot Yu 2 Apr, 2023 @ 10:49pm 
Thanks for prompt response. I found a way to use EnableCheats and still get achievements. I created a new world, enabled cheats, changed the time, and then copied the config.json from the new world to my current. Tested to see if an achievement would pop and it did.
wowi  [author] 2 Apr, 2023 @ 2:48pm 
One possible solution would be to edit your world's rights.config file to include the "owner" and "tutorial" permissions.
Your file will likely look something akin to this:

{
"byUid": {
"steam_USER_ID_GOES_HERE": {
"rights": [
"tutorial",
"owner"
],
"username": "USERNAMES_GOES_HERE"
}
}
}
Knot Yu 2 Apr, 2023 @ 11:53am 
Encountering the sufficient permissions problem in single player world. Was a solution other than Enable Cheats discovered?
syl  [author] 18 Mar, 2023 @ 9:41am 
Glad we could help you troubleshoot! :awoo:
Spook Time© 18 Mar, 2023 @ 9:29am 
Ohhh, that makes sense! That fixed the issue, thanks so much!
syl  [author] 18 Mar, 2023 @ 8:50am 
Make sure you're checking the world folder for sundial, as opposed to the mods folder.
Reason for this is because sundial works on a per world basis, in case you want to have different settings for each world.
Spook Time© 17 Mar, 2023 @ 10:58pm 
I followed the instructions as far as I could, but sundial doesn't seem to be generating a config file. The sundial folder only contains ""Preview.jpg" and "Sundial-en-GB.lang"
wowi  [author] 17 Mar, 2023 @ 3:31pm 
I believe I see two issues here: one, the translation file has not been properly loaded; and two, Sundial failed to communicate with Moonbow. Both are easily fixable, though!
For the first issue, I recommend running the Staxel Content Builder. The steps for doing so are in the troubleshooting section of the description.
As for the second, it's likely that the Staxel client froze and missed its window of opportunity to respond to the mod check request. Details on how the process works, as well as instructions on how to fix this issue, are listed in the pinned thread, Modifying the Mod Detection Process .
If you encounter any more issues, or would like help fixing the above, do let me know. :staxelCow:
Spook Time© 17 Mar, 2023 @ 12:30pm 
It worked fine the first time I played a world, now I get an error message that says "staxel.translation.translateexception: mods.sundial.hooks.sundialhook.disconnect" and it won't let me load the world. I can still play that world without the mod, thankfully, it's not corrupted.
NaptimePlays 5 Feb, 2023 @ 3:19pm 
It keeps saying connection closed. It will go to the loading screen and then error out back to the main menu ):
wowi  [author] 29 Jan, 2023 @ 8:15pm 
Oh dear, sounds like an issue. What exactly happens when playing in multiplayer? Do you receive an error message? Are you unable to join the server? Does nothing happen at all?
NaptimePlays 29 Jan, 2023 @ 3:19pm 
works well in single player, but even with both parties having it installed it WILL NOT WORK with multiplayer.

If this is ever fixed, it's going to change the game for multiplayer games.
syl  [author] 3 Dec, 2022 @ 11:14am 
this mod changed my life
Bibi 1 Nov, 2022 @ 1:11pm 
It worked very well here, I'm finally having some relaxed fun with staxel, thanks!!
wowi  [author] 1 Nov, 2022 @ 7:41am 
Unfortunately, CE does not currently have mod support, so Sundial is unable to work on it.
If, however, mod support were to be added, whether officially or via a community project, then there's a chance I'd port Sundial over to it. Here's to hoping it'll be possible, someday!
Bibi 31 Oct, 2022 @ 9:55pm 
Does it work on CE?
wowi  [author] 19 Aug, 2022 @ 12:43pm 
Sundial 0.2 is now live!
Check out the pinned post for more details.

Well, that was a biiit quicker than expected, so I'm hoping it's not too buggy. Do give it a try and tell me if it's any good.
wowi  [author] 18 Aug, 2022 @ 9:46pm 
Gotcha. In that case, I'll stick to the first plan and get a simple update out before anything else. The Moonbow update (0.4.1) will likely be out in less than a day, as it should be simple enough to implement. The actual handling of the new config file additions for Sundial (0.2) might take a day or two. At least, I would hope so. We'll see how this goes!
HeadlessJason 18 Aug, 2022 @ 3:09pm 
I mean, I would love an update sooner if it would fix this, but I dont want to pressure you for for an update or anything. If you can, that's great, if not, I understand. I'm a patient man.
wowi  [author] 18 Aug, 2022 @ 11:01am 
Gosh, that sounds tedious, but I'm glad it at least worked.
How quickly would you like an update? I'm currently debating whether to push out a simple update to Moonbow that would allow for custom timeout length for the mod detection process (0.4.1), or keep it for a larger update that should hopefully allow for custom UI elements (0.5). No ETA on the latter, though; I'm still trying to figure out how I'd like to structure everything to be easy to understand and mod.
HeadlessJason 18 Aug, 2022 @ 12:41am 
Okay, I deleted the config and reinstalled sundial. It worked, and I can load up the world, then reset the day length to 45 and continue playing. Once the game is closed though, it will give the error again if I try to open the world, so I'll have to delete the config every play session. Thats okay withe me for now, but I am excited to hear an update might come so soon! I look forward to it. lmk if you need anything else.
wowi  [author] 17 Aug, 2022 @ 8:16am 
What I think I'm going to do, then, is allow for more control over the mod detection process in the Sundial config file. You could increase the time for detection (so even a freeze won't mess things up), or just disable it entirely, and run the server on an "integrity system", I guess. I'll have to think about it. Either way, expect an update to Moonbow (0.5) and Sundial (0.2) soon.

For now, though, one workaround should be to disable Sundial by deleting the config file (located in your world's save folder), and re-enable Sundial once in-game by using the SetDayLength command. Do give it a try and tell me if it works!
Again, thank you so much for the detailed bug report. It really does help a lot. :staxelCow:
wowi  [author] 17 Aug, 2022 @ 8:16am 
Gosh, that issue is such a pain. That said, though, thank you! This is immensely helpful!

I'm assuming you were the host for the multiplayer world? Typically, I've only ever seen the issue occur for the host; guests seem to have no problem.
Though I'm not entirely sure what is causing the TranslationException, I do have one theory on why this disconnection issue is happening. Sometimes, the client and/or server freezes for a few seconds while the world is loading, and messes with mod detection. This, in turn, causes Sundial to not detect you have the mod installed, despite you very clearly having it.
You can't tell if the server has frozen (unless you have the server console open and are actively monitoring it), and the only indication that the client has frozen is a stutter or freeze in its loading screen animation, making this a frustrating issue to even notice.
HeadlessJason 16 Aug, 2022 @ 11:53pm 
I am having the same issue as Avish. I'm including as much information as I can think to give below;

After installing, the mod worked fine for the first session in a multiplayer world. I set the day cycle to 45 minutes.
The next day when I tried loading the world, I got the message "Staxel.Translation.Translateexception: Mods.sundial.hooks.Sundialhook.disconnect." and the world would not open. I ran the content builder in the mod manager, and restarted the game. Nothing.
I uninstalled and deleted the mod entirely, restarted the game. The world works fine without the mod.
Reinstalled the mod fresh and restarted the game, but the world gave the same error message again and refused to load.
I am playing the game in English.
The only other mods I have on are some player species mods, color mods, and moonbow.
AstriaTheFox 26 Jul, 2022 @ 1:06pm 
Ah ok, thanks, my brain completely forgot that command was in the description as that'd make sense it'd show it but still good to know without needing to go on and check. :3
Honestly the days feel way shorter than that tbh. I'd maybe just increase it 50% to 33 minutes, perhaps double the original to 44 if that's still feeling short.
wowi  [author] 26 Jul, 2022 @ 9:22am 
Ah, right, that certainly would be good to know, to better adjust day length to your liking.
Staxel's default day length is 22 minutes , and as Sundial does not modify this value unless instructed to, you can verify this with the CheckDayLength command. :staxelCow:
AstriaTheFox 26 Jul, 2022 @ 8:43am 
You forgot to mention what the default day length is.
wowi  [author] 19 Jul, 2022 @ 12:54pm 
.. Guess who just discovered a bug with the mod.
Joining a world with Sundial enabled, whether singleplayer or multiplayer, will indeed synchronize the client's visual day length, but will fail to revert to the default value upon leaving. If you then join a world that does not have Sundial, the client will keep the previous world's day length, causing a mismatch between server and client. Restarting the game fixes the visual issue, but it will occur again upon joining a modded Sundial world.
wowi  [author] 16 Jul, 2022 @ 8:41pm 
Great! I'll add this to the listing description. Thank you!
Honestly, that wasn't your fault, either: if translations had been working, they would've informed you that you needed to provide a number of minutes, haha. Just one issue leading to another.
Plocana 16 Jul, 2022 @ 7:53pm 
Ah. That did the trick. I didn't know I needed a number after the command. My bad, but thanks, eheh.
wowi  [author] 16 Jul, 2022 @ 4:47pm 
.. Sounds like a translation issue again. It's displaying the translation key, rather than the actual translated message.
Could you try running the Content Builder and see if that fixes the issue? From the Steam launch options menu, choose Mod Manager Tool , wait for it to load all the mods, then choose Run Content Builder from the Tools menu at the top.

When using the SetDayLength command, what are you typing? Is it solely "/SetDayLength" without any number? If so, provide a number afterwards, such as "/SetDayLength 10" (without the quotes, case-insensitive).
Plocana 16 Jul, 2022 @ 2:55pm 
So I'm not sure what I'm doing wrong, but when I type "/setdaylength" I get the response "invalid Args"
And when I type "/checkdaylength" I get "response" as a reponse.
Any idea what I'm doing wrong?
Avish 6 Jul, 2022 @ 10:23am 
its working for now, ill keep in touch if anything goes weird again
Avish 6 Jul, 2022 @ 10:14am 
ill let you know
wowi  [author] 6 Jul, 2022 @ 9:53am 
If playing on a singleplayer world, try the following:
1. Open Staxel's installation folder. You can do this by selecting "Browse local files" or similar from the additional options menu on the game page in your Steam library.
2. Open the LocalContent folder. This is where world saves are kept.
3. Open your world's save folder. It will have the same name you gave the world when first creating it.
4. Open the Mods folder, then open the Sundial folder. This is where Sundial keeps the custom day length.
5. Delete or rename the config.json file. This will force Sundial to be disabled for that world.

With that, you should be able to join your world again. Using the SetDayLength command will re-enable Sundial.
If the error happens again after using the command, could you try joining the Staxel Discord server [discord.gg] to be able to share the game logs?
wowi  [author] 6 Jul, 2022 @ 9:53am 
That's really weird. It should only attempt to show that message if it detects that Sundial isn't installed. This means there's two issues here:
1. Staxel is failing to translate the message.
2. Sundial isn't being detected, despite being installed.

Are you playing on a singleplayer world? Is your game's language set to one other than English? I'm confused as to what's causing these two issues. Sundial should be detected, and Staxel should serve the correct translation.
Avish 6 Jul, 2022 @ 8:39am 
I got the full version of the error here. Staxel.Translation.Translateexception: Mods.sundial.hooks.Sundialhook.disconnect.
Avish 6 Jul, 2022 @ 8:28am 
it says exactly that, Translation Translationexception sundialmod.exe closed.
wowi  [author] 6 Jul, 2022 @ 8:04am 
Oh, that's an interesting one. When exactly does it occur, and what does the error message say?

If it helps, translations are used when using the help , SetDayLength , and CheckDayLength commands. They are also used when synchronizing day length, which occurs when joining a world with Sundial enabled or after the SetDayLength command is used.
Once those two things are known, there's a good chance of tracking the issue down and getting it fixed.
Avish 5 Jul, 2022 @ 7:06pm 
There is a Translation. Translation exception error. I works on the first use, but then prevents the game from loading again. I have to uninstall it for the game to work again. I enjoy the mod, but only if you can get it to work 100%. Giving you a heads up.
SunBun XIX 28 Jun, 2022 @ 5:05pm 
Lol! Misclicking is the real mod you made along the way.
wowi  [author] 27 Jun, 2022 @ 11:13pm 
.. Speaking of inconveniences, I just had to misclick. Grand.
wowi  [author] 27 Jun, 2022 @ 11:08pm 
Oh nooo! Right, so.. my two new priorities are to:
1. Figure out a way to get the command to work without enabling cheats.
2. Create a separate mod to add a command to disable cheats so achievements are re-enabled.
I'll start working on the second one for you. Sorry for the inconvenience.