Search found 1563 matches

by DrV
Aug 22, 2008 22:04
Forum: Beginners
Topic: Including quotes in strings
Replies: 4
Views: 1612

Alternatively, VB-style double quotes:

Code: Select all

tempstring = "I need to get ""quotes""!"
by DrV
Aug 22, 2008 20:43
Forum: General
Topic: Online Leaderboard
Replies: 3
Views: 1315

You could probably do something as simple as a PHP script on the server side and an HTTP client on the FB (game) side that requests a particular page with POST or GET data to submit a new high score. Of course, this would make it trivially easy to fake scores, so maybe some kind of encryption would ...
by DrV
Aug 22, 2008 20:40
Forum: Community Discussion
Topic: Building FreeBASIC on OpenBSD
Replies: 39
Views: 12232

FreeBASIC on Mac OS X will need a bit more work, but it shouldn't be too hard now that the groundwork is laid. (FB still only has an emitter for x86, so only Intel-based Macs would work.) One stumbling block from the last time I was working on porting to Mac is that Apple's as (assembler) uses sligh...
by DrV
Aug 22, 2008 16:58
Forum: Community Discussion
Topic: Building FreeBASIC on OpenBSD
Replies: 39
Views: 12232

Building FreeBASIC on OpenBSD

Just a bit more fun with porting FreeBASIC; if you're an OpenBSD enthusiast, please give it a whirl: http://drv.nu/blog/2008/08/22#building-fbc-on-openbsd Note: Testing has been very minimal for this port, as I'm not a regular user of OpenBSD; I just got it to the point of building itself and runnin...
by DrV
Aug 19, 2008 4:24
Forum: DOS
Topic: fbgfx, mouse and an 8 pixel grid :(
Replies: 14
Views: 5424

I'm not sure; I wish I knew. :) For reference, on DOS, fbgfx uses INT 33h AX=000Ch to set a handler that gets the current mouse position. Perhaps these other drivers only call this handler on 8-pixel changes or something along those lines; it is not documented that way anywhere I can find, though. D...
by DrV
Aug 18, 2008 14:49
Forum: General
Topic: [solved] Problem with line input in FB 0.2 for Windows
Replies: 20
Views: 4619

The FB rtlib does the following when a file is opened for INPUT: 1) first, the file is opened in binary mode to get the actual byte length, then reopened in text mode. 2) The byte length of the file is used to check if the current file position is past the end of the file. 3) fgets is used to read ...
by DrV
Aug 18, 2008 3:29
Forum: Linux
Topic: [Solved] Linux apps start in lower left corner of screen
Replies: 19
Views: 6070

If you want a centered graphics window, you can do this with ScreenControl (GET_DESKTOP_SIZE and SET_WINDOW_POS). Forcing centered windows breaks a number of window managers that want to position the graphics window themselves, including the venerable twm.
by DrV
Aug 15, 2008 15:06
Forum: DOS
Topic: fbgfx, mouse and an 8 pixel grid :(
Replies: 14
Views: 5424

I'm willing to bet most of the compile time is due to the assembler and linker; try fbc -r and fbc -c to see the difference... using a disk cache wouldn't hurt either.
by DrV
Aug 15, 2008 14:41
Forum: General
Topic: [solved] Problem with line input in FB 0.2 for Windows
Replies: 20
Views: 4619

Tested, doesn't occur on DOS, so it is indeed Win32-only. Unless I did something wrong in my testing, it also doesn't work in 0.18.6 for Win32.

EDIT: Tested each release back to 0.17b, and it did not work on Win32 for any of those; did this ever work on Win32 before?
by DrV
Aug 15, 2008 14:37
Forum: General
Topic: [solved] Possible Bug: FreeBASIC Compiler - Version 0.20.0
Replies: 18
Views: 7187

My vote sort of leans toward "yes" for a new release/patch/something... my logic being that apparently no one that uses Draw String custom fonts stored in BMP tested the SVN builds before the release, so they probably won't be using SVN builds after the release, and they will be stuck with...
by DrV
Aug 15, 2008 14:31
Forum: DOS
Topic: Which direction for Ethernet UDP
Replies: 19
Views: 7412

I wouldn't recommend FreeBSD as a platform for your FB app (yet), as the port is not finished. I haven't touched it in a few months, as I had to use my FreeBSD box for something else, and nobody has asked about it in the intervening time, so I assumed there wasn't much interest. In any case, Linux c...
by DrV
Aug 14, 2008 20:34
Forum: General
Topic: [solved] Possible Bug: FreeBASIC Compiler - Version 0.20.0
Replies: 18
Views: 7187

I fixed BLOAD to set the alpha channel of bitmaps without actual alpha information to 255 (fully opaque) in 0.20.0. Haven't 24bpp bitmaps always been processed like that? And did I misunderstand, or you said some 32bpp bitmaps don't have an alpha channel? I'm confused. :P I meant 32-bpp BMP files s...
by DrV
Aug 14, 2008 17:04
Forum: General
Topic: [solved] Possible Bug: FreeBASIC Compiler - Version 0.20.0
Replies: 18
Views: 7187

You're right, I didn't think of Draw String. This really seems (to me at least) to be a design flaw in Draw String - it's impossible to save a correct Draw String font in a 24-bpp bitmap, which is the only kind that BSAVE creates other than 256-color, and converting a 32-bpp font bitmap into a 24-bp...
by DrV
Aug 14, 2008 13:56
Forum: General
Topic: [solved] Possible Bug: FreeBASIC Compiler - Version 0.20.0
Replies: 18
Views: 7187

It looks like you're reading data from the alpha channel of the bitmap; I fixed BLOAD to set the alpha channel of bitmaps without actual alpha information to 255 (fully opaque) in 0.20.0. I am open to other interpretations here, but I think if we interpret just any 32-bit BMP file as having an alpha...
by DrV
Aug 14, 2008 1:20
Forum: Community Discussion
Topic: Facebook page
Replies: 0
Views: 1353

Facebook page

Just for fun, here's a Facebook page for FreeBASIC: http://www.facebook.com/pages/FreeBASIC/82609380424 Feel free to "become a fan". ;) EDIT: Just noticed there's also a previously-existing "Free BASIC" group, created by Kristopher Windsor... sorry I didn't see that earlier. :) h...