Fenix Help Needed


Drg

Still Fresh
Joined
Jan 20, 2006
Messages
5
Hi!

A newbie question I'm sure, but the documentation for GP2X port of Fenix is somewhat lacking and I couldn't find anything from these forums that would already have the answer. So, here it goes..

I'm trying to get Hello World working and don't know whats wrong with these.

hello.prg
Code:
PROGRAM Hello;
  Begin
	x=0;
	while(x<320)
	  DELETE_TEXT(0);
	  x+=2;
	  write(0,x,100,1,"Hello World!");
	  FRAME;
	End;
  End;

It's from ED's Beginners Tutorial from FenixOnFire. It runs fine when compiled and ran from FlameBird. But when I copy the hello.dcb to the gp2x and create a script for running it it doesn't work. Sometimes it shows Fenix-logo of some sort and then just exits. The script is as following and it is modified copy from the shoot.gpe included in the Fenix package.

hello.gpe
Code:
#!/bin/sh
cd runtime
./fxi ../games/hello/hello.dcb
cd /usr/gp2x
exec /usr/gp2x/gp2xmenu

The fenix folder is in the root of my SD card and the hello.gpe is in the same directory as the shoot.gpe so it should work, but it does not. The shoot.gpe however works right, so I'm somewhat confused what's the problem.

I did try this too, but got the same result:
http://fenixonfire.gp32x.de/sources/breakout.prg
http://fenixonfire.gp32x.de/sources/breakout.fpg

The problem could be either the launcher script, the code or the compiler, I don't know. So, if anyone can help me out with this, I'd appreciate it.
 
Doh, wrong section I guess. Posted new one on the correct forum. Stupid pages with multiple dev forums.. sry.
 
Back
Top