Skip to content

Commit

Permalink
feat: Add support for ARK: Survival Ascended using EOS protocol (#402)
Browse files Browse the repository at this point in the history
* Add epic protocol

* Add support for ARK: Survival Ascended

- Using epic protocol

* Fix online player count

* Final cleanup
  • Loading branch information
guilhermewerner authored Nov 12, 2023
1 parent c49d463 commit a8bc752
Show file tree
Hide file tree
Showing 7 changed files with 280 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
* Added Deno support: the library and CLI can now be experimentally used with the [Deno runtime](https://deno.com)
* `deno run --allow-net --allow-read=. bin/gamedig.js --type tf2 127.0.0.1`
* Added code examples.
* Added Epic Online Services protocol.

#### Games
* Added support by @dgibbs64: Eco (2018), Core Keeper (2022), ARMA: Reforger (2022),
Expand All @@ -39,6 +40,7 @@ San Andreas OpenMP.
a placeholder in the `players` field.
* Fixed wrong field being parsed for `maxplayers` on Doom3.
* Stabilized field `numplayers`.
* Added support by @GuilhermeWerner: ARK: Survival Ascended (2023).

### 4.1.0
* Replace `compressjs` dependency by `seek-bzip` to solve some possible import issues.
Expand Down
1 change: 1 addition & 0 deletions games.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ aoe2|Age of Empires 2 (1999)|ase|port_query=27224
alienarena|Alien Arena (2004)|quake2|port_query=27910
alienswarm|Alien Swarm (2010)|valve|port=27015
arkse|Ark: Survival Evolved (2017)|valve|port=7777,port_query=27015
asa|Ark: Survival Ascended (2023)|asa|port=7777
assettocorsa|Assetto Corsa (2014)|assettocorsa|port=9610
atlas|Atlas (2018)|valve|port=5761,port_query_offset=51800
avorion|Avorion (2020)|valve|port=27000,port_query_offset=20
Expand Down
152 changes: 152 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
"README.md"
],
"dependencies": {
"axios": "^1.6.1",
"cheerio": "^1.0.0-rc.12",
"gbxremote": "^0.2.1",
"got": "^13.0.0",
Expand Down
12 changes: 12 additions & 0 deletions protocols/asa.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import Epic from './epic.js'

export default class asa extends Epic {
constructor () {
super()

// OAuth2 credentials extracted from ARK: Survival Ascended files.
this.clientId = 'xyza7891muomRmynIIHaJB9COBKkwj6n'
this.clientSecret = 'PP5UGxysEieNfSrEicaD1N2Bb3TdXuD7xHYcsdUHZ7s'
this.deploymentId = 'ad9a8feffb3b4b2ca315546f038c3ae2'
}
}
Loading

0 comments on commit a8bc752

Please sign in to comment.