EuedeAdodooedoe Posted August 26, 2016 Share Posted August 26, 2016 So, I know that there's always limits in games in terms of numbers and in this game, we would probably never see it unless we used the console to skip days. Question is; how far could a world go before the day count started going backwards or went back to 0 or something? Or would it crash? So, how far can we go and what would happen after that? Link to comment https://forums.kleientertainment.com/forums/topic/69786-how-far-can-a-world-go/ Share on other sites More sharing options...
CarlZalph Posted August 26, 2016 Share Posted August 26, 2016 The clock on the gui states the days passed up to 65536 since the clock starts on day 1. So it's an unsigned 16 bit integer before it wraps back to day 1. Probably can find it somewhere in the code for the net variable allocating it 16 bits. Edit: Ah yes, here they are: scripts/netvars.lua:10-10:: net_ushortint 16-bit unsigned integer [0..65535] scripts/components/shared_clock.lua:31-31:: local _cycles = net_ushortint(inst.GUID, "shard_clock._cycles", "clockdirty") The player's age for how long they've survived is not so clean in that it goes to the C side at some point. Eventually the display will go up to 9999 days, and then once at the range where LUA starts shorthanding the display to 1e+# it will not render at all. Link to comment https://forums.kleientertainment.com/forums/topic/69786-how-far-can-a-world-go/#findComment-807271 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.
Please be aware that the content of this thread may be outdated and no longer applicable.