#Trouble with Sabertrio Proffie Config

38 messages · Page 1 of 1 (latest)

south nova
#

Hi. Just got a reaver with a proffie v3.9, and i'm having trouble with the configuration file for it.

Uploaded is my config file, and here's the copypaste of the error :

In file included from C:\Users\Alonzo\Desktop\Reaver Backup\extra\ProffieOS\ProffieOS.ino:605:
C:\Users\Alonzo\Desktop\Reaver Backup\extra\ProffieOS\config\reaver.h:2775:3: error: expected '}' before string constant
 2775 |   "ignition"
      |   ^~~~~~~~~~
C:\Users\Alonzo\Desktop\Reaver Backup\extra\ProffieOS\config\reaver.h:2696:3: note: to match this '{'
 2696 |   { "31-IGNITION;common", "tracks/track_31.wav",
      |   ^
C:\Users\Alonzo\Desktop\Reaver Backup\extra\ProffieOS\config\reaver.h:2775:3: error: expected '}' before string constant
 2775 |   "ignition"
      |   ^~~~~~~~~~
C:\Users\Alonzo\Desktop\Reaver Backup\extra\ProffieOS\config\reaver.h:53:18: note: to match this '{'
   53 | Preset blade[] = {
      |                  ^
C:\Users\Alonzo\Desktop\Reaver Backup\extra\ProffieOS\config\reaver.h:2775:3: error: expected ',' or ';' before string constant
 2775 |   "ignition"
      |   ^~~~~~~~~~
C:\Users\Alonzo\Desktop\Reaver Backup\extra\ProffieOS\config\reaver.h:2776:3: error: expected declaration before '}' token
 2776 |   },
      |   ^
C:\Users\Alonzo\Desktop\Reaver Backup\extra\ProffieOS\config\reaver.h:2776:4: error: expected unqualified-id before ',' token
 2776 |   },
      |    ^
C:\Users\Alonzo\Desktop\Reaver Backup\extra\ProffieOS\config\reaver.h:2778:3: error: expected unqualified-id before '{' token
 2778 |   { "32-NULL;common", "tracks/track_32.wav",
      |   ^
C:\Users\Alonzo\Desktop\Reaver Backup\extra\ProffieOS\config\reaver.h:2835:4: error: expected unqualified-id before ',' token
 2835 |   },
      |    ^
C:\Users\Alonzo\Desktop\Reaver Backup\extra\ProffieOS\config\reaver.h:2837:3: error: expected unqualified-id before '{' token
 2837 |   { "33-BINARY;common", "tracks/track_33.wav",
      |   ^
C:\Users\Alonzo\Desktop\Reaver Backup\extra\ProffieOS\config\reaver.h:2996:4: error: expected unqualified-id before ',' token
 2996 |   },
      |    ^
C:\Users\Alonzo\Desktop\Reaver Backup\extra\ProffieOS\config\reaver.h:2998:3: error: expected unqualified-id before '{' token
 2998 |   { "34-EPIC;common", "tracks/track_34.wav",
      |   ^
C:\Users\Alonzo\Desktop\Reaver Backup\extra\ProffieOS\config\reaver.h:3077:4: error: expected unqualified-id before ',' token
 3077 |   },
      |    ^
C:\Users\Alonzo\Desktop\Reaver Backup\extra\ProffieOS\config\reaver.h:3079:3: error: expected unqualified-id before '{' token
 3079 |   { "35-KART_RACER;common", "tracks/track_35.wav",
      |   ^
C:\Users\Alonzo\Desktop\Reaver Backup\extra\ProffieOS\config\reaver.h:3158:4: error: expected unqualified-id before ',' token
 3158 |   },
      |    ^
C:\Users\Alonzo\Desktop\Reaver Backup\extra\ProffieOS\config\reaver.h:3160:3: error: expected unqualified-id before '{' token
 3160 |   { "36-MOUTHSABER;common", "tracks/track_36.wav",
      |   ^
C:\Users\Alonzo\Desktop\Reaver Backup\extra\ProffieOS\config\reaver.h:3236:4: error: expected unqualified-id before ',' token
 3236 |   },
      |    ^
