Before you open any files, you need to understand what you are dealing with.
CoC2 saves are not saved in simple binary format. Instead, the game uses base64-encoded JSON. In simple terms: Coc2 Save Editing
When you export a save from CoC2 (Web or Standalone), you get a .coc2 file or a long string of text. This text is the base64 code. Before you open any files, you need to
Method A: The "Miner" Approach (Text Editing) This is the most accessible method for users. When you export a save from CoC2 (Web
.coc2.Method B: The "Architect" Approach (Memory Editing) This method allows for values that the game does not explicitly write to the file or values protected by checksums (though CoC2 is lenient with checksums).
This is the most stable function. Editing currency (gems), experience points, and basic attributes (Strength, Agility, etc.) works flawlessly 99% of the time. It is a "safe" way to bypass the grind of farming enemies for gold to buy gear.
CoC2 saves are essentially text files containing serialized data structures.