Jump to content

Recommended Posts

The phases in the game are day, dusk, and night, which in my mind has always been missing dawn. I knew I probably wouldn't be able to figure it out on my own, but I went ahead and tried to see what I could do to possibly add another phase.

I know that I would have to change how both the worldstate and uiclock work, so I initially tried to override them just to see what would happen. The game crashed. Pretty much regardless of the kind of override, it would crash the game. It wasn't surprising, but it does complicate things. 

So then I tried to hook the functions of worldstate and uiclock, and this is where I wasted several hours of my life because no matter what I did, the game basically wouldn't recognize it. I could load up the mod fine, but it just didn't do anything besides give debug prints. Pretty much everything was interpreted as nil no matter what I would do. 

Given how important the phases are to the game, I decided maybe changing them just wasn't in the cards. So now my current strategy is to create a separate function that tracks the time, and creates a pseudo-phase on top of part of another phase. In other words, the first 2 or 3 segments of day would have the dawn pseudo-phase on top of it that could be used to change behaviors. For instance, a new mushroom that only emerges at dawn. However, I can't even get this pseudo-phase to work at the moment. 

I'm still pretty new to modding, and I probably bit off more than I can chew here, but I'm really curious as to how someone might get it done. Has anyone done this or anything similar before, like maybe adding another season? Is it even possible?

1 hour ago, Guille6785 said:

someone made a mod like this for don't starve a long time ago: https://steamcommunity.com/sharedfiles/filedetails/?id=170363121

So that's for the original Don't Starve which, to my understanding, just had the clock as a component. It's a much more complicated system in Don't Starve Together to keep everyone in sync, and this mod probably won't have any answers for the main problem I'm having. That said, thank you! I'm sure there's a lot I can learn from it. 

  • Like 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
  • Create New...