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 - Xeda112358

Pages: 1 ... 184 185 [186] 187 188 ... 317
2776
Grammer / Re: Grammer 2-The APP
« on: November 29, 2011, 08:53:04 pm »
So after many requests to add a sound routine and a request to add a custom error, I have finally added them  :w00t:

For now, the sound routine may change unless I get approval from yeong and no better ideas are brought forth, but have fun with the examples. Unfortunately, I cannot take a screenshot of sound with the technology I have here, so you will either need to take my word or try it yourself (I suggest using Wabbit and enabling sound, though it sounds the same on a calc if you have headphones).

So the syntax:
conj(Duration,DataLoc,DataSize
This will play the sound for the data at DataLoc. DataSize is the number of bytes to play. Duration is how long to play each note (256 is fast, 65535 is really slow)

Alternatively, you can play just one sound using the ' operator followed by a note value. The notes are 1 to 127 and 129-255 are silence:
conj(Duration,'Value

And for custom error messages, just add another argument to the CallError command and use error code 2:
Code: [Select]
solve(4,2,"Something
Also, I was wrong before, I did manage to get the Goto option to work, too :

2777
Grammer / Re: Grammer Q&A
« on: November 29, 2011, 08:15:47 pm »
No, you should not write to a group O.O Only read from it unless you know exactly what you are doing! Creating a group could cause some serious issues...

2778
Grammer / Re: Grammer Q&A
« on: November 29, 2011, 08:13:46 pm »
@Yeong: I should remember to include the chart in the readme... For now:
Code: [Select]
D=Str
E=Program
F=Protected Program
G=Picture
H=GDB
U=Appvar
V=Temp Program
W=Group           ;be careful with this one!
@C0deH4cker: I've no clue what that means, but Grammer is Turing Complete (I believe) and so can emulate other Turing machines, so you can create a new interpreter from Grammer :)

2779
Grammer / Re: Grammer Font Editor
« on: November 29, 2011, 04:14:22 pm »
You can toggle the font as you need to. For example, if you wanted to use both built in fonts plus your own:
Code: [Select]
Output(1,Get("UFont   ;Sets your font
Text(0,25,"Grammer 2
Output(1                  ;Sets the built in variable size font
Text(8,30,"The App
Output(0                  ;Sets the default font
Text(16,7,"By Zeda E.
DispGraph
I could add an argument to allow you to choose the font used to display text, though... Maybe the r token? So for example, instead of actually changing the font used by the program, it chooses just the font used by the routine.

2780
Is the deadline November 30th at 23:59:59 or December 1st at 23:59:59?
And is this France time, GMT, or some other time?

2781
Okay, thanks! There is only a short time left! The excitement is so... :hyper:

2782
TI Z80 / Re: [Contest] Grammer Avoid!
« on: November 29, 2011, 08:51:47 am »
I didn't use Full in the optimised version, originally, but I decided to show what the effect was (and that made it extremely fast O.O)
In any event, I understand that yeong, but good luck XD

2783
Grammer / Re: Grammer 2-The APP
« on: November 29, 2011, 08:49:25 am »
Thanks, guys :)
@Yeong: If I make a custom error, I believe it cannot have a Goto option, but I can add it :)

2784
Grammer / Re: Grammer Font Editor
« on: November 29, 2011, 08:47:11 am »
:3 I am trying to think of how this could be better, though, any ideas?

2785
TI Z80 / Re: [Contest] Grammer Avoid!
« on: November 29, 2011, 01:09:02 am »
Oh, wow, this looks nice! I guess I should really add proper sprite clipping for the top direction. I will need to think this through... This looks like it is going to be very nice, especially with all the extra stuff you plan to add!

And the speed... it depends on how you are coding things, I guess. There are some ways of doing things that are much faster than others (just check out the first version of Mars Invaders versus the optimised version).
First version:
Optimised version:

2786
Grammer / Re: Grammer 2-The APP
« on: November 28, 2011, 11:53:26 pm »
Sorry for the triple post, but this is a decent update, I believe :/

So some of the new commands are:
Fix 32
     TextMode. 0 is the default, fixed width font. 1 is the variable width font.

The ' modifier can now be used in the Text( command to display an individual character by number. So to display char 248:
Code: [Select]
Text(0,0,'248

Output( can now be used to change the font as well as set a font (for the duration of the program).

/ can be used for signed division. This is a division sign with a space after it. This is still tentative and may not remain backwards compatible, though, so any other suggestions are welcome.

solve(4,Error# will create an error. This is useful if you have a custom error handler where you want some errors to be handled by the program and others by Grammer.

I should also note that errors now have a Goto option if the program is not archived or protected. In the first Grammer, this was always the case, but since it has become an app, I have only just added the code to do this. It will jump to the offending line as it would in BASIC :)

I'm not really sure what other screenies to add, so I will just use one with the incomplete fontset (complete enough for most text).

See this Font Editor, too!

2787
Grammer / Grammer Font Editor
« on: November 28, 2011, 11:52:55 pm »
So for the past few days I have been making comments about a "variable size font editor for Grammer." So now it is time to explain and release :)
Pretty much, I added a variable size font to Grammer and that made me add a command to swap between the fixed font and variable size font. So while I was at it, I finally included the ability to use your own custom fonts as well! But making a font is time consuming and tedious at best and typing in all the hex could get migraine inducing. So I made a font editor :)

Pretty much, you can cycle forward through the characters, change their sizes, edit their appearance, et cetera. The characters can be 0 to 9 pixels wide and 1 to 16 pixels tall. The readme explains the controls and how to use your brand new font :) There is a sample fontset included that is currently used by Grammer (so it isn't too tedious). I should eventually add an option to create new fixed size fonts, but the current 4x6 font has a weird syntax as it is stored as nibbles for extra compression.

2788
Site Feedback and Questions / Re: Bots????
« on: November 28, 2011, 10:40:54 pm »
Well, I can now see the matrix and I have become sentient, that is all  :ninja:

2789
Site Feedback and Questions / Re: Bots????
« on: November 28, 2011, 07:44:18 pm »
My botishness has been brought into question on multiple occasions. I was even lead to believe I was a bot O.O

In all seriousness, though, UTI has been inundated with bots over the past few weeks. I have literally had to go through several hundred posts to delete all of the spam ones (so all except 8 or 9)

2790
Hmm, I've no idea what could be wrong. Maybe message Contra?

EDIT: Message on the zContest site :P

Pages: 1 ... 184 185 [186] 187 188 ... 317