[TOOL] Savegame Transfer Tool - Copy bases/ships from one game to another

Discussion in 'The Hangar Bay' started by byo13, Oct 23, 2020.

  1. byo13

    byo13 Captain

    Joined:
    Jul 13, 2020
    Messages:
    415
    Likes Received:
    638
    Exactly my thoughts. I'm not fond of the .NET framework because of all the dependency, size and because (for all of that) it's tied to Windows. Delphi is the only Windows only RAD/language I enjoy. There are even some projects of mine from 20 years ago that still run in Windows 10 without any change. :D

    Java is still my favorite after C and Delphi. I bought Purebasic more than a decade ago and hardly used. You have lifetime license so I decided to give it a try after so many years. It's really awesome, close to assembly in speed and has even direct support for assembly for those who are more adventurous. Hehe

    Hmm, I have no idea because I've never used the free version. :)
     
    #41
    Kassonnade likes this.
  2. byo13

    byo13 Captain

    Joined:
    Jul 13, 2020
    Messages:
    415
    Likes Received:
    638
    v.0.5.1
    FIXED: When replacing an entity already copied in the target the savegame database would remain opened.
    CHANGED: Removed/improved a few warnings.​
     
    #42
    Myrmidon likes this.
  3. byo13

    byo13 Captain

    Joined:
    Jul 13, 2020
    Messages:
    415
    Likes Received:
    638
    v0.5.3
    FIXED: There was still a bug that could leave the database open.​
     
    #43
  4. Myrmidon

    Myrmidon Rear Admiral

    Joined:
    Mar 26, 2016
    Messages:
    1,724
    Likes Received:
    2,056

    Erm....where is it? The first post still has the v5.1. Also Thank you.
     
    #44
  5. byo13

    byo13 Captain

    Joined:
    Jul 13, 2020
    Messages:
    415
    Likes Received:
    638
    Hey, @Myrmidon. Long time no see. :)
    I just tested it again, executed it from the new file and it shows v0.5.3.
    Could you try downloading it to a new location or clearing your browser caches to see if it's fixed?
    Let me know how it goes.
     
    #45
  6. Myrmidon

    Myrmidon Rear Admiral

    Joined:
    Mar 26, 2016
    Messages:
    1,724
    Likes Received:
    2,056
    My mistake. I have two folders for testing purposes, but did not update the target one I used. Plus the first post change date is not updated with the current date and got more confused. So now it works. :p:D

    Thank you one more time. Have a wonderful and happy new year.
     
    #46
    byo13 likes this.
  7. byo13

    byo13 Captain

    Joined:
    Jul 13, 2020
    Messages:
    415
    Likes Received:
    638
    I wish the same to you. Happy New Year and thank you for all the support.
     
    #47
    Myrmidon likes this.
  8. byo13

    byo13 Captain

    Joined:
    Jul 13, 2020
    Messages:
    415
    Likes Received:
    638
    v0.5.4 (Only minor stuff)
    CHANGED: The JPEG image file is no longer needed (Internal)
    CHANGED: Refactored code from the app to EmpyrionCore so other tools can be made in the future (Internal)
    FIXED: Minor memory tweaks.​
     
    #48
    Myrmidon likes this.
  9. Myrmidon

    Myrmidon Rear Admiral

    Joined:
    Mar 26, 2016
    Messages:
    1,724
    Likes Received:
    2,056
    Got any ideas in ind for the future tools?
     
    #49
  10. byo13

    byo13 Captain

    Joined:
    Jul 13, 2020
    Messages:
    415
    Likes Received:
    638
    My friend, as we speak, I am making a very simple tool that will attempt to solve the vanishing vessels and bases issue. :)
     
    #50
  11. Myrmidon

    Myrmidon Rear Admiral

    Joined:
    Mar 26, 2016
    Messages:
    1,724
    Likes Received:
    2,056
    Nice...But I thought this is a bug and must be fixed by Eleon.
     
    #51
  12. byo13

    byo13 Captain

    Joined:
    Jul 13, 2020
    Messages:
    415
    Likes Received:
    638
    Indeed. I reported this bug some days ago but I understand this is not a trivial one to catch since it could be related to memory corruption, high CPU usage peaks, database update locks, etcetera. It's a random error that doesn't even appear on the log. The tool was made for my personal use as I build a lot of vessels and bases and have faced the issue a dozen of times. So maybe it can help others while Eleon doesn't post a definitive solution. :)
     
    #52
    Last edited: Feb 9, 2021
    Myrmidon and Wellingtoon like this.
  13. Alhira_K

    Alhira_K Captain

    Joined:
    Jan 16, 2017
    Messages:
    287
    Likes Received:
    377
    You, sir, are a god amongst gods. I just discovered this gem and it might actually save my day.
    It currently seems to not work for 1.4. Or maybe it doesn't work transfering CVs from 1.4 game to a 1.3 Reforged Eden savegame?

    Anyway, the sheer existance of this tool shows me that there is some place where stuff like my CVs and their content is saved somewhere and manually copying should be possible (albeit maybe tedious). I just haven't found where, can you point me in the right direction, please?

    EDIT: I actually found it. The question now is how do i "inject" it into another savegame? simply copying the folder didn't do the trick. Not that i expected it to be so easy.
     
    #53
    Last edited: Feb 9, 2021
    byo13 likes this.
  14. byo13

    byo13 Captain

    Joined:
    Jul 13, 2020
    Messages:
    415
    Likes Received:
    638
    Hey, @Alhira_K. Thank you for the kind words and the bug report.
    I haven't tested it with v1.4 and I will take a look today to see what's changed.

    To answer your question it's not just a matter of copying files.
    Some internal changes with a hex editor need to be made to the entity files in the Shared folder.
    Also the database and the game.dat file needs to be synced with the new information.

    I will reply here with news once I find out what's wrong.
    Thanks again.
     
    #54
    Last edited: Feb 9, 2021
    malrose1 and Alhira_K like this.
  15. Alhira_K

    Alhira_K Captain

    Joined:
    Jan 16, 2017
    Messages:
    287
    Likes Received:
    377
    Yeah, out of curiousity i chucked the three files into an online hex editor. Yeah, that's way beyond me. :D
    I tried searching for the original position of the CV and funnily i found correlating numbers in the 0.area file. But nothing in the ents.dat file. Then i remebered i don't know jackshit about databases anyway, so i'll just leave it before totally bricking my game or whatever else i could cause.
     
    #55
    byo13 likes this.
  16. byo13

    byo13 Captain

    Joined:
    Jul 13, 2020
    Messages:
    415
    Likes Received:
    638
    v0.5.5
    FIX: The tool is not compatible with Empyrion v1.4 (thanks, @Alhira_K).
    There was check for a specific 'game.dat' file version (14) and Empyrion v1.4 changed it to 15. Removed this restriction. Now the tool is compatible with v1.2+.​
    FIX: Some read/save dat files were not totally safe in all occasions.
    @Alhira_K Could you please test if the fix above corrects the issue you're experiencing? Thanks.
    It should be compatible saving from v.12+ to all new versions. I'm not sure if the other way around is true though (copying from new version to old).
     
    #56
    Kassonnade, Myrmidon and Alhira_K like this.
  17. Alhira_K

    Alhira_K Captain

    Joined:
    Jan 16, 2017
    Messages:
    287
    Likes Received:
    377
    You're my hero, it works like a charm.
     
    #57
    Kassonnade and byo13 like this.
  18. byo13

    byo13 Captain

    Joined:
    Jul 13, 2020
    Messages:
    415
    Likes Received:
    638
    @Alhira_K Glad it worked. Thanks for the feedback.
     
    #58
    Kassonnade likes this.
  19. bad coffee

    bad coffee Ensign

    Joined:
    May 6, 2020
    Messages:
    15
    Likes Received:
    9
    Been using this for a while and I have to say, this is beyond excellent.
     
    #59
  20. Stampy

    Stampy Lieutenant

    Joined:
    Sep 17, 2020
    Messages:
    93
    Likes Received:
    66
    Thanks again for this - the tool is awesome. Is there a way to add copying over the player also to capture faction, levels, and most importantly quest/mission progress?
     
    #60
    Myrmidon and byo13 like this.

Share This Page