Post your tools here - PlanetSide Universe
PSU Social Facebook Twitter Twitter YouTube Steam TwitchTV
PlanetSide Universe
PSU: Loading death animation...
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-02-21, 06:00 PM   [Ignore Me] #1
Dreadnaut
Contributor
Private
 
Post your tools here


This is the first batch of stuff I've come up with:

Player Search: http://www.savethevanu.com/ps2stats/player_search.php
Player Stats: http://www.savethevanu.com/ps2stats/ps2stats.php
Outfit Search: http://www.savethevanu.com/ps2stats/outfit_members.php
Server Status: http://www.savethevanu.com/ps2stats/server_status.php
Sigs: http://savethevanu.com/ps2stats/sig....name=dreadnaut

Originally Posted by Goblinhunter View Post
Outfit Management: http://outfitpoints.com
Originally Posted by torokokill View Post
Originally Posted by Mathius View Post
__________________

Last edited by Dreadnaut; 2013-02-27 at 05:05 PM.
Dreadnaut is offline  
Old 2013-02-22, 07:25 AM   [Ignore Me] #3
EmkayUltra
Private
 
Re: Post your tools here


Some quality stuff there... especially like the Player Stats - realise it's a big ask, but I don't suppose you could share some of the code?
EmkayUltra is offline  
Old 2013-02-22, 08:42 AM   [Ignore Me] #4
Hamma
PSU Admin
 
Hamma's Avatar
 
Re: Post your tools here


Our code has all sorts of PSU specific functions and stuff mixed in. Dreadnaut's code though may be more adaptable
__________________

PlanetSide Universe - Administrator / Site Owner - Contact @ PSU
Hamma Time - Evil Ranting Admin - DragonWolves - Commanding Officer
Hamma is offline  
Old 2013-02-22, 01:26 PM   [Ignore Me] #5
Dreadnaut
Contributor
Private
 
Re: Post your tools here


Originally Posted by Hamma View Post
Our code has all sorts of PSU specific functions and stuff mixed in. Dreadnaut's code though may be more adaptable
During beta I'll be refining the code to be stand alone and bundle it all up for users. Not exactly sure how that bundle process will work just yet, but we'll have it sorted out pretty soon.

It might be something as simple as adding a script tag wherever you want the data to appear on your own site.

Work in progress!
__________________
Dreadnaut is offline  
Old 2013-02-22, 03:03 PM   [Ignore Me] #6
Goblinhunter
Private
 
Re: Post your tools here


I've just published an initial preview of http://outfitpoints.com

It's designed to be a toolkit for outfit management, so whilst it does include a standard sort able outfit list, the main benefit is the graphical outfit statistics to help understand what is happening with your outfit.

There's a lot more work to do, many more stats to graph, but this is just a preview.
Goblinhunter is offline  
Old 2013-02-22, 05:36 PM   [Ignore Me] #7
Sinjhin
Private
 
Re: Post your tools here


So, I whipped this up real quick last night just to re-familiarize myself with php and JSON. It is not following best practices in some places, and there are some things I could do more efficiently.

Anyways, I am not seeing any code up in here and I thought it might be nice to post some for people who want an example to start learning this.

The Site.

The Code:
Code:
<html>
Auric Eclipse Test Page
</br></br>

