Jump to content

[client-only] Find server "shard"/"slot" on locally hosted server?


Recommended Posts

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 by Bigfootmech
Link to comment
Share on other sites

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
 Share

×
  • Create New...