Omnimaga

Calculator Community => Other Calc-Related Projects and Ideas => TI Z80 => Topic started by: zero44 on April 18, 2011, 03:27:12 am

Title: X-8lue TI : an on-calc browser
Post by: zero44 on April 18, 2011, 03:27:12 am
Hello,

I've begun the X-8lue project some weeks ago, and now I want to show it.
It's a program which read the HTML code put in Str1, and then it displays websites.

Now it's only in TI-Basic, but if you say me how to read DCS7 folders, I'll make it as an axe DSC7 SE, and maybe we'll can make it compatible with Doc DE 7, so it would be possible to edit code on DocDE7 and read on X-8lue ...

Now I'll try to read the DCS7 folders, but I may crash it.
So please give me the structure before !  :)


Title: Re: X-8lue TI : an on-calc browser
Post by: Juju on April 18, 2011, 04:05:14 am
That's awesome :D

Any plans to make it work with gCn?
Title: Re: X-8lue TI : an on-calc browser
Post by: AngelFish on April 18, 2011, 04:24:11 am
Wow, version 0.0.2 and it's already parsing HTML better than IE7 :P

Great job. I look forward to seeing how you improve this.
Title: Re: X-8lue TI : an on-calc browser
Post by: Munchor on April 18, 2011, 05:54:13 am
It's looking good, but too slow in my opinion. I really should try and make an Axe browser, it should be faster.

However, using this with Doors CS7 is better and what about GCN? That would be cool.
Title: Re: X-8lue TI : an on-calc browser
Post by: zero44 on April 18, 2011, 07:24:02 am
I don't really know something about DCS7 usb gCn ...
Can someone explain it by PM ?

While next hour ( in math ^^ ), I'll try to read DCS7 folder appvar .
If you have the struct, you'll really help me ...
Title: Re: X-8lue TI : an on-calc browser
Post by: JosJuice on April 18, 2011, 07:25:21 am
While next hour ( in math ^^ ), I'll try to read DCS7 folder appvar .
If you have the struct, you'll really help me ...
The folder appvar is just a backup of the folder structure. The real folder structure is in the VAT.
Title: Re: X-8lue TI : an on-calc browser
Post by: zero44 on April 18, 2011, 07:33:07 am
?
I don't understand ...
How can I read in DCS7 folders ?
Title: Re: X-8lue TI : an on-calc browser
Post by: JosJuice on April 18, 2011, 07:35:05 am
Do you know about the VAT and how it is formatted?
Title: Re: X-8lue TI : an on-calc browser
Post by: zero44 on April 18, 2011, 02:19:23 pm
I don't know anything about the VAT. Is it really important to know how to read/write in when we make axe programs ?

Now, without help, I understood appvar FLDSV7's structure :
Áv◘Games••• = Á:new folder ; v:number of folder; ◘:number of the folder before; Games•••: folder's name (• is here to make sure name's length will be 8 )
↑↓ALEAT = the file 6 in folder 7 is the program ALEAT

