fafreplay format

Talk about general things concerning Forged Alliance Forever.

Moderators: FtXCommando, Ze Dogfather

fafreplay format

Postby RoLa » 13 Jun 2013, 13:15

there is a java program FAchart, that extracts information from old SCFAReplay. It shows some nice charts, micro, actions, build orders ...

i looked at the different replay formats and the sources of fachart and fafclient. I understand that the fafreplay format has
- json header with meta information
- body is base64 encoded

the decoded body fafreplay seems completely different to old scfaeplay. Is there something like FAchart for the new fafreplay format? If not can someone help me to understand the new format? Perhaps i can modify fachart to read the new format.

I have modified FAChart to be compatible with new fafreplay format. The source is included in the jar file which is wrapped with the exe.

EDIT:
My modified version seems to have a serious bug. I deleted the file. So use the version of fffmmm.
viewtopic.php?f=41&t=2702
Last edited by RoLa on 15 Jun 2013, 16:58, edited 2 times in total.
User avatar
RoLa
Contributor
 
Posts: 313
Joined: 23 Apr 2013, 22:14
Has liked: 5 times
Been liked: 19 times
FAF User Name: RoLa

Re: fafreplay format

Postby rootbeer23 » 13 Jun 2013, 13:20

the compression is not compatible with standard formats it seems.
here is a minimal python program that will bas64-decode and decompress:

Code: Select all
from PyQt4 import QtCore
replay = open("replay", "rt")
replay.readline()
bin=QtCore.qUncompress(QtCore.QByteArray.fromBase64(replay.read()))
print bin
rootbeer23
Supreme Commander
 
Posts: 1001
Joined: 18 May 2012, 15:38
Has liked: 0 time
Been liked: 31 times
FAF User Name: root2342

Re: fafreplay format

Postby Cuddles » 13 Jun 2013, 13:26

someone said something about when watching the FAFrepley, there is a original replayed made in some cache folder that you can use.... this question came up the other day also.
Turinturambar defended very valiantly
User avatar
Cuddles
Contributor
 
Posts: 692
Joined: 29 Mar 2013, 14:19
Has liked: 132 times
Been liked: 118 times
FAF User Name: Scoot

Re: fafreplay format

Postby ZLO_RD » 13 Jun 2013, 13:39

Yes there is an original replay in cashe folder, that appears after you wach replay you want to view in FAChart

But i heared that there is a modified FAFChart that works with FAF replays
http://www.youtube.com/user/dimatularus
http://www.twitch.tv/zlo_rd
TA4Life: "At the very least we are not slaves to the UI"
User avatar
ZLO_RD
Supreme Commander
 
Posts: 2265
Joined: 27 Oct 2011, 13:57
Location: Russia, Tula
Has liked: 303 times
Been liked: 400 times
FAF User Name: ZLO

Re: fafreplay format

Postby RoLa » 14 Jun 2013, 10:07

New version of FAChart see first post!

Can someone move this thread to "Useful tools & mods"

Thanks!
User avatar
RoLa
Contributor
 
Posts: 313
Joined: 23 Apr 2013, 22:14
Has liked: 5 times
Been liked: 19 times
FAF User Name: RoLa

Re: fafreplay format

Postby Cuddles » 14 Jun 2013, 14:46

Spoiler: show
nothing happens when i run it?

Spoiler: show
nvm just takes a while to load - java :(


I select a replay to open and then nothing? Is FAchart supposed to run in a specific folder or something?
Turinturambar defended very valiantly
User avatar
Cuddles
Contributor
 
Posts: 692
Joined: 29 Mar 2013, 14:19
Has liked: 132 times
Been liked: 118 times
FAF User Name: Scoot

Re: fafreplay format

Postby Kurbain » 14 Jun 2013, 15:23

FaChart has been modified to analyze FAF-Replays already quite a while ago:

viewtopic.php?f=41&t=2702
Kurbain
Avatar-of-War
 
Posts: 104
Joined: 05 May 2013, 20:42
Has liked: 2 times
Been liked: 2 times
FAF User Name: Kurbain


Return to General Discussions

Who is online

Users browsing this forum: No registered users and 1 guest

cron