What's new

Tutorial BorderLands 2 Python Save Editor

  • Thread starter lCynic
  • Start date
  • Views 23,080
lCynic

lCynic

Enthusiast
Messages
285
Reaction score
60
Points
85
Sin$
0
I really don't like Gibbs save editor so I kept using my .bat to Python mod my Save. When my friends and family wanted me to mod saves for them I decided to make a .bat Mod Menu because changing the values was getting tedious.

Will help anyone over Skype. Skype = ImCynic

Modmenupic_zps61a72fd0.png


Mod MenuV3.0 beta: Download
 
Last edited:
Mr Weasel

Mr Weasel

Newbie
Messages
24
Reaction score
4
Points
45
Sin$
7
tried to mod backpack space with this, it either corrupts the save or no changes stick...
 
renegade7879

renegade7879

Enthusiast
Messages
48
Reaction score
11
Points
55
Sin$
0
Thanks so much, works great, clear instructions. Can't seem to get the backpack spaces to save though, any suggestions?
 
Last edited:
M

mnaltner

Enthusiast
Messages
262
Reaction score
69
Points
85
Sin$
7
For whatever reason, whether i click on the x32 or x64 bit, i can't get python to install properly on my pc (im running on windows 7 x64 bit) ... for instance: after you install python, shouldn't the savefile.py file in the mod folder have the python symbol next to it? I don't know what i'm doing wrong but python won't install
 
Last edited:
M

mnaltner

Enthusiast
Messages
262
Reaction score
69
Points
85
Sin$
7
this is what i'm getting when i double click on python x64 or x32, they revert from the zip image next to it, to this, and they don't install when I double click on either of them, they just open up all the files in the folder
pythonk.png
 
Edweird

Edweird

Enthusiast
Messages
115
Reaction score
3
Points
70
Sin$
0
Getting nothing but corrupt saves, no matter what I do.

Edit: I follow your instructions to the letter, and I always come away with a corrupt save file. Unsure what the issue is.
 
M

mnaltner

Enthusiast
Messages
262
Reaction score
69
Points
85
Sin$
7
finally got python to download, but the only thing i tried to change was backpack space, and it didn't do anything
 
Khaos64

Khaos64

Enthusiast
Messages
46
Reaction score
24
Points
55
Sin$
0
I updated the original post with a temporary fix for now.

Look into py2exe so you don't have to worry about people installing wrong or other variables for error.

I also looked at you .bat file. The way it is written, you aren't doing any mod but unlocking the slaughterdome(the last mod in the batch file).

None of your mods are being carried over, you are overwritting them. You rename the SaveGame.sav to old.sav at the beginning which is fine - but each mod uses the unmodded old.sav file as its source and overwrites previous modded SaveGame.sav file.

Without completely rewriting the code, I could suggest 2 ways to fix. 1st renaming SaveGame.sav to Backup.sav, and adding a line to each mod input. Use Backup.sav as source for the first mod, but output it as a temp.sav - use temp.sav as source for the next mod and output to temp1.sav and delete temp.sav and etc. i.e.
ren SaveGame.sav Backup.sav

Level:
level=%what%,itemlevels Backup.sav temp.sav

Eridium:
eridium=%huh% temp.sav temp1.sav
del temp.sav

Skill Points?
Type Skill Points:
skillpoints=%err% temp1.sav temp2.sav
del temp1.sav

