Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
Warning - If the Drive letter is ever changed (ie: if your game references anything from D:/ etc) coppercube does not update the new path automatically. This leads to the game breaking - as none of the required assets can be called dynamically. Due to a hardware update (which included a drive letter change), none of my coppercube files work properly any more. If I change the drive letter back (as a workaround), my windows system will not run properly as I've included the new D drive as part of my system drive. I assumed it would just be a case of copying all my Coppercube files from the old drive to the new one - I didn;t think that Coppercube would be dependant on a specific Drive Path. How can I update my Coppercube to reflect the new Drive letter change please? ~Will I have to manually re-point every asset call to the new location in all of my Coppercube files? Thanks. |
||||
|
I suppose (if windows will allow a new partition) I can create a new partition just for Coppercube assets - then re-letter it back to what it was before. |
||||
|
Whoohoo! Can confirm - creating a new partition, re-lettering it and then re-creating the old paths worked like a charm. It worked! Everything is restored. :) |
||||
|
Or when creating games, instead of giving full path, you can simply give the directory path, you don't have to give full drive path, or you can also use the command ccbSetWorkingDirectory() command. to change your current working directory, that is default set to your project directory, so you can create a project folder named like "cas evac" and put all your assets there and use the avove command to set your current working directory. Hope that helps. |
||||
|
Perfect! Thank you. Yes, that's really helpful. I'll use a project directory as you suggested. |
||||
|
Glad you find it useful 😇 |
||||
|
I've accidentally lost all my sounds again (moved a folder from my desktop to a harddrive to make space). I can't get the "set working directory" command to work so I think I'll need to recreate the original folder again and copy the sound files back to my desktop - or manually load al the sounds again and repoint them all to a different location.. It's infuriating that coppercube can't embed the required audio files. It really is a bit of a nightmare having to keep everything in their original file location. 1- because they're easy to accidentally delete. 2- Because it's hard to swap out new edited sounds with the old ones. Is there any way at all to edit the paths in Coppercube please? What I can't understand is that all the sounds play perfectly in the sound manager (even though the sounds aren't on the PC any more) - so coppercube must be either embedding the sounds or placing them in a temp folder somewhere - but when I publish the ccb file, the sounds are all missing again. Thank you. |
||||
|
Set working directory command works, sorry, I forget to mention that you have to use the script commands for playing and stopping sounds then. You can use the same command for loading the textures dynamically as well. For sounds and music added through actions and the 3D sound node, yeah you have to manually create a replica of the original folder. or have to reimport each sound manually. maybe I can create a custom action that will play or stop sound. and one have to simply put the file name in there, instead of the whole file path. |
||||
|
Thanks just_in_case a plugin for that would be great! It's the one problem that causes me the most issues - nothing major, I can either load new sounds manually or recreate the folder but a method to hot-swap sounds would be really handy. Actually, I noticed that publishing as "html" also packages all the necessary files to a common folder. I've found this handy for recovering files I've lost in the past. There may be a way to force cc to "publish" a ccb file and package all the files to a project folder so that everything is in one place. My largest downfall is loading resources from their original locations (desktop, downloads folder, external HDD etc) instead of putting everything in a project folder first. As the project develops, it inevitably breaks at some due to the original locations being unmounted, moved (synced to cloud) or accidentally deleted. Obviously my own fault but would definitely be a much appreciated feature. |
|