# Where to Edit Lunar Coins in Risk of Rain 2: Save File Modding Explained Lunar Coins are one of the most important currencies in **Risk of Rain 2 (RoR2)**. They persist between runs, unlock powerful items at the Bazaar Between Time, and gate access to some of the game's most game-changing mechanics. It's no surprise that players eventually ask: can you edit how many Lunar Coins you have, and if so, where does that data actually live? This article breaks down exactly how Lunar Coin data is stored, where to find it, and what factors affect whether editing it is straightforward or complicated. ## How Lunar Coins Are Stored in Risk of Rain 2 Unlike most in-run resources, Lunar Coins are **persistent** — they survive death and carry over between sessions. That means they aren't stored in a temporary run state. Instead, they're written to a **local save file** on your machine. The save file format used by RoR2 is a binary file with the `.xml` extension (depending on version) or an encoded profile file. The game saves player profile data — including Lunar Coin count, unlocks, logbook progress, and survivor stats — to a specific directory on your system. ## Where Is the RoR2 Save File Located? The location depends on your **operating system** and whether you're using the Steam version of the game. | Platform | Default Save File Path | |---|---| | Windows (Steam) | `%APPDATA%Roaming 2modman` or `C:Users[Username]AppDataRoamingRisk of Rain 2` | | Linux (Steam/Proton) | `~/.steam/steam/userdata/[SteamID]/632360/` | | macOS | `~/Library/Application Support/Risk of Rain 2/` | The key file you're looking for is typically named something like **`profile1.xml`** or a similarly named profile file inside the Risk of Rain 2 save directory. The exact filename can vary if you have multiple profiles set up in-game. > 🗂️ On Windows, the `AppData` folder is hidden by default. You'll need to enable "Show hidden items" in File Explorer, or paste the path directly into the address bar. ## What's Inside the Save File When you open the profile XML file in a plain text editor (Notepad, VS Code, Notepad++, etc.), you'll find human-readable tags. The Lunar Coin value is stored as a numeric integer in a tag that looks something like this: ``` 25 ``` Changing the number between those tags and saving the file is the core mechanic of manual Lunar Coin editing. It's a simple text edit — no special software is strictly required. However, there are a few important caveats that determine how smooth or complicated this process actually is. ## Factors That Affect How Easy This Is 🎮 ### 1. Whether You're Using a Mod Manager Many RoR2 players use **r2modman** or **Thunderstore Mod Manager**. These tools can redirect save data or run the game in a profile-isolated environment. If your save file isn't where you expect, it may be stored inside the mod manager's own profile directory rather than the default game path. Check within r2modman's settings for the data folder location if the default path turns out to be empty. ### 2. File Encoding and Corruption Risk RoR2 save files are relatively straightforward XML, but saving them incorrectly — wrong encoding, extra whitespace, or accidental character changes — can corrupt the profile. **Always back up the original file** before making any edits. A corrupted profile can wipe your unlocks, not just your coin count. ### 3. Game Version Hopoo Games and Gearbox have updated RoR2 save structures across major patches. The **Survivors of the Void** DLC and subsequent updates may have changed how profiles are written. An older tutorial that references a specific tag name might not match what you see in your current save file. Always verify tag names by opening and reading your own file first. ### 4. Steam Cloud Sync RoR2 uses **Steam Cloud** to sync save data across devices. If cloud sync is active and you edit a local file, there's a risk the cloud version overwrites your edit the next time Steam syncs — or the reverse, where a local edit gets overwritten on a different machine. To avoid conflicts, many players disable Steam Cloud sync for RoR2 before editing, then re-enable it after the game has loaded and saved the modified profile. ### 5. Anti-Cheat Considerations RoR2 does not use a kernel-level anti-cheat, and the game is largely single-player or cooperative. Save file editing is a common, well-documented practice in the community. That said, using edited saves in any multiplayer context — particularly if Steam achievements or leaderboards are involved — carries its own considerations around what the community considers legitimate. ## Using Mods Instead of Manual Editing Some players prefer to avoid manual file editing entirely. The **Thunderstore** mod repository hosts mods specifically designed to modify Lunar Coin counts in-game through menus or console commands. This approach avoids file handling risks and automatically accounts for current save file structures. The tradeoff is that mods require a working mod manager setup and introduce their own compatibility variables — particularly if you're running other mods simultaneously, or playing with friends who have different mod configurations. ## The Variable That Stays Personal Whether manual XML editing, a mod, or a third-party tool is the right approach depends on factors only you can evaluate: your comfort level with file editing, your mod setup, whether you play with others, which game version you're on, and how much of the risk of save corruption you're willing to accept. The mechanics are consistent — the coin value lives in a local save file, it's human-readable, and it can be changed. What varies is how that plays out given your specific setup.