Search found 394 matches

by Patz QuickBASIC Creations
Thu Jul 05, 2007 1:26 pm
Forum: Pete's QB Site News
Topic: QB Express is alive -- Issue #22 is here!
Replies: 23
Views: 130139

My imaginary friend told me that...

Z!re is a eunuch!!!
by Patz QuickBASIC Creations
Thu Jul 05, 2007 12:52 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: game problem
Replies: 11
Views: 19818

OK. Try this. Say your player was located at the points (X%,Y%). Going by the other program you posted, you may have placed those default values into the start of a loop? Ex: DO X% = 3 Y% = 2 'gameplay code 'more 'etc LOOP Place those default values outside of the loop. Also make sure you don't modi...
by Patz QuickBASIC Creations
Thu Jul 05, 2007 12:47 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: another game problem
Replies: 4
Views: 7835

Note: I didn't test your program since I don't know Portuguese, sorry. That error is at the end of your code: LOOP IF money% < 1 THEN PRINT "FOSTE ? FAL?NCIA!" PRINT "O JOGO ACABOU!" END END IF IF conditions% = 15 THEN PRINT "CONSEGUISTE DAR ? POPULA??O AS CONDI??ES!" P...
by Patz QuickBASIC Creations
Tue Jul 03, 2007 1:44 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: game problem
Replies: 11
Views: 19818

Post what happens after the label BEGIN. That's probably around where your problem is.
by Patz QuickBASIC Creations
Tue Jul 03, 2007 1:43 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: another game problem
Replies: 4
Views: 7835

