Upload problem (fixed)

I just fixed it and there’s still an error

I suggest cutting every preset into a separate file and try copying back step by step.
At the end for example you seem to be missing lots of the information for preset 7. You are closing “}” prematurely often.
As I said the “mace” one looks the most correct.

I figured using the example config would help just changing the blade numbers since I have one blade and one button. I put all my fonts and blade styles I dont get why it wont work.

https://pastebin.com/3JnasKa

Arduino: 1.8.19 (Windows 10), Board: "Proffieboard V2, Serial + WebUSB, SDCARD (SPI), 80 MHz, Smallest Code"

In file included from C:\Users\andre\OneDrive\Desktop\ProffieOS-v6.5\ProffieOS\ProffieOS.ino:564:

C:\Users\andre\OneDrive\Desktop\ProffieOS-v6.5\ProffieOS\config\graflex_config.h:215:1: error: expected unqualified-id before string constant

  215 | "preset 5"

      | ^~~~~~~~~~

C:\Users\andre\OneDrive\Desktop\ProffieOS-v6.5\ProffieOS\config\graflex_config.h:216:1: error: expected declaration before '}' token

  216 | },

      | ^

C:\Users\andre\OneDrive\Desktop\ProffieOS-v6.5\ProffieOS\config\graflex_config.h:216:2: error: expected unqualified-id before ',' token

  216 | },

      |  ^

