{"id":17347922,"url":"https://github.com/tuokri/rs2stats","last_synced_at":"2025-03-27T11:21:51.059Z","repository":{"id":120622179,"uuid":"256745958","full_name":"tuokri/rs2stats","owner":"tuokri","description":"Rising Storm 2: Vietnam balance log statistics parsing and visualisation.","archived":false,"fork":false,"pushed_at":"2020-05-31T21:37:52.000Z","size":36,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-01T15:45:52.686Z","etag":null,"topics":["balance","rising-storm-2-vietnam","rs2","rs2-vietnam","statistics"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tuokri.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-04-18T12:16:33.000Z","updated_at":"2024-07-13T15:09:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"89b10482-6b5a-4802-8c76-70d9522bc457","html_url":"https://github.com/tuokri/rs2stats","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tuokri%2Frs2stats","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tuokri%2Frs2stats/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tuokri%2Frs2stats/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tuokri%2Frs2stats/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tuokri","download_url":"https://codeload.github.com/tuokri/rs2stats/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245832754,"owners_count":20679704,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["balance","rising-storm-2-vietnam","rs2","rs2-vietnam","statistics"],"created_at":"2024-10-15T16:50:35.012Z","updated_at":"2025-03-27T11:21:51.054Z","avatar_url":"https://github.com/tuokri.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Map balance statistics for Rising Storm 2: Vietnam\n\n## Enable balance logging\n\nIn order to begin logging map balance statistics in server logs,\nnavigate to your server's `Config\\ROEngine.ini` file and in `[Core.System]`\nsection, remove the following line `Suppress=DevBalanceStats`.\n\nAfter a server restart, balance stat will begin to be logged in `Log\\Launch.log`. \n\n## Analyzing logs\n\nFor best results, logs from a long time period will be gathered and then analyzed.\nIdeally, the log file(s) would be manually collected before or after each server restart\nto a persistent location, because the server will clean up old log files periodically.\n\n### Example scenario:\n\nServer logs from a server have been collected into `E:\\collected_logs`.\nThe contents of the folder are the following:\n```\nE:\\collected_logs\\Launch-backup-2020.03.29-00.21.00.log\nE:\\collected_logs\\Launch-backup-2020.03.29-00.23.36.log\nE:\\collected_logs\\Launch-backup-2020.04.05-19.13.57.log\nE:\\collected_logs\\Launch-backup-2020.04.05-19.52.52.log\nE:\\collected_logs\\Launch-backup-2020.04.06-14.00.18.log\nE:\\collected_logs\\Launch-backup-2020.04.07-03.34.45.log\nE:\\collected_logs\\Launch-backup-2020.04.08-15.08.14.log\nE:\\collected_logs\\Launch.log\n```\n\nTo analyze the logs, `ParseStats.exe` is executed with the following arguments:\n`ParseStats.exe \"E:\\collected_logs\\*\" \"E:\\collected_logs\\results\\stats.csv\"\n--player-threshold 16 --analyze`\n\nThe first argument is the path to log file(s) to analyze.\nThe `*` character is a wildcard, denoting all the files in `E:\\collected_logs\\`.\nThe second argument is the stats output file. The third argument, `--player-threshold X`, filters\noff the matches where the number of players was fewer than X when the match ended. The fourth\nargument, `--analyze` tells the program to analyze results. Analysis results are written in the\nsame folder as the `stats.csv` file was in the example.\n\nAfter executing the command the following output is produced:\n```\nwriting output to 'E:\\collected_logs\\results\\stats.csv'\nanalyzing statistics...\ntotal entries: 123\nmatches played:\n        WWTE-Mannerheim: 27\n        WWTE-Boreal: 18\n        WWTE-Kollaa: 12\n        WWTE-KuhmoOutskirts: 10\n        WWTE-Salla: 10\n        WWTE-Tolvajarvi: 9\n        WWTE-MutarantaKurgan: 7\n        WWSU-Tolvajarvi: 7\n        WWTE-Suomussalmi: 6\n        WWTE-Raatteentie: 6\n        WWTE-Aittojoki: 5\n        WWTE-Summa: 4\n        WWTE-MutarantaKurgain: 2\n\nwin ratios:\n        WWSU-Tolvajarvi: num_axis_win=5, num_allies_win=2, allies_win_rate=28.6%\n        WWTE-Aittojoki: num_axis_win=2, num_allies_win=3, allies_win_rate=60.0%\n        WWTE-Boreal: num_axis_win=15, num_allies_win=3, allies_win_rate=16.7%\n        WWTE-Kollaa: num_axis_win=9, num_allies_win=3, allies_win_rate=25.0%\n        WWTE-KuhmoOutskirts: num_axis_win=7, num_allies_win=3, allies_win_rate=30.0%\n        WWTE-Mannerheim: num_axis_win=21, num_allies_win=6, allies_win_rate=22.2%\n        WWTE-MutarantaKurgain: num_axis_win=1, num_allies_win=1, allies_win_rate=50.0%\n        WWTE-MutarantaKurgan: num_axis_win=4, num_allies_win=3, allies_win_rate=42.9%\n        WWTE-Raatteentie: num_axis_win=4, num_allies_win=2, allies_win_rate=33.3%\n        WWTE-Salla: num_axis_win=2, num_allies_win=8, allies_win_rate=80.0%\n        WWTE-Summa: num_axis_win=3, num_allies_win=1, allies_win_rate=25.0%\n        WWTE-Suomussalmi: num_axis_win=4, num_allies_win=2, allies_win_rate=33.3%\n        WWTE-Tolvajarvi: num_axis_win=5, num_allies_win=4, allies_win_rate=44.4%\n\nwin conditions:\n        WWSU-Tolvajarvi: ROWC_ScoreLimit=7\n        WWTE-Aittojoki: ROWC_AllObjectiveCaptured=2,ROWC_TimeLimit=2,ROWC_LockDown=1\n        WWTE-Boreal: ROWC_TimeLimit=12,ROWC_AllObjectiveCaptured=3,ROWC_LockDown=3\n        WWTE-Kollaa: ROWC_LockDown=5,ROWC_TimeLimit=4,ROWC_ReinforcementsDepleted=3\n        WWTE-KuhmoOutskirts: ROWC_AllObjectiveCaptured=7,ROWC_ReinforcementsDepleted=3\n        WWTE-Mannerheim: ROWC_TimeLimit=13,ROWC_LockDown=7,ROWC_AllObjectiveCaptured=6,ROWC_OverTime=1\n        WWTE-MutarantaKurgain: ROWC_AllObjectiveCaptured=1,ROWC_TimeLimit=1\n        WWTE-MutarantaKurgan: ROWC_TimeLimit=4,ROWC_AllObjectiveCaptured=3\n        WWTE-Raatteentie: ROWC_ReinforcementsDepleted=4,ROWC_AllObjectiveCaptured=2\n        WWTE-Salla: ROWC_AllObjectiveCaptured=7,ROWC_TimeLimit=2,ROWC_ReinforcementsDepleted=1\n        WWTE-Summa: ROWC_LockDown=3,ROWC_AllObjectiveCaptured=1\n        WWTE-Suomussalmi: ROWC_AllObjectiveCaptured=4,ROWC_LockDown=2\n        WWTE-Tolvajarvi: ROWC_AllObjectiveCaptured=5,ROWC_LockDown=2,ROWC_ReinforcementsDepleted=1,ROWC_TimeLimit=1\n\nwriting summary to file 'E:\\collected_logs\\results\\stats_summary.txt'\n```\n\nThe summary file (`stats_summary.txt`) will contain more information that is too\nverbose to be show in the console window.\n\n## Download\n\nFrom releases: https://github.com/tuokri/rs2stats/releases\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftuokri%2Frs2stats","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftuokri%2Frs2stats","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftuokri%2Frs2stats/lists"}