https://github.com/database64128/bdsplayerrecord
Bedrock Dedicated Server Player Record management
https://github.com/database64128/bdsplayerrecord
Last synced: 9 months ago
JSON representation
Bedrock Dedicated Server Player Record management
- Host: GitHub
- URL: https://github.com/database64128/bdsplayerrecord
- Owner: database64128
- License: gpl-3.0
- Created: 2019-05-28T15:36:10.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-06-16T15:47:32.000Z (almost 7 years ago)
- Last Synced: 2025-03-16T05:12:58.567Z (about 1 year ago)
- Language: C++
- Homepage:
- Size: 36.1 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Bedrock Dedicated Server Player Record
A simple tool for parsing Bedrock Dedicated Server (BDS) logs and generate records of players.
## Build
At least `C++ 17` is required.
## Usage
### Arguments
`--append-logdb`: Append to LogDB from the logs directory or a log file.
`--clear-logdb`: Flush the LogDB.
`--build-playerdb`: Build the PlayerDB from the LogDB. You should append LogDB first.
`--csv-logdb`: Export LogDB as a CSV file.
`--csv-playerdb $sortBy`: Export PlayerDB as a CSV file.
#### `$sortBy`
* `0`: No sorting
* `1`: sort by gamertag
* `2`: sort by time played
* `3`: sort by play count
* `4`: sort by last online
*Other undocumented arguments are not intended for use.*
### Example
1. Build the LogDB from `test_log.txt`, then build the PlayerDB. Export all data to CSV files. Player records are sorted by time played.
```
$ ./BDSPlayerRecord --clear-logdb
$ ./BDSPlayerRecord --append-logdb test_log.txt
$ ./BDSPlayerRecord --build-playerdb
$ ./BDSPlayerRecord --csv-logdb
$ ./BDSPlayerRecord --csv-playerdb 2
```
## License
Released under the [GNU GPLv3](LICENSE).