Play Now Login Create Account
illyriad
  New Posts New Posts RSS Feed - Combat API and its use in a Player Run Tourney
  FAQ FAQ  Forum Search   Register Register  Login Login

Combat API and its use in a Player Run Tourney

 Post Reply Post Reply Page  <1234 11>
Author
Cilcain View Drop Down
Wordsmith
Wordsmith
Avatar

Joined: 13 Oct 2012
Status: Offline
Points: 106
Post Options Post Options   Thanks (0) Thanks(0)   Quote Cilcain Quote  Post ReplyReply Direct Link To This Post Posted: 18 Apr 2016 at 10:04
Digioso/SC,

 

That XML looks fine.

I would suggest that battle casualties are per side rather than for the battle as a whole – this would make reporting on the tournament more meaningful.

One observation though, the <personalcombatkey id> will need to have a different value to that returned from the current ‘combatreportsapi’ API, otherwise it would be possible to obtain the <personalcombatkey id> via the new tournament version of ‘combatreportsapi’ and then feed it into the existing ‘combatreport’ API and get the full data set.

(X,Y) co-ords from the first API is a good idea, as it will mean you do not have to execute the detailed process for squares you are not interested in (e.g. if someone in the future just wants to run a BL tourney)

 

C


Back to Top
GM Stormcrow View Drop Down
Moderator Group
Moderator Group
Avatar
GM

Joined: 23 Feb 2010
Location: Illyria
Status: Offline
Points: 3820
Post Options Post Options   Thanks (0) Thanks(0)   Quote GM Stormcrow Quote  Post ReplyReply Direct Link To This Post Posted: 17 Apr 2016 at 19:59
Originally posted by Digioso Digioso wrote:


If winner == 2
    if casualties == 0
            army must be a reinforcement OR A FEINT
    else 
            a battle took part but both sides survived. In our case that means that the defender is still holding the square.
Added at least one other circumstance above; there may be other scenarios you need to consider for your win/loss/draw calculation.

Regards,

SC



Back to Top
Digioso View Drop Down
Forum Warrior
Forum Warrior
Avatar

Joined: 09 Feb 2015
Location: Germany
Status: Offline
Points: 287
Post Options Post Options   Thanks (0) Thanks(0)   Quote Digioso Quote  Post ReplyReply Direct Link To This Post Posted: 17 Apr 2016 at 18:56
So far that's the list I need. :D

Hmm... that's a good question.

Can you put a 0 (attacker wins) in there if there is no defense (= square was onuccupied)?
And a 2 (no winner) if the new army is sent as a reinforcement?

Then I can do:
If winner == 2
    if casualties == 0
            army must be a reinforcement
    else
            a battle took part but both sides survived. In our case that means that the defender is still holding the square.
Back to Top
GM Stormcrow View Drop Down
Moderator Group
Moderator Group
Avatar
GM

Joined: 23 Feb 2010
Location: Illyria
Status: Offline
Points: 3820
Post Options Post Options   Thanks (0) Thanks(0)   Quote GM Stormcrow Quote  Post ReplyReply Direct Link To This Post Posted: 17 Apr 2016 at 18:35
Awesome.  Is this a list that everyone's agreed on?  Speak now, or forever hold your peace!

I'm assuming you want me to supply <winner id="2"> if combat does not occur?

SC
Back to Top
Digioso View Drop Down
Forum Warrior
Forum Warrior
Avatar

Joined: 09 Feb 2015
Location: Germany
Status: Offline
Points: 287
Post Options Post Options   Thanks (0) Thanks(0)   Quote Digioso Quote  Post ReplyReply Direct Link To This Post Posted: 17 Apr 2016 at 08:51
My suggestion would be this:

For the combat report overview (API-Key):
<combateventsapi>
    <server>
        <datagenerationdatetime></datagenerationdatetime>
    </server>
    <player id=""/>
    <playerapikey id=""/>
    <combatevents>
        <uniquecombatidentifier>
            <server id=""/>
            <combatguid id=""/>
            <troopmovementevent id=""/>
            <datacomplete id=""/>
            <personalcombatkey id=""/>
            <combatoccurrencedate></combatoccurrencedate>
        </uniquecombatidentifier>
    </combatevents>
</combateventsapi>

Here it would also be nice if you could include the X/Y coordinates as well. Not only for the tournament API but for the normal API as well.
If a tournament only happens on specific squares we can skip reading unneccessary reports.
For the tournament API this doesn't really matter because it'll only provide reports for tournament squares. But it would be nice to have for the normal API.

