Springfiles randomly provides wrong download links

Springfiles randomly provides wrong download links

Discuss your problems with the latest release of the engine here. Problems with games, maps or other utilities belong in their respective forums.

Moderator: Moderators

Locked
raaar
Metal Factions Developer
Posts: 1094
Joined: 20 Feb 2010, 12:17

Springfiles randomly provides wrong download links

Post by raaar »

I just uploaded the latest version of my game to springfiles and something very weird happened.

File uploaded was "metal_factions_v0.95.sdz". After I tried to download, it showed me "metal_factions-v0.95.sdz" instead!
springfiles_wrong_filename.jpg
screenshot
(139.27 KiB) Not downloaded yet
I reuploaded the exact same file, and now it shows up fine when trying to download.

I think this already happened once, where I had uploaded a version and people who downloaded it would not show up as synced on the autohost, even people that auto-downloaded it through springlobby. Then I uploaded a new version following the same naming rules and it worked fine.

Maybe springfiles or some mirror is converting the underscore before the version suffix to a "-", but only sometimes, or some specific mirrors.
abma
Spring Developer
Posts: 3798
Joined: 01 Jun 2009, 00:08

Re: Springfiles randomly provides wrong download links

Post by abma »

the mirroring system normalizes filenames, so on mirrors filenames will be different, when you download from springfiles.com the filename keeps the same when the name doesn't contain special chars / no duplicate filename exists.

its not "randomly", its based on your selection.

maybe also see http://api.springfiles.com/
raaar
Metal Factions Developer
Posts: 1094
Joined: 20 Feb 2010, 12:17

Re: Springfiles randomly provides wrong download links

Post by raaar »

It's bugged!

The file I uploaded has "_", the current download link shows "_" (for me at least, I'm at Portugal). All I had to do was reupload the file.

The link you gave still shows "-" instead!
abma
Spring Developer
Posts: 3798
Joined: 01 Jun 2009, 00:08

Re: Springfiles randomly provides wrong download links

Post by abma »

i repeat: the mirroring system normalizes filenames, this means, you can upload dadasjkdasjasdkl.sd7 to springfiles.com and the file will be renamed to <name read from modinfo.lua>-<version>.type on the mirroring system.

the files downloaded from urls starting with http://springfiles.com/downloadmain/ are not renamed, all files found at http://api.springfiles.com/ are renamed. thats a restriction of the current system.
raaar
Metal Factions Developer
Posts: 1094
Joined: 20 Feb 2010, 12:17

Re: Springfiles randomly provides wrong download links

Post by raaar »

does the lobby auto-download use the api?

If so, doesn't that mean that a person manually downloading the file and a person auto-downloading the same file through lobby will get files with different names?

Can't this cause sync issues (people download stuff through lobby but remain unsynced)? I start my spads autohost after I manually download the file from springfiles.

So I should use <name>-version.sdz instead of <name>_<version>.sdz to ensure consistency?
gajop
Moderator
Posts: 3051
Joined: 05 Aug 2009, 20:42

Re: Springfiles randomly provides wrong download links

Post by gajop »

Different archive names should not cause sync issues, and if they do, that should be considered an engine bug.
What's matters is what's inside archives, not how they're named.
raaar
Metal Factions Developer
Posts: 1094
Joined: 20 Feb 2010, 12:17

Re: Springfiles randomly provides wrong download links

Post by raaar »

this happened again today, with springlobby 0.255

game room uses engine 100.0

https://github.com/springlobby/springlobby/issues/744
abma
Spring Developer
Posts: 3798
Joined: 01 Jun 2009, 00:08

Re: Springfiles randomly provides wrong download links

Post by abma »

quote myself:
abma wrote:i repeat: the mirroring system normalizes filenames, this means, you can upload dadasjkdasjasdkl.sd7 to springfiles.com and the file will be renamed to <name read from modinfo.lua>-<version>.type on the mirroring system.

the files downloaded from urls starting with http://springfiles.com/downloadmain/ are not renamed, all files found at http://api.springfiles.com/ are renamed. thats a restriction of the current system.

also this thread is about wrong a filename and not about not synced: locked this thread.
Locked

Return to “Help & Bugs”