Download issues (above 2GB?)
-
@DanH Ok, my suggestion won't work then because I was thinking you were using expansions. You'll need to do it a little differently and download ch files instead of hr and add the link file manually (through scripting).
-
@d-healey can the user choose the sample location?
-
@DanH Yeah, it's all exactly the same, user chooses the location you download the ch files to there and you create a link file that points to that location.
You can use the File API to create it. Something like this:
local fileName = "Link"; switch (Engine.getOS()) { case "LINUX": fileName += "Linux"; break; case "WIN": fileName += "Windows"; break; case "OSX": fileName += "OSX"; break; } linkFile = linkDir.getChildFile(fileName); FileSystem.browseForDirectory(FileSystem.Samples, function(dir) { linkFile.writeString(dir.toString(0)); });
You'll need to figure out what the
linkDir
is using the FileSystem API, starting from the appData folder (in fact it might be the appData folder, I can't remember). -
user chooses the location you download the ch files
Can the ch files be downloaded in a compressed format? And then uncompressed into the folder of choice? (I mean in a zip file to avoid downloading each ch file one at a time)
You'll need to figure out what the
linkDir
is using the FileSystem API, starting from the appData folder (in fact it might be the appData folder, I can't remember).Do you mean where the link file is stored? Yes it's the appData folder
-
Can the ch files be downloaded in a compressed format? And then uncompressed into the folder of choice?
Not yet, but Christoph has indicated that he will be adding zip uncompression. For now you just have to download the ch files as they are - these are already compressed from wav.
Do you mean where the link file is stored?
Yes
-
-
@DanH You're doing something crazy again, I can feel it.
-
@d-healey It's fine as long as you're here to set me straight....
-
@DanH Why 300 sample maps?
-
@d-healey it's a synth rompler of sorts, but the samples are heavily processed already, and I made a lot of them
-
@d-healey said in Download issues (above 2GB?):
@DanH You're doing something crazy again, I can feel it.
-
@DanH Are you mapping one sample per samplemap?
-
@d-healey 3 octaves of samples per sample map (although plenty have been cut to every other note). The occasional map has one sample spread across the 3 octaves.
-
@DanH Well it doesn't sound too crazy then. Downloading 300 files should work, testing will be fun for you, maybe start with 3 files.
-
@d-healey I'd have to write out each file name into an array would I not?
-
@d-healey Ok a packages question:
Is there a way to create a data file that packages can read and install alongside a pkg?
I want to split a pkg into two files basically, without having to make two .pkg's (if that makes sense)
So the user just runs one .pkg
-
@DanH I've looked into this, and as far I'm aware you must have a separate package for the samples if you want to allow the user to pick a sample install location (unless you write some crazy shell script or make a separate installer app). It's annoying for sure.