Login

russian armor

Replay file format

24 Nov 2014, 09:31 AM
#1
avatar of Qvazar

Posts: 881

With the replay parsing tools we have now, there must be some information out there about the data structure of replay files.
I know the general stuff, there are chunks with command data etc. But how should this data be interpreted? If I want to read command data and ability usage, how do I know what command was given, what ability was used? Someone out there must have the data! :)
Inverse, pingtoft? :)
29 Nov 2014, 16:03 PM
#2
avatar of cr4wler

Posts: 1164

just checked the replay format again, and seemingly relic changes the format more often than some people change their underwear... looking at it now it seems the header is missing information about bulletins, but instead contains map info (like x/y coordinates of all flags).... which makes no sense to me. then again, a lot of relics decisions make little sense to me. as for the commands themselves: never fiddled around with them much, but that setup shouldn't have changed all too much and you should be able to get that info from here: https://github.com/ryantaylor/CoH2ReplayParser
30 Nov 2014, 08:09 AM
#3
avatar of Qvazar

Posts: 881

Thanks.
I found the source code of CoH2 Replay Tool and went from there. But yes, I learned the hard way that the format is no longer the same.
I see that Inverse's ReplayParser is more up to date, I'll have a look at that, thanks!! :)
It doesn't actually parse the tick data, but I think I can get what I need for the moment.

Why is this so hard. Relic please give us the source code for the replay writer, it'll make it so much easier :|
30 Nov 2014, 12:22 PM
#4
avatar of Neffarion

Posts: 461 | Subs: 1

Your best bet is Seb since he is the one responsible for replays parser in coh2.org
30 Nov 2014, 19:27 PM
#5
avatar of Qvazar

Posts: 881

I thought that was Inverse?
30 Nov 2014, 22:28 PM
#6
avatar of cr4wler

Posts: 1164

at least it used to be... but tbh, it looks like the parser is still broken atm (no player data being read... most likely this was introduced with the observer mode... makes sense to save that kind of data in the replay too, so that likely broke the parser).
1 Dec 2014, 06:58 AM
#7
avatar of Qvazar

Posts: 881

Yeah I'm having trouble figuring out the index of the steam-ids. I can see them but can't come up with a formula to calculate their index. It also seems like faction ids were changed from uint to a string. I got "aef" and "west_german" in the replay I'm looking at, followed by a "default" string a few bytes later??
2 Dec 2014, 14:25 PM
#8
avatar of Neffarion

Posts: 461 | Subs: 1

jump backJump back to quoted post1 Dec 2014, 06:58 AMQvazar
Yeah I'm having trouble figuring out the index of the steam-ids. I can see them but can't come up with a formula to calculate their index. It also seems like faction ids were changed from uint to a string. I got "aef" and "west_german" in the replay I'm looking at, followed by a "default" string a few bytes later??


stuff is pretty messy, the indexes are always getting changed from major patch to patch, better wait for something from relic (if they ever do) to make life easier. or you just gonna get all your work thrown out of the window by relic
2 Dec 2014, 15:01 PM
#9
avatar of Janne252
Admin Black Badge
Patrion 15

Posts: 3421 | Subs: 11

aef = US. Forces
west_german = OKW
soviet = Soviet
german = Ostheer

These are the faction names Relic uses internally.
2 Dec 2014, 15:01 PM
#10
avatar of Qvazar

Posts: 881



stuff is pretty messy, the indexes are always getting changed from major patch to patch, better wait for something from relic (if they ever do) to make life easier. or you just gonna get all your work thrown out of the window by relic

Yeah that's basically the impression I got.
Btw, how does CELO work? Does it read the unfinished replay file?

EDIT: Yes Janne, I know :)
2 Dec 2014, 20:20 PM
#11
avatar of Neffarion

Posts: 461 | Subs: 1

jump backJump back to quoted post2 Dec 2014, 15:01 PMQvazar

Yeah that's basically the impression I got.
Btw, how does CELO work? Does it read the unfinished replay file?

EDIT: Yes Janne, I know :)

No the replay files are only written when the game ends a match. CELO just reads the log files and uses them to detect players
2 Dec 2014, 21:55 PM
#12
avatar of Qvazar

Posts: 881


No the replay files are only written when the game ends a match. CELO just reads the log files and uses them to detect players

Ah, clever!
I was actually writing a small application to semi-automatically upload replays after a match, but just found out that CELO already does that. :clap:
So now I'm again in need of ideas for a hobby project.. :)
1 user is browsing this thread: 1 guest

SHOUT IT OUT!

No ProfanityNumber of ShoutsRefresh Shout Box
Osinyagov: Suddenly, coh2 is slowly dying, but you can play it, playerbase still big enough
Last Wednesday, 17:00 PM
Osinyagov: Wow, i remember you from zansi and vali videos, good old memories
Last Wednesday, 16:58 PM
Beinhard: o7 miss this game and zansi
Last Wednesday, 14:09 PM
Lady Xenarra: @Willy Pete The lack of April Fools this year is odd lol
02 Apr 2025, 01:34 AM
Willy Pete: @Rosbone not dead yet. when that happens the font will switch to Papyrus :*(
02 Apr 2025, 00:16 AM
dasheepeh: it was an honor guys :guyokay:
01 Apr 2025, 20:34 PM
aerafield: yeah I already prepared my "Can't believe there's comic mode for the 10 daily visitors even on this April 1st" :guyokay:
01 Apr 2025, 20:29 PM
Rosbone: @dasheepeh I guess that means this site is officially dead :guyokay:
01 Apr 2025, 20:19 PM
dasheepeh: no comic sans font for april 1st this year?
01 Apr 2025, 19:56 PM
Willy Pete: @Lady Xenarra this you? https://i.imgflip.com/3e4thi.jpg
01 Apr 2025, 02:53 AM
Lady Xenarra: Does anyone else think that USF needs buffs? It feels like they’re on life support sometimes
01 Apr 2025, 02:36 AM
Willy Pete: @Rosbone Ahh I missed that memo. I still think its a bad decision though. Adds frustration for players and isnt gonna make them that much money
27 Mar 2025, 15:46 PM
Rosbone: It is also good they left it free until after the free to play weekend. Points for that.
27 Mar 2025, 09:34 AM
Rosbone: But I agree, the cost to get a full decent Coh game pushing $115 US is not the best idea. Especially when it needs so much more work for casuals.
27 Mar 2025, 09:32 AM
Rosbone: To be fair, it was a thank you to early fans right? They said it was not free for long and it would become a pay DLC at some point.
27 Mar 2025, 09:30 AM
Willy Pete: Re-releasing free DLC so they can charge new players money for it. Brilliant marketing strategy :clap:
27 Mar 2025, 04:31 AM
Soheil: Coh2 still broken server ?
25 Mar 2025, 18:27 PM
Rosbone: Congrats to Relic. Looks like Coh3 has finally usurped Coh2 s the popular Coh. You smell terrific. :snfQuinn:.
24 Mar 2025, 02:46 AM

Livestreams

New Zealand 120
unknown 5

Ladders Top 10

  • #
    Steam Alias
    W
    L
    %
    Streak
Data provided by Relic Relic Entertainment

Replay highlight

VS
  • U.S. Forces flag cblanco ★
  • The British Forces flag 보드카 중대
  • Oberkommando West flag VonManteuffel
  • Ostheer flag Heartless Jäger
uploaded by XXxxHeartlessxxXX

Board Info

331 users are online: 331 guests
0 post in the last 24h
3 posts in the last week
51 posts in the last month
Registered members: 53610
Welcome our newest member, Operts21
Most online: 2043 users on 29 Oct 2023, 01:04 AM