Author Topic: Grammer 3-Concepts, ideas, requests  (Read 67815 times)

0 Members and 1 Guest are viewing this topic.

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: Re: Grammer 3-Concepts, ideas, requests
« Reply #90 on: June 20, 2013, 12:02:02 pm »
Would invisible End/then tokens pose problems if someone wants to delete them? I mean that the person might often try to delete them, but place the cursor at the wrong position then delete his previous code instead.

Regarding not using two Thens or too many ends by mistake due to forgetting that you already added them, I guess automated indentation would be solving that. :P

I forgot about the following, but is it possible to choose between small and large fonts?
« Last Edit: June 20, 2013, 12:04:48 pm by DJ Omnimaga »

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 3-Concepts, ideas, requests
« Reply #91 on: June 20, 2013, 12:49:54 pm »
I wouldn't put the end/then tokens invisible...........and i like the small font A LOT more. but yeah, great job! :D
« Last Edit: June 20, 2013, 12:50:04 pm by Sorunome »

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 3-Concepts, ideas, requests
« Reply #92 on: June 20, 2013, 03:05:15 pm »
Yes, the user will be able to choose the font and it currently works with custom fonts that are in RAM. The invisible tokens thing was just a test I did last night on HCWP and it felt like Python code. I think I will leave that as an optional token hook because it does allow more code to be shown. Speaking of token hooks, I modified the code to better support token hooks and I added in the Celtic 3/PicArc tokens. I am now working on xLib and Omnicalc tokens, but I have found that I cannot find a list of the Omnicalc real() values anywhere :/ I will have to look at each of them myself, then.

The screenie is an example of how the token hook can modify the token set for Celtic 3, PicArc and xLib commands. It also shows how hacked matrices are named.

EDIT: Is it me, or is that large font annoying?

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)

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

Offline mdr1

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 303
  • Rating: +21/-2
    • View Profile
Re: Grammer 3-Concepts, ideas, requests
« Reply #94 on: June 20, 2013, 04:25:46 pm »
(I should note that I decided to make the Editor app separate from the Grammer 3 app.)
The project of an editor is gaining the upper hand on Grammer3 then? Too bad. More, if you'll still make Grammer3, users will need 3 pages of apps : 2 for Grammer, 1 for the editor.

Last night in HCWP, I was fairly productive and tested a bunch of things including the font and making certain tokens invisible (like Then and End tokens).
To my mind, not really a good idea to do like Python. Basic language got a low level of interpretation which allows to do weird stuffs like multi-instructions after an If without Then, conditional enters in a loop, routines in the same program etc. But yes, you could make it optional.
« Last Edit: June 20, 2013, 04:26:47 pm by mdr1 »



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 3-Concepts, ideas, requests
« Reply #95 on: June 20, 2013, 04:34:21 pm »
Have you considered adding code folding to the editor?
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 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 3-Concepts, ideas, requests
« Reply #96 on: June 20, 2013, 04:35:22 pm »
The editor already takes over 7000 bytes of memory. I also need to get the editor working for Grammer 3 programs before I can really progress with making the interpreter. If I can, I will include the editor with Grammer 3 (if they fit). They do share a bunch of the same code, so that should make it easier.

EDIT: @ben_g: What do you mean by code folding? Do you mean like hiding blocks of code unless the user clicks on it to expand it? If so, then yes, but it won't be easy to implement for the BASIC editor.

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 3-Concepts, ideas, requests
« Reply #97 on: June 20, 2013, 04:43:37 pm »
The editor already takes over 7000 bytes of memory. I also need to get the editor working for Grammer 3 programs before I can really progress with making the interpreter. If I can, I will include the editor with Grammer 3 (if they fit). They do share a bunch of the same code, so that should make it easier.

EDIT: @ben_g: What do you mean by code folding? Do you mean like hiding blocks of code unless the user clicks on it to expand it? If so, then yes, but it won't be easy to implement for the BASIC editor.
Yes, hiding blocks of code like the inside of functions or loop, so you will for example only see:
Code: [Select]
[+]function doSomething(argument) {...}
And if the user presses the
  • icon, it should show everything inside the function. It can be really usefull if you only use a single source file, because with code folding, you have to scroll trough huge portions of code less often.
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: Re: Grammer 3-Concepts, ideas, requests
« Reply #98 on: June 20, 2013, 09:37:03 pm »
If the editor requires an extra RAM page, could it be kept separately for people who don't want to use it? As for the fonts I think they are fine, from what I saw earlier in the screenshot.

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 3-Concepts, ideas, requests
« Reply #99 on: June 20, 2013, 11:14:43 pm »
@DJ_O: That is the main reason for why I want to keep it separate. For people that only want to use Grammer 3 programs, the extra flash page for the editor is kind of a waste. Whereas for developers, it is useful. Plus, the editor app should be functional on its own.

That said, I only have 5800 bytes of code space left and I haven't even started the editing part of the editor :/ I will probably remove the variable width font and if users really want to use such a font, they can load their own. Also, for the indenting, I have come into a problem that I am trying to fix. Trying to scroll backwards isn't working very nicely at the moment for the indents, but I am hoping that I will have a fix. However, the perfect solution might cause a hit to speed for the editor (scanning all of the code before it to figure out the indent). For now, here is a screenshot of viewing the code :)

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 3-Concepts, ideas, requests
« Reply #100 on: June 21, 2013, 04:37:46 am »
Looking nice!
And did you see my link for the real( and omnicalc tokens?

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

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 3-Concepts, ideas, requests
« Reply #101 on: June 21, 2013, 04:40:37 am »
I personally hope that the fonts are monospace, since otherwise it can be annoying to edit in-game text (aligning it properly, I mean), or in the case where someone decided to use the editor for BASIC, editing string-based maps (like in Illusiat 13)

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 3-Concepts, ideas, requests
« Reply #102 on: June 21, 2013, 09:28:53 am »
@Sorunome: I saw the link. Unfortunately, the readme doesn't equate the real( commands to tokens, so instead  just opened the source and found the code for the menu. I now need to add in the DoorcSC7 commands, BatLib commands, and make a separate hook for Axe, Grammer 2, and whole token set for Grammer 3.

I have some goals for today and hopefully I will get something more useful done.

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 3-Concepts, ideas, requests
« Reply #103 on: June 21, 2013, 02:08:27 pm »
Good luck :)

Offline calcdude84se

  • Needs Motivation
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2272
  • Rating: +78/-13
  • Wondering where their free time went...
    • View Profile
Re: Grammer 3-Concepts, ideas, requests
« Reply #104 on: June 21, 2013, 06:49:28 pm »
Also, for the indenting, I have come into a problem that I am trying to fix. Trying to scroll backwards isn't working very nicely at the moment for the indents, but I am hoping that I will have a fix. However, the perfect solution might cause a hit to speed for the editor (scanning all of the code before it to figure out the indent).
All the code O_O? Maybe you could create an array in memory that has the indent amount for each line instead? I know computer text editors often cache information like that.
"People think computers will keep them from making mistakes. They're wrong. With computers you make mistakes faster."
-Adam Osborne
Spoiler For "PartesOS links":
I'll put it online when it does something.