RiskOfRainSaveEditor.wiki Open Save Editor

Explorer's logbook / currency and file paths

Risk of Rain 2 Lunar Coins Edit and Save File Location

Build the exact path to your UserProfiles folder from your SteamID, then patch the <coins> value and keep totalCollectedCoins consistent so the new balance survives the next launch.

Workbench inside a drop pod with a data slate, tools and glowing blue coins
Lunar Coins persist in the profile, not in a run
Advertisement

Save Path Builder and Lunar Coin XML Patcher

Paste your SteamID64 (the 17 digit number in your profile URL) or the SteamID3 form. The patcher below it changes only the coins value; for survivors and artifacts use the full profile editor.


userdata folder (account ID)52079950
Risk of Rain 2 app ID632360
Risk of Rain 2 profile folder

-

Risk of Rain Returns save (app 1337520)

-

Coin patch not run yet

Paste a profile and press Patch. The patcher edits only the coins value and, if present, totalCollectedCoins.

Where Risk of Rain 2 Keeps Your Profile

The Steam release of Risk of Rain 2 uses app ID 632360 and stores profiles through Steam's per-user cloud folder. The profile is not inside the game install directory and it is not in Documents. It lives under Steam's own userdata tree, in a folder named after your account number:

  • Windows: C:\Program Files (x86)\Steam\userdata\<SteamID>\632360\remote\UserProfiles\
  • Linux: ~/.local/share/Steam/userdata/<SteamID>/632360/remote/UserProfiles/
  • Steam Deck: /home/deck/.local/share/Steam/userdata/<SteamID>/632360/remote/UserProfiles/
  • Flatpak Steam: ~/.var/app/com.valvesoftware.Steam/.local/share/Steam/userdata/<SteamID>/632360/remote/UserProfiles/

If Steam is installed on a second drive, the userdata folder sits next to steam.exe in that install, not in the library folder that holds the game files. Choose "Windows, Steam installed elsewhere" in the builder and type that folder.

Inside UserProfiles each profile is a file named with a GUID, a long string of letters, digits and dashes that ends in .xml. The GUID is random and carries no meaning, so you identify the right file by opening it and reading the <name> tag near the top.

Finding the Right SteamID Folder

The folder name is your 32-bit account ID, which is different from the SteamID64 shown in many profile lookups. The conversion is a single subtraction: account ID equals SteamID64 minus 76561197960265728. For example, 76561198012345678 becomes 52079950. The SteamID3 format [U:1:52079950] already contains the account ID as its last number.

If several people have signed in to Steam on the same computer you will see several numbered folders. Only the one that contains a 632360 subfolder belongs to an account that has played Risk of Rain 2, and the folder that was modified most recently is usually yours.

JavaScript numbers lose precision above about nine quadrillion, so a naive calculator can be off by a few digits when it handles a SteamID64. The builder uses BigInt for the subtraction, which keeps every digit exact.

How Lunar Coins Are Stored and Why Sync Matters

Lunar Coins are the only currency in Risk of Rain 2 that carries over between runs. They drop rarely from enemies, are awarded the first time you complete a challenge, and are spent at Lunar pods, in the Bazaar Between Time, and on Lunar items and Bazaar rerolls. Because they persist, the balance is written to your profile rather than to any run save.

In the XML the spendable balance is the text of a single <coins> element. Profiles also keep a lifetime counter named totalCollectedCoins. Some editors change only the balance, which leaves a profile that has spent more coins than it ever collected. We have no evidence that the game punishes this, but there is no reason to leave an inconsistent file behind either. With the sync option on, the patcher raises the lifetime counter by exactly the amount you added, whether it is stored as its own element or as a named stat entry.

What the patcher changes

  • The text inside the first <coins> element, as a whole number of zero or more.
  • The totalCollectedCoins value, only when your balance goes up and only if the field already exists.
  • Nothing else. Whitespace, comments, the declaration line and the line ending style are preserved.

If the patcher reports that it could not find <coins>, you probably pasted a partial file or a profile from a different game. Use the validator to check the structure.

Stopping Steam Cloud From Reverting the Edit

Steam Cloud compares the timestamp of your local files with the copy on Valve's servers when the game launches and when it exits. A revert happens when the cloud copy wins. These steps keep your local edit on top:

  1. Exit Risk of Rain 2 and wait until Steam shows the game as not running and finishes "Syncing".
  2. Replace the profile file. Keep the exact GUID file name.
  3. Launch the game from the same computer. Steam should upload the newer local file.
  4. If a "Cloud Sync Conflict" window appears, read the dates. Choose the local side with today's time.

Turning off Steam Cloud for the game in its Properties also stops reverts, but then the edit will not reach your other machines. Turn it back on after one clean launch if you want both.

Steam Deck users can follow the same steps in Desktop Mode. A suspended game is still running, so fully close it from the Steam menu before you edit.

Advertisement

Lunar Coins and Save Location FAQ

Answers written from hands-on XML and JSON handling. Always keep the untouched backup that every tool on this site offers before you overwrite a profile.

How do I convert my SteamID64 into the userdata folder number?

Subtract 76561197960265728 from your 17 digit SteamID64. The result is the 32-bit account ID that Steam uses as the folder name inside userdata. The path builder above does this subtraction with exact integer math.

Where is the Risk of Rain 2 save on Steam Deck?

Under /home/deck/.local/share/Steam/userdata/<account ID>/632360/remote/UserProfiles/. The game runs through Proton but Steam keeps cloud synced files in its own userdata tree, not inside the compatdata prefix.

Is there a maximum number of Lunar Coins?

We have not found a published cap. Very large numbers give no gameplay benefit and make any overflow bug more likely, so a balance in the low thousands is plenty to buy every Lunar item and Bazaar reroll you want.

My coins went back to the old number. What happened?

Either the game was still running and saved over your edit when you quit, or Steam Cloud restored a copy uploaded from another machine. Close the game, re-apply the edit, and when Steam shows the cloud conflict prompt choose the local files.