[GL] Game Log 2.0

This forum is a storehouse for all Finalized Suggestions to be periodically reviewed during Feature Updates.

Moderators: Suggestions Team, Global Moderators

Forum rules
Please read the Community Guidelines before posting.

Re: Game Log 2.0 [To-Do]

Postby Timminz on Sun May 11, 2008 12:55 pm

Sameroh wrote:HAve read the thread and didn't find anyone mentioning this yet. I would really appreciate it if we could see deployments, attacks (as long as your own country is attacked), and fortifications to countries adjacent to yours in a game with fog on. This is because the countries next to you are anyway already 'sunny' thus making it illogical that we shouldn't be able to read about them in the log.

E.g: "X fortified ? with 2 armies from Brazil"
"X attacked Venezuela from ? and conquered it from Y"

In case this has been discussed, rejected or otherwise thought about already, plz forgive me :)


There are other threads dealing with that suggestion.
jay_a2j wrote:lets not be so quick to judge Hitler
User avatar
Captain Timminz
 
Posts: 5556
Joined: Tue Feb 27, 2007 1:05 pm
Location: At the store
Medals: 55
Standard Achievement (4) Doubles Achievement (3) Triples Achievement (3) Quadruples Achievement (2) Terminator Achievement (2)
Assassin Achievement (1) Manual Troops Achievement (2) Polymorphic Achievement (1) Nuclear Spoils Achievement (1) Fog of War Achievement (3)
Speed Achievement (4) Teammate Achievement (2) Random Map Achievement (1) Cross-Map Achievement (3) Ratings Achievement (3)
Tournament Achievement (6) General Achievement (2) Clan Achievement (10) Tournament Contribution (1) General Contribution (1)

Re: Game Log 2.0 [To-Do]

Postby Sameroh on Mon May 12, 2008 3:20 am

Ok - sorry then. It seems I overlooked them... :S Sorry!
Sergeant Sameroh
 
Posts: 12
Joined: Thu Jan 10, 2008 10:22 am
Medals: 2
Standard Achievement (1) Doubles Achievement (1)

Re: Game Log 2.0 [To-Do]

Postby chipv on Tue May 20, 2008 5:33 pm

Game Log XML awaited eagerly...
Specifically referring to the XML:

Agree with:

All attacks displayed (successful AND unsuccessful esp. with armies lost)
Number of armies at turn start/end

Disagree:

Dice rolls - unsuccessful attack display is sufficient and storing this huge amount
of info at the expense of old logs is not a fair swap. Statistical applications objection noted.

Is there a thread appropriate to post the exact XML I expect from the Game log XML?
User avatar
Colonel chipv
 
Posts: 2756
Joined: Mon Apr 28, 2008 5:30 pm
Medals: 44
Standard Achievement (2) Doubles Achievement (2) Triples Achievement (2) Quadruples Achievement (2) Terminator Achievement (2)
Manual Troops Achievement (1) Freestyle Achievement (1) Nuclear Spoils Achievement (2) Fog of War Achievement (2) Cross-Map Achievement (3)
Ratings Achievement (2) Tournament Achievement (5) General Achievement (2) Clan Achievement (5) Map Contribution (1)
General Contribution (10)

Re: Advanced and Verbose Logging

Postby chipv on Tue May 20, 2008 6:11 pm

