cs2-dumper/README.md

34 lines
1.2 KiB
Markdown
Raw Normal View History

2023-10-14 13:18:52 +08:00
# cs2-dumper
2023-09-08 15:59:09 +08:00
2024-04-16 10:35:31 +08:00
An external Counter-Strike 2 offset/interface dumper for Linux.
2024-03-27 09:47:10 +08:00
2024-05-24 16:14:05 +08:00
**Note:** This branch will likely not be kept up-to-date by myself. Pull requests are welcome!
2024-03-28 20:19:20 +08:00
## Getting Started
2023-10-26 13:41:34 +08:00
2024-03-28 20:19:20 +08:00
You can download the latest release from [Releases](https://github.com/a2x/cs2-dumper/releases) or compile it yourself.
Note that compiling it yourself requires your Rust compiler version to be at least 1.74.0 or newer, and the nightly
toolchain must be installed.
2023-10-26 13:41:34 +08:00
2024-03-28 20:19:20 +08:00
## Usage
2023-10-26 13:41:34 +08:00
2024-03-28 20:19:20 +08:00
1. Ensure the game process is running (Being in the main menu should suffice).
2024-04-16 10:35:31 +08:00
2. Run the `cs2-dumper` executable.
2023-09-08 15:59:09 +08:00
2024-03-28 20:19:20 +08:00
### Available Arguments
2023-09-08 15:59:09 +08:00
2024-04-16 10:32:14 +08:00
- `-f, --file-types <file-types>`: The types of files to generate. Default: `cs`, `hpp`, `json`, `rs`.
2024-03-28 20:19:20 +08:00
- `-i, --indent-size <indent-size>`: The number of spaces to use per indentation level. Default: `4`.
2024-04-18 08:06:03 +08:00
- `-o, --output <output>`: The output directory to write the generated files to. Default: `output`.
2024-04-16 10:32:14 +08:00
- `-v...`: Increase logging verbosity. Can be specified multiple times.
2024-03-28 20:19:20 +08:00
- `-h, --help`: Print help.
- `-V, --version`: Print version.
2023-10-14 13:18:52 +08:00
2024-06-16 15:02:43 +08:00
## Running Tests
To run tests, use the following command: `cargo test -- --nocapture`.
2024-03-28 20:19:20 +08:00
## License
2023-09-08 15:59:09 +08:00
2024-03-28 20:19:20 +08:00
Licensed under the MIT license ([LICENSE](./LICENSE)).