Installing and setting up FASE

I originally installed FASE from the Mojon Twins forums. I found a number of different versions as Antonio Villena was writing the engine. I downloaded them all, however, the latest version is found on Antonio’s GITHUB page.

https://github.com/DSkywalk/fase/tree/master/engine

updated, you can get the version I was working with on my GitHub page at

https://github.com/andydansby/fase1.03wyz

I still started to work with his version 1.03 which according to the Mojon twins site (which was the only source I knew at the time). Said that if you wanted to use Z88DK (which I do) to use 1.03 instead of 1.04.

Downloaded FASE 1.03 and saw that the example game was already in the build, so I could perform a test compile – perfect.

So placed FASE in the correct directory and ran FASE.BAT and error. My first road-block.

Apparently, FASE is looking for a file z88dkdenv.bat. After searching the directories of all the versions of FASE, I cannot find this file and I have no idea on how to write one from scratch. Obviously one can go anywhere with a batch file, I need some type of example. Well, Google is my friend, in a short order I find a copy of this batch file on GITHUB. Here is the code (modified for my needs).

@echo off
rem *********************************
rem ** z88dk environment variables **
rem *********************************
rem
rem **************************************************
rem ** You can call this file from the command line **
rem ** before running the compiler executables; or **
rem ** from inside another .bat file using the CALL **
rem ** statement. **
rem **************************************************
IF NOT "%Z88DK_ENV_id074741%"=="" GOTO exit_without_settings
SET PATH=%PATH%;c:\z88dk10
SET Z80_OZFILES=C:\z88dk10\lib
SET ZCCCFG=C:\z88dk10\lib\config
SET PATH=C:\z88dk10\bin;%PATH%
SET Z88DK_ENV_id074741=true
GOTO the_end
:exit_without_settings
rem echo Nothing to set :-)
:the_end

I run FASE.bat again and error. Whoops, another road-block.

I guess I should read the documentation.

Apparently, the FASE .bat has options you can call from the command prompt, a batch file with callable options, fancy!

The options are

FASE
Without parameters just compile main.c (or main.bas) and generate game.tzx

FASE gfx
Will compile all files. Type this if you modify gfx/map.tmx or any gfx/*.png file or tmode constant in config.def. You can modify the png files with any image editor (I use GIMP) and gfx/map.tmx with Tiled. To ensure legal ZX Spectrum colors filter it with PosterizeZX

FASE config

If you change one of the options into config.def (except tmode)

FASE
Without parameters just compile main.c (or main.bas) and generate game.tzx
FASE gfx
Will compile all files. Type this if you modify gfx/map.tmx or any gfx/*.png file or tmode constant in config.def. You can modify the png files with any image editor (I use GIMP) and gfx/map.tmx with Tiled. To ensure legal ZX Spectrum colors filter it with PosterizeZX

FASE config
If you change one of the options into config.def (except tmode)

Well, it looks like I need to run FASE gfx and compile all the files, silly me.

So now, I run FASE gfx. Error.

Arrgh.

Well, now I will have to start troubleshooting the batch file, my technique is to open up the various involved batch files and start inserting pauses and echo comments to find out at what stage the problems start happening.
Well, I finally captured the error message.

The system cannot find the file specified.
Cannot copy crt0 file
File main.bin compiled from main.c

Well, now it’s time to email Antonio to get his thoughts on the error message.  Well almost, I don’t want to ask him without thinking about it first.  I think I’m going to look at the file structure and place, even more, pauses in my batch files.

Advertisements

Author: andydansby

I'm a hobbyist coder working with the ZX Spectrum. Living in New York state near the Syracuse area. I grew up in Virgina. The first computer my parents bought for me was a Timex Sinclair 2068.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s