aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorB. Stack <bgstack15@gmail.com>2024-03-20 13:05:01 -0400
committerB. Stack <bgstack15@gmail.com>2024-03-20 13:05:01 -0400
commitb1529ebaf328d8146e50bc81919fbcd6cd0558e9 (patch)
tree21e6fd7c159837271840ab10020fa11c0ac12122
parentfix docs, use unsigned int in data operations (diff)
downloadsrb_lib-b1529ebaf328d8146e50bc81919fbcd6cd0558e9.tar.gz
srb_lib-b1529ebaf328d8146e50bc81919fbcd6cd0558e9.tar.bz2
srb_lib-b1529ebaf328d8146e50bc81919fbcd6cd0558e9.zip
fix %% in parser helper, and add image
-rw-r--r--.images/scrot-hexedit-for-fun-and-profit-srb.pngbin0 -> 771180 bytes
-rw-r--r--README.md2
-rwxr-xr-xsrb.py2
3 files changed, 3 insertions, 1 deletions
diff --git a/.images/scrot-hexedit-for-fun-and-profit-srb.png b/.images/scrot-hexedit-for-fun-and-profit-srb.png
new file mode 100644
index 0000000..086ef57
--- /dev/null
+++ b/.images/scrot-hexedit-for-fun-and-profit-srb.png
Binary files differ
diff --git a/README.md b/README.md
index f5fbf5a..6e949b1 100644
--- a/README.md
+++ b/README.md
@@ -65,6 +65,8 @@ Before I learned this, none of this savegame editing was possible.
The binary contents are stored in little-endian, which makes visual inspection of the file in a hexeditor slower.
+![Screenshot of profile selection screen showing three names: "Hexedit," "4fun and," and "Profit."](.images/scrot-hexedit-for-fun-and-profit-srb.png "Screenshot of profiles with fun names")
+
## References
1. <https://bgstack15.ddns.net/blog/posts/2024/03/22/initial-research-for-hacking-savegame-files-for-snoopy-vs-the-red-baron/>
diff --git a/srb.py b/srb.py
index 4b72330..4225e14 100755
--- a/srb.py
+++ b/srb.py
@@ -65,7 +65,7 @@ parser.add_argument("--set-health",type=int,choices=range(1,5),help="Set stat he
parser.add_argument("--get-stunt",action="store_true",help="Print stat stunt for profile.")
parser.add_argument("--set-stunt",type=int,choices=range(1,5),help="Set stat stunt for profile.")
parser.add_argument("--get-gun",action="store_true",help="Print stat gun for profile.")
-parser.add_argument("--set-gun",type=int,choices=range(1,6),help="Set stat gun for profile. 5 is octo-gun which normally unlocks at 100% completion of the game.")
+parser.add_argument("--set-gun",type=int,choices=range(1,6),help="Set stat gun for profile. 5 is octo-gun which normally unlocks at 100%% completion of the game.")
parser.add_argument("--lock-everything",action="store_true",help="Set all levels to completed with rank general, all letters, and all balloons.")
parser.add_argument("--unlock-everything",action="store_true",help="Set all levels to not completed. Take all letters and balloons.")
parser.add_argument("--buy-everything",action="store_true",help="Give all purchasable items: planes, weapons, plane stats.")
bgstack15