Razzmatazzz / RemnantSaveGuardian

Tool to backup your saves and view your world rolls
GNU General Public License v3.0
314 stars 45 forks source link

Add Microsoft Store/Game Pass version support #211

Open Bugrakca opened 9 months ago

Bugrakca commented 9 months ago

Remnant 2 C:\Users\YourUser\AppData\Local\Packages\PerfectWorldEntertainment.GFREMP2_jrajkyc4tsa6w\SystemAppData\wgs There are two folders there. One is the save_0.sav file, and the other is profile.sav file.

resim resim resim

I copied the 2 files inside to the previous file and changed their name. 2 files have different sizes. My profile.sav file is around 17KB and the save_0.sav is around 600KB. Every time you roll the world, you need to press E to checkpoint stone again. This is to update the files. Then you need to copy those files again, change their name, and in the SaveGuardian settings click the save folder and select the save files location. I found a way to make it work.

Maybe a script can be written for this. Instead of doing it manually one by one.

Update: There is a more descriptive guide in Reddit written by @quickproquo and a script by @Taylorpe thanks. This is the guide: https://www.reddit.com/r/remnantgame/comments/18wi9fv/remnant_save_guardian_with_pc_xbox_game_pass/

I hope it will help you too.

Dathca commented 9 months ago

It’s not working for me when playing remnant 2 from the Microsoft store using .net 8.0

Bugrakca commented 9 months ago

It’s not working for me when playing remnant 2 from the Microsoft store using .net 8.0

Maybe the Microsoft Store has a different save location?

Razzmatazzz commented 9 months ago

If it's anything like Remnant 1, the Microsoft Store version uses a whole different save structure.

EleventhEric commented 9 months ago

Would it be possible to add support for the world analyzer for game pass saves? I used your save manager for Remnant 1 and it was great to be able to see what I got on a reroll before going in to adventure mode in order to hunt for specific items.

Razzmatazzz commented 9 months ago

Might be possible. If someone has the time to figure out the Microsoft Store version save location and format, add support to RSG, and create a pull request, I'll review and merge. I don't have the bandwidth to take this on personally, though.

EleventhEric commented 9 months ago

The save game file location is: %LOCALAPPDATA%\Packages\PerfectWorldEntertainment.GFREMP2_jrajkyc4tsa6w\SystemAppData\wgs\<user-id>\

Not sure what the file format is though. Viewing the file with a hex editor doesn't give me much to go on. It might be the same format as the previous game. It's possible that the RemnantSaveManager codebase already has it.

Bugrakca commented 9 months ago

I added pictures. I don't copy and paste the files every time. That is why the file sizes are different—and file names (random letters and numbers) change whenever the game is saved.

silentiea commented 9 months ago

I can confirm that the analyzer as-is is capable of reading the files for gamepass games using Bugrakca's method, which means it's just a matter of streamlining the process to read the files automatically where they are rather than manually copying them into a single folder.

UndeadNidhogg commented 9 months ago

If it's anything like Remnant 1, the Microsoft Store version uses a whole different save structure.

Not only that but there's 4 folders instead of the 2 bugrakca mentions. Been looking into it as much as I can but hopefully I'm not the only one, would be great to get this figured out.

silentiea commented 9 months ago

I only have one character and I see the same setup as bugrakca with just 2 subfolders with random characters for names. Is it possible, Nidhogg, that you have multiple characters that might each get their own save files?

UndeadNidhogg commented 9 months ago

I only have one character and I see the same setup as bugrakca with just 2 subfolders with random characters for names. Is it possible, Nidhogg, that you have multiple characters that might each get their own save files?

It stays 4 folders no matter how many characters I create so that doesn't seem likely.

silentiea commented 9 months ago

Multiple accounts that log in to play? Each of my two folders contains a random string file and a "container.###" file. What happens if you copy and rename the random files in your folders into a single location and rename them like bugrakca suggested?

Bugrakca commented 9 months ago

I only have one character and I see the same setup as bugrakca with just 2 subfolders with random characters for names. Is it possible, Nidhogg, that you have multiple characters that might each get their own save files?

It stays 4 folders no matter how many characters I create so that doesn't seem likely.

Do you own any DLC? Those files may be DLC files. resim I have two different folders, one of them is a normal game folder. I downloaded the standard game first then I bought the DLC and downloaded it. The DLC folder is empty except for the settings.dat file. I'm just assuming maybe you bought the DLC with the standard game and downloaded it together. Is there anything inside the other folders? Can you share more information about those folders?

Thanks.

silentiea commented 9 months ago

I made a second character for hardcore mode, and got a new folder to show for it (presumably for save_1.sav)

image

silentiea commented 9 months ago

And it looks like that's the case, having pulled it out and renamed it.

UndeadNidhogg commented 9 months ago

I believe that some of the extra files are in fact character saves but regardless, I still can't get it to work and my save files are much smaller as well. Here's some screenshots of the files and folders. And no, I'm not lost and looking in the DLC folder... the DLC folder is clearly marked DLC. I'm in the exact path as described I'm just having trouble getting SaveGuardian to recognize the files even following the directions exactly as written.

Screenshot 2023-12-20 231348 And this is the folder begining with D9 that doesn't update with the other folders but has a larger file size. Screenshot 2023-12-20 231435

UndeadNidhogg commented 9 months ago

Also, this is what my settings are in the RemnantSaveGuardian app. It's the same folder the save files are copied in which is the previous folder to each of the main save folders, if that makes sense. Screenshot 2023-12-20 233724

UndeadNidhogg commented 9 months ago

