Skip to content

Save Formatting

FifthTundraG edited this page Jun 17, 2024 · 5 revisions

This page is heavily out of date!!!

Explanation

Saves are formatted in a relatively simple way, a large array of numbers that the load function can read and understand. To view your save you need to view your Local Storage for the branch you're currently on. This can be done simply by entering the Inspect menu, finding Application on the top navbar, finding Local Storage on the new left bar, and finding one of 3 different saves, save, betaSave, and devSave. devSave is only written when development is active, if you're a casual user it means nothing.

Formatting

The format for the save is simple, and the order is shown below. All values are their actual coded variable names, for the developers. List starts with 0 because it's the way arrays are formatted.

Variable
0: cookies
1. totalCookies
2. cookiesPerSecond
3. keyboardCPSGiven
4. grandpaCPSGiven
5. ranchCPSGiven
6. tvCPSGiven
7. workerCPSGiven
8. walletCPSGiven
9. churchCPSGiven
10. keyboardsBought
11. grandpasBought
12. ranchesBought
13. tvsBought
14. workersBought
15. walletsBought
16. churchesBought
17. keyboardCPSGain
18. grandpaCPSGain
19. ranchCPSGain
20. tvCPSGain
21. workerCPSGain
22. walletCPSGain
23. churchCPSGain
24. upgrade0sBought
25. upgrade1sBought
26. upgrade2sBought
27. upgrade3sBought
28. upgrade4sBought
29. upgrade5sBought
30. upgrade6sBought
31. keyboardUpgradeCost
32. grandpaUpgradeCost
33. ranchUpgradeCost
34. tvUpgradeCost
35. workerUpgradeCost
36. walletUpgradeCost
37. churchUpgradeCost
38. cookiesPerClick
39. cookiesBeenClickedTimes
40. buildingsOwned
41. grandmaPromptClicks
42. hasCheated
43. won
44. isModded
45. versionBranch
Note: versionBranch is not used the same as other items in this list. It's only read when importing a save. Autosaves do not read this variable.

Editing

A .ccsave file is actually just a disguised .json file and is relatively easy to read and edit. While it may be difficult to understand most of what this does, by looking in the main.js file and finding what these variables do, you can easily figure out how to edit your save.

Clone this wiki locally