Omnimaga

Calculator Community => Other Calc-Related Projects and Ideas => TI Z80 => Topic started by: tifreak on March 24, 2014, 09:29:19 pm

Title: 84+CSE Library Helper
Post by: tifreak on March 24, 2014, 09:29:19 pm
I'm surprised I didn't already have a topic, I guess before I didn't have enough to write about..? Dunno.


Anyways, the function of this program is to assist programmers who program on their calculators and find themselves without the benefit of the internet to look up functions for DCSE libraries.


Showing off the fancy DCSE icon:


(http://tifreakware.net/tifreak8x/libhelp/icons.gif)


Showing off syntax of the header:


(http://tifreakware.net/tifreak8x/libhelp/basicheader.gif)


And this evening I completed the GetKey section of xlibc. I decided it might be handy to have the key codes, so here it is, displayed:


(http://tifreakware.net/tifreak8x/libhelp/table2.gif)


7 more sections remain for data entry, then I need to build a UI and displayer to display the text data properly from the appvar.


The appvar currently sits at 17,198 bytes! :o
Title: Re: 84+CSE Library Helper
Post by: DJ Omnimaga on March 25, 2014, 02:19:23 pm
I'm surprised I didn't already have a topic, I guess before I didn't have enough to write about..? Dunno.


Anyways, the function of this program is to assist programmers who program on their calculators and find themselves without the benefit of the internet to look up functions for DCSE libraries.


Showing off the fancy DCSE icon:


(http://tifreakware.net/tifreak8x/libhelp/icons.gif)


Showing off syntax of the header:


(http://tifreakware.net/tifreak8x/libhelp/basicheader.gif)


And this evening I completed the GetKey section of xlibc. I decided it might be handy to have the key codes, so here it is, displayed:


(http://tifreakware.net/tifreak8x/libhelp/table2.gif)


7 more sections remain for data entry, then I need to build a UI and displayer to display the text data properly from the appvar.


The appvar currently sits at 17,198 bytes! :o
I'M thinking more the fact you use or used dial-up and the previous forum theme prevented you from visiting :P


Anyway this seems interesting. I was not a big fan of such program back in the days because I hated having to archive my entire game (and remembering what needs to be unarchived) then unarchive the helping tool or vice-versa because of how much RAM they took. Now Doors CS runs programs from archive so that's pretty much fixed :)
Title: Re: 84+CSE Library Helper
Post by: tifreak on March 25, 2014, 04:51:56 pm
Yeah, that did hinder such things in the past. But now, we have a bigger screen for more text to be displayed, and more archive space than ever to store stuff, so all should be good. :p

I've also got DrawMap completed, working on DrawSprite now.
Title: Re: 84+CSE Library Helper
Post by: DJ Omnimaga on March 26, 2014, 01:42:51 pm
Good to hear, hopefully not too much changes occurs to DCSE syntax so you don't need to re-update this everytime :P

Also, since this is for helping DCSE lib users, will you include a section that lets you view the available xLIBC color palette and see the color numbers when selecting the color with arrows? It might become handy, especially if there is an option to store the currently selected color into a variable for later use.
Title: Re: 84+CSE Library Helper
Post by: tifreak on March 26, 2014, 06:53:43 pm
Actually, I do plan on trying to do that, offering a few separate tools to assist. One of them was the color palette, the other being able to convert between values for the DrawMap section to convert from the matrices to strings. And anything else that might be needed, as I go :)

As to updates, they will happen if DCSE receives library updates/upgrades only, or if I mess up with something, of course.
Title: Re: 84+CSE Library Helper
Post by: tifreak on March 30, 2014, 10:59:31 pm
After a bit of integration work, I've gotten Kerm's color table/selector set up stuck into the main program. Here is a shot of it in action:

(http://tifreakware.net/tifreak8x/libhelp/kermcolortable1.gif)

I still need to program in the ASCII table, and hopefully Kerm can get me the repaired code to display the string data from the appvar. After that, this should be mostly ready for release!
Title: Re: 84+CSE Library Helper
Post by: tifreak on April 02, 2014, 08:29:46 pm
(http://tifreakware.net/tifreak8x/libhelp/asciilookup.gif)

Got this set up now, gives you the values of the character for use with DrawText in xLIBc. You can go left and right to increment/decrement by 1, or up and down to do the same by 10. 2nd/Clear/Enter backs out of it to the main menu.

Next up, generating menus based on the list values I have. After that, it'll be pulling string data from the appvar and displaying.


Edit:



Just for fun, added the ability for the cursor to bounce from the top to the bottom and vice-versa to make things look a little nicer.


(http://tifreakware.net/tifreak8x/libhelp/scrollingweee.gif)


Thought I'd also show off the 2 functions that work. Just need to work on the whole page displaying setup, and make it go back and forth for paging, and things should be good. Oh, and making the menus work. That shouldn't be too hard once I have working text display stuff to work with and integrate.
Title: Re: 84+CSE Library Helper
Post by: Sorunome on April 03, 2014, 12:54:36 am
That is looking pretty nice and useful! I like the color picking :)
Title: Re: 84+CSE Library Helper
Post by: Streetwalrus on April 03, 2014, 12:56:45 am
Yup I like it too.  ;)
Title: Re: 84+CSE Library Helper
Post by: tifreak on April 03, 2014, 07:20:48 am
Thanks guys.

Going to try to do something else with the ASCII lookup, will post up if I manage to get something of it working. :)
Title: Re: 84+CSE Library Helper
Post by: DJ Omnimaga on April 03, 2014, 12:26:08 pm
Oooh, I love how the color selector came out. Nice work. :D

Also does Celtic2CSE support transparent text on the graph/home screen? If so, then I wonder if a dual-layer ASCII (like in Metroid Pi and Serenity) combination editor would be useful? Unlike the 84+, the CSE can't do dual-layer ASCII in pure Basic, but I wasn't sure about Celtic. It could have the option of doing so via the standard TI-OS fonts or the xLIBC ones
Title: Re: 84+CSE Library Helper
Post by: tifreak on April 03, 2014, 01:10:35 pm
http://dcs.cemetech.net/index.php/DCSE:BasicLibs:DispColor I think is as close as you'll get with Celtic messing with Output( and such.

The color selector was Kerm's baby :) I had started in on it, he had finished it off.

This is that other thing with the ASCII value look up:

(http://tifreakware.net/tifreak8x/libhelp/newasciilookup.gif)
Title: Re: 84+CSE Library Helper
Post by: DJ Omnimaga on April 05, 2014, 02:52:25 am
Very nice :D and thanks for the info.
Title: Re: 84+CSE Library Helper
Post by: Streetwalrus on April 06, 2014, 02:02:32 pm
I find it nice that you changed to a lower contrast color scheme in darker tones. Hurts eyes less. ;)
Title: Re: 84+CSE Library Helper
Post by: tifreak on April 06, 2014, 10:29:31 pm
Well, that was based on the brightness level of the emulator, as it has issues with turning off and coming back on with a lower setting. With the program itself, once it's on your calc, that will all be you and your settings. :)

Also, very near completion, just need Kerm's help to finish it and I should have it published!
Title: Re: 84+CSE Library Helper
Post by: DJ Omnimaga on April 06, 2014, 10:36:56 pm
Yeah I was a bit annoyed at this but I guess it doesn't hurt too much for quick screenies. It mainly gets annoying if Wabbit crashes a lot and I have to restart it like 10 times every hour before I finally manage to get a decent screenshot.
Title: Re: 84+CSE Library Helper
Post by: tifreak on June 08, 2014, 09:45:01 pm
With this project and Flags Database, we found a big error with DCSE Celtic libs. They have been fixed, but not yet uploaded, as he's working toward an 8.1 release. So, for the moment, Libhelper is sitting in a stand by mode, completed, waiting to be uploaded, and will be once Kerm gets the next DCSE published. Also waiting to see if tr1p has any more data for me to input into libhelper, as I think he has added some functions to xlib :)
Title: Re: 84+CSE Library Helper
Post by: DJ Omnimaga on June 08, 2014, 10:36:34 pm
Was it related to the Output bug? I remember with xLIB libs sometimes output got messed up, but I didn't find any related issues with Celtic, the only issue I encountered being with the program lines copy utilities being limited to 8 KB of code or so at a time.
Title: Re: 84+CSE Library Helper
Post by: tifreak on June 09, 2014, 07:37:36 am
No, it had issues reading past a certain point in appvars, since it thought it could only go 16kb and stop.
Title: Re: 84+CSE Library Helper
Post by: DJ Omnimaga on June 09, 2014, 12:19:49 pm
Ah right, I think my problem was actually similar too but with programs. On a side note, the DCS wiki had no doc on how to specify we want to crreate an appvar instead of a program so I wonder how you do it? ???
Title: Re: 84+CSE Library Helper
Post by: Hexatron on June 09, 2014, 05:40:19 pm
You use TokenIDE to create the APPVAR and then use the Celtic commands to access it.  Make sure when using the Celtic commands to add rowSwap( at the beginning of the string.
Title: Re: 84+CSE Library Helper
Post by: DJ Omnimaga on June 09, 2014, 07:49:12 pm
Oh we had to add RowSwap. I didn't knew because the DCSE doc didn't state anything about it the last time I checked.
Title: Re: 84+CSE Library Helper
Post by: tifreak on June 10, 2014, 04:32:21 pm
(http://tifreakware.net/tifreak8x/images/showappvarcreate.gif)

You can see when I start, no appvar named AAA. I show the program that creates the appvar, then run it, and finally it's in the list. :) So you can do it with DCSE. Probably with 8.1, not sure 8.0 had that fully working, but it might have.


Also, yes, it only says it in the pdf, but not in the wiki. I did make sure to add that in to libhelper, so people will know.
Title: Re: 84+CSE Library Helper
Post by: tifreak on June 19, 2014, 09:32:02 pm
Just a side note, LibHelper will hopefully be posted soon, though most people wouldn't be able to use it because of the fact DCSE 8.1 isn't released yet. But it is in a finished state for DCSE 8.1's release.
Title: Re: 84+CSE Library Helper
Post by: tifreak on June 24, 2014, 10:10:59 pm
Kerm says he is down to one remaining issue with DCSE 8.1 before release. On a side note, LibHelper is available

http://www.ticalc.org/archives/files/fileinfo/460/46034.html

http://www.cemetech.net/programs/index.php?mode=file&path=/84pcse/basic/programs/LibHelper.zip
Title: Re: 84+CSE Library Helper
Post by: tifreak on June 29, 2014, 05:16:24 pm
LibHelper was updated with a small fix regarding one of xlibc's functions. File uploaded at Cemetech, pending at ticalc.org
Title: Re: 84+CSE Library Helper
Post by: DJ Omnimaga on June 29, 2014, 06:50:49 pm
Good to hear the new commands are now included :D
Title: Re: 84+CSE Library Helper
Post by: tifreak on June 29, 2014, 07:33:25 pm
Oh, they were included, but silly tr1p did 2 functions of real(4,10, when the second one should have been real(4,11 :p Had to correct the mistake!
Title: Re: 84+CSE Library Helper
Post by: tifreak on July 18, 2014, 08:58:48 am
Issues were reported in the getkey pages, and issues have been fixed!

http://www.cemetech.net/programs/index.php?mode=file&id=1115
Title: Re: 84+CSE Library Helper
Post by: DJ Omnimaga on July 20, 2014, 02:03:35 pm
Thanks for the update. :D I need to add this to my calc for when I work on xLIBC stuff again. Sometimes I hate having to go on the computer everytime when I code. >.<
Title: Re: 84+CSE Library Helper
Post by: tifreak on July 20, 2014, 10:06:37 pm
I'm honestly not sure I'll use it that much myself, since I do most of my coding in Tokens anyways these days. But I know it will be handy for some people out there, and that makes it awesome :D

Hopefully no more errors crop up in the text.