Could probably create a fairly basic UI around this if pclifford had no objections. Would be much easier now that the lzo bindings dependency is gone. May help people with using it
Printable View
Could probably create a fairly basic UI around this if pclifford had no objections. Would be much easier now that the lzo bindings dependency is gone. May help people with using it
I admit I was a little skeptical that it works, but now I am convinced, changed eridium amount, added skillpoints and backpack, so my thanks go to kill_seth, pclifford and chaosknight118..thx guys.
Take a look at this, you can make it a little easier and not have to type the directory for python in.
http://pythoncentral.org/how-to-inst...ernal-command/
I've extract the ad hoc save file with horizon via vmWare, copy the save on the Mac. Then, here is what I enter in the terminal on Mac:
Last login: Sat Oct 13 20:52:09 on ttys002
You have new mail.
mac-pro:~ Footer$ cd /Users/Footer/Downloads/pclifford-borderlands2-b550a05
mac-pro:pclifford-borderlands2-b550a05 Footer$ savefile.py -m eridium=99 /Users/Footer/Downloads/pclifford-borderlands2-b550a05/Save0001.sav /Users/Footer/Downloads/pclifford-borderlands2-b550a05/Save0002.sav
-bash: savefile.py: command not found
The directory containing savefile.py isn't in your PATH variable, and the file may not be executable anyway. Two options:
1) Run: "chmod +x savefile.py" once to make it executable, and then you can run it as "./savefile.py" (note the ./ at the beginning, to tell the shell to find the program in the current directory)
2) Run it through python explicitly by starting the command as "python savefile.py" rather than just "savefile.py"
Here is what I get now with chmod. I now have an empty save0003.sav file
mac-pro:pclifford-borderlands2-b550a05 Footer$ python savefile.py -m eridium=99 /Users/Footer/Downloads/pclifford-borderlands2-b550a05/Save0001.sav /Users/Footer/Downloads/pclifford-borderlands2-b550a05/Save0003.sav
Traceback (most recent call last):
File "savefile.py", line 727, in <module>
main()
File "savefile.py", line 709, in main
output.write(modify_save(input.read(), changes, endian))
File "savefile.py", line 590, in modify_save
player = read_protobuf(unwrap_player_data(data))
File "savefile.py", line 317, in unwrap_player_data
raise BL2Error("Invalid save file")
__main__.BL2Error: Invalid save file
I'll install Python into vmWare tomorrow to try it.
Thanks for your job.
pclifford:
Ive created a tool (with GUI) in VB that can successfully edit money, lvl, etc however the save becomes corrupt when i go to use it. Im guessing its due to checksums but how did you fix this in your python script and any ideas how i would do it in VB.
Thanks
After i put the new savegame.sav file back into the actual game save and try to put it in put it back on my flashdrive through horizon i get invalid stfs package. I've tried opening it in modio as well and it says something along the lines of invalid parameters. Anyone know why?
Edit: I actually got it to work, i just tried it a couple more times and it finally worked. Thanks for all the hard work guy, i REALLY appreciate it :)