• Features Wishlist 5 1
Currently:  

Author Topic: Features Wishlist  (Read 611650 times)

0 Members and 3 Guests are viewing this topic.

Offline ralphdspam

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 841
  • Rating: +38/-1
  • My name is actually Matt.
    • View Profile
Re: Features Wishlist
« Reply #2280 on: May 13, 2011, 12:02:45 am »
Cool!  I can't wait until the next release. :)
ld a, 0
ld a, a

Offline Freyaday

  • The One And Only Serial Time Killing Catboy-Capoeirista-Ballerino
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1970
  • Rating: +128/-15
  • I put on my robe and pixel hat...
    • View Profile
Re: Features Wishlist
« Reply #2281 on: May 13, 2011, 01:55:26 am »
Amazing work Quigibo! I can't wait for 0.5.2!
In other news, Frey continues kicking unprecedented levels of ass.
Proud member of LF#N--Lolis For #9678B6 Names


I'm a performer at heart; I stole it last week.
My Artwork!

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: Features Wishlist
« Reply #2282 on: May 13, 2011, 10:23:35 am »
Quote
ERR: BLOCK Either an “End” is missing you you have too many “End”s.

This is from documentation.pdf. What if there is an ERR for too many "End"s and an error for not enough?

Offline Compynerd255

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 336
  • Rating: +53/-4
  • Betafreak Games
    • View Profile
    • Betafreak Games
Re: Features Wishlist
« Reply #2283 on: May 13, 2011, 10:29:14 am »
Quote
ERR: BLOCK Either an “End” is missing you you have too many “End”s.

This is from documentation.pdf. What if there is an ERR for too many "End"s and an error for not enough?
That's actually a good idea. One feature request I have is, when Axe encounters an error, it actually keeps going, looking for all the errors, and then lets you go to any of the error. Then, if all of the errors have the same, underlying cause, you can fix it. (This once happened to me in a C# program. I put a closing bracket in the wrong place, yielding hundreds of errors simply because my code was outside of legal programming space.) Also, this would let you have warnings (nonfatal errors such as unclosed parentheses, incorrect arguments in a subroutine, over 8811 bytes of code, and whatnot).
« Last Edit: May 13, 2011, 10:29:50 am by Compynerd255 »
The Slime: On Hold, preparing to add dynamic tiles

Axe Eitrix: DONE

Betafreak Games: Fun filled games for XBox and PC. Check it out at http://www.betafreak.com



Offline lookitsan00b

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 173
  • Rating: +37/-3
    • View Profile
Re: Features Wishlist
« Reply #2284 on: May 13, 2011, 04:45:10 pm »
Quote
ERR: BLOCK Either an “End” is missing you you have too many “End”s.

This is from documentation.pdf. What if there is an ERR for too many "End"s and an error for not enough?
Just wondering: could it also be caused by too many (but the correct amount) of ends?
Its the only thing I can think of to cause an err:block in one of my recent situations...
Spoiler For problem area/pseudocode:
Code: [Select]
Repeat
 For
  If
  ElseIf
  ElseIf
  ElseIf
  ElseIf
   If
    For
     If
      If
       If
       ElseIf
       ElseIf
       ElseIf
       ElseIf
       ElseIf
        If
        ElseIf <-- err:block here
        ElseIf
        End
       ElseIf
       End
      End
     End
    End
   End
  ElseIf
  End
 End
End
I may have forgotten a couple :P
I managed to fix it by swapping some elseifs for if's placed end to end... (and changing elseifs to elses) but I wanna add more elseifs!

