I have almost got an entire blender game level completed, However, I can not seem to delete things I no longer need. Exp: I have a door sound effect and decided I wanted to tweek it. after I loaded the new version into blender and then replaced the old one with it. I tried to delete the old sound, but every time I look in the sound data block the file is still there. I also have the same problem with textures and materials. Does anyone know of a way to delete this junk data in order to have a cleaner scene?
Yes, I’ve also got that problem that I can delete material, textures forever, not delte link but just delete them completely, I also don’t know how. :-?
Resources can only be deleted if you remove all the “users” of the resource. Some resources, like sounds, are automaticly linked to a default user, and the sound can’t be deleted as long as that link lasts.
To delete a sound, first you have to give it another user, so it will no longer be linked to the default user. Give an object a sound actuator and set it to play the sound you want deleted (this gives the sound a real user). Now save and reload the scene (Ctrl-S then Ctrl-O) delete the sound actuator then go to the sound buttons. In the popup menu to select a sound, there should be a 0 next to the sound that was in the actuator you just deleted. Now close the sound buttons window or change it to something else, then save + reload again.
Blender definitely needs a “remove all links to resource” button or something.
I’ve had some sound troubles as well; I will go about trying that method, but my problem is that:
sounds were in the game, working
I added a couple new objects; a help/controls screen and an animated robot miner with full AI (many scripts, an armature for animations).
now sounds don’t work, don’t pack or unpack, don’t play, etc. I try to reload them manually, then they work. But if I exit Blender after saving, then start Blender again they don’t work again and I have twice as many sounds that do nothing.
In the sound buttons, just to the right of the button that displays the path to the sound, there’s a button with an icon of a little box. If you put the mouse over this button it’ll say “Pack/Unpack,” make sure this button is pressed in for each and every one of your sounds.
BTW, your question has nothing to do with the original post. Instead of reviving an old post that doesn’t really relate to your question, you could have made a new topic.
if the datablock is shown as “0 name” (where name is the name of the datablock) in the datablock chooser for that type (images, meshes, materials…) it will not be saved with your file. if you save and reload, it will be gone.
… however, this doesn’t seem entirely true. I think that with images I’ve had to pack (where not packed before), then save, and then they were gone. It wasn’t really important though, so I didn’t remember.
for the particularly impatient you can create an empty blender file and import just what you want into it (shift+f1)