Author Topic: Exchangeable cache.db  (Read 4733 times)

So heres my problem

In my server it takes players up to 2 hours to download sounds and textures, and its ruining my player count


Heres my solution

Provide a download link to my Blockland Cache.db that way players who download it preatty much have what i have and dont have to go through 2 hours of files. A way to do this is make a folder and some archives in that folder indicating certain caches one archive labeled "Original Cache" because you never wanna delete that. A second archive containing the cache from a specific person for there server, and when you want to join, simply interchange them.

This is my idea to solve my problem, do you guys aggree?

Your cache.db wont have everything they need if you and the server have the same add-ons. You'll need somebody to join and then give you theirs. A better solution is cut back on the amount of sounds you have.

Quote
Your cache.db wont have everything they need if you and the server have the same add-ons.
But will it take off most if not some files to load?

Quote
A better solution is cut back on the amount of sounds you have.

This is the reason why i brought this up, i will not be cutting back on anything.

Your own cache won't have anything remotely needed. You'd need the file from a client who joined and took the time to sit through the download.

oh thats easy, i have plenty of friends who downloaded files. Thanks for the help.

Just supply them with the add-ons that are on your server.
If you're worried about add-ons that are private, just give them the models and nothing else, it should still work.
It's fairly easy to strip the models from the Cache.db.

its the sound files that i have that take up so much files, ive also already tried providing a huge pack of all the sounds that i have in blockland, its sound pack so "Sound_CTsounds" but people who downloaded it didnt notice anything in there load

Pretty sure the cache doesn't check files with matching hashes, but rather files with matching paths. I seriously haven't tested extensively, and may definitely be wrong on that, but just try giving the resources in folders that maintain the same structure as the mods that contain the sound files (ex the scripts obv).

Pretty sure the cache doesn't check files with matching hashes, but rather files with matching paths. I seriously haven't tested extensively, and may definitely be wrong on that, but just try giving the resources in folders that maintain the same structure as the mods that contain the sound files (ex the scripts obv).
well ive already tried making a Sound pack that players stick in their addons folder and that didnt work, so if the Cache idea doesn't work, how would i make the "folders containing resources" work?

Pretty sure the cache doesn't check files with matching hashes, but rather files with matching paths. I seriously haven't tested extensively, and may definitely be wrong on that, but just try giving the resources in folders that maintain the same structure as the mods that contain the sound files (ex the scripts obv).

The cache checks files with matching hashes. You can't simply drop a required file in your Blockland folder and have it work when joining the server (you'd need to manually add it to the cache in that case).

The cache checks files with matching hashes. You can't simply drop a required file in your Blockland folder and have it work when joining the server (you'd need to manually add it to the cache in that case).
Right, I just meant when searching to see if it needs to retrieve the file.