Online/Offline status request - PlanetSide Universe
PSU Social Facebook Twitter Twitter YouTube Steam TwitchTV
PlanetSide Universe
PSU: Creating a disturbance since 2002
Home Forum Chat Wiki Social AGN PS2 Stats
Notices
Go Back   PlanetSide Universe > PlanetSide Discussions > PlanetSide 2 API Discussion

 
 
Thread Tools Search this Thread Display Modes
Old 2013-05-17, 01:14 AM   [Ignore Me] #1
DirtyBird
Contributor
Lieutenant Colonel
 
Online/Offline status request


This is in regard to the GM's on various servers.
I am not sure how it is on other servers but Briggs will sometimes have a GM online for a short period of time.
They are not allowed to accept friends requests so depending when you join you have nfi if they are on and nfi when they log off.

One day SOE may include this information in the UI but I wont hold my breath waiting for that to happen.

Is it possible to create something that for each specific server simply showing the online/offline status of the GM's we know per server?
Obviously we would need to provide a list of the known GM's per server.

They dont seem to belong to an outfit as such so its not as easy as just looking up that outfit in ps2stats.
__________________
DirtyBird is offline  
Old 2013-05-17, 05:27 AM   [Ignore Me] #2
Goblinhunter
Private
 
Re: Online/Offline status request


Assuming we had a list of their char names, and that these names do appear in API lookups (they're not hidden for example) this could be done quite easily. If someone can provide a list, I'd be happy to throw something together.
__________________
outfitpoints.com - the Planetside 2 Outfit Management Toolkit
Goblinhunter is offline  
Old 2013-05-17, 11:39 AM   [Ignore Me] #3
DirtyBird
Contributor
Lieutenant Colonel
 
Re: Online/Offline status request


Thanks, I'll start collecting for Briggs.

And no they are not hidden, ie. (seen all of these announce themselves as GM in game.)
MrFaodBriggs
GraviikBriggs
ChipBriggsNC
ChipBriggs
EndinaBriggs
GooseBriggs
SariuvBriggs
ExeregeBriggs
__________________

Last edited by DirtyBird; 2013-05-24 at 10:16 PM.
DirtyBird is offline  
Old 2013-05-24, 10:17 PM   [Ignore Me] #4
DirtyBird
Contributor
Lieutenant Colonel
 
Re: Online/Offline status request


Hows that for a start?
__________________
DirtyBird is offline  
Old 2013-06-08, 12:54 AM   [Ignore Me] #5
DirtyBird
Contributor
Lieutenant Colonel
 
Re: Online/Offline status request


MrFaodBriggs
GraviikBriggs
ChipBriggsNC
ChipBriggs
EndinaBriggs
GooseBriggs
SariuvBriggs
ExeregeBriggs
TerminusBriggs
__________________
DirtyBird is offline  
Old 2013-06-09, 01:18 AM   [Ignore Me] #6
Saladin
Private
 
Talking Re: Online/Offline status request


get/ps2-beta/character/?name.first=MrFaodBriggs&c:show=name,online_status &c:resolve=online_status

http://pside.co/19TTI9Y <-- sandbox link to what information that is passed from this above..

you would have to do multiply calls in order to do it but this just one person that you have listed...

I could do it in PHP but would take a little to get them all listed in it..

Ok below I know works and little ruff around edges but gets the job done... I used a txt file to make a listing called gms.txt with the game names of the people you want to know if there online.. it is not pretty by any kind of terms. If there offline will display 0 and a number when there online... now test it send me a pm if you wish to do more with it

PHP Code:
<?php
//Will need a txt file called gms.txt with new line for every game name wish to look up
//Enter service ID below 
$service_id " ";

//Below this point do NOT edit unless know what you are doing
// Setting up the API request going to be made
$site "http://census.soe.com/";
$format ="get";
$verb="ps2-beta";
$collection="character";
$call="?name.first=";
$modifier="&c:show=name,online_status&c:resolve=online_status";
//Checks to see if there is a service ID listed above
if($service_id "" $service_id " "$sid False; else $sid True;

//open file
$file "gms.txt";
$gm = array();
$fp = @fopen ($file"r");
if (
$fp) {
    
//for each line in file
    
while(!feof($fp)) {
    
//push lines into array
    
$this_line fgets($fp);                  
    
array_push($gm,$this_line);
    }
//close file
fclose($fp);
}


for(
$i=0;$i<count($gm);$i++){
    if(
$sid){
    
$json file_get_contents($site."s:".$service_id."/".$format."/".$verb."/".$collection."/".$call.rtrim($gm***91;$i***93;).$modifier);
    
$obj  = (json_decode($jsontrue));
    if(!empty(
$gm***91;$i***93;))    echo $gm***91;$i***93;.":".$obj***91;'character_list'***93;***91;'0'***93;***91;'online_status'***93;."</br>";
    
//echo $site."s:".$service_id."/".$format."/".$verb."/".$collection."/".$call.$gm***91;$i***93;.$modifier;
    
} Else {
    
$json file_get_contents($site.$format."/".$verb."/".$collection."/".$call.rtrim($gm***91;$i***93;).$modifier);
    
$obj  = (json_decode($jsontrue));
    if(!empty(
$gm***91;$i***93;))    echo $gm***91;$i***93;.":".$obj***91;'character_list'***93;***91;'0'***93;***91;'online_status'***93;."</br>";
    }
    
}
?>

Last edited by Saladin; 2013-06-09 at 02:44 AM. Reason: added sandbox link
Saladin is offline  
Old 2013-06-11, 02:57 AM   [Ignore Me] #7
DirtyBird
Contributor
Lieutenant Colonel
 
Re: Online/Offline status request


As per PM's many thanks Saladin.
(that page has been updated as well)
__________________
DirtyBird is offline  
Old 2013-06-16, 12:45 AM   [Ignore Me] #8
DirtyBird
Contributor
Lieutenant Colonel
 
Re: Online/Offline status request


Seems like I'm not the only one who wanted to know what GM's are online.
http://www.reddit.com/r/Planetside/c...ver_gm_in_the/

Had a new GM visit us yesterday but I wont add them to the list seeing as they communicated to us in German.
__________________
DirtyBird is offline  
Old 2013-06-17, 01:15 PM   [Ignore Me] #9
Saladin
Private
 
Re: Online/Offline status request


Well link them back to here then But ya anytime you update the listing post it up so other may know on your server
Saladin is offline  
Old 2013-07-30, 08:39 PM   [Ignore Me] #10
DirtyBird
Contributor
Lieutenant Colonel
 
Re: Online/Offline status request


Another reason this is handy, sometimes the GM's dont announce they are on.
Often you will see two online and only one announces it.
They do it on purpose for their own reasons.
__________________
DirtyBird is offline  
 
  PlanetSide Universe > PlanetSide Discussions > PlanetSide 2 API Discussion

Bookmarks

Discord


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 10:47 AM.

Content © 2002-2013, PlanetSide-Universe.com, All rights reserved.
PlanetSide and the SOE logo are registered trademarks of Sony Online Entertainment Inc. © 2004 Sony Online Entertainment Inc. All rights reserved.
All other trademarks or tradenames are properties of their respective owners.
Powered by vBulletin
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.