Spanish and Portuguese are very similar. (of course, they're neighbors) Your problem is this part right here: DO conditions% = 0 money% = 2000 Every time your loop goes around, it sets the conditions% and money% to their default values. Try replacing it with this.. conditions% = 0 money% = 2000 DO
by Patz QuickBASIC Creations
Mon Jul 02, 2007 1:39 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Internal Speaker Music
Replies: 5
Views: 12010

If anyone else is interested, please give some feedback... BTW: Here are what the different versions are going to have implemented. Note: By the standard I listed above, there can only be a maximum of 256 versions (not that I'll need that many) 00: Basic support, one in my first post 01: Tag support...
by Patz QuickBASIC Creations
Mon Jul 02, 2007 1:11 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: File Attributes
Replies: 5
Views: 10308

I looked into it some more (the computers I can use for internet are blocked against DOS), and ATTRIB's output seems straight forward, and easy to manipulate. Shouldn't be too hard to shell to it.

Yeah, I'll post more once I do more. Been lazy for the last week :P
by Patz QuickBASIC Creations
Mon Jul 02, 2007 1:08 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Internal Speaker Music
Replies: 5
Views: 12010

Pretty much, use GET on a file with a STRING*1. Ex: DIM Byte AS STRING*1 OPEN "YOURFILE.TXT" FOR BINARY ACCESS READ WRITE AS #1 'some 'code 'goes 'here GET #1, ,Byte Then if you need numeric values you can use ASC. But that's the easy way out. There's probably better (read: more efficient)...
by Patz QuickBASIC Creations
Wed Jun 27, 2007 4:46 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: Internal Speaker Music
Replies: 5
Views: 12010

I've implemented tags now. The tags are appended to the start of the music file. The structure of them allows for tags to be excluded at anytime. First 7 bytes: "PQBCISM" Eighth byte: Version identifier CHR$(201)+Title$+CHR$(202) CHR$(203)+Artist$+CHR$(204) CHR$(253)+Comment$+CHR$(254) CHR...
by Patz QuickBASIC Creations
Wed Jun 27, 2007 1:16 pm
Forum: Pete's QB Site News
Topic: QB Express is alive -- Issue #22 is here!
Replies: 23
Views: 130139

Wait, uh, isnt Z!re... a female? Yes. But even I have to agree that that article was a little too whack to publish. But hey, free speech is what it's all about, so...if it works for one, it has to work for all, including Z!re and her crazy-ass rants. :) Did I refer to Z!re as a guy? My bad! :oops: ...
by Patz QuickBASIC Creations
Wed Jun 27, 2007 1:06 pm
Forum: QBASIC and QB64 Questions & Answers
Topic: File Attributes
Replies: 5
Views: 10308

Well, then I guess I have a problem :P I know Plasma made a routine for checking for HIDDEN files and such, which he dubbed DIR2$, as (you guessed it) a replacement for DIR$. But, yes. What you described is exactly what I need to do. Load the attributes into some sort of variable (I'm flexible) and ...
by Patz QuickBASIC Creations
Thu Jun 21, 2007 10:31 am
Forum: QBASIC and QB64 Questions & Answers
Topic: File Attributes
Replies: 5
Views: 10308

File Attributes

It would be nice if BASIC had an easy way of changing them, but so far I don't see one. So, does anyone have an easy way of checking and setting various attributes like HIDDEN, READ-ONLY, SYSTEM, etc.?
by Patz QuickBASIC Creations
Thu Jun 21, 2007 10:30 am
Forum: QBASIC and QB64 Questions & Answers
Topic: Internal Speaker Music
Replies: 5
Views: 12010

Internal Speaker Music

I've developed a SOUND format (no pun intended) to handle I nternal S peaker M usic. However, it's impractical to make music files to use... 'ISM Audio Interpreter v0.0.1- Patrick Connor MusicFile = FREEFILE OPEN "C:\SOUND.ISM" FOR BINARY ACCESS READ AS #MusicFile FOR A = 1 TO LOF(MusicFil...
by Patz QuickBASIC Creations
Thu Jun 21, 2007 10:20 am
Forum: QBASIC and QB64 Questions & Answers
Topic: QB PGM run 40x in win full screen get error - pgm too large
Replies: 10
Views: 14136

Is itself over and over again? If so, then you're going to get that kind of error, since the NTVDM limits the available memory to DOS. Try rewriting your program to use loops instead of recursivly calling itself over and over again.
by Patz QuickBASIC Creations
Thu Jun 21, 2007 10:15 am
Forum: QBASIC and QB64 Questions & Answers
Topic: Help with CALL ABSOLUTE
Replies: 4
Views: 9584

Yeah, some code would be nice.

But, to be safe, try this: Load QuickBASIC with the /l option, which loads the QB library for assembly support (like CALL ABSOLUTE). Then, add the following line somewhere in the start of your program:

Code: Select all

'$INCLUDE 'qb.bi'
by Patz QuickBASIC Creations
Thu Jun 21, 2007 10:13 am
Forum: QBASIC and QB64 Questions & Answers
Topic: end if without block if error
Replies: 3
Views: 9120

I'll try to explain... A block IF/THEN is an IF/THEN with the following syntax: IF <condition> THEN <command> <another> <hey, look! it's another command!> END IF The main plus about it is that you can have multiple commands execute, as opposed to the line IF/THEN, or: IF <condition> THEN <command> T...
by Patz QuickBASIC Creations
Wed Jun 13, 2007 11:00 am
Forum: QBASIC and QB64 Questions & Answers
Topic: how do you insert an icon as the exe picture
Replies: 2
Views: 5475

DOS programs don't use icons. QuickBASIC is a DOS program, so no icons for you. However, if using icons is really that important to you, consider FreeBASIC. You can easily add icons to FB programs.
by Patz QuickBASIC Creations
Wed Jun 13, 2007 10:58 am
Forum: QBASIC and QB64 Questions & Answers
Topic: How can a start a driver in windows 98?
Replies: 4
Views: 8004

QBASIC can't use Windows 98 drivers, if that's what you're going at. You don't "run" drivers. The operating system automatically uses these files to figure out what all of those little 0s and 1s that are coming from your device actually mean. So, I don't really get what you mean when you s...
by Patz QuickBASIC Creations
Wed Jun 13, 2007 10:53 am
Forum: QBASIC and QB64 Questions & Answers
Topic: Reading and Writing to the buffer
Replies: 15
Views: 20714

You could load the list of strings into the memory buffer as variables in an array. Using A:\AnyFile.Txt again... DIM Buffer$(500) 'Change to line numbers in file OPEN "A:\AnyFile.txt" FOR INPUT ACCESS READ AS #1 DO LINE INPUT #1, Buffer$(A%) A% = A% + 1 LOOP UNTIL EOF(1) Then, each line w...
by Patz QuickBASIC Creations
Wed Jun 13, 2007 10:45 am
Forum: QBASIC and QB64 Questions & Answers
Topic: And how can i get sound form the mic?
Replies: 5
Views: 10885

Wireless transmission by sound? Wow. Though it does seem like a (somewhat) practical idea, it wouldn't be the best way to do things. Background noise would mess up the output in no time. If I were you, if you want to transmit something in QBASIC, use a null modem cable.