I'm having troubles quitting from an application on GP2X. If I press the volume + and - buttons it just locks up. Same if I set up the start button to quit.
I'm also having troubles drawing with polygons on GP2X. Nothing shows up. I included the project with simple source and precompiled for GP2X. Works fine on the PC, works on GP2X but hangs up when quitting, no polygon showing up.
// --------------------------------- //
// Project: GP2X Test
// Start: Monday, October 19, 2009
// IDE Version: 7.145
LOADFONT "smalfont.png", 1
SETFONT 1
LOCAL y1%, y2%
WHILE KEY(28) = 0
STARTPOLY -1
POLYVECTOR 0,0, 0,0, RGB(255,255,255)
POLYVECTOR 0,239, 0,0, RGB(100,200,255)
POLYVECTOR 319,239, 0,0, RGB(255,255,255)
POLYVECTOR 319,0, 0,0, RGB(255,255,0)
ENDPOLY
PRINT "Test, should be light background", 0, 10
y1 = RND(20)
y2 = RND(20)
DRAWLINE 0,y1+50,319,y2+50, RGB(0,255,0)
DRAWLINE 0,y2+50,319,y1+50, RGB(255,0,0)
SHOWSCREEN
WEND
[attachment deleted by admin]
I think you just have to put "End" just after the last line of your code, this will literally stop the program.
Ooops. Looks like a bug.
[edit]
The drawing bug is fixed now.
Yes, polyvector works fine again!
But the exit problem is still there, is anyone else having this problem or is it my unit?
I'm still having troubles with exiting from a GP2X application. The older programs created with GLBasic works but newer just locks up on exit.
OK, next update. on top of my TODO. Phew - now I just need to find my gp2x ...
I'm on Open2X and it works. Do you have the original FW on it?
If so, do you have an F100 or F200?
Original firmware, version 3.0
GP2X F100
VOL+ and VOL- are locking up F200 too.
GP2X still doesn't exit properly Gernot... ;)
See the file "myprogram.gpe" -> it's a text file (unix line ends - use Notepad2 e.g.)
That calls the gp2x.prg executable and should try to start the menu later.
There might be a bug. It says: "./gp2xmenu" at the end, but might require "/usr/gp2x/gp2xmenu".
I'll have to test, but the kids are asleep and they have my gp2x.
It's a crying shame that kids would rather sleep with an electronic device than a teddy bear nowadays :P
No worries Gernot. It's not something that I'm really concerned about (SantaMania is probably going to be my last GP2X project anyway).
I'll have a go with your text file later and let you know how I get on. :)
Hehe.
I wrote a program where they can flip through some mp3 ferry (fairy?) tales and play. And after it's done, the CPU gets clocked to 60MHz to safe battery and the display goes black, so they can sleep tight. They ruined a bunch of CD players already ...
Still no luck with exiting GP2X applications even after inserting
./usr/gp2x/gp2xmenu
into the gp2x.gpe file.
make sure the file is \n terminated (Unix line breaks) Use Notepad2 or so for that. The most windows programs can't do that.
I had a look at the file now and it's doing a "cd /usr/gp2x" so that should work, right?
cd /usr/gp2x
./gp2xmenu
Line endings is set to UNIX and it still just locks up when trying to nicely end the program.
Was there a fix found for this?
it should work. No?
Mine locks up on exit. It's an F-100 MK2 if that makes a difference?
I've got and F100 and an F200 and they both lock up.
I don't mean to be a bother Gernot, I know your working hard on many things. I was just curious if you had pin pointed this one yet?
My GP2X locks up too.
I'm using fw 2.1.1 and I do not plan to upgrade to newer firmware versions.
I'm using Open2X and it seems to work for me. Also it boots a lot faster. The GPH firmwares sort of suck on the GP2X IMO.
On the Wiz, it's quite fine.
Got a F100, and I'm using Open2X too, but it doesn't work!
MfG
OK; I'll really dig into that then and see if I can fix it. Debugging on GP2X is always fun :/
Quote from: Kitty Hello on 2010-Aug-17
OK; I'll really dig into that then and see if I can fix it. Debugging on GP2X is always fun :/
It might not be fun, but it is appreciated :)
Indeed, very appreciated, Gernot!