Skip to content

bug: Trackmania Nations Forever Query not possible #634

@Hornochs

Description

@Hornochs

Describe the bug
Querying Trackmania Nations Forever is not possible and runs into an error

Steps To Reproduce

const { GameDig } = require('gamedig'); 

GameDig.query({
    type: 'trackmaniaforever',
    host: '10.13.37.7',
    port: '5000',
    login: 'User',
    password: 'User',
    debug: true
}).then((state) => {
    console.log(state);
}).catch((error) => {
    console.log(`Server is offline, error: ${error}`);
});

Expected behavior
Successfull Query

Screenshots or Data
Following is the Debug Log:

Q#0 DNS Lookup: 10.13.37.7
Q#0 Raw IP Address: 10.13.37.7
Q#0 Registered RTT: 87ms
Q#0 Query failed with error Error: XML-RPC fault: Method 'GetCurrentMapInfo' not defined
    at createFault (/home/stephanschaffner/gamedig/node_modules/xmlrpc/lib/deserializer.js:83:21)
    at Deserializer.onDone (/home/stephanschaffner/gamedig/node_modules/xmlrpc/lib/deserializer.js:89:21)
    at SAXStream.emit (node:events:517:28)
    at SAXStream._parser.onend (/home/stephanschaffner/gamedig/node_modules/sax/lib/sax.js:190:10)
    at emit (/home/stephanschaffner/gamedig/node_modules/sax/lib/sax.js:624:35)
    at end (/home/stephanschaffner/gamedig/node_modules/sax/lib/sax.js:667:5)
    at SAXParser.end (/home/stephanschaffner/gamedig/node_modules/sax/lib/sax.js:154:24)
    at SAXStream.end (/home/stephanschaffner/gamedig/node_modules/sax/lib/sax.js:248:18)
    at StringStream.onend (/home/stephanschaffner/gamedig/node_modules/string-to-stream/node_modules/readable-stream/lib/_stream_readable.js:577:10)
    at Object.onceWrapper (node:events:631:28)

Additional context
I'm in the finding if its a GameDig Bug, or a GameServer Bug

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions