Arduventure Upload Sketch Error [Solved]

I’m not sure what the problem here is…every other game loads just fine. The ports match and everything else seems to be up to date and working. The Sketch for Arduventure however, will not upload…down below is the error message read out. I’m hoping someone can make sense of this.


Arduino: 1.6.12 (Windows 10), Board: “Arduino Leonardo”

In file included from sketch\globals.h:5:0,

             from C:\Users\Derek\Documents\Arduino\ID-46-Arduventure-1.0.1\ID-46-Arduventure-1.0.1\ARDU_AB\ARDU_AB.ino:20:

C:\Users\Derek\Documents\Arduino\libraries\Arduboy2\src/Arduboy2.h: In function ‘byte generateRandomNumber(byte)’:

C:\Users\Derek\Documents\Arduino\libraries\Arduboy2\src/Arduboy2.h:811:12: error: ‘uint16_t Arduboy2Base::frameCount’ is protected

uint16_t frameCount;

        ^

In file included from C:\Users\Derek\Documents\Arduino\ID-46-Arduventure-1.0.1\ID-46-Arduventure-1.0.1\ARDU_AB\ARDU_AB.ino:20:0:

globals.h:258: error: within this context

randomCounter += arduboy.frameCount;

                        ^

In file included from sketch\globals.h:5:0,

             from C:\Users\Derek\Documents\Arduino\ID-46-Arduventure-1.0.1\ID-46-Arduventure-1.0.1\ARDU_AB\ARDU_AB.ino:20:

C:\Users\Derek\Documents\Arduino\libraries\Arduboy2\src/Arduboy2.h: In function ‘void stateMenuIntro()’:

C:\Users\Derek\Documents\Arduino\libraries\Arduboy2\src/Arduboy2.h:811:12: error: ‘uint16_t Arduboy2Base::frameCount’ is protected

uint16_t frameCount;

        ^

In file included from C:\Users\Derek\Documents\Arduino\ID-46-Arduventure-1.0.1\ID-46-Arduventure-1.0.1\ARDU_AB\ARDU_AB.ino:22:0:

menu.h:38: error: within this context

 if (arduboy.frameCount % 100 < 50)

             ^

sketch\menu.h: In function ‘void stateMenuReboot()’:

menu.h:114: error: ‘class Arduboy2Base’ has no member named ‘exitToBootloader’

 arduboy.exitToBootloader();

         ^

In file included from sketch\globals.h:5:0,

             from C:\Users\Derek\Documents\Arduino\ID-46-Arduventure-1.0.1\ID-46-Arduventure-1.0.1\ARDU_AB\ARDU_AB.ino:20:

C:\Users\Derek\Documents\Arduino\libraries\Arduboy2\src/Arduboy2.h: In function ‘void stateGamePlaying()’:

C:\Users\Derek\Documents\Arduino\libraries\Arduboy2\src/Arduboy2.h:811:12: error: ‘uint16_t Arduboy2Base::frameCount’ is protected

uint16_t frameCount;

        ^

In file included from C:\Users\Derek\Documents\Arduino\ID-46-Arduventure-1.0.1\ID-46-Arduventure-1.0.1\ARDU_AB\ARDU_AB.ino:23:0:

game.h:147: error: within this context

frameBoolean = (arduboy.frameCount % 32 < 16);

                       ^

In file included from sketch\globals.h:5:0,

             from C:\Users\Derek\Documents\Arduino\ID-46-Arduventure-1.0.1\ID-46-Arduventure-1.0.1\ARDU_AB\ARDU_AB.ino:20:

C:\Users\Derek\Documents\Arduino\libraries\Arduboy2\src/Arduboy2.h: In function ‘void walkingThroughDoor()’:

C:\Users\Derek\Documents\Arduino\libraries\Arduboy2\src/Arduboy2.h:811:12: error: ‘uint16_t Arduboy2Base::frameCount’ is protected

uint16_t frameCount;

        ^

In file included from C:\Users\Derek\Documents\Arduino\ID-46-Arduventure-1.0.1\ID-46-Arduventure-1.0.1\ARDU_AB\ARDU_AB.ino:23:0:

game.h:230: error: within this context

if (arduboy.frameCount % 8 == 0) ++fadeCounter;

           ^

In file included from sketch\globals.h:5:0,

             from C:\Users\Derek\Documents\Arduino\ID-46-Arduventure-1.0.1\ID-46-Arduventure-1.0.1\ARDU_AB\ARDU_AB.ino:20:

C:\Users\Derek\Documents\Arduino\libraries\Arduboy2\src/Arduboy2.h: In function ‘void stateGameInn()’:

C:\Users\Derek\Documents\Arduino\libraries\Arduboy2\src/Arduboy2.h:811:12: error: ‘uint16_t Arduboy2Base::frameCount’ is protected

uint16_t frameCount;

        ^

In file included from C:\Users\Derek\Documents\Arduino\ID-46-Arduventure-1.0.1\ID-46-Arduventure-1.0.1\ARDU_AB\ARDU_AB.ino:23:0:

game.h:303: error: within this context

 if (arduboy.frameCount % 16 == 0) ++fadeCounter;

             ^

C:\Users\Derek\Documents\Arduino\ID-46-Arduventure-1.0.1\ID-46-Arduventure-1.0.1\ARDU_AB\ARDU_AB.ino: In function ‘int main()’:

ARDU_AB:68: error: ‘class Arduboy2Base’ has no member named ‘mainNoUSB’

arduboy.mainNoUSB();

       ^

exit status 1
within this context

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

1 Like

You need to update to the newest version of the Arduboy2 Library in the Library Manager. :slight_smile:

2 Likes

Oh wow, that did it! Thanks ;D I guess it had been a while sense my last update.

2 Likes