playMaker

Author Topic: Status server text  (Read 2524 times)

Demonith

  • Playmaker Newbie
  • *
  • Posts: 32
Status server text
« on: November 05, 2015, 04:20:22 PM »
Hi all does some one can help me here to make a server status test like is it server online or offline i made a ui and text in it and make playmaker fsm in it so how to build now ? i have try everything but wont show  nothing ?
« Last Edit: November 05, 2015, 05:00:02 PM by Demonith »

Demonith

  • Playmaker Newbie
  • *
  • Posts: 32
Re: Status server text
« Reply #1 on: November 06, 2015, 04:49:59 AM »
Can some one help me with this ?

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Status server text
« Reply #2 on: November 06, 2015, 07:03:38 AM »
Hi,

 To test a server, you simply ping its ip address. so you use the WWWObject action using the ip address of your server as the url. then you can catch error and or text.

 so generally a server will have an specific url returning the status, like "1" quite simply, and so when you contact it, if the result is not "1" or it's an error then the server is down.

Bye,

 Jean

Demonith

  • Playmaker Newbie
  • *
  • Posts: 32
Re: Status server text
« Reply #3 on: November 06, 2015, 08:46:55 AM »
Well tnx u for replay but i want to be send on text gui if u know what i mean

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Status server text
« Reply #4 on: November 06, 2015, 09:23:29 AM »
Hi,

 not really :)

 the UI and the check is two different things. and you can display any text you want regardless of the result of the check.

so if you check and get that the server is up you can show "Server is OK" for example, and if you check and server fails, you can show "Server Offline".

is it what you want to do?


Bye,

 Jean

Demonith

  • Playmaker Newbie
  • *
  • Posts: 32
Re: Status server text
« Reply #5 on: November 06, 2015, 09:31:00 AM »
tnx for helping me out :)
Somehow i cant find the WWWObject action i have this 3

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Status server text
« Reply #6 on: November 07, 2015, 01:56:05 PM »
Hi,

 wwwObject is a regular action, the Ecosystem only list custom actions basically. I have been very tempted to include official actions as well in a different color. Your post is clearly about this potential confusion.

so wwwObject is already in your action browser basically, no need for the ecosystem.

 Bye,

 Jean