Mode 7 Not Working

Discussions about the BBC BASIC language, with particular reference to BB4W and BBCSDL
MattC
Posts: 114
Joined: Mon 16 Apr 2018, 06:17

Mode 7 Not Working

Post by MattC »

Hi.

I was trying to get the Mode 7 working using MODE7LIB. Everything works fine running from the IDE. But when I create and run an exe file, I get errors. Here's the code:

Code: Select all

      INSTALL @lib$ + "MODE7LIB"
      MODE 7
      PROC_saa5050(0)

      PRINT CHR$141; "THIS IS A TEST"
      PRINT CHR$141; "THIS IS A TEST"
When running in the IDE I get the expected double height letters (and anything else I print), but running from an exe file I get the error message 'Could not open BBCMODE7.FNT in module C:\User\[...]\AppData\Local\Temp\BBC[****].tmp\MODE7LIB' ([...] = hidden; [****] = hex value; backslashs are actually '1/2' characters.)

Not sure if there's something I'm doing wrong.

Matt
DDRM

Re: Mode 7 Not Working

Post by DDRM »

Hi Matt,

I see the same. I can solve it by adding BBCMODE7.FNT (which is also in the LIB folder) to the list of embedded files, so that it gets packaged in the exe file (and unpacked to the temporary folder that the executable generates when it runs).

Best wishes,

D
MattC
Posts: 114
Joined: Mon 16 Apr 2018, 06:17

Re: Mode 7 Not Working

Post by MattC »

Thanks D.

It now works fine.

Matt