Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - merthsoft

Pages: 1 ... 11 12 [13] 14 15 16
181
TI Z80 / Re: Tokens
« on: November 02, 2010, 09:13:10 am »
There's plenty of literature out there about the file formats already, there's no need to figure it out on your own. http://www.ticalc.org/archives/files/fileinfo/247/24750.html this is where I got all my information (and asking some other people on IRC). I host that document on my website as well, http://myserverathome.com/linkguide/

182
TI Z80 / Re: Tokens
« on: November 01, 2010, 02:31:50 pm »
Whoa, ok, I clearly need to check this more often...

If there is any token you want to change, you can modify the XML file. For the "<<" you have two choices, you can either type "<\<" in to the program (which is annoying, I need to work on the loading so that it'll break stuff up in the case of ambiguities like this), or you can change the XML.
Code: [Select]
<Token byte="$EB" string="<<" /> Could be change to:
Code: [Select]
<Token byte="$EB" string="<|" /> This is actually how it is with the newer version. I'm also waiting for Quigibo to get me a simplified list of all the Axe commands and what their function name should be, so that I can get an Axe.xml file so this can work better with Axe.

As for other special characters, the goal is to be able to type everything on a standard US keyboard. I don't want to require a picker, though I will probably have one because it's pretty easy to forget what things are what. So, not equals is != and store is ->. That way you can just type, and not have to be slowed down by needing a chooser.

I hope that addressed the questions that hadn't been answered. If there was something I missed, please ask again :)

183
TI Z80 / Re: Tokens
« on: October 26, 2010, 07:00:18 pm »
So, is this basically a full scale Basic editor?
That's the goal! It should work for most simple things right now (it can open and save programs, stuff like that). Most things are buggy to some extent, but they work!

184
TI Z80 / Re: Tokens
« on: October 26, 2010, 10:29:36 am »
The GUI system is exposed as a library for BASIC programmers (see http://www.ticalc.org/archives/files/fileinfo/429/42991.html), but the actual rendering of the GUI cannot be changed, so you can't, for example, change the check boxes to rounded rectangle or anything like that.

185
TI Z80 / Re: Tokens
« on: October 25, 2010, 10:48:52 am »
It's to simplify the design of GUIs. DCS exposes GUI stuff to BASIC and Asm programmers so they can make GUIs without having to make all the rendering code and all that themselves.

186
TI Z80 / Re: Tokens
« on: October 23, 2010, 12:50:20 am »
Alright, I've added some more DCS GUI elements, here is a sampling:

Which produces this:
Code: [Select]
OpenGUIStack(
PushGUIStack(1,"0000000000","LARGE
PushGUIStack(2,3,13,"0000000000","SMALL
PushGUIStack(11,6,3,0,"","
PushGUIStack(11,12,3,0,"","
PushGUIStack(11,18,3,0,"","
PushGUIStack(11,6,8,0,"","
PushGUIStack(11,12,8,0,"","
PushGUIStack(11,18,8,0,"","
PushGUIStack(22,6,15,29,17,254
PushGUIStack(21,30,4,23,9,1
PushGUIStack(14,40,16,22,14
RenderGUI(
Which renders like this:

So you can see it's not totally perfect, but it's a start! The only GUI items you can use right now are:
    GUIRLargeWin
    GUIRSmallWin
    GUIRCheckbox
    GUIRFullScreenImg
    GUIRRect
    GUIRBorder
    GUIRHotspot

Here's the download link:
http://myserverathome.com/Tokens.zip
This version has been tested under Fedora with Mono 2.8

187
TI Z80 / Re: Tokens
« on: October 22, 2010, 04:48:09 pm »
Ah, right. Mine actually doesn't use the special characters; the idea is that you should be able to type everything directly in a standard US keyboard. So if you want it in the special SourceCoder style, you'll have to use it. As for running off a thumb drive, yes, as long as the computer you're running it on has the .NET framework installed, or you have Mono no your thumbdrive (I don't know if Mono works like that).

188
TI Z80 / Re: Tokens
« on: October 22, 2010, 09:03:27 am »
It ought to work on Mac as well, so long as they use Mono. I don't have one to test on, tough, so if anyone wants to give it a try and post their findings, that would be awesome.

189
TI Z80 / Re: Tokens
« on: October 22, 2010, 12:33:51 am »
To all my Linux friends, I have gotten it to work under Mono:

190
TI Z80 / Re: Tokens
« on: October 21, 2010, 09:28:30 pm »
So, just wrap [code ] tags around it? Sure.

191
TI Z80 / Re: Tokens
« on: October 21, 2010, 05:34:52 pm »
It basically already does what SourceCoder does, except for making actual posts. As for conversion to BBCode, how do you mean?

192
TI Z80 / Re: Tokens
« on: October 20, 2010, 04:14:07 pm »
Nice :O

As for posting API what do you mean? ???
A posting API would be something that would allow my program to interface with the omnimaga board, and post the code of a program directly to a topic.

193
TI Z80 / Re: Tokens
« on: October 19, 2010, 07:42:08 pm »
Some people had mentioned ASM style outputs for the image editor as well, so I implemented that. It was pretty trivial. Here're the xlib sprites:

And here's the dino picture:

Looks like dinos to me!

I suppose the right thing to do now would be to make the sprite editor able to do both hex and binary. I'll also be looking over some of the code Ben sent me to see how easy it would be to make this work with BBC BASIC as well. Ideally, this'll be able to do all languages. For ASM it'll just do the letters and numbers and stuff. I'd like to find out how Mimas saves its files. There will also, of course, be a way to save it in plain text. There's also some talks for getting it to integrate into SourceCoder over at Cemetech, and if Omnimaga has anything like that or any sort of posting API, I'd be glad to integrate that as well.

194
TI Z80 / Re: Tokens
« on: October 18, 2010, 09:14:35 pm »
It's got Celtic, xLib, and DCS support, as in, it puts in the actually command names when you open a file. You should give it a try :)

195
TI Z80 / Re: Tokens
« on: October 18, 2010, 09:17:58 am »
So I haven't updated here in a while, so this will be a pretty picture-heavy post :)
I've started working on a couple things at the same time for this. The first is the DCS GUI editor, right now you can drag checkboxes (I know they say textbox... oops!)!

Results in:

Code: [Select]
PushGUIStack(0,255
PushGUIStack(7,40,24,0,Unchecked,"
PushGUIStack(7,44,20,0,Unchecked,"
PushGUIStack(7,48,20,0,Unchecked,"
PushGUIStack(7,52,24,0,Unchecked,"
PushGUIStack(7,52,28,0,Unchecked,"
PushGUIStack(7,48,32,0,Unchecked,"
PushGUIStack(7,44,36,0,Unchecked,"
PushGUIStack(7,40,40,0,Unchecked,"
PushGUIStack(7,36,36,0,Unchecked,"
PushGUIStack(7,32,32,0,Unchecked,"
PushGUIStack(7,28,28,0,Unchecked,"
PushGUIStack(7,28,24,0,Unchecked,"
PushGUIStack(7,32,20,0,Unchecked,"
PushGUIStack(7,36,20,0,Unchecked,"
This code actually is wrong, but I've since fixed the output.
I've also made progress in the image editor. These are just some of the shapes that you'll be able to add. There will also be the ability to toggle a grid and set the size (so the grid can be every 8x8 pixels, etc.):

There is also undo/redo, and importing. When you go to import a picture it brings up this crop window:

The black rectangle is what you're selecting to be the picture. It does a simple algorithm to turn in to black and white, and gives you this:

I might do an edge detection thing instead of just is this pixel color average closer to black or white, but that's what it does.

And then you can save it!

This obviously shouldn't be used to replace your current image editor, as I'm not in the business of reinventing the wheel, but it is a nice way to open and quickly convert/edit existing image. And lastly (for now), you can export the image to hex, either in one giant string, or broken up as you see fit. It doesn't do the best error detection, so don't go crazy. 8x8 and 16x16 are built in, the rest you have to go into a custom menu. It's not terribly intuitive, but it works. Here are some screenies:




You can download it here:
http://myserverathome.com/Tokens.zip

Hope it isn't too crashy, though I guarantee nothing.

Pages: 1 ... 11 12 [13] 14 15 16