Jump to content
IGNORED

Set Kernel DPC+ went rogue


pacgreg

Recommended Posts

After freeing up 4 variables by assigning certain things to bits, Vbb suddenly started giving me errors at the first like that sets the kernel. Did I forget something that needs to be there to assign bits? I could compile earlier today, but it stopped functioning after I started to add the bit{s}. Could someone help and/or give the code a quick lookover?

Thanks!

Greg

Link to comment
Share on other sites

The first problem is this line...

if p1p{4}=4 && p1dc>5 && p1dc<15 && p1p{5} then player1color:

You've used the {} notation correctly elsewhere, so I'll skip the lecture and just post the fixed line...

if p1p{4} && p1dc>5 && p1dc<15 && p1p{5} then player1color:

 

 

Same thing with this line...

 

if collision(playfield,player1) then !p1p{6}

 

If you mean to flip the bit, you need to use an assignment...

 

if collision(playfield,player1) then p1p{6}=!p1p{6}

 

 

 

Lastly, the player1color: list under the "ENEMY GUARDING" section has some code accidentally included in the color list.

 

After fixing those up the code compiles and runs for me.

  • Like 1
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...