#file download help
1 messages · Page 1 of 1 (latest)
Here is an AI assisted attempt to answer your question 🤖. Maybe it helps! In any case, a human is on the way 👍. To continue talking to the AI, you can use </chatgpt:1108714622413963314>.
The main difference between files downloaded from GitHub and those from other hosts often comes down to how the files are served or packaged. GitHub typically offers raw file downloads directly, preserving line endings and file encoding exactly as in the repository, which mod loaders or Java programs rely on.
Other hosts might:
- Serve files with different encodings, altering how bytes are read.
- Compress files in archives or add metadata that changes the file’s binary structure.
- Use HTTP headers that cause browsers to alter downloaded files (e.g., converting line endings or adding extra characters).
When your mod can "find" files from GitHub but not from other hosts, it’s usually because the file content or format is altered, causing the mod’s file detection or parsing logic to fail.
Check these points:
- Confirm the file’s encoding and line endings remain consistent.
- Make sure you are downloading the “raw” version rather than an HTML page or a zipped archive.
- Verify the file’s hash or checksum after download to ensure integrity.
Useful links:
so I have been hosting files for a project on gh which are downloaded on start
but when I "switch" to my server somehow they are downloaded by not "found"
this is my banger serverside code https://github.com/xItsSunny/quickcapes-api
and this is the mod side stuff
thats a bit too much to just throw at us without any guidance
please dont hate
please elaborate on the error
oki
sec
so basically I have everything downloaded:
[13:17:15] [pool-2-thread-3/INFO]: [com.quickcapes.utils.Downloader:lambda$null$1:52]: [QuickCapes] Downloading http://localhost:3000/files/quickcapes/textures/capes/minecon_2011.png.json
[13:17:15] [pool-2-thread-8/INFO]: [com.quickcapes.utils.Downloader:lambda$null$1:52]: [QuickCapes] Downloading http://localhost:3000/files/quickcapes/textures/capes/minecon_2012.png
[13:17:15] [pool-2-thread-1/INFO]: [com.quickcapes.utils.Downloader:downloadFile:194]: [QuickCapes] New file: mcchampionship.png.json
but then I have stuff like this later on:
[13:17:28] [Client thread/INFO]: [com.quickcapes.cape.CapeTextureManager:getCapeTexture:36]: [QuickCapes] Cape texture not found on disk: C:\Users\Lukas\AppData\Roaming.own\Launcher\client\quickcapes\textures\capes\minecon_2016.png
[13:17:28] [Client thread/INFO]: [com.quickcapes.cape.CapeTextureManager:getCapeTexture:36]: [QuickCapes] Cape texture not found on disk: C:\Users\Lukas\AppData\Roaming.own\Launcher\client\quickcapes\textures\capes\minecon_2016.png
even tho the logs say the files are there (and they are actually there)