FAForever Forums
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Login

    FAF/SCFA Replay Parser Library

    Scheduled Pinned Locked Moved Blogs
    15 Posts 10 Posters 3.2k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • N
      Nooby @Askaholic
      last edited by Nooby

      I have downloaded a few thousand replays and used your python libary to parse all chat in them. 12MB of text was parsed for this.

      I have quite a big text file for each FAF username. I know it would be better to use userID and I will in future things. Does anyone want this data?

      The chat has been filtered to remove "notify" events and also "Units / Mass / Power sent"

      I do plan to do some kind of node analysis on who plays with who next
      who is associated with which map
      association of maps with ratings

      20211020_12MB_wordcloud_thousands_recent_games.png

      1 Reply Last reply Reply Quote 6
      • K
        Katharsas
        last edited by

        Mavor most iconic unit confirmed.

        1 Reply Last reply Reply Quote 2
        • ZeldafanboyZ
          Zeldafanboy
          last edited by

          Lol "air".

          put the xbox units in the game pls u_u

          1 Reply Last reply Reply Quote 0
          • GiebmasseG
            Giebmasse Team Lead
            last edited by Giebmasse

            im need mass pls

            Could be interesting seeing more replays parsed and data analyzed/presented.

            1 Reply Last reply Reply Quote 0
            • M
              meatontable
              last edited by

              I have tested a python binding and it is OK. What kind of the data analyze do you want ?
              Winning fraction? most killed fraction ? popular (unpopular) units ?

              N 1 Reply Last reply Reply Quote 1
              • N
                Nooby @meatontable
                last edited by

                @meatontable What information can you extract here?

                Relationship of unit experemental built to winning in next 10 mins would be good

                1 Reply Last reply Reply Quote 0
                • M
                  meatontable
                  last edited by

                  Sorry for delay. I'm doing this for fun when I'm free. Of course, a detecting winning conditions is a good goal.

                  1 Reply Last reply Reply Quote 0
                  • AskaholicA Askaholic referenced this topic on
                  • D
                    dragonite
                    last edited by

                    Found this thread after ages to be here. Unbelievable. Guys, you're great! 🙂

                    1 Reply Last reply Reply Quote 1
                    • AskaholicA
                      Askaholic
                      last edited by

                      After almost 3 years I have finally released another version of the rust crate, and CLI tool. I also published a new version of the python package which adds binary wheels for python 3.11 and 3.12, and removes support for python 3.7. Note, the version numbers happen to correspond between the rust/python packages but that is just coincidence, I have not updated the python library to use the new changes from the rust one yet.

                      Rust: https://crates.io/crates/faf-replay-parser/0.6.0
                      Python: https://pypi.org/project/faf-replay-parser/0.6.0/

                      What's new?

                      Many, many refactors to the API. If you wrote some rust code that used version 0.5.2 of the rust crate, you'll have to update some syntax to get it to work with 0.6.0. See the improved docs page for the new syntax.

                      For CLI users things you'll notice are:

                      • The improvement to the command output is now released on 0.6.0
                      • Some additional output like game title and game quality in fafreplay info
                      • A new fafreplay info --raw option for dumping out the entire contents of the replay header
                      • Better detection of file type which does not rely on the file extension
                      • Some basic support for Supreme Commander 2 replays

                      Enjoy!

                      1 Reply Last reply Reply Quote 5
                      • G
                        gorleg
                        last edited by

                        This is pretty incredible! I've been wondering if you could theoretically train an AI on the incredible amount of supcom replays out there. To do this though you'd need more than just a list of orders; presumably you'd need things like each player's intel, unit counts and locations, current resources, and more. It doesn't look to me like this is available from the replay data, does that sound right? No idea if this is truly possible, just curious 🙂

                        1 Reply Last reply Reply Quote 0
                        • AskaholicA
                          Askaholic
                          last edited by

                          That is correct. In order to figure out that information you’d have to run the replay through the actual game simulation (I.e. watch the replay). You could probably create some sort of mod that would dump that info out while the replay is running, but I’m not very familiar with that side of things. A mod like that might even exist already.

                          1 Reply Last reply Reply Quote 0
                          • First post
                            Last post