...
...
...
Creature Slaughterdome:
unlocks=slaughterdome temp(whatever #).sav SaveGame.sav
del temp(whatever #).sav

Save Modded!

OR

Make two copies of orginal then rename after each mod

ren SaveGame.sav Backup.sav
copy Backup.sav old.sav

Level:
level=%what%,itemlevels old.sav SaveGame.sav
move /y Savegame.sav old.sav

Eridium:
eridium=%huh% old.sav SaveGame.sav
move /y Savegame.sav old.sav

Skill Points?
Type Skill Points:
skillpoints=%err% old.sav SaveGame.sav
move /y Savegame.sav old.sav

...
...
...
Creature Slaughterdome:
unlocks=slaughterdome old.sav SaveGame.sav
del old.sav

Save Modded!


Hope this helps.
 
renegade7879

renegade7879

Enthusiast
Messages
48
Reaction score
11
Points
55
Sin$
0
Look into py2exe so you don't have to worry about people installing wrong or other variables for error.

I also looked at you .bat file. The way it is written, you aren't doing any mod but unlocking the slaughterdome(the last mod in the batch file).

None of your mods are being carried over, you are overwritting them. You rename the SaveGame.sav to old.sav at the beginning which is fine - but each mod uses the unmodded old.sav file as its source and overwrites previous modded SaveGame.sav file.

Without completely rewriting the code, I could suggest 2 ways to fix. 1st renaming SaveGame.sav to Backup.sav, and adding a line to each mod input. Use Backup.sav as source for the first mod, but output it as a temp.sav - use temp.sav as source for the next mod and output to temp1.sav and delete temp.sav and etc. i.e.
ren SaveGame.sav Backup.sav

Level:
level=%what%,itemlevels Backup.sav temp.sav

Eridium:
eridium=%huh% temp.sav temp1.sav
del temp.sav

Skill Points?
Type Skill Points:
skillpoints=%err% temp1.sav temp2.sav
del temp1.sav

...
...
...
Creature Slaughterdome:
unlocks=slaughterdome temp(whatever #).sav SaveGame.sav
del temp(whatever #).sav

Save Modded!

OR

Make two copies of orginal then rename after each mod

ren SaveGame.sav Backup.sav
copy Backup.sav old.sav

Level:
level=%what%,itemlevels old.sav SaveGame.sav
move /y Savegame.sav old.sav

Eridium:
eridium=%huh% old.sav SaveGame.sav
move /y Savegame.sav old.sav

Skill Points?
Type Skill Points:
skillpoints=%err% old.sav SaveGame.sav
move /y Savegame.sav old.sav

...
...
...
Creature Slaughterdome:
unlocks=slaughterdome old.sav SaveGame.sav
del old.sav

Save Modded!


Hope this helps.

Using your second suggestion, I remade the batch file to just mod backpack space. Works like a charm.

Here's the file:http://www.mediafire.com/?aq826dkwy61qs7p
 
Last edited:
sean8465

sean8465

Enthusiast
Messages
472
Reaction score
109
Points
115
Sin$
0
Im gonna go ahead and tweak this and make it highly more advanced and put together. Ill link this thread for your idea and credit but i have a really good idea thanks to you. :wink:
 
M

mnaltner

Enthusiast
Messages
262
Reaction score
69
Points
85
Sin$
7
Everything is fixed guys.
Im gonna go ahead and tweak this and make it highly more advanced and put together. Ill link this thread for your idea and credit but i have a really good idea thanks to you. :wink:
Look into py2exe so you don't have to worry about people installing wrong or other variables for error.

I also looked at you .bat file. The way it is written, you aren't doing any mod but unlocking the slaughterdome(the last mod in the batch file).

None of your mods are being carried over, you are overwritting them. You rename the SaveGame.sav to old.sav at the beginning which is fine - but each mod uses the unmodded old.sav file as its source and overwrites previous modded SaveGame.sav file.

Without completely rewriting the code, I could suggest 2 ways to fix. 1st renaming SaveGame.sav to Backup.sav, and adding a line to each mod input. Use Backup.sav as source for the first mod, but output it as a temp.sav - use temp.sav as source for the next mod and output to temp1.sav and delete temp.sav and etc. i.e.
ren SaveGame.sav Backup.sav

Level:
level=%what%,itemlevels Backup.sav temp.sav

Eridium:
eridium=%huh% temp.sav temp1.sav
del temp.sav

Skill Points?
Type Skill Points:
skillpoints=%err% temp1.sav temp2.sav
del temp1.sav

...
...
...
Creature Slaughterdome:
unlocks=slaughterdome temp(whatever #).sav SaveGame.sav
del temp(whatever #).sav

Save Modded!

OR

Make two copies of orginal then rename after each mod

ren SaveGame.sav Backup.sav
copy Backup.sav old.sav

Level:
level=%what%,itemlevels old.sav SaveGame.sav
move /y Savegame.sav old.sav

Eridium:
eridium=%huh% old.sav SaveGame.sav
move /y Savegame.sav old.sav

Skill Points?
Type Skill Points:
skillpoints=%err% old.sav SaveGame.sav
move /y Savegame.sav old.sav

...
...
...
Creature Slaughterdome:
unlocks=slaughterdome old.sav SaveGame.sav
del old.sav

Save Modded!


Hope this helps.
Thanks for the hard work guys its really appreciated
 
Khaos64

Khaos64

Enthusiast
Messages
46
Reaction score
24
Points
55
Sin$
0
Guess I could have added this before but didn't run your file before and didn't think about it, after running, thought you could adjust it like so to clean it up a little.

...
...
ECHO Level?
set /p what=Type Level:
Echo.
echo Applying...
start /min /w python savefile.py -m level=%what% old.sav SaveGame.sav
move /y Savegame.sav old.sav > nul
cls
call :TITLE
ECHO Eridium?

....
....

and add at bottom of file

:TITLE
echo ===========================================
echo Borderlands 2 Batch Mod by Cynic
echo ===========================================
Also didn't see any itemlevel mod in there.
 
Top Bottom
Login
Register