C:\Users\Alonzo\Desktop\Reaver Backup\extra\ProffieOS\config\reaver.h:3238:3: error: expected unqualified-id before '{' token
 3238 |   { "37-PARTY_FOUL;common", "tracks/track_37.wav",
      |   ^
C:\Users\Alonzo\Desktop\Reaver Backup\extra\ProffieOS\config\reaver.h:3314:4: error: expected unqualified-id before ',' token
 3314 |   },
      |    ^
C:\Users\Alonzo\Desktop\Reaver Backup\extra\ProffieOS\config\reaver.h:3315:1: error: expected unqualified-id before '}' token
 3315 | };
      | ^
C:\Users\Alonzo\Desktop\Reaver Backup\extra\ProffieOS\config\reaver.h:3315:1: error: expected declaration before '}' token
exit status 1

Compilation error: expected '}' before string constant
fiery lion
#

You’re missing a comma after the bladestyle before “ignition”

south nova
#

Oh I see

#

let me attempt to compile again with that adjustment

#
In file included from C:\Users\Alonzo\Desktop\Reaver Backup\extra\ProffieOS\ProffieOS.ino:605:
C:\Users\Alonzo\Desktop\Reaver Backup\extra\ProffieOS\config\reaver.h:2775:3: error: cannot convert 'const char*' to 'StyleFactory*' in initialization
 2775 |   "ignition"
      |   ^~~~~~~~~~
      |   |
      |   const char*
C:\Users\Alonzo\Desktop\Reaver Backup\extra\ProffieOS\config\reaver.h:2834:3: error: cannot convert 'const char*' to 'StyleFactory*' in initialization
 2834 |   "null"
      |   ^~~~~~
      |   |
      |   const char*
C:\Users\Alonzo\Desktop\Reaver Backup\extra\ProffieOS\config\reaver.h:2995:3: error: cannot convert 'const char*' to 'StyleFactory*' in initialization
 2995 |   "binary"
      |   ^~~~~~~~
      |   |
      |   const char*
exit status 1

Compilation error: cannot convert 'const char*' to 'StyleFactory*' in initialization
#

this is the error I'm getting now.

fiery lion
south nova
#

oh.

#

so do I just duplicate a few times?

fiery lion
#

It depends on what you want the various LEDs in your saber to do.

I don’t know what they all are, nor what the default presets’ bladestyles have them doing.

south nova
#

well I didn't really want the LEDs to do anything in particular, but maybe to match with the main blade.

#

the bladestyles for all the other fonts I have were easy to make thanks to the fett263 style builder. But I'm not so sure how to manipulate Greyscale's bladestyles to fit all the other blades in the saber.

fiery lion
#

You can probably just copy paste them for all the blades

south nova
#

Okay, done. Testing it now

south nova
#

Hi. Sorry for the late update.

It somehow uploaded fine but upon testing, it had some missing effects like battery and volume levels, and light indication effects for the other LEDs when the main blade is off or on.

After copy pasting effects from other presets, I've gotten a massive error log ;-;

fiery lion
#

Definitely need to see the config for that one…

south nova
fiery lion
#

There's a '>' or ',' (probably ,) missing somewhere in that style...

#

I'm not sure where...

south nova
#

I only added the volume and battery levels on the main blade style, so I think it might be around there

#

let me check

fiery lion
#

It may help to use the style editor instead of trying to make changes yourself… although that’s its own learning curve.

south nova
#

I didn't know that was a thing ;-;

#

Okay, maybe I can spend some time learning how to use this

fiery lion
#

I would recommend ProffieConfig too if you weren’t using S3’s version of ProffieOS, but since you are it doesn’t support it, and I’ve yet to get back around to finishing v1.8 (which would).

south nova
#

noted, thank you so much!

south nova
#

Hi! Just need one last piece of guidance 😅

#

found the missing "," in most of the styles. All i'm left with now is this error:

#
In file included from C:\Users\Alonzo\Desktop\Reaver Backup\extra\ProffieOS\ProffieOS.ino:605:
C:\Users\Alonzo\Desktop\Reaver Backup\extra\ProffieOS\config\reaver.h:3513:1: error: too many initializers for 'Preset'
 3513 | };
      | ^
exit status 1

Compilation error: too many initializers for 'Preset'
#

I can't seem to find where it says I've added more than the intended number of styles

fiery lion
#

First style looks like it was duplicated

south nova
#

ah, there we go!

#

finally worked!