Lunar Coins are edited through game files, not in-game menus
Risk of Rain 2 stores your Lunar Coin count in a save file on your computer. You cannot change it through the game itself — there is no settings menu or console command that lets you adjust the number. Instead, you edit the actual file where the game records your progress, then reload the game to see the change.
The save file is a plain text document that your computer can open and edit. You do not need special software or mods. The process takes about five minutes once you know where the file lives and what to change inside it.
Key Takeaways
- Lunar Coins are stored in a save file located in your user folder, not in the game directory itself.
- You open the save file with Notepad or any text editor, search for the word "lunarCoins", and change the number next to it.
- You must close Risk of Rain 2 completely before editing the file, or the game will overwrite your changes when it closes.
- The save file path is different on Windows and Mac, so check your operating system before you start looking.
Finding your save file on Windows
On Windows, your Risk of Rain 2 save files live in a hidden folder inside your user directory. Open File Explorer and type this path into the address bar at the top: %appdata%\RiskOfRain2. Press Enter, and the folder will open.
Inside that folder, you will see a file called UserProfile.json. This is the file that holds your Lunar Coin count. Do not delete it or move it — you are only going to read what is inside and change one number.
If you do not see the RiskOfRain2 folder, the game may not have been launched yet on this computer. Start Risk of Rain 2, play for a few seconds, then quit. The folder will be created automatically.
Finding your save file on Mac
On Mac, the save file is in your Library folder, which is hidden by default. Open Finder, then press Command + Shift + G to open the "Go to Folder" dialog. Type this path: ~/Library/process Support/RiskOfRain2. Press Enter.
You will see the same UserProfile.json file. This is what you need to edit. The steps for changing the Lunar Coin count are identical to Windows — only the path to find the file is different.
Opening and editing the save file
Right-click on UserProfile.json and choose "Open With". Select Notepad (Windows) or TextEdit (Mac). The file will open as plain text, and you will see a long string of information about your game progress.
Press Ctrl+F (Windows) or Command+F (Mac) to open the search box. Type lunarCoins and press Enter. The editor will highlight the word and show you the number right after it. That number is your current Lunar Coin count.
Click on the number, select it, and type the new amount you want. For example, if it says "lunarCoins":5 and you want 50 coins, change it to "lunarCoins":50. Do not add commas or spaces — just the number itself.
Saving your changes and reloading the game
After you change the number, press Ctrl+S (Windows) or Command+S (Mac) to save the file. Close the text editor completely. Do not leave it open in the background.
Make sure Risk of Rain 2 is completely closed. If the game is still running, it will overwrite your edited file the moment you quit, erasing your changes. Check your taskbar or Activity Monitor to confirm the game is not running.
Open Risk of Rain 2 and load your save file. Your Lunar Coin count should now show the new number. If it reverted to the old number, the game was still running when you saved the file — close the game completely and try again.
What to do if the edit does not work
The most common reason an edit fails is that the game was running in the background when you saved the file. Risk of Rain 2 rewrites the save file every time it closes, so any changes you made will be lost. Always quit the game first, make your edit, save the file, then start the game again.
Another possibility is that you edited a different save file by mistake. Risk of Rain 2 can have multiple save files if you have created different characters or profiles. Check that you are editing the correct UserProfile.json — there should only be one in the RiskOfRain2 folder.
If the file will not open in your text editor, or if the editor says it cannot save, the file may be read-only. Right-click the file, choose Properties (Windows) or Get Info (Mac), and uncheck the "Read-only" box. Then try opening and editing it again.
Understanding what else is in the save file
The UserProfile.json file contains much more than just your Lunar Coin count — it also stores your unlocked items, your playtime, your character progress, and your statistics. You can edit other numbers in the same way if you know what to search for, but changing the wrong value can corrupt your save file.
If you are not sure what a particular number does, leave it alone. The safest approach is to change only the lunarCoins value. If something goes wrong and your save file becomes unreadable, you can delete UserProfile.json and the game will create a fresh one the next time you launch — you will lose all progress, but the game will still work.
Frequently Asked Questions
Will editing my save file get me banned?
Risk of Rain 2 is a single-player game with no online ranking system or competitive leaderboards that matter. Editing your own save file will not trigger any ban or penalty. The game does not check whether your progress is legitimate.
Can I edit Lunar Coins on console versions of Risk of Rain 2?
Console versions (PlayStation, Xbox, Nintendo Switch) do not allow direct access to save files the way PC does. You cannot edit Lunar Coins on console without using external tools or exploits, which are outside the scope of normal gameplay.
What if I want to set my Lunar Coins to zero?
Change the number to "lunarCoins":0 just like you would for any other value. Save the file, close the game completely, then reopen it. Your Lunar Coin count will be zero.
Does editing Lunar Coins affect my achievements or unlocks?
Editing Lunar Coins does not affect achievements or unlocks. Those are stored separately in the same file, and changing one value does not touch the others. You can edit coins without worrying about losing progress elsewhere.
Can I edit the save file while the game is running?
You can open and edit the file while the game runs, but the changes will not stick. When you close Risk of Rain 2, it will overwrite the file with whatever was in memory, erasing your edits. Always close the game first.