Jump to content
IGNORED

What is happening when vbb has syntax errors on playercolors?


pacgreg

Recommended Posts

I get this problem occasionally and I keep forgetting what to do to fix it, I included the game I'm working on that is already giving problems at every $FC. If anyone could tell me what the problem is or what causes it, I would greatly appreciate it.

Thanks.

Greg

 

I think you forgot to include your code, but the two most likely reasons I can think of are that (1) you didn't specify the player1colors kernel option (you can't use the playercolors option by itself, you must also use player1colors), or (2) you're saying playercolors in the actual statement instead of player0color. It should look something like this:

 

 

   set kernel_options player1colors playercolors
 
   player0color:
   $FC
end
 
   player1color:
   $CE
end
Link to comment
Share on other sites

Looking at RandomTerrain's bB page, I see that you'll also need to specify either the pfcolors option or the pfheights option when using player1colors and playercolors, as you can't use just player1colors and playercolors in combination by themselves.

 

So if you want to use playercolors, you must use either

 

   set kernel_options player1colors playercolors pfcolors

or

 

   set kernel_options player1colors playercolors pfheights

 

Of course, you can also include other options, as long as the combinations are valid. I recommend bookmarking RandomTerrain's bB site and referring to it often whenever you're writing a bB program:

 

http://www.randomterrain.com/atari-2600-memories-batari-basic-commands.html

  • Like 1
Link to comment
Share on other sites

Oh wow I didn't actually attach it. Good job Greg.

I'm trying to use DPC+ so I don't think its player0colors or kernel options that are causing problems.

 

Have you looked at this section yet:

 

http://www.randomterrain.com/atari-2600-memories-batari-basic-commands.html#dpcplus

 

The main problem is that you're not using banks.

 

rocket_battle_2013y_09m_20d_1659t.bin

 

rocket_battle_2013y_09m_20d_1659t.bas

  • Like 1
Link to comment
Share on other sites

 

Have you looked at this section yet:

 

http://www.randomterrain.com/atari-2600-memories-batari-basic-commands.html#dpcplus

 

The main problem is that you're not using banks.

 

attachicon.gifrocket_battle_2013y_09m_20d_1659t.bin

 

attachicon.gifrocket_battle_2013y_09m_20d_1659t.bas

 

I tried compiling your file with the banks, and I still get errors on the colors, and on the colon in bkcolors:

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...