Author Topic: BatLib  (Read 146982 times)

0 Members and 1 Guest are viewing this topic.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55942
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: SpriteLib
« Reply #180 on: January 29, 2011, 02:10:27 am »
Ah ok I see now. :D
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)

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: SpriteLib
« Reply #181 on: January 29, 2011, 02:12:25 am »
I almost never use my 89t except for when I am calculating large values, so this was my own personal request :D I wanted to be able to do huge math on my 84+SE

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55942
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: SpriteLib
« Reply #182 on: January 29, 2011, 02:14:20 am »
Oh I didn't knew the 89t had such values. On the 84+ I think it's 14 digits + exponents, right?
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)

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: SpriteLib
« Reply #183 on: January 29, 2011, 02:16:52 am »
Yep. My 89 can handle numbers a few hundred digits long which is nice.

Ashbad

  • Guest
Re: SpriteLib
« Reply #184 on: January 29, 2011, 09:26:59 am »
I doubt it'll show up for a few days (it has to be reviewed), but I just wrote a nice review for BatLib on ticalc ;)

it's awesome :D
« Last Edit: January 29, 2011, 09:27:10 am by Ashbad »

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: SpriteLib
« Reply #185 on: January 29, 2011, 09:43:10 am »
Oh, thank you! I plan to add a few features soon if not today, too!

Dang, it's been 58 minutes, not an hour yet :D

The bug is fixed so it should no longer crash on random code! ♥
Command 63 exists, but it doesn't work yet, so do not use it... It won't cause a crash yet, though!

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: SpriteLib
« Reply #186 on: January 30, 2011, 06:18:39 pm »
BatLib is almost out of the Beta stage. Since the last version, there have been major changes. Any programs made with the last version of BatLib will not work with the new version. The changes:
1) sum( is no longer used. Apparently DCS7 uses the sum( command. BatLib now uses dim(.
2) All instances where the arguments use "VarName",Type is now in the form Type,"VarName". This way, if the variable is a token (like Str1 or Pic3), the type can be omitted.
3) Removed some stuff that wasn't needed, saving some memory

I also finally made a sprite editor so that making tilemap or font data will be easier. I will upload that program in a "Demo" topic.

Here is the new version of BatLib as well as the updated readme.

Also, one of the features that has been with BatLib from the beginning is one that I don't believe I have talked about. I call it stringing command. As an example, say you have some code that looks like this:
Code: [Select]
dim(29,0,8,0,8,2
dim(99
dim(10,67
dim(43→A
dim(29,0,8,0,8,2
You can actually string them all together with one dim( command:
Code: [Select]
dim(29,0,8,0,8,2,99,10,67,43,29,0,8,0,8,2→A
This will save speed and memory, so if you can string commands, you should.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55942
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: SpriteLib
« Reply #187 on: January 31, 2011, 12:55:21 am »
Nice to hear it's soon gonna be finished. Nice job so far :)
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)

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: SpriteLib
« Reply #188 on: January 31, 2011, 12:59:12 am »
Oh, I still plan to add a whole lot more, but I had to get all the syntaxes finalised and I had to make a final decision about which token to use. Now that that is done, I can go fix everything up and I can start adding new functions.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55942
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: SpriteLib
« Reply #189 on: January 31, 2011, 11:01:34 pm »
Oh ok :D, good luck whatever you decide. :)
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)

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: SpriteLib
« Reply #190 on: February 02, 2011, 04:33:10 pm »
Before I release the actual BatLib app, I have a question. Should I use the syntax to read variables as Type,"VarName" or should I just use "VarName", but require a prefix byte? If I do the prefix method, to read prgmBATTLENG, instead of 5,"BATTLENG", you would use "[BATTLENG". This would save memory and speed, so I like this method better. It will be the same syntax as the CopyProg program.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55942
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: SpriteLib
« Reply #191 on: February 03, 2011, 12:42:29 am »
I guess the prefix might be a good idea because if someone uses commands a lot, this could reduce their programs size a lot. In Reuben Quest, if I decided to convert the code to xLIB format I am sure I would save several hundreds of bytes because the Omnicalc commands are much larger than xLIB ones (but again it's because with Omnicalc there's no recallpic command so to recall a pic I draw a 96x62 pixels large sprite.
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)

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: SpriteLib
« Reply #192 on: February 03, 2011, 12:47:35 am »
Okay. I have been working with the modified version and it actually cut down the size of BatLib, also. The only place this uses more memory is when you could have omitted the type to begin with. It is still faster though and it will help make other commands faster and smaller.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55942
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: SpriteLib
« Reply #193 on: February 04, 2011, 01:32:00 am »
That's cool to hear. How much bytes do you have left, now?
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)

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: SpriteLib
« Reply #194 on: February 04, 2011, 01:44:16 am »
8897 bytes :D
I still have stuff to remove or optimise, too, so I will have plenty of room to work with for the next few functions.