Staxel
Not enough ratings
Sundial: Custom Day Length
2
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
40.306 KB
22 Jun, 2022 @ 5:37pm
1 Change Note ( view )

Subscribe to download
Sundial: Custom Day Length

Description
What is Sundial?
Sundial is a universal mod that allows players to customize their world's day length.
Ever tried to chill and felt like the days were too short? Maybe you're a speed-demon who feels they're too long? Whatever the case, Sundial has you covered. You can change day length at any time, to fit whatever mood you're in.
Note: Staxel days are 22 minutes long, by default. You can use Sundial to modify this length.

What does the mod add to Staxel?
Sundial adds two chat commands for players to use:
  • SetDayLength is an admin-only command that sets in-game day length to however many minutes you specify
  • CheckDayLength is a public command anyone can use to see how long days are

What is planned for the future?
As of right now, there aren't any plans. Perhaps the ability to increase day length and shorten night length, or vice-versa? Who knows? If you have an idea, do suggest it!

What does it mean to be a universal mod?
Unfortunately, due to how Staxel is set up, Sundial can't be a server-side only mod. This means that it's required on both, the client and server. If playing with friends, everyone who joins the server will be required to have the mod installed. Sundial will automatically synchronize clients who join with the server's current day length.



Sundial is a Moonbow-dependent mod. It will not function without the library installed.

This mod makes use of Moonbow's ModHelper utility class to be able to verify client-side installation of Sundial. Moonbow must be installed in order for it to make use of these utilities.

You can download Moonbow from its Steam Workshop listing.



Troubleshooting
Running into issues using Sundial? Try some of the fixes below!
  • User does not have sufficient permissions to use the SetDayLength command
    The SetDayLength command requires admin permissions on the server. The first user to join the world should automatically be granted these permissions, though if they were not, one can use the EnableCheats command to elevate one's power over the world.
  • The SetDayLength command returns "invalid Args" and CheckDayLength returns "response"
    This is an issue with Staxel not properly loading the mod's translation file. To fix this, run the Content Builder.
    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.



Sundial is a code-based mod. You will receive a DLL warning when installing it.

After receiving such a warning, you might be wondering what a code-based mod[wiki.playstaxel.com] is.
In Staxel, there's two different kinds of mods: content and code-based. Content mods are ones that are created using Staxel's existing mod categories, such as clothing, tiles, crops, species, and even NPCs, among others. The game provides a user-friendly way to extend existing functionality to create your own content, often without touching even a single line of code.
Now, there comes a time when even the game's existing categories just don't meet your needs. This is where code-based mods come into play. Staxel provides a modding API, allowing users wanting to create new features to attach code to existing interfaces. With this, they can have the game perform different actions based on world information and events. This greatly expands what is capable with modding.
Why, then, is there a warning? The answer is simple: not all code can be trusted. Code-based mods are not limited to the game itself, as content mods are. They are capable of causing damage to your system if created with malicious intent. Be careful with what code you allow to run on your computer.
For safety and security purposes, Staxel only shares content-based mods when joining a modded server. Code-based mods are kept to the host's computer, and must be manually installed by the user. Server-side mods are able to provide new features to all players on the server, regardless if they have the mod installed or not.

So, where does that leave us? Is Sundial safe to use? Absolutely! It's open-source so you can take a look around its source code, as well as provide contributions, if you so wish. Check it out![github.com]
With all that said and done, be wary of which mods you install. Stay safe, stay positive, and keep on being awesome!
Popular Discussions View All (1)
3
21 May, 2023 @ 8:19pm
PINNED: Modifying the Mod Detection Process
wowi
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?