Space Invaders

Store Forums Hackvision Bugs/Problems Space Invaders

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #721
    KubitronPL
    Member

    Hi, i have a problem with the Space Invaders game from Hackvision.
    I got original Arduino UNO R3 and i can’t build code of the game in Arduino IDE.

    This is the error:

    invalid conversion from ‘const unsigned char*’to ‘unit8_t’

    SpaceInvaders.ino: In function ‘void gameOver()’:
    SpaceInvaders:279: error: invalid conversion from ‘const unsigned char*’ to ‘uint8_t’
    SpaceInvaders:279: error: initializing argument 1 of ‘void TVout::select_font(uint8_t)’
    SpaceInvaders:281: error: ‘class TVout’ has no member named ‘print’
    SpaceInvaders:283: error: ‘class TVout’ has no member named ‘print’
    SpaceInvaders.ino: In function ‘void enterInitials()’:
    SpaceInvaders:299: error: ‘class TVout’ has no member named ‘print’
    SpaceInvaders:301: error: ‘class TVout’ has no member named ‘print’
    SpaceInvaders.ino: In function ‘boolean displayHighScores(byte)’:
    SpaceInvaders:448: error: invalid conversion from ‘const unsigned char*’ to ‘uint8_t’
    SpaceInvaders:448: error: initializing argument 1 of ‘void TVout::select_font(uint8_t)’
    SpaceInvaders:450: error: ‘class TVout’ has no member named ‘print’
    SpaceInvaders:453: error: ‘class TVout’ has no member named ‘print’
    SpaceInvaders:468: error: ‘class TVout’ has no member named ‘print’
    SpaceInvaders.ino: In function ‘boolean titleScreen()’:
    SpaceInvaders:486: error: invalid conversion from ‘const unsigned char*’ to ‘uint8_t’
    SpaceInvaders:486: error: initializing argument 1 of ‘void TVout::select_font(uint8_t)’
    SpaceInvaders:495: error: ‘class TVout’ has no member named ‘print’
    SpaceInvaders:509: error: ‘class TVout’ has no member named ‘print’
    SpaceInvaders:517: error: invalid conversion from ‘const unsigned char*’ to ‘uint8_t’
    SpaceInvaders:517: error: initializing argument 1 of ‘void TVout::select_font(uint8_t)’
    SpaceInvaders:527: error: ‘class TVout’ has no member named ‘print’
    SpaceInvaders:536: error: ‘class TVout’ has no member named ‘print’
    SpaceInvaders:545: error: ‘class TVout’ has no member named ‘print’
    SpaceInvaders:554: error: ‘class TVout’ has no member named ‘print’
    SpaceInvaders.ino: In function ‘void newLevel()’:
    SpaceInvaders:643: error: invalid conversion from ‘const unsigned char*’ to ‘uint8_t’
    SpaceInvaders:643: error: initializing argument 1 of ‘void TVout::select_font(uint8_t)’
    SpaceInvaders:646: error: ‘class TVout’ has no member named ‘print’
    SpaceInvaders:647: error: ‘class TVout’ has no member named ‘print’
    SpaceInvaders:650: error: invalid conversion from ‘const unsigned char*’ to ‘uint8_t’
    SpaceInvaders:650: error: initializing argument 1 of ‘void TVout::select_font(uint8_t)’
    SpaceInvaders.ino: In function ‘void initSpaceInvaders(boolean)’:
    SpaceInvaders:669: error: invalid conversion from ‘const unsigned char*’ to ‘uint8_t’
    SpaceInvaders:669: error: initializing argument 1 of ‘void TVout::select_font(uint8_t)’
    SpaceInvaders.ino: In function ‘void drawScoreLine()’:
    SpaceInvaders:719: error: ‘class TVout’ has no member named ‘print’

    Please help 🙁

    #2042
    Michael
    Keymaster

    Did you install the required libraries correctly? The process is described here: http://nootropicdesign.com/hackvision/games.html. If you are using the original Hackvision.pde game, then you need the older TVout library downloadable from nootropicdesign.com.

    If you downloaded the standalone SpaceInvaders.ino sketch, then that uses the TVout from Google Code. The instructions say this:

    NOTE: This original firmware no longer works with the newer versions of Arduino and the Uno bootloader.
    You can use the standalone Space Invaders and Pong games. These are to be used with the TVout library at Google Code and the Hackvision Controllers library.

    #2043
    KubitronPL
    Member

    Thanks a lot.
    I had to download a version from Google Code 🙂

    Subject for close.

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.