Author Topic: TI84+C Buttonz  (Read 12299 times)

0 Members and 1 Guest are viewing this topic.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Re: Re: TI84+C Buttonz
« Reply #45 on: July 10, 2013, 06:12:05 pm »
Streetwalker, an app *has* to take up at least 16,384 bytes (and in $4000 byte multiples after that) even if your code is just 3 bytes! There's no way of getting around it, so I might as well include whatever I can fit in. Oh yeah, and thanks for the heads up DJ! I knew there was a problem yesterday, but I thought it would have worked itself out. I'll make a quick program to enable and disable low color mode so you can see low color mode for yourself. By basic I just mean 8 basic colors, enough to plot and use the calc as a calc, but probably not enough for game graphics. A light blue would appear just white or blue depending on which color it is closer to.

However, I could make it into an asm program and use self modifying code to reduce the code size to next to nothing! There's a lot of copying and pasting going on for each separate column. But then it wouldn't have the perks of an app.
i guess smc could be used to make it harder to lose your highscores.

Offline AssemblyBandit

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 374
  • Rating: +60/-1
  • ~AssemblyBandit~
    • View Profile
    • briandm82.com
Re: TI84+C Buttonz
« Reply #46 on: July 10, 2013, 09:38:46 pm »
Yeah Streetwalker, I edited it right after I wrote it  ;D Actually it started off as a program and I remembered I was going that route, but with IViewer, as a program, it originally wrote the the bit mode bits back and when I made it an app I completely forgot about it and it took me a while to find the bug! I wasn't about to make that mistake when doing Buttonz though! Buttonz could be a program but with over 3.5 million bytes I'm sure people can spare 10K! And the best part about apps is I don't have to worry about RAM Clears. I have this program I wrote in BASIC that I have wrote 3 times (not that big of a deal but annoying as hell) on my regular 84+ because of the RAM. They should have an auto arc/unarchive function for BASIC programs.

And DJ here is a small program to set/reset Low Color Mode. I used the worst color example possible because Light Blue happens to be one of the 8 colors! However Brown is Red, Orange is Yellow and most of the Grays are White.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: TI84+C Buttonz
« Reply #47 on: July 11, 2013, 01:05:39 am »
Yeah at least on the Nspire when the calc crashes, you don't lose anything and on Casio calcs I think you only lose stuff updated after the last time you turned the calc OFF.

Also thanks for the program, I'll check it out later :)

Offline Streetwalrus

  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3821
  • Rating: +80/-8
    • View Profile
Re: TI84+C Buttonz
« Reply #48 on: July 11, 2013, 01:13:20 am »
Yeah I agree that you have a point with the fact that the CSE has a lot of memory.

I have this program I wrote in BASIC that I have wrote 3 times (not that big of a deal but annoying as hell) on my regular 84+ because of the RAM. They should have an auto arc/unarchive function for BASIC programs.
zStart does it for the regular 84+ but thepenguin is not planning CSE support unfortunately.

Offline AssemblyBandit

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 374
  • Rating: +60/-1
  • ~AssemblyBandit~
    • View Profile
    • briandm82.com
Re: TI84+C Buttonz
« Reply #49 on: July 18, 2013, 12:26:32 am »
Buttonz v1.5 is released.

Updates:
    Screen flashes if you hit the center of a block
    High scores are auto archived on app exit
    Bug fix during unarchiving
    HW2 int changed to HW1
    2nd button increases level up to 10
    Increased points at higher levels
    Low color mode used to conserve battery
    Levels increase faster
    Max speed at level 15
    Highest level reached displayed with high score

Thanks adriweb, Sorunome, Keoni29, Hayleia, DrDnar, DJ Omnimaga, Xeda112358, Streetwalker, tr1p1ea and Runer112 for your comments and suggestions actually...

Modified the first screen:
« Last Edit: July 18, 2013, 01:31:49 am by AssemblyBandit »

Offline tr1p1ea

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 647
  • Rating: +110/-0
    • View Profile
Re: TI84+C Buttonz
« Reply #50 on: July 18, 2013, 12:35:14 am »
Nice work AssemblyBandit! the low color mode is clever. It would be interesting to see what the % difference is as far as battery usage goes.
« Last Edit: July 18, 2013, 12:36:15 am by tr1p1ea »
"My world is Black & White. But if I blink fast enough, I see it in Grayscale."


Offline AssemblyBandit

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 374
  • Rating: +60/-1
  • ~AssemblyBandit~
    • View Profile
    • briandm82.com
Re: TI84+C Buttonz
« Reply #51 on: July 18, 2013, 01:42:58 am »
Thanks! I couldn't find exactly how much power is saved using low color mode, but it is labeled as a power saving function. I'm assuming it bypasses the fine tuning resistors, not exactly sure though, the datasheet (or my reading!) isn't too precise.

Offline Streetwalrus

  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3821
  • Rating: +80/-8
    • View Profile
Re: TI84+C Buttonz
« Reply #52 on: July 18, 2013, 01:46:35 am »
Thanks adriweb, Sorunome, Keoni29, Hayleia, DrDnar, DJ Omnimaga, Xeda112358, Streetwalker, tr1p1ea and Runer112 for your comments and suggestions actually...

Modified the first screen:

Thanks for that actually, even though I haven't been able to test it. :)

Offline AssemblyBandit

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 374
  • Rating: +60/-1
  • ~AssemblyBandit~
    • View Profile
    • briandm82.com
Re: TI84+C Buttonz
« Reply #53 on: July 18, 2013, 01:50:27 am »
 I'm just hoping no one gets upset! ;D
« Last Edit: July 18, 2013, 01:52:02 am by AssemblyBandit »

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: TI84+C Buttonz
« Reply #54 on: July 18, 2013, 02:20:49 am »
Awesome update! I noticed that levels didn't update fast in the previous version so I kinda gave up after a while. :P Also it's nice to know when we hit the block in the center, since it was hard to tell before.

EDIT: I don't see any actual flashing ??? (bug?)

Also the low color mode appears to not use all BASIC colors because I ran some program and a lot of them displayed differently. In that mode, it almost looks like the Casio PRIZM.

Another bug report: The game doesn't retain my contrast settings, so when I exit, I have to set it again or turn OFF the calc to reset the contrast to my original settings. Another thing is that the highscores still don't auto-archive on exit.

Also what are HW1 and 2? ???
« Last Edit: July 18, 2013, 03:06:06 am by DJ Omnimaga »

Offline AssemblyBandit

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 374
  • Rating: +60/-1
  • ~AssemblyBandit~
    • View Profile
    • briandm82.com
Re: TI84+C Buttonz
« Reply #55 on: July 18, 2013, 01:26:15 pm »
Ha Ha! Oh man Omni! I really hope your still using the old version! I probably should have pointed out that it still hasn't been accepted on ticalc yet, right now you can get it from my blog http://briandm82.com/?ddownload=265

Hopefully that should fix most of the problems ;) I will fix the contrast bug (it's because I turn off the backlight and it resets and I don't pay attention, never change my contrast, and do a very poor/lazy job at bug testing)



When you run v1.5 it will delete the old high score table (because this calculates points different along with level) and you will see the screen I posted above. The high score table will now display the level you made it up to.

It's definitely better than the old version, the levels use to drag on and if you lost you probably didn't want to restart from the beginning. I would have to watch the bonus level to see when it went up. Now you can skip levels to try to get back where you were.

The low color mode in the game only exists during the game, on exit the LCD settings are reverted to exactly the way they were before the game started. If you were referring to that low color program I made, run it again to turn low color mode off. With the low color mode, edit a basic program and go to colors to see exactly how they change. It's really a toss up between colors and some extra battery life. Maybe keep low color mode on while your adding numbers and stuff but if your going to play a game be sure to shut if off unless the game looks good with a lower color count. Again, I don't know how much battery life it saves, but if you want maximum run time per charge, enable low color mode and cut off or turn down the contrast. In Buttonz, low color mode doesn't take away any colors so I might as well enable it. The screen flashing part of the game is just the colors being reversed temporarily.

Thanks for pointing the contrast reset out!!!!!!!!! Will be fixed immediately!!!!!! So far you found three bugs!!! One you probably didn't know, but your suggestion on archiving the variable pointed it out! From now on, I'll probably send you versions privately first ;)

HW1 and HW2 are two different interrupts, HW2 runs faster but when I was testing it on the oscilloscope I noticed sometimes it would run erratically. That's just my calc though, it goes through a lot of abuse like random values being thrown at a port. (But a reset always fixes everything, nobody should be afraid to do some testing :)) Hw1 goes slower but fast enough. Here's what it looks like when I pulse a line with it:

« Last Edit: July 18, 2013, 04:31:18 pm by AssemblyBandit »

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Re: TI84+C Buttonz
« Reply #56 on: July 18, 2013, 05:27:55 pm »
Yeah I downloaded it directly from your blog last night (I had a very hard time finding it too) so maybe you forgot to update the link there then?

Offline AssemblyBandit

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 374
  • Rating: +60/-1
  • ~AssemblyBandit~
    • View Profile
    • briandm82.com
Re: TI84+C Buttonz
« Reply #57 on: July 18, 2013, 05:45:24 pm »
Oh no, what happens is it caches the page when someone visits, I need to reset that I think. Im going to do it right now and I just uploaded v1.5.1 which will address the contrast reset. It basically just skips turning the backlight off. Sorry DJ, that caching sucks, but it helps the pages load faster. I'll keep that in mind when I update from now on. I hope it works, open Buttonz.asm with a text editor and verify it reads Buttonz v1.5.1 if possible.
« Last Edit: July 18, 2013, 05:47:49 pm by AssemblyBandit »

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: TI84+C Buttonz
« Reply #58 on: July 18, 2013, 09:49:09 pm »
No problem. :P Hosting can be a big issue because better hosting costs more money. Omni, for example, is a little slower than it used to be because the staff just can't afford something better while still being able to organize contests, and there are even volunteers who provide separate hosting for stuff like OmnomIRC just so that it won't slow down Omni server.

I'll check the new version soon :)

EDIT: Tried it and works pretty well :D. Nice job
« Last Edit: July 19, 2013, 12:48:24 am by DJ Omnimaga »