Author Topic: BatLib  (Read 75662 times)

0 Members and 1 Guest are viewing this topic.

Offline Runer112

  • Moderator
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2289
  • Rating: +639/-31
    • View Profile
Re: SpriteLib
« Reply #15 on: November 19, 2010, 04:38:00 pm »
I know you can do the latter pretty easy with regular expressions. Not sure about the former, because I'm not entirely sure how that file would be formatted.


EDIT: After spending about 30 seconds to open up Notepad++ and whip up a regular expression:
Spoiler For Spoiler:
DB06218B40EF2650EF274083B7C8E521
B1B1ED42E12802AFC97D3D28FA22A484
E5DFE1EF9F43ED73A8842A24982322A6
84CDB8433C47100532E29906001005EF
70450600101421154301350011E299D5
EDB0E1DB06EFE44F0600101ACDB843E6
0F8783878316005F21729919E5CD7143
E1EBEDB006001027CDB843E60F878387
8316005F21729919E5CDB843E60F8783
878306004FC5CD4A43C1E1EDB0060010
12CD7143CB38CB1921EC86E5CD9D4336
C906001026CDB843F5CDB843D5CD7143
217884EBEDB0AF12EFF142DA81421313
E119F1467778EF8C47060010083A3F84
EF8C470600100AAFD301DB013C28F906
00FE01C9E5297E292929E11B7AB320F4
0B78B120F6C909F52BF1CB16F50B78B1
20F6F1C909EB09AFF5F12B1B1A8E77F5
0B78B120F4F1EBC909EB09AFF5F12B1B
1A9E77F50B78B120F4F1EBC9E5C51A13
EDA1200B78B120F6EBC1D1ED4237C9C1
E17AB320E7C91A13EDA1200578B120F6
BFC9117884D511AA84D5CD1042EBED67
EBCD1042EBED67EB1B7CB520EDE1ED52
444DE1772379873DC6807723EBEDB0C9
AF06102917FE0A3803D60A2C10F5C91A
007713230B78B120F6C9C522AA843E3F
BECC744223060004237EFE3F2804FE2B
20F5E52BEB21000022B284231AE60F1B
E5D5C5CDAA43C1ED5BB2841922B284D1
E13E0AD5C5CDAA43C1D110E0ED5BB284
7BE1C1C92A5D963E3F23BB20FC23225D
96ED7BA884C983472142847EFE323803
3E3277FE0A20033E0A7778C922AA8421
409322B284060CC50608C51AD56F2600
292929ED4BAA8409EB2AB284CDD24222
B284D113C110E32525252C22B284C110
D6C9010C081A007713780600094710F5
C90E007EFE2920023E20FEBB200A2305
7ED64FFE6D38013D2312130C10E5C977
3E0C904F7EC5F51A0077132310F909F1
C13D20F1C983FE012803AF3DC978FE3A
3802D607D630FE1030F04F3A5396B728
E979C58781878116005F216B99197801
0700115A84EDB0C1AFC9C5EF524BD7EF
C94FE1EF27431313C93E30ED67FE3A38
02C607121BC91AFE3A3802D60713ED6F
C92AA6842BEF7A412322A6842AA4842B
22A484EFF142DA8142EB4E234623EBC9
CD5943CD59432B0B78B120F4C9CD6643
CD6643230B78B120F4C90608110000EB
290730011910F9C9ED4BA48478B12811
0BED43A4842AA684CDE44322A684C9D5
E5CDAA43ED5BAA841922AA84E13E0ACD
AA43D1C97EE5E60FCB3FF53C4F060009
EB21000022AA8423F130061AE60FCDCF
431AE6F007070707CDCF431B0D79B720
EAE111090019ED5BAA847BC96F2600EF
9247EF5641F601C932B28478B7200A79
B728103D200322AA843AB28423BE20FC
0B18E8EB2AAA84EBED52444DC97EFE61
380CEB36BB23EBC64FFEBB38013CFE2E
20023E3AFE2020023E29FE3F20013D12
13230B78B120D6E1EBED52E5C1C9CD71
43EB41117984CDE142AF12CDB8433278
84EFF142DC8142EB4E234623C9CDB843
E603878787C6A632D642320843C9CDB8
43D5CDB843EB2929545D2919D119C9E5
C5D5217984010000AF0C23BE20FBC5EF
F142DC814278C1210C0009EBB720021E
0219D119C1D1EF5480C9E5292929E13E
2084D310E5292929E13E8085D310C5E5
E5292929E11A13D31110F5E1C10D2479
B720D7C9C5E521EC86E5EB79F5E5C57E
1213780600094710F6C1E1F1233D20EC
D1E1C1C9
« Last Edit: November 19, 2010, 04:40:08 pm by Runer112 »

Online Xeda112358

  • they/them
  • Project Author
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4613
  • Rating: +716/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: SpriteLib
« Reply #16 on: November 19, 2010, 04:40:03 pm »
So how do I do this? I am not computer literate yet...

Offline Runer112

  • Moderator
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2289
  • Rating: +639/-31
    • View Profile
Re: SpriteLib
« Reply #17 on: November 19, 2010, 04:44:07 pm »
I'm searching for a better regex-enabled editor now, because I never liked the fact that Notepad++'s regex was lacking.

Online Xeda112358

  • they/them
  • Project Author
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4613
  • Rating: +716/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: SpriteLib
« Reply #18 on: November 19, 2010, 04:45:40 pm »
Okay. This isn't something I know how to google. I get the idea the results would not be what I am looking for.

Offline JustCause

  • CoT Emeritus
  • LV8 Addict (Next: 1000)
  • *
  • Posts: 810
  • Rating: +115/-5
    • View Profile
Re: SpriteLib
« Reply #19 on: November 19, 2010, 04:46:19 pm »
I. Am. Impressed.

Nice work Xeda! *insert obligatory omgwtf how youre r program in hex comment here* Hope you can get app signing figured out!
See you, space cowboy...

Online Xeda112358

  • they/them
  • Project Author
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4613
  • Rating: +716/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: SpriteLib
« Reply #20 on: November 19, 2010, 04:47:58 pm »
I have a way to sign the app, but it is very tedious. It makes testing the app take longer.

Offline DJ Omnimaga

  • Former TI programmer
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55823
  • Rating: +3151/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • DJ Omnimaga Music
Re: SpriteLib
« Reply #21 on: November 19, 2010, 04:48:32 pm »
Sounds interesting. I wonder what kind of sprite stuff you plan to add. I think you should go with some features that other APPs like xLIB doesn't have, because xLIB, Celtic III and Doors CS 7 already do a lot of stuff and if your library only does a small portion of what those apps do, those apps kinda obsoletes your lib, while if you add even more stuff, people might see your lib as an alternative. I think that it would be cool if you added sprite masking, grayscale (using two sprites like in Axe and everytime you use a certain command, the checkered pattern is inverted).

It would also be nice if you had a tilemap feature that displayed maps which has their map data stored inside pics and allow pixel-testing from pic data. In Illusiat 6, 7 and 9 through 12, all map data is stored inside pics, but I am forced to recall the pic on the graph screen to pxl-test it.
In case you are wondering where I went, I left Omni back in 2015 to form CodeWalrus due to various reasons explained back then, but I stopped calc dev in 2016 and am now mostly active on the CW Discord server at https://discord.gg/cuZcfcF


Bandcamp|Reverbnation|Facebook|Youtube|Twitter

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: SpriteLib
« Reply #22 on: November 19, 2010, 04:53:45 pm »
SpriteLib? Nice, and better if it's an Application.

I wish I knew how to make Apps, however, only Asm( can do it, right? So bad..

Hopefullly, Axe >0.4.5 will be able to do it :)

Online Xeda112358

  • they/them
  • Project Author
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4613
  • Rating: +716/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: SpriteLib
