Author Topic: Bugs and Requested Features with the HP Prime and Related Software  (Read 42579 times)

0 Members and 1 Guest are viewing this topic.

Offline Han

  • LV3 Member (Next: 100)
  • ***
  • Posts: 62
  • Rating: +7/-0
    • View Profile
Re: Bugs and Requested Features with the HP Prime and Related Software
« Reply #105 on: December 22, 2013, 01:52:28 pm »
I'm not sure about speed, but one approach is to just double the width of G1 so that it contains two copies of what you want to scroll. So if you have a 320x240 image, and the far right edge is created so that it is seamless with the far left ledge if we were to lay a duplicate copy side-by-side, then a simple loop using BLIT_P(G0,0,0,320,240,G1,i,0,320+i,240); would scroll horizontally (requires G1 to be 640x240). In fact, you can create a much larger G1, and use BLIT_P to copy the appropriate 320x240 window into G0. So G0 is used to scroll the window within G1. Or did you already try this and it was too slow?

Offline DJ Omnimaga

  • Former TI programmer
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55865
  • Rating: +3151/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • DJ Omnimaga Music
Re: Bugs and Requested Features with the HP Prime and Related Software
« Reply #106 on: December 22, 2013, 02:03:37 pm »
I actually tried with an extra 320x240 GROB (G2) but I noticed an impact on speed. It wasn't really slow, but for very fast scrolling I would definitively have needed to scroll every two pixel or higher.
In case you are wondering where I went, I left Omni back in 2015 to form CodeWalrus due to various reasons explained back then, but I stopped calc dev in 2016 and am now mostly active on the CW Discord server at https://discord.gg/cuZcfcF



Official Website |T-Shirt store | Reverbnation | Facebook | Youtube | Twitter | Spotify

Offline Han

  • LV3 Member (Next: 100)
  • ***
  • Posts: 62
  • Rating: +7/-0
    • View Profile
Re: Bugs and Requested Features with the HP Prime and Related Software
« Reply #107 on: December 25, 2013, 12:19:03 am »
Code: [Select]
export VSCROLL()
begin
  local i;
  dimgrob_p(G1,320,240);
  blit_p(G1,G0);
  for i from 239 downto 0 step 1 do
    blit_p(G0,0,0,G1,0,240-i,320,240);
    blit_p(G0,0,i,G1,0,0,320,240-i);
  end;
end;

This scrolls the current screen pretty fast. Modifying it for horizontal scrolling is also pretty fast.

Code: [Select]
export HSCROLL()
begin
  local i;
  dimgrob_p(G1,320,240);
  blit_p(G1,G0);
  for i from 319 downto 0 step 1 do
    blit_p(G0,0,0,G1,320-i,0,320,240);
    blit_p(G0,i,0,G1,0,0,320-i,240);
  end;
end;


Offline bb010g

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 428
  • Rating: +22/-1
  • I do stuff
    • View Profile
    • elsewhere on the net
Re: Bugs and Requested Features with the HP Prime and Related Software
« Reply #108 on: December 25, 2013, 07:05:56 pm »
There should be a INPUTSTRING to go along with INPUT. It just sets var to the string of what was input, so the user can do whatever they want without typing quotes.
Arch Linux user
Haskell newbie | Warming up to Lua | Being dragged into C++
Calculators: HP 50g, HP 35s, Casio Prizm, TI-Nspire CX CAS, HP 28s, HP Prime, Mathematica 9 (if that counts)
π: 3.14...; l: 108; i: 105; e: 101; l+i+e: 314
THE CAKE IS A LIE IS A PIE

Offline DJ Omnimaga

  • Former TI programmer
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55865
  • Rating: +3151/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • DJ Omnimaga Music
Re: Bugs and Requested Features with the HP Prime and Related Software
« Reply #109 on: December 31, 2013, 01:23:20 am »
Code: [Select]
export VSCROLL()
begin
  local i;
  dimgrob_p(G1,320,240);
  blit_p(G1,G0);
  for i from 239 downto 0 step 1 do
    blit_p(G0,0,0,G1,0,240-i,320,240);
    blit_p(G0,0,i,G1,0,0,320,240-i);
  end;
end;

This scrolls the current screen pretty fast. Modifying it for horizontal scrolling is also pretty fast.

Code: [Select]
export HSCROLL()
begin
  local i;
  dimgrob_p(G1,320,240);
  blit_p(G1,G0);
  for i from 319 downto 0 step 1 do
    blit_p(G0,0,0,G1,320-i,0,320,240);
    blit_p(G0,i,0,G1,0,0,320-i,240);
  end;
