Author Topic: BatLib  (Read 160276 times)

0 Members and 3 Guests are viewing this topic.

Offline ralphdspam

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 841
  • Rating: +38/-1
  • My name is actually Matt.
    • View Profile
Re: BatLib
« Reply #375 on: August 11, 2011, 12:02:32 pm »
Hehe, I finally figured out how to get Brass to compile an app, so now I am debugging, I should be able to start adding new things in a few days :)
Sounds nice.  :)
Are you going to add USB commands and the like?
ld a, 0
ld a, a

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 #376 on: August 11, 2011, 12:21:31 pm »
If I can, I will, but that will have to come in the future-- I still need to learn how to use the USB ports on an assembly level. If I can manage that, I will try to add some really cool functions that will make multiplayer game designing easier :)

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: BatLib
« Reply #377 on: June 02, 2012, 02:30:08 pm »
*bump*

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline TIfanx1999

  • ಠ_ಠ ( ͡° ͜ʖ ͡°)
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 6173
  • Rating: +191/-9
    • View Profile
Re: BatLib
« Reply #378 on: June 03, 2012, 11:23:42 am »
That's one hell of a bump (10 months :o)! I think development on this is done. Grammer has pretty much take over this and Recode, and is a lot more functional.

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 #379 on: June 06, 2012, 08:03:58 pm »
Hehe, I still plan to get back to work on this some day. I want to rewrite it to add more commands and add in some more optimisations. I still plan to add in arbitrary precision math commands, too. I have written a multiplication routine that is only limited by the amount of RAM you have. I made it multiply two 100-digit numbers :D

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: BatLib
« Reply #380 on: June 07, 2012, 06:07:41 am »
Cool, I want to see moar of this! :D

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline TIfanx1999

  • ಠ_ಠ ( ͡° ͜ʖ ͡°)
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 6173
  • Rating: +191/-9
    • View Profile
Re: BatLib
« Reply #381 on: June 08, 2012, 11:24:04 am »
@Xeda: Ohai! I thought it was deadish, but I guess it be more like "in stasis" according to your post. :)

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 #382 on: June 22, 2012, 11:52:21 am »
I finally got the motivation to rewrite BatLib, so I was working on it all this past week. I have good news and bad news. The good news will hopefully be awesome enough to outweigh the bad >:D

Bad news: I cannot figure out how to make weird names with Brass, so this update uses BatLib with regular letters. Also, I have change the syntax of some ReCode commands and I have yet to document the changes (also, I think I still need to code in 8 more commands).

Awesome news:
I have added in all the other 104 commands as well as 19 more commands. I have updated almost everything, so a bunch of the commands are now more powerful (and still backwards compatible). All the bugs or issues that I could find are now fixed and I have yet to find bugs, now. Here are some changes:

  • dim(1) was used to disable Done and turn the run indicator off. Now you can use a digit after the 1 to fine tune that. For example, dim(1.1) does something different from dim(1) or dim(1.2), but all deal with the run indicator and Done message.
  • dim(29) now draws rectangles with clipping.
  • Which reminds me that negative numbers are now read properly. Before, BatLib just used the absolute value of inputs
  • dim(41) now allows the input of all variable types and works just fine with lists and named lists. It also has an otional argument that will let you get the size of a variable as it apears in the memory menu. Before, it just returned the size of the data portion of a var.
  • dim(52) and dim(53) now let you draw sprites to pixel coordinates using an otional argument. I finally fixed this all up yesterday and this works with larger srites, too.
  • dim(54) now returns the number of lines in the var if you try to read line 0
  • dim(59) Now can convert from any base 1 to 36 into any other base 2 to 36. Numbers can even be a few hundred digits long!
  • dim(64) (which is Copyprog) now works. The issue was super simple, too, so I wish I had figured it out earlier.
  • dim(46) (portedit) now works!
  • dim(85) (Getprogname) now works completely and flawlessly


