Moderator: Community Team
chipv wrote:Is there a thread appropriate to post the exact XML I expect from the Game log XML?
yeti_c wrote:Problem is - you can't tell who won the attacks with this format...
You can see that attacker lost 3 and defender lost 2...
However we don't know how many were there to start with?
Perhaps a <Success> tag?
Also - you need to know how many armies were advanced into the space.
The last - and probably most valid point...
This is all well and good - for "auto attacks" - but the normal attack button will spawn a multitude of these logs - is the server meant to condense these into one?
What happens if you attack one territory - kill a few - then attack a different one kill a few - then attack the first territory again?
lancehoch wrote:Maybe instead, you could have the log change when the drop-down menus change. For example, someone is attacking Alaska from Kamchatka and rolls until the attacker loses 5 and the defender loses 7. Then they decide to attack Alaska from Alberta. They change the "from" drop-down to Alberta, and when that changes, if there were changes in army numbers, the changes are posted.
yeti_c wrote:Ah I see... yes that does work...
So if you have
<armies>0</armies>
<defender>-2</defender>
Then they haven't conquered - but have just removed 2 armies.
The only problem here is that you can't distinguish bombardment with these rules...
As the above answer could mean annihilation - or just reduction.
C.
The Neon Peon wrote:I would really love to see this, and it would solve many of the obstacles that are in the game log: make the game log click-able so that when you click on an action in it, the map will show what it looked like at the point in the game.
This would help both players in the game to better understand what happened (seeing as you can click on the previous action for the before and after kind of thing) and help players viewing the game to look at how it progressed if they only start looking at the end.
ztodd wrote:I think the server should keep track of all changes from beginning of attack phase to end of attack phase and spit out just the final results in the format above. Something similar can be put in the xml file. Too complicated a programming change? Send me the code or give me access - I'll do it.
This has been in the works for at least a year, right? What's the hold up? Are you all waiting on the players to agree on something?
Just provide the XML and leave it to the greasemonkeys to make the game replayer.
<?xml version="1.0"?>
<?xml version="1.0"?>
<gamelog>
<gameinfo>
<label></label>
<status>Active</status>
<joinability>Tournament Game: The Long Walk - Round Twelve</joinability>
<type>Standard</type>
<order>Sequential</order>
<bonus>Flat Rate</bonus>
<fortifications>Unlimited</fortifications>
<fog>No</fog>
<maptype>Africa</maptype>
<timeleft>12hrs 16min 20sec</timeleft>
<round>3</round>
<players>
<player id="78109" team="1" status="eliminated">cSpare1</player>
<player id="78110" team="1" status="playing">cSpare2</player>
<player id="78111" team="2" status="waiting">chipv1</player>
<player id="78112" team="2" status="eliminated">chipv2</player>
</players>
</gameinfo>
<log>
(...)
<round number="2" date="2008-10-17 17:12:11">
(...)
<turn player="78109" date="2008-10-21 11:44:02">
<DeployEvent date="2008-10-21 11:45:14" territory="Irkutsk" troops="3"/>
<AssaultEvent targetplayer="78112" date="2008-10-21 11:45:15" from="Siberia" to="Yakutsk" attackers="3" defenders="3" win="2" loss="3" advance="0"/>
<AssaultEvent targetplayer="78112" date="2008-10-21 11:45:54" from="Irkutsk" to="Yakutsk" attackers="23" defenders="1" win="1" loss="1" advance="21"/>
<EliminateEvent targetplayer="78112" date="2008-10-21 11:45:54" spoilsAmount="2"/>
<FortifyEvent date="2008-10-21 11:46:02" from="Yakutsk" to="Kamchatka" troops="3"/>
<SpoilsEvent date="2008-10-21 11:46:02" amount="1"/>
</turn>
</round>
<round number="3" date="2008-10-21 11:46:02">
<turn player="78111" date="2008-10-21 11:46:02">
<CashGroupEvent troops="10">
<Group color="Green">Algeria</Group>
<Group color="Red">East Australia</Group>
<Group color="Blue">Norwegian Claim</Group>
</CashGroupEvent>
<BonusEvent troops="2" territory="Algeria"/>
</turn>
</round>
</log>
</gamelog>
blakebowling wrote:ztodd wrote:Just provide the XML and leave it to the greasemonkeys to make the game replayer.
First, XML is how the territories and bonuses are coded, not the game engine.
cspare wrote:I was thinking about something like this: (based on Chipv's example)
- Code: Select all
<?xml version="1.0"?>
<?xml version="1.0"?>
<gamelog>
<gameinfo>
<label></label>
<status>Active</status>
<joinability>Tournament Game: The Long Walk - Round Twelve</joinability>
<type>Standard</type>
<order>Sequential</order>
<bonus>Flat Rate</bonus>
<fortifications>Unlimited</fortifications>
<fog>No</fog>
<maptype>Africa</maptype>
<timeleft>12hrs 16min 20sec</timeleft>
<round>3</round>
<players>
<player id="78109" team="1" status="eliminated">cSpare1</player>
<player id="78110" team="1" status="playing">cSpare2</player>
<player id="78111" team="2" status="waiting">chipv1</player>
<player id="78112" team="2" status="eliminated">chipv2</player>
</players>
</gameinfo>
<log>
(...)
<round number="2" date="2008-10-17 17:12:11">
<turn player="78109" date="2008-10-21 11:44:02">
<DeployEvent date="2008-10-21 11:45:14" territory="Irkutsk" troops="3"/>
<AssaultEvent targetplayer="78112" date="2008-10-21 11:45:15" from="Siberia" to="Yakutsk" attackers="3" defenders="3" win="2" loss="3" advance="0"/>
<AssaultEvent targetplayer="78112" date="2008-10-21 11:45:54" from="Irkutsk" to="Yakutsk" attackers="23" defenders="1" win="1" loss="1" advance="21"/>
<EliminateEvent targetplayer="78112" date="2008-10-21 11:45:54" spoilsAmount="2"/>
<FortifyEvent date="2008-10-21 11:46:02" from="Yakutsk" to="Kamchatka" troops="3"/>
<SpoilsEvent date="2008-10-21 11:46:02" amount="1"/>
</turn>
</round>
<round number="3" date="2008-10-21 11:46:02">
<turn player="78111" date="2008-10-21 11:46:02">
<CashGroupEvent troops="10">
<Group color="Green">Algeria</Group>
<Group color="Red">East Australia</Group>
<Group color="Blue">Norwegian Claim</Group>
</CashGroupEvent>
<BonusEvent troops="2" territory="Algeria"/>
</turn>
</round>
</log>
</gamelog>
What do you guys think?
<chatlog>
<round number="1">
<chat datetime="200810212200">Good luck everyone</chat>
</round>
</chatlog>
yeti_c wrote:I like it - Could even extend to have a chat log in the system?
- Code: Select all
<chatlog>
<round number="1">
<chat datetime="200810212200">Good luck everyone</chat>
</round>
</chatlog>
C.
cspare wrote:That's a good idea, would be nice to include aswell yea.
Though I myself wouldn't really need the data for ConqerStats, so I'd prefer the chatlog to be in a seperate XML file. Now that I think of it I think the GameInfo element should be in a separate file also, as that information can be used for a much more purposes.
cspare wrote:
- Code: Select all
<round number="2" date="2008-10-17 17:12:11">
(...)
<turn player="78109" date="2008-10-21 11:44:02">
<DeployEvent date="2008-10-21 11:45:14" territory="Irkutsk" troops="3"/>
</turn>
</round>
Users browsing this forum: No registered users