Fowl Language ahead

Roll Back time

It is start-over time, I caused another bug and I need to find out why.

Create a new directory and copy the original program to the new directory and add things one by one.

Fingers crossed, I just might have a little time to play around with FASE again, not much mind you, but a little.

A rebuild of the game using

fase config

And a quick play shows 1 issue. A command prompt the will not close, even using the PID trick, what in earth. This is a new problem. I wonder if it has anything to do with a recent windows update.

FRACK!

Reboot the laptop.

Perhaps, it was just an error of something already running, let try building again with Task Manager running.

FRACK!

Same thing. Reboot, this is getting irritating.

Duck these forced Windows updates (I told you fowl language), I know that this was working before.

OK, let’s modify our fase.bat

Fase.bat calls another batch file to set the paths for compilation. Let’s skip that step and set the paths in the original batch.

@echo off

rem if not exist z88dkenv.bat (
rem  echo.
rem  echo Error: z88dkenv.bat doesn't exist. Please copy it into this folder.
rem  exit /b 1
rem )

rem call z88dkenv.bat
rem /////////////////////////////////////////////////
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
rem /////////////////////////////////////////////////

if "%1"=="gfx" (
  lib\bin\Png2Rcs gfx\loading.png build\loading.rcs build\loading.atr
  lib\bin\zx7b build\loading.rcs build\loading.rcs.zx7b
  lib\bin\zx7b build\loading.atr build\loading.atr.zx7b
  lib\bin\GenTmx 3 3 10 10 gfx\map.tmx
  lib\bin\TmxCompress gfx\map.tmx build\map_compressed.bin > build\defmap.asm
  lib\bin\sjasmplus asm\player.asm > nul
  lib\bin\zx7b build\player.bin build\player.zx7b
  lib\bin\xm2tritone mus\music.xm build\music.asm
  lib\bin\step1
  lib\bin\sjasmplus asm\music.asm > nul
  lib\bin\zx7b build\music.bin build\music.zx7b
  goto cont
)

if "%1"=="config" (
:cont
  lib\bin\sjasmplus asm\engine0.asm > nul
  lib\bin\sjasmplus asm\engine1.asm > nul
  lib\bin\sjasmplus asm\engine2.asm > nul
  lib\bin\step2
  lib\bin\zx7b build\block1.bin build\block1.zx7b
  lib\bin\zx7b build\block2.bin build\block2.zx7b
)
echo

zcc +zx -zorg=32772 -O3 -vn main.c -o build\main.bin -lndos

echo File main.bin compiled from main.c
lib\bin\zx7b build\main.bin build\main.zx7b
lib\bin\step3
lib\bin\sjasmplus asm\loader.asm
if exist build\player.zx7b (
  lib\bin\gentape game.tzx                    ^
            basic 'game' 0  build\loader.bin  ^
             data           build\engine.zx7b ^
           stop48                             ^
             data           build\player.zx7b
) else (
  lib\bin\gentape game.tzx                    ^
            basic 'game' 0  build\loader.bin  ^
             data           build\engine.zx7b
)

Let’s try that again.

BINGO.

I swear this was working before that windows update.

Drama over for now.

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