<?php
	$jsonOutfit = file_get_contents("http://census.soe.com/get/ps2-beta/outfit/37509488620602205?c:resolve=member");
	$aearray = json_decode($jsonOutfit, true);
	$outfit_list = $aearray["outfit_list"];
	$members = $outfit_list[0]["members"];
	$memberIDs;
	$memberData;
	$memberSpecifics;
	
	date_default_timezone_set('America/Vancouver');
	
	foreach($members as $key => $value)
	{
		//echo "Key: $key; Value: $value<br />\n";
		$memberIDs[$key] = $value["character_id"];
	}
	
	foreach($memberIDs as $key => $value)
	{
		$query = "http://census.soe.com/get/ps2-beta/character/{$value}?c:show=name.first,times.last_login";
		$memberData[$value] = json_decode(file_get_contents($query), true);
	}
	
	foreach($memberData as $key => $value)
	{
		$memberSpecifics[$key] = array("ID" => $key, "last_login" => $value["character_list"][0]["times"]["last_login"], 
						"name" => $value["character_list"][0]["name"]["first"]);
	}
	
	//var_dump($memberSpecifics);
	
	function cmp($b, $a)
	{
	    return strcmp($a["last_login"], $b["last_login"]);
	}
	
	usort($memberSpecifics, "cmp");
	
	echo "<table border=1>";
	echo "<tr><td><b>Name</b></td><td><b>Last Login</b></td></tr>";
	foreach($memberSpecifics as $key => $value)
	{
		if($value["name"] == true)
		{
			echo "<tr>";
			$last_login_time = $value["last_login"];
			$last_login_time_hr = date('Y-m-d H:i:s', $last_login_time);
			
			echo "<td>{$value['name']} </td><td> {$last_login_time_hr} </td>";
			//echo "</br>{$value['name']}';
			echo "</tr>";
		}
	}
	echo "</table>";
?>

</html>

Last edited by Sinjhin; 2013-02-25 at 09:15 PM.
Sinjhin is offline  
Old 2013-02-23, 12:29 PM   [Ignore Me] #8
torokokill
Private
 
torokokill's Avatar
 
Re: Post your tools here


My tools are mostly unfinished works-in-progress at the moment. May contain half-finished features and bugs:
Resource tracker/reminder
http://www.machine-code.com/ps2api/resourcereminder.php

Live kill/death feed
http://www.machine-code.com/ps2api/killfeed.php
__________________
Shooting Thingserer


Last edited by torokokill; 2013-02-23 at 07:36 PM.
torokokill is offline  
Old 2013-02-23, 12:34 PM   [Ignore Me] #9
Hamma
PSU Admin
 
Hamma's Avatar
 
Re: Post your tools here


Very cool! I was hoping for things like this to help people getting started.

Changed your post to php tags
__________________

PlanetSide Universe - Administrator / Site Owner - Contact @ PSU
Hamma Time - Evil Ranting Admin - DragonWolves - Commanding Officer
Hamma is offline  
Old 2013-02-24, 11:50 PM   [Ignore Me] #10
Sinjhin
Private
 
Re: Post your tools here


I originally had my post as PHP, but the square brackets are coming up as ***93 and ***91.
Sinjhin is offline  
Old 2013-02-25, 03:46 PM   [Ignore Me] #11
Hamma
PSU Admin
 
Hamma's Avatar
 
Re: Post your tools here


Damn you vBulletin!
__________________

PlanetSide Universe - Administrator / Site Owner - Contact @ PSU
Hamma Time - Evil Ranting Admin - DragonWolves - Commanding Officer
Hamma is offline  
Old 2013-02-25, 09:02 PM   [Ignore Me] #12
Willuz
Private
 
Re: Post your tools here


My code is woven into Joomla with strands of spaghetti so I'll just do my best to provide snippets in answer to questions.

Here are a few topics I'm happy to help with and provide code snippets on request:
  • Caching JSON in mySQL to improve response times
  • Using GDlib and workarounds for transparency issues
  • Methods for allowing customization of signature templates
Willuz is offline  
Old 2013-02-25, 10:02 PM   [Ignore Me] #13
CzuukWaterson
Sergeant
 
CzuukWaterson's Avatar
 
Re: Post your tools here


http://pear.ly/bY42n
CzuukWaterson is offline  
Old 2013-02-26, 06:23 AM   [Ignore Me] #14
zomg
Staff Sergeant
 
zomg's Avatar
 
Re: Post your tools here


If you're doing libraries for others to use, my suggestions as follows:

NodeJS -> bundle it as an npm package
PHP -> bundle it as a composer package
__________________
zomg is offline  
Old 2013-02-26, 02:25 PM   [Ignore Me] #15
Dreadnaut
Contributor
Private
 
Re: Post your tools here


Updated first post with tool links
__________________
Dreadnaut 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 03:03 PM.

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.