Pardon the pun. I'm trying to load one of DamienG's fonts (https://damieng.com/typography/zx-origins/scribe/) to use in a game I'm making in BASIC but I can't get it work. I can't load it from the tape file included with each font, I'm trying to use FUSE emulator with +3.
I've seen this thread but nothing in it worked, I couldn't get it to load the font I wanted.
I used the following but just got a invalid filename error.
helpcomputer0 wrote: ↑Mon Sep 11, 2023 6:19 amso I need some step-by-step advice to add one of his fonts in my game.
As I see it: the BASIC program is absolutely correct. Next, you need a code block with a font - its size, for a standard font - 768 bytes (maybe less if there are fewer characters, maybe more, but in general - 768 bytes) - on the Damien's site the fonts are exactly this size. Those. everything you did was correct, the file format may have changed somehow: extra bytes were added, the header was damaged... etc.
Are you sure that you are not accidentally trying to load the BASIC program as code?
Try putting the file name in the load command to prevent this.
Mark
Standby alert
“There are four lights!”
Step up to red alert. Sir, are you absolutely sure? It does mean changing the bulb
Looking forward to summer later in the year.
Xela wrote: ↑Mon Sep 11, 2023 10:40 am
How is it possible to load the BASIC as a code file with the LOAD "" CODE?
It's not, the loading routine will ignore BASIC programs if you tell it to load a CODE block.
More likely, because you're getting "invalid filename" and emulating a +3 is that it's trying to load from disc and "" is not valid with disk because there is no such thing as "the next file".
Try doing LOAD "t:" first to select tape loading mode, then try again.
g0blinish wrote: ↑Mon Sep 11, 2023 8:28 am
probably 2 bytes added - type of block and checksum
where is .tap file?
its definitly those two bytes.
i discussed that with the coders off Fuse after conducting my "knowledge" to the tzxlist routine.
I just copied the info from ZX80 zakboekje into the C file and that worked.
So
the tape index from fuse still shows the length PLUS the two 'hardware bytes' which are part off the tape'hardware' but not from the data.
AndyC wrote: ↑Mon Sep 11, 2023 11:13 am
More likely, because you're getting "invalid filename" and emulating a +3 is that it's trying to load from disc and "" is not valid with disk because there is no such thing as "the next file".
I'm 99% sure it was this. I started FUSE this time without inserting the disk and it loaded from tape fine!
Xela wrote: ↑Mon Sep 11, 2023 9:10 am
As I see it: the BASIC program is absolutely correct. Next, you need a code block with a font - its size, for a standard font - 768 bytes (maybe less if there are fewer characters, maybe more, but in general - 768 bytes) - on the Damien's site the fonts are exactly this size. Those. everything you did was correct, the file format may have changed somehow: extra bytes were added, the header was damaged... etc.
Thanks for this. I can now attempt to add to the game.
FOR THE RECORD: Fuse's tape browser always shows tape blocks to have two more bytes than they actually contain. So if it says 770 bytes, it's legit - try it on Spectaculator and it'll show as 768 bytes.