BorderLands 2 Python Save Editor

Discussion in 'Borderlands 2 Modding & Glitching' started by lCynic, Oct 16, 2012.

  1. lCynic Banned

    Message Count:
    234
    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 by lCynic, Oct 30, 2012
    Nexus2525, Grave, Grinch and 2 others like this.
  2. lCynic Banned

    Message Count:
    234
    Likes Received:
    55
    20 downloads, 151 views. No posts. =D
  3. Mr Weasel Enthusiast

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

    Message Count:
    234
    Likes Received:
    55
    I have used it for 4 different saves with no problems.
  5. CHR1STLAN Enthusiast

    Message Count:
    8
    Likes Received:
    0
    thanx for the share, i will try it out in the morning
  6. renegade7879 Enthusiast

    Message Count:
    36
    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 by renegade7879, Oct 17, 2012
  7. lCynic Banned

    Message Count:
    234
    Likes Received:
    55
    Thankyou for the feedback. I will work on it today.
  8. lCynic Banned

    Message Count:
    234
    Likes Received:
    55
    Thankyou for the feedback. I will work on it today.
  9. mnaltner Getting There

    Message Count:
    177
    Likes Received:
    38
    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 by mnaltner, Oct 17, 2012
  10. mnaltner Getting There

    Message Count:
    177
    Likes Received:
    38
    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]
    • Premium

    fett man Premium

    Message Count:
    25
    Likes Received:
    3
    Hey thanks, working well
  11. Edweird Getting There

    Message Count:
    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.
  12. mnaltner Getting There

    Message Count:
    177
    Likes Received:
    38
    finally got python to download, but the only thing i tried to change was backpack space, and it didn't do anything
  13. lCynic Banned

    Message Count:
    234
    Likes Received:
    55
    I updated the original post with a temporary fix for now.
  14. Khaos64 Getting There

    Message Count:
    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.
    Show Spoiler

    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

    Show Spoiler

    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.
  15. renegade7879 Enthusiast

    Message Count:
    36
    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 by renegade7879, Oct 18, 2012
    mnaltner likes this.
  16. sean8465 Getting There

    Message Count:
    92
    Likes Received:
    14
    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. ;)
    mnaltner likes this.
  17. lCynic Banned

    Message Count:
    234
    Likes Received:
    55
    Everything is fixed guys.
    mnaltner likes this.
  18. mnaltner Getting There

    Message Count:
    177
    Likes Received:
    38
    Thanks for the hard work guys its really appreciated
  19. Khaos64 Getting There

    Message Count:
    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.

    Show Spoiler

    ...
    ...
    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.