Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add Farming Simulator 25 support #660

Merged
merged 1 commit into from
Jan 13, 2025

Conversation

CosminPerRam
Copy link
Member

Closes #658

@jammsen
Copy link
Contributor

jammsen commented Jan 12, 2025

For me this works when i set the token/API-Key from the Settings-Adminpanel ( https://yourhostname.tld:port/settings.html ) inside my options object.

function querySingleServer(server, arrResults) {
  let serverSettings = {
    type: server.type,
    host: server.host,
    port: server.options.query_port,
    debug: false,
    username: server.options.username,
    password: server.options.password,
  };
  if (server.options.username) {
    serverSettings.username = server.options.username;
  }
  if (server.options.password) {
    serverSettings.password = server.options.password;
  }
  if (server.options.token) {
    serverSettings.token = server.options.token;
  }
  if (isDebugMode) {
    console.log(serverSettings);
  }
  let responsePromise = gamedig.query(serverSettings);
...

See https://jammsen.de/ under Gameservers - Look for Farming Sim 25

Can confirm it works, can also confirm, weirdly no documentation about this, which i could find from Giants 😞

Copy link
Contributor

@jammsen jammsen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM and with a bit of fiddeling, successfully tested!

@CosminPerRam CosminPerRam marked this pull request as ready for review January 13, 2025 17:18
@CosminPerRam CosminPerRam force-pushed the feat/farming_simulator_25 branch from 3667fff to 2b22611 Compare January 13, 2025 17:19
@CosminPerRam CosminPerRam merged commit e69af70 into master Jan 13, 2025
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Please Add Support for Farmingsimulator 25
2 participants