C:\Users\andre\OneDrive\Desktop\ProffieOS-v6.5\ProffieOS\config\graflex_config.h:218:1: error: expected unqualified-id before '{' token

  218 | { "F1_Racer;common", "F1_Racer/tracks/racer1.wav",

      | ^

In file included from C:\Users\andre\OneDrive\Desktop\ProffieOS-v6.5\ProffieOS\ProffieOS.ino:564:

C:\Users\andre\OneDrive\Desktop\ProffieOS-v6.5\ProffieOS\config\graflex_config.h:240: error: expected unqualified-id before ',' token

  240 | StylePtr<Layers<ColorSelect<IntArg<STYLE_OPTION_ARG,0>,TrInstant,Stripes<5000,-1500,RgbArg<BASE_COLOR_ARG,Rgb<255,255,0>>,Mix<Int<7710>,Black,RgbArg<BASE_COLOR_ARG,Rgb<255,255,0>>>,Mix<Int<6425>,RgbArg<BASE_COLOR_ARG,Rgb<255,255,0>>,White>,Mix<Int<16384>,Black,RgbArg<BASE_COLOR_ARG,Rgb<255,255,0>>>>,Stripes<6000,-3000,Mix<Int<16448>,Black,RgbArg<BASE_COLOR_ARG,Rgb<255,255,0>>>,RgbArg<BASE_COLOR_ARG,Rgb<255,255,0>>,Mix<Int<7710>,Black,RgbArg<BASE_COLOR_ARG,Rgb<255,255,0>>>>>,TransitionEffectL<TrConcat<TrExtendX<WavLen<>,TrWipeIn<200>>,AlphaL<RgbArg<STAB_COLOR_ARG,Rgb<255,14,0>>,SmoothStep<IntArg<MELT_SIZE_ARG,26000>,Int<2000>>>,TrWipe<200>>,EFFECT_STAB>,MultiTransitionEffectL<TrRandom<TrConcat<TrInstant,AlphaMixL<Bump<EffectPosition<>,Scale<EffectRandomF<EFFECT_BLAST>,Int<9000>,Int<12000>>>,RgbArg<BLAST_COLOR_ARG,Rgb<255,187,108>>,Mix<Int<16384>,Black,RgbArg<BLAST_COLOR_ARG,Rgb<255,187,108>>>>,TrFade<300>>,TrConcat<TrInstant,AlphaMixL<Bump<Scale<BladeAngle<>,Int<28000>,Int<000>>,Scale<WavLen<>,Int<9000>,Int<13000>>>,RgbArg<BLAST_COLOR_ARG,Rgb<255,187,108>>,Mix<Int<16384>,Black,RgbArg<BLAST_COLOR_ARG,Rgb<255,187,108>>>>,TrFade<300>>,TrConcat<TrInstant,AlphaMixL<Bump<EffectPosition<>,Scale<WavLen<>,Int<9000>,Int<12000>>>,RgbArg<BLAST_COLOR_ARG,Rgb<255,187,108>>,Mix<Int<16384>,Black,RgbArg<BLAST_COLOR_ARG,Rgb<255,187,108>>>>,TrFade<300>>,TrConcat<TrInstant,AlphaMixL<Bump<Scale<BladeAngle<>,Int<28000>,Int<8000>>,Scale<EffectRandomF<EFFECT_BLAST>,Int<9000>,Int<13000>>>,RgbArg<BLAST_COLOR_ARG,Rgb<255,187,108>>,Mix<Int<16384>,Black,RgbArg<BLAST_COLOR_ARG,Rgb<255,187,108>>>>,TrFade<300>>>,EFFECT_BLAST>,Mix<IsLessThan<ClashImpactF<>,Int<26000>>,TransitionEffectL<TrConcat<TrInstant,AlphaL<RgbArg<CLASH_COLOR_ARG,Rgb<255,187,108>>,Bump<Scale<BladeAngle<>,Scale<BladeAngle<0,16000>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<-12000>>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<10000>>>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<-10000>>>,Scale<ClashImpactF<>,Int<12000>,Int<60000>>>>,TrFadeX<Scale<ClashImpactF<>,Int<200>,Int<400>>>>,EFFECT_CLASH>,TransitionEffectL<TrWaveX<RgbArg<CLASH_COLOR_ARG,Rgb<255,187,108>>,Scale<ClashImpactF<>,Int<100>,Int<400>>,Int<100>,Scale<ClashImpactF<>,Int<100>,Int<400>>,Scale<BladeAngle<>,Scale<BladeAngle<0,16000>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<-12000>>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<10000>>>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<-10000>>>>,EFFECT_CLASH>>,LockupTrL<AlphaMixL<Bump<Scale<BladeAngle<>,Scale<BladeAngle<0,16000>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<-12000>>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<10000>>>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<-10000>>>,Scale<SwingSpeed<100>,Int<14000>,Int<18000>>>,BrownNoiseFlickerL<RgbArg<LOCKUP_COLOR_ARG,Rgb<255,187,108>>,Int<200>>,StripesX<Int<1800>,Scale<NoisySoundLevel,Int<-3500>,Int<-5000>>,Mix<Int<6425>,Black,RgbArg<LOCKUP_COLOR_ARG,Rgb<255,187,108>>>,RgbArg<LOCKUP_COLOR_ARG,Rgb<255,187,108>>,Mix<Int<12850>,Black,RgbArg<LOCKUP_COLOR_ARG,Rgb<255,187,108>>>>>,TrConcat<TrExtend<50,TrInstant>,Mix<IsLessThan<ClashImpactF<>,Int<26000>>,RgbArg<LOCKUP_COLOR_ARG,Rgb<255,187,108>>,AlphaL<RgbArg<LOCKUP_COLOR_ARG,Rgb<255,187,108>>,Bump<Scale<BladeAngle<>,Scale<BladeAngle<0,16000>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<-12000>>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<10000>>>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<-10000>>>,Scale<ClashImpactF<>,Int<20000>,Int<60000>>>>>,TrExtend<3000,TrFade<300>>,AlphaL<AudioFlicker<RgbArg<LOCKUP_COLOR_ARG,Rgb<255,187,108>>,Mix<Int<10280>,Black,RgbArg<LOCKUP_COLOR_ARG,Rgb<255,187,108>>>>,Bump<Scale<BladeAngle<>,Scale<BladeAngle<0,16000>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<-12000>>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<10000>>>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<-10000>>>,Int<13000>>>,TrFade<3000>>,TrConcat<TrInstant,AlphaL<RgbArg<LOCKUP_COLOR_ARG,Rgb<255,187,108>>,Int<0>>,TrSelect<Scale<IsLessThan<ClashImpactF<>,Int<20000>>,Int<1>,Int<0>>,TrWaveX<RgbArg<LOCKUP_COLOR_ARG,Rgb<255,187,108>>,Scale<ClashImpactF<>,Int<50>,Int<400>>,Int<100>,Scale<ClashImpactF<>,Int<500>,Int<300>>,Scale<BladeAngle<>,Scale<BladeAngle<0,16000>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<-12000>>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<10000>>>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<-10000>>>>,TrSparkX<Remap<CenterDistF<Scale<BladeAngle<>,Scale<BladeAngle<0,16000>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<-12000>>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<10000>>>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<-10000>>>>,Stripes<1200,-3600,Mix<Int<6425>,Black,RgbArg<LOCKUP_COLOR_ARG,Rgb<255,187,108>>>,RgbArg<LOCKUP_COLOR_ARG,Rgb<255,187,108>>,Mix<Int<12850>,Black,RgbArg<LOCKUP_COLOR_ARG,Rgb<255,187,108>>>>>,Int<30>,Scale<Sum<ClashImpactF<>,SwingSpeed<600>>,Int<100>,Int<400>>,Scale<BladeAngle<>,Scale<BladeAngle<0,16000>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<-12000>>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<10000>>>,Sum<IntArg<LOCKUP_POSITION_ARG,16000>,Int<-10000>>>>>>,SaberBase::LOCKUP_NORMAL>,ResponsiveLightningBlockL<Strobe<RgbArg<LB_COLOR_ARG,Rgb<255,255,255>>,AudioFlicker<RgbArg<LB_COLOR_ARG,Rgb<255,255,255>>,Blue>,50,1>,TrConcat<TrInstant,AlphaL<RgbArg<LB_COLOR_ARG,Rgb<255,255,255>>,Bump<Int<12000>,Int<18000>>>,TrFade<200>>,TrConcat<TrInstant,HumpFlickerL<AlphaL<RgbArg<LB_COLOR_ARG,Rgb<255,255,255>>,Int<16000>>,30>,TrSmoothFade<600>>>,LockupTrL<AlphaL<RandomPerLEDFlickerL<RgbArg<DRAG_COLOR_ARG,Rgb<255,14,0>>>,SmoothStep<IntArg<DRAG_SIZE_ARG,26000>,Int<3000>>>,TrConcat<TrExtend<4000,TrWipeIn<200>>,AlphaL<BrownNoiseFlickerL<RgbArg<DRAG_COLOR_ARG,Rgb<255,14,0>>,Int<300>>,SmoothStep<IntArg<DRAG_SIZE_ARG,26000>,Int<3000>>>,TrFade<4000>>,TrFade<300>,SaberBase::LOCKUP_DRAG>,LockupTrL<AlphaL<Remap<Scale<RampF,Int<65536>,Int<0>>,StaticFire<Mix<TwistAngle<>,OrangeRed,DarkOrange>,Mix<TwistAngle<>,OrangeRed,Orange>,0,3,5,3000,10>>,SmoothStep<IntArg<MELT_SIZE_ARG,26000>,Int<4000>>>,TrConcat<TrWipeIn<100>,AlphaL<Red,SmoothStep<IntArg<MELT_SIZE_ARG,26000>,Int<4000>>>,TrExtend<4000,TrFade<300>>,AlphaL<Mix<TwistAngle<>,Red,Orange>,SmoothStep<IntArg<MELT_SIZE_ARG,26000>,Int<4000>>>,TrFade<4000>>,TrWipe<200>,SaberBase::LOCKUP_MELT>,InOutTrL<TrSelect<IntArg<IGNITION_OPTION_ARG,0>,TrWipeX<Scale<IsLessThan<BladeAngle<>,Int<16000>>,Mult<IgnitionTime<200>,Int<16384>>,IgnitionTime<200>>>,TrWipeX<IgnitionTime<200>>,TrWipeSparkTipX<RgbArg<IGNITION_COLOR_ARG,Rgb<255,255,255>>,IgnitionTime<200>>>,TrSelect<IntArg<RETRACTION_OPTION_ARG,0>,TrWipeInX<Scale<IsLessThan<BladeAngle<>,Int<16000>>,RetractionTime<500>,Mult<RetractionTime<500>,Int<16384>>>>,TrWipeInX<RetractionTime<500>>>,Black>,TransitionEffectL<TrConcat<TrExtend<2000,TrWipe<1000>>,AlphaL<Mix<BatteryLevel,Red,Green>,SmoothStep<BatteryLevel,Int<-10>>>,TrWipeIn<1000>>,EFFECT_BATTERY_LEVEL>,TransitionEffectL<TrConcat<TrExtend<2000,TrInstant>,AlphaL<Mix<BatteryLevel,Red,Green>,SmoothStep<IntArg<EMITTER_SIZE_ARG,2000>,Int<-4000>>>,TrFade<300>>,EFFECT_BOOT>,TransitionEffectL<TrConcat<TrExtend<2000,TrInstant>,AlphaL<Mix<BatteryLevel,Red,Green>,SmoothStep<IntArg<EMITTER_SIZE_ARG,2000>,Int<-4000>>>,TrFade<300>>,EFFECT_NEWFONT>>>()},

      | 

In file included from C:\Users\andre\OneDrive\Desktop\ProffieOS-v6.5\ProffieOS\ProffieOS.ino:564:

C:\Users\andre\OneDrive\Desktop\ProffieOS-v6.5\ProffieOS\config\graflex_config.h:242:1: error: expected unqualified-id before string constant

  242 | "preset 6"

      | ^~~~~~~~~~

C:\Users\andre\OneDrive\Desktop\ProffieOS-v6.5\ProffieOS\config\graflex_config.h:243:1: error: expected declaration before '}' token

  243 | },

      | ^

C:\Users\andre\OneDrive\Desktop\ProffieOS-v6.5\ProffieOS\config\graflex_config.h:243:2: error: expected unqualified-id before ',' token

  243 | },

      |  ^

C:\Users\andre\OneDrive\Desktop\ProffieOS-v6.5\ProffieOS\config\graflex_config.h:246:1: error: expected unqualified-id before string constant

  246 | "preset 7"

      | ^~~~~~~~~~

C:\Users\andre\OneDrive\Desktop\ProffieOS-v6.5\ProffieOS\config\graflex_config.h:247:1: error: expected declaration before '}' token

  247 | },

      | ^

C:\Users\andre\OneDrive\Desktop\ProffieOS-v6.5\ProffieOS\config\graflex_config.h:247:2: error: expected unqualified-id before ',' token

  247 | },

      |  ^

C:\Users\andre\OneDrive\Desktop\ProffieOS-v6.5\ProffieOS\config\graflex_config.h:249:1: error: expected unqualified-id before '}' token

  249 | };

      | ^

C:\Users\andre\OneDrive\Desktop\ProffieOS-v6.5\ProffieOS\config\graflex_config.h:249:1: error: expected declaration before '}' token

exit status 1

Error compiling for board Proffieboard V2.



This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

that pastebin link doesn’t work for me

Last pastebin link is a 404, my input is to the one before:

For a lot of your presets you close the preset right after the

Style PTR<...>()} //"}" Closes preset

When in fact there should still be a string in between:

Style PTR<...>(),
"Preset X"
} //"}" Closes preset

Further down the code you even have just “preset 5” and “preset 7” there without much more to it. That has to go.

Mace now looks good.
Line 70, 97, 124 and 151 need sth between “()” and “}”.
E.g.

...(),
"texthere"
}

Also remove “}” from line 208 and 240.
Delete lines with “preset 5” + following as well as line with “preset 7” and following.

In general you can also count opening and closing brackets/parentheses.
Every “(”, “{”, “<” and “[” need their
“)”, “}”, “>” and “]” respectively.
If they are not equal, sth is off.

Arduino: 1.8.19 (Windows 10), Board: "Proffieboard V2, Serial + WebUSB, SDCARD (SPI), 80 MHz, Smallest Code"

