Bigfootmech Posted February 20, 2021 Share Posted February 20, 2021 (edited) Hey, I'm trying to get the Server chat logs as a local host (ie: hosting the server on my PC), with a [client-only] mod This works from both Main Menu, and Ingame, as the "host" in Local console TheSim:GetPersistentStringInClusterSlot(6, "Master", "../server_chat_log.txt", function(op, data) print(data) end) When my server is "Cluster_6" And as far as I can see from the /scripts/ this "slot" number should come from ShardIndex() or ShardGameIndex Both of which do exist in GLOBAL But trying to get "slot" from them, I get either nil, or 0, even server-side :/ My current idea is to try to hook in to when the server loads, and "save" the latest slot that was loaded. But was wondering if anyone had a less hacky way? Edited February 20, 2021 by Bigfootmech Link to comment https://forums.kleientertainment.com/forums/topic/127265-client-only-find-server-shardslot-on-locally-hosted-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