Main
   Home
   About
   DiscussionBoard
Files
   About
   Submit
   Search
Downloads
   Action
   QB64
Links
   Link to us
QB45.org
[ Back to QB45 | FAQ | Search a message | Reply to this message | Back to messages ]

Pat on 07/11/11 - 23:29:21

I've just downloaded qb64 and it looks awesome! So only one question.. How do I convert my old code to it? Most of my games use DirectQB.

Pat on 07/12/11 - 01:31:11

I've been studying the code from Venture (awesome game BTW) but some of the sub routines like DQBget don't work... something about the name already in use? Any ideas?

Todd on 07/12/11 - 06:49:36

Cyperium browses this forum periodically so he might be able to help. What statements in your code aren't compiling? I don't believe QB 4.5/7.1 libs will work with QB64 so they might need to be recompiled in QB64 if the source is available.

qb64 on 07/13/11 - 12:29:13

Yeah I mostly get an IDE module error whenever I try to open some bas files... It's weird because if I re-write the code manually in QB64 it usually works.. I noticed venture uses sub routines that emulate DQB, where can I get a list of QB64 commands? I see a help.qhp file how to open it? lol so many questions...

Todd on 07/13/11 - 13:46:04

Is the BAS file in text format? QB sometimes has a nasty way of saving files in a compressed format that only it recognizes.

Here's a link to the QB64 CHM help file which should work if you have Windows: http://dl.dropbox.com/u/10291175/QB64%20Help.rar

The "help.qhp" is most likely opened up from within QB64 though. QB had something similar as well.

qb64 on 07/13/11 - 15:50:24

Thanks a lot for the link! This will help a lot :) I think you're right, I think QB4.5 is to blame on this one... I've had times where qb4.5 won't even open it's own files lol I've also been having problems logging in this site, seems that my password or username isn't correct? I confirmed my registry with my email and then couldn't login lol prob made a typo with my password.

Todd on 07/13/11 - 16:10:51

Did you say you clicked on the confirmation link in the e-mail?

Pat on 07/13/11 - 16:56:58

Yeah I clicked on it, went back to this site and tried to log in. No luck. Oh and BTW thanks again for the help! I now have SB sounds and music working! LOL awesome. I'm starting Meganoid 3 as a test project :)

Pat on 07/13/11 - 22:05:28

OMG!!!! You have megabot?!?! I lost that game ages ago!! I'm downloading it right now! That was the first game I ever made! HAHAHA!!

Todd on 07/14/11 - 08:50:12

Try logging in now. There was a small bug in the new member activation code which I just fixed. Your account should now be active.

Yeah a lot of the files on QB45 are from years ago to preserve the essence of QB and the legacy that others had left.

TopGun on 07/14/11 - 17:19:48

Thanks man, I logged in without any problem :)

Cyperium on 07/16/11 - 09:18:21

Hi Pat, you don't have to $include anything, just copy all the DQB subs/functions from my Venture game, I will release a official version of DQB2QB64 (the library wrapper/dqb simulator), but until then you can use the functions/subs in the Venture game.

TopGun on 07/16/11 - 20:54:02

Thanks a lot! Awesome sub routines! Can't get all of them to work though... It says name already in use for DQBget and some others... I've been using the putimage command instead.. I also find that my programs run a bit slow, any tips for that one? I'm running 640*480 @ 32bit could that be why? Love the editor BTW nice work man!

TopGun on 07/16/11 - 21:12:04

here's a screen shot of my new qb64 project. It runs at a decent frame rate but would like to speed it up if possible, any suggestions? All the sprites are displayed using _putimage command. The levels are done by scanning a .bmp file as a map.

http://top-gun-software.tripod.com/screen9.bmp

Cyperium on 07/28/11 - 20:13:40

It looks really nice!

If you use ^2, use * instead, the compiler doesn't optimise exponential calculations (a^2 is the same as a*a and "*" is much faster). Other than that I'm not sure how to speed it up, but QB64 itself will become faster in the future and will also produce faster .exes.

I would also recommend replacing FOR...NEXT loops with DO...LOOP loops instead as they are faster.

TopGun on 07/28/11 - 23:49:48

Hey I didn't know about loop being faster! That's good to know thanks :) Game's comin along nicely! Will be finished soon and looks way better than the demo :) I also sped up the engine by removing the background layer and making everything tiled... Just means more sprites lol

Cyperium on 07/30/11 - 09:12:51

Yes, as it doesn't yet use hardware acceleration for 2D drawing it can be quite slow sometimes. I really look forward to seeing your game!

TopGun on 07/30/11 - 23:46:59

Game will be done soon! I have a new sceenshot on my website u can check out (projects). I replaced most of my NEXT commands with loops, seems like it sped things up a bit :) the main problem is I'm using too many screen layers, but also sped things up by only clearing the transparent layers and not the first solid one (since it's completely full of tiles anyway lol), this helped a lot! Game runs fast now but tiny bit choppy (barely noticeable). I suspect this maybe qb64's doing but oh well, I'll have to wait for an update or something aren't I lol

TopGun on 07/30/11 - 23:49:06

And hey, who's chuckles? Introduce yourself man! LOL

Todd on 08/01/11 - 09:35:44

I think Chuckles was a spammer. QB45 has some serious spam protection filters on the site (like posting too many links and too few content) and also filtering IPs from Project Honeypot and StopForumSpam.com. Unfortunately a few slipped under the wire and managed to post useless comments.

TopGun on 08/01/11 - 20:17:48

lol kinda figured

Reply to this message
Name:
Message:
Please enter this number:
No HTML allowed. You may use BB-code in your posting.
Members
Login
Register
QB45 Members
Member List