Will the sound ever get fixed in Krom? It has been broken for a long time.
Itās reported here https://github.com/armory3d/armory/issues/1396, but Iām not sure if itās an Armory issue or a Krom issue though.
I had the same problem
but it is working for me after I have updated armory SDK to 09
Did you tag the sound with āfake userā?
edit: only *.wav worked for me
No!
What does it do?
Forces the data-block to be linked in Blender, somehow, activating it solved this problem for me.
Iāll try this but we shouldnāt have to find a work around
Itās working now, thanks for the help!
is there any checkbox, that would solve the problem with lamps, so I could place more than 4 lights, and spotlights wouldnāt cause the low framerate?
Wow, 4 lights?! I canāt use more than 1, haha
My tests with lamps arenāt good, occasionally works with me:
- deleting all lights > cleaning cache > add new lights > compileā¦ but its random.
Moving and rotating always cause artifacts to me, both forward and deferred render methods.
Consider baking textures and using a single lamp (cause deactivating shadow and/or deleting all light, glitches the frame rate).
Can you share a minimal zip contained project with working sounds for testing purposes? Iām still getting no sound adding fake user onto the platformer templateās sounds from the official repo.
Tested on a ābuildā from commit 9b0673d.
Edit: what version of the Armory SDK are you using?
Iām using SDK 1909 and to sound works for me finally.
Not sure from what commit that version is from, but sound is not working in Krom (at least on my end) in the latest version.
the new version is uploaded, Iām going to take a look
A test file, itās contain an embedded sound, you must unpack to work.
To unpack: (this will create a folder in the same directory of this *.blend file)
- (optional) first create a folder and dropped the blender file into it (to organize the hierarchy)
- open blender file and click in pointed box (Iām using blender 2.80, this blend file will not work in older versions)
- choose āUse from current directoryā (1st option)
SoundTest.blend (541.4 KB)
If not working in your personal project, try cleaning cache, here sometimes doesnāt work and sometimes work without using āFake Userā.
Overview of the *.blend file:
Ok, thanks for the demo project. I can confirm that sound is not working in latest version of the Armory SDK.
Edit: Updating my copy of the armory.py file and updating the SDK with it did the trick, sound is working again on my end!
If it can help you, I proceed as therafter to get a sound going well when playing on browser or krom.
The main thing is to verify inside the Blender Sound datablock what is referenced as an external or packed sound file, and to use the Data API tool to verify it.
(For exemple : to play this hit1.wav file
you can have added a file hit1.wav at time 0 in the sequenceur editor, or as another way to proceed, created a sound folder, used VLC to create a hit1.ogg file (other tools than VLC available to do it tooā¦) and just copy this hit1.ogg in the folder debug/krom for example to test in krom
or for test in html in
but maybe finnally you donāt know really whatās going wrong or not.
Thus using the Data API tool, we can perfectly observe the only important thing, that is
how Blender File Path is set in Blender.
because the Play Sound Logic node is going wrong if the class bpy.types.Sound, with itās Sound datablock referencing an external or packed sound file is wrong.
You have the answer when looking the File Path using the Data Api tool available in Blender 2.8
You donāt need to add a fake user anymore as of ArmorySDK1910 but it still only works with .wav files.
I appreciate all the help, etc. but this should just work (like it was a few versions before)
In theory, khamake compresses the files when making a release build; So donāt worry about files being wavās, they will be compressed later on.
It is written here to use .wav or .flac, but is it okay to use a different format?