New blade styles not retracting/turning off

I recently put in some fonts and bladestyles into my sabertrio shoto core, using their 4.2.1preconfig file based on OS7.12.

On some of the new blade styles, the blade is silently on immediately upon selecting the preset and does not turn off when “retracted”. The pre-on effects also don’t work but I guess it wouldn’t if the blade doesn’t turn off

I have tried this posted solution and deleted the preset.inis and stuff but it did not help. I’ve also changed the clash sensitivity, verified “thrust/stab on” was off, changed the retraction color to black, and started over by copy-pasting the styles from fett library but none of my attempts worked.

Pretty new to all this, please help.

Here’s one of the problem styles:

{ "20-Pika;common", "tracks/track_20.wav",
		/*
		 * copyright Fett263 ThunderStorm (Primary Blade) OS7 Style
		 * https://fett263library.com/early-access/#ThunderStorm
		 * OS7.14 v3.01p
		 * Single Style
		 * Base Style: Fire Blade Fast (Normal)
		 * Base Color: BaseColorArg (0)
		 * NOTE:This style includes Control Layer. Only one Control Layer should be used per preset.
		 * This style REQUIRES Alt Fonts alt000/ to alt00-1/ to be set up. Uses altchng.wav on change.
		 * See https://pod.hubbe.net/sound/alt_sounds.html for more information.
		 * --Effects Included--
		 * Ignition Effect: Standard Ignition [Color: IgnitionColorArg]
		 * Retraction Effect: Standard Retraction [Color: RetractionColorArg]
		 * Lockup Effect:
		 * 0: mainLockMulti0Shape - Begin: Real Clash - Style: Intensity AudioFlicker - End: Full Blade Absorb
		 * [Color: LockupColorArg]
		 * Lightning Block Effect:
		 * 0: mainLBMulti0Shape - Begin: Responsive Impact - Style: Strobing AudioFlicker - End: Full Blade Absorb
		 * [Color: LBColorArg]
		 * Drag Effect:
		 * 0: mainDragMulti0Shape - Begin: Wipe In - Style: Intensity Sparking Drag - End: Wipe Out
		 * [Color: DragColorArg]
		 * Melt Effect:
		 * 0: mainMeltMulti0Shape - Begin: Wipe In - Style: Intensity Melt - End: Wipe Out
		 * [Color: StabColorArg]
		 * Blast Effect: Blast Wave (Random) [Color: BlastColorArg]
		 * Clash Effect: Real Clash V1 [Color: ClashColorArg]
		 * Special Ability 1: Play Quote
		 */
		StylePtr<Layers<
		  Layers<
		    TransitionLoop<RgbArg<BASE_COLOR_ARG,Yellow>,TrConcat<TrBoing<500,3>,Layers<
		      Stripes<10000,100,Mix<Int<16384>,Black,RgbArg<BASE_COLOR_ARG,Yellow>>,Mix<Int<3855>,Black,RgbArg<BASE_COLOR_ARG,Yellow>>,Mix<Int<25700>,Black,RgbArg<BASE_COLOR_ARG,Yellow>>>,
		      AlphaL<Stripes<8000,-200,RgbArg<BASE_COLOR_ARG,Yellow>,Mix<Int<7710>,Black,RgbArg<BASE_COLOR_ARG,Yellow>>>,Int<16384>>>,TrDelayX<Scale<SlowNoise<Int<3000>>,Int<100>,Int<2000>>>>>,
		    TransitionLoopL<TrConcat<TrWipe<200>,RandomBlinkL<Int<30000>,White>,TrJoin<TrDelayX<Scale<SlowNoise<Int<3000>>,Int<300>,Int<3000>>>,TrWipe<200>>>>>,
		  ColorSelect<EffectIncrementF<EFFECT_USER3,Int<2>>,TrFade<100>,AlphaL<White,Int<0>>,AlphaL<RgbArg<RETRACTION_COLOR_ARG,White>,SparkleF<300,800>>>,
		  ColorSelect<EffectIncrementF<EFFECT_USER3,Int<2>>,TrFade<100>,AlphaL<RgbArg<RETRACTION_COLOR_ARG,White>,Int<0>>,TransitionLoopL<TrSelect<EffectIncrementF<EFFECT_USER3,Int<2>>,TrInstant,TrRandom<TrConcat<TrDoEffect<TrInstant,EFFECT_TRANSITION_SOUND,1>,AlphaL<RgbArg<RETRACTION_COLOR_ARG,White>,Int<0>>,TrWipeInX<Divide<WavLen<EFFECT_TRANSITION_SOUND>,Int<2>>>,BrownNoiseFlickerL<RgbArg<RETRACTION_COLOR_ARG,White>,Int<200>>,TrExtendX<Scale<SlowNoise<Int<100>>,Int<1000>,Int<4500>>,TrWipeInX<Divide<WavLen<EFFECT_TRANSITION_SOUND>,Int<2>>>>>,TrConcat<TrDoEffect<TrInstant,EFFECT_TRANSITION_SOUND,1>,AlphaL<RgbArg<RETRACTION_COLOR_ARG,White>,Int<0>>,TrWipeX<Divide<WavLen<EFFECT_TRANSITION_SOUND>,Int<2>>>,BrownNoiseFlickerL<RgbArg<RETRACTION_COLOR_ARG,White>,Int<200>>,TrExtendX<Scale<SlowNoise<Int<100>>,Int<1000>,Int<4500>>,TrWipeX<Divide<WavLen<EFFECT_TRANSITION_SOUND>,Int<2>>>>>>>>>>>(),
		StylePtr<Layers<HumpFlicker<RgbArg<BASE_COLOR_ARG,Rgb<115,15,240>>,Mix<Int<16448>,Black,RgbArg<BASE_COLOR_ARG,Rgb<115,15,240>>>,120>,InOutTrL<TrWipeX<IgnitionTime<0>>,TrInstant,Pulsing<Black,RgbArg<BASE_COLOR_ARG,Rgb<115,15,240>>,2000>>>>(),
		"Pika"
	},