Now for the new commands!
  • dim(105) (pxlLine) draws a line with pixel coordinates. There are also draw modes where you supply a list as a draw pattern
  • dim(106) draws a circle very quickly using pixel coordinates. There is also a mode for using draw patterns
  • dim(107) draws a pxlline to a variable (like a pic var)
  • dim(108) draws a pxlcircle to a var
  • dim(109) can be used to open up a popup menu. Selecting an otion returns a number.
  • dim(110) can be used to convert a number to a string. This does not work with imaginary numbers.
  • dim(111) converts a list to a string. This works with imaginary numbers
  • dim(112) compresses a string of text. There are two built in codecs.
  • dim(113) decompresses a string of compressed text.
  • dim(114) will return an optimal codec string for a string of data.
  • dim(115) will compress data with a custom codec.
  • dim(116) will decompress data with a custom codec.
  • dim(117) will perform a search and replace, scanning a variable.
  • dim(118) will work like my GetName program. It returns, in alphabetical order, the name of a variable of a given type. For examle, this can be used to get the name of the third program in the program list.
  • dim(119) provides lowercase options.
  • dim(120) provides text options
  • dim(121) and dim(122) are options to draw a sprite to a variable (like a pic var)
  • dim(123) will delete a line from a data base


Also, in this release is a beta/test version of BatLib that will be able to use a revolutionary new "GroupHook" that I came up with. Since no other apps have it, I had to perform some modifications to existing apps for demonstration. Basically, I managed to make it so that when I installed BatLibG, I could use the parser hooks in Celtic 3, Omnicalc, and Grammer, too without installing them. Celtic 3 and Omnicalc did conflict with the real( commands, though. I managed to modify DoorsCS7, too, and I could use Celtic 3 and DSC commands, too, but I will not release the modified DCS7 because I haven't talked to Kerm about it.

Finally, I could not send the as to my actual calc (I need to get new batteries), so I could not check if there were any issues on calc that didn't occur in WabbitEmu.

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: BatLib
« Reply #383 on: June 22, 2012, 03:31:32 pm »
Nice job xeda!
* Sorunome downloads

and i have to add more commands to the libbot.... xD

EDIT: wait a sec
Would that mean you can use omnicalc with DCS? And insert the hook into zstart? :w00t:  :w00t:  :w00t:  :w00t:  :w00t:  :w00t:  :w00t:  :w00t:  :w00t:  :w00t:  :w00t:  :w00t:  :w00t:  :w00t:  :w00t:  :w00t:  :w00t:  :w00t:  :w00t:  :w00t:  :w00t:  :w00t:  :w00t:  :w00t:  :w00t:  :w00t:  :w00t:  :w00t:  :w00t:  :w00t:  :w00t:  :w00t:  :w00t:  :w00t:  :w00t:  :w00t:  :w00t:  :w00t:  :w00t:  :w00t:  :w00t:  :w00t:  :w00t:  :w00t:
« Last Edit: June 22, 2012, 04:48:24 pm by Sorunome »

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

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 #384 on: June 23, 2012, 02:46:39 pm »
It won't work with zStart because it requires a modification to the app header and zStart already uses that area. But yes, I have already asked Kerm about officially supporting GroupHook with DoorsCS7 and if it gets added, it will be able to work with Omnicalc, Grammer, and BatLib.

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: BatLib
« Reply #385 on: June 23, 2012, 04:33:27 pm »
It won't work with zStart because it requires a modification to the app header and zStart already uses that area.
I mean because zstart has a new function that allows hook chaining....

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

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 #386 on: July 03, 2012, 11:43:12 am »
Hmm, I am going to have to look into that, then :D Also, I have some more updates and bug fixes. Appparently when I went on an optmising spree, I broke a few things :[

dim(14) and dim(15) now have options for using 2-byte words
dim(124) was added for creating variables
dim(125) was added for executing inline Grammer code
dim(60) now allows you to archive or unarchive a var
dim(29) is fixed (before, it added 1 to the x-coordinate)
dim(29) now has two options for pixel testing rectangle regions

dim(56) and dim(62) have been fixed (pixel test results were broken)
dim(63) was fixed (similar issue)


I found a discrepancy in the compression routine that is now fixed. It sometimes lost data instead of being lossless.


EDIT: Oh! I almost forgot to mention that I made an example program for compressing/decompressing data. It can get great compression ratios depending on the data (I had a tilemap compress down to almost 11%). It is very easy to use, so I hope it can get used in some big projects !

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: BatLib
« Reply #387 on: July 03, 2012, 11:49:34 am »
Cool!
* Sorunome downloads! :D
updates are always cool! :D

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

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 #388 on: July 03, 2012, 11:53:57 am »
Thanks, hopefully I didn't miss anything :) Also, this app is actually in its final stages. I am almost finished with the project, but I am going to wait to release the final version until all bugs are fixed. I now only have about 20 bytes of room left for data and code.

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: BatLib
« Reply #389 on: July 03, 2012, 12:25:22 pm »
BTW, are you planning to add any more new commands if you can squeeze them in?

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!