As stated in the title, i'm kinda lost there. I don't understand how the game is working in terms of when does it download a file that is considered as missing.
Context : I want to introduce a friend to RPG, so with the RPG@tmrpg titlepack. I put a server online. He'll be streaming and have a relatively bad connection. So i thought it'd be a good idea to download the mods beforehand. I also did that to avoid issues since the files are hosted by someone voluntarily on a server with 100 Mbits bandwidth. Mods are ~200 Mo files, so if several players try to download at the same time, you can imagine the issue.
The problem, that i wasn't able to reproduce a second time but still :
I had the mod locally in Documents/ManiaPlanet/Skins/Stadium/Mod/v3/, that's where it goes when from the TP you download a mod from a modpage. I moved the mods from ProgramData\ManiaPlanet\Cache to somewhere else for testing purpose.
I opened ManiaPlanet, joined the server, it was on Lighthouse map, so mod RPG_IslaDeMuerta_v3.zip. And here is my question : Why did a download got triggered ? I was alone on the server, and when i checked the Cache folder i saw a file with the same size as the mod (224 733 Ko locally) with the name p2p7831.tmp. After that, the strange thing is the file disappeared instead of eventually being renamed with the SHA-384 (edit : sha-256 + 128 bits something) hash as i thought. And i also saw at this moment that a locator file was created in Documents/ManiaPlanet/Skins/Stadium/Mod/v3/ named RPG_IslaDeMuerta_v3.zip.loc.
- Why having a mod locally still generated a download of this mod in Cache ? Was there a bug or something (which would explain why i wasn't able to reproduce it after (yes i closed the game in-between)) ?
- What is the role of the locator there ? Discussing it with Skyslide, he told me for mods specifically it'd be needed if you're creating maps so it's integrated in the .Gbx file. It seems that it has other purpose. Is there a check between url in the locator (if there's one) and the required mod url in the .Gbx file to avoid the download ? Instead of e.g. checking the checksum of the mod available locally with the same name and the file required ?
- Overall, i'd just like to understand the logic there. It seems very strange.