... and all those elseifs.... are actually "Else!If -1"s. Any chance of a selection structure ??? :D
My TI-94+SE is broken.  I used some flawed existential conditioning on it, and it crashed. :(

Activity level:
{====______}

Spoiler For Securite:
{=========_}

A couple security flaws
Need a good backdoor short of reinstalling the OS
Completely immobilized and invalidated by Zstart. And rendered incompatible.
Spoiler For FFTATIA:
{====______}

framework: mostly done
graphics engine: undergoing complete rewrite
still need character and enemy sprites!!! :P

Offline Runer112

  • Project Author
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2289
  • Rating: +639/-31
    • View Profile
Re: Features Wishlist
« Reply #2285 on: May 13, 2011, 04:49:47 pm »
You can only have a certain number of nested conditionals before the parser no longer has enough RAM to keep track of them and is forced to throw an ERR: BLOCK. You can manually make ElseIf analogs that don't use nested conditionals by doing something like the following. They will result in the same compiled code too, so you don't have to worry about the fix bloating your code.

Code: (Uses nested conditionals) [Select]
If -1
 
 .Stuff
 
ElseIf -1
 
 .Stuff
 
ElseIf -1
 
 .Stuff
 
ElseIf -1
 
 .Stuff
 
End
   
Code: (Doesn't use nested conditionals) [Select]
If -1
 .Stuff
 Goto END
End
If -1
 .Stuff
 Goto END
End
If -1
 .Stuff
 Goto END
End
If -1
 .Stuff
 Goto END
End
Lbl END

Alternatively, if you're using 3 or more ElseIfs in a row, it's optimal to turn the whole chain into a subroutine, like this:

Code: [Select]
sub(IF)

Lbl IF
 If -1
  .Stuff
  Return
 End
 If -1
  .Stuff
  Return
 End
 If -1
  .Stuff
  Return
 End
 If -1
  .Stuff
  Return
 End
Return
« Last Edit: May 13, 2011, 05:02:32 pm by Runer112 »

Offline lookitsan00b

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 173
  • Rating: +37/-3
    • View Profile
Re: Features Wishlist
« Reply #2286 on: May 13, 2011, 04:58:25 pm »
aaww... I figured that was it. I guess I cant add any more types then... or can I use a subroutine to get around it :D ???

But still, only 19 types? thats nowhere near enough... especially since its already causing problems with 7 :P

Still hoping for a selection structure though :D

EDIT: ok thanks, although I was just thinking to move the whole if/elseif block into a subroutine :P
« Last Edit: May 13, 2011, 05:06:27 pm by lookitsan00b »
My TI-94+SE is broken.  I used some flawed existential conditioning on it, and it crashed. :(

Activity level:
{====______}

Spoiler For Securite:
{=========_}

A couple security flaws
Need a good backdoor short of reinstalling the OS
Completely immobilized and invalidated by Zstart. And rendered incompatible.
Spoiler For FFTATIA:
{====______}

framework: mostly done
graphics engine: undergoing complete rewrite
still need character and enemy sprites!!! :P

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: Features Wishlist
« Reply #2287 on: May 15, 2011, 08:32:28 pm »
If you need more than 19, maybe you could find some way to wrap it in a loop instead? Sort of like a switch statement?
« Last Edit: May 15, 2011, 08:32:40 pm by Deep Thought »




Offline Freyaday

  • The One And Only Serial Time Killing Catboy-Capoeirista-Ballerino
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1970
  • Rating: +128/-15
  • I put on my robe and pixel hat...
    • View Profile
Re: Features Wishlist
« Reply #2288 on: May 16, 2011, 04:35:31 pm »
A way to check if any key is pressed except a particular key.
I'll use 5 (a nonexistent key) for the following examples
Code: [Select]
not(getkey(5))activates when no key is pressed
Code: [Select]
not(getkey(5)) and (getkey(0)) will not activate when 5 is pressed, even when there are other keys being pressed at the same time
In other news, Frey continues kicking unprecedented levels of ass.
Proud member of LF#N--Lolis For #9678B6 Names


I'm a performer at heart; I stole it last week.
My Artwork!

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Features Wishlist
« Reply #2289 on: May 16, 2011, 04:37:15 pm »
doesn't those code examples work anyway? o.O

Offline Freyaday

  • The One And Only Serial Time Killing Catboy-Capoeirista-Ballerino
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1970
  • Rating: +128/-15
  • I put on my robe and pixel hat...
    • View Profile
Re: Features Wishlist
« Reply #2290 on: May 16, 2011, 04:40:36 pm »
They do not produce the desired behavior, and I also have another request:
The complement of this, a way to check if a specific key, and only that specific key, is pressed.
Any code I can come up with has the same problems as above
In other news, Frey continues kicking unprecedented levels of ass.
Proud member of LF#N--Lolis For #9678B6 Names


I'm a performer at heart; I stole it last week.
My Artwork!

Offline Runer112

  • Project Author
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2289
  • Rating: +639/-31
    • View Profile
Re: Features Wishlist
« Reply #2291 on: May 16, 2011, 04:44:15 pm »
The second code example you posted already works. But while checking for individual keys or any key is easy, what you suggest is not nearly as easy. This is a good example of the kind of function that could be useful in an Axiom, but isn't really needed enough (especially for its relative complexity compared to other key commands) to warrant making it a built-in feature.
« Last Edit: May 16, 2011, 04:45:15 pm by Runer112 »

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Features Wishlist
« Reply #2292 on: May 16, 2011, 04:50:39 pm »
Try If not(getKey(5)) and (getKey(0)!=0) for the first one, it seems to provide the results you are looking for.  The documentation specifies that getKey(0) does not return 0 or 1, merely a nonzero number.  For the second, I can't think of a way to do it in axe, so that might be a worthy addition

Offline Freyaday

  • The One And Only Serial Time Killing Catboy-Capoeirista-Ballerino
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1970
  • Rating: +128/-15
  • I put on my robe and pixel hat...
    • View Profile
Re: Features Wishlist
« Reply #2293 on: May 16, 2011, 04:53:13 pm »
I have two more Ideas:
An option to show the list of variables a program uses
And a Widow command, think of scrolling around a pic that's bigger than your computer screen, something like Window(Pointer to start of data,Width of pic, Highth of pic, x-coordinate of start, y-coordinate of start
Where start is the coordinate in the too-big pic that will be mapped to 0,0
And also Window()r
And StoreWindow() which would take the same arguments, but put the screen onto the pic instead of the other way around. And, of course, StoreWindow()r
« Last Edit: May 16, 2011, 05:10:15 pm by Freyaday »
In other news, Frey continues kicking unprecedented levels of ass.
Proud member of LF#N--Lolis For #9678B6 Names


I'm a performer at heart; I stole it last week.
My Artwork!

Offline Runer112

  • Project Author
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2289
  • Rating: +639/-31
    • View Profile
Re: Features Wishlist
« Reply #2294 on: May 16, 2011, 04:57:27 pm »
To be fair, I can't think of how these features would be terribly useful. I've never encountered a game or program that tells me to press any key except ENTER, or a game that tells me to press ENTER and not touch any other keys. If you can suggest a good use for it to me, then I will submit that it could be useful as a built-in feature.
« Last Edit: May 16, 2011, 04:58:56 pm by Runer112 »