1. Welcome to LilyPad. Download the project, explore the forums, and create your own LilyPad network.


    If you use the software and enjoy it or have a question, or would like to contribute to the future of the software directly or through resources, please sign up and join our little community.

Invalid Querying and golilypad

Discussion in 'Bug Reports' started by Shawshark, Dec 11, 2013.

  1. Shawshark

    Shawshark Active Member Resource Contributor

    Every since I'v moved to golilypad most php query scripts to retrieve player count data will not work. Don't have any idea if I'm doing anything wrong or it's a golilypad bug.
    Last edited: Dec 11, 2013
    • Agree Agree x 1
  2. Matt

    Matt Forum Moderator & Contributor Staff Member Moderator Contributor

    It should work fine with every script. Try to test it out on a voting site.
  3. The_Zip

    The_Zip Active Member Resource Contributor

    I went as simple as it gets, and @Shawshark is right, it doesn't work at all. For proof check out my few lined script http://thezip.us/shark.php .

    PHP:
    <?php
    $ip = play.craftshark.net;
    $port = 25565;
    $online = @fsockopen( $ip, $port, $errno, $errstr, 200);
    if($online >= 1) {
    echo '<a href="#" class="MPServer_Online">Online</a>';
    }
    else {
    echo '<a href="#" class="MPServer_Offline">Offline</a>';
    }
    ?>
    <p>
    <?php
    Print "IP Used play.craftshark.net";
    ?>
    Last edited: Dec 11, 2013
  4. Matt

    Matt Forum Moderator & Contributor Staff Member Moderator Contributor

    If you or @Shawshark could test it out on a voting site or so, and it isn't working, then this will be confirmed as a bug.
  5. Shawshark

    Shawshark Active Member Resource Contributor

    4 / 9 voting sites are working. It's not a bug but something in the query system has changed and I don't know much php to make a new script that will work with the current platform of golilypad
  6. The_Zip

    The_Zip Active Member Resource Contributor

    Thats interesting that four of them work. But, would it effect voting sites with LilyPad? Being that Go users won't be able to use certain voting sights.
  7. Coelho

    Coelho Software Engineer Staff Member Administrator Maintainer

    Those 5 websites are not utilizing the 1.7 protocol.
    • Informative Informative x 1
  8. Shawshark

    Shawshark Active Member Resource Contributor

    What I was trying to say my script was working for a JLilyPad 1.7.2 server just doesn't working on a GoLilyPad server for 1.7.2
  9. Coelho

    Coelho Software Engineer Staff Member Administrator Maintainer

    Just because it works for JLilyPad 1.7 doesn't mean it uses the 1.7 protocol.
  10. Shawshark

    Shawshark Active Member Resource Contributor

    Do you know of a php query script that works with it?
  11. The_Zip

    The_Zip Active Member Resource Contributor

  12. Shawshark

    Shawshark Active Member Resource Contributor

  13. The_Zip

    The_Zip Active Member Resource Contributor

    Nice, sounds good man.

Share This Page