Search found 101 matches

by Stoves
Sun Sep 03, 2006 1:38 am
Forum: General Discussion
Topic: $1000 Reward
Replies: 36
Views: 62418

The Grim Reaper's Chuckle

... there is no longer any kind selection force that can be placed on us as a species that we can't remove via technology. Lol. Yeah, except for the primary "selection force" in evolutionary theory known in layman's terms as "death". Evolution is all about tracing changes in a p...
by Stoves
Sat Sep 02, 2006 2:40 pm
Forum: Freebasic Questions & Answers
Topic: Debugging in FreeBasic
Replies: 3
Views: 15846

Thanks

Yeah, I was looking at that. Can't wait to see it when he's done. In the mean time, I searched the FreeBasic.net forums and found info about a GUI debugger for FB called Insight. (See http://streetcds.co.uk/insight.html) Seems to be doing what I need for now.
by Stoves
Sat Sep 02, 2006 10:46 am
Forum: QBASIC and QB64 Questions & Answers
Topic: One heck of a problem!
Replies: 4
Views: 11423

Solution: Lower priority

In the windows task manager, right click on that 'Ntvdm' process, choose "Set Priority", and set to "BelowNormal". All your other windows apps should run much more smoothly.
by Stoves
Fri Sep 01, 2006 9:08 pm
Forum: Freebasic Questions & Answers
Topic: Debugging in FreeBasic
Replies: 3
Views: 15846

Debugging in FreeBasic

I've been trying to set up RQ Debugger, but haven't had much success. I was just curious, for those of you that use FreeBasic, how do you debug? I'd love to be able to use something similar to the qbasic interpreter. Even just a link to information on the FreeBasic forums or any other helpful site w...
by Stoves
Fri Sep 01, 2006 8:08 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: How to slow this down?
Replies: 20
Views: 34572

Character collision detection and fixing flashing problem.

Fixing the flashing asteroids This won't be too tough since we know that the flashing problem occurs from clearing a character and then immediately re-drawing the same character in the same spot. If there's a way to prevent re-drawing the same character over itself, then we can remove the annoying ...
by Stoves
Fri Sep 01, 2006 5:40 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: How to slow this down?
Replies: 20
Views: 34572

Aaah

Here's the problem: 'Print Meteor LOCATE meteory, meteorx COLOR 0 PRINT "00" PRINT "00" with color 0 WILL make the asteroid disappear on the screen, but the ascii value for that position will still be for the "0" character. Just because you redrew the asteroid with colo...
by Stoves
Fri Sep 01, 2006 2:09 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: How to slow this down?
Replies: 20
Views: 34572

Still need help with this?

Alright thats sorted now, thanks everyone. One last thing, I've made it so my Spaceship can't move through an asteroid or any "0". Anyway after It moves along ther screen the asteroid leaves behind an invisible trail o "0"'s. I thought I printed over them with nothing, but I can...
by Stoves
Fri Sep 01, 2006 11:47 am
Forum: QBASIC and QB64 Questions & Answers
Topic: A way to set all variables at once?
Replies: 5
Views: 10633

Might want to give CLEAR a try?

┌─────────────────────── HELP: CLEAR Statement Details ────────────────────┤↑├─ │ ◄QuickSCREEN► ◄Details► ◄Example► ◄Contents► ◄Index► │────────────────────────────────────────────────────────────────────────────── │Details │ │Syntax │ CLEAR [,,stack] │ │The CLEAR statement performs the following ac...
by Stoves
Thu Aug 31, 2006 11:38 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Making Images Straight from the Palette
Replies: 2
Views: 5009

Questing for The Palette

What do you mean by "the Palette"? Reading your post is slightly confusing, because at first you seem to be talking about the screen palette when you mention that screen 13 has 256 attributes, but then it seems like you switch to the actual screen pixel colors when you talk about saving t...
by Stoves
Thu Aug 31, 2006 1:07 pm
Forum: General Discussion
Topic: Losing weight has never been so easy!
Replies: 3
Views: 7865

and now it's even easier...

DIM originalWeight AS DOUBLE, weight AS DOUBLE DIM milesRanPerDay AS INTEGER, foodsEatenPerDay AS INTEGER DIM day AS LONG CLS INPUT "Current weight (in pounds)"; originalWeight INPUT "How many miles do you run per day"; milesRanPerDay INPUT "How much food (in pounds) do you...
by Stoves
Wed Aug 30, 2006 12:48 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: reading inividual letters
Replies: 5
Views: 8514

This might work.

Code: Select all

DIM f AS INTEGER
DIM letter AS STRING * 1

f = FREEFILE

OPEN file$ FOR BINARY AS #f

  DO UNTIL EOF(f)

    GET #f, , letter

    'Count the letter

  LOOP

CLOSE #f
by Stoves
Wed Aug 30, 2006 12:38 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: How to slow this down?
Replies: 20
Views: 34572

Gauging Computer Speed

I've written a crude program that creates and plays videos in qbasic (no sound yet). I wanted to adjust for the cpu speed, so I created a SUB to gauge the computer's speed. The code determines the maximum frames per second the cpu can handle, the number of empty FOR/NEXT loops the computer can run i...
by Stoves
Fri Aug 18, 2006 3:28 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Sigh... "Program-memory overflow"
Replies: 12
Views: 26886

Re: Whoops

"The only other limit to be aware of is QBASIC's 160K limit on program AND code size. One buffer of sprites (252 sprites) will eat almost 64K, leaving you with less than 100K to put the rest of your code in! QuickBASIC and PowerBASIC users shouldn't have any problem though." (See http://w...
by Stoves
Fri Aug 18, 2006 3:14 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: moving a number around on a bitmap
Replies: 3
Views: 5848

Re: moving a number around on a bitmap

In the k$ = "d" code, change FOR y = 0 TO 11 to FOR y = 11 TO 0 STEP -1 In the k$ = "r" code, change FOR x = 0 TO 19 to FOR x = 19 TO 0 STEP -1 The reason for your problem on moving down and right is that you end up changing bits before you get a chance to scan them. BTW, if you'...
by Stoves
Wed Aug 16, 2006 1:43 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Sigh... "Program-memory overflow"
Replies: 12
Views: 26886

Whoops

- Variables should not be named the same as functions or subs in FB to avoid potential conflict. (sometimes gives duplicate definition error) Ugh. That totally sucks. That alone makes me want to avoid rewriting my code for FB. Now that I double-check, I may be mistaken on that one. It's not listed ...
by Stoves
Wed Aug 16, 2006 12:19 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Sigh... "Program-memory overflow"
Replies: 12
Views: 26886

Conversion from QB to FB

Conversion from QB to FB There are enough differences between FB and QB that it could take a good bit of updating before your code will run in FB. I downloaded the FBIde in addition to the FreeBASIC command line compiler which has a nice help module. ( http://www.freebasic.net/index.php/details?pag...
by Stoves
Sat Aug 12, 2006 3:23 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: "^Line too long" error when making EXE
Replies: 14
Views: 15300

Save as Text

If you save your program in text format from the qb interpreter (Save As...->Select Format Txt), any text editor will be able to open the .bas file. Then you should be able to copy and paste your code into a forum post.
by Stoves
Thu Aug 03, 2006 10:21 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Sigh... "Program-memory overflow"
Replies: 12
Views: 26886

Thanks!

Thanks for the suggestions! Never got it to work in qb4.5, but after a couple hours of cleaning up the code to be compatible with FB, got it working.
by Stoves
Tue Aug 01, 2006 11:55 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: How do I get data from a web site into my program?
Replies: 12
Views: 27574

Maybe use wget.exe?

To retrieve a web page in qbasic, you could make use of the wget.exe utility. (I believe it's a unix command that was ported to windows.) I was able to use it to create a program that downloads webpage information from a particular site (using wget) and then parses the page through OPEN and LINE INP...
by Stoves
Tue Aug 01, 2006 11:29 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Sigh... "Program-memory overflow"
Replies: 12
Views: 26886

Sigh... "Program-memory overflow"

Attempting to compile a 140k .bas file to .exe stand-alone. Getting the following error: "BC C:\STUFF\QBASIC\QB45\RPGGEN~1.BAS/E/X/O/T/C:512; Microsoft (R) QuickBASIC Compiler Version 4.50 (C) Copyright Microsoft Corporation 1982-1988. All rights reserved. Simultaneously published in the U.S. a...