2022-01-05 16:32:28 +01:00
|
|
|
# Tools
|
|
|
|
|
|
|
|
## Pretty Save
|
|
|
|
|
|
|
|
Useful to analyze a player's save game for anomalies.
|
|
|
|
|
2023-10-08 00:44:28 +02:00
|
|
|
It decodes the save and prettifies the output. Cannot be used to modify a save game directly since it drops some properties.
|
2022-01-05 16:32:28 +01:00
|
|
|
|
|
|
|
**Usage**
|
2022-04-07 01:30:08 +02:00
|
|
|
|
2022-01-05 16:32:28 +01:00
|
|
|
```sh
|
|
|
|
node ./pretty-save.js 'C:\\Users\\martin\\Desktop\\bitburnerSave_1641395736_BN12x14.json' 'C:\\Users\\martin\\Desktop\\pretty.json'
|
|
|
|
```
|
2022-01-06 13:04:03 +01:00
|
|
|
|
|
|
|
## Fetch Steam Achievements Data
|
|
|
|
|
|
|
|
Used to synchronize the achievements info in steamworks to the game's data.json
|
|
|
|
|
|
|
|
**Usage**
|
2022-04-07 01:30:08 +02:00
|
|
|
|
2022-01-06 13:04:03 +01:00
|
|
|
```sh
|
|
|
|
# Get your key here: https://steamcommunity.com/dev/apikey
|
|
|
|
node fetch-steam-achievements-data.js DEVKEYDEVKEYDEVKEYDEVKEY
|
|
|
|
```
|
2022-01-18 21:40:36 +01:00
|
|
|
|
2022-01-21 20:46:55 +01:00
|
|
|
## Fetch Changelog
|
2022-01-18 21:40:36 +01:00
|
|
|
|
2022-01-21 20:46:55 +01:00
|
|
|
Used to generate a changelog of merged pull requests & commits between A & B.
|
|
|
|
The key is a personnal access token, from https://github.com/settings/tokens.
|
|
|
|
It requires the "gist" scope as the result is pushed to a secret gist.
|
2022-01-18 21:40:36 +01:00
|
|
|
|
|
|
|
**Usage**
|
2022-04-07 01:30:08 +02:00
|
|
|
|
2022-01-18 21:40:36 +01:00
|
|
|
```sh
|
2022-01-21 20:46:55 +01:00
|
|
|
cd ./tools/fetch-changelog
|
|
|
|
npm install
|
|
|
|
export GITHUB_API_TOKEN=tokenhere # this could go into your .bashrc or .profile etc.
|
|
|
|
node index.js --from=31ebdbb139981a604bd0e8fc1e364916762e11b9 > ../bump-version/changes.md
|
2022-01-18 21:40:36 +01:00
|
|
|
```
|
2022-01-22 12:52:57 +01:00
|
|
|
|
|
|
|
## Bump Version
|
|
|
|
|
|
|
|
Used to update the game's various version identifier.
|
|
|
|
Requires pandoc installed to convert .md to .rst
|
|
|
|
|
|
|
|
**Usage**
|
2022-04-07 01:30:08 +02:00
|
|
|
|
2022-01-22 12:52:57 +01:00
|
|
|
```sh
|
|
|
|
cd ./tools/bump-version
|
|
|
|
npm install
|
|
|
|
node index.js --version=1.10.3 --versionNumber=10 < changes.md
|
|
|
|
```
|