|
Post by C128Man on Aug 21, 2022 12:32:50 GMT
Hi,
It is very important to move, we are too sedentary. To motivate myself to move, I count every day the number of steps I take with my mobile phone. To keep statistics, I made a program on the C-128. We encode the number of steps per day, the program will give the average per month, the number of times the goal has been reached, ...
Being French speaking, the program is in French. If necessary, I could translate it into English.
If someone is interested in testing it, he is welcome. As long as the criticisms are constructive.
C128Man
|
|
|
Post by robertb on Aug 22, 2022 2:17:36 GMT
Being French speaking, the program is in French. If necessary, I could translate it into English. If someone is interested in testing it, he is welcome. As long as the criticisms are constructive. Oh, that is interesting. Is it in 40-column or 80-column mode? Or both? Truly, Robert Bernardo Fresno Commodore User Group - www.dickestel.com/fcug.htmSouthern California Commodore & Amiga Network - www.portcommodore.com/sccanCommodore Los Angeles Super Show - www.portcommodore.com/class
|
|
|
Post by C128Man on Aug 22, 2022 9:50:51 GMT
It's a 80-col, but we can have a graph in hires 320x200, thus, in 40-col mode.
|
|
|
Post by robertb on Aug 22, 2022 17:04:42 GMT
|
|
|
Post by C128Man on Aug 24, 2022 19:53:22 GMT
do you understand french, I can send you a D71 file, you can test it. :-)
|
|
|
Post by robertb on Aug 25, 2022 5:21:10 GMT
|
|
|
Post by xahmol on Aug 25, 2022 12:08:22 GMT
Always interested to test programs that dare to use the 80 column mode. And yes, I have a (limited, but Google Translate for the rest) understanding of French. .D71 would be fine!
|
|
|
Post by C128Man on Aug 25, 2022 13:38:07 GMT
Hi, Right! Here is the two .D71 files. The first is the program itself, the second the data. You can setup the program to have program and data on the same drive. The whole program is developed in BASIC 7, on the C-128 VICE Emulator. I haven't used a modern IDE.
C128Man
|
|
|
Post by xahmol on Aug 25, 2022 16:09:23 GMT
Program works, nice! First impression is that it works nice and is rather complete in showing statistic and comparisons. Featurewise the program is rather complete imho. Like the graphing in both 80 column mode as 40 column mode.
Made a video of my testing efforts (not public, is hidden video only accessible with this link), I capture both the 40 column (left) and 80 column (right) output at the same time:
Some feedback that is intended to be constructive, ordered in prio from highest to lowest from my perspective: - At first I had no clue the program was expecting the data in another drive ID than the program disk. Only became aware of that until after seeing the Program Configuration options. Might be an idea to give feedback on the screen where it expects the data disk and if a data disk actually has been found or not. That caused me fumbling a little in the beginning of the video; - If you start program in 40 column mode screen immediately blanks due to the FAST mode used. Might be an idea to detect the user uses the 40 column mode to start and to show a message to switch to 80 column; - Is personal taste of course, but a little bit more use of colors would be nice. Also I always prefer Upper and lowercase instead of all upper case; - No input validation at all is present, probably as you use the default BASIC INPUT command. That means that if I type -500 the program enters 500 (not that bad), but if I enter letter nonsense the program layout gets rather disturbed. My suggestion would be to program an own input routine only accepting numbers and ENTER, with the cursor keys only moving within a specified area. Would help prevent user error. - Programmed in BASIC so not that fast. This program might benefit from programming it in C with for example CC65, or by using a compiler. That might even enable doing the graph in 80 column mode also in hires.
By the way: I ran the program and captured it from a real hardware Commodore 128D (using an Ultimate II+ cartridge for drive emulation to use the D71 images). So can confirm it does work on real hardware and not only in VICE. All in all, nice effort!
(of course my Apple Watch and iPhone do basically the same already fully automated, cool though to use your C128 for it. It would be cool to actually have a PC based script to automate Apple Health data to be converted into a data disk for your program)
|
|
|
Post by C128Man on Aug 26, 2022 8:51:53 GMT
Hi xahmol,
Thanks a lot for your feedback! :-)
I will check for the two first point, good idea.
There are some colors on screen, but, it's very limited. I wanted to recreate the atmosphere of a good old text screen.
I thing, if I use uppercase/Lowercase, I would not have the opportunity to use graphic characters for the borders.
There are some validations. But that's right, I use the IMPUT command to interact withe the user. Maybe in V2.
The program is really not fast at all (but I like that). I already try to compile it. It runs better, but I have the reallocation problem for the graphic in 40 col mode.
|
|