Added check to treetime.json output to see if somehow json conversion fails to return a value without errors and to prevent saving in that case.
Blind fix for power outage bug
Changes
Blind fix for tree time being wiped out in the event of a power outage due to a potential null reference.
Note: This change was made because a user reported tree time being corrupted in some way after a power outage https://steamcommunity.com/app/1916970/discussions/0/3391786047387753262/ . I was not given any information to go on other than a brief description. I'm sort of guessing that it may be possible when the power goes out while attempting to save the time the values are somehow cleared from memory. It is possible there will still be issues if the file write is in progress, but that would have to be a very well timed power outage. Please let me know if you experience this issue in the future and provide details. This fix will not prevent your power from going out.
Timing / Framerate patch
Changes
Tree time is now updated every 60 seconds instead of checking every few frames to see if 60 seconds have passed. This may be slightly more accurate.
The UI will now display "Treetime: failed to load." in the event the treetime file fails to read from disk for whatever reason. Treetime will not overwrite/update until the I/O error is resolved (i.e. restart game / computer). Previously this would set the tree time to zero and start counting erasing the accumulated time.
Frame rate caps will now respect the selected resolution refresh rate when VSync is disabled.
TREE TIME IS BACK!
Tree time is back, Tree! The most important feature in the treeverse! Can't have tree without time. How will you travel space-treetime? IT'S BACK!!! π³β
More reliable! Tree time no longer depends on a Steam connection to update. Tree time is now stored on the local machine similarly to settings. There are not currently cloud saves (maybe in the future), so if you migrate machines you will also have to migrate tree time.
Tree time starts now! Tree time is not the same as Steam game playtime and will never be (this is beyond my tree powers). However it is quite easy to update now if you wish to sync your treetime with steam playtime, though officially tree time starts now and has nothing to do with Steam game playtime.
More achievements! This tree time there is a greater variety of time based achievements with a lesser emphasis on extreme time frames.
I was not originally going to include this in this version of Tree Simulator but it is very important to trees so its back by poplar demand!
Changes
Add tree time achievements
Fixed innocuous error message
Moderation update / Bug fixes
This update will require server restarts to function properly.
Changes
Added moderator settings to server admin
Added banhammer settings to server admin
Disable chat option in admin settings
Clients now disconnect on server crash
Server will now shutdown on server crash
Hardened client code to prevent spurious crashes
Fixed scroll issue in admin tab
Fixed a minor bug when removing bots
Fixed bug where animals don't stop spawning when stopped while spawning
Fixed an event wiring issue in singleplayer
Fixed password cancel menu bug
How moderators work
Moderators are trees that the admin has assigned as a moderator. The purpose of the moderators is to be able to kick trouble making trees when the admin is not around. Moderators do not have control over the server and cannot kick other moderators or the admin.
How bans work
Only the admin of a server can ban trees, the ban list will be saved with the settings per server and cleared if the "Delete settings" button is clicked. Banned trees will automatically be kicked and prevented from joining until they are removed from the ban list or the settings are deleted. Bans are entirely at the discretion of the admin.
Note
Settings do not apply until you close the menu. this means that moderators and bans will be active but will not persist on server restart unless you close the menu.
I have not particularlly seen a need for these tools due to all the wonderful trees in this community but they were requested and these features were originally on my list for 2023 but I did not get around to it until now.
Have fun and be peaceful trees! ππ³
Hotfix: Tree count bug π₯π³π
Fixes
Tree count is now checked whenever the lobby state changes instead of when a tree is created.
Client errors will now trigger a full disconnect
Note: To sync up servers affected by count mismatch you may need to restart your server. Please let me know if you see tree counts mismatch in the future, the client error fix is more or less a guess at the problem, but seems likely to be the culprit.
Welcome to Tree Simulator 2023! πππ
People really love trees, 2023 is filled with tree feedback from 2022. Lots of things made it in, some things did not. I have some future thoughts but nothing set in stone yet. Please enjoy the new and improved tree experience and share the joy with all the other trees you know!
I will try not to get too sappy so I will just say...