Jump to content

Photo

Aquarius Graphics Editor and "SuperFont" Upgrade Idea


64 replies to this topic

#51 Pset OFFLINE  

Pset

    Chopper Commander

  • 121 posts

Posted Thu Dec 5, 2013 1:28 AM

Presenting Aquarius Bitmap Composer Livecode Project 

1IkZs1f.png?1

 

With binaries for Mac, Windows and Linux.

 

The stack, ie the project file containing the GUI and the scripts  works in Livecode 602

It breaks in higher versions. Progress is the great hair puller.

 

The program opens and save simple texts files containing lines of sixty four ones and zeros.

The Aquarius font is the base "custom property" of the stack.

 

Now I need code to Write the roms please.

and sleep.mostly sleep.

 

I was working up an introduction to Livecode over at the retrogamecoding forums. Lots to see there.

 

So tired I forgot to post the instructions.
Click the around the character window to paint.

 

Export options-
White with Alpha, Black with Alpha, Inverted White with Alpha.
Exports to png in folder path of the application or stack "/Images/" & the size of the images & the choice 
Will export 256 images at a go.
-- remind me to make a requester.
 
Keyboard commands.
Arrow keys scroll the current character in the array
Tilde and Tab keys move back and forth through the character set list, applying any changes.
 
Space, Return, and keypad Enter are redunant apply buttons --to be changed.
 
Command key on the Mac, Control key on windows AND
S save a text file representing the graphics as binary bits, ie, "0101010" 
O Open a text file that contains lines of sixty four 1s and 0s representing graphics characters
C Copy current graphics
V Paste the black of the graphic in memory
Z undo, i think i broke this.

Attached Files


Edited by Pset, Thu Dec 5, 2013 1:35 AM.


#52 Pset OFFLINE  

Pset

    Chopper Commander

  • 121 posts

Posted Sat Dec 7, 2013 6:54 PM

And now Aquarius ASCII Draw v0.0.0.1 for Mac OS X, Windows, and Linux.

 

lJtnisB.png

 

Its very simple. No color, no undo, no special draw tools or converstion functions , but it saves BASIC pokes to  a file, or use Command/control X or C to put that on the clipboard and paste into the emulator.

You can also paste in text for conversion to Aquarius graphics, for instance if you want to layout instructions, scores, and the like.

 

I've gone too far on this version, with its limitations of editing image source of text characters, but its a good prototype for what I've wanted to do for a good long while.

 

I highly suggest you jump into the source code stack and poke around.

Made with Livecode 6.0.2 available here http://downloads.liv...livecode/6_0_2/
 
There's more to it than this script, but not much, a few more scripts and some custom property data, have a look see
Spoiler
 

 

Attached Files



#53 catsfolly OFFLINE  

catsfolly

    Dragonstomper

  • 704 posts
  • Location:Japan

Posted Sun Dec 8, 2013 9:22 AM

Pset -

 

I gave it a try. It works pretty well so far.

 

Occasionally, I needed a extra right click here and there to get things working. But it was easy to put some characters on the screen and generate a basic program that would put the same characters on the Aquarius. It's a nice way to get familar with the character set.

 

Thanks,

 

Catsfolly



#54 jaybird3rd OFFLINE  

jaybird3rd

    Quadrunner

  • Topic Starter
  • 8,433 posts
  • Location:806.4616.0110

Posted Sun Dec 8, 2013 2:28 PM

Very interesting!  Thanks for putting this together; I'll definitely give it a try.



#55 Pset OFFLINE  

Pset

    Chopper Commander

  • 121 posts

Posted Sun Dec 8, 2013 5:19 PM

The field of the bitmap composer with the window size and file/export options may lock up and require a control key click to reset it.

That field needs to be removed and replace with proper menu/key command system.

 

The Command / Control C for the new Ascii Draw seems to be bugged and you need  to use Command / Control   X to grab the BASIC code into the clipboard.

And this may or may not just grab a blank character.

 

There's all kinds of ways to do this different, I just wanted to get this code up so you all have it before I make it too deep for an introduction.

Livecode is super simple to use, it should be very much be like learning Aquarius BASIC all over again for you, only with functional programs.

You can all can at least prototype  interfaces very quickly and then fill the blanks over time.



#56 Pset OFFLINE  

Pset

    Chopper Commander

  • 121 posts

Posted Thu Dec 12, 2013 4:04 AM

Coming soon. What is being called The Aquarius TypePSETter for lack of a better name, especialling since it does not handle painting very well at all.

As you can guess by the name it uses the PSET commands, draws Aquarius ASCII data enlarged, and of course spits out BASIC code for the image.

 

I struggled to capture the pokes from the same locations, maybe my values are wrong,

I was starting at 12288..damnPSET(0,0) is at 12288+40 well now I know.

 

Just a picture preview for now. alpha app to come soon. oh joy.

TH9JTMI.png?1.png


Edited by Pset, Thu Dec 12, 2013 4:05 AM.


#57 jaybird3rd OFFLINE  

jaybird3rd

    Quadrunner

  • Topic Starter
  • 8,433 posts
  • Location:806.4616.0110

Posted Thu Dec 12, 2013 4:24 AM

Congratulations!  I'd like to do something similar with my own screen editor.  One of my inspirations is TheDraw, as I've mentioned, and TheDraw had an add-on ("TDFONTS", I believe it was called) which included several different fonts that were composed using the IBM PC block and line characters.  I think there are lots of possibilities for something similar on the Aquarius.

 

Regarding the SuperFont upgrade: I've been taking a closer look at the Aquarius video circuitry lately, and I still think I can implement the upgrade as part of the new Mini Expander, without requiring the user to desolder or socket any chips in the Aquarius computer.  I'll need to recreate part of the video circuitry, and tap into some signals that are not provided through the cartridge port.  When it's finished, the installation will require removing the RF shielding, running a new cable into the computer and soldering in a few wires (five, by the looks of it), and lifting one pin or cutting one trace on the board, but most users should be able to do it in an hour or so.  Removing that shielding will probably be the hardest part!



#58 Aquaman OFFLINE  

Aquaman

    Moonsweeper

  • 373 posts
  • Location:the Netherlands

Posted Thu Dec 12, 2013 5:34 AM

Congratulations!  I'd like to do something similar with my own screen editor.  One of my inspirations is TheDraw, as I've mentioned, and TheDraw had an add-on ("TDFONTS", I believe it was called) which included several different fonts that were composed using the IBM PC block and line characters.  I think there are lots of possibilities for something similar on the Aquarius.

 

Regarding the SuperFont upgrade: I've been taking a closer look at the Aquarius video circuitry lately, and I still think I can implement the upgrade as part of the new Mini Expander, without requiring the user to desolder or socket any chips in the Aquarius computer.  I'll need to recreate part of the video circuitry, and tap into some signals that are not provided through the cartridge port.  When it's finished, the installation will require removing the RF shielding, running a new cable into the computer and soldering in a few wires (five, by the looks of it), and lifting one pin or cutting one trace on the board, but most users should be able to do it in an hour or so.  Removing that shielding will probably be the hardest part!

That's exiting news you are giving us :)



#59 Aquaman OFFLINE  

Aquaman

    Moonsweeper

  • 373 posts
  • Location:the Netherlands

Posted Thu Dec 12, 2013 5:37 AM

Coming soon. What is being called The Aquarius TypePSETter for lack of a better name, especialling since it does not handle painting very well at all.

As you can guess by the name it uses the PSET commands, draws Aquarius ASCII data enlarged, and of course spits out BASIC code for the image.

 

Looks very nice indeed!



#60 Pset OFFLINE  

Pset

    Chopper Commander

  • 121 posts

Posted Thu Dec 26, 2013 9:02 PM

Current conditions and C# are keeping me from concentrating on this particular code. 

80x70MapMode editor,aka Aquarius TypePSETter lets you draw via the PSET locations.

It translates input text to the Aquarius character set and converts the pixel location to PSETs.

Control C will copy the BASIC code for the Aquarius to the clipboard.

Control S will ask to save that to a text file.

 

Arrow keys will draw lines around the image area.

 

Tab and Tilde will move through the character set.

 

Toggling Live Type will  reproduce your text in the Aquarius screen simulation as you type.

 

I'm pretty sure my math for the POKE location is still broken.

There was some odd behavior where if a bloxel was hit twice

while using the arrow key, it would be enabled (black) in the simulation

but turned of for the BASIC program.

 

I want to get this posted as a resource before I get sidetracked.

The 'source code' stack is included with the binaries for Mac, Windows, and Linux.

You can open and edit that with Livecode, and I encourage you to try that.

I'm sticking with Livecode 6.0.2 until they fix the Import/Export Image functions.

 

Oh before I forget my reason for rushing this to post.

 

Jay, please post and explain your algorithms for reading and writing Aquarius Character Roms.

I don't know if it will sink in but its a key to the whole point of having cool graphics tools for Aquarius.

Or you could just write an import/export for your app that reads those easy to parse lines of 64 bits that I'm using.

When you have the time and mind to explore that, it would be really appreciated.

 

