Skip to content

fix(game/soulmask): set version from rules if available#772

Merged
CosminPerRam merged 3 commits into
gamedig:masterfrom
podrivo:fix/soulmask-version
May 11, 2026
Merged

fix(game/soulmask): set version from rules if available#772
CosminPerRam merged 3 commits into
gamedig:masterfrom
podrivo:fix/soulmask-version

Conversation

@podrivo
Copy link
Copy Markdown
Contributor

@podrivo podrivo commented Apr 17, 2026

Soulmask reports a hardcoded version (1.0.0.0) in the A2S_INFO response.
To get the real game version, pass requestRules: true — the actual version is read from the NO_s rules key.

Closes #771


Details
node bin/gamedig.js --type soulmask --pretty --requestRules 91.192.93.70:9998
{
  "name": "[LE] Пески Изобилия [Transfer] lpli.ru",
  "map": "DLC_Level01_Main",
  "password": false,
  "raw": {
    "protocol": 17,
    "folder": "Soulmask",
    "game": "Soulmask",
    "appId": 2646460,
    "numbots": 0,
    "listentype": "d",
    "environment": "w",
    "secure": 1,
    "steamid": "90284539758790677",
    "tags": [
      "",
      "CGM_i:0",
      "GREENGAME_s:0",
      "B64_s:FUgIgU/BQAEAAAAAAAEAAAADAgAAADomNQEAAAAAAAAAAKsCAADj8QgA/////wAA8EIAAAAAW2Q="
    ],
    "players": [
      {
        "name": "Арно",
        "score": 0,
        "time": 10052.9931640625
      },
      {
        "name": "Айрис",
        "score": 0,
        "time": 9953.8466796875
      },
      {
        "name": "Норушка",
        "score": 0,
        "time": 6881.40673828125
      },
      {
        "name": "★З-е-К★",
        "score": 0,
        "time": 5525.32275390625
      },
      {
        "name": "xGEHIRNx",
        "score": 0,
        "time": 4080.679443359375
      },
      {
        "name": "AnarHisT",
        "score": 0,
        "time": 3715.076171875
      },
      {
        "name": "Величество",
        "score": 0,
        "time": 2079.48095703125
      },
      {
        "name": "Germes",
        "score": 0,
        "time": 586.884765625
      },
      {
        "name": "БабкаВтапках",
        "score": 0,
        "time": 259.27490234375
      }
    ],
    "rules": {
      "AD_s": "91.192.93.70:9999:9998",
      "CGM_i": "0",
      "Cluster_s": "none",
      "CONMETHOD": "Direct",
      "DISTRICT_i": "0",
      "GameMode_s": "00",
      "GG_s": "20260410",
      "Go_s": "-1",
      "GREENGAME_s": "0",
      "ID_s": "2",
      "MATCHTIMEOUT_f": "120.000000",
      "NO_s": "1.0.3",
      "OFFICIAL_i": "0",
      "OL_s": "91",
      "OWNINGID": "90284539758790677",
      "OWNINGNAME": "[LE] Пески Изобилия [Transfer] lpli.ru",
      "P2PADDR": "90284539758790677",
      "P2PPORT": "9999",
      "pvp_i": "0",
      "Season_i": "0",
      "SEC_s": "586211",
      "SESSIONFLAGS": "683",
      "SU_s": "2DKJ4E1YUVZV3W59Z0SA6DURC",
      "WITHPSW_i": "0"
    },
    "rulesBytes": {
      "type": "Buffer",
      "data": [
        24,
        0,
        65,
        68,
        95,
        115,
        0,
        57,
        49,
        46,
        49,
        57,
        50,
        46,
        57,
        51,
        46,
        55,
        48,
        58,
        57,
        57,
        57,
        57,
        58,
        57,
        57,
        57,
        56,
        0,
        67,
        71,
        77,
        95,
        105,
        0,
        48,
        0,
        67,
        108,
        117,
        115,
        116,
        101,
        114,
        95,
        115,
        0,
        110,
        111,
        110,
        101,
        0,
        67,
        79,
        78,
        77,
        69,
        84,
        72,
        79,
        68,
        0,
        68,
        105,
        114,
        101,
        99,
        116,
        0,
        68,
        73,
        83,
        84,
        82,
        73,
        67,
        84,
        95,
        105,
        0,
        48,
        0,
        71,
        97,
        109,
        101,
        77,
        111,
        100,
        101,
        95,
        115,
        0,
        48,
        48,
        0,
        71,
        71,
        95,
        115,
        0,
        50,
        48,
        50,
        54,
        48,
        52,
        49,
        48,
        0,
        71,
        111,
        95,
        115,
        0,
        45,
        49,
        0,
        71,
        82,
        69,
        69,
        78,
        71,
        65,
        77,
        69,
        95,
        115,
        0,
        48,
        0,
        73,
        68,
        95,
        115,
        0,
        50,
        0,
        77,
        65,
        84,
        67,
        72,
        84,
        73,
        77,
        69,
        79,
        85,
        84,
        95,
        102,
        0,
        49,
        50,
        48,
        46,
        48,
        48,
        48,
        48,
        48,
        48,
        0,
        78,
        79,
        95,
        115,
        0,
        49,
        46,
        48,
        46,
        51,
        0,
        79,
        70,
        70,
        73,
        67,
        73,
        65,
        76,
        95,
        105,
        0,
        48,
        0,
        79,
        76,
        95,
        115,
        0,
        57,
        49,
        0,
        79,
        87,
        78,
        73,
        78,
        71,
        73,
        68,
        0,
        57,
        48,
        50,
        56,
        52,
        53,
        51,
        57,
        55,
        53,
        56,
        55,
        57,
        48,
        54,
        55,
        55,
        0,
        79,
        87,
        78,
        73,
        78,
        71,
        78,
        65,
        77,
        69,
        0,
        91,
        76,
        69,
        93,
        32,
        208,
        159,
        208,
        181,
        209,
        129,
        208,
        186,
        208,
        184,
        32,
        208,
        152,
        208,
        183,
        208,
        190,
        208,
        177,
        208,
        184,
        208,
        187,
        208,
        184,
        209,
        143,
        32,
        91,
        84,
        114,
        97,
        110,
        115,
        102,
        101,
        114,
        93,
        32,
        108,
        112,
        108,
        105,
        46,
        114,
        117,
        0,
        80,
        50,
        80,
        65,
        68,
        68,
        82,
        0,
        57,
        48,
        50,
        56,
        52,
        53,
        51,
        57,
        55,
        53,
        56,
        55,
        57,
        48,
        54,
        55,
        55,
        0,
        80,
        50,
        80,
        80,
        79,
        82,
        84,
        0,
        57,
        57,
        57,
        57,
        0,
        112,
        118,
        112,
        95,
        105,
        0,
        48,
        0,
        83,
        101,
        97,
        115,
        111,
        110,
        95,
        105,
        0,
        48,
        0,
        83,
        69,
        67,
        95,
        115,
        0,
        53,
        56,
        54,
        50,
        49,
        49,
        0,
        83,
        69,
        83,
        83,
        73,
        79,
        78,
        70,
        76,
        65,
        71,
        83,
        0,
        54,
        56,
        51,
        0,
        83,
        85,
        95,
        115,
        0,
        50,
        68,
        75,
        74,
        52,
        69,
        49,
        89,
        85,
        86,
        90,
        86,
        51,
        87,
        53,
        57,
        90,
        48,
        83,
        65,
        54,
        68,
        85,
        82,
        67,
        0,
        87,
        73,
        84,
        72,
        80,
        83,
        87,
        95,
        105,
        0,
        48,
        0
      ]
    }
  },
  "version": "1.0.3",
  "maxplayers": 100,
  "numplayers": 9,
  "players": [
    {
      "name": "Арно",
      "raw": {
        "score": 0,
        "time": 10052.9931640625
      }
    },
    {
      "name": "Айрис",
      "raw": {
        "score": 0,
        "time": 9953.8466796875
      }
    },
    {
      "name": "Норушка",
      "raw": {
        "score": 0,
        "time": 6881.40673828125
      }
    },
    {
      "name": "★З-е-К★",
      "raw": {
        "score": 0,
        "time": 5525.32275390625
      }
    },
    {
      "name": "xGEHIRNx",
      "raw": {
        "score": 0,
        "time": 4080.679443359375
      }
    },
    {
      "name": "AnarHisT",
      "raw": {
        "score": 0,
        "time": 3715.076171875
      }
    },
    {
      "name": "Величество",
      "raw": {
        "score": 0,
        "time": 2079.48095703125
      }
    },
    {
      "name": "Germes",
      "raw": {
        "score": 0,
        "time": 586.884765625
      }
    },
    {
      "name": "БабкаВтапках",
      "raw": {
        "score": 0,
        "time": 259.27490234375
      }
    }
  ],
  "bots": [],
  "queryPort": 9998,
  "connect": "91.192.93.70:9999",
  "ping": 284
}

Copy link
Copy Markdown
Member

@CosminPerRam CosminPerRam left a comment

Choose a reason for hiding this comment

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

Thanks bunch for the fix, could you also add a line in the changelog file?

@CosminPerRam CosminPerRam changed the title Fix: Soulmask version fix(game/soulmask): set version from rules if available and add docs Apr 28, 2026
@CosminPerRam CosminPerRam changed the title fix(game/soulmask): set version from rules if available and add docs fix(game/soulmask): set version from rules if available Apr 28, 2026
@podrivo
Copy link
Copy Markdown
Contributor Author

podrivo commented Apr 28, 2026

Added changelog @CosminPerRam! (:

@CosminPerRam CosminPerRam merged commit 62f915b into gamedig:master May 11, 2026
8 checks passed
@podrivo podrivo deleted the fix/soulmask-version branch May 12, 2026 01:04
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.

bug: Soulmask - Wrong version

2 participants