Not logged in | Log In
Pirates of the Burning Sea logo
 
 
Pirates of the Burning Sea Forums > Help > Guides, Information, and New Player Questions
Click here to Log In

Reply
 
Thread Tools Display Modes
  #1  
Old 04-03-2008, 10:42 AM
Join Date: Jan 2008
Server: Rack...oberts
Society: Me Myself And I
Nation: British
Career: Freetrader
 
Default Online PotBS maps & stats

Thanks to the API published by FLS we can gather nice stats from the game. (That thread also has several code examples)

I worked that into an online worldmap with stats for each server.

Those pages are generated every 10 minutes, giving fast load times and less load for me.

Feel welcome to leave your comments here or in a private message.

*oops, never checked that link, sorry. It's working now.

--------------------------------------------------------------------------
Update history:
Since then:
Way more updated, but I totally forgot to update this first post. So, well... Just read the rest of the thread .
3 February 2009:
Added a loading animation on the graph pages. It can take quite a while for an image to load, which could make you think you did something wrong.

8 April 2008:
- The map pages are now semi pre-generated. Still every 10 minutes, but timestamps (age) are now set on the page load, as I had originally.
- Further some small layout changes in the stats below the map. And the 3 'boxes' are more consitant with each other now (all can now 'ping' ports on the map)
- The 'Changes in unrest' box now only shows attacker and defender points when a port is in contention.
- I also finally started gathering server scoreboard data so I can put that in a graph eventually.
- A 'hard' refresh of the page might be necessary to load the updated style and javascript files.

9 April 2008:
- Well, there the first graphs are. Only conquerable ports (of course) have a ?-cursor, opening a popup with a unrest/conquest/ownership/state graph. (Currently only week history)

Update 12 April 2008:
- Port History Graphs are mostly done for now. You can choose to show history over a week, month or year now.
- You can view these graphs in a popup by clicking on a port in the map. Or by clicking on the small '?'s that are added in several places to the stat lines below the map.
- Also added support for the server suppression state by first showing a fat red background in that nation bar. Though hidden, the titles of the sparkle and crown icons respectively show the next victory check and the time the suppression will be over. Yes, it's hidden, but I don't think it's something you check every time anyway.

Update 13 April 2008:
- Dropdown list to show ports with certain resources and combined with that had to change the 'Show Unrest' checkbox into two radio buttons. Also had to move all this to the upper right corner, or else the dropdown would fall way below the map.

Update 30 May 2008:
- You can now specify your own timezone and all timestamps should now be based on that!

