Author Topic: Server Query  (Read 633 times)

BaxAndrei

  • Newbie
  • *
  • Posts: 3
    • View Profile
Server Query
« on: November 09, 2023, 08:56:29 am »
Hello.

Is there information or documentation on how to query the private server? Get data about server (if online, ping, players, etc.). I have a tracker site where all the community servers are kept, but for this game we didn't manage to do that.

Thank you in advance.

ai_enabled

  • AtomicTorch Founder
  • Hero Member
  • *****
  • Posts: 2052
    • View Profile
Re: Server Query
« Reply #1 on: November 09, 2023, 11:05:38 am »
Hello!
Alas CryoFall doesn't have this feature.
You can try parsing the console output of the server to gather some info (it's posting the stats about every 30 seconds).

Regards!

BaxAndrei

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Server Query
« Reply #2 on: November 12, 2023, 02:31:19 am »
I finally managed to make a script to get the data by simulating the connection, thanks anyway.

ai_enabled

  • AtomicTorch Founder
  • Hero Member
  • *****
  • Posts: 2052
    • View Profile
Re: Server Query
« Reply #3 on: November 13, 2023, 05:16:29 am »
Awesome! Please consider sharing your script on Github or Gist—it would be super helpful for other players/server owners.

Regards!

BaxAndrei

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Server Query
« Reply #4 on: November 14, 2023, 10:41:32 am »
There it is: https://github.com/tltneon/lgsl/commit/dcc7eb844a6fff3885131c80d301e74c07b78190

But it would be useful in the future to add an official query to make it easier for players to query the server. I think it will give a boost to the game because server lists will appear for it.

ai_enabled

  • AtomicTorch Founder
  • Hero Member
  • *****
  • Posts: 2052
    • View Profile
Re: Server Query
« Reply #5 on: November 15, 2023, 04:32:38 am »
Well done!
It's in our tasks list, but unfortunately we don't have a specific timeline for the next patch for CryoFall. The game has been finalized for over a year, so it's on maintenance and upkeep. I don't know when we will be able to continue development.

Regards!