Author Topic: Grammer 2-The APP  (Read 162702 times)

0 Members and 5 Guests are viewing this topic.

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: Grammer 2-The APP
« Reply #30 on: October 22, 2011, 06:18:19 am »
Or just make it work parallel with zStart. :)

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline awalden0808

  • LV3 Member (Next: 100)
  • ***
  • Posts: 55
  • Rating: +6/-0
  • Cool shades, wears Waldo.
    • View Profile
Re: Grammer 2-The APP
« Reply #31 on: October 22, 2011, 08:33:01 am »
It's not working for me. I want to work with sprites, so I'm trying to recreate your Sprite program in the pdf. Do I need to add Stop at the end, or is it not working with hex code??? I don't know what's going on...

EDIT: All of my Grammer programs are working fine except for this one. Note that they still say ".0:Asm(prgmGRAMMER" at the top, and I haven't even reinstalled the Grammer program after the multiple RAM clears.

EDIT': I archived it, put a .0: at the top, and now it works fine. I think I might have missed a line or something...  But again, somehow all my other programs which I have yet to edit after downloading the app are still working.

EDIT'': Another RAM clear. I did not edit it at all. But then I went into the program and realized I probably screwed it up by forgetting to reset the getkey variable, which was still @ 15 (Clear, exits the program).  I really think there should be something done about the RAM clears. I can get around it by keeping everything archived (I edit my programs in Doors and then run them from Doors or Grammer), so it's really just a nuisance at this point.

EDIT''': AAAAAAAGGGH!!!! It cleared again. I'm 100% sure I have a 16 bit hexcode in there. It worked fine with 8 bit but 16 bit screwed it up (I think...).

EDIT'''': WTH IS GOING ON??? Adding Stop to the end fixed it. Yep. Stop. At the end. :\

