Help loading crossguard config

Created a config for my Kylo saber, getting this error when trying to upload it. Config is below

In file included from C:\Users\dylan\Desktop\ProffieOS\ProffieOS.ino:621:
C:\Users\dylan\Desktop\ProffieOS\config\kyloconfig.h:80:1388: error: expected ‘}’ before ‘StylePtr’
80 | StylePtr<IgnitionDelayX<Int<500>,RetractionDelayX<Int<500>,Layers<StaticFire<BrownNoiseFlicker<RgbArg<BASE_COLOR_ARG,Rgb<255,14,0>>,RandomPerLEDFlicker<Mix<Int<3213>,Black,RgbArg<BASE_COLOR_ARG,Rgb<255,14,0>>>,Mix<Int<7710>,Black,RgbArg<BASE_COLOR_ARG,Rgb<255,14,0>>>>,300>,Mix<Int<10280>,Black,RgbArg<BASE_COLOR_ARG,Rgb<255,14,0>>>,0,6,10,1000,2>,TransitionLoopL<TrConcat<TrDelayX<Scale<SlowNoise<Int<1000>>,Int<300>,Int<3000>>>,AlphaL<RgbArg<EMITTER_COLOR_ARG,Rgb<255,68,0>>,Int<0>>,TrSparkX<RgbArg<EMITTER_COLOR_ARG,Rgb<255,68,0>>,Scale<NoisySoundLevel,Int<200>,Int<600>>,Int<250>,Int<0>>>>,AlphaL<RandomPerLEDFlickerL<RgbArg<EMITTER_COLOR_ARG,Rgb<255,68,0>>>,SmoothStep<Scale<NoisySoundLevel,IntArg<EMITTER_SIZE_ARG,2000>,Sum<IntArg<EMITTER_SIZE_ARG,2000>,Int<6000>>>,Int<-6000>>>,InOutTrL<TrWipeSparkTipX<RgbArg<IGNITION_COLOR_ARG,Rgb<255,255,255>>,BendTimePowInvX<IgnitionTime<300>,Mult<IntArg<IGNITION_OPTION2_ARG,10992>,Int<98304>>>>,TrWipeInSparkTipX<RgbArg<RETRACTION_COLOR_ARG,Rgb<255,255,255>>,BendTimePowInvX<RetractionTime<0>,Mult<IntArg<RETRACTION_OPTION2_ARG,10992>,Int<98304>>>>,Black>,TransitionEffectL<TrConcat<TrInstant,AlphaL<BrownNoiseFlickerL<RgbArg<PREON_COLOR_ARG,Rgb<255,14,0>>,Int<30>>,SmoothStep<Scale<SlowNoise<Int<2000>>,IntArg<PREON_SIZE_ARG,2000>,Sum<IntArg<PREON_SIZE_ARG,2000>,Int<4000>>>,Int<-2000>>>,TrDelayX<WavLen<EFFECT_PREON>>>,EFFECT_PREON>>>>>()StylePtr<IgnitionDelayX<Int<500>,RetractionDelayX<Int<500>,Layers<StaticFire<BrownNoiseFlicker<RgbArg<BASE_COLOR_ARG,Rgb<255,14,0>>,RandomPerLEDFlicker<Mix<Int<3213>,Black,RgbArg<BASE_COLOR_ARG,Rgb<255,14,0>>>,Mix<Int<7710>,Black,RgbArg<BASE_COLOR_ARG,Rgb<255,14,0>>>>,300>,Mix<Int<10280>,Black,RgbArg<BASE_COLOR_ARG,Rgb<255,14,0>>>,0,6,10,1000,2>,TransitionLoopL<TrConcat<TrDelayX<Scale<SlowNoise<Int<1000>>,Int<300>,Int<3000>>>,AlphaL<RgbArg<EMITTER_COLOR_ARG,Rgb<255,68,0>>,Int<0>>,TrSparkX<RgbArg<EMITTER_COLOR_ARG,Rgb<255,68,0>>,Scale<NoisySoundLevel,Int<200>,Int<600>>,Int<250>,Int<0>>>>,AlphaL<RandomPerLEDFlickerL<RgbArg<EMITTER_COLOR_ARG,Rgb<255,68,0>>>,SmoothStep<Scale<NoisySoundLevel,IntArg<EMITTER_SIZE_ARG,2000>,Sum<IntArg<EMITTER_SIZE_ARG,2000>,Int<6000>>>,Int<-6000>>>,InOutTrL<TrWipeSparkTipX<RgbArg<IGNITION_COLOR_ARG,Rgb<255,255,255>>,BendTimePowInvX<IgnitionTime<300>,Mult<IntArg<IGNITION_OPTION2_ARG,10992>,Int<98304>>>>,TrWipeInSparkTipX<RgbArg<RETRACTION_COLOR_ARG,Rgb<255,255,255>>,BendTimePowInvX<RetractionTime<0>,Mult<IntArg<RETRACTION_OPTION2_ARG,10992>,Int<98304>>>>,Black>,TransitionEffectL<TrConcat<TrInstant,AlphaL<BrownNoiseFlickerL<RgbArg<PREON_COLOR_ARG,Rgb<255,14,0>>,Int<30>>,SmoothStep<Scale<SlowNoise<Int<2000>>,IntArg<PREON_SIZE_ARG,2000>,Sum<IntArg<PREON_SIZE_ARG,2000>,Int<4000>>>,Int<-2000>>>,TrDelayX<WavLen<EFFECT_PREON>>>,EFFECT_PREON>>>>>(),
| ^~~~~~~~
In file included from C:\Users\dylan\Desktop\ProffieOS\ProffieOS.ino:621:
C:\Users\dylan\Desktop\ProffieOS\config\kyloconfig.h:40:1: note: to match this ‘{’
40 | { “TFA;common”, “font0/tracks/track.wav”,
| ^
In file included from C:\Users\dylan\Desktop\ProffieOS\ProffieOS.ino:621:
C:\Users\dylan\Desktop\ProffieOS\config\kyloconfig.h:80:1388: error: expected ‘}’ before ‘StylePtr’
80 | StylePtr<IgnitionDelayX<Int<500>,RetractionDelayX<Int<500>,Layers<StaticFire<BrownNoiseFlicker<RgbArg<BASE_COLOR_ARG,Rgb<255,14,0>>,RandomPerLEDFlicker<Mix<Int<3213>,Black,RgbArg<BASE_COLOR_ARG,Rgb<255,14,0>>>,Mix<Int<7710>,Black,RgbArg<BASE_COLOR_ARG,Rgb<255,14,0>>>>,300>,Mix<Int<10280>,Black,RgbArg<BASE_COLOR_ARG,Rgb<255,14,0>>>,0,6,10,1000,2>,TransitionLoopL<TrConcat<TrDelayX<Scale<SlowNoise<Int<1000>>,Int<300>,Int<3000>>>,AlphaL<RgbArg<EMITTER_COLOR_ARG,Rgb<255,68,0>>,Int<0>>,TrSparkX<RgbArg<EMITTER_COLOR_ARG,Rgb<255,68,0>>,Scale<NoisySoundLevel,Int<200>,Int<600>>,Int<250>,Int<0>>>>,AlphaL<RandomPerLEDFlickerL<RgbArg<EMITTER_COLOR_ARG,Rgb<255,68,0>>>,SmoothStep<Scale<NoisySoundLevel,IntArg<EMITTER_SIZE_ARG,2000>,Sum<IntArg<EMITTER_SIZE_ARG,2000>,Int<6000>>>,Int<-6000>>>,InOutTrL<TrWipeSparkTipX<RgbArg<IGNITION_COLOR_ARG,Rgb<255,255,255>>,BendTimePowInvX<IgnitionTime<300>,Mult<IntArg<IGNITION_OPTION2_ARG,10992>,Int<98304>>>>,TrWipeInSparkTipX<RgbArg<RETRACTION_COLOR_ARG,Rgb<255,255,255>>,BendTimePowInvX<RetractionTime<0>,Mult<IntArg<RETRACTION_OPTION2_ARG,10992>,Int<98304>>>>,Black>,TransitionEffectL<TrConcat<TrInstant,AlphaL<BrownNoiseFlickerL<RgbArg<PREON_COLOR_ARG,Rgb<255,14,0>>,Int<30>>,SmoothStep<Scale<SlowNoise<Int<2000>>,IntArg<PREON_SIZE_ARG,2000>,Sum<IntArg<PREON_SIZE_ARG,2000>,Int<4000>>>,Int<-2000>>>,TrDelayX<WavLen<EFFECT_PREON>>>,EFFECT_PREON>>>>>()StylePtr<IgnitionDelayX<Int<500>,RetractionDelayX<Int<500>,Layers<StaticFire<BrownNoiseFlicker<RgbArg<BASE_COLOR_ARG,Rgb<255,14,0>>,RandomPerLEDFlicker<Mix<Int<3213>,Black,RgbArg<BASE_COLOR_ARG,Rgb<255,14,0>>>,Mix<Int<7710>,Black,RgbArg<BASE_COLOR_ARG,Rgb<255,14,0>>>>,300>,Mix<Int<10280>,Black,RgbArg<BASE_COLOR_ARG,Rgb<255,14,0>>>,0,6,10,1000,2>,TransitionLoopL<TrConcat<TrDelayX<Scale<SlowNoise<Int<1000>>,Int<300>,Int<3000>>>,AlphaL<RgbArg<EMITTER_COLOR_ARG,Rgb<255,68,0>>,Int<0>>,TrSparkX<RgbArg<EMITTER_COLOR_ARG,Rgb<255,68,0>>,Scale<NoisySoundLevel,Int<200>,Int<600>>,Int<250>,Int<0>>>>,AlphaL<RandomPerLEDFlickerL<RgbArg<EMITTER_COLOR_ARG,Rgb<255,68,0>>>,SmoothStep<Scale<NoisySoundLevel,IntArg<EMITTER_SIZE_ARG,2000>,Sum<IntArg<EMITTER_SIZE_ARG,2000>,Int<6000>>>,Int<-6000>>>,InOutTrL<TrWipeSparkTipX<RgbArg<IGNITION_COLOR_ARG,Rgb<255,255,255>>,BendTimePowInvX<IgnitionTime<300>,Mult<IntArg<IGNITION_OPTION2_ARG,10992>,Int<98304>>>>,TrWipeInSparkTipX<RgbArg<RETRACTION_COLOR_ARG,Rgb<255,255,255>>,BendTimePowInvX<RetractionTime<0>,Mult<IntArg<RETRACTION_OPTION2_ARG,10992>,Int<98304>>>>,Black>,TransitionEffectL<TrConcat<TrInstant,AlphaL<BrownNoiseFlickerL<RgbArg<PREON_COLOR_ARG,Rgb<255,14,0>>,Int<30>>,SmoothStep<Scale<SlowNoise<Int<2000>>,IntArg<PREON_SIZE_ARG,2000>,Sum<IntArg<PREON_SIZE_ARG,2000>,Int<4000>>>,Int<-2000>>>,TrDelayX<WavLen<EFFECT_PREON>>>,EFFECT_PREON>>>>>(),
| ^~~~~~~~
In file included from C:\Users\dylan\Desktop\ProffieOS\ProffieOS.ino:621:
C:\Users\dylan\Desktop\ProffieOS\config\kyloconfig.h:39:20: note: to match this ‘{’
39 | Preset presets[] = {
| ^
In file included from C:\Users\dylan\Desktop\ProffieOS\ProffieOS.ino:621:
C:\Users\dylan\Desktop\ProffieOS\config\kyloconfig.h:80:1388: error: expected ‘,’ or ‘;’ before ‘StylePtr’
80 | StylePtr<IgnitionDelayX<Int<500>,RetractionDelayX<Int<500>,Layers<StaticFire<BrownNoiseFlicker<RgbArg<BASE_COLOR_ARG,Rgb<255,14,0>>,RandomPerLEDFlicker<Mix<Int<3213>,Black,RgbArg<BASE_COLOR_ARG,Rgb<255,14,0>>>,Mix<Int<7710>,Black,RgbArg<BASE_COLOR_ARG,Rgb<255,14,0>>>>,300>,Mix<Int<10280>,Black,RgbArg<BASE_COLOR_ARG,Rgb<255,14,0>>>,0,6,10,1000,2>,TransitionLoopL<TrConcat<TrDelayX<Scale<SlowNoise<Int<1000>>,Int<300>,Int<3000>>>,AlphaL<RgbArg<EMITTER_COLOR_ARG,Rgb<255,68,0>>,Int<0>>,TrSparkX<RgbArg<EMITTER_COLOR_ARG,Rgb<255,68,0>>,Scale<NoisySoundLevel,Int<200>,Int<600>>,Int<250>,Int<0>>>>,AlphaL<RandomPerLEDFlickerL<RgbArg<EMITTER_COLOR_ARG,Rgb<255,68,0>>>,SmoothStep<Scale<NoisySoundLevel,IntArg<EMITTER_SIZE_ARG,2000>,Sum<IntArg<EMITTER_SIZE_ARG,2000>,Int<6000>>>,Int<-6000>>>,InOutTrL<TrWipeSparkTipX<RgbArg<IGNITION_COLOR_ARG,Rgb<255,255,255>>,BendTimePowInvX<IgnitionTime<300>,Mult<IntArg<IGNITION_OPTION2_ARG,10992>,Int<98304>>>>,TrWipeInSparkTipX<RgbArg<RETRACTION_COLOR_ARG,Rgb<255,255,255>>,BendTimePowInvX<RetractionTime<0>,Mult<IntArg<RETRACTION_OPTION2_ARG,10992>,Int<98304>>>>,Black>,TransitionEffectL<TrConcat<TrInstant,AlphaL<BrownNoiseFlickerL<RgbArg<PREON_COLOR_ARG,Rgb<255,14,0>>,Int<30>>,SmoothStep<Scale<SlowNoise<Int<2000>>,IntArg<PREON_SIZE_ARG,2000>,Sum<IntArg<PREON_SIZE_ARG,2000>,Int<4000>>>,Int<-2000>>>,TrDelayX<WavLen<EFFECT_PREON>>>,EFFECT_PREON>>>>>()StylePtr<IgnitionDelayX<Int<500>,RetractionDelayX<Int<500>,Layers<StaticFire<BrownNoiseFlicker<RgbArg<BASE_COLOR_ARG,Rgb<255,14,0>>,RandomPerLEDFlicker<Mix<Int<3213>,Black,RgbArg<BASE_COLOR_ARG,Rgb<255,14,0>>>,Mix<Int<7710>,Black,RgbArg<BASE_COLOR_ARG,Rgb<255,14,0>>>>,300>,Mix<Int<10280>,Black,RgbArg<BASE_COLOR_ARG,Rgb<255,14,0>>>,0,6,10,1000,2>,TransitionLoopL<TrConcat<TrDelayX<Scale<SlowNoise<Int<1000>>,Int<300>,Int<3000>>>,AlphaL<RgbArg<EMITTER_COLOR_ARG,Rgb<255,68,0>>,Int<0>>,TrSparkX<RgbArg<EMITTER_COLOR_ARG,Rgb<255,68,0>>,Scale<NoisySoundLevel,Int<200>,Int<600>>,Int<250>,Int<0>>>>,AlphaL<RandomPerLEDFlickerL<RgbArg<EMITTER_COLOR_ARG,Rgb<255,68,0>>>,SmoothStep<Scale<NoisySoundLevel,IntArg<EMITTER_SIZE_ARG,2000>,Sum<IntArg<EMITTER_SIZE_ARG,2000>,Int<6000>>>,Int<-6000>>>,InOutTrL<TrWipeSparkTipX<RgbArg<IGNITION_COLOR_ARG,Rgb<255,255,255>>,BendTimePowInvX<IgnitionTime<300>,Mult<IntArg<IGNITION_OPTION2_ARG,10992>,Int<98304>>>>,TrWipeInSparkTipX<RgbArg<RETRACTION_COLOR_ARG,Rgb<255,255,255>>,BendTimePowInvX<RetractionTime<0>,Mult<IntArg<RETRACTION_OPTION2_ARG,10992>,Int<98304>>>>,Black>,TransitionEffectL<TrConcat<TrInstant,AlphaL<BrownNoiseFlickerL<RgbArg<PREON_COLOR_ARG,Rgb<255,14,0>>,Int<30>>,SmoothStep<Scale<SlowNoise<Int<2000>>,IntArg<PREON_SIZE_ARG,2000>,Sum<IntArg<PREON_SIZE_ARG,2000>,Int<4000>>>,Int<-2000>>>,TrDelayX<WavLen<EFFECT_PREON>>>,EFFECT_PREON>>>>>(),
| ^~~~~~~~
In file included from C:\Users\dylan\Desktop\ProffieOS\ProffieOS.ino:621:
C:\Users\dylan\Desktop\ProffieOS\config\kyloconfig.h:152:1: error: expected declaration before ‘}’ token
152 | },
| ^
C:\Users\dylan\Desktop\ProffieOS\config\kyloconfig.h:152:2: error: expected unqualified-id before ‘,’ token
152 | },
| ^
C:\Users\dylan\Desktop\ProffieOS\config\kyloconfig.h:154:1: error: expected unqualified-id before ‘}’ token
154 | };
| ^
C:\Users\dylan\Desktop\ProffieOS\config\kyloconfig.h:154:1: error: expected declaration before ‘}’ token

