Commit Graph

104 Commits

Author SHA1 Message Date
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 17f91904ab Updated node version to 14.17 from 14 2023-09-15 00:05:06 +03:00
CosminPerRam 544610f085
Replace punycode (#359)
* Replace by package

* Update CHANGELOG
2023-09-14 23:44:57 +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
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 b11eac277d Improve dayz mod parsing with more random reverse engineering guesses 2022-02-05 19:28:48 -06:00
Michael Morrison 5c2d15df49 Remove complex `players` setter overload (3.0.8) 2021-12-09 18:08:36 -06:00
Smith 6354e34d18 handle ambiguity of the setters (players, bots)
* cases where the protocol overwrites the property with a prepared Players instance (eg.: minecraft & gamespy3)
2021-12-09 22:56:24 +01:00
Smith e6db2a9b72 fix undef prop 2021-12-09 22:27:44 +01: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 d65a24dc18 Release 3.0.0 2021-02-25 02:15:53 -06:00
Michael Morrison f70112d092 * Properly handle non-indexed team names in gamespy1 Fixes #213
* Rename raw.steamappid and raw.gameid to raw.appId in steam protocol
* Don't query valve rules by default, unless requestRules option is set Fixes #176
2021-02-25 01:58:35 -06:00
cetteup a362d1d113 Added givenPortOnly user option
Allows user to disable gamedig's default behavior of adding query attempts using the default query port(-offset)
2020-08-24 20:27:44 +02:00
mmorrison 1b47fd2096 Support dnsLookupAsync returning a string for some reason, Fixes #135 2019-10-15 14:32:28 -05:00
mmorrison f0a24b8f65 Use @types/node@8.0.0 to validate (and fix) small node 8 api issues 2019-02-19 21:15:34 -06:00
mmorrison dd5dce21db Improve multi-attempt logging 2019-02-13 22:46:13 -06:00
mmorrison ab6e9064d2 More release dates and readme cleanup 2019-02-07 00:37:33 -06:00
mmorrison 0c19c734b1 Filling out more release dates in the readme 2019-02-06 23:19:32 -06:00
mmorrison a37994e1bf Add Atlas (2018)
Begin filling out dates for games in the list
2019-02-06 06:23:34 -06:00
mmorrison fc5975bf0c Clean up reader.string 2019-02-04 19:58:28 -06:00
mmorrison 2a87360a0e Minor debug logging improvements 2019-01-20 04:21:40 -06:00
mmorrison 05619469b7 Add punycode support (2.0.6) 2019-01-20 03:45:57 -06:00
mmorrison 9619449d77 Added support for Starsiege 2009 Closes #100 (v2.0.2) 2019-01-13 00:02:31 -06:00
mmorrison dd478a7bce Re-gen readme for 2.0 release, and remove notes about Separate Query Port (as it's now less important) 2019-01-12 22:52:06 -06:00
mmorrison dfa5c95efc Remove callback support and global Gamedig.debug option 2019-01-12 22:38:49 -06:00
mmorrison e937c725bb More async 2019-01-12 05:45:09 -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 77b2cc1c7f Initial es6 async conversion work 2019-01-07 00:52:29 -06:00
mmorrison a054557f10 Clean up imports to make Intellij code analysis happy 2019-01-06 18:52:03 -06:00
mmorrison 68ee06ef11 Allow encoding override by parameter (1.0.49) 2019-01-06 17:55:12 -06:00
mmorrison 8b3126e430 Use win1252 character encoding for samp (1.0.48) Fixes #99 2019-01-06 14:10:46 -06:00
mmorrison 0f1deb03da Update readme to remove legacy minecraft notes 2018-11-11 06:21:12 -06:00
mmorrison 37319ea876 Bind to a random udp port (Fixes #71) 2018-01-31 00:43:11 -06:00
mmorrison 4c18b6a3fd Add support for FiveM closes #55 2017-08-10 06:49:42 -05:00
mmorrison c0548fb886 Minor cleanup to satisfy code inspection 2017-08-09 05:41:30 -05:00
mmorrison 3674d384d0 Convert tabs to spaces 2017-08-09 05:32:09 -05:00
mmorrison 69288baebc Upgrade syntax of everything to more modern javascript 2017-08-09 04:05:55 -05:00
mmorrison 7b9fe2161c Add support for promises 2017-03-14 03:40:02 -05:00
Michael Morrison 0fe80d14e7 Add openttd support 2014-11-18 00:43:33 -06:00
Michael Morrison f1467c5a04 crlf -> ln conversion 2014-10-29 02:02:03 -05:00
Michael Morrison a3c3184eb8 crlf -> lf conversion 2014-10-29 01:42:33 -05:00
Michael Morrison 4b911c61cf Update readme 2014-09-13 09:34:18 -05:00
Michael Morrison 141529076d Update DayZ query port offset and add documentation 2014-09-13 08:57:12 -05:00
Michael Morrison bd17fb0001 Add SA:MP support, fixes #3 2014-03-29 09:34:12 -05:00
Michael Morrison 1cafb4eb86 Add warning when connection port is unknown. 2014-02-03 16:38:10 -06:00
Michael Morrison bc6b5c9225 Super epic commit 3
Move everything around
Add another 50 or so games
*** 'port' option should now be CONNECT port, not query port ***
add reference for many missing games
2014-02-03 14:00:51 -06:00
Michael Morrison a6338df070 Made protocols a bit more error resistant 2014-02-02 14:28:31 -06:00
Michael Morrison e857eb1b47 Improve error handling on TCP 2014-02-02 05:32:02 -06:00
Michael Morrison e23aa6cf9c Super epic commit 2
Added pretty much every game ever
Tons of new protocols and game definitions
Cleaned up and discovered some new tricks in gamespy3 and quake2
2014-02-01 17:46:10 -06:00
Michael Morrison add06a7d8f Misc tidying 2014-02-01 09:47:39 -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