source-server-manager
source-server-manager copied to clipboard
Allow importing server lists from HLSW
HLSW has three different formats it can export its server lists in. Allowing to import at least one of these would be great if you're managing a lot of servers. If you opt for the SSLF format, maybe you could register a file type handler for that, so opening brings up an import dialog or something.
@Jay2k1 can you share all 3 types of files? replace rcon info with dummy data.
The first export format is called "SSLF" and looks like this:
SSLF - Shared Server List Format - Version 1.01
// Create by HLSW (www.hlsw.de)
// Dateiformatsinformationen auf www.hlsw.de unter Developer
Name=TheNameIGaveThisList
Server=HL2 1.3.3.7:27000 "" "[ExampleServers] Headshot Only 24/7"
Server=HL2 1.3.3.7:27001 "" "AwesomeSurfers.tld | Easy Surf (128 Tick)"
Server=HL2 1.3.3.7:27002 ServerPasswordGoesHere "[ExampleServers] This has a password!"
HL2 is the "base game type" I guess, this info is retrieved from the server, as is the server name.
The second format, called "Text", produces plaintext .txt files with one ip:port per line, with line endings being CR+LF. This is probably the easiest and only useful one to implement, because server passwords are no use in the app, and RCON passwords, even if stored in HLSW, sadly are not being exported to either of these formats.
The third format is called "HL Server (favsrvs.dat)" but I could not get it to output anything useful (it created a file with only {} in it).