Web query for server status

    Joined
    Jun 18, 2013
    Messages
    69
    Reaction score
    13
    • Legacy Citizen 2
    • Legacy Citizen
    • Purchased!
    Hi,

    I can see from http://starmade-servers.com/ that there is a way to query a server and report the online state and the number of current players. I want to add this same functionality to my website. I've done this with my Minecraft servers, using Python before - but I just need to be pointed in the right direction for some guidance on the network protocol as it relates to StarMade - I can't seem to find that information.

    Thanks,

    Mike
     
    Joined
    Jun 14, 2013
    Messages
    12
    Reaction score
    0
    • Legacy Citizen 2
    • Legacy Citizen
    I have the StarMade.jar file loaded up in netbeans right now looking for that and some of the in game events like chat messages... I\'ll post back if I find the info you are looking for. :)

    [Edit]: The information you are looking for can be found here: org.schema.schine.network.server.ServerListener

    For those interested in the chat bit I mentioned it can be found here: org.schema.schine.network.ChatSystem

    @Mods, please provide us with a development category! I am tracking my findings here for now: http://forum.modembug.com/yaf_topics22_StarMade.aspx
     

    Cyc

    Joined
    Jun 24, 2013
    Messages
    1
    Reaction score
    0
    • Legacy Citizen 2
    • Legacy Citizen
    I\'d like to have more info about querying a Starmade server with php. Please let us know !
     
    Joined
    Jun 5, 2013
    Messages
    2
    Reaction score
    0
    • Legacy Citizen 2
    • Legacy Citizen
    I\'ve written a PHP class that queries the starmade server and returns the same info you\'ll find on starmade servers.

    As there\'s NO information on the protocol, I had to reverse engineer it. Seems to work well, but might break given a significant change to the protocol.
    If that happens, I\'ll release a fix as needed.

    I could turn it into a webservice, but that has the potential for abuse. Putting it here incase someone else needs this kind of function on their website.

    Download it here.
    http://www.twosphere.com.au/projects/starmade-query-php-class
     
    Joined
    Jun 18, 2013
    Messages
    69
    Reaction score
    13
    • Legacy Citizen 2
    • Legacy Citizen
    • Purchased!
    That\'s awesome, DrPhallus ! Well done, and thanks for sharing the code :)