How to Edit R.E.P.O. Game Save Files: A Simple Guide

This guide will help you understand and edit your R.E.P.O. game save file even if you're not familiar with JSON files.

Understanding JSON Basics

Your save file is in JSON format, which is organized as:

  • Each entry has a name (on the left of the colon)
  • Each entry has a value (on the right of the colon)
  • Values inside curly braces are grouped together
  • Each entry ends with a comma (except for the last one)

Important Field Relationships

Critical: Several fields must be edited together to maintain consistency:

1. Inventory Items:

  • When changing itemsPurchased, you must also update itemsPurchasedTotal
  • Always ensure itemsPurchasedTotal is equal to or greater than itemsPurchased

2. Upgrade Items:

  • When changing player upgrade values in itemsUpgradesPurchased, make sure to update related player stat fields if present

3. Item Instances:

  • For specific item instances, changes in the item section should be consistent with their battery levels in itemStatBattery

Field-by-Field Editing Guide

1. itemsPurchased and itemsPurchasedTotal

What they are:

  • itemsPurchased: Your current inventory of items
  • itemsPurchasedTotal: Historical record of all items ever purchased

How to edit together:

"itemsPurchased": {
  "Item Grenade Explosive": 5,  // Changed from 1 to 5
},
"itemsPurchasedTotal": {
  "Item Grenade Explosive": 10,  // Must be at least 5 (the value in itemsPurchased)
},

2. itemsUpgradesPurchased

What it is: How many upgrades you've applied to each upgrade-type item.

How to edit:

  • For player upgrades, change the number to boost your character's abilities
  • Values typically range from 0-11

Example:

"itemsUpgradesPurchased": {
  "Item Upgrade Player Health": 10,  // Changed from 7 to 10
  "Item Upgrade Player Energy": 11,
},

3. itemBatteryUpgrades

What it is: Tracks battery upgrade levels for battery-powered items.

How to edit:

  • Most items will be 0
  • For items with batteries, values typically range from 0-3

Example:

"itemBatteryUpgrades": {
  "Item Drone Battery": 2,  // Changed from 0 to 2
},

4. itemStatBattery

What it is: Battery charge percentage for specific item instances.

How to edit:

  • Values should be between 0-100 (percentage)

Example:

"itemStatBattery": {
  "Item Drone Battery/1": 100,  // Changed from 99 to 100
},

5. item

What it is: Tracks individual item instances in the game world.

This section is complex and best left unchanged unless you know what you're doing.

Step-by-Step Example: Adding Items

Let's say you want to give yourself 5 explosive grenades:

  1. Find the itemsPurchased section
  2. Change "Item Grenade Explosive": 1, to "Item Grenade Explosive": 5,
  3. Find the itemsPurchasedTotal section
  4. Ensure "Item Grenade Explosive" is at least 5, if not make it 5 or higher
"itemsPurchased": {
  // Other items...
  "Item Grenade Explosive": 5,  // Changed from 1 to 5
  // Other items...
},
"itemsPurchasedTotal": {
  // Other items...
  "Item Grenade Explosive": 10,  // Must be at least 5
  // Other items...
},

Step-by-Step Example: Upgrading Player Stats

If you want to max out your health upgrades:

  1. Find the itemsUpgradesPurchased section
  2. Change "Item Upgrade Player Health": 7, to "Item Upgrade Player Health": 11,
  3. If there are related player stat fields, update those too
"itemsUpgradesPurchased": {
  // Other items...
  "Item Upgrade Player Health": 11,  // Changed from 7 to 11
  // Other items...
},
"playerUpgradeHealth": {
  "76561198024378942": 7,  // Update this if needed
  "76561198078417480": 7   // Update this if needed
}

Important Tips

  • Always make a backup before editing
  • Test small changes first before making major edits
  • Keep values reasonable to avoid breaking the game
  • Don't change item names, only their values
  • Maintain field relationships as described above
  • Don't remove entries or change formatting (commas, quotes, etc.)

Remember: If your save file stops working after editing, restore from your backup and try again with more modest changes.