Commit Graph

24 Commits

Author SHA1 Message Date
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
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
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
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
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
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
8496a523c3 Pull ping from minecraft subqueries Fixes #233 2022-02-05 19:38:15 -06:00
Michael Morrison
5c2d15df49 Remove complex players setter overload (3.0.8) 2021-12-09 18:08:36 -06:00
Michael Morrison
052736edd7 Reduced chance of protocol collisions between gamespy3 and minecraftbedrock (2.0.27) 2021-02-12 11:36:51 -06:00
Michael Morrison
4ecce4eff8 Add support for native minecraft bedrock protocol, as some bedrock servers apparently don't respond to gamespy3. Fixes #211 (2.0.26) 2021-02-12 11:07:50 -06:00
mmorrison
1c351fc3a4 Fix minecraft never throwing when server is unresponsive 2019-11-11 03:04:51 -06:00
mmorrison
18be566540 Improve minecraft protocol compatibility 2019-10-15 23:56:33 -05:00
mmorrison
81750805f6 Add support for rFactor (2.0.10) 2019-02-04 01:11:28 -06:00
mmorrison
29ce0b82d0 Additional async rewrite 2019-01-12 04:43:36 -06:00
mmorrison
efe12a00aa More async conversion 2019-01-10 22:20:56 -06:00
mmorrison
484e99b29c Improve logging 2019-01-09 05:50:30 -06:00
mmorrison
a054557f10 Clean up imports to make Intellij code analysis happy 2019-01-06 18:52:03 -06:00
mmorrison
9b9277172d Export all minecraft json in raw object. Use modern minecraftping for all minecraft queries. 2018-11-11 06:12:44 -06:00
Michael Morrison
c82554ad1a Super mega-commit
Organize files
Rewrite readme for new game IDs and command line
Add command line access
Replace some dependencies that required binaries with simpler alternatives
Switch gbxremote back to upstream, Closes #2
Moved simple aliases into an alias file, rather than seperate files for each
Patched nearly every protocol variant with tons of bug fixes
Re-tested every combination of server and protocol types except nadeo
Added alternative minecraft query check (minecraftping)
Fixed mutant factions query
Fixed valve gold not working at all
Stripped colors more reliably from protocols that support colors
Added a couple more fields to ut2004 and killing floor
and more that I probably forgot.

This shouldn't break compatibility too bad -- at the most, some game IDs may have changed.
2014-01-31 16:27:52 -06:00
Michael Morrison
007f1ffb8b Massive revamp for standardization of output 2013-07-12 04:12:02 -05:00
Michael Morrison
a771dab222 Fix issue with minecraft SRV record resolving directly to IP 2013-07-10 09:56:07 -05:00
Michael Morrison
c4f66a72db Resolve SRV records for minecraft servers 2013-07-10 09:52:47 -05:00
Michael Morrison
822fd50fc1 Fix port defaults 2013-07-10 05:40:41 -05:00
Michael Morrison
8552d0674f initial commit 2013-07-10 05:02:48 -05:00