« Reply #23 on: November 19, 2010, 04:58:10 pm »
With the program version, I have a way to edit the font for hex characters to make sprites. Then, there is a command to take a screen shot that works with the next command as a tilemap. Then there is a command that lets you test a coordinate on the homescreen to tell what tile is there. In the example I provided (example 2), there is a map editor as well as a simple program to move through the map. When I work out all the kinks to start developing it as an app, I will definitely try to add a whole lot more to the program. I didn't do things before just because it was a program and it took the OS a while to startup the program making commands slow.

I am still looking for a fast way to convert my hex into an app on the computer, though :C

http://www.ticalc.org/pub/83plus/asm/libs/spritelib.zip

Offline DJ Omnimaga

  • Former TI programmer
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55823
  • Rating: +3151/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • DJ Omnimaga Music
Re: SpriteLib
« Reply #24 on: November 19, 2010, 04:59:14 pm »
SpriteLib? Nice, and better if it's an Application.

I wish I knew how to make Apps, however, only Asm( can do it, right? So bad..

Hopefullly, Axe >0.4.5 will be able to do it :)
Actually Axe can do APPS already, but they're limited to 1 page (16 KB)
In case you are wondering where I went, I left Omni back in 2015 to form CodeWalrus due to various reasons explained back then, but I stopped calc dev in 2016 and am now mostly active on the CW Discord server at https://discord.gg/cuZcfcF


Bandcamp|Reverbnation|Facebook|Youtube|Twitter

Online Xeda112358

  • they/them
  • Project Author
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4613
  • Rating: +716/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: SpriteLib
« Reply #25 on: November 19, 2010, 10:06:32 pm »
It is looking like I am not going to be able to convert all of my commands from the program to the APP, so I am just doing random ones. At the moment I have a version of VarEditByte which is used to edit a byte in a variable and ASMHex which executes opcodes. Along with those, I randomly have a command that returns a keypress value (not the same as getKey) and a command that waits for a key is press. I am going to work on a bunch more for about 45 minutes and then go watch Inception!

Oh and I appreciate the Axe thing!

Offline DJ Omnimaga

  • Former TI programmer
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55823
  • Rating: +3151/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • DJ Omnimaga Music
Re: SpriteLib
« Reply #26 on: November 19, 2010, 10:09:38 pm »
You mean like parts of a floating point number?

Also glad you like Axe. It's a really revolutionary language that I wish it was done 10 years ago. Lots of people wanted one for so long.
In case you are wondering where I went, I left Omni back in 2015 to form CodeWalrus due to various reasons explained back then, but I stopped calc dev in 2016 and am now mostly active on the CW Discord server at https://discord.gg/cuZcfcF


Bandcamp|Reverbnation|Facebook|Youtube|Twitter

Online Xeda112358

  • they/them
  • Project Author
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4613
  • Rating: +716/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: SpriteLib
« Reply #27 on: November 19, 2010, 10:13:08 pm »
Wow, I just read back through what I wrote and what I meant was that I am not going to be able to convert all of the code at once. The thing is, now that it is using a parser hook, the inputs to the program have changed as well as the outputs. This means I have to got through each code to make sure it works, one at a time. If I just put them all in like I did, I will just keep guessing at where the bugs are.

Offline AngelFish

  • Is this my custom title?
  • Administrator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3242
  • Rating: +270/-27
  • I'm a Fishbot
    • View Profile
Re: SpriteLib
« Reply #28 on: November 19, 2010, 10:16:37 pm »
I have a way to sign the app, but it is very tedious. It makes testing the app take longer.

You only have to sign an app to transfer it to your calculator. If you can write the app oncalc (or in wabbit), thenyou can use it without signing.
∂²Ψ    -(2m(V(x)-E)Ψ
---  = -------------
∂x²        ℏ²Ψ

Online Xeda112358

  • they/them
  • Project Author
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4613
  • Rating: +716/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: SpriteLib
« Reply #29 on: November 19, 2010, 10:18:55 pm »
Yeah, about some of that... I keep forgetting that have an emulator to test it on, now :D