Last active
October 15, 2024 01:37
-
-
Save Breakthrough/c618c10ec76f8320184421e693bfbbca to your computer and use it in GitHub Desktop.
Unlock All Kinduo 2 Levels
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Add --remote-debugging-port=9222 to launch args, run game | |
// Go to http://localhost:9222 and select the main game window with Firefox/Chrome | |
var connection = indexedDB.open('c3-localstorage-n3ijmdgu0mm', 2) | |
connection.onsuccess = (e) => { | |
var db = e.target.result; | |
var txn = db.transaction('keyvaluepairs', 'readwrite') | |
var o = txn.objectStore('keyvaluepairs') | |
console.info('original config:') | |
console.info(o.get('kinduoFrostSteam')); | |
// data format on fresh install: | |
// data = '{"c2dictionary":true,"data":{"musicVolume":5,"soundVolume":5,"fullScreen":1,"shake":1,"vibrateGamepad":1,"doubleJump":0,"stageNumber":1,"languageID":1,"allStages":"{\\"c2array\\":true,\\"size\\":[50,1,1],\\"data\\":[[[1]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]]]}"}}'; | |
// unlock first 30 levels: | |
data = '{"c2dictionary":true,"data":{"musicVolume":5,"soundVolume":5,"fullScreen":1,"shake":1,"vibrateGamepad":1,"doubleJump":0,"stageNumber":3,"languageID":1,"allStages":"{\\"c2array\\":true,\\"size\\":[50,1,1],\\"data\\":[[[1]],[[1]],[[1]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]],[[0]]]}"}}'; | |
o.put(data, 'kinduoFrostSteam'); | |
txn.commit(); | |
console.info('updated config:') | |
console.info(o.get('kinduoFrostSteam')); | |
console.info('done, quit game (alt + f4) and relaunch') | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment