csfloat / inspect

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

Errors in fetching game files at start-up #182

Closed gaelsuv closed 6 months ago

gaelsuv commented 1 year ago

As for the title, logs at start-up are showing errors for all the three files that were properly fetched up to a few days ago:

error: Failed to fetch csgo_english.txt
error: Failed to fetch items_game_cdn.txt
error: Failed to fetch items_game.txt

I'm on a local node installation (no docker), with steam-user 4.29.0.

Please note the inspect service is working fine, I am just concerned that the lack of those updated files may have long-term impacts.

Thanks.

Lurow commented 1 year ago

the consequence is that additional info like sticker names, wear names etc. cant be resolved anymore. Seems like the path for the raw data moved in:

https://github.com/csfloat/inspect/blob/master/lib/game_data.js

-> e.g. https://raw.githubusercontent.com/SteamDatabase/GameTracking-CSGO/master/csgo/resource/csgo_english.txt is now https://raw.githubusercontent.com/SteamDatabase/GameTracking-CSGO/master/game/csgo/resource/csgo_english.txt and so on...

did not have the time yet to figure out where the other files moved.

tima1906 commented 1 year ago

@Step7750 will you fix it?

OlegBarspinov commented 1 year ago

Temporary solution until the release of new skins:


this.items_game_url = 'https://raw.githubusercontent.com/SteamDatabase/GameTracking-CSGO/e63fc7fdb8dfb4f1873f0db214c0cc16613d5beb/csgo/scripts/items/items_game.txt';
this.items_game_cdn_url = 'https://raw.githubusercontent.com/SteamDatabase/GameTracking-CSGO/e63fc7fdb8dfb4f1873f0db214c0cc16613d5beb/csgo/scripts/items/items_game_cdn.txt';
this.csgo_english_url = 'https://raw.githubusercontent.com/SteamDatabase/GameTracking-CSGO/master/game/csgo/resource/csgo_english.txt';
this.schema_url = 'https://raw.githubusercontent.com/SteamDatabase/SteamTracking/b5cba7a22ab899d6d423380cff21cec707b7c947/ItemSchema/CounterStrikeGlobalOffensive.json';
gaelsuv commented 1 year ago

Temporary solution until the release of new skins:

this.items_game_url = 'https://raw.githubusercontent.com/SteamDatabase/GameTracking-CSGO/e63fc7fdb8dfb4f1873f0db214c0cc16613d5beb/csgo/scripts/items/items_game.txt';
this.items_game_cdn_url = 'https://raw.githubusercontent.com/SteamDatabase/GameTracking-CSGO/e63fc7fdb8dfb4f1873f0db214c0cc16613d5beb/csgo/scripts/items/items_game_cdn.txt';
this.csgo_english_url = 'https://raw.githubusercontent.com/SteamDatabase/GameTracking-CSGO/master/game/csgo/resource/csgo_english.txt';
this.schema_url = 'https://raw.githubusercontent.com/SteamDatabase/SteamTracking/b5cba7a22ab899d6d423380cff21cec707b7c947/ItemSchema/CounterStrikeGlobalOffensive.json';

Where exactly I have to apply the change (not yet a node.js user)? Thanks.

OlegBarspinov commented 1 year ago

Temporary solution until the release of new skins:

this.items_game_url = 'https://raw.githubusercontent.com/SteamDatabase/GameTracking-CSGO/e63fc7fdb8dfb4f1873f0db214c0cc16613d5beb/csgo/scripts/items/items_game.txt';
this.items_game_cdn_url = 'https://raw.githubusercontent.com/SteamDatabase/GameTracking-CSGO/e63fc7fdb8dfb4f1873f0db214c0cc16613d5beb/csgo/scripts/items/items_game_cdn.txt';
this.csgo_english_url = 'https://raw.githubusercontent.com/SteamDatabase/GameTracking-CSGO/master/game/csgo/resource/csgo_english.txt';
this.schema_url = 'https://raw.githubusercontent.com/SteamDatabase/SteamTracking/b5cba7a22ab899d6d423380cff21cec707b7c947/ItemSchema/CounterStrikeGlobalOffensive.json';

Where exactly I have to apply the change (not yet a node.js user)? Thanks.

https://github.com/csfloat/inspect/blob/master/lib/game_data.js

say1j commented 12 months ago

New proto can be taken from here https://github.com/SteamDatabase/GameTracking-CS2/tree/master

ludvigbartholdsson commented 11 months ago

Hi, have anyone found a reliable way to configure this - meaning not to rely on old CS:GO protos?

Citrinate commented 11 months ago

items_game.txt, items_game_cdn.txt, and csgo_english.txt have been moved to /game/csgo/pak01

The SteamDatabase tracker doesn't track vpk files or their contents. I've set up a repository for tracking just these 3 files here, though it doesn't currently update automatically.

this.items_game_url = 'https://raw.githubusercontent.com/Citrinate/CS2-ItemFileTracking/main/items_game.txt';
this.items_game_cdn_url = 'https://raw.githubusercontent.com/Citrinate/CS2-ItemFileTracking/main/items_game_cdn.txt';
this.csgo_english_url = 'https://raw.githubusercontent.com/Citrinate/CS2-ItemFileTracking/main/csgo_english.txt';
Step7750 commented 11 months ago

@Step7750 will you fix it?

Feel free to point it to a GitHub resource that auto-updates with CS2 and send a PR.

Step7750 commented 6 months ago

Fixed in https://github.com/csfloat/inspect/releases/tag/v4.1.6