Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

librapm, Replay-Actions-Per-Minute Library

librapm is a static library written in C language that can inspect replays of some strategic games (just WarCraft III for the moment) and obtain all useful information such as:

  • game's release version
  • replay length
  • game joiners
  • chat between players
  • actions per minute of all players

A replay is typically a small (hundreds of kB) binary file with a proprietary format.

The library is licensed under GPLv2.

The library is distributed with a demonstrational program named prog and a few replays placed in the samples/ directory.

# print length of the replay
$ ./prog -l ../samples/tft_grubby_vs_ferfe.w3g
+replay_length (ms): 819625
# print information about game's participants
$ ./prog -j ../samples/tft_grubby_vs_ferfe.w3g
---->JOINERS
joiner: EG.Grubby (id: 1, team: 1)
host: 1, saver: 1, HP: 100, apm 267, leave_time : 00:13:39
----------------------------
joiner: WCG2009_OB_2 (id: 2, team: 12)
host: 0, saver: 0, HP: 100, apm 0, leave_time : 00:13:38
----------------------------
joiner: WCG2009_OB_1 (id: 3, team: 12)
host: 0, saver: 0, HP: 100, apm 0, leave_time : 00:13:38
----------------------------
joiner: WCG Referee (id: 4, team: 12)
host: 0, saver: 0, HP: 100, apm 0, leave_time : 00:13:38
----------------------------
joiner: feRfe` (id: 5, team: 0)
host: 0, saver: 0, HP: 100, apm 271, leave_time : 00:13:37
----------------------------
# print chat
$./prog -c ../samples/tft_revenant_vs_huang_feng.w3g
---->CHAT MESSAGES
msg #: 0, from joiner #: 2, at 00:00:48
 gl hf sir
----------------------------
msg #: 1, from joiner #: 1, at 00:00:52
 hf gl sir >D
----------------------------
msg #: 2, from joiner #: 1, at 00:16:34
 gg gratz
----------------------------
msg #: 3, from joiner #: 2, at 00:16:36
 gg
----------------------------
msg #: 4, from joiner #: 2, at 00:16:36
 thx
----------------------------

The library is still in development and its API is going to change in the future.

  • WarCraft III: Reign of Chaos, WarCraft III: The Frozen Throne
  • zlib

About

The project was renamed to "bractio"

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages