Jump to content

Photo

Issue with score: incorrect value?


7 replies to this topic

#1 JWalrus OFFLINE  

JWalrus

    Space Invader

  • 13 posts

Posted Mon Feb 26, 2018 3:01 PM

I've noticed a strange issue with how score is handled in bAtari BASIC. I've noticed that in one of my old games, and especially my new one, that once the score increases over 999, it shoots up to 101000. This trend continues, where the 6th digit is equal to the 4th digit. This also is not counted as a score higher than one lower than it, as my high score is unchanged after restarting. I do nothing special in my code, except statements such as score = score + 1. What is causing this issue, and can I fix it?

#2 Karl G OFFLINE  

Karl G

    Dragonstomper

  • 529 posts

Posted Mon Feb 26, 2018 3:22 PM

I don't suppose you are running your code on the Atari Flashback Portable?



#3 JWalrus OFFLINE  

JWalrus

    Space Invader

  • Topic Starter
  • 13 posts

Posted Mon Feb 26, 2018 3:49 PM

Eeyup. I have no "real" hardware to test this on. Iirc the issue is reproducible in Stella, though.

#4 stephena OFFLINE  

stephena

    River Patroller

  • 3,294 posts
  • Stella maintainer
  • Location:Newfoundland, Canada

Posted Mon Feb 26, 2018 5:05 PM

This issue isn't reproducible for me in Stella 5.1 or above.  Are you by chance using an old version of Stella (4.x or below)?  If so, you really should update to the latest version.



#5 KaeruYojimbo OFFLINE  

KaeruYojimbo

    Stargunner

  • 1,671 posts
  • Location:Portland, OR

Posted Mon Feb 26, 2018 5:38 PM

It's an issue with the bB score display and the flashback portable. It even affects a couple of the games included with it (Strip Off and Shield Shifter). Nukey Shay made fixed versions of those 2 games, but as far as I know, no one has made any changes to bB or the flashback emulator to fix the problem. The score does display properly on a real 2600 though.



#6 JWalrus OFFLINE  

JWalrus

    Space Invader

  • Topic Starter
  • 13 posts

Posted Mon Feb 26, 2018 6:18 PM

Just retried on Stella and the problem did not happen. Huh. That just kinda sucks, then. Are there any fixes I can make to make a special version that works on the portable?

 

Oh, by the way, please check out the project! I'm proud of the work I've done in a few days ;)



#7 KaeruYojimbo OFFLINE  

KaeruYojimbo

    Stargunner

  • 1,671 posts
  • Location:Portland, OR

Posted Mon Feb 26, 2018 6:37 PM

It can be fixed, but it has to be done at the assembly level, not in bB.

 

Here's the post about fixing Shield Shifter and Strip Off:

http://atariage.com/...acks/?p=3692392



#8 JWalrus OFFLINE  

JWalrus

    Space Invader

  • Topic Starter
  • 13 posts

Posted Mon Feb 26, 2018 6:42 PM

I do know that bAtari BASIC generates an assembly file out of your code (for me, it's WalRush2.bas.asm). Can this be modified and compiled directly?






0 user(s) are browsing this forum

0 members, 0 guests, 0 anonymous users