source-server-manager icon indicating copy to clipboard operation
source-server-manager copied to clipboard

Allow importing server lists from HLSW

Open Jay2k1 opened this issue 4 years ago • 2 comments

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 avatar Jul 02 '21 12:07 Jay2k1

@Jay2k1 can you share all 3 types of files? replace rcon info with dummy data.

mohitkyadav avatar Jul 02 '21 16:07 mohitkyadav

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).

Jay2k1 avatar Jul 02 '21 16:07 Jay2k1