Post your tools here - Page 3 - PlanetSide Universe
PSU Social Facebook Twitter Twitter YouTube Steam TwitchTV
PlanetSide Universe
PSU: Game Over SUCKA!
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-03-21, 04:34 PM   [Ignore Me] #31
torokokill
Private
 
torokokill's Avatar
 
Re: Post your tools here


Originally Posted by Vertago View Post
Since the last patch, the killfeed no longer auto updates
Combination of the API being quite slow at returning results(triggering timeouts) and simply dropping many queries(my php/javascript code isn't robust). I'll have a look at it and work on a more robust solution.
__________________
Shooting Thingserer


Last edited by torokokill; 2013-03-21 at 04:36 PM.
torokokill is offline  
Old 2013-04-02, 05:10 AM   [Ignore Me] #32
arrmed
Private
 
Re: Post your tools here


Many thanks to Sinjhin, I based this PHP script off his work.

Shows online Members of your outfit sorted by battle rank:
http://framephonic.com/membersOnline.php

Code:
<html>
<head>
<title>Online PCYS members</title>
</head>
<body>
<p><h3>Online Now:</h3></p>
<?php
	$jsonOutfit = file_get_contents("http://census.soe.com/get/ps2-beta/outfit?alias=PCYS&c:resolve=member_online_status");
	$aearray = json_decode($jsonOutfit, true);
	$outfit_list = $aearray["outfit_list"];
	$members = $outfit_list[0]["members"];
	$memberIDs;
	$memberData;
	$memberIDsOnline;
	$memberSpecifics;
	$onlineCount = 0;
	
	date_default_timezone_set('America/Vancouver');
	

		foreach($members as $key => $value)
	{
		//echo "Key: $key; Value: $value<br />\n";
		if ($value["online_status"] == "1") {
		  $onlineCount++;
		$memberIDsOnline[$key] = $value["character_id"];
		}
	}
	
	foreach($memberIDsOnline as $key => $value)
	{
		$query = "http://census.soe.com/get/ps2-beta/character/{$value}?c:show=name.first,experience.rank";
		$memberData[$value] = json_decode(file_get_contents($query), true);
	}
	
	foreach($memberData as $key => $value)
	{
		$memberSpecifics[$key] = array("ID" => $key, "battle_rank" =>  $value["character_list"][0]["experience"][0]["rank"], 
						"name" => $value["character_list"][0]["name"]["first"]);
	}
	
	//var_dump($memberData);
	
	function cmp($b, $a)
	{
           if ($a["battle_rank"] == $b["battle_rank"])
	{
              return 0;
}
	    return ($a["battle_rank"] < $b["battle_rank"]) ? -1 : 1;
	}
	
	usort($memberSpecifics, "cmp");
	
	echo "<table border=1>";
	echo "<tr><td><b>Name</b></td><td><b>Battle Rank</b></td></tr>";
	foreach($memberSpecifics as $key => $value)
	{
		if($value["name"] == true)
		{
			echo "<tr>";

			echo "<td>{$value['name']} </td><td> {$value['battle_rank']} </td>";
			//echo "</br>{$value['name']}';
			echo "</tr>";
		}
	}
	echo "</table>";
?>
</body>
<html>
arrmed is offline  
Old 2013-05-17, 10:59 AM   [Ignore Me] #33
Tertiary
Private
 
Re: Post your tools here


Originally Posted by AuntLou View Post
These 2 features would be amazing candidates for the G15/G19 Logitech keyboard screens.
I've been considering upgrading my gaming hardware from... basically no computer hardware short of my actual machine. G15/G19 keyboard is, at first glance, the most appealing... along with its companion the G13 gameboard... but, my biggest concern is that the screens will be useless; is there any real support for them in PS2? How hard would it be to learn the code from the ground up and put together my own programs? I'm familiar with HTML, Java, and UNIX mostly... but, I've tinkered with some other programming languages...
Tertiary is offline  
Old 2013-05-22, 05:53 AM   [Ignore Me] #34
Ait'al
Contributor
General
 
Ait'al's Avatar
 
Re: Post your tools here


"Gryphons avatar picture!" 8D

I also have 10 fingers!

I wish I could say wine, but it's not very helpful atm.


Edit: How the hell did I get into the API forum!? I'm so confused!

Since I'm lost here is this much:

http://www.ieeeghn.org/wiki/index.php/Ancient_Computers

Last edited by Ait'al; 2013-05-22 at 06:00 AM.
Ait'al 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 08:51 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.