Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Demonith on November 05, 2015, 04:20:22 PM

Title: Status server text
Post by: Demonith 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 ?
Title: Re: Status server text
Post by: Demonith on November 06, 2015, 04:49:59 AM
Can some one help me with this ?
Title: Re: Status server text
Post by: jeanfabre 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
Title: Re: Status server text
Post by: Demonith 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
Title: Re: Status server text
Post by: jeanfabre 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
Title: Re: Status server text
Post by: Demonith on November 06, 2015, 09:31:00 AM
tnx for helping me out :)
Somehow i cant find the WWWObject action i have this 3
(http://i64.tinypic.com/29xdg77.png)
Title: Re: Status server text
Post by: jeanfabre 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