Update 15 June 2008:
- The server population graphs would not show up when selecting month or year as period. I had checked the error logs for the potbs. domain, but nothing showed up. Somehow the errors were logged in the default log files though. The graph scripts would run out of memory. I upped the limit and they are showing fine now. (There's a lot of datapoints in just one month, let alone how many there will be in a year. I guess I need to optimize this some day. Also need to let you view day/week/month/year graphs of any time period, not just the last. Btw, generating these month and year graphs takes quite some resources. I could cache that, but don't yet. So please don't use it too often )

Update 18 June 2008:
- In the 'Changes in unrest' table you can now sort the data in several ways. Simply by port, time or nation unrest scores. But also using the '-1h' and '-12h' parts. These let you sort on absolute unrest changes. Note that the '-1h' and '-12h' in the 'Time' column lets you sort this globally on the max change of all four nations combined. For now it only lets you sort one direction, with falling back on sorting on port name.

Update 1 July 2008:
- Minor change: in the port unrest/conquest graphs, the horizontal lines showing the different levels were changed accordingly to the 1.5 changes: 3000 and 6000 points. Unfortunately these lines are very simple and will be shown like this overall, also in the past, which might make some things a bit confusing.
- I disabled the server populations graphs for now. It seems they were tripping my webserver, though I'm still not really sure.

Update 9 July 2008:
- On the map I added little sword icons to ports that have a battle scheduled (in the process of adding this some people might have had bugged page loads, my excuses for that, please do a full reload to be sure you have all latest stylesheets, etc).
- A few days earlier I changed the cache timestamps to be based on the cachetime the API recently added, not the time I generated the pages myself.

Update 1 October 2008:
- Showing the port battle slots in the NvN score graphs, example (not for the year period).
__________________
Visit Online PotBS Maps & Server Stats for online worldmaps, latest unrest changes and recent events!

ArmEagle, you never cease to amaze me. <3
-Misha
Reply With Quote
ArmEagle is offline Add to ignore list

Last edited by ArmEagle : 05-03-2010 at 01:56 PM. Reason: Update 1 July 2008
  #2  
Old 04-03-2008, 11:16 AM
Aameron
 
Aameron's Avatar

Join Date: Jan 2008
Server: Blackbeard
Society: All Out Assault
Nation: Pirate
Career: Pirate
 
Default

I have really enjoyed what you put together. Many thanks.

The downside to the way you have it setup now vs. a day ago is people need to wait up to 9.x minutes to get their first page (mine has not loaded by the time I finished typing this), which can seem like a long time. Frankly FLS should turn what you did into an official page on the POTBS website and they should deal with the load and serve up the last set of data immediately.

You made a fantastic utility that should be fully supported by FLS.

A suggestion for a tool that could be added: Could you set it up so people could do "what ifs" and turn on the PvP circles for different ports to see what the map would look like with them in PvP? Would be a helpful planning tool for looking at different scenarios.
Reply With Quote
Aameron is offline Add to ignore list
  #3  
Old 04-03-2008, 12:14 PM
Join Date: Jan 2008
Server: Rack...oberts
Society: Me Myself And I
Nation: British
Career: Freetrader
 
Default

Quote:
Originally Posted by Aameron View Post
I have really enjoyed what you put together. Many thanks.

The downside to the way you have it setup now vs. a day ago is people need to wait up to 9.x minutes to get their first page (mine has not loaded by the time I finished typing this), which can seem like a long time.
Hmm, I don't really get what you're trying to say here. The pages up there are generated every 10 minutes, into static pages. If you go to any of the pages, there will always be a static page waiting for you.


Quote:
A suggestion for a tool that could be added: Could you set it up so people could do "what ifs" and turn on the PvP circles for different ports to see what the map would look like with them in PvP? Would be a helpful planning tool for looking at different scenarios.
Hmm, maybe, someday, who knows. It's recorded here now... .
Reply With Quote
ArmEagle is offline Add to ignore list
  #4  
Old 04-03-2008, 12:39 PM
Join Date: Jan 2008
Server: Blackbeard
Society: WC
Nation: Pirate
 
Default

Nice work. Thanks for the link!
__________________
Jack Burtton
"You've gotta be tough if your gonna be stupid." -Unkown
"The road to truth is long, and lined the entire way with annoying bastards." -Alexander Jablokov
http://www.youtube.com/glean101
Reply With Quote
BMC 1010 is offline Add to ignore list
  #5  
Old 04-03-2008, 04:23 PM
EnnCee
 
Join Date: Jan 2008
 
Default

ArmEagle, that's a great page...it's fun to watch the servers come back online after a patch...especially a big one...many thanks; I have the page saved to favs...
Reply With Quote
EnnCee is offline Add to ignore list
  #6  
Old 04-03-2008, 04:34 PM
Join Date: Jan 2008
Server: Rackham
Society: Los Bucaneros de Tarifa
Nation: Spanish
Career: Naval Officer
 
Default

Is that server pop screen accurate real time ever y10 mins? it shows everythign light light light light where the one in game is much different.
Reply With Quote
Konartis is offline Add to ignore list
  #7  
Old 04-03-2008, 05:00 PM
Join Date: Jan 2008
Server: Rack...oberts
Society: Me Myself And I
Nation: British
Career: Freetrader
 
Default

Quote:
Originally Posted by *****tis View Post
Is that server pop screen accurate real time ever y10 mins? it shows everythign light light light light where the one in game is much different.
Yes it is. But, the population you see on the page is from that moment. The population you see when you login to the game is the maximum from the past 30 days.
The API might give out both in the future though.
Reply With Quote
ArmEagle is offline Add to ignore list
  #8  
Old 04-03-2008, 09:39 PM
Join Date: Jan 2008
Server: Bonny
Nation: British
Career: Swashbuckler
 
Default

This is completely awesome and deserving of Stickydom.
__________________
Cutlass Jack
Privateer, Antigua
Buccaneer, Roberts
"Fear leads to anger. Anger leads to hate. Hate leads to drama!"-Le Misanthrope
Reply With Quote
CutlassJack is offline Add to ignore list
  #9  
Old 04-04-2008, 03:57 AM
Join Date: Mar 2008
Server: Antigua, Roberts
Nation: Pirate, Spain
Career: War
 
Default

An excellent utility
Reply With Quote
Caecilius is offline Add to ignore list
  #10  
Old 04-04-2008, 04:45 AM
Join Date: Jan 2008
Nation: Spanish
Career: Naval Officer
 
Default

/report spam

Anyway, this is awesome! Seriously one of the cooler things made in a long while.
__________________
Quote:
I haven't played in a week due to lack of Panda.
Rilan Eidolian, Naval Officer
Reply With Quote
PandaRuns is offline Add to ignore list

Last edited by PandaRuns : 04-04-2008 at 04:47 AM.
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -7. The time now is 07:57 PM.


Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.