Play Now Login Create Account
illyriad
  New Posts New Posts RSS Feed - XML Feed For Alliace Rankings
  FAQ FAQ  Forum Search   Register Register  Login Login

XML Feed For Alliace Rankings

 Post Reply Post Reply
Author
Jejune View Drop Down
Postmaster
Postmaster
Avatar

Joined: 10 Feb 2013
Status: Offline
Points: 755
Post Options Post Options   Thanks (1) Thanks(1)   Quote Jejune Quote  Post ReplyReply Direct Link To This Post Topic: XML Feed For Alliace Rankings
    Posted: 30 May 2020 at 02:51
One of my favorite features of Illyriad is its XML feeds. You can do so with them.

I'd like to suggest two new ideas for the feeds:

  • An XML feed of the alliance rankings, complete with all of the inidividual rankings, such as attack, defense, magic, quest, etc.
  • An addition to the player feed that associates the role that each player occupies in their alliance.
In ELVES, we have created an automated alliance ranking algorithm that pulls racial data from players, associates them with alliances, and crunches numbers accordingly. It's working beautifully! However, we could greatly enhance the automation of the rankings if we could access alliance rankings, since they factor into the rankings.

The same goes for alliance leaders. We have allinace roles included in the alliance feed, but there is no note to which alliance role a player holds in the player feed. We also don't have any hierarchies of roles. If we could get these things, we could associate a player with an alliance and note their role as a leader in the alliance.

It would be great to have these things! Thanks for considering!

Back to Top
ubluntu View Drop Down
Forum Warrior
Forum Warrior


Joined: 24 Aug 2013
Status: Offline
Points: 318
Post Options Post Options   Thanks (0) Thanks(0)   Quote ubluntu Quote  Post ReplyReply Direct Link To This Post Posted: 31 May 2020 at 19:46
A player's alliance role id is already present in the players datafile and the alliance datafile contains alliance roles.


Player XML Element
    <player>
        <playername id="394156">Jejune</playername>
        <allianceid id="2123"/>
        <allianceroleid id="13996"/>
        <race id="2"/>
    </player>
Note: the allianceroleid attribute is only present if the player is in an alliance.


Alliance XML Element
    <alliance>
      <alliance id="2123">Elves</alliance>
      ...
      <roles>
        <role>
          <role id="13996">Elf-King</role>
          <heirarchy id="1"/>
        </role>
        <role>
          <role id="14075">Elf-Lord</role>
          <heirarchy id="2"/>
        </role>
        ...
      </roles>
      ...
    </alliance>


Hope that helps.

Back to Top
Jejune View Drop Down
Postmaster
Postmaster
Avatar

Joined: 10 Feb 2013
Status: Offline
Points: 755
Post Options Post Options   Thanks (0) Thanks(0)   Quote Jejune Quote  Post ReplyReply Direct Link To This Post Posted: 06 Jun 2020 at 13:02
Thanks ubluntu. I think the issue (and correct me if I'm wrong) is that there is no hierarchy of roles in the alliance feed. So, even though the roles are named, is there any way for a system to differentiate between the super-user roles and entry roles for an alliance?

The goal here is to be able to create an automated dimension to our already established algorithm that would assess the race of an alliance leader or leaders and add/substract to alliance rankings accordingly. Obviously, that could be done manually, but that process isn't scalable. We're looking to be able to calculate it automatically using the data feeds.

Back to Top
Tensmoor View Drop Down
Postmaster General
Postmaster General
Avatar

Joined: 07 Apr 2015
Location: Scotland
Status: Offline
Points: 1299
Post Options Post Options   Thanks (0) Thanks(0)   Quote Tensmoor Quote  Post ReplyReply Direct Link To This Post Posted: 06 Jun 2020 at 13:21
The role ids are numeric. The lower the number the higher the rank.
Back to Top
Jejune View Drop Down
Postmaster
Postmaster
Avatar

Joined: 10 Feb 2013
Status: Offline
Points: 755
Post Options Post Options   Thanks (0) Thanks(0)   Quote Jejune Quote  Post ReplyReply Direct Link To This Post Posted: 06 Jun 2020 at 16:27
Thanks. Might be able to make that work.

The XML feed for the leaderboard is still on the wish list. 

Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.03
Copyright ©2001-2019 Web Wiz Ltd.