Running App.gpe From Telnet


kevcal

Coding " Abduction;Retrieval "
Joined
Jun 14, 2006
Messages
835
Age
57
Location
Southern England
Website
homepage.ntlworld.com
Hi,
Quick question which I can't appear to see an answer to in a search..
I connect via telnet and do the following (so I get printf output to my telnet session) -

cd /mnt/sd/test
./app.gpe

but then I get the odd frame from the menu (which is obviously still running).

I guess I need to kill off gp2xmenu before I run my app and then restart the menu after (I see lots of stuff on a script to restart the menu)?

Kev
 
Excellent - it's that easy .. but I thought there'd be a more elegant way :) Thanks very much for the speedy reply.

ALLEGRO INFO -
Have just realised today that I wasn't utilising the hw blitter in my game (had to put some debug in the allegro libs to find this out).

'Video' bitmap allocation in gp2x allegro is weird to say the least - it appears I have to set_gfx_mode(GFX_AUTODETECT, 320, 240, 320, 1024) (ie a large virtual size) in order to be able to use 'create_video_bitmap' for hw-accelerated sprites later on.
 
i playing with allegro, but i cannot set screen resolution properly.
CODE

set_gfx_mode(GFX_AUTODETECT_FULLSCREEN, 320, 240, 320, 240);


gives me gui screen with graphics mode settings.coz i havent buttons used yet i cannot select proper resolution :(
in options i see GP2X too.
thanks
 
eh sry, this work fine.
CODE

set_color_depth(16);
if (set_gfx_mode(GFX_AUTODETECT, scrx, scry, 0, 0)) {
set_color_depth(8);
if (set_gfx_mode(GFX_AUTODETECT, scrx, scry, 0, 0)) {
allegro_message("Video Error: %s.\n", allegro_error);
return 1;
}
}
 
Back
Top