Skip to content

Instantly share code, notes, and snippets.

@drouarb
Created February 3, 2022 19:16
Show Gist options
  • Select an option

  • Save drouarb/c709f36a6fc604e3bdc2c709f53ac1fb to your computer and use it in GitHub Desktop.

Select an option

Save drouarb/c709f36a6fc604e3bdc2c709f53ac1fb to your computer and use it in GitHub Desktop.
#!/usr/bin/bash
# This script will downgrade save versions file of theHunter: call of the wild
# You need to put the EGS build number of the game in $from and Steam build number of the game in $to
# Both version should be converted to hexadecimal little edian
# The script should be in your save game folder
# Use at your own risk
from='\x58\x53\x21'
to='\xAC\x33\x21'
grep -raPo "$from" | while read l
do
file=`cut -d : -f 1 <<< $l`
echo "Patching $file"
sed -i "s/$from/$to/" "$file"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment