Python interface for Red Alert 2: Yuri's Revenge, utilizing the ra2yrcpp library and ra2yrproto protocol definitions.
Clone sources:
$ git clone --recurse-submodules https://github.com/shmocz/pyra2yr
In a suitable Python environment, invoke:
$ cd pyra2yr
$ python3 -m pip install -r requirements.txt .
Generate protobuf definitions (requires the protobuf compiler protoc
):
$ make protocol
See pyra2yr/test_*.py
files for example usage.