Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Fix Pillars of Eternity save game with locked 1 per Encounter ability (In my case Grimoire Slam)
- # mkdir save
- # cd save
- # unzip ../*.savegame # unzip only one you want to fix
- # cp MobileObjects.save MobileObjects.save_ORIG
- # Run in python interpreter:
- import re
- data = open('MobileObjects.save_ORIG').read()
- # Fix / patch (selected as the most common in my savegame)
- good='m_activated\x06\x01\x11\x01\x06\x01\x00\x06\x01'
- # Pattern to find and fix (only 1 occurence in my savegame)
- pattern='m_activated\x06\x01\x11\x01' + '\x06\x01\x01\x06\x01'
- fixed = re.sub(pattern, good, data)
- f = open('MobileObjects.save', 'w')
- f.write(fixed)
- f.close()
- # zip -r 'savegamename.savegame' *
- # cp savegamename.savegame ..
- # Try loading
- # Useful snippets
- #print "\n".join(repr(x).replace(r'\t', '\\x09') for x in re.findall('m_activated\x06.{8}', data))
- # Various states (you need to select the one connected with the grimoire/broken ability
- # set(repr(x).replace(r'\t', '\\x09') for x in re.findall('m_activated\x06.{8}', data))
- # My broken pattern:
- # m_activated\\x06\\x01\\x11\\x01\\x08\\x01\\x00\\x06\\x01'
- # Author: bla
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement