1. Want to help spread the Se7ensins cheer throughout the PC gaming community? Check out a little project one of our staff members is working on for CS:GO! More information concerning this can be found by clicking here.

BorderLands 2 Python Save Editor

Discussion in 'Borderlands 2 Modding & Glitching' started by lCynic, Oct 16, 2012 with 50 replies and 14,715 views.

  1. lCynic

    lCynic Banned

    Messages:
    279
    Likes Received:
    55
    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

    [​IMG]

    Mod MenuV3.0 beta: Download
     
    Last edited: Oct 30, 2012
    Nexus2525, Grave, Grinch and 2 others like this.
  2. lCynic

    lCynic Banned

    Messages:
    279
    Likes Received:
    55
    20 downloads, 151 views. No posts. =D
     
  3. Mr Weasel

    Mr Weasel Newbie

    Messages:
    21
    Likes Received:
    2
    tried to mod backpack space with this, it either corrupts the save or no changes stick...
     
    Edweird likes this.
  4. lCynic

    lCynic Banned

    Messages:
    279
    Likes Received:
    55
    I have used it for 4 different saves with no problems.
     
  5. CHR1STLAN

    CHR1STLAN Newbie

    Messages:
    12
    Likes Received:
    0
    thanx for the share, i will try it out in the morning
     
  6. renegade7879

    renegade7879 Enthusiast

    Messages:
    37
    Likes Received:
    11
    Thanks so much, works great, clear instructions. Can't seem to get the backpack spaces to save though, any suggestions?
     
    Last edited: Oct 17, 2012
  7. lCynic

    lCynic Banned

    Messages:
    279
    Likes Received:
    55
    Thankyou for the feedback. I will work on it today.
     
  8. lCynic

    lCynic Banned

    Messages:
    279
    Likes Received:
    55
    Thankyou for the feedback. I will work on it today.
     
  9. mnaltner

    mnaltner Enthusiast

    Messages:
    204
    Likes Received:
    40
    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: Oct 17, 2012
  10. mnaltner

    mnaltner Enthusiast

    Messages:
    204
    Likes Received:
    40
    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
    [​IMG]
     
  11. fett man

    fett man Premium Premium

    Messages:
    20
    Likes Received:
    3
    Hey thanks, working well
     
  12. Edweird

    Edweird Enthusiast

    Messages:
    115
    Likes Received:
    3
    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.
     
  13. mnaltner

    mnaltner Enthusiast

    Messages:
    204
    Likes Received:
    40
    finally got python to download, but the only thing i tried to change was backpack space, and it didn't do anything
     
  14. lCynic

    lCynic Banned

    Messages:
    279
    Likes Received:
    55
    I updated the original post with a temporary fix for now.
     
  15. Khaos64

    Khaos64 Enthusiast

    Messages:
    46
    Likes Received:
    24
    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.
     
    fat pat 666 and mnaltner like this.
  16. renegade7879

    renegade7879 Enthusiast

    Messages:
    37
    Likes Received:
    11
    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: Oct 18, 2012
    mnaltner likes this.
  17. sean8465

    sean8465 Getting There

    Messages:
    454
    Likes Received:
    45
    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:
     
    mnaltner likes this.
  18. lCynic

    lCynic Banned

    Messages:
    279
    Likes Received:
    55
    Everything is fixed guys.
     
    mnaltner likes this.
  19. mnaltner

    mnaltner Enthusiast

    Messages:
    204
    Likes Received:
    40
    Thanks for the hard work guys its really appreciated
     
  20. Khaos64

    Khaos64 Enthusiast

    Messages:
    46
    Likes Received:
    24
    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.