Author Topic: BatLib  (Read 158080 times)

0 Members and 3 Guests are viewing this topic.

Offline Xeda112358

  • they/them
  • Project Author
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: BatLib
« Reply #225 on: February 23, 2011, 02:00:42 am »
No, I do not, but I have been working on random stuff to test the functions. I'll try to come up with some more example programs.

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: BatLib
« Reply #226 on: February 23, 2011, 02:02:06 am »
Ah ok cool :D

If you make the screenshots make sure in WabbitEmu->Right-click->calculator->options that the capture settings are set to lowest FPS possible, though. :P

Offline Xeda112358

  • they/them
  • Project Author
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: BatLib
« Reply #227 on: February 23, 2011, 02:03:29 am »
Okay, thanks! I've never messed with the settings much, so I will try to remember.

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: BatLib
« Reply #228 on: February 23, 2011, 02:05:17 am »
ok ^^. It's just to make sure screenshots aren't like 800 KB large each. X.x

Offline Xeda112358

  • they/them
  • Project Author
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
BatLib (App)
« Reply #229 on: February 24, 2011, 11:40:09 pm »
BatLib (App)



http://www.omnimaga.org/index.php?action=downloads;sa=view;down=596

This APP is designed to aid BASIC programs by providing advanced control of the calculator as well as new functions that the OS does not provide. It handles sprites, memory editing, fontsets, reading from the archive, data manipulations, drawing,sound, and other random or useful functions.

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: BatLib
« Reply #230 on: February 24, 2011, 11:43:07 pm »
File approved. I happened to check the downloads section and saw 1 file pending approval. I wonder if you'll have some screenshots? :P

And there's sound? O.O

Offline Xeda112358

  • they/them
  • Project Author
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: BatLib
« Reply #231 on: February 24, 2011, 11:49:25 pm »
Yes, there is some code for sound that happens to be command 44 (PlayData) :D It isn't much, but it could be interesting for a Guitar Hero-esque game :P In fact, I was working on a game like that using BatLib and it is forcing me to add more commands and routines. On the plus side, the program is currently much too fast to play, so I have some room to add features. Also, I noticed a bug in command 38 (SubList) that I forgot to keep fixed. I fixed it in a beta version, but for some reason I never saved the fix.

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: BatLib
« Reply #232 on: February 25, 2011, 03:08:02 am »
Cool to hear. I can't wait to see the game in action. :)

Offline Xeda112358

  • they/them
  • Project Author
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: BatLib
« Reply #233 on: February 26, 2011, 03:06:06 am »
Okay, as a quick update, I haven't done much work on an example program, but that is mostly because I kept running into the problem of wanting features to use. It took me a second to realise that I was pretty much feature requesting myself to help make a program... Anyway, the updates are:
-Changed prgmZINSTALL to work with the new BatLib name
-The menu bug is fixed (before it wasn't highlighting correctly after a mod to the rectangle routine)
-Pixel testing of archived pictures work
-ShiftScreen now works in 8 directions (instead of 1)
-Includes new commands:

63-PxlTestPic
64-CopyProg (still needs work)
65-RealToStr
66-StrToReal
67-DataString
68-MakeAnsString

The last one simply makes Ans a string of some size and 67 was made to allow for easier manipulations of sound routines and other hacky things (it can be used to convert upper case to lowercase, for example).
Anywho, here is the update with a few of the older example programs updated :D

Offline Hot_Dog

  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3006
  • Rating: +445/-10
    • View Profile
Re: BatLib
« Reply #234 on: February 26, 2011, 03:07:53 am »
Interesting, because feature-requesting from myself is how Correlific came to be ;)

Offline TIfanx1999

  • ಠ_ಠ ( ͡° ͜ʖ ͡°)
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 6173
  • Rating: +191/-9
    • View Profile
Re: BatLib
« Reply #235 on: February 26, 2011, 08:36:12 am »
This is really looking cool Xeda. With all the Libs and addons in the works, TI-BASIC users are going to have a lot of quality programs to choose from! :)

Offline Xeda112358

  • they/them
  • Project Author
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: BatLib
« Reply #236 on: February 26, 2011, 12:26:23 pm »
It is almost halfway done at 70 commands... By halfway I mean it is using 7916 bytes of the available coding space of 16256 bytes. I think today I will work a little more on the ReCode command to fix the Line( command and add a few things.

Offline Hot_Dog

  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3006
  • Rating: +445/-10
    • View Profile
Re: BatLib
« Reply #237 on: February 26, 2011, 12:47:42 pm »
Halfway done? WOW, I can't wait to see what more you add ;D

Offline Xeda112358

  • they/them
  • Project Author
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: BatLib
« Reply #238 on: February 26, 2011, 09:10:14 pm »
Okay, so I am not going to make a release just yet (I am going to wait until I add a few more commands), but here is the next command that could be fairly useful to BASIC programmers, especially for games that work based on a matrix (like Connect 4).
69-SubMatrix
dim(69,MatrixNumber,ColumnOffset,RowOffset,Width,Height
MatrixNumber-This is a value from 0 to 255 telling which matrix to read from
ColumnOffset-This is a value from 0 to 98 telling which column to start reading at
RowOffset-This is the row to start reading at
Width-This is how many columns to read
Height-This is how many rows to read

And a screeny:

Offline ztrumpet

  • The Rarely Active One
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5712
  • Rating: +364/-4
  • If you see this, send me a PM. Just for fun.
    • View Profile
Re: BatLib
« Reply #239 on: February 27, 2011, 09:50:24 am »
Ooooh.  Now that, Zeda, is a very cool command.  Do you have the ability to do that to lists as well (to avoid slow seq() statements)? :D
Looks great! ;D