Shortened config file; having issues with styles 19 (BMF) to 22 (Keyblade).
s3configcrucible.h (34.8 KB)

What version of the arduino-proffieboard plugin do you have?

Version 3.6 > arduino uno > proffieboard v3

Sorry, its version 4.6

Are you sure you pasted the entire style?
It seems suspiciously short and doesn’t seem to include an InOutTrL, layer.
@Fett263, does this seem normal to you?

No, I’m not entirely sure but the code I pasted in the top comment has been reworked with proffieConfig since it wasn’t compiling properly.

/* copyright Fett263 ThunderStorm (Primary Blade) OS7 Style
https://fett263library.com/early-access/#ThunderStorm
OS7.14 v3.01p
Single Style
Base Style: Fire Blade Fast (Normal)

Base Color: BaseColorArg (0)

NOTE:This style includes Control Layer. Only one Control Layer should be used per preset.

*This style REQUIRES Alt Fonts alt000/ to alt00-1/ to be set up. Uses altchng.wav on change.
See https://pod.hubbe.net/sound/alt_sounds.html for more information.
--Effects Included--
Ignition Effect: Standard Ignition [Color: IgnitionColorArg]
Retraction Effect: Standard Retraction [Color: RetractionColorArg]
Lockup Effect:
0: mainLockMulti0Shape - Begin: Real Clash - Style: Intensity AudioFlicker - End: Full Blade Absorb
[Color: LockupColorArg]
Lightning Block Effect:
0: mainLBMulti0Shape - Begin: Responsive Impact - Style: Strobing AudioFlicker - End: Full Blade Absorb
[Color: LBColorArg]
Drag Effect:
0: mainDragMulti0Shape - Begin: Wipe In - Style: Intensity Sparking Drag - End: Wipe Out
[Color: DragColorArg]
Melt Effect:
0: mainMeltMulti0Shape - Begin: Wipe In - Style: Intensity Melt - End: Wipe Out
[Color: StabColorArg]
Blast Effect: Blast Wave (Random) [Color: BlastColorArg]
Clash Effect: Real Clash V1 [Color: ClashColorArg]
Special Ability 1: Play Quote
Special Ability 2: Next Quote
Special Ability 3: Toggle Rain and Lightning Mode (Random Bolt) Uses trloop01.wav or trloop/001/000.wav (rain sounds looped) and tr01.wav or tr/001/000.wav (thunder or lightning strike)
Special Ability 4: Toggle Swing Change (Random / Party Mode) Uses tr00.wav or tr/000/000.wav on toggle (mechanical or menu sound)

*/
StylePtr<Layers<
Layers<TransitionLoop<RgbArg<BASE_COLOR_ARG,Rgb<255,255,0>>,TrConcat<TrBoing<500,3>,
Layers<Stripes<10000,100,Mix<Int<16384>,Black,RgbArg<BASE_COLOR_ARG,Rgb<255,255,0>>>,Mix<Int<3855>,Black,RgbArg<BASE_COLOR_ARG,Rgb<255,255,0>>>,Mix<Int<25700>,Black,RgbArg<BASE_COLOR_ARG,Rgb<255,255,0>>>>,AlphaL<Stripes<8000,-200,RgbArg<BASE_COLOR_ARG,Rgb<255,255,0>>,Mix<Int<7710>,Black,RgbArg<BASE_COLOR_ARG,Rgb<255,255,0>>>>,Int<16384>>>,TrDelayX<Scale<SlowNoise<Int<3000>>,Int<100>,Int<2000>>>>>,TransitionLoopL<TrConcat<TrWipe<200>,RandomBlinkL<Int<30000>,White>,TrJoin<TrDelayX<Scale<SlowNoise<Int<3000>>,Int<300>,Int<3000>>>,TrWipe<200>>>>>,ColorSelect<EffectIncrementF<EFFECT_USER3,Int<2>>,TrFade<100>,AlphaL<White,Int<0>>,AlphaL<RgbArg<RETRACTION_COLOR_ARG,Rgb<255,255,255>>,SparkleF<300,800>>>,ColorSelect<EffectIncrementF<EFFECT_USER3,Int<2>>,TrFade<100>,AlphaL<RgbArg<RETRACTION_COLOR_ARG,Rgb<255,255,255>>,Int<0>>,TransitionLoopL<TrSelect<EffectIncrementF<EFFECT_USER3,Int<2>>,TrInstant,TrRandom<TrConcat<TrDoEffect<TrInstant,EFFECT_TRANSITION_SOUND,1>,AlphaL<RgbArg<RETRACTION_COLOR_ARG,Rgb<255,255,255>>,Int<0>>,TrWipeInX<Divide<WavLen<EFFECT_TRANSITION_SOUND>,Int<2>>>,BrownNoiseFlickerL<RgbArg<RETRACTION_COLOR_ARG,Rgb<255,255,255>>,Int<200>>,TrExtendX<Scale<SlowNoise<Int<100>>,Int<1000>,Int<4500>>,TrWipeInX<Divide<WavLen<EFFECT_TRANSITION_SOUND>,Int<2>>>>>,TrConcat<TrDoEffect<TrInstant,EFFECT_TRANSITION_SOUND,1>,AlphaL<RgbArg<RETRACTION_COLOR_ARG,Rgb<255,255,255>>,Int<0>>,TrWipeX<Divide<WavLen<EFFECT_TRANSITION_SOUND>,Int<2>>>,BrownNoiseFlickerL<RgbArg<RETRACTION_COLOR_ARG,Rgb<255,255,255>>,Int<200>>,TrExtendX<Scale<SlowNoise<Int<100>>,Int<1000>,Int<4500>>,TrWipeX<Divide<WavLen<EFFECT_TRANSITION_SOUND>,Int<2>>>>>>>>>>,TransitionEffectL<TrDoEffectAlwaysX<TrInstant,EFFECT_QUOTE,Int<-1>,Int<-1>>,EFFECT_USER1>,TransitionEffectL<TrDoEffectAlwaysX<TrInstant,EFFECT_NEXT_QUOTE,Int<-1>,Int<-1>>,EFFECT_USER2>,TransitionEffectL<TrDoEffect<TrInstant,EFFECT_SOUND_LOOP,1>,EFFECT_USER3>,TransitionPulseL<TrSelect<IncrementModuloF<EffectPulseF<EFFECT_USER4>,Int<2>>,TrInstant,TrDoEffectX<TrInstant,EFFECT_ALT_SOUND,ModF<Sum<AltF,Scale<RandomF,Int<1>,Int<-1>>>,Int<0>>,Int<-1>>>,ThresholdPulseF<SwingSpeed<320>,Int<31000>>>,TransitionEffectL<TrDoEffectX<TrInstant,EFFECT_TRANSITION_SOUND,Int<0>,Int<-1>>,EFFECT_USER4>,TransitionEffectL<TrWaveX<RgbArg<BLAST_COLOR_ARG,Rgb<0,255,255>>,Scale<EffectRandomF<EFFECT_BLAST>,Int<100>,Int<400>>,Int<100>,Scale<EffectPosition<EFFECT_BLAST>,Int<100>,Int<400>>,Scale<EffectPosition<EFFECT_BLAST>,Int<28000>,Int<8000>>>,EFFECT_BLAST>,Mix<IsLessThan<ClashImpactF<>,Int<26000>>,TransitionEffectL<TrConcat<TrInstant,AlphaL<RgbArg<CLASH_COLOR_ARG,Rgb<0,255,255>>,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<0,255,255>>,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<TransitionEffect<AlphaL<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<22000>>>,AudioFlicker<RgbArg<LOCKUP_COLOR_ARG,Rgb<0,135,255>>,Mix<Int<12000>,Black,RgbArg<LOCKUP_COLOR_ARG,Rgb<0,135,255>>>>,BrownNoiseFlicker<RgbArg<LOCKUP_COLOR_ARG,Rgb<0,135,255>>,Mix<Int<12000>,Black,RgbArg<LOCKUP_COLOR_ARG,Rgb<0,135,255>>>,300>>,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<22000>>>>,AlphaL<AudioFlicker<RgbArg<LOCKUP_COLOR_ARG,Rgb<0,135,255>>,Mix<Int<20000>,Black,RgbArg<LOCKUP_COLOR_ARG,Rgb<0,135,255>>>>,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>>>>,TrExtend<5000,TrInstant>,TrFade<5000>,EFFECT_LOCKUP_BEGIN>,TrConcat<TrJoin<TrDelay<50>,TrInstant>,Mix<IsLessThan<ClashImpactF<>,Int<26000>>,RgbArg<LOCKUP_COLOR_ARG,Rgb<0,135,255>>,AlphaL<RgbArg<LOCKUP_COLOR_ARG,Rgb<0,135,255>>,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>>>>>,TrFade<300>>,TrConcat<TrInstant,RgbArg<LOCKUP_COLOR_ARG,Rgb<0,135,255>>,TrFade<400>>,SaberBase::LOCKUP_NORMAL,Int<1>>,ResponsiveLightningBlockL<Strobe<RgbArg<LB_COLOR_ARG,Rgb<0,255,255>>,AudioFlicker<RgbArg<LB_COLOR_ARG,Rgb<0,255,255>>,Blue>,50,1>,TrConcat<TrExtend<200,TrInstant>,AlphaL<RgbArg<LB_COLOR_ARG,Rgb<0,255,255>>,Bump<Scale<BladeAngle<>,Int<10000>,Int<21000>>,Int<10000>>>,TrFade<200>>,TrConcat<TrInstant,RgbArg<LB_COLOR_ARG,Rgb<0,255,255>>,TrFade<400>>,Int<1>>,LockupTrL<AlphaL<TransitionEffect<RandomPerLEDFlickerL<RgbArg<DRAG_COLOR_ARG,Rgb<0,0,255>>>,BrownNoiseFlickerL<RgbArg<DRAG_COLOR_ARG,Rgb<0,0,255>>,Int<300>>,TrExtend<4000,TrInstant>,TrFade<4000>,EFFECT_DRAG_BEGIN>,SmoothStep<Scale<TwistAngle<>,IntArg<DRAG_SIZE_ARG,28000>,Int<30000>>,Int<3000>>>,TrWipeIn<200>,TrWipe<200>,SaberBase::LOCKUP_DRAG,Int<1>>,LockupTrL<AlphaL<Stripes<2000,4000,Mix<TwistAngle<>,RgbArg<STAB_COLOR_ARG,Rgb<255,68,0>>,RotateColorsX<Int<3000>,RgbArg<STAB_COLOR_ARG,Rgb<255,68,0>>>>,Mix<Sin<Int<50>>,Black,Mix<TwistAngle<>,RgbArg<STAB_COLOR_ARG,Rgb<255,68,0>>,RotateColorsX<Int<3000>,RgbArg<STAB_COLOR_ARG,Rgb<255,68,0>>>>>,Mix<Int<4096>,Black,Mix<TwistAngle<>,RgbArg<STAB_COLOR_ARG,Rgb<255,68,0>>,RotateColorsX<Int<3000>,RgbArg<STAB_COLOR_ARG,Rgb<255,68,0>>>>>>,SmoothStep<Scale<TwistAngle<>,IntArg<MELT_SIZE_ARG,28000>,Int<30000>>,Int<3000>>>,TrConcat<TrExtend<4000,TrWipeIn<200>>,AlphaL<HumpFlicker<Mix<TwistAngle<>,RgbArg<STAB_COLOR_ARG,Rgb<255,68,0>>,RotateColorsX<Int<3000>,RgbArg<STAB_COLOR_ARG,Rgb<255,68,0>>>>,RotateColorsX<Int<3000>,Mix<TwistAngle<>,RgbArg<STAB_COLOR_ARG,Rgb<255,68,0>>,RotateColorsX<Int<3000>,RgbArg<STAB_COLOR_ARG,Rgb<255,68,0>>>>>,100>,SmoothStep<Scale<TwistAngle<>,IntArg<MELT_SIZE_ARG,28000>,Int<30000>>,Int<3000>>>,TrFade<4000>>,TrWipe<200>,SaberBase::LOCKUP_MELT,Int<1>>,InOutTrL<TrWipeX<BendTimePowInvX<IgnitionTime<300>,Mult<IntArg<IGNITION_OPTION2_ARG,10992>,Int<98304>>>>,TrWipeInX<BendTimePowX<RetractionTime<0>,Mult<IntArg<RETRACTION_OPTION2_ARG,10992>,Int<98304>>>>,Black>>>(),

