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.
 
I think it's probably the capitals... try changing the filename to the exact same as hello.dcb, and the folder as hello, case sensitive, or it won't work.
 
Thx for trying, but that wasn't the case. I double-checked and all the files and folders are lowercase. I changed even changed the program name in the code from "Hello" to "hello". Nothing works.

Still confused what I'm doing wrong or have I misunderstood something.. :unsure:
 
You should replace shoot.dce and with your file (rename it ofcourse), then run shoot.gpe Worked for me though. This is my script (little bit long)

PROGRAM Graphite;

Begin
x = 0;
while(x < 1000)

DELETE_TEXT (0);
x += 2;

set_text_color(rgb(255,0,0));
write (0, 320-x, 000, 0, "HOLLAND HOLLAND HOLLAND HOLLAND HOLLAND");
write (0, x-320, 008, 0, "HOLLAND HOLLAND HOLLAND HOLLAND HOLLAND ");
write (0, 320-x, 016, 0, "HOLLAND HOLLAND HOLLAND HOLLAND HOLLAND ");
write (0, x-320, 024, 0, "HOLLAND HOLLAND HOLLAND HOLLAND HOLLAND ");
write (0, 320-x, 032, 0, "HOLLAND HOLLAND HOLLAND HOLLAND HOLLAND ");
write (0, x-320, 040, 0, "HOLLAND HOLLAND HOLLAND HOLLAND HOLLAND ");
write (0, 320-x, 048, 0, "HOLLAND HOLLAND HOLLAND HOLLAND HOLLAND ");
set_text_color(rgb(255,255,255));
write (0, x-320, 056, 0, "HOLLAND HOLLAND HOLLAND HOLLAND HOLLAND ");
write (0, 320-x, 064, 0, "HOLLAND HOLLAND HOLLAND HOLLAND HOLLAND ");
write (0, x-320, 072, 0, "HOLLAND HOLLAND HOLLAND HOLLAND HOLLAND ");
write (0, 320-x, 080, 0, "HOLLAND HOLLAND HOLLAND HOLLAND HOLLAND ");
write (0, x-320, 088, 0, "HOLLAND HOLLAND HOLLAND HOLLAND HOLLAND ");
write (0, 320-x, 096, 0, "HOLLAND HOLLAND HOLLAND HOLLAND HOLLAND ");
write (0, x-320, 104, 0, "HOLLAND HOLLAND HOLLAND HOLLAND HOLLAND ");
set_text_color(rgb(0,0,255));
write (0, 320-x, 112, 0, "HOLLAND HOLLAND HOLLAND HOLLAND HOLLAND ");
write (0, x-320, 120, 0, "HOLLAND HOLLAND HOLLAND HOLLAND HOLLAND ");
write (0, 320-x, 128, 0, "HOLLAND HOLLAND HOLLAND HOLLAND HOLLAND ");
write (0, x-320, 136, 0, "HOLLAND HOLLAND HOLLAND HOLLAND HOLLAND ");
write (0, 320-x, 144, 0, "HOLLAND HOLLAND HOLLAND HOLLAND HOLLAND ");
write (0, x-320, 152, 0, "HOLLAND HOLLAND HOLLAND HOLLAND HOLLAND ");
write (0, 320-x, 160, 0, "HOLLAND HOLLAND HOLLAND HOLLAND HOLLAND ");
set_text_color(rgb(255,255,255));
write (0, 120, 180, 0, "Coded by NoidZ");
set_text_color(rgb(255,255,0));
set_text_color(rgb(255,0,0));
write (0, 119, 188, 0, "Made in Holland");

FRAME;
END;

END;
 
Hi again and thanks for all the answers. One of the above did the trick. So, play the trumpets, here's our winner! :D

Moogle posted on May 5 2006 at 11:40 AM said:
What a patriot!

But if you checked all that and it still doesn't work, are you sure you are using the right FXC?

So, it seems I really was somehow using the wrong FXC. I'm not even sure how I did that, but the compiler I used was somehow newer than what should have been used. I feel so stupid. But also, maybe there should be some kind of FAQ for these kinds of questions about Fenix on GP2X.

Thanks again. Maybe now I can get to coding.. when I have the idea what to do :rolleyes:
 
Last edited by a moderator:
Drg said:
Hi again and thanks for all the answers. One of the above did the trick. So, play the trumpets, here's our winner!

YES!

dutch.gif


The idea of making a FAQ isn't new, and I think there even is a topic somewhere where we all asked and answered the common questions. ... . Right, looked for it but couldn't find it. It would be a good idea to have a FAQ though.
 
Last edited by a moderator:
Back
Top