Utility Script: Game Data Alliance Addon

« Back to Developers

2659 days, 9 hours, 51 minutes ago
Profile Image
kedalion
Utility Script: Game Data Alliance AddonWrite Reply
I finally got around to use data from the API to enhance the game data page. :)
The main incentive was to finally show (public) alliances on the game data page.


This is the first version. I simply displayed all data there is. I'd like to get feedback on what you guys think is useful. Do you want all those tables and graphs? Should I remove some of the original graphs?

With respect to alliances it does:
- show graphs and data pages taking alliances into account 
- add a relationship tab displaying inter racial relationships. 

While at it, I also fixed all graphs for non-default games such as Blitz and Private where the number of planets is not 500.

Additionally, the script also contains all the fixes from the Giant Melee Script:
- Fixes pie charts for giant melee and team games. 
- Groups races with very small contribution into "Others" --> declutter... 
- Sorts entries in pie chart for better overview



2659 days, 8 hours, 3 minutes ago
Profile Image
kwesy
RE: Utility Script: Game Data Alliance AddonWrite Reply
Very useful!
Actually I'd like to have almost all of the graphs.
Perhaps the regular "Military" and "Planets" pie charts as well as the "Owned Planets (Alliance)" chart could be left out.


2659 days, 8 hours, 1 minutes ago
View bondservant's profile
bondservant
RE: Utility Script: Game Data Alliance AddonWrite Reply
Excellent!  Definitely helpful.  Especially for Team Games, which are my favorite.

Alliance tab is most useful.  Maybe don't need the AOPlanets pie tab.

Memo:  on Alliance tab, it appears data for warships and freighters are in wrong column.

2659 days, 7 hours, 28 minutes ago
Profile Image
kedalion
RE: Utility Script: Game Data Alliance AddonWrite Reply
Good catch, bondservant. Fixed it already.

Changes with v0.4:

-Names of alliance members now split over several lines so they don't overlap with the chart.
-Tooltip text for entries in 'Relations' table.
-War ships & freighters swapped

Let's see what the general consensus about which graphs to get rid of.

Btw. I don't know how exactly races are handled (in NU) that are involved in two separate alliances. (e.g. A allied with B, B allied with C, but A and C not allied) I could list them all, but obviously then pie charts wouldn't make any sense.
2659 days, 0 hours, 3 minutes ago
View vepr's profile
vepr
RE: Utility Script: Game Data Alliance AddonWrite Reply
NICE!!!
2657 days, 9 hours, 15 minutes ago
Profile Image
kedalion
RE: Utility Script: Game Data Alliance AddonWrite Reply
I just released version v0.5... 

It has some changes to handle complicated alliances and I added a nice alliance visualization (many thanks to kwesy for the idea).

2657 days, 5 hours, 32 minutes ago
Profile Image
kedalion
RE: Utility Script: Game Data Alliance AddonWrite Reply
v0.6 is out. Had to remove a small bug.
2654 days, 19 hours, 4 minutes ago
View halion's profile
halion
RE: Utility Script: Game Data Alliance AddonWrite Reply
Hi Kedalion,

Seriously cool addon thanks alot.
Saves me much time in adding up the team stats.

I found a potential issue though.
I reviewed one game i am in http://planets.nu/games/21612
On that summary for alliance relations (the last tab)
I can see that zero000 has offered me an alliance. (that's ok i know that as it is me) however i wondered if others can see that too.

I believe they can as the screen also shows me Gazox has received 2 alliance offers that he hasn't accepted (I assume) since it is not reflected in the game thread.

Either your addon is too efficient and shows things it should not or perhaps these alliance offers to gazox were in the past before the game data was showed in the summary?

Just thought i should mention it.
Thanks for the great work.
Halion.
2654 days, 8 hours, 32 minutes ago
Profile Image
kedalion
RE: Utility Script: Game Data Alliance AddonWrite Reply
Yep, there is a bit extra information displayed that maybe shouldn't be there. As the information is always available if you know how to read the API data, I decided to display it here to level the playing field as now no special skills are needed to finding it.

(When I first made this addon, actually even more relationship states were displayed by accident for a short time. I contacted the developers and only released the addon after that hole was fixed...) 
2654 days, 8 hours, 27 minutes ago
View lord helmet's profile
lord helmet
RE: Utility Script: Game Data Alliance AddonWrite Reply
Oh that's why I've been experiencing different results with a script I've been writing - they changed the API...
2654 days, 6 hours, 38 minutes ago
Profile Image
kedalion
RE: Utility Script: Game Data Alliance AddonWrite Reply
Were you reading the relationship data?
2654 days, 3 hours, 33 minutes ago
View lord helmet's profile
lord helmet
RE: Utility Script: Game Data Alliance AddonWrite Reply
from the gameinfo api:
http://api.planets.nu/game/loadinfo?gameid=xxx
There's a relation property (or what you call it), the same you used. But relations other than 4 (alliance) have been reset to 0 some days ago.
2654 days, 3 hours, 10 minutes ago
Profile Image
kedalion
RE: Utility Script: Game Data Alliance AddonWrite Reply
Yep, might be my fault that they removed that. :D 
Being obviously secret, having that information would actually ruin a lot of this game, no?

For finished it is still available through normal game data.
2539 days, 6 hours, 6 minutes ago
View nitemare's profile
nitemare
RE: Utility Script: Game Data Alliance AddonWrite Reply
Hi Kedalion,

 This add on has a bug. It shows who is giving full alliance to whom in the relations chart... but it is shown it although the other player is not giving full alliance back. It should review if both players are giving full alliance to each other.

 Regards,

 Nite.

 P.s: Here you have a screen shot about it.
P.S.S: I deleted the names of the players ;D


2539 days, 5 hours, 22 minutes ago
Profile Image
kedalion
RE: Utility Script: Game Data Alliance AddonWrite Reply
Unfortunately that is not a bug of the addon... the bug is that this data should not be available from the server. Originally this table contained ALL inter-player relations (block communications, safe passage, share intel, full alliance) for a brief time and I waited with releasing this addon till the NU team had fixed that.

I agree that it shouldn't be visible (and the tab should actually obsolete since the 'alliances' tab exists), but decided to leave this view in here so that every player can see it and not just the ones that have the technical knowledge to read the raw data. 

Thanks for the feedback though. 

Btw. which browser are you using? For me the alliances tab has been screwed up in Chrome for some time now, but I couldn't pin down the problem yet.
2539 days, 4 hours, 6 minutes ago
View nitemare's profile
nitemare
RE: Utility Script: Game Data Alliance AddonWrite Reply
Nice to know. I agree with you that information should be the same to all the players no matter their technical knowledge.

 I'm using chrome and I had no problem with it so the problem is not related to the browser.

 Regards,

 Nite 
2537 days, 22 hours, 20 minutes ago
Profile Image
kedalion
RE: Utility Script: Game Data Alliance AddonWrite Reply
No, the chrome problem is general, but also affects tab on this addon. Some text gets skewed on the graphs and similarly also on the alliance tab.