DanielVip3 Posted April 29, 2022 Share Posted April 29, 2022 I'm trying to find a way to get the entire server's player history, because (of course) players have to be stored somewhere to keep track of their data and I need to get them for a mod I'm creating. There is actually a save file (or multiple files) in the server's saves folder which contains that data, and it's actually a LUA file. E.g. Documents\Klei\DoNotStarveTogether\161203439\Cluster_1\Master\save\session\6657207B1B83DB91 Each save file (without extension) will contain a list of players in a function called snapshot_fn in the tablefunctions table, for example tablefunctions["snapshot_fn"] = function() return {players={"KU_Nc1I9gHL","KU_ZWoAXOUQ"}} end savedata["snapshot"] = tablefunctions["snapshot_fn"]() Of course, I don't know how to access that tablefunctions table or savedata table from a mod, since I don't even know if I can access those save files from a mod. So I please ask you to help me find a way to access those save files and data; maybe you even know a better way to get the player history, but I couldn't find nothing by looking in TheSim and TheNet. Thank you in advance. Link to comment https://forums.kleientertainment.com/forums/topic/139781-getting-all-the-players-who-played-in-the-server/ Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now