Program Conversion
#1
Please bare with me and excuse my attempt to describe my request.

I have a Star Trek program that I wrote using sdlbasic and I want to see if I can convert it to QB64. I do not want anyone to write it for me as I would lean very little.

I am aware of how QB plays sounds/music but is QB64 capable of playing on more than one channel and if so how?

My game uses a fixed screen size (well within the limits of QB64) and divides the display into 3 smaller windows or viewports. Can QB64 do something like that? If so, how would I go about sending text and graphics, to each individual window?

There maybe other questions to pose, as I continue converting, but I have only just started. I figured that I would ask these few questions first, mainly because if I cannot convert correctly, there would be no point in continuing... lol

I will try to attach a couple of screen shots that may make my description a little clearer....

J


May your journey be free of incident.

Live long and prosper.
Reply
#2
Hey Johnno!

I remember this, just before SdlBasic forum moved to it's current location or the one before that?

Was there one screen or two with one divided into 3 sections?
B += x
Reply
#3
Your memory serves you well. Yes. The one and the same.

If memory serves correctly, the introduction, used the full screen. But the bulk of the game was played within three 'windows'. But I'm not sure if I originally released the game with the introduction... Yes. I think I had completed the introduction, but decided to leave it out, just so as to reduce the delay prior to the game. Must have forgotten to put it back prior to release.. If I can get the QB64 version running, I'll put it back, after all it's a bit of a giggle...

With the help of the guys here, the problem I have been having with different fonts and how to display them, are now solved. All assets can be pre-loaded. Spites are not a problem. Sound, however, could be an issue. I fear that QB64 has only one channel... My game requires a background ambiance sound track, whilst at the same time, play other sounds throughout. I am not as yet skilled enough to synthesize the normal game sounds using QB's 'tones'... Although I could probably configure the game to be 'silent', it will in the long run, detract from the game play...

It's gone midnight and the brain is turning to mush... Don't even think of even a snigger or a chuckle... I already know that its normal state is usually mush... That's all I got... I can't even think of a snappy come back... hmm... Good night...

J
May your journey be free of incident.

Live long and prosper.
Reply
#4
Quote:Don't even think of even a snigger


whats a snigger?
Reply
#5
Makes sense coming from one who lives in the land down under. Wink


Attached Files Thumbnail(s)

B += x
Reply
#6
My apologies for using improper English. Here, in the colonies, we have 'modified' the Queen's English to suite ourselves. I shall be more mindful in future postings. If ever you need an explanation of our flavour of English then you know who to ask...

J
May your journey be free of incident.

Live long and prosper.
Reply
#7
... too true

J

ps: Shall we surprise them with, "May ya chooks turn into emus... ?" lol
May your journey be free of incident.

Live long and prosper.
Reply
#8
illywhacker!
B += x
Reply
#9
hey johno
from a land down under i only know 3 bands i like

1. AC/DC - my favorite boogi-voogie-hard rock icons Wink

2. INXS - my favorite pop-band from 80-ies

3. ManAtWork ...i forget song name ..damn!
...you better run ,,you better take cover .. something like that ?

anyway game looking nice ,is there version for windows -sdlbasic version ?
Reply
#10
The version that I wrote was done with sdlbasic on my Linux box. The inspiration came from the old David Ahl listing and a text version for basic256. It's playable to completion but could use a LOT of polish... It's been 'gathering dust' since 2014...

There are a few bugs, but nothing that will cause a crash, just an anomaly or two... For example: When moving from one sector to another it is possible to fly through a star, planet or even a enemy ship.... lol  Another possible problem: Some of the sound files are mp3's. Unfortunately, mp3's will only play using the Linux version of sdlbasic. I also have converted sound files as well. (wav and ogg)

I will did up the program and post a link to it... It's after 1am and I'm running on fumes... Have to be up at 5:30am... I will post later today (15 July).

J
May your journey be free of incident.

Live long and prosper.
Reply
#11
Hi Johnno,

I found my SdlBasic copy under the name "Prototype", I am not sure the sound works but the screens are fine!