end;


Thanks for this. I'll keep this in mind the next time :)
In case you are wondering where I went, I left Omni back in 2015 to form CodeWalrus due to various reasons explained back then, but I stopped calc dev in 2016 and am now mostly active on the CW Discord server at https://discord.gg/cuZcfcF



Official Website |T-Shirt store | Reverbnation | Facebook | Youtube | Twitter | Spotify

Offline DJ Omnimaga

  • Former TI programmer
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55865
  • Rating: +3151/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • DJ Omnimaga Music
Re: Bugs and Requested Features with the HP Prime and Related Software
« Reply #110 on: January 04, 2014, 04:17:55 pm »
Not really a bug, but more feature suggestions:

-The ability to see how much RAM is being used and the total amount of RAM. Maybe in the Memory menu?

-The ability to see how much program/variable/application storage memory (I assume it's the Flash, right?) is left.
In case you are wondering where I went, I left Omni back in 2015 to form CodeWalrus due to various reasons explained back then, but I stopped calc dev in 2016 and am now mostly active on the CW Discord server at https://discord.gg/cuZcfcF



Official Website |T-Shirt store | Reverbnation | Facebook | Youtube | Twitter | Spotify

Offline DJ Omnimaga

  • Former TI programmer
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55865
  • Rating: +3151/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • DJ Omnimaga Music
Re: Bugs and Requested Features with the HP Prime and Related Software
« Reply #111 on: January 08, 2014, 01:57:47 pm »
Suggestion:

-Make it so that in the program menu, the Enter key runs the program instead of opening the program editor. This is how it works on TI and Casio calculators (other than the Classpad) and it would considerably reduce risks of users accidentally modifying program code when a program exits. I often found myself landing in the program editor due to mashing Enter in certain games or programs and accidentally adding an extra linebreak splitting the first line of code in half. Also, since I am so used to pressing ENTER to run programs, I often press it by mistake in attempt to run the program, only to end up in the editor.

-Password protection for program code. Although I discourage closed sourceness so we can learn in this free community, password protection could fix the issue mentionned above.

-A variable type with values that won't get erased even after pressing the Reset button on the calculator back nor exiting the program menu. This would make it possible for programmers to let the user save his program settings, game saves and highscores without losing them all everytime he accidentally opens the program code then exits.
In case you are wondering where I went, I left Omni back in 2015 to form CodeWalrus due to various reasons explained back then, but I stopped calc dev in 2016 and am now mostly active on the CW Discord server at https://discord.gg/cuZcfcF



Official Website |T-Shirt store | Reverbnation | Facebook | Youtube | Twitter | Spotify

Offline bb010g

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 428
  • Rating: +22/-1
  • I do stuff
    • View Profile
    • elsewhere on the net
Re: Bugs and Requested Features with the HP Prime and Related Software
« Reply #112 on: January 09, 2014, 09:12:08 pm »
Feature Requestions:
1. Will we be getting the «»'s back soon? I really like them for debugging and things. You already have a RPN→BASIC framework set up (I'd think, with working RPN in home and function symbolic view input ("'X' 2 *" to "'X*2'").
2. Will there ever be named vars like in the other HP calculators (with nice menus and stuff)? You could make it an option on the last page of Home settings.
3. Is calc-to-calc IO planned or scrapped? You say to ignore it in the packaging, but you do have it implemented a bit...
4. Will we see built in 3D geometry? The CAS produces commands for it when you run the example for plotparam.
Bugs:
1. Help > Main says "This is the online help system for your HP Prime." The help is repeatedly referred to as such elsewhere. (Also, if it says that, where can we find the help online? :))
2. General crashiness when using menus a lot without closing it. Try going into CAS and doing Toolbox > CAS > Polynomial and pressing left-right repeatedly; it gives a crash pretty handily.
3. Geometry Symb's default GA is undef, you can keep it that way if you hit cancel. Attempts to set it from CAS have no effect upon repeated sets.
4. Advanced Geometry Symb: Tapping upon a non-null V var doesn't show the same menu as if you pressed Edit.
5. SIN(π)≠0. I get the exact same number on my 35s. I don't know if you can fix it, but it would be nice.
6. User Keyboard help page does not specify how to set User keys. It looks useful, but I'm lost.
Arch Linux user
Haskell newbie | Warming up to Lua | Being dragged into C++
Calculators: HP 50g, HP 35s, Casio Prizm, TI-Nspire CX CAS, HP 28s, HP Prime, Mathematica 9 (if that counts)
π: 3.14...; l: 108; i: 105; e: 101; l+i+e: 314
THE CAKE IS A LIE IS A PIE