Oh and you know, I was thinking, a cool program to make would be a character editor in the Aquarius.

You have 8x8 poke locations, you move your cursor with the keyboard, poke in the bits with the space bar,

LPRINT or save the data to a CAQ for some other program to convert to a workable ROM.
Of course the poor hardware could never enjoy such an awesome program, so nobody ever wrote it.


Edited by Pset, Thu Dec 26, 2013 9:04 PM.


#61 jaybird3rd OFFLINE  

jaybird3rd

    Quadrunner

  • Topic Starter
  • 8,433 posts
  • Location:806.4616.0110

Posted Fri Dec 27, 2013 10:17 PM

Jay, please post and explain your algorithms for reading and writing Aquarius Character Roms.
I don't know if it will sink in but its a key to the whole point of having cool graphics tools for Aquarius.
Or you could just write an import/export for your app that reads those easy to parse lines of 64 bits that I'm using.
When you have the time and mind to explore that, it would be really appreciated.
 
Oh and you know, I was thinking, a cool program to make would be a character editor in the Aquarius.
You have 8x8 poke locations, you move your cursor with the keyboard, poke in the bits with the space bar,
LPRINT or save the data to a CAQ for some other program to convert to a workable ROM.
Of course the poor hardware could never enjoy such an awesome program, so nobody ever wrote it.

The Aquarius Character ROM is plain linear bitmap data.  The first 64 bits of the ROM is the 8x8 bitmap for the first character, the next 64 bits is for the second character, and so on through the whole 2K ROM (256 character bitmaps at 64 bits per character adds up to 16,384 bits, or 2 kilobytes).  As I recall, the character data in my editor is stored internally as a two-dimensional array of bytes, and I'm just serializing it and writing it to a file as binary data when the characters are saved to a ROM image.
 
I remember a character editor program for the TI-99/4A that was similar to the one you're describing (it was a type-in BASIC program provided in the 99/4A manuals).  You could edit the characters using an on-screen interface on the 99/4A, and after you were done, the program would convert it into hexadecimal data that you could use in a DATA statement in your programs.  I'm planning on putting together a "sampler" of programs and demos for the new Mini Expander, and this sounds like it would be a good one to include.



#62 Pset OFFLINE  

Pset

    Chopper Commander

  • 121 posts

Posted Sat Dec 28, 2013 9:37 PM

Knew I should take my cue's from Clu and be dogged and relentless.

That information was "All I wanted for Christmas".

 

This bit of Livecode reads  ROM .bin file and returns the  256 lines of 64 bits I use to make my other apps go.

Hoorah. Should have some ROM .bin I/O action updated apps happening real soon.

Happy Holidays! 

 

 
// Livcode convert Aquarius character binary file to 256 lines of 64 1s and 0s
function binDecodeAquariusCharacterRom 
   // must initialize variables for binaryDecode
   global tData, tContainer
   
   // file requester to find a rom 
   answer file "Aquarius character set ROM" with filter "*.bin"
 
   if it is not empty then
      
      put "binfile:" & it into tBinaryFile
      put URL tBinaryFile into tData
      
      // converted 2048 "b"its, of tData to 1 or 0, hold the conversion in tContainer
      
      put binaryDecode("b2048", tData, tContainer) into tN //returns number of converted data types 
 
      //  access 64 bits of data in tContainer per step to get 8x8 bitmap
     put the length of tContainer into tLen
      repeat with i = 1 to tLen step 64
         put char i to (i+63) of tContainer & cr after tBinaryCharacterList
      end repeat
      
      return tBinaryCharacterList 
   end if
end binDecodeAquariusCharacterRom

 

 



#63 Pset OFFLINE  

Pset

    Chopper Commander

  • 121 posts

Posted Tue Jan 7, 2014 6:21 AM

Oh Apparently I forgot to attach the 80x70map mode program.

So here you go:

TH9JTMI.png?1.png

 

 

And a Binary file viewer to.

 

4DtSagS.png

Attached Files



#64 jaybird3rd OFFLINE  

jaybird3rd

    Quadrunner

  • Topic Starter
  • 8,433 posts
  • Location:806.4616.0110

Posted Tue Jan 7, 2014 8:59 AM

Cool! It's great to see all these new tools appearing for the Aquarius!

#65 Aquaman OFFLINE  

Aquaman

    Moonsweeper

  • 373 posts
  • Location:the Netherlands

Posted Tue Jan 7, 2014 3:04 PM

Indeed, this is indeed another fine tool from the hands of Pset :)






0 user(s) are browsing this forum

0 members, 0 guests, 0 anonymous users