exit status 1

Compilation error: expected ‘}’ before ‘StylePtr’

Config- // ProffieOS7 Config File#ifdef CONFIG_TOP#include "proffieboard_v2_config.h - Pastebin.com

When I just copy the main blade style to all the blades it uploads fine, it’s only when I create a style under the secondary blade or crystal chamber in the style library do I get this error. Any help is appreciated, still new to this!

You have a bunch of extra commas, the library automatically includes the comma for multiple styles within a preset.

...(),
,

Should be

...(),

Remove all of the extra commas you added or you can use my config tool as it handles syntax for you :wink:

That config was generated using your helper. I have my config set for 6 blades, blade style 1 is the main blade config and I put the side blade config in blade style 2 and 3. Crystal chamber config in style 4 and the accents in 5 and 6. That was the config it generated after adding the styles.

Really? It shouldn’t be adding extra commas, are you pasting directly into the style box or using the button? I’ll have a look at the tool but it’s supposed to handle the commas automatically.

I see what happened, don’t set “Number of Blades” to 2 in Library, it’s doubling your styles up which throws off the syntax check. The “Number of Blades” was a shortcut for building your own config, the config tool sets the number of styles 1 per blade so you paste one style into each slot for the quillions.

I’ll try to write a check into the config tool to prevent but it might take a little while. Just set Number of Blades to 1 in the Side Blade section and regenerate styles and it should work as expected.

I been editing my style in the style library then hitting the “Get Style code” and then pasting that directly into the blade style box on the helper page. Like I said I have 6 different styles so I posted the main blade in the first blade style box, the side blades in 2 and 3, crystal chamber in 4 and accents in 5 and 6 then hitting the generate full config at the bottom of the helper page.

If I just post the main blade style in every blade style box it uploads fine, I just get this error when I create specific styles for the side blades/chamber/accents and try to put them in the appropriate blade style boxes.

I also deleted the extra commas and still get the error.

Do I need to run my board through Zaria again to update the drivers?

No, see my last reply.

That seemed to do the trick, thank you! Slowly learning the ropes. Coming from the the verso board, the learning curve is definitely steep!

1 Like