In file included from C:\Users\andre\OneDrive\Desktop\ProffieOS-v6.5\ProffieOS\ProffieOS.ino:564:

C:\Users\andre\OneDrive\Desktop\ProffieOS-v6.5\ProffieOS\config\graflex_config.h:234:2: error: expected '}' before ';' token

  234 | };

      |  ^

In file included from C:\Users\andre\OneDrive\Desktop\ProffieOS-v6.5\ProffieOS\ProffieOS.ino:564:

C:\Users\andre\OneDrive\Desktop\ProffieOS-v6.5\ProffieOS\config\graflex_config.h:181:1: note: to match this '{'

  181 | { "ROTS_Obicommon", "ROTS_Obi/tracks/Anakin vs Obi.wav",

      | ^

In file included from C:\Users\andre\OneDrive\Desktop\ProffieOS-v6.5\ProffieOS\ProffieOS.ino:564:

C:\Users\andre\OneDrive\Desktop\ProffieOS-v6.5\ProffieOS\config\graflex_config.h:234:2: error: expected '}' before ';' token

  234 | };

      |  ^

In file included from C:\Users\andre\OneDrive\Desktop\ProffieOS-v6.5\ProffieOS\ProffieOS.ino:564:

C:\Users\andre\OneDrive\Desktop\ProffieOS-v6.5\ProffieOS\config\graflex_config.h:153:1: note: to match this '{'

  153 | { "Mace;common", "Mace/tracks/Order66.wav",

      | ^

In file included from C:\Users\andre\OneDrive\Desktop\ProffieOS-v6.5\ProffieOS\ProffieOS.ino:564:

C:\Users\andre\OneDrive\Desktop\ProffieOS-v6.5\ProffieOS\config\graflex_config.h:234:2: error: expected '}' before ';' token

  234 | };

      |  ^

In file included from C:\Users\andre\OneDrive\Desktop\ProffieOS-v6.5\ProffieOS\ProffieOS.ino:564:

C:\Users\andre\OneDrive\Desktop\ProffieOS-v6.5\ProffieOS\config\graflex_config.h:43:20: note: to match this '{'

   43 | Preset presets[] = {

      |                    ^

In file included from C:\Users\andre\OneDrive\Desktop\ProffieOS-v6.5\ProffieOS\ProffieOS.ino:564:

C:\Users\andre\OneDrive\Desktop\ProffieOS-v6.5\ProffieOS\config\graflex_config.h:234:2: error: cannot convert '<brace-enclosed initializer list>' to 'const char*' in initialization

  234 | };

      |  ^

exit status 1

Error compiling for board Proffieboard V2.



This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

something is just wrong something small that continues the errors

No, now you deleted the text for your “mace” style and lost the closing “}” there.
Sry, need to sleep. But you are missing sor deleting things at the wrong spot.

Im done with this im just trying to use this thing and be happy I guess Ill ask questions tomorrow. I know its annoying im just trying to learn…

Try adding “}” in line 178 between () and ,

Seems like that text is not mandatory.
Same goes for the 2 following presets.

Don’t worry, I am pretty sure that happens by accident. When you try fixing one thing, you are accidentally creating an issue somewhere else.

yea its aggravating

You are at least missing the closing “}” for the last 3 presets (Mace and onwards)

1 Like

the closing for the end of the blade style right?

Preset. That contains the name, the track path and the style(s).
Just compare to the others before.

1 Like

Cannot open DFU device 0483:df11