Fenix Tutorial - Chapter 0
Fenix Tutorial - Chapter 0
1. What is this?
1. What is Fenix?
Fenix is the codename for a GNU project to create a free compiler for a language
derived from the one created by Hammer Technologies for the Game Developement
Suite "DIV Games Studio".
The original project has suffered from major breakdowns and is actually frozen and
giving way to a wide range of successors with different specs and no portability.
Don't download it there if you want to code for your GP32, as the Compiler isn't
compatible.
2. Setting up the Development Environment
Extract the package contents whereever you want your Fenix installation to reside :)
Now we'll take a closer look at the important files included in the archive:
All the EXE are command line tools – running by doubleclicking doesn't get you very
far, since they need some parameters.
Now, extract it whereever you like your IDE to be. I recommend creating a directory
somewhere on your harddrive named FENIX in which you put the FENIX directory and
the Flamebird2 directory. You can also put it anywhere you'll never find it again. But
this makes coding a lot harder ;)
Now, there are also tool for editing those FPGs and FNT files. You can get them
both here: http://cdiv.sourceforge.net/html/down/down.htm
Install them. Again, I recommend placing them somewhere in your Fenix directory.
Well – congratulations. Now you have all you need to start. That was easy, eh?
BUT if you want to run your files also on your GP32, you need the Fenix Executable
(http://www.gp32x.de/cgi-bin/cfiles.cgi?0,0,0,0,14,516) and the Fenix Runtime
(http://www.gp32x.de/cgi-bin/cfiles.cgi?0,0,0,0,31,174)
Now, before we test our new Fenix Development Environment, I'm gonna tell you a bit
more about files types you should know if you want to work with Fenix.
NOW we're gonna tell him where the Fenix Directory is. Go into the „Edit“ Menu and
select „Preferences“.
In the „Compilation“ Tab, tell him the path to the Fenix Directory.
In the „File Association“ Tab, tell him top Open DCB File with Fenix Interpreter.
Click OK.
If you get an error now, the path to the Fenix Directory is not correctly set, so check
that.
Now take a look at the FlameBird2 interface. Most stuff is pretty straightforward.
At the top there are some icons (Open, Save, Copy, Paste, Compile, etc.)
The middle space is where your sourcecode will be. At the left side you manage all the
files your program needs. At the right side you'll see all your variables and processes
you have in your program.
At the bottom there are some compile and error logs.
You'll surely get used to it once you code a bit.
Woooah! Did you just see that? We didn't just show a simple „Hello World“ Text on
the screen – we even scrolled that from one side to the other! With such few lines
of code! Shows already a bit how powerful Fenix is, right?
It didn't work for you? Check your code for spelling errors and make sure the needed
Fenix files are in the correct directory.
As it would mess up your gpmm-directory, if you kept all your dcb-files (and also
the fpg and fnt files) in there, only the FXE stays in the gpmm directory. All other
files (in this case, only the *.dcb-file) go into a subdirectory which also has the same
name.
You also need the runtime in the GPSYS-Directory. Extract the package with the
runtime you downloaded above and place the correct one (for BLU+ or normal GP)
named fenix.rte in the gpsys-directory.
An example:
gpsys\fenix.rte
gpmm\world.fxe
gpmm\world\world.dcb
Nice, eh? If you get an error message, that the compiled DCB is not compatible, you
downloaded the wrong Fenix version. Look above for the correct one.
If you get any other error messages, check if the files are named correctly and in the
correct directories.
See you!
http://www.flamingbird.com/
there's an Online WIP English Command and Language Reference there)
http://fenix.divsite.net/index.php?opcion=1&lang=en
(there's also an Online WIP English Documentation there. Can also be downloaded)
http://www.freepgs.com/roelf/fenix/english/spanish/
(it's an automatically generated Translation of the Spanish reference. It's a bit messy
and has some real strange words in it – but it's better understandable for most of you
than the original Spanish docs :))