^ is the copy pasted one and it had the same issue.

I also checked in notepad++ and the inouttrl is in there. It’s just been condensed into 1 line.

No, that code has been modified outside the library and doesn’t line up with the comments.

I would recommend regenerating the style in the library and pasting as-is. Whoever modified removed multiple layers including the InOutTrL<>.

1 Like

I regenerated the code. And while it didn’t fix the issue, I did figure out what happened:
Under Custom Special Ability Control Layers>Special Ability 2, I had Toggle Rain and Lightning Mode (Random Bolt) turned on. It turned on the preview saber despite my having turned it off earlier.

Changed it to Toggle Rain and Lightning Mode (Alternate Bolt) and the preview saber retracted. Pasted that and everything worked.

Also had some issues with PreOn and PostOff but saw this thread and fixed it by making a preon1.wav and pstoff1.wav.

Thank you @profezzorn and @Fett263 for you help!

So it appears there is a bug in this special ability option, but that doesn’t explain how you were able to upload. The style should have kicked an error and the code you posted above was modified from the output of the library which obscured the error. At any rate, I have an update underway for the library that will include a fix for this option but I have to finish other pieces before it’s available.

2 Likes

I was only able to upload the first time with @ryryog25 ’s help. It did indeed show errors on every line of code with that special ability selected.

The error I got was:
Operation expected something before “)”.

Sorry, not at home, will update with error as soon as I can and hopefully other people can search it.

So, if you get errors from the library code in the future, post it in the “Questions or Issues” thread linked from the top of the library rather than trying to edit yourself. This way I can see the actual cause. Once you edit or modify the code I can no longer tell if it’s something in the library or something the user did.

This instance I was able to find the issue, but the code you posted was incomplete so it obscured what was causing making it less obvious.