-
Notifications
You must be signed in to change notification settings - Fork 13
/
prepare-mini-chrome-client.txt
24 lines (21 loc) · 1.23 KB
/
prepare-mini-chrome-client.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Paste the following script into Console tab of Chrome Dev Tools (F12)
// and copy the output into user-config.properties file
// To play Bit Heroes using mini client, you must do the following things:
// Steps:
// 1. Make sure you can play game via web browser at https://www.kongregate.com/games/Juppiomenz/bit-heroes
// 2. Press F12 to open Dev Tools
// 3. Go to Console tab of Dev Tools
// 4. Open file `prepare-mini-chrome-client.txt`
// 5. Paste the content into the Console tab
if (active_user === undefined || active_user.getGameAttributes() === undefined || active_user.getGameAttributes().game_auth_token === undefined || active_user.getAttributes().id === 0) {
console.error("You have to login using your Kongregate account first");
} else {
console.log('# Game tokens');
console.log('1.game.kong.user.id=' + active_user.getAttributes().id);
console.log('1.game.kong.user.name=' + active_user.getAttributes().username);
console.log('1.game.auth.token=' + active_user.getGameAttributes().game_auth_token);
}
// 6. Copy the output into `user-config.properties` file, make sure to override the corresponding keys
// 7. Generate mini-client using:
// - On Windows: run file `client.bat`
// - On other OS: run file `./client.sh`