/privateer

Library and editor for 'WIng Command: Privateer' saved games, inspired by PREDIT

Primary LanguageHTMLGNU General Public License v3.0GPL-3.0

Privateer Save Game Editor

Library and command-line tools to read and modify saved games from Wing Commander: Privateer

Largely inspired by and only made possible thanks to the amazing PREDIT tool created by Wayne Sikes.

Usage

Library

>>> import privtool
>>> save = privtool.Save("/path/to/SAVE.SAV")
>>> save.player_name
'RODRIGO SILVA'
>>> save.call_sign
'MESTRE LION'
>>>

Command-line

$ python3 -m privool "/path/to/SAVE.SAV"
DEBUG: Offset padding: b'\x00\xe0'
DEBUG: file_size = 2649, off_head = 40, off_player = 64, off_gameplay = 73, off_data = 83
INFO : num_missions = 3
DEBUG: Mission 0 header: b'U\x00\x00\xe0^\x00\x00\xe0'
DEBUG: Mission 1 header: b']\x02\x00\xe0f\x02\x00\xe0'
DEBUG: Mission 2 header: b'\xd9\x04\x00\xe0\xe2\x04\x00\xe0'
DEBUG: Unknown offset: 1751
DEBUG: Unknown offset: 1815
DEBUG: Unknown offset: 2083
DEBUG: Unknown offset: 2127
DEBUG: off_playername = 2616, off_callsign = 2634
INFO : 'RODRIGO SILVA' / 'MESTRE LION'

Installing

From Git:

git clone https://github.com/MestreLion/privateer
cd privateer
pip install --user -e .

From PyPi (soon!):

pip install --user <package>

Contributing

Patches are welcome! Fork, hack, request pull!

If you find a bug or have any enhancement request, please open a new issue

Author

Rodrigo Silva (MestreLion) linux@rodrigosilva.com

License and Copyright

Copyright (C) 2020 Rodrigo Silva (MestreLion) <linux@rodrigosilva.com>.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.