Settings for the common folder location

Hi @Fett263,

I have noticed that the when you add a preset the common setting is not editabled either in the edit mode or the web usb, you can only add it to the config file but it doesn’t find the common folder in the edit mode. I would like it to be a subfolder in the font settings and sould be 1 level deep from the root of the sd card.

In OS7 “;common” is hard coded into Edit Mode as the default voice prompt directory and therefore required in your prop per Set Up Instructions for my prop.

In OS8 you can use FONT_PATTERN define to change the default voice prompt should you want to name differently, however you would then need to set your config up to use same pattern in each preset.

#define FONT_PATTERN "*;common"

No matter the method, presets need a default voice prompt directory for Edit Mode to operate, otherwise if a font is missing prompts the menu would cease to function.

so if I’m understanding this correctly I could do

#define Font_pattern “*;common;*/common’”

could that work if I have common folders in the font directory?

would this also work with the webusb?

so I was changing the font in edit menu and I notice using the “*;common;*/common” didn’t quite use both the

The common folder in the root of the sd card

But it did use the common folder located in the sound font

E.g.

So if I’m selecting sound font that doesn’t have a common folder within it the error is font directory not found.

@Fett263

I’m trying to trigger both common in root and common in font directories how do I do that?

If you want specific voices per font just include the sound files in the root of the font. Those would be used instead of common. You don’t need a common folder in the font, just put the sounds there.

You still need to set up the common folder on the SD, but the sounds would be used only if the font is missing the voice prompts.

Refer to “Set Up for Voice Prompts (Required)'” section of my prop page.

1 Like

aaaah ok do I need to remove the files from the subfolders too?

I added the sounds in the root of the font directory and I’m getting this error.

** ERROR - Error in font directory.
** See https://pod.hubbe.net/troubleshooting/what-is-it-saying.html#error-in-font-directory
Found medit.wav files: one unnumbered file SOME FILES ARE MISSING! 1 != 256 in bank03
Found mnum.wav files: 1-20 in subdirs SOME FILES ARE MISSING! 20 != 5120 in bank03
Found lowbatt.wav files: one unnumbered file SOME FILES ARE MISSING! 1 != 256 in bank03
Found mclick.wav files: one unnumbered file SOME FILES ARE MISSING! 1 != 256 in bank03
Found ccchange.wav files: one unnumbered file SOME FILES ARE MISSING! 1 != 256 in bank03
Found ccend.wav files: one unnumbered file SOME FILES ARE MISSING! 1 != 256 in bank03
Found ccbegin.wav files: one unnumbered file SOME FILES ARE MISSING! 1 != 256 in bank03
Found swingh.wav files: 1-4 using 2 digits in subdirs SOME FILES ARE MISSING! 4 != 1024 in bank03
Found swingl.wav files: 1-4 using 2 digits in subdirs SOME FILES ARE MISSING! 4 != 1024 in bank03
Found swng.wav files: 1-9 using 2 digits in subdirs SOME FILES ARE MISSING! 9 != 2304 in bank03
Found lock.wav files: 1-1 using 2 digits in subdirs SOME FILES ARE MISSING! 1 != 256 in bank03
Found out.wav files: 1-2 using 2 digits in subdirs SOME FILES ARE MISSING! 2 != 512 in bank03
Found in.wav files: 1-1 using 2 digits in subdirs SOME FILES ARE MISSING! 1 != 256 in bank03
Found clsh.wav files: 1-16 using 2 digits in subdirs SOME FILES ARE MISSING! 16 != 4096 in bank03
Found blst.wav files: 1-6 using 2 digits in subdirs SOME FILES ARE MISSING! 6 != 1536 in bank03
Found endlock.wav files: one unnumbered file in subdirs SOME FILES ARE MISSING! 1 != 256 in bank03
Found bgnlock.wav files: one unnumbered file in subdirs SOME FILES ARE MISSING! 1 != 256 in bank03
Found hum.wav files: 1-1 using 2 digits in subdirs SOME FILES ARE MISSING! 1 != 256 in bank03
Found bladeout.wav files: one unnumbered file SOME FILES ARE MISSING! 1 != 256 in bank03
Found bladein.wav files: one unnumbered file SOME FILES ARE MISSING! 1 != 256 in bank03
Found font.wav files: one unnumbered file in subdirs SOME FILES ARE MISSING! 1 != 256 in bank03
Found boot.wav files: one unnumbered file in subdirs SOME FILES ARE MISSING! 1 != 256 in bank03

Might be an issue with the Voice Pack?

it is working when it’s in the common folder. no issues until I copied all the contents to root of the font directory

But why?
This seems to be what’s causing the issue.
If you don’t force something to try to work differently than it’s intended to, things would be fine.

Don’t get me wrong. I use all different voicepacks in different presets, like

{ "aa_Syndicate/Synergy;ProffieOS_V2_Voicepack_Kylo_V2/common;commonBU", "aa_Syndicate/SithChant/tracks/music_from_the_dark_side_edit.wav",
...
{ "aa_Greyscale/Skotos_Greyscale;ProffieOS_V2_Voicepack_The_Ronin/common;commonBU", "",
...
{ "aa_Blueforce/LiquidStatic;ProffieOS_V2_Voicepack_Thrawn/common;commonBU", "",

but my custom Font Search Paths work for me like that because I don’t use edit mode.

so it’s not possible with the current prop file?

how do I get it to work is my question?

From saber_fett263_buttons,h

/common means on the root. It’s a requirement of the prop, because edit mode re-writes the path to that location. If you have it elsewhere, and it works fine as long as preset and SD card are in harmony, it will break when edit mode re-writes the path as plain /common.

So the opposite option is to put it in a custom path like you are saying you want to, but then not use edit mode or the WebUSB ProffieOS Workbench (I think. I don’t use that either so I’m not 100%)

The solution is likely to use FONT_PATTERN.

Oh, Fett263 already answered with the same thing a while back.

However,

I think was meant to say “need to set your config file to use same pattern in each preset”, not prop file.

1 Like

I am so confused, ok

so what’s the font_pattern I need so that I am using BOTH /common and font/common?

#define FONT_PATTERN "*;common;*/common"

Feels like we’re going in circles. If you want specific Voice Prompts for a font just put them in the root of the font. There’s no need for FONT_PATTERN to do that, FONT_PATTERN is more for having a different name than common or using other default sound files for each preset. It appends the SAME pattern to each preset, not a VARIABLE pattern.

You likely had duplicated files somewhere previously or some corruption of files if you’re editing on the SD.

Save your fonts, reformat your SD, then on your computer take a clean font and carefully copy the contents of the “common” folder into the root of the font. Then move it to your SD. Make sure you have a “common” folder on the SD and then set the preset like so.

{ "font;common", "font/tracks/track.wav",
StylePtr<...>(),
"name"
},

If the font has the Voice Prompts they are used, if not the common folder is used. That’s standard behavior for Edit Mode since it was created, no need to reinvent the wheel. This would apply to other sounds as well, anything shared or common can be added to common folder to be used if the font is missing sounds, any sounds specific to the font belong in the font itself.

1 Like

I would guess an SD card reformat might squash this problem.

I did this already and it’s still having issues. I will do it again. I also reformatted the sd card.

the way I read this is to navigate to the common folder select all the contents and copy and past into the font directory, so now there’s hundreds of files in the font. right? I’m not copying the common directory into the font directory but the contents.

I think it may be the sd card in question. I’ll redo it.

Yes, you’re copying the contents of common (voice pack) into the font folder.

1 Like

I’m currently running badblocks on the sd card just to see if its fudged.