Step7750 / node-csgo-cdn

Retrieves the Steam CDN Image URLs for CS:GO Items
MIT License
73 stars 19 forks source link

pak01_092.vpk file not exists #23

Closed centrual closed 3 years ago

centrual commented 4 years ago

Hello @Step7750

When i start the app, the app throwing following error:

[csgo-image-cdn] info: Checking for CS:GO file updates
[csgo-image-cdn] info: Already downloaded ./data/pak01_106.vpk
[csgo-image-cdn] info: Already downloaded ./data/pak01_107.vpk
[csgo-image-cdn] info: Already downloaded ./data/pak01_109.vpk
[csgo-image-cdn] info: Already downloaded ./data/pak01_110.vpk
[csgo-image-cdn] info: Already downloaded ./data/pak01_112.vpk
[csgo-image-cdn] info: Already downloaded ./data/pak01_113.vpk
(node:26824) UnhandledPromiseRejectionWarning: Error: ENOENT: no such file or directory, open 'data/pak01_092.vpk'

What is pak01_092.vpk, how can we fix it?

Thank you so much :)

centrual commented 4 years ago

Skin Name: 'The Doctor' Romanov | Sabre I copied pak01_091.vpk file from CSGO directory to data directory and it seems worked well. But i don't know how i can automate it?

centrual commented 4 years ago

Adding characters: 'resource/flash/econ/characters' to neededDirectories is solving the problem.

Also don't forget to add characters: true to defaultConfig

const defaultConfig = {
    directory: 'data',
    updateInterval: 30000,
    stickers: true,
    graffiti: true,
    characters: true,
    musicKits: true,
    cases: true,
    tools: true,
    statusIcons: true,
    logLevel: 'info'
};
const neededDirectories = {
    stickers: 'resource/flash/econ/stickers',
    graffiti: 'resource/flash/econ/stickers/default',
    musicKits: 'resource/flash/econ/music_kits',
    characters: 'resource/flash/econ/characters',
    cases: 'resource/flash/econ/weapon_cases',
    tools: 'resource/flash/econ/tools',
    statusIcons: 'resource/flash/econ/status_icons',
};