Linking Launchers to Servers menu

User Tag List

Results 1 to 6 of 6
  1. #1
    1ns0mnia's Avatar Active Member
    Reputation
    67
    Join Date
    Nov 2007
    Posts
    428
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Linking Launchers to Servers

    Hi there,

    im pretty new to VB, started making a few launcher and other programs and now i am at the stage where i know what the code does and can vertually type it out with few errors, but im wanting to move up onto linking the launchers with server.

    for example, if a server has 300 players online, would it be possible to code in VB 2008 so that it has an uplink to the launcher telling people how many people are online?

    im not asking you to do it for me, just for a bit of a head start as i wouldnt know where to start with this, thats if its even possible,

    i was also thinking of having an uplink the the news and etc aswell, but for now just the basic ones will do

    thanks in advance,
    Insomnia

    Linking Launchers to Servers
  2. #2
    Clain's Avatar Banned
    Reputation
    179
    Join Date
    Jan 2008
    Posts
    1,396
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hmmm... best solution would to be load the number of players online from the stats page of your server(Its generated in XML so its even easier :P), since ascent derivatives don't support .NET addons now because the last time it was updated was like... 2007.

    So look into the XML namespace and read it from stats.xml

  3. #3
    JoeBiden's Avatar Contributor
    Reputation
    153
    Join Date
    Aug 2007
    Posts
    498
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Xmlreader, very easy to use.

  4. #4
    Hellgawd's Avatar Member
    Reputation
    710
    Join Date
    Jun 2007
    Posts
    2,480
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Or, if you have a server website that is already running a online_players php script, you could open a small web window on your program and have it load that php script.

  5. #5
    suicidity's Avatar Contributor
    Reputation
    207
    Join Date
    Oct 2006
    Posts
    1,439
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    The cleanest way would to post to the webserver requesting the information; Something serverside.

    something maybe like..

    Code:
    Public Shared Function RetrievePlayers() As String
                Dim webclient As New WebClient()
                Dim Response As Byte()
                Try
                    webclient.Headers.Add("Content-Type", "application/x-www-form-urlencoded")
    
                    Response = webclient.UploadData("http://127.0.0.1/PLAYERCOUNT.php", "POST", new Byte())
                    webclient.Dispose()
                Catch ex As WebException
                    webclient.Dispose()
                    Return "error"
                End Try
    
                Return System.Text.Encoding.ASCII.GetString(Response)
            End Function
    Then you could do a server-side php script that just read up the players or whatever you'd like to do, and then echo it.


  6. #6
    1ns0mnia's Avatar Active Member
    Reputation
    67
    Join Date
    Nov 2007
    Posts
    428
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ahh ok thanks guys

    ill give it a go

    edit: need to spread rep but you will get it eventually XD

Similar Threads

  1. [Misc] [Application] WoW Launcher & Private Server starter
    By Tommyruin in forum WoW EMU Programs
    Replies: 4
    Last Post: 11-29-2013, 12:34 PM
  2. [Release] Server Tools - including Server Launcher and Server Startup Tools (Source)
    By EmiloZ in forum World of Warcraft Emulator Servers
    Replies: 12
    Last Post: 07-27-2008, 08:54 AM
  3. Custom Launcher.exe for your server!
    By Marlo in forum WoW EMU Programs
    Replies: 48
    Last Post: 02-23-2008, 06:01 PM
  4. Linking servers
    By skalaski in forum World of Warcraft Emulator Servers
    Replies: 6
    Last Post: 09-29-2007, 11:08 AM
All times are GMT -5. The time now is 04:20 PM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search