I got an error over not having a font, I think near that same line. Removed the line, and everything ran fine afterward.
Say, SirCrow, do you want this thing moved into Samples, or are you wanting to wait for any reason? (i.e. is this close to done?)
It's great and smooth playing experience - the backgrounds and shadows add to the sense of flying quickly.
Hi SirCrow,
I am getting an error from get go (see attached), beautiful graphics!
The line is 2127 actually, I moved MouseHide down and commented out FullScreen to get snapshot.
Hello SirCrow,
Yup, bplus identified the proper line. (Was using Windows for that test.)
And to clear up my poor choice of wording, I meant to ask if we should *copy* this to Samples (a highly curated section), not move it. This will immortalize your project - the Librarian will get to it soon.
Yes, I am running under Windows and used the source to compile an exe. As STxAxTIC said, it's probably a file not loading. I will dig a little.Code: QB64: [Select]This commented out and it runs.
'_FONT FMsg&: COLOR _RGB(111, 111, 111): _PRINTSTRING (125, 664), "w": _PRINTSTRING (1129, 664), "s"
I don't Windows folks have this path or file.
Code: QB64: [Select]
FMsg& = _LOADFONT("/usr/share/fonts/truetype/liberation/LiberationSans-Bold.ttf", 24) 'Smaller font for special MESSAGES
Hello SirCrow,
Yup, bplus identified the proper line. (Was using Windows for that test.)
And to clear up my poor choice of wording, I meant to ask if we should *copy* this to Samples (a highly curated section), not move it. This will immortalize your project - the Librarian will get to it soon.
Excellent! I love that idea, although there's this font issue now. I think I could use some help with making this thing work with both Windows and Linux.
Can someone tell me whether, after commenting out the problematic FONT line, you can still see the message text on-screen? Most likely in _FONT 14, and not looking so great. I've already taken some precautions for this possible error, but I don't know if it always does the trick. Thanks.
I wonder why this line wouldn't cause an error in Windows:
FMsg& = _LOADFONT("/usr/share/fonts/truetype/liberation/LiberationSans-Bold.ttf", 24)
I wonder why this line wouldn't cause an error in Windows:It's always good practice to check your handles. It doesn't generate an error because a failed _LOADFONT simply results in a handle equal to zero (much like a failed _LOADIMAGE returns -1). You just need to check that FMsg& > 0 before calling _FONT.
FMsg& = _LOADFONT("/usr/share/fonts/truetype/liberation/LiberationSans-Bold.ttf", 24)
QuoteI wonder why this line wouldn't cause an error in Windows:It's always good practice to check your handles. It doesn't generate an error because a failed _LOADFONT simply results in a handle equal to zero (much like a failed _LOADIMAGE returns -1). You just need to check that FMsg& > 0 before calling _FONT.
FMsg& = _LOADFONT("/usr/share/fonts/truetype/liberation/LiberationSans-Bold.ttf", 24)
...
All that font does is print a tiny w or s, weapons or shields. The fix is simple, add the font file to the package and repath the load of it the same as all other files in package.
No worries SirCrow if bugs surface after publication - get it to where you're satisfied, and then the Librarian will immortalize this project in Samples once the dust is settled.
No worries SirCrow if bugs surface after publication - get it to where you're satisfied, and then the Librarian will immortalize this project in Samples once the dust is settled.
I think I'm satisfied with how it works on my Ubuntu system, but I can't tell how well it runs on Windows. For instance, I don't know how to refer to alternative fonts so that the player won't have to settle for the old _FONT 14 or similar. For example, what would be a good Windows substitute for _LOADFONT("/usr/share/fonts/truetype/liberation/LiberationSans-Bold.ttf", 24) ?
When running under Windows, does the on-screen text look anything like the text in this screenshot? I'd like to fix up this fonts issue very nicely, but I'll try not to worry too much about it and maybe just upload it as it is now. Thanks.
The fix is simple, add the font file to the package and repath the load of it the same as all other files in package.