Thank me ^^
I've done READER, which had permised (?) me to read in FLDSV7.
I've done AXELIB too, which allow to copy DCS7's custom cursor in Pic0 ; and open/close an appvar (but UnArchive doesn't work so good ... )
Title: Re: X-8lue TI : an on-calc browser
Post by: aeTIos on April 18, 2011, 02:27:17 pm
Why doesnt unArchive work well? I have never had any problems with it.
Title: Re: X-8lue TI : an on-calc browser
Post by: zero44 on April 18, 2011, 02:44:44 pm
My code :
Spoiler For Spoiler:
:.LIBRARY
:If 0
:.DCS-CURSOR
:Lbl 6M7
:"<fonct>v</fonct>DCS7"→r<sub>2</sub>
:0→r<sub>3</sub>→r<sub>4</sub>
:!If GetCalc(r<sub>2</sub>)→r<sub>3</sub>
:UnArchive r<sub>2</sub>
:If GetCalc(r<sub>2</sub>)→r<sub>3</sub>
:1→r<sub>4</sub>
:Else
:GetCalc(r<sub>2</sub>,81)→r<sub>3</sub>
:2→r<sub>4</sub>
:Return!If r<sub>3</sub>
:End
:End
:[00→Pic0
:det(15
:For(r<sub>5</sub>,0,7
:255-{r<sub>3</sub>+40+r<sub>5</sub>}→{Pic0+r<sub>5</sub>}:End
:For(r<sub>5</sub>,8,15
:{r<sub>3</sub>+40+r<sub>5</sub>}→{Pic0+r<sub>5</sub>}:End
:Return
:
:...
:=GET APPVAR
:>NAME:SIZE
:<POINTER
:[Θ]1=ARC:2=NEW
:...
:Lbl 64V
:0→Θ
:!If GetCalc(r<sub>1</sub>)→r<sub>3</sub>
:.ARC
:UnArchive r<sub>1</sub>
:If GetCalc(r<sub>1</sub>)→r<sub>3</sub>
:1→Θ
:Else
:.CREATE XX BYTE
:GetCalc(r<sub>1</sub>,r<sub>2</sub>)→r<sub>3</sub>:2→Θ
:Return!If r<sub>3</sub>
:End
:End
:Return
:
:
:...
:Lbl 64V
:0→Θ
:!If GetCalc(GDB8)→r<sub>3</sub>
:.ARC
:UnArchive GDB8
:If GetCalc(GDB8)→r<sub>3</sub>
:1→Θ
:Else
:.CREATE XX BYTE
:GetCalc(GDB8,r<sub>1</sub>)→r<sub>3</sub>
:End
:End
:r<sub>3</sub>:Return
:...
:
:.APPV CLOSER
:Lbl 64C
:If Θ
:Archive r<sub>1</sub>
:End
:Return
:
:End

When I use it in my coffee program ( see the code on the topic, in my sig ),
if the appvar was archived, it dispays my memory as chars, until the first zero.
So it's a little bug ...

This night, I will do the first Axe version of X-8lue : aXe-8lue 0.0.3  :)

Please search for me the source code of folder explorer in DCS7's SEs, like 'open' in DocDE7 or MT3, because I'll really need it.

V.V Good night ...
Title: Re: X-8lue TI : an on-calc browser
Post by: DJ Omnimaga on April 18, 2011, 05:19:59 pm
If you need any code help, you might want to ask in the Axe Language section so people can help easier on your unarchive issue.

As for gCn, it means Global CALCnet. It's a tool to use Internet on your TI-83+ via an arduino or TI-84 via a direct USB cable. http://cemetech.net/projects/item.php?id=33

I think this is the only version of Doors CS7 that suppots gCn, though: http://cemetech.net/programs/index.php?mode=file&path=/beta/dcs72b1.zip

I'm unsure how hard it is to get this to work with Axe, but CompyNerd255 was working on a gCn library to use in Axe programs. Otherwise you might need to ask on Cemetech forums if you ever plan to make your program online.

IMHO I would stay away from the online thing for now, though, if you're not experienced with Axe Parser. It's no beginner stuff. You should focus on your program as it is now, then once you're confortable with the result then you can maybe add more features. Basically, it's a good idea to not start too big.
Title: Re: X-8lue TI : an on-calc browser
Post by: JosJuice on April 19, 2011, 02:27:40 am
I think this is the only version of Doors CS7 that suppots gCn, though: http://cemetech.net/programs/index.php?mode=file&path=/beta/dcs72b1.zip
Doors CS 7.1 supports a flawen implementation of CALCnet that is incompatible with pretty much everything. 7.1.1 and up offers CALCnet over the serial port, and the 7.2 beta and higher offers CALCnet over direct USB. All DCS versions that support CALCnet support globalCALCnet, except for 7.1.
Title: Re: X-8lue TI : an on-calc browser
Post by: zero44 on April 19, 2011, 07:25:12 am
 :banghead: X-8LUE AXE0.0.3 DOESN'T WORK :banghead:
I turned off my calc at one hour this night, and the Axe version doesn't work.

All I made for X-8lue is here, except the 0.0.1 version, but I can give it if you want.
PS: the 0.0.1 had no function to control text scrolling, there was just 'Pause' between two 5-line blocks ...  :hyper:
Title: Re: X-8lue TI : an on-calc browser
Post by: jnesselr on April 19, 2011, 07:49:36 am
I would talk to KermMartian over on Cemetech.net about this one.  He'll know most about the folder structure et al.  But if you want to read stuff the axe way, use GetCalc, and read up on it.
Title: Re: X-8lue TI : an on-calc browser
Post by: zero44 on April 19, 2011, 08:01:44 am
Now I know how to read in, but with an error i think I discovered my VAT and now I don't know what I should do ...

IMPORTANT:
I registered on cemetech, but when I login, in center I've only this:
template->make_filename(): Error - template file not found: site/home_index.tpl

And the SAX box say more than 50 times "Warning: dupe aborted" ...
Title: Re: X-8lue TI : an on-calc browser
Post by: jnesselr on April 19, 2011, 07:11:03 pm
If you can get on IRC, I would go to #cemetech on efnet's servers.  KermM can help you.  In fact, if you type KermM and then whatever message into omnomIRC, he should get it, as I see he's there right now.
Title: Re: X-8lue TI : an on-calc browser
Post by: zero44 on April 20, 2011, 03:34:16 am
Wow.
I had a block error in AXELIB, so all my prgms using it didn't work ...
Now I remade it :
At the end of Lbl 64V, delete one of three End, and put a End ... at the end of prgm.

I had the most beautiful crash I've ever seen !
• Gray levels with text
• Progress note aleatoirement (?) around the screen
• Contrast control in a sort of two-line (:\n:\n\n\n\n\n\n) prgm editor
• Memory menu with a mix of resets command, and I believe there was too the math menu
• That menu had the shortcuts O to T istead of 1 to 7
• It crashed DCS7
• Crash of options, white square cursor, all options unchecked except accelerate, accelerate reset to 0@0
• Crash of folders
• Maybe attack of DCS7's system : now I've had one or two folder crash after it (but know I know I must open/close DCS7, do RamCleared, and then re-open, and the folders are saved.)

So don't use it on a real calc !
(I should make what I say. ^^ )
Title: Re: X-8lue TI : an on-calc browser
Post by: aeTIos on April 20, 2011, 05:12:14 am
If you get a block error, count if,while,repeat,and for( loops and make sure that you close them
Title: Re: X-8lue TI : an on-calc browser
Post by: zero44 on April 22, 2011, 07:27:05 am
It was not really a block error (Axe would say it), but a 'End' was at the bad place, so calling the program AXELIB made close the main program.
Title: Re: X-8lue TI : an on-calc browser
Post by: jnesselr on April 22, 2011, 07:33:06 am
It was not really a block error (Axe would say it), but a 'End' was at the bad place, so calling the program AXELIB made close the main program.
That's what a block error is.  When the number of Ends, and the number of statements that need Ends like If, or whatever, don't match up.
Title: Re: X-8lue TI : an on-calc browser
Post by: Broseph Radson on April 22, 2011, 10:32:25 am
Dude why havent i seen this thread!?

This is cool! We could make an entire internet just for calculators :O
Like, we could have cross-platform web hosting software written in Java and have a calculator only http network through gCn! Anyone could host their own calculator websites on any computer. And if you could get file download support....
Title: Re: X-8lue TI : an on-calc browser
Post by: zero44 on April 23, 2011, 07:53:47 am
...
For the moment I just try to don't crash my calc ! XD
But it's an idea. I'll help you if you want do it, Broseph Radson, but I don't think you are really serious. (But it's an idea. ^^ )
Title: Re: X-8lue TI : an on-calc browser
Post by: Spyro543 on April 23, 2011, 04:21:58 pm
How about this Navigator wireless connectivity thing? We could use that and this internet browser to access internet on our calcs! :3
Title: Re: X-8lue TI : an on-calc browser
Post by: alberthrocks on April 23, 2011, 04:44:56 pm
Dude why havent i seen this thread!?

This is cool! We could make an entire internet just for calculators :O
Like, we could have cross-platform web hosting software written in Java and have a calculator only http network through gCn! Anyone could host their own calculator websites on any computer. And if you could get file download support....
Indeed! :) But I'm a bit hesistant to say that the current gCn will let you do that. :P
It is possible through setting up hubs to host websites or download files, assuming you just use the gCn client (C++, btw), but I have no idea if that's the thing you want.

I would strongly recommend you to talk to KermMartian via PM or on Cemetech, since you're more likely to receive gCn help there. ;)

How about this Navigator wireless connectivity thing? We could use that and this internet browser to access internet on our calcs! :3
No, as far as we know this is just for calculators, no wifi or anything. This is unconfirmed, since we have no hands on access on the wireless box and attachment.
Title: Re: X-8lue TI : an on-calc browser
Post by: willrandship on April 23, 2011, 05:28:43 pm
Oh, it's wifi, I'll bet. It's just locked down in the software you use it with to only connect to one type of specially set up network.

Still, though, you pay the price of a cheap laptop to get both the wifi and the calc :P
Title: Re: X-8lue TI : an on-calc browser
Post by: zero44 on April 28, 2011, 03:37:43 pm
I had an idea for a radiocommand car by calc :

Is it possible to replace the cable by a transmitter/receiver Bluetooth system ?
With this, we could made a male to female Bluetooth link, connect it between TI's usb cable and calc, and then have Internet by Bluetooth and PC, or transmit datas by bluetooth between calcs !! XD