Hi everyone,
I'm currently trying to code a Github / Workshop addons synchronisator, using Python (gitlib, requests, json...).
I've already done this posts, in the Lua developer section, but nobody answered me, that's why I'm re-making this post here.
The project : https://github.com/Gabyfle/gSynch (the code may be poor, it's the first time I use Python like this)
I download an addon from a link retrieved with the Steam API (https://api.steampowered.com/ISteamRemoteStorage/GetPublishedFileDetails/v1/).
The links look like this: https://steamusercontent-a.akamaihd.net/ugc/2475178968642069875/41D31DF47D53DC6701E3D18D1D0846864D32C00E/
I can get the addon in question, the only problem is that when extracting with gmad.exe, an error occurs: "There was a problem parsing the file".
So I tried to redo the manipulation from my web browser, and by downloading it and extracting it manually, the same error occurs: "There was a problem parsing the file".
So I tried with an addon in my /addon/ folder of my Garry's mod game. Here, the error does not appear.... Strange, because I'm sure the addon downloads well since I tried the same manipulation with my browser.
I can't find any resources on the Internet that can help me... this is why I'm doing this post.
Could someone kind help me?
Thank you very much in advance,
Gabyfle.
I think workshop files are downloaded in a compressed format. Steam normally decompresses them automatically before handing them off to the game, but since you are downloading them yourself, you may have to decompress them yourself. Check the first 4 bytes in the file. They may give you a clue as to what compression method is used.
Thanks, I'm pretty dump, it was so obvious...
Steam uses LZMA algorithm to compress workshop files
Thanks a lot!
Sorry, you need to Log In to post a reply to this thread.