Jump to content
  • 0

Server Status and online players


Gordo Lesado

Question


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  3
  • Reputation:   0
  • Joined:  01/29/13
  • Last Seen:  

Hello, all right? so I'm creating a skin for my Thor Patcher and would like this skin appeared the staus of my server "ON or OFF" would also appear that the amount of players logged into the server, how can I do this?

Link to comment
Share on other sites

4 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  249
  • Reputation:   72
  • Joined:  10/20/12
  • Last Seen:  

The Thor Patcher contains a webview. So you can display the server status in it.

(Con: You're bound to the webview space. Pro: Should be easy to implement)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  3
  • Reputation:   0
  • Joined:  01/29/13
  • Last Seen:  

@Jey

 

This webview is the space used by notice.html, right? then if I use a code? and how do I get thor patcher pull that information?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  5
  • Topics Per Day:  0.00
  • Content Count:  249
  • Reputation:   72
  • Joined:  10/20/12
  • Last Seen:  

Yes. The Patcher will request the notice.html on startup.

 

So put your status informations in it. To keep it up-to-date write a short script in php or shell/perl/python/... combined with cron.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  3
  • Reputation:   0
  • Joined:  01/29/13
  • Last Seen:  

@Jey

 

Okay, but how do I create this Status.php, what is the code?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...