Jump to content

Script request - if you dont do it I will when i get time :)


Daersun

Recommended Posts

Id like a script that parses all the game servers into a format importable into HLSW

 

We we be able to upload this and visit url.php and it would download the file :)

 

Thanks,

Jordan

 

PS - im swamped right now, but if I get some time I will be on the top of my list of things to code.

Link to comment
Share on other sites

SSLF - Shared Server List Format - Version 1.01

 

// Create by HLSW (http://www.hlsw.de)

// Dateiformatsinformationen auf http://www.hlsw.de unter Developer

 

Name="Custom server list"

 

Server=HL 65.254.46.26:27015 "" "Fragnkill's Cal Map Server"

Server=HL2 65.254.46.27:27015 "" "FragnKill:Nebulous SourceDM by Fragnservers.com"

Server=HL2 65.254.46.26:27016 "" "Fish Tank GunGame (FF/18+)"

Server=HL 208.100.14.1:27015 "" "FragnKill CSDM Server Provided By Fragnservers.com"

Server=HL2 208.100.14.10:27015 "" "Fragnkill Css Cal Map Server"

Server=HL 208.100.14.11:27015 "" "CAL CS Match Server #FiveGuys"

Server=HL 208.100.14.12:27015 "" Half-Life

Server=HL 208.100.14.14:27015 "" #one2bit

Server=HL2 208.100.14.15:27015 "" EasyCompany

Server=HL 204.14.95.2:27015 "" "SCV.rush Private"

Server=HL 204.14.95.3:27015 "" "! omfg a nice server !"

Server=HL2 204.14.95.4:27015 "" "Team awesomeSauce Dust2 24/7"

Server=HL2 204.14.95.5:27015 "" "The Captain's Pub"

Server=HL 204.14.95.10:27015 "" "Cheating Death Private <www.FragnServers.com>"

Server=HL 204.14.95.11:27015 "" "Fragnkill's Fun Maps Server"

Server=HL2 204.14.95.12:27015 "" "24/7 Dust2 Competitive Pub"

Server=CoD 208.100.14.1:28960 "" "ciX | [Chi]"

Server=HL 208.100.14.3:27015 "" "HF5 500fps=Boosted=:D"

Server=HL2 207.210.69.101:27015 "" "1212 match server"

Server=HL2 204.14.95.13:27015 "" "Fragnkill's Mod Community Server"

Server=HL 207.210.69.97:27015 "" "`A[n]rK|| Scrim Server"

Link to comment
Share on other sites

Awsome, couple things, HLTV doesnt seem to work if its installed as a game file :)

 

Also, how are you importing these? Maybe it would be better to JUST output a list of server IP addresses, I just found a button for HLSW for multiIP import so if we just had IP:port it would auto do everything else!

 

Thanks,

Jordan

Link to comment
Share on other sites

Well if you would please remove the line stating

// Generated by TCADMIN (www.tcadmin.com.de)

 

It really looks like some of that code came from the HLSW website. Which fails under a generic public license, that does not allow commercial use.

 

And I will ask Luis to post the database variables that you are looking for.

 

If you want to redo that header on the file to take full credit and remove anything related to www.hlsw.de then that would be great.

Link to comment
Share on other sites

well here it is, ( see attachments lol )

 

As usual, backup your database and all before trying this, also i aint taking responability for it breaking things altho i will try to help and fix it,

 

Instructions,

- unzip the file, ( system_tools ip-port.zip seems to work the best, Cheers Daersun )

- open it with notepad

- edit the line <% Dim sConString As String = .. ( its about line 40, you wont miss it )

- Save the file

- on your server rename system_tools.aspx to system_tools.aspx.backup or similar,

- upload the new system_tools.aspx

- Log into tc admin

- Choose system tools

- Choose HLSW server output

 

And thats it :\ lol let me know if i screwed up or not but it worked for me :)

 

- Michael

system_tools game-ip-port.zip

system_tools ip-port.zip

Link to comment
Share on other sites

This is how you get a database connection and execute sql commands:

 

Dim dbman As TCAdminBase.Plugins.IDatabaseManager = TCAdminSDK.Remote.InstanceCreator.GetDatabaseManager
Dim sql1 As String = "SELECT * FROM TABLE"
Dim sql2 As String = "UPDATE TABLE SET z = value where x=y"

dim result1 as System.Data.DataTable
result1 = dbman.Execute(sql1)

dim result2 as Integer
result2 = dbman.ExecuteNonQuery(sql2)

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Who's Online   0 Members, 0 Anonymous, 19 Guests (See full list)

    • There are no registered users currently online
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Terms of Use