EnriqCG / rcon-srcds

A zero-dependency Typescript library for the Source/Minecraft RCON Protocol
https://www.npmjs.com/package/rcon-srcds
MIT License
61 stars 20 forks source link

Doesn't work for chiv server #17

Closed avi312singh closed 3 years ago

avi312singh commented 3 years ago

I am running a dedicated chiv server but cannot seem to use this to authenticate into the server. Here is the server ip: 79.98.25.135 Time out error: image Otherwise there is documentation here about the rcon protocol that should be working but not sure how to make a request to access this information using a standard fetch or axios request.. Made a SO post: https://stackoverflow.com/questions/68008587/steam-api-fetch-steam-ids-using-player-names

c43721 commented 3 years ago

Hi,

This package is used for games which impliment the Source Dedicated Server Rcon Protocol only, this package would not work for your needs.

Also, you cannot make a standard FETCH request to a game server, since game servers run on UDP/TCP packets. You will need to find another package with can accept their different Rcon protocol and message types. You can find how we did it in https://github.com/EnriqCG/rcon-srcds/blob/master/src/rcon.ts

This package, alongside srcds-rcon, both can only communicate with the Valve Rcon protocol. That would be why you're probably seeing this error.

avi312singh commented 3 years ago

Thanks for letting me know - so this package won't suit me? Should I try adapting this package to match the docs I sent earlier on their confluence pagee... or shduld iI try and find a npm nodule that works with chiv?

c43721 commented 3 years ago

It's hard to say which one would suit best. Try to look into it a bit, it's not hard to understand but it definitely isn't trivial.

I don't see packages either straight away that work with Chiv.

avi312singh commented 3 years ago

You know of any other way to get steam IDs from a dedicated (chiv) server ? That's all I'm trying to do haha

c43721 commented 3 years ago

No idea, I only know the rcon protocol.

avi312singh commented 3 years ago

I will try and look into extending this package for chivalry's custom rcon protocol implementation - thanks