I'd offer my copy in zip but I don't remember if you gave me this privately or as public post, so I will post only with your permission or you can't find your own copy.

BTW, I just tried the HEL command and realized I could get Help screens with it, ha! HEL I thought maybe back then, Jan 2016, HEL was for Helm controls... any way I don't remember seeing screens like this:

Edit: It wasn't 2014, it was 2016, Jan 2016.




Update: 2017-07-16 removed screen shot (too wide)
B += x
Reply
#12
Hi Johnno,

Any luck with your sound questions?

The Helicopter Rescue Demo has some nice sound effects, maybe you could check that out.
B += x
Reply
#13
Hi Mark,

The original Prototype was written in 2014. You are obviously using the latest version...

If you want to tinker with it, be my guest. Any and all improvements made will be appropriately accredited of course... lol

Yeah, HEL, was supposed to be the abbreviation for HELM - curious - why is the word 'abbreviation' such a long word? lol

Hmm... Helicopter Rescue. Never got it to run. Everything placed in its own folder. Nothing edited. No instructions. Jumped into the Broncode directory. Two files: Main and Menu. Ran Main.bas Unhandled error Just For Walter Captain Kirk A.I Chat Bot :) (line 62 - In main module - File not found). Exit program. Ran Menu.bas - (unhandled error Just For Walter Captain Kirk A.I Chat Bot :)) Line 79 (in main module) - file not found. As I stated earlier, the heli.7z file was decompressed to its own folder and nothing was edited. I do not know if it was me or the game...

I did notice (in Main.bas) that all the filenames implied that they (the files) resided in the same directory as 'main.bas'. This is not the case. The files reside in the parent directory 'broncode'. I will attempt to change them all and try again. I suspect the same for menu.bas. I will let you know how I go.... Got to get some dishes washed and put the laundry away first... otherwise I'm toast... lol

J

ps: Permission granted - game on.
May your journey be free of incident.

Live long and prosper.
Reply
#14
I am running the Windows version of QB64 via wine... The Linux version, like most Linux programs, is 'very' particular when it come to case sensitive files... lol

Ok. All the "file not found" errors have gone away. Inserted the full path to each file reference in both main and menu. That menu is quite impressive!

I need instructions on how to use this thing....

Ran the main program - just for giggles, and after a tweak or two, the screen popped up and was instructed to follow waypoints. This is pretty cool. Absolutely hopeless at flying a chopper - Oooo. I have a swish Joystick... I wonder...
Anyway, slight problem exiting (esc) the program. It was looking for the 'menu.exe'. Modified the path and all seems to be working... Cool

I'm a little hesitant to try this using the Linux version, but I will give it another try - now that I have an idea where the problems were - and then report back... fingers crossed... lol

J
May your journey be free of incident.

Live long and prosper.
Reply
#15
macs are case sensitive as well. (and the same for android i believe.)

i understand the preference for not being case sensitive, but the linux version of qb64 should generally be fine except for the filenames. a couple features are missing (unless thats changed since i checked) but theyre unlikely to affect your program.
Reply
#16
Hi Johnno,

I feel funny posting a zip to your program.
A. Because it's your baby
B. It's SdlBasic which might be less popular here than SmallBASIC
So unless you have lost track of your files... it's your baby.

You got the Helicopter game working?
(I was just pointing to the Demo that seemed to work right out of the box.)
Kudos!
But did you get any hints about using sound?
B += x
Reply
#17
A few tweaks to filename paths, and the executables in the main and menu programs, and the program is running just fine. Still can't fly a chopper for nuts... lol

J
May your journey be free of incident.

Live long and prosper.
Reply
#18
(07-14-2017, 09:07 PM)Aurel Wrote: hey johno
from a land down under i only know 3 bands i like

1. AC/DC - my favorite boogi-voogie-hard rock icons Wink

2. INXS - my favorite pop-band from 80-ies

3. ManAtWork ...i forget song name ..damn!
...you better run ,,you better take cover .. something like that ?

anyway game looking nice ,is there version for windows -sdlbasic version ?

[youtube]XfR9iY5y94s[/youtube]
B += x
Reply