Blockland Forums > Suggestions & Requests
Music packaged in ZIP files
Kalphiter:
--- Quote from: Kalphiter on September 11, 2012, 10:53:54 PM ---Can you add a support function that checks if a file is already in the cache?
It's very important for a way to package music files in ZIP-like add-ons. I have a solution to make music packs easily distributed through add-on packaging.
--- End quote ---
The current system:
- Server hosts copy music to Add-Ons/Music to install it
- Clients can't do anything except download music from the server
How it can be reimplemented:
An add-on, perhaps like Music_ThePack.zip, will run like a normal add-on. It includes all the music files in a seperate folder in the ZIP. The server.cs copies all of those files to the game's music folder. The client.cs checks all the files and adds them to the cache as long as they aren't already there.
What problems get solved / things get more convenient:
- Server hosts simply add the add-on to add-ons/ and it's loaded (but not removed when the music pack is deleted)
- Clients simply add the add-on like server hosts and therefore downloading music actually does something
Wheatley:
Is music automatically handled and can't be modified?
If so, the Music_ThePack stuff should have the ability to use a datablock, giving the ability to give the music a custom UI name and audio description, among other things.
Kalphiter:
--- Quote from: Wheatley on September 12, 2012, 08:31:59 PM ---Is music automatically handled and can't be modified?
If so, the Music_ThePack stuff should have the ability to use a datablock, giving the ability to give the music a custom UI name and audio description, among other things.
--- End quote ---
I'm not sure why Badspot never made it possible for packaged music files, as it would be better than my complex method.
Kalphiter:
Bump
Plasmus:
This would be really nice, do want.