Fot the specific combat report:
<combatevent>
    <server>
        <datagenerationdatetime></datagenerationdatetime>
    </server>
    <personalcombatkey id=""/>
    <uniquecombatidentifier>
        <server id=""/>
        <combatguid id=""/>
        <troopmovementevent id="" occurrence_datetime=""/
        <datacomplete id=""/>
    </uniquecombatidentifier>
    <combatoverview>
        <location>
        <X></X>
        <Y></Y>
        <terrainspecifictype id=""></terrainspecifictype>
        <terraincombattype id=""></terraincombattype>
    </location>
    <datetime>
        <combatoccurrencedate></combatoccurrencedate>
        <occupationlengthsecs></occupationlengthsecs>
    </datetime>
    <stratagem>
        <armyaction id=""></armyaction>
        <feint>Yes/No</feint>
    </stratagem>
    <participants>
        <participant>
            <role></role>
            <player>
                <playername id=""></playername>
                <alliance id="">
                    <allianceticker></allianceticker>
                    <alliancename></alliancename>
                </alliance>
            </player>
        </participant>
    </participants>
</combatevent>
   
Either: total casualties for the whole battle or casualties per side:
EG Defender(s) lost x troops and Attackers lost x troops

And we need to have an identifier which side is left standing after the battle.
<winner></winner>
EG:
0 = Attacker
1 = Defender(s)
2 = Both are left (EG after a raid)
Back to Top
GM Stormcrow View Drop Down
Moderator Group
Moderator Group
Avatar
GM

Joined: 23 Feb 2010
Location: Illyria
Status: Offline
Points: 3820
Post Options Post Options   Thanks (0) Thanks(0)   Quote GM Stormcrow Quote  Post ReplyReply Direct Link To This Post Posted: 16 Apr 2016 at 15:37
Originally posted by Cilcain Cilcain wrote:

Originally posted by kodabear kodabear wrote:

<span style="line-height: 16.8px;">the limited-data tournament key must include casualties doesn't matter if say what type of units but i do want the casualties as part of the Tournament </span>


Agreed. It's the troop count we object to, not the casualties.

C

I think the best approach would be "What are the minimum data fields that need to be suppressed?" rather than "What are the minimum data fields that need to be there?" - as then the final key might have further applications outside a purely-KotH tournament.

Regards,

SC
Back to Top
Dungshoveleux View Drop Down
Postmaster
Postmaster


Joined: 09 Nov 2013
Status: Offline
Points: 935
Post Options Post Options   Thanks (0) Thanks(0)   Quote Dungshoveleux Quote  Post ReplyReply Direct Link To This Post Posted: 16 Apr 2016 at 12:46
The meaningful frank exchange of views gives me hope that an acceptable solution will be taken care of.  Hopefully this will herald an increasingly broader concept of "community" with the user base becoming increasingly involved in direction and development.  I think that, at present, the Illyriad gaming model requires changes to increase its stability, and these events give me hope that they will be addressed.  It is ultimately all about keeping customers happy and loyal by communicating with them and involving them.  Fingers crossed Eh? 
Back to Top
Tensmoor View Drop Down
Postmaster General
Postmaster General
Avatar

Joined: 07 Apr 2015
Location: Scotland
Status: Offline
Points: 1579
Post Options Post Options   Thanks (0) Thanks(0)   Quote Tensmoor Quote  Post ReplyReply Direct Link To This Post Posted: 16 Apr 2016 at 11:56
Originally posted by Rill Rill wrote:

GM Stormcrow, thank you for taking the time to listen to and interact with players.  To me, that is the most important thing that has happened here, and an example of what makes Illy such a great place to play.  Hard to find this level of engagement and frank exchange (from both sides) almost anywhere in the gaming world.

You rock!


I have to agree wholeheartedly with Rill on this.
Back to Top
palmz View Drop Down
Greenhorn
Greenhorn
Avatar

Joined: 05 Jul 2015
Location: BL
Status: Offline
Points: 58
Post Options Post Options   Thanks (0) Thanks(0)   Quote palmz Quote  Post ReplyReply Direct Link To This Post Posted: 16 Apr 2016 at 00:42
I agree the the data should not be so limited that the key will only work for this type of tournament. 

If it is done right the first time it may add a huge amount to the game, depending on how we (the players) use it. And that is my two cents added. Big smile
Back to Top
Rill View Drop Down
Postmaster General
Postmaster General
Avatar
Player Council - Geographer

Joined: 17 Jun 2011
Location: California
Status: Offline
Points: 6903
Post Options Post Options   Thanks (0) Thanks(0)   Quote Rill Quote  Post ReplyReply Direct Link To This Post Posted: 16 Apr 2016 at 00:28
GM Stormcrow, thank you for taking the time to listen to and interact with players.  To me, that is the most important thing that has happened here, and an example of what makes Illy such a great place to play.  Hard to find this level of engagement and frank exchange (from both sides) almost anywhere in the gaming world.

You rock!
Back to Top
 Post Reply Post Reply Page  <1234 11>
  Share Topic   

Forum Jump Forum Permissions View Drop Down

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