Commit graph

213 commits

Author SHA1 Message Date
Rephot
181a1b7644
Update beammp.js (#558)
Use resolved IP in case of hostname entered since serverinfo only returns IP
2024-03-28 03:01:15 +02:00
Daniel Gibbs
b0af081d36
fix(beammp): correct maxplayers that was displaying player count (#551) (#551) 2024-02-26 17:26:24 +02:00
CosminPerRam
67e86d3fe8 chore: reorganize some setters in assetocorsa 2024-02-25 19:48:45 +02:00
Pedro Ivo Hudson
a7c3b5474c
feat: Add version as a top level field (#532)
* add top level version on existing entries

* start adding version on new protocols WIP

* add version to more games

* more games with version

* add more games

* more version

* even more games with version

* add 'delete state.raw.version'

* fix delete version

* Update CHANGELOG.md

* add version in Results.js

* more games

* add new game

* more games

* add version on README

* add new game

* other game

* new game

* add unreal2 version

* add ventrilo version

* add eldewrito eldewrito

* add beammp version

* fix starmade version

* add new version in samp protocol

* docs: tweak the changelog line a bit

---------

Co-authored-by: CosminPerRam <cosmin.p@live.com>
2024-02-24 20:46:40 +02:00
CosminPerRam
fb6a5a1c7a perf: remove some if statements in gamespy 2 2024-02-24 18:59:17 +02:00
CosminPerRam
6b85c6bc0b
perf: revise core class and make it cleaner (#548)
* feat: rework core protocol a bit

* feat: transform some strings to literals

* feat: check if a param is a promise with instanceof

* fix: shortest RTT not registering properly

* feat: use another optional chaining

* fix: grammatic error in comment

* docs: add CHANGELOG line

* fix: move a start time indicator closer to the source
2024-02-24 18:26:48 +02:00
Focus
6bfc3426e7
fix: Added c query requests for gtasao (open.mp) (#547)
* Added full OMP support

* Added a new protocol for OMP which extends SAMP

* Edited the changelog
2024-02-22 22:57:41 +02:00
Pedro Ivo Hudson
cf0144683d
fix: TeamSpeak2 server name (#544)
* fix teamspeak2 server name

* Update CHANGELOG.md
2024-02-15 18:29:31 +02:00
Pedro Ivo Hudson
e047f9fb2a
fix: Assetto Corsa numplayers (#538)
* fix Assetto Corsa numplayers

* Update CHANGELOG.md
2024-02-10 18:21:29 +02:00
Vito0912
3a17184862
feat: Add Farming Simulator 22/19 (#531)
* Added token paramter

* Added Farming Simulator 2022

* Fixed order

* Undo debug line

* Update Farming Simulator 22 support (By @Vito0912 #531)

* Added Farming Simulator 2019 support

* Revert change

* Update release year for Farming Simulator 2019

* Update mods array to raw.mods in farmingsimulator.js

* Update Farming Simulator naming in GAMES_LIST.md

* Missed some names

* Add server version to state.raw and eslint
2024-02-05 17:29:01 +02:00
CosminPerRam
ce9a1b0fec feat: simplify factorio protocol cod a bit 2024-01-31 23:45:44 +02:00
Vito0912
2338b82307
feat: Add Factorio support (#527)
* Update eco protocol to include player names and fixed problems when using eco webinterface behind a proxy

* changelog + readability

* Typo

* Typo

* Added Factorio

* wrong comment

* CHANGELOG
2024-01-31 23:38:17 +02:00
Vito0912
b2de68f551
fix: Updated the eco protocol to include player names and fix problems encountered when using the eco web interface behind a proxy. (#526)
* Update eco protocol to include player names and fixed problems when using eco webinterface behind a proxy

* changelog + readability

* Typo

* Typo
2024-01-31 20:29:02 +02:00
Sebastian Schmidt
46db10fcc7
: Incorrect numplayers on Palworld (#508)
* Fix: Palworld results - Name of the server is empty

* #497 - refactor of feedback

* #497 - refactor of feedback from Cosmin

* Fix for current-players bug - #491 and #507

* Fix for current-players bug - #491 and #507 - added changelog
2024-01-24 15:18:05 +02:00
Sebastian Schmidt
67e0cd8809
Fix: Palworld results - Name of the server is empty (#497)
* Fix: Palworld results - Name of the server is empty

* #497 - refactor of feedback

* #497 - refactor of feedback from Cosmin
2024-01-21 23:16:56 +02:00
Guilherme Werner
7f373212bb
feat: add support for The Isle Evrima (#501)
* Add support for The Isle Evrima

* Move specific attributes to game protocol

* Update changelog and fix gid

* Keep attributes in eos protocol
2024-01-21 23:15:09 +02:00
Jonathan Lambert
96e2054a04
feat: add support for Palworld (#495)
* Added Palworld

* Tidy up

* Improve variable wording for Epic auth
2024-01-21 00:36:05 +02:00
CosminPerRam
ec708d7219
feat: add query port to the results (#476) 2024-01-17 00:20:56 +02:00
CosminPerRam
5ae12dd494
feat: strip Colors (#469) 2024-01-16 01:39:07 +02:00
Pedro Ivo Hudson
c81037040b
fix: valve raw.players being deleted (#463) 2024-01-14 23:18:04 +02:00
Pedro Ivo Hudson
0b8ebc871f
feat: Add valve requestRulesRequired & requestPlayersRequired (#458)
* feat: add valve requestRulesRequired

* missing delete requestRulesRequired

* feat: add valve requestPlayersRequired

* update documentation

* update games list
2024-01-11 22:58:50 +02:00
CosminPerRam
184e9b170c
fix(valve): dont skip players with no name (#449)
* fix: dont skip players with no name

* feat: dont delete raw.players

* chore: update changelog
2024-01-11 02:21:16 +02:00
Pedro Ivo Hudson
09e4281edb
feat: add more data for dayz state (#450) 2024-01-07 23:04:16 +02:00
CosminPerRam
90b3c6044b
chore: extract dayz from valve (#448) 2024-01-02 17:45:44 +02:00
CosminPerRam
6bfbc883be
feat: add BeamMP support (#447)
* feat: add beammp support

* fix: cleanup server name of escape codes

* chore: add a new line for better readability
2023-12-30 22:41:56 +02:00
CosminPerRam
90e26bb442 fix: remove another instance of adding empty player objects valve
Related: #389
2023-12-25 22:31:48 +02:00
Tom
dcc69a36b2
minecraft: Split vanilla string by bytes instead of characters (#436)
The received string length from server is expected to be a byte length
whereas if we parse to string first javascript will treat our length as
a character length (accounts for UTF multi-byte characters).

This should hopefully fix #434
2023-12-17 01:13:08 +01:00
CosminPerRam
89515cb677
feat: backport 4.3.0 changes into master (#432)
* chore: backport all 4.3.0 changes

* docs: remove changelog line that does not apply
2023-12-03 17:52:17 +02:00
Guilherme Werner
2fb9f507e2
fix: ARK: Survival Ascended numplayers (#405) 2023-11-15 01:45:11 +02:00
CosminPerRam
c56a057f44 chore: Remove the behaviour of adding empty player instances on epic if N mismatch 2023-11-13 00:05:18 +02:00
CosminPerRam
371fad3eab
feat: remove axios from dependencies (#403)
* feat: remove axios usage

* fix: remove unused import

* docs: add comment on why we use usedTcp = true
2023-11-12 17:30:16 +02:00
CosminPerRam
cee42e7a88
chore: Convert all files to LF endings (#400)
* Convert to LF?

* Modify gitattributes

* Force LF

* Git --renormalize

* Update .gitattributes to enforce eol=lf

* Redo CRLF -> LF on remaining files
2023-11-12 13:14:43 +02:00
Guilherme Werner
a8bc7521f6
feat: Add support for ARK: Survival Ascended using EOS protocol (#402)
* Add epic protocol

* Add support for ARK: Survival Ascended

- Using epic protocol

* Fix online player count

* Final cleanup
2023-11-12 11:38:59 +02:00
CosminPerRam
da7a4a6334
Remove Players::setNum and stabilize field numplayers (#389)
* Remove Players Set Num

* Stabilize numplayers on armagetron

* Stabilize numplayers on ase

* Stabilize numplayers on assettocorsa

* Optimize away a variable declaration

* Stabilize numplayers on buildandshoot

* Stabilize numplayers on cs2d

* Fix wrong raw field parsed on Doom3

* Updated CHANGELOG and README regarding doom3 fix and numplayers

* Stabilize numplayers on doom3

* Stabilize numplayers on eco

* Stabilize numplayers on ffow

* Stabilize numplayers on quake2

* Stabilize numplayers on gamespy1

* Stabilize numplayers on gamespy2

* Stabilize numplayers on gamespy3

* Remove reductant numplayers setter in jc2mp

* Stabilize numplayers on kspdmp

* Stabilize numplayers on mafia2mp

* Stabilize numplayers on minecraftvanilla and remove players empty placeholders

* Stabilize numplayers on nadeo

* Stabilize numplayers on samp and reduce unused setters

* Stabilize numplayers on terraria

* Stabilize numplayers on tribes1

* Stabilize numplayers on unreal2

* Stabilize numplayers on valve

* Stabilize numplayers on ventrilo

* Battlefield: Set numplayers from info, not players

* Stabilize numplayers on minecraft

* Stabilize numplayers on teamspeak2

* Stabilize numplayers on teamspeak3

* Update CHANGELOG.md to add removal of players placeholders

* Replaced minecraft gamespy numplayers
2023-10-27 19:48:56 +03:00
CosminPerRam
5c4a7327b0 Remove dynamic import of got 2023-10-14 19:34:44 +03:00
Tom
01794f6339
Add support for running using deno (#362)
* Add missing CRLF line ending

* Add support for running using deno

Prefix node imports with "node:" and gate a socket API that is not
implemented in [deno](https://deno.land) so that the library can be used
there. This should not break node and doesn't in my brief testing.
2023-10-10 12:25:57 +03:00
CosminPerRam
93a9095d99
Add eslint (#364)
* Add initial prettier and eslint configs

* Modify prettierrc

* Run eslint on everything

* Actually remove prettier

* Fix some eslints

* Remove label in gs2

* Update CHANGELOG

* Update eslintrc to specify es2021
2023-09-19 19:52:35 +03:00
CosminPerRam
bff9507189 Replace use of deprecated internal debugLog with logger.debug 2023-09-18 10:48:24 +03:00
CosminPerRam
1907b53c4c Fix CS2D flag missuse 2023-09-18 00:07:46 +03:00
Ernest Paśnik
c8e851d6b2
Update CS2D (#354)
* Update cs2d.js

* Rename to CS2D

* Update GAMES_LIST.md

* Update cs2d.js
2023-09-18 00:01:55 +03:00
CosminPerRam
328d518d5b
Add Eco (2018) support. (#363)
* Add initial working eco query

* Add default port and add the game to games.txt

* Add to changelog

* Fix request Info object and add to raw the object

* Rearrange some code to be more readable
2023-09-17 13:01:39 +03:00
CosminPerRam
ad9adff06c
Move to ES6 module (#357)
* Redo imports and exports for lib

* Redo imports and exports for bim

* Redo imports and exports for games

* Remove remaining module.exports

* Use export default in lib

* Use export default in protocols

* Fix import in genreadme.js

* Make package module and solve __dirname

* Fix minecraft protocol imports

* Fix imports on games and make binary runnable

* Renamed protocol class exports to lowercase

* Export promises class as default

* Update README.md to use imports instead of require

* Update CHANGELOG to mention the changes.

* Remove Valve unused imports

* Fix iconv import
2023-09-14 23:28:31 +03:00
CosminPerRam
5b01e1be17
Replace deprecated substr with substring (#355)
* Make the QueryRunner more readable

* Remove use of deprecated substr and replace with substring, and some formatting
2023-09-13 17:31:58 +03:00
CosminPerRam
ca7f56c996
deps: Replace compressjs by seek-bzip (#349)
* Replace compressjs by seek-bzip

* Update CHANGELOG
2023-09-09 11:33:02 +03:00
CosminPerRam
da7d3eebd3
fix: Solve GS1 non-name key values being badly parsed (#342)
* Add initial fix

* fix: properly parse or not number values

* fix: Dont parse empty strings and add todo! comments
2023-08-16 00:44:32 +03:00
Michael Morrison
57a6a2fadd
Merge pull request #307 from cetteup/feature/dns-ip-family
Allow direct control of IP family to be returned by DNS lookup
2023-01-10 13:38:20 -06:00
Adam Spurgeon
97fd450c5c Fixed Minecraft resolver only reporting 0 ping. #310
Minecraft resolver now uses registerRtt rather than setting state.ping.
This prevents the ping value being overwritten with 0 as shortestRTT is
never set.
2023-01-10 01:03:27 +13:00
cetteup
3c38fe48fe feat: Allow direct control of IP family to be returned by DNS lookup
implements #306
2022-12-13 10:46:43 +01:00
Michael Morrison
b191d895f5
Merge pull request #296 from nickdnk/master
Use enum for all AppIds
2022-07-19 17:05:55 -05:00
Michael Morrison
aba57880f1
Merge pull request #293 from c43721/chore/remove-moment-as-dep
chore(deps): remove moment
2022-07-19 17:04:51 -05:00