Go Back   Novahq.net Forum > Members List

draconem draconem is offline

И00вš' Kıиg

Visitor Messages

Showing Visitor Messages 1 to 4 of 4
  1. Scott
    08-31-2017 11:57 AM
    Scott
    The host tool disables the heartbeat from the dll because it accomplishes the same thing + extras. The host tool actually has an option for 3rd party lobby reporting as well, it's just hidden for the time being. I didn't have time last winter to finalize it. I will do that soon!

    Themes are very nice! It's nice to see what you did with the N00bby theme. Thanks for your contribution!
  2. Scott
    08-30-2017 09:31 AM
    Scott
    I will update the message feature in the NovaHQ lobby this winter when I do the stats stuff. I believe the actual max length of the message field is 150 chars for the "release" version of the status script.

    Black Hawk Down has a limit of 60 via the game (it has a built in message field) so I just sort of used that as a guide.

    You can try up to 150, or increase the database "varchar" to 255 and even use 255 chars. However, my lobby will probably only support up to 150ish chars.

    Can't wait to see the template
  3. draconem
    08-29-2017 09:26 AM
    draconem
    Well, game server and web server are diferent machines, so...

    Code works now, just changed

    if($_SERVER['REMOTE_ADDR']=="127.0.0.1")

    by

    if($_SERVER['REMOTE_ADDR']=="127.0.0.1" or $_SERVER['REMOTE_ADDR']=="192.168.1.65")

    Thanks a lot.

    P.S. Now, I'll edit the status.php to work with a skin aka template (LOL).
  4. Scott
    08-29-2017 09:10 AM
    Scott
    I see what you mean. I'm sure it's rare that someone is hosting a game server on the same machine as a website. BUT because it's PHP you can modify it. In the import.php script, if the $_SERVER['REMOTE_ADDR'] is your local IP address, you can do a simple:

    if($_SERVER['REMOTE_ADDR']=="127.0.0.1") {
    $_SERVER['REMOTE_ADDR']="public_ip";
    }

    If you do not know your public IP or it changes, you'll have to use an external service such as https://api.ipify.org/

    if($_SERVER['REMOTE_ADDR']=="127.0.0.1") {
    $_SERVER['REMOTE_ADDR'] = file_get_contents('https://api.ipify.org');
    }

    Hope that helps!

About Me

  • About draconem
    NovaLogic Games Owned
    DF2, DFLW, Commanche 4
  • Signature
    Kıиg øƒ тнє И00вš

Statistics

Total Posts
Visitor Messages
General Information
  • Join Date: 03-11-2016
  • Referrals: 0

All times are GMT -5. The time now is 06:33 AM.




Powered by vBulletin®