EDIT''''': All that's worked out, but just wanted to let you know that DataSwap for Pt-On( isn't working at all.  Just draws it, doesn't erase it. I don't want to use overwrite and erase, because I want to be able to possibly have a background.
« Last Edit: October 22, 2011, 09:06:29 am by awalden0808 »
I'll apologize tomorrow for a bad mood today.

Spoiler For Spoiler:
My Qualifications:

I did a thing once.
I am known for my ability to focus intently on things that distract me from my actual work.
To me, the letter a stands for absolute. B stands for bemusement. C stands for circumlocution, and D stands for decoupage.
If I were president, I would give everyone Xboxes, computers, and national healthcare.
I am also known for my ability to write more than I actually need to write. Unless of course it is necessary that I write a lot. Then I write a little bit.

Offline Xeda112358

  • they/them
  • Project Author
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: Grammer 2-The APP
« Reply #32 on: October 22, 2011, 08:41:57 am »
Hmm, Are you using the very latest version? I don't believe I have a sprite program in the latest one.... In any even, here is an example that I just whipped up that works:
Code: [Select]
.0:Asm(prgmGRAMMER     ;Still using this for later versions
Lbl "SPRITE→Z
0→X
→Y
Repeat A=15
Pt-Off(10,Z,Y,X,1,8
DispGraph
Pt-Off(10,Z,Y,X,1,8
Repeat A
getKey→A
End
X+A=3
-A=2
If >88
X
→X
Y+A=1
-A=4
If >56
Y
→Y
End
Goto Lbl "Stop
.SPRITE
3C4281818181423C
.Stop
Stop

I hope that helps, I must go for a while, so good luck!

Offline awalden0808

  • LV3 Member (Next: 100)
  • ***
  • Posts: 55
  • Rating: +6/-0
  • Cool shades, wears Waldo.
    • View Profile
Re: Grammer 2-The APP
« Reply #33 on: October 22, 2011, 09:09:56 am »
I'll try that one out, but just make sure you've got A set to 0 because otherwise it won't enter the Repeat loop.
I'll apologize tomorrow for a bad mood today.

Spoiler For Spoiler:
My Qualifications:

I did a thing once.
I am known for my ability to focus intently on things that distract me from my actual work.
To me, the letter a stands for absolute. B stands for bemusement. C stands for circumlocution, and D stands for decoupage.
If I were president, I would give everyone Xboxes, computers, and national healthcare.
I am also known for my ability to write more than I actually need to write. Unless of course it is necessary that I write a lot. Then I write a little bit.

Offline Xeda112358

  • they/them
  • Project Author
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: Grammer 2-The APP
« Reply #34 on: October 22, 2011, 05:54:58 pm »
Actually, Repeat loops are different from While loops. Repeat loops check the condition after executing the loop and While loops check the condition before executing the loop.

Offline ben_g

  • Hey cool I can set a custom title now :)
  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1002
  • Rating: +125/-4
  • Asm noob
    • View Profile
    • Our programmer's team: GameCommandoSquad
Re: Grammer 2-The APP
« Reply #35 on: October 22, 2011, 06:30:35 pm »
I have put it on my calc, and the app worked great with OS 2.40, but when I updated my OS to 2.55MP, the app worked very slow, and when I select a grammer program and press ENTER, the app just quits.
My projects
 - The Lost Survivors (Unreal Engine) ACTIVE [GameCommandoSquad main project]
 - Oxo, with single-calc multiplayer and AI (axe) RELEASED (screenshot) (topic)
 - An android version of oxo (java)  ACTIVE
 - A 3D collision detection library (axe) RELEASED! (topic)(screenshot)(more recent screenshot)(screenshot of it being used in a tilemapper)
Spoiler For inactive:
- A first person shooter with a polygon-based 3d engine. (z80, will probably be recoded in axe using GLib) ON HOLD (screenshot)
 - A java MORPG. (pc) DEEP COMA(read more)(screenshot)
 - a minecraft game in axe DEAD (source code available)
 - a 3D racing game (axe) ON HOLD (outdated screenshot of asm version)

This signature was last updated on 20/04/2015 and may be outdated

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Grammer 2-The APP
« Reply #36 on: October 22, 2011, 09:27:12 pm »
Nice to see this is now an app Xeda :D

Offline Xeda112358

  • they/them
  • Project Author
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: Grammer 2-The APP
« Reply #37 on: October 22, 2011, 10:49:36 pm »
Thanks, DJ!

And for the folks that have been waiting for it, here is an update :)
Here are two downloads, the first is prgmGRAMMER that is intended for those who intend to have the Grammer APP on their calc. What it does is call the APP, in order to interpret the program (pretty much, it replaces the program version of Grammer if you have the app using only 57 bytes).

The second is the next version of the Grammer App. It now installs a parser hook that allows you to run Grammer programs from the homescreen, even if they are archived.

As another note, I fixed a bug I found :) The particle system still used some SMC that I forgot to get rid of, so it wouldn't change particle types. Now it works fine :)

Please note that subprograms and whatnot must still be in RAM. Also, is there a token I should add that lets the user copy a program or appvar to RAM? I don't mean Unarchiving it, I mean copying, say, prgmPROG from archive to prgmFROG in RAM.
Spoiler For Controls for Partex 2:
Arrows move the cursor (including diagonals)
[Enter] drops particles
[Clear] freezez particles permanently
[ / ] freezes particle movement temporarily
[ * ] unfreezes particle movement
[ + ] sets particles to "boiling"
[ - ] ses particles to "sand"
[2nd] sets pixels on
[DEL] sets pixels off
[Alpha] clears the screen

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: Grammer 2-The APP
« Reply #38 on: October 23, 2011, 02:45:54 am »
Sound nice! I was the first one to download the app! :)

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline Xeda112358

  • they/them
  • Project Author
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: Grammer 2-The APP
« Reply #39 on: October 23, 2011, 03:14:52 am »
Always the first, aren't you? XD I hope it is all in working order now :)

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: Grammer 2-The APP
« Reply #40 on: October 23, 2011, 03:16:24 am »
It works! :)

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline Yeong

  • Not a bridge
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3739
  • Rating: +278/-12
  • Survivor of Apocalypse
    • View Profile
Re: Grammer 2-The APP
« Reply #41 on: October 23, 2011, 07:31:27 am »
for a token, you could use variance( :D
Sig wipe!

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: Grammer 2-The APP
« Reply #42 on: October 23, 2011, 07:56:36 am »
I got a bug-report: It sometimes just freezes.... and then crashes. I don't know why.... :(

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline Yeong

  • Not a bridge
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3739
  • Rating: +278/-12
  • Survivor of Apocalypse
    • View Profile
Re: Grammer 2-The APP
« Reply #43 on: October 23, 2011, 08:20:42 am »
Feature request:
is there a way so we can use loops within the argument of commands, like:
If Pxl-Test(B+11, For(A,1,7):A:End)
Sig wipe!

Offline awalden0808

  • LV3 Member (Next: 100)
  • ***
  • Posts: 55
  • Rating: +6/-0
  • Cool shades, wears Waldo.
    • View Profile
Re: Grammer 2-The APP
« Reply #44 on: October 23, 2011, 09:41:01 am »
Feature request:
is there a way so we can use loops within the argument of commands, like:
If Pxl-Test(B+11, For(A,1,7):A:End)
Genius. Do this. It would help for the goalsetting feature I need to add to the GGRPHJMP program.

Another feature request:
Sprite widths of multiples of 4 instead of 8, considering that's how hex works.  I want to clone Tetris and I want more compact codes instead of C0C0C0C0C0C0C0C0... etc.
I'll apologize tomorrow for a bad mood today.

Spoiler For Spoiler:
My Qualifications:

I did a thing once.
I am known for my ability to focus intently on things that distract me from my actual work.
To me, the letter a stands for absolute. B stands for bemusement. C stands for circumlocution, and D stands for decoupage.
If I were president, I would give everyone Xboxes, computers, and national healthcare.
I am also known for my ability to write more than I actually need to write. Unless of course it is necessary that I write a lot. Then I write a little bit.