Sorry for the continuous messages, but I've finally gotten the program to recognize my character profiles. I'm unable to get it to analyze the worlds tho. As you can see it shows my Archon/Ritualist and if i scroll other characters as well, but nothing comes up in the list. Definitely making progress tho, just wanna say thanks for all the help so far. Screenshot 2023-12-21 002456

silentiea commented 9 months ago

The save_#.sav files only update when you save your world on each character. Try playing character I to see which file should be save_0, character II to find save_1, etc?

3p0k commented 9 months ago

Hi, I have been trying to get it working using all the tips in this thread but my version couldn't recognize the remnant2.exe. Its named as image in my game pass version. The exe is in both "C:\XboxGames" and the screenshot path. I had to unlock WindowsApps to get this to work though. I made a copy of it and renamed to remnant2.exe and let the manager find the path. Then set it back to the original name so gamepass would run it. Now if I do as previously mentioned and make the save_0 and profile (manually)for each back up it works and the analyser works. So I point the manager to the folder under wgs and then copy and numerically named save files from their folders into that folder and rename them each time. image

This is my first time using the manager so I've no idea if i reduced its function doing this or not. It seems ok though.

Bugrakca commented 9 months ago

resim This is how I use it. Which folder you copy the files are not relevant. I didn't try to define the game folder because other things worked.

silentiea commented 9 months ago

Hey 3p0k, I don't think anyone is using RSG to launch their game with gamepass/windows store. I think we're just using it to have the world analyzer. I haven't tried to restore from backup, and I have too many hours invested to try at this point. I don't think they ever got backup working on the remnant 1 version either.

iaintnowhere commented 9 months ago

스크린샷 2023-12-24 031454 i think i figure out savefile naming. i don't have programing skills. so i make some python script that copy savefiles. it will be good someone make RSG better.

silentiea commented 9 months ago

Is it the same offset every time?

iaintnowhere commented 9 months ago

I didn't test somone's savefile. but it works created 3rd character. in containers.index profile at offset 329(in decimal) save_0 at offset 329+119 save_1 at offset 329+119+119 save_2 at offset 329+119+119+119

sameway to get filename in container.?? offset 152(in decimal)

silentiea commented 9 months ago

I can confirm that containers.index+0x149+[(n+1)*0x77] is the name of the profile folder [and the save_n folders], and that container.###+0x98 has the file name.

Actually, in my container.### the file name was repeated twice: at 0x88 and again at 0x98.

sunnyzensleep commented 8 months ago

Remnant 2 C:\Users\YourUser\AppData\Local\Packages\PerfectWorldEntertainment.GFREMP2_jrajkyc4tsa6w\SystemAppData\wgs There are two folders there. One is the save_0.sav file, and the other is profile.sav file.

resim resim resim

I copied the 2 files inside to the previous file and changed their name. 2 files have different sizes. My profile.sav file is around 17KB and the save_0.file is around 600KB. Every time you roll the world, you need to press E to checkpoint stone again. This is to update the files. Then you need to copy those files again, change their name, and in the SaveGuardian settings click the save folder and select the save files location. I found a way to make it work.

Maybe a script can be written for this. Instead of doing it manually one by one.

I hope it will help you too.

Thanks for this! Tried using your method but was having some issues. Are you copying the two highlighted files to the \wgs folder or the folder after the wgs?

Taylorpe commented 8 months ago

follow this https://www.reddit.com/r/remnantgame/comments/18wi9fv/remnant_save_guardian_with_pc_xbox_game_pass/

Taylorpe commented 8 months ago

I copied the 2 files inside to the previous file and changed their name. 2 files have different sizes. My profile.sav file is around 17KB and the save_0.file is around 600KB.

it should be profile.sav and save_0.sav

silentiea commented 8 months ago

Taylorpe, it shouldn't matter what folder you put them in as long as they both wind up in the same place and you set that folder as the same location in rsg

quickproquo commented 8 months ago

follow this https://www.reddit.com/r/remnantgame/comments/18wi9fv/remnant_save_guardian_with_pc_xbox_game_pass/

Just updated the guide with a py script someone wrote, while not ideal, it works well once you get it going.

Bugrakca commented 8 months ago

Taylorpe, it shouldn't matter what folder you put them in as long as they both wind up in the same place and you set that folder as the same location in rsg

Exactly.

Taylorpe commented 8 months ago

follow this https://www.reddit.com/r/remnantgame/comments/18wi9fv/remnant_save_guardian_with_pc_xbox_game_pass/

Just updated the guide with a py script someone wrote, while not ideal, it works well once you get it going.

That was me :)

Taylorpe commented 8 months ago

Taylorpe, it shouldn't matter what folder you put them in as long as they both wind up in the same place and you set that folder as the same location in rsg

Exactly.

My point was that this says to use a file called save_0.file not a file called save_0.sav your right if its in the same location that location won't matter.

Bugrakca commented 8 months ago

Taylorpe, it shouldn't matter what folder you put them in as long as they both wind up in the same place and you set that folder as the same location in rsg

Exactly.

My point was that this says to use a file called save_0.file not a file called save_0.sav your right if its in the same location that location won't matter.

Sorry. That was my mistake. I wrote it wrong. The file name is save_0.sav not save_0.file. Thanks for pointing that out. I updated my comment.

Bugrakca commented 8 months ago

follow this https://www.reddit.com/r/remnantgame/comments/18wi9fv/remnant_save_guardian_with_pc_xbox_game_pass/

This guide looks more descriptive than mine, which I will add in my post.