Commit Graph

191 Commits

Author SHA1 Message Date
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
Michael Morrison 86009a623f
Update openttd.js
Fix typo in moment removal
2022-07-19 17:04:26 -05:00
Nicolai Cornelis b85c784d95 Use enum for all AppIds 2022-07-20 00:02:33 +02:00
Nicolai Cornelis 40cc94d99c Use enum for app id 2022-07-19 23:53:53 +02:00
Nicolai Cornelis bba9445ec2 Fix wrong filter for "Max Players" for CSGO 2022-07-19 22:41:04 +02:00
c43721 d18176fa71 fix: the day has come 2022-07-12 01:31:59 +00:00
c43721 3e5a8ae54d chore(deps): remove moment for date-fns 2022-07-09 18:06:01 +00:00
Michael Morrison 84f8601b6d Prefer bedrock strings, since Geyser's gamespy implementation has invalid character encoding Fixes #269 2022-04-17 20:33:46 -05:00
Michael Morrison 07c7eca262 4.0.2 Fix counter strike 1.5 2022-02-19 06:23:21 -06:00
Michael Morrison 343e23c4ad 4.0.1 Fix maxplayers >255 in rust 2022-02-17 10:54:08 -06:00
Michael Morrison c7a669ce6b Update `got`, which now requires node 14 2022-02-05 20:10:14 -06:00
Michael Morrison 8496a523c3 Pull ping from minecraft subqueries Fixes #233 2022-02-05 19:38:15 -06:00
Michael Morrison b11eac277d Improve dayz mod parsing with more random reverse engineering guesses 2022-02-05 19:28:48 -06:00
Michael Morrison 685a955233
Merge pull request #236 from podrivo/dayz-updates
Parse additional dayz tags: first person, dlc enabled and time
2022-02-05 19:28:30 -06:00
Michael Morrison 91d4db40e0
Merge pull request #238 from cetteup/master
Fix teamOffByOne condition for Battlefield 1942
2022-02-05 19:25:09 -06:00
Michael Morrison 5c2d15df49 Remove complex `players` setter overload (3.0.8) 2021-12-09 18:08:36 -06:00
cetteup c331eac5bb Fix teamOffByOne condition for Battlefield 1942 2021-08-04 19:52:32 +02:00
Pedro Ivo Hudson f3d97b6ca1 Parse additional dayz tags: first person, dlc enabled and time 2021-07-21 19:35:48 -03:00
Michael Morrison a8b7cad002 Fix corrupted dayzMods when packet overflow is used (3.0.7) 2021-07-09 02:23:36 -05:00
Michael Morrison 1d9cf90259 Parse dayz mods, queue length, and time acceleration (3.0.6) Fixes #232 Fixes #234 2021-07-08 21:51:34 -05:00
Michael Morrison ce4e728493 Add support for udp bind port override (3.0.5) Fixes #149 2021-05-18 23:13:18 -05:00
Michael Morrison fe124a4487 Bring discord protocol up to date with gamedig 3.0 2021-05-18 22:33:36 -05:00
Michael Morrison 576062e88b Merge remote-tracking branch 'origin/master' into proto-discord
# Conflicts:
#	README.md
#	bin/gamedig.js
2021-05-18 22:08:37 -05:00