feat: replace cheerio and update build-and-shoot (#683)

* Implement fast-xml-parser replacing cheerio for farmingsim

* Add extra player raw fields

* Update buildandshoot for server 0.75 which uses json.

* Remove cheerio

* Add changelog entry

* Add notes for build and shoot query server

* Update CHANGELOG.md

* Update package.json to fix version

* Update buildandshoot.js

* update lock

* Add specific key and value to bas config in note

* Add spacing for import

* Run eslint on bas protocol

* Use includes for check. Add doc notes to games.js

* Updates GAMES_LIST.md

* fix: support stable and master

* attempt to manually fix conflict

* fix players

* fix fx

* Update CHANGELOG.md

---------

Co-authored-by: CosminPerRam <cosmin.p@live.com>
This commit is contained in:
James Causon 2025-04-25 21:57:04 +01:00 committed by GitHub
parent 58f045dd36
commit 47c9182bed
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 129 additions and 404 deletions

View file

@ -17,7 +17,7 @@
| americasarmy3 | America's Army 3 | [Valve Protocol](#valve) |
| aoc | Age of Chivalry | [Valve Protocol](#valve) |
| aoe2 | Age of Empires 2 | |
| aosc | Ace of Spades Classic | |
| aosc | Ace of Spades Classic | [Notes](#aosc-buildandshoot) |
| arma2 | ARMA 2 | [Valve Protocol](#valve) |
| arma3 | ARMA 3 | [Valve Protocol](#valve) |
| armagetronadvanced | Armagetron Advanced | |
@ -34,7 +34,7 @@
| baldursgate | Baldur's Gate | |
| ballisticoverkill | Ballistic Overkill | [Valve Protocol](#valve) |
| barotrauma | Barotrauma | [Valve Protocol](#valve) |
| bas | Build and Shoot | |
| bas | Build and Shoot | [Notes](#aosc-buildandshoot) |
| basedefense | Base Defense | [Valve Protocol](#valve) |
| battalion1944 | Battalion 1944 | [Valve Protocol](#valve) |
| battlefield1942 | Battlefield 1942 | |
@ -544,3 +544,6 @@ Requires the `sv_exposePlayerIdentifiersInHttpEndpoint` convar to be `1` for the
### <a name="cs2"></a>Counter-Strike 2
Does not provide players names, using a plugin like this [one](https://github.com/Source2ZE/ServerListPlayersFix) makes the query to return them.
### <a name="aosc-buildandshoot"></a>Ace of Spades / Build and Shoot
Requires usage of the status query server enabled in the config.txt. `status_server.enabled` to `true`