csfloat / inspect

Source Code that Powers the CSFloat Inspect Link API
https://csgofloat.com
MIT License
392 stars 118 forks source link

Output does not represent full output object. #202

Closed neuralworm closed 6 months ago

neuralworm commented 6 months ago

Inspecting a link outputs a reduced itemInfo object.

OUTPUT:

{
  "iteminfo": {
    "origin": 8,
    "quality": 4,
    "rarity": 4,
    "a": "35508632111",
    "d": "10263262271352742681",
    "paintseed": 542,
    "defindex": 7,
    "paintindex": 1035,
    "stickers": [
      { "stickerId": 6596, "slot": 0 },
      { "stickerId": 6596, "slot": 1 },
      { "stickerId": 6596, "slot": 2 },
      { "stickerId": 6596, "slot": 3 }
    ],
    "floatid": "35508632111",
    "low_rank": 1,
    "high_rank": 1,
    "floatvalue": 0.26339736580848694,
    "s": "76561197969339596",
    "m": "0"
  }
}

EXPECTED FORMAT:

{
    "iteminfo": {
        "accountid": null,
        "itemid": "13874827217",
        "defindex": 7,
        "paintindex": 282,
        "rarity": 5,
        "quality": 4,
        "paintseed": 361,
        "killeaterscoretype": null,
        "killeatervalue": null,
        "customname": null,
        "stickers": [],
        "inventory": 11,
        "origin": 8,
        "questid": null,
        "dropreason": null,
        "musicindex": null,
        "s": "0",
        "a": "13874827217",
        "d": "4649025583329100061",
        "m": "2608048286785948758",
        "floatvalue": 0.22740158438682556,
        "imageurl": "http://media.steampowered.com/apps/730/icons/econ/default_generated/weapon_ak47_cu_ak47_cobra_light_large.7494bfdf4855fd4e6a2dbd983ed0a243c80ef830.png",
        "min": 0.1,
        "max": 0.7,
        "weapon_type": "AK-47",
        "item_name": "Redline",
        "rarity_name": "Classified",
        "quality_name": "Unique",
        "origin_name": "Found in Crate",
        "wear_name": "Field-Tested",
        "full_item_name": "AK-47 | Redline (Field-Tested)"
    }
}

As you can see, it's missing properties like min, max, item_name etc.

menschma1er commented 6 months ago

I guess you are using Docker? Try pulling a newer image instead of latest (see Tags). The latest tag has been updated 10 months ago, hence not containing the new CS2 gamefiles.

This commit from last week contains the changes, however the "latest" docker-image is 10 months old, so try using a newer image-tag.

Or build it yourself containing the changes.

I have not tried it out, just a hint, maybe this fixes it.

Step7750 commented 6 months ago

You need to be using https://github.com/csfloat/inspect/releases/tag/v4.1.6 or higher

neuralworm commented 6 months ago

I guess you are using Docker?

Try pulling a newer image instead of latest (see Tags). The latest tag has been updated 10 months ago, hence not containing the new CS2 gamefiles.

This commit from last week contains the changes, however the "latest" docker-image is 10 months old, so try using a newer image-tag.

Or build it yourself containing the changes.

I have not tried it out, just a hint, maybe this fixes it.

Was not using docker but I did have the wrong version. Thanks.

Step7750 commented 6 months ago

I guess you are using Docker? Try pulling a newer image instead of latest (see Tags). The latest tag has been updated 10 months ago, hence not containing the new CS2 gamefiles. This commit from last week contains the changes, however the "latest" docker-image is 10 months old, so try using a newer image-tag. Or build it yourself containing the changes. I have not tried it out, just a hint, maybe this fixes it.

Was not using docker but I did have the wrong version. Thanks.

You really shouldn't do that, use hermetic builds.