Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/razish/bsputil-go
https://github.com/razish/bsputil-go
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/razish/bsputil-go
- Owner: Razish
- License: mit
- Created: 2024-02-25T06:04:56.000Z (11 months ago)
- Default Branch: master
- Last Pushed: 2024-03-01T05:58:23.000Z (11 months ago)
- Last Synced: 2024-10-16T04:08:20.780Z (3 months ago)
- Language: Go
- Size: 7.81 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# bsputil
just a toy project to parse lumps from an RBSP file and emit linewise-JSON of lump objects.
![Go](https://github.com/Razish/bsputil/actions/workflows/build.yml/badge.svg)
## Supported games/formats
- RBSP version 1 (Jedi Academy, Jedi Outcast)
## Supported lumps
- `ents`, `entities` for the entitystring
- `shaders` for the shaders## usage
```console
$ bsputil /path/to/my/map.bsp entities | jq -r '.classname + " @ " + .origin // "N/A"'
target_position @ -1984 1280 1152
ammo_powercell @ 1536 64 -688
ammo_blaster @ 1536 0 -688
ammo_thermal @ 1536 -64 -688
weapon_trip_mine @ 2208 -1088 16
# [...]
```