Author Topic: PS status script [LEGACY]  (Read 4711 times)

derula

  • Hydlaa Citizen
  • *
  • Posts: 405
  • My main: Jamona Shikon
    • View Profile
    • Ugly Horst Tld.
PS status script [LEGACY]
« on: February 24, 2010, 10:25:52 am »
Unfortunately, with PS Legacy taken offline today (2023/5/1), this script is currently broken.

Inspired by and blatantly stealing the idea of this, I made a little script that checks character statuses.

It will only query the Laanx server every 10 minutes at most and save the result for later. It's open for everyone to use it.

Click here for details.

Here's a simple usage example:
Code: [Select]
http://psstatus.uglyhorst.de/Idiotbrain.png=>

You can also make it create a complete list of characters, via comma separation:
Code: [Select]
http://psstatus.uglyhorst.de/Idiotbrain,Randomdude,Slaughterking.png=>

For an advanced usage example, see my sig (yes, that would be see psstatus.uglyhorst.de/Jamona.png).

If you have any improvement suggestions, or want to "register" for advanced usage, tell me :)
« Last Edit: May 01, 2023, 03:56:05 am by derula »

Rigwyn

  • Guest
Re: PS status script
« Reply #1 on: February 24, 2010, 10:44:05 am »

I think thats pretty cool :)



derula

  • Hydlaa Citizen
  • *
  • Posts: 405
  • My main: Jamona Shikon
    • View Profile
    • Ugly Horst Tld.
Re: PS status script
« Reply #2 on: February 24, 2010, 12:45:32 pm »
I think thats pretty cool :)

Thanks :) I hope it will be useful for someone.

Also, if someone wants to profit from the status page parsing the script does, this link will give you a serialized PHP array with online characters (with the same 10 minute precision). This way, you can just write
Code: [Select]
$chars = unserialize(file_get_contents('http://psstatus.uglyhorst.de/chars_array.txt'));in PHP and have an array of chars currently online. (Except if the server has been unreachable on last check, then $chars will be false.)

Alternately, you can refer to this plain text list.

Both are sorted alphabetically (well at the moment they aren't, but will be in less than 10 minutes xD Edit: yup, now they are).

Enjoy :)
« Last Edit: February 24, 2010, 01:12:40 pm by derula »

derula

  • Hydlaa Citizen
  • *
  • Posts: 405
  • My main: Jamona Shikon
    • View Profile
    • Ugly Horst Tld.
Re: PS status script
« Reply #3 on: May 01, 2010, 07:19:07 am »
Fixed for Skylab. Not that anyone apart from me ever used it, but what the hell.

Also, it will stay online at the same address - and the "advanced usage" offer will stay open for anyone.

And also, as the new server is in Europe, it will reload the names list faster when it does so.

LigH

  • Forum Legend
  • *
  • Posts: 7096
    • View Profile
Re: PS status script
« Reply #4 on: May 01, 2010, 02:59:27 pm »
Well, still - thank you. Well possible that one could base an "offline buddy list" on it. Some day...

Gag Harmond
Knight and Ambassador
The Royal House of Purrty


Dracaeon

  • Hydlaa Citizen
  • *
  • Posts: 225
    • View Profile
    • KJ website
Re: PS status script
« Reply #6 on: May 05, 2010, 03:32:45 pm »
This question might seem stupid, but I want to clarify: Do we just put that link straight into our sig or whatever, or do we have to do something with it first?



weltall

  • Associate Developer
  • Veteran
  • *
  • Posts: 1671
    • View Profile
    • http://weltall.heliohost.org
Re: PS status script
« Reply #7 on: May 05, 2010, 09:44:15 pm »

derula

  • Hydlaa Citizen
  • *
  • Posts: 405
  • My main: Jamona Shikon
    • View Profile
    • Ugly Horst Tld.
Re: PS status script
« Reply #8 on: May 06, 2010, 12:43:40 pm »
This question might seem stupid, but I want to clarify: Do we just put that link straight into our sig or whatever, or do we have to do something with it first?

You should put something like this in your sig:
Code: [Select]
[img]http://psstatus.uglyhorst.de/Dracaeon.png[/img]

Bajazag

  • Hydlaa Resident
  • *
  • Posts: 53
    • View Profile
Re: PS status script
« Reply #9 on: May 06, 2010, 02:09:30 pm »
Baja likes it.
Thanks a lot derula  :)

oh, I've added a link to your page, hope it's ok
« Last Edit: May 06, 2010, 02:22:38 pm by Bajazag »


Illysia

  • Forum Addict
  • *
  • Posts: 2774
    • View Profile
Re: PS status script
« Reply #10 on: May 06, 2010, 02:31:03 pm »
Wonderful!  \\o//

BoevenF

  • Hydlaa Notable
  • *
  • Posts: 543
  • Amdeneir citizen, mostly travelling
    • View Profile
    • The Doømed Ones SVG
Re: PS status script
« Reply #11 on: May 07, 2010, 09:03:38 am »
Boeven bows to Derula with respect  :thumbup:

derula

  • Hydlaa Citizen
  • *
  • Posts: 405
  • My main: Jamona Shikon
    • View Profile
    • Ugly Horst Tld.
Re: PS status script
« Reply #12 on: May 07, 2010, 05:13:54 pm »
Nice idea with the link, thanks Bajazag :)

And thanks Illysia and BoevenF :) I hope you'll enjoy using it.

Bonifarzia

  • Hydlaa Notable
  • *
  • Posts: 718
    • View Profile
Re: PS status script
« Reply #13 on: May 23, 2010, 05:09:14 am »
I really like the idea of this.

Would it be possible for you to change the white background to a transparent one?


EDIT

(removed sample image)

Thanks, Derula


May the light guide you.
« Last Edit: May 25, 2010, 01:47:29 am by Bonifarzia »

derula

  • Hydlaa Citizen
  • *
  • Posts: 405
  • My main: Jamona Shikon
    • View Profile
    • Ugly Horst Tld.
Re: PS status script
« Reply #14 on: May 24, 2010, 03:50:11 pm »
Would it be possible for you to change the white background to a transparent one?

Sure. Actually, I just re-enabled a commented-out line that did exactly this.

(I disabled that because I thought the colors might be badly readable, but I never bothered to test it. And then I only used mine as a large image instead of the text version and no one else used it so I didn't care. But I agree, now that some use it, the white background looks rather ugly. And I think the text color is readable pretty well.)

Edit: Also, I've added a new feature. You can have all your characters listed at once now (result see my sig), e.g.:
Code: [Select]
[img]http://psstatus.uglyhorst.de/Ash, Peter; Pikachu| freedommaster,MaStErFiGhTeR.png[/img]will result in:

(Just to demonstrate improved error tolerance too.)

(Obviously, "advanced usage" will only work if just a single character is specified)
« Last Edit: May 24, 2010, 05:18:57 pm by derula »