As the title says Error in font directory is happening on all my detonator presets when using my “home made” detonator_Oli_buttons.h
These are the files I have in my font folders:
bgnarm
boom
boot
endarm
font
alt000\armhum
alt000\hum
alt001\armhum
alt001\hum
This it the serial monitor output:
15:09:55.821 -> WARNING: A font seems to be missing some files!!
15:09:55.821 -> Found armhum.wav files: one unnumbered file SOME FILES ARE MISSING! 3 != 2 in _Detonator/td/alt*
15:09:55.821 -> Found hum.wav files: one unnumbered file SOME FILES ARE MISSING! 3 != 2 in _Detonator/td/alt*
15:09:55.854 -> Activating polyphonic font.
15:09:55.854 -> Sound library version 2 found.
15:09:55.854 -> Ignition.
And this I what I get when I use “effects” in serial monitor:
17:04:48.435 -> Found destruct.wav files: 1-2 using 4 digits in efficient subdirs in common
17:04:48.435 -> Found mdauto.wav files: one unnumbered file in common
17:04:48.435 -> Found mdkill.wav files: one unnumbered file in common
17:04:48.435 -> Found mdstun.wav files: one unnumbered file in common
17:04:48.435 -> Found unjam.wav files: one unnumbered file in common
17:04:48.435 -> Found stun.wav files: one unnumbered file in common
17:04:48.435 -> Found reload.wav files: one unnumbered file in common/alt*
17:04:48.435 -> Found jam.wav files: one unnumbered file in common
17:04:48.435 -> Found full.wav files: one unnumbered file in common
17:04:48.435 -> Found empty.wav files: one unnumbered file in common
17:04:48.435 -> Found clipout.wav files: one unnumbered file in common/alt*
17:04:48.435 -> Found clipin.wav files: one unnumbered file in common/alt*
17:04:48.435 -> Found medit.wav files: one unnumbered file in common
17:04:48.435 -> Found vmend.wav files: one unnumbered file in common
17:04:48.435 -> Found vmbegin.wav files: one unnumbered file in common
17:04:48.435 -> Found dim.wav files: one unnumbered file in common
17:04:48.435 -> Found jetpackmode.wav files: one unnumbered file in common
17:04:48.435 -> Found detonatormode.wav files: one unnumbered file in common
17:04:48.435 -> Found blastermode.wav files: one unnumbered file in common
17:04:48.435 -> Found sabermode.wav files: one unnumbered file in common
17:04:48.435 -> Found mnum.wav files: 1-20 in subdirs in common
17:04:48.435 -> Found blast.wav files: 1-12 using 2 digits in subdirs in common
17:04:48.435 -> Found endauto.wav files: 1-3 in subdirs in common
17:04:48.435 -> Found auto.wav files: 1-12 using 2 digits in subdirs in common
17:04:48.435 -> Found bgnauto.wav files: 1-3 in subdirs in common
17:04:48.435 -> Found mclick.wav files: one unnumbered file in common
17:04:48.435 -> Found ccchange.wav files: one unnumbered file in common
17:04:48.435 -> Found ccend.wav files: one unnumbered file in common
17:04:48.435 -> Found ccbegin.wav files: one unnumbered file in common
17:04:48.435 -> Found boom.wav files: one unnumbered file in _Detonator/td
17:04:48.435 -> Found endarm.wav files: one unnumbered file in _Detonator/td
17:04:48.435 -> Found armhum.wav files: one unnumbered file SOME FILES ARE MISSING! 3 != 2 in _Detonator/td/alt*
17:04:48.435 -> Found bgnarm.wav files: one unnumbered file in _Detonator/td
17:04:48.435 -> Found quote.wav files: 1-14 using 2 digits in subdirs in common
17:04:48.435 -> Found out.wav files: one unnumbered file in common
17:04:48.435 -> Found in.wav files: one unnumbered file in common
17:04:48.435 -> Found hum.wav files: one unnumbered file SOME FILES ARE MISSING! 3 != 2 in _Detonator/td/alt*
17:04:48.435 -> Found bladeout.wav files: one unnumbered file in common
17:04:48.435 -> Found bladein.wav files: one unnumbered file in common
17:04:48.435 -> Found font.wav files: one unnumbered file in _Detonator/td
17:04:48.435 -> Found boot.wav files: one unnumbered file in _Detonator/td
17:04:48.435 -> Done listing effects.
17:04:48.590 -> Playing _Detonator/td/alt000/hum.wav
Before I switched to Alt sounds, I had these:
armhum
bgnarm
boom
boot
endarm
font
hum
And it was working perfectly
With the alt sounds, no sounds seems to be missing, everything is playing as I intended.
It means one of the alts has 3 sounds, when others have 2, “3 does not equal 2” is checking each alt for number of files for that sound, if there’s a mismatch it gives this error.
Each Alt folders in all 4 fonts have exactly 2 files: armhum & hum, nothing else.
I did a right click/Properties (Windows 10) on all Alt folders: “2 Files, 0 Folders”
There was A rogue hum.wav in my common. Well done @Fett263. Thank you.
Buuut…
For the sake of completeness, it was not over with just deleting a rogue hum.wav
In my common, I also had a “hum_ORI.wav” file, renamed it to "_hum_ORI.wav but the error still hapenned so I deleted it too.
After deleting it, error in font directory kept happening so I changed the common folder in my detonator presets from *;common to *;Voicepack_Captain_Rex_V2 who happened to be on my SD card already. Since my detonator doesn’t have any kind of Edit mode, it is not going to matter how I name my common.
It still happened, serial monitor showed common was still being scanned for some reason and Voicepack_Captain_Rex_V2 was not. So I did the delete the “S” from the first StylePtr trick. I was uploading the correct config because without the S it didn’t compile.
So I commented out //#define FONT_PATTERN "*;common" and just to be sure, I also deleted the global.ini & .tmp, the crustate.ini & tmp and the presets.ini & tmp
I do not have KEEP_SAVEFILES_WHEN_PROGRAMMING in my config.
All that finally did it, no more error in font directory.
But I do not know which step finally did it or which step could have been avoided.
Well it would probably need to be an armhum since you cleared the hum issue.
Did you do effects again?
Is it happy about hum now, but still complaining about armhum?
How about a listing of your common folder contents?
Well effects is not going to help since it is not looking in common:
03:34:40.396 -> Found medit.wav files: one unnumbered file in _VoicePacks/Voicepack_Captain_Rex_V2
03:34:40.396 -> Found vmend.wav files: one unnumbered file in _VoicePacks/Voicepack_Captain_Rex_V2
03:34:40.396 -> Found vmbegin.wav files: one unnumbered file in _VoicePacks/Voicepack_Captain_Rex_V2
03:34:40.396 -> Found jetpackmode.wav files: one unnumbered file in _Multiprop
03:34:40.396 -> Found detonatormode.wav files: one unnumbered file in _Multiprop
03:34:40.396 -> Found blastermode.wav files: one unnumbered file in _Multiprop
03:34:40.396 -> Found sabermode.wav files: one unnumbered file in _Multiprop
03:34:40.396 -> Found mnum.wav files: 1-20 in subdirs in _VoicePacks/Voicepack_Captain_Rex_V2
03:34:40.396 -> Found mclick.wav files: one unnumbered file in _VoicePacks/Voicepack_Captain_Rex_V2
03:34:40.396 -> Found ccchange.wav files: one unnumbered file in _VoicePacks/Voicepack_Captain_Rex_V2
03:34:40.396 -> Found ccend.wav files: one unnumbered file in _VoicePacks/Voicepack_Captain_Rex_V2
03:34:40.396 -> Found ccbegin.wav files: one unnumbered file in _VoicePacks/Voicepack_Captain_Rex_V2
03:34:40.396 -> Found boom.wav files: one unnumbered file in _Detonator/td
03:34:40.396 -> Found endarm.wav files: one unnumbered file in _Detonator/td
03:34:40.396 -> Found armhum.wav files: one unnumbered file in _Detonator/td/alt*
03:34:40.396 -> Found bgnarm.wav files: one unnumbered file in _Detonator/td
03:34:40.396 -> Found hum.wav files: one unnumbered file in _Detonator/td/alt*
03:34:40.396 -> Found bladeout.wav files: one unnumbered file in _VoicePacks/Voicepack_Captain_Rex_V2
03:34:40.396 -> Found bladein.wav files: one unnumbered file in _VoicePacks/Voicepack_Captain_Rex_V2
03:34:40.396 -> Found font.wav files: one unnumbered file in _Detonator/td
03:34:40.396 -> Found boot.wav files: one unnumbered file in _Detonator/td
other than the renamed “_hum_ORIG.wav” & “_hum_LOW.wav” (yes I put them back) there is no other file with “hum” in the name: results.txt (24.0 KB)
Edit: I am re-uploading with common just to see if it comes back.
After re-uploading with common instead of Voicepack_Captain_Rex_V2, it’s back.
This is the result from effects in serial monitor:
04:03:19.862 -> Found destruct.wav files: 1-2 using 4 digits in efficient subdirs in common
04:03:19.862 -> Found mdauto.wav files: one unnumbered file in common
04:03:19.862 -> Found mdkill.wav files: one unnumbered file in common
04:03:19.862 -> Found mdstun.wav files: one unnumbered file in common
04:03:19.862 -> Found unjam.wav files: one unnumbered file in common
04:03:19.862 -> Found stun.wav files: one unnumbered file in common
04:03:19.862 -> Found reload.wav files: one unnumbered file in common/alt*
04:03:19.862 -> Found jam.wav files: one unnumbered file in common
04:03:19.862 -> Found full.wav files: one unnumbered file in common
04:03:19.862 -> Found empty.wav files: one unnumbered file in common
04:03:19.862 -> Found clipout.wav files: one unnumbered file in common/alt*
04:03:19.862 -> Found clipin.wav files: one unnumbered file in common/alt*
04:03:19.862 -> Found medit.wav files: one unnumbered file in common
04:03:19.862 -> Found vmend.wav files: one unnumbered file in common
04:03:19.862 -> Found vmbegin.wav files: one unnumbered file in common
04:03:19.862 -> Found dim.wav files: one unnumbered file in common
04:03:19.862 -> Found jetpackmode.wav files: one unnumbered file in common
04:03:19.862 -> Found detonatormode.wav files: one unnumbered file in common
04:03:19.862 -> Found blastermode.wav files: one unnumbered file in common
04:03:19.862 -> Found sabermode.wav files: one unnumbered file in common
04:03:19.862 -> Found mnum.wav files: 1-20 in subdirs in common
04:03:19.862 -> Found blast.wav files: 1-12 using 2 digits in subdirs in common
04:03:19.862 -> Found endauto.wav files: 1-3 in subdirs in common
04:03:19.862 -> Found auto.wav files: 1-12 using 2 digits in subdirs in common
04:03:19.862 -> Found bgnauto.wav files: 1-3 in subdirs in common
04:03:19.862 -> Found mclick.wav files: one unnumbered file in common
04:03:19.862 -> Found ccchange.wav files: one unnumbered file in common
04:03:19.862 -> Found ccend.wav files: one unnumbered file in common
04:03:19.862 -> Found ccbegin.wav files: one unnumbered file in common
04:03:19.862 -> Found boom.wav files: one unnumbered file in _Detonator/td
04:03:19.862 -> Found endarm.wav files: one unnumbered file in _Detonator/td
04:03:19.862 -> Found armhum.wav files: one unnumbered file SOME FILES ARE MISSING! 3 != 2 in _Detonator/td/alt*
04:03:19.862 -> Found bgnarm.wav files: one unnumbered file in _Detonator/td
04:03:19.862 -> Found quote.wav files: 1-14 using 2 digits in subdirs in common
04:03:19.862 -> Found out.wav files: one unnumbered file in common
04:03:19.862 -> Found in.wav files: one unnumbered file in common
04:03:19.862 -> Found hum.wav files: one unnumbered file SOME FILES ARE MISSING! 3 != 2 in _Detonator/td/alt*
04:03:19.862 -> Found bladeout.wav files: one unnumbered file in common
04:03:19.862 -> Found bladein.wav files: one unnumbered file in common
04:03:19.862 -> Found font.wav files: one unnumbered file in _Detonator/td
04:03:19.862 -> Found boot.wav files: one unnumbered file in _Detonator/td
04:03:19.862 -> Done listing effects.
Same hum/armhum problem:
Found armhum.wav files: one unnumbered file SOME FILES ARE MISSING! 3 != 2 in _Detonator/td/alt*
Found hum.wav files: one unnumbered file SOME FILES ARE MISSING! 3 != 2 in _Detonator/td/alt*
I think I know where the problem is. Since I have some of my blaster sounds in there too, I have Alt000 (kill), Alt001 (stun) & Alt002 (auto) folder in my common. But my detonator only has/uses Alt000 & Alt001.
So I guess I have some re-organizing to do in my common but it will be for tomorrow.
You can always count on me to try a weird case that nobody would have thought of. I know, I like weird things. Good thing I didn’t choose chemistry as my hobby, I would have found unknown ways to blow things (and myself) up without wanting to.
This error came from having 3 alt folders in common for my “generic” blaster with clipin, clipout and reload for stun, kill and auto modes but only two alt folders in my detonator fonts with hum & armhum for “regular” or stealth mode. If I had a third set of hum & armhum for my detonator, there would not have been an error or sound overlap and I would have never know there was something that could potentially cause errors in the future.