Page MenuHomeFeedback Tracker

Direct access to currently loaded dedicated server config in script
Assigned, NormalPublic

Description

Hello, I was wondering if it is possible / there are plans to allow access to the currently running dedicated server config in script?

My workaround for this was to extract the config name from CLI parameters and then read it, but I would prefer some kind of getter in the scripting API to get the loaded/running config.

Details

Severity
Feature
Resolution
Open
Reproducibility
N/A
Operating System
Windows 11 x64
Category
General

Event Timeline

Geez changed the task status from New to Assigned.Apr 12 2023, 11:45 AM
Geez added a subscriber: Geez.Apr 12 2023, 1:42 PM

Hello bacon_8008.
Please describe your use-case in detail so we understand what are your plans and what exactly do you need to read from the config.

Here are some examples:

  • I could use the dedicated server ID for statistics purposes. I run several servers and currently assign identifiers myself.
  • I could read the admin password in order to create a dialog box UI for admins to login, so people don't leak passwords by mistyping the login chat command.

I will add more as I think of them. Do note that I can already read it from file if I have a path to it, but being able to just pull up an active DSConfig reference is massively more convenient.