The SC play file is an MPQ archive file. This MPQ archive contains several different files (for example, a .zip file).
Inside this archive are separate files for each data type in the MPQ archive. (For example, there is one file for game events, another for user interface events).
There are many documents on the Internet on how to handle MPQ files. Separate files in MPQ are now a little more complicated.
If you want to get information from the replay (who the players were and on which map they played), you can use these tools. (I assume a Unix-like web server).
1) Download and create libmpq and mpq-tools ( https://libmpq.org/ )
2) Run the following scripts
You can start them from the system () call, and then run several divided teams to get players and race.
Save this as info.sh. Run it as a command shell and pass it to the playback file as an argument.
#!/bin/bash
Here is a ruby ββscript. Save it as info.rb
Hope this helps!
pknodle
source share