EDIT: Added defender tag (based on yeti_c's suggestion)

For the Game Logs XML here is a proposed outline with example data:
(assuming you need to specify game # in the URL for the XML, it is omitted from the data)

<?xml version="1.0"?>
<game>
<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>
<starting>8</starting>
<surviving>4</surviving>
<teams>4</teams>
<player>
<name>chipv</name>
<rank>New Recruit</rank>
<team>3</team>
<cards>4</cards>
<armies>20</armies>
<status>waiting/playing/eliminated</status>
<territories>4</territories>
</player>
...
<player>
</player>
</players>
<log> (ordered)
<event>
<type>deploy</type>
<from>NA</from>
<to>Irkutsk</to>
<armies>3</armies>
<defender>NA</defender>
</event>
<event>
<type>attack</type>
<from>Irkutsk</from>
<to>Yakutsk</to>
<armies>-3</armies>
<defender>-2</defender>
</event>
<event>
<type>attack</type>
<from>Siberia</from>
<to>Yakutsk</to>
<armies>8</armies>
<defender>-1</defender>
</event>
<event>
<type>fortification</type>
<from>Yakutsk</from>
<to>Kamchatka</to>
<armies>3</armies>
<defender>NA</defender>
</event>
/log>
</game>

This event log shows an assault on Yakutsk with an unsuccessful attack and a successful attack.
I hope this is the best thread to start this off, although I guess its outline is almost done anyway...
Last edited by chipv on Wed May 21, 2008 5:26 am, edited 1 time in total.
User avatar
Colonel chipv
 
Posts: 2756
Joined: Mon Apr 28, 2008 5:30 pm
Medals: 44
Standard Achievement (2) Doubles Achievement (2) Triples Achievement (2) Quadruples Achievement (2) Terminator Achievement (2)
Manual Troops Achievement (1) Freestyle Achievement (1) Nuclear Spoils Achievement (2) Fog of War Achievement (2) Cross-Map Achievement (3)
Ratings Achievement (2) Tournament Achievement (5) General Achievement (2) Clan Achievement (5) Map Contribution (1)
General Contribution (10)

Re: Game Log 2.0 [To-Do]

Postby yeti_c on Wed May 21, 2008 2:54 am

chipv wrote:Is there a thread appropriate to post the exact XML I expect from the Game log XML?


This one.

C.
Image
Highest score : 2297
User avatar
Lieutenant yeti_c
 
Posts: 9670
Joined: Thu Jan 04, 2007 9:02 am
Medals: 46
Standard Achievement (2) Doubles Achievement (2) Triples Achievement (2) Quadruples Achievement (3) Terminator Achievement (1)
Assassin Achievement (1) Freestyle Achievement (1) Fog of War Achievement (3) Cross-Map Achievement (3) Ratings Achievement (3)
General Achievement (1) Map Contribution (13) Tournament Contribution (1) General Contribution (10)

Re: Advanced and Verbose Logging

Postby yeti_c on Wed May 21, 2008 3:03 am

Looks good - however...

Your <armies> tag is somewhat flawed...

As you need to know both sides of the argument - i.e. how many were lost on both sides.

C.
Image
Highest score : 2297
User avatar
Lieutenant yeti_c
 
Posts: 9670
Joined: Thu Jan 04, 2007 9:02 am
Medals: 46
Standard Achievement (2) Doubles Achievement (2) Triples Achievement (2) Quadruples Achievement (3) Terminator Achievement (1)
Assassin Achievement (1) Freestyle Achievement (1) Fog of War Achievement (3) Cross-Map Achievement (3) Ratings Achievement (3)
General Achievement (1) Map Contribution (13) Tournament Contribution (1) General Contribution (10)

Re: Advanced and Verbose Logging

Postby chipv on Wed May 21, 2008 5:18 am

Add a tag!

<defender>-3</defender>
User avatar
Colonel chipv
 
Posts: 2756
Joined: Mon Apr 28, 2008 5:30 pm
Medals: 44
Standard Achievement (2) Doubles Achievement (2) Triples Achievement (2) Quadruples Achievement (2) Terminator Achievement (2)
Manual Troops Achievement (1) Freestyle Achievement (1) Nuclear Spoils Achievement (2) Fog of War Achievement (2) Cross-Map Achievement (3)
Ratings Achievement (2) Tournament Achievement (5) General Achievement (2) Clan Achievement (5) Map Contribution (1)
General Contribution (10)

Re: Game Log 2.0 [To-Do]

Postby chipv on Wed May 21, 2008 5:22 am

Amended xml format with yeti_c's suggestion:

For the Game Logs XML here is a proposed outline with example data:
(assuming you need to specify game # in the URL for the XML, it is omitted from the data)

<?xml version="1.0"?>
<game>
<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>
<starting>8</starting>
<surviving>4</surviving>
<teams>4</teams>
<player>
<name>chipv</name>
<rank>New Recruit</rank>
<team>3</team>
<cards>4</cards>
<armies>20</armies>
<status>waiting/playing/eliminated</status>
<territories>4</territories>
</player>
...
<player>
</player>
</players>
<log> (ordered)
<event>
<type>deploy</type>
<from>NA</from>
<to>Irkutsk</to>
<armies>3</armies>
<defender>NA</defender>
</event>
<event>
<type>attack</type>
<from>Irkutsk</from>
<to>Yakutsk</to>
<armies>-3</armies>
<defender>-2</defender>
</event>
<event>
<type>attack</type>
<from>Siberia</from>
<to>Yakutsk</to>
<armies>8</armies>
<defender>-1</defender>
</event>
<event>
<type>fortification</type>
<from>Yakutsk</from>
<to>Kamchatka</to>
<armies>3</armies>
<defender>NA</defender>
</event>
</log>
</game>

This event log shows an assault on Yakutsk with an unsuccessful attack and a successful attack.
User avatar
Colonel chipv
 
Posts: 2756
Joined: Mon Apr 28, 2008 5:30 pm
Medals: 44
Standard Achievement (2) Doubles Achievement (2) Triples Achievement (2) Quadruples Achievement (2) Terminator Achievement (2)
Manual Troops Achievement (1) Freestyle Achievement (1) Nuclear Spoils Achievement (2) Fog of War Achievement (2) Cross-Map Achievement (3)
Ratings Achievement (2) Tournament Achievement (5) General Achievement (2) Clan Achievement (5) Map Contribution (1)
General Contribution (10)

Re: Game Log 2.0 [To-Do]

Postby yeti_c on Wed May 21, 2008 5:54 am

Getting there...

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?

C.
Image
Highest score : 2297
User avatar
Lieutenant yeti_c
 
Posts: 9670
Joined: Thu Jan 04, 2007 9:02 am
Medals: 46
Standard Achievement (2) Doubles Achievement (2) Triples Achievement (2) Quadruples Achievement (3) Terminator Achievement (1)
Assassin Achievement (1) Freestyle Achievement (1) Fog of War Achievement (3) Cross-Map Achievement (3) Ratings Achievement (3)
General Achievement (1) Map Contribution (13) Tournament Contribution (1) General Contribution (10)

Re: Game Log 2.0 [To-Do]

Postby chipv on Wed May 21, 2008 6:14 am

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?



Well, yes you can tell who won the attack, but I haven't clearly explained the scope of the output.
I think it's too much to store every single dice roll, therefore
no point in recording every "sub-attack" either.

So if you restrict to just conquer and failed to conquer
then all you need to do is look at the sign of the armies.

So <armies>8</armies><defender>-1</defender>
means a successful attack moving 8 armies into the space occupied by the 1 defender.

So that means

<armies>-2</armies>
means a cumulative failed attack attempt losing 2 armies.
So the attacker might have made several attempts but ultimately
failed to remove all defenders.

I think that addresses all of your points.
User avatar
Colonel chipv
 
Posts: 2756
Joined: Mon Apr 28, 2008 5:30 pm
Medals: 44
Standard Achievement (2) Doubles Achievement (2) Triples Achievement (2) Quadruples Achievement (2) Terminator Achievement (2)
Manual Troops Achievement (1) Freestyle Achievement (1) Nuclear Spoils Achievement (2) Fog of War Achievement (2) Cross-Map Achievement (3)
Ratings Achievement (2) Tournament Achievement (5) General Achievement (2) Clan Achievement (5) Map Contribution (1)
General Contribution (10)

Re: Game Log 2.0 [To-Do]

Postby yeti_c on Wed May 21, 2008 8:17 am

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.
Image
Highest score : 2297
User avatar
Lieutenant yeti_c
 
Posts: 9670
Joined: Thu Jan 04, 2007 9:02 am
Medals: 46
Standard Achievement (2) Doubles Achievement (2) Triples Achievement (2) Quadruples Achievement (3) Terminator Achievement (1)
Assassin Achievement (1) Freestyle Achievement (1) Fog of War Achievement (3) Cross-Map Achievement (3) Ratings Achievement (3)
General Achievement (1) Map Contribution (13) Tournament Contribution (1) General Contribution (10)

Re: Game Log 2.0 [To-Do]

Postby lancehoch on Wed May 21, 2008 11:06 am

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.
Lieutenant lancehoch
 
Posts: 4158
Joined: Wed Dec 05, 2007 4:13 pm
Medals: 11
Standard Achievement (2) Terminator Achievement (1) Cross-Map Achievement (1) Ratings Achievement (1) General Achievement (1)
Tournament Contribution (1) General Contribution (4)

Re: Game Log 2.0 [To-Do]

Postby yeti_c on Wed May 21, 2008 1:33 pm

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.


That could be a viable alternative...

C.
Image
Highest score : 2297
User avatar
Lieutenant yeti_c
 
Posts: 9670
Joined: Thu Jan 04, 2007 9:02 am
Medals: 46
Standard Achievement (2) Doubles Achievement (2) Triples Achievement (2) Quadruples Achievement (3) Terminator Achievement (1)
Assassin Achievement (1) Freestyle Achievement (1) Fog of War Achievement (3) Cross-Map Achievement (3) Ratings Achievement (3)
General Achievement (1) Map Contribution (13) Tournament Contribution (1) General Contribution (10)

Re: Game Log 2.0 [To-Do]

Postby chipv on Wed May 21, 2008 2:38 pm

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.


Could have some indicator for bombardment. I'm not exactly sure what this is -
description says conversion of defender's armies to neutral.

So <defender>0</defender> with a positive armies number - could that indicate bombardment?
(Cannot normally move in unless at least one defender has been lost)

I cannot find a good description for this aside from the one-liner on the instructions pages. (Unless I've missed it totally)
User avatar
Colonel chipv
 
Posts: 2756
Joined: Mon Apr 28, 2008 5:30 pm
Medals: 44
Standard Achievement (2) Doubles Achievement (2) Triples Achievement (2) Quadruples Achievement (2) Terminator Achievement (2)
Manual Troops Achievement (1) Freestyle Achievement (1) Nuclear Spoils Achievement (2) Fog of War Achievement (2) Cross-Map Achievement (3)
Ratings Achievement (2) Tournament Achievement (5) General Achievement (2) Clan Achievement (5) Map Contribution (1)
General Contribution (10)

Re: Game Log 2.0 [To-Do]

Postby The Neon Peon on Wed Jul 02, 2008 11:55 am

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.
User avatar
Lieutenant The Neon Peon
 
Posts: 2342
Joined: Sat Jun 14, 2008 12:49 pm
Medals: 31
Standard Achievement (3) Doubles Achievement (1) Triples Achievement (1) Quadruples Achievement (1) Terminator Achievement (2)
Assassin Achievement (3) Manual Troops Achievement (2) Freestyle Achievement (3) Fog of War Achievement (3) Speed Achievement (3)
Cross-Map Achievement (3) Ratings Achievement (1) Tournament Achievement (2) General Achievement (3)

Suggestion - Replay

Postby WOTE on Sat Jul 19, 2008 12:02 am

it would be nice to be able to replay the games. I know the code would be not to hard to write for one map but 30maps is a lot, how abo9ut just the classics and popular maps ? :roll:
User avatar
Cook WOTE
 
Posts: 50
Joined: Sun Apr 20, 2008 5:44 am
Medals: 13
Standard Achievement (3) Doubles Achievement (1) Triples Achievement (1) Terminator Achievement (1) Fog of War Achievement (3)
Cross-Map Achievement (1) Ratings Achievement (3)

Re: Game Log 2.0 [To-Do]

Postby lancehoch on Sat Jul 19, 2008 12:11 am

Merged
Lieutenant lancehoch
 
Posts: 4158
Joined: Wed Dec 05, 2007 4:13 pm
Medals: 11
Standard Achievement (2) Terminator Achievement (1) Cross-Map Achievement (1) Ratings Achievement (1) General Achievement (1)
Tournament Contribution (1) General Contribution (4)

Re: Game Log 2.0 [To-Do]

Postby WOTE on Sat Jul 19, 2008 12:18 am

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.

Just like Chess Games...
1. e4 e6
2. d4 d5
3. Nc3 dxe4
4. Nxe4 Nf6
5. Bg5 Be7
6. Bxf6 Bxf6
7. Nf3 O-O
8. Qd2 Nc6
9. O-O-O Be7
10. Bd3 f5
11. Nfg5 fxe4
12. Bxe4 Bxg5
13. f4 Bxf4
User avatar
Cook WOTE
 
Posts: 50
Joined: Sun Apr 20, 2008 5:44 am
Medals: 13
Standard Achievement (3) Doubles Achievement (1) Triples Achievement (1) Terminator Achievement (1) Fog of War Achievement (3)
Cross-Map Achievement (1) Ratings Achievement (3)

Re: Game Log 2.0 [To-Do]

Postby ztodd on Sat Sep 20, 2008 4:33 pm

Example log entry for unsuccessful/stopped attack: Kamchatka attacks Alaska: 6G -> 4R Result: 3G -> 2R.
Example log entry for successful attack (takeover): Kamchatka attacks Alaska: 6G -> 4R Result: 1G -> 3G.

G and R are the color codes for green and red.

That's what I'd want to see. Anyone agree?

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.
User avatar
Corporal 1st Class ztodd
 
Posts: 106
Joined: Sat Sep 06, 2008 9:38 pm
Location: Arizona, USA
Medals: 10
Standard Achievement (2) Quadruples Achievement (1) Terminator Achievement (1) Manual Troops Achievement (1) Fog of War Achievement (1)
Trench Warfare Achievement (1) Speed Achievement (1) Ratings Achievement (1) General Achievement (1)

Re: Game Log 2.0 [To-Do]

Postby blakebowling on Sat Sep 20, 2008 4:39 pm

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.

First, XML is how the territories and bonuses are coded, not the game engine.
Second, this is being worked on, they would rather do one large update (with all new Game Log features) rather than many small updates.
Third, I like the idea of a game replayer, I think that this would require two sets of logs though, simple logs that are loaded regularly, and extended logs that are loaded by the replayer.
12:39:59 AM rdsrds2120: sorry, I had a lot of lasagna tonight
12:40:06 AM rdsrds2120: I'm pretty out of it. CRAAZZYYY NIGHT
12:31:04 * Metsfanmax quit (kicked from Social by Metsfanmax - reason: haha gotcha now)
12:59:32 * #1_stunna gropes blakebowling
Private blakebowling
Administrator
Administrator
 
Posts: 5028
Joined: Wed Jan 23, 2008 12:09 pm
Location: 127.0.0.1
Medals: 41
Standard Achievement (3) Doubles Achievement (1) Triples Achievement (1) Quadruples Achievement (1) Terminator Achievement (1)
Assassin Achievement (2) Manual Troops Achievement (1) Freestyle Achievement (3) Fog of War Achievement (3) Speed Achievement (3)
Teammate Achievement (1) Random Map Achievement (1) Ratings Achievement (3) Tournament Achievement (1) General Achievement (3)
Tournament Contribution (3) General Contribution (10)

Re: Game Log 2.0 [To-Do]

Postby cspare on Tue Oct 21, 2008 2:34 pm

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?
Last edited by cspare on Tue Oct 21, 2008 2:50 pm, edited 1 time in total.
Sergeant 1st Class cspare
 
Posts: 101
Joined: Sun Apr 08, 2007 12:56 pm
Medals: 8
Standard Achievement (1) Doubles Achievement (1) General Contribution (6)

Re: Game Log 2.0 [To-Do]

Postby yeti_c on Tue Oct 21, 2008 2:49 pm

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.


Actually in this instance - Lack said that he would be willing to provide the log in XML - so that script writers can parse the log easier.

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?


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.
Image
Highest score : 2297
User avatar
Lieutenant yeti_c
 
Posts: 9670
Joined: Thu Jan 04, 2007 9:02 am
Medals: 46
Standard Achievement (2) Doubles Achievement (2) Triples Achievement (2) Quadruples Achievement (3) Terminator Achievement (1)
Assassin Achievement (1) Freestyle Achievement (1) Fog of War Achievement (3) Cross-Map Achievement (3) Ratings Achievement (3)
General Achievement (1) Map Contribution (13) Tournament Contribution (1) General Contribution (10)

Re: Game Log 2.0 [To-Do]

Postby cspare on Tue Oct 21, 2008 2:59 pm

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.


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.
Sergeant 1st Class cspare
 
Posts: 101
Joined: Sun Apr 08, 2007 12:56 pm
Medals: 8
Standard Achievement (1) Doubles Achievement (1) General Contribution (6)

Re: Game Log 2.0 [To-Do]

Postby yeti_c on Wed Oct 22, 2008 10:01 am

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.


Yeah - that could work... 3 separate XML files that would be easily callable/parsable.

(I don't need the chat either - but it'd be good to upgrade everything at the same time!)

Although with times stamps that are easily parsable - I could use that info for useful stuff.

C.
Image
Highest score : 2297
User avatar
Lieutenant yeti_c
 
Posts: 9670
Joined: Thu Jan 04, 2007 9:02 am
Medals: 46
Standard Achievement (2) Doubles Achievement (2) Triples Achievement (2) Quadruples Achievement (3) Terminator Achievement (1)
Assassin Achievement (1) Freestyle Achievement (1) Fog of War Achievement (3) Cross-Map Achievement (3) Ratings Achievement (3)
General Achievement (1) Map Contribution (13) Tournament Contribution (1) General Contribution (10)

Re: Game Log 2.0 [To-Do]

Postby cspare on Thu Oct 23, 2008 2:08 pm

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>


Hmm, I was thinking a bit more, I figure the <turn> element won't work for freestyle games. (Because multiple turns can occur at the same time). I guess something like a TurnStartEvent and TurnEndEvent element would be needed to replace the turn element, also a playerid would be a required attribute for all *event elements.
Sergeant 1st Class cspare
 
Posts: 101
Joined: Sun Apr 08, 2007 12:56 pm
Medals: 8
Standard Achievement (1) Doubles Achievement (1) General Contribution (6)

PreviousNext

Return to Submitted Suggestions

Who is online

Users browsing this forum: No registered users

Login