Offline MacBernick

  • LV3 Member (Next: 100)
  • ***
  • Posts: 93
  • Rating: +3/-0
    • View Profile
Re: Bugs and Requested Features with the HP Prime and Related Software
« Reply #113 on: January 17, 2014, 10:28:07 am »
I think I ran into a bug, sorry if it has already been reported.

The append() function seems to be broken when using non-exported globals. Look at this code :

Code: [Select]
lst;

EXPORT appendTest()
BEGIN
  RECT();
  lst := {1,2,3};
  TEXTOUT_P(lst,0,0);
  lst := append(lst, 4);
  TEXTOUT_P(lst,0,20);
  FREEZE;
END;

The output is in the attached screenshot. It produces a Bad Argument error, and the funniest : variable lst seems to contain the error message as a string.
If adding EXPORT to variable declaration it works fine.

« Last Edit: January 17, 2014, 10:29:03 am by MacBernick »

Offline timwessman

  • LV3 Member (Next: 100)
  • ***
  • Posts: 94
  • Rating: +32/-0
    • View Profile
Re: Bugs and Requested Features with the HP Prime and Related Software
« Reply #114 on: January 17, 2014, 01:19:41 pm »
The reason why is append is a CAS command and the CAS can't access local/temp variables since it has no way to get at the object.
TW

Although I work for the HP calculator group, the comments and opinions I post here are my own.

Offline MacBernick

  • LV3 Member (Next: 100)
  • ***
  • Posts: 93
  • Rating: +3/-0
    • View Profile
Re: Bugs and Requested Features with the HP Prime and Related Software
« Reply #115 on: January 17, 2014, 01:41:12 pm »
This OS is a mess :(

Offline timwessman

  • LV3 Member (Next: 100)
  • ***
  • Posts: 94
  • Rating: +32/-0
    • View Profile
Re: Bugs and Requested Features with the HP Prime and Related Software
« Reply #116 on: January 17, 2014, 02:14:23 pm »
Note the correct way to do this is replace the append line with lst(0):=4; which works fine.
TW

Although I work for the HP calculator group, the comments and opinions I post here are my own.

Offline DJ Omnimaga

  • Former TI programmer
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55865
  • Rating: +3151/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • DJ Omnimaga Music
Re: Re: Bugs and Requested Features with the HP Prime and Related Software
« Reply #117 on: January 17, 2014, 05:38:57 pm »
Tim do you think next version could have a way to save exported vars beyond code recompile? If I play a game with highscores then open the code by mistake, once I exit my highscores (stored in exported vars) are lost.
In case you are wondering where I went, I left Omni back in 2015 to form CodeWalrus due to various reasons explained back then, but I stopped calc dev in 2016 and am now mostly active on the CW Discord server at https://discord.gg/cuZcfcF



Official Website |T-Shirt store | Reverbnation | Facebook | Youtube | Twitter | Spotify

Offline MacBernick

  • LV3 Member (Next: 100)
  • ***
  • Posts: 93
  • Rating: +3/-0
    • View Profile
Re: Bugs and Requested Features with the HP Prime and Related Software
« Reply #118 on: January 17, 2014, 05:40:58 pm »
Thanks for this syntax, I didn't see it in documentation.

I really don't see how anyone could figure out that inserting at index 0 would push a value at the end of the list, and I don't want to know the logic behind this ^^

Thank you for your fast answers.

Offline bb010g

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 428
  • Rating: +22/-1
  • I do stuff
    • View Profile
    • elsewhere on the net
Re: Bugs and Requested Features with the HP Prime and Related Software
« Reply #119 on: January 17, 2014, 07:09:52 pm »
If you have no CAS variables and press edit from their menu in Memory, the calc crashes.
Arch Linux user
Haskell newbie | Warming up to Lua | Being dragged into C++
Calculators: HP 50g, HP 35s, Casio Prizm, TI-Nspire CX CAS, HP 28s, HP Prime, Mathematica 9 (if that counts)
π: 3.14...; l: 108; i: 105; e: 101; l+i+e: 314
THE CAKE IS A LIE IS A PIE