I recently added 3 new fonts and blade styles to my sabertrio proffie saber. Each of the presets that come with the saber out of the box has volume controls and a battery level meter but on the new fonts I added these functions no longer work and every time I try and do them the aux button just beeps. Another thing that happens is with the other presets the illuminated switch is on but with the new fonts the switch stays off.
Is there a way I can add all of these functions back to the new fonts I added?
above is my config file
Your second question first.
You have 2 blades, the main blade and the switch.
If you just look at whatâs different between the ones they had compared to what you added, youâd see that the second blade style StylePtr<WHITE>(),
and the ânameâ at the end of the preset are missing from the presets you added.
That is why 1. the switch doesnât do anything, because you have no style for it and 2. you donât get an error about the number of blades not matching number of styles because you didnât include the ânameâ at the end.
As far as Volume Menu sounds, if the font doesnât contain vmbegin, volup, voldown, vomend wav files, then you get beeps instead.
Either just copy them from another font that has those, or you should just have a âcommonâ font folder setup, where a copy of sounds in there would act as backup and get used for any file the first font in the font search path doesnât have.
"21-Ronin;common",
Read this:
I found a âcommonâ folder in sabertrioâs proffie os folder and I named the new presets as you said. when I flash the board and try the use the new fonts again, along with the boot sound, there is something else that says âŚnot found. I canât pick up the first part because the boot sound is louder than it. I donât know what happened
(new config)
1 Like
The ProffieOS/common folder should not be confused with a font common folder.
ProffieOS/common is for code files. Font common folder lives on your SD card and holds sounds.
Donât copy the ProffieOS/common folder, thatâs not what you want.
See âSetting up your SD cardâ section on this page:
### Setting up your SD card
You added the buttonâs style to presets that were missing it, thatâs good.
You appended ;common
to the TYTHONIAN_CRYSTAL preset, thatâs good.
You should add it to ALL of them.
1 Like
I figured that out now and the sounds and volume control now work. my only problem now is that the battery meter makes a sound but there is no light. there is code for the battery meter in the config file at the end of presets 1-18. when I try to add the code, I get a compiling error. Do you know how I would be able to properly add that code to the other presets?
(same config file)
On-demand battery level is just an additional layer added to the style.
It can be triggered several ways, dependent on the prop you use.
Generally, you can just copy it from a preset that has it, but you need to mind the syntax.
Inserting a layer requires paying attention to opening and closing brackets.
Using the style editor is a good way to make sure it works.
So for Thanos for example, the last layer in that style is EFFECT_PREON.
The end of the layer ends as EFFECT_PREON>
and is then followed by >>()
, which is the closing bracket for Layers<>
and StylePtr<>()
from all the way back at the beginning of the style.
Youâd add a comma after the preon layer, then insert the battery level there.
SO for visual, youâd take this:
.....EFFECT_PREON>>>()
and insert the battery level layer like this
.......EFFECT_PREON>,
AlphaL<Mix<BatteryLevel,Red,Green>,SmoothStep<BatteryLevel,Int<-10>>>,TrWipeIn<1000>>,EFFECT_BATTERY_LEVEL>
>>()
1 Like
I edited each preset to look like that but I still get errors when compiling
never mind I figured it out. Thanks for your help
1 Like