QL Pawn in web browser

Anything QL Software or Programming Related.
User avatar
Sparrowhawk
Super Gold Card
Posts: 624
Joined: Wed Dec 15, 2010 12:33 pm
Location: @131072
Contact:

QL Pawn in web browser

Post by Sparrowhawk »

Has anyone managed to get the original QL Pawn to run in the browser here? https://msmemorial.if-legends.org/games.htm/qlpawn.php

I get as far as the QL F1/F2 screen, but nothing happens on key press. Could be a Mac issue perhaps. I'll need to try on my Windows laptop over the weekend.

Anyway, I rather like it - An emulated QL (uses qlay) on an emulated DOSbox in JavaScript. Pretty neat really.


a.k.a. Jean-Yves
User avatar
RalfR
Aurora
Posts: 870
Joined: Fri Jun 15, 2018 8:58 pm

Re: QL Pawn in web browser

Post by RalfR »

It works, just read carefully the following sentence from the web page...and look, where I have placed the pointer:

"Note:If the emulation does not respond to the F1/F2 key press on start, you need to focus the window. Click somewhere into the inner frame close to the border."
2020-07-31 13_43_50-QL-Pawn.jpg


4E75 7000
User avatar
Sparrowhawk
Super Gold Card
Posts: 624
Joined: Wed Dec 15, 2010 12:33 pm
Location: @131072
Contact:

Re: QL Pawn in web browser

Post by Sparrowhawk »

Oops, you are quite right, it's right there in the text ! Sorry :D

Working now. A really impressive feat of nested emulation, I must say.


a.k.a. Jean-Yves
User avatar
tofro
Font of All Knowledge
Posts: 2685
Joined: Sun Feb 13, 2011 10:53 pm
Location: SW Germany

Re: QL Pawn in web browser

Post by tofro »

Sparrowhawk wrote:Has anyone managed to get the original QL Pawn to run in the browser here? https://msmemorial.if-legends.org/games.htm/qlpawn.php

I get as far as the QL F1/F2 screen, but nothing happens on key press. Could be a Mac issue perhaps. I'll need to try on my Windows laptop over the weekend.
Why do you want to run The Pawn on your web browser when you can run the real thing in full graphics on your Q68?


ʎɐqǝ ɯoɹɟ ǝq oʇ ƃuᴉoƃ ʇou sᴉ pɹɐoqʎǝʞ ʇxǝu ʎɯ 'ɹɐǝp ɥO
User avatar
bwinkel67
QL Wafer Drive
Posts: 1187
Joined: Thu Oct 03, 2019 2:09 am

Re: QL Pawn in web browser

Post by bwinkel67 »

Wow, that's pretty cool. I want to look into how to set that up. Could demo other programs the same way...


User avatar
Chr$
QL Wafer Drive
Posts: 1304
Joined: Mon May 27, 2019 10:03 am
Location: Sachsen, Germany
Contact:

Re: QL Pawn in web browser

Post by Chr$ »

I wonder if QLAY in a DOSbox like that might be a good way of presenting (and making playable) the QL games that are still under Copyright?


https://QXL.WIN
Collector of QL related computers, accessories and QL games/software.
Ask me about felt pads - I can cut them to size and they have proved excellent for mdv data recovery.
User avatar
bwinkel67
QL Wafer Drive
Posts: 1187
Joined: Thu Oct 03, 2019 2:09 am

Re: QL Pawn in web browser

Post by bwinkel67 »

Chr$ wrote:I wonder if QLAY in a DOSbox like that might be a good way of presenting (and making playable) the QL games that are still under Copyright?
I would love to put my ZXSimulator online that way. It runs on a 128K unexpanded QL so resource-wise it would be minimal.


User avatar
Chr$
QL Wafer Drive
Posts: 1304
Joined: Mon May 27, 2019 10:03 am
Location: Sachsen, Germany
Contact:

Re: QL Pawn in web browser

Post by Chr$ »

bwinkel67 wrote:
I would love to put my ZXSimulator online that way. It runs on a 128K unexpanded QL so resource-wise it would be minimal.
That's a very good idea. Let me know how you go about it!


https://QXL.WIN
Collector of QL related computers, accessories and QL games/software.
Ask me about felt pads - I can cut them to size and they have proved excellent for mdv data recovery.
User avatar
Sparrowhawk
Super Gold Card
Posts: 624
Joined: Wed Dec 15, 2010 12:33 pm
Location: @131072
Contact:

Re: QL Pawn in web browser

Post by Sparrowhawk »

tofro wrote:Why do you want to run The Pawn on your web browser when you can run the real thing in full graphics on your Q68?
It's not a matter of wanting as such, it's a matter of being impressed by the technical ingenuity that allows this.


a.k.a. Jean-Yves
User avatar
bwinkel67
QL Wafer Drive
Posts: 1187
Joined: Thu Oct 03, 2019 2:09 am

Re: QL Pawn in web browser

Post by bwinkel67 »

Chr$ wrote:
bwinkel67 wrote:
I would love to put my ZXSimulator online that way. It runs on a 128K unexpanded QL so resource-wise it would be minimal.
That's a very good idea. Let me know how you go about it!
Ok, I have it working. So this is temporary since I'm not hosting my own web server or using an online server. But all one needs to do is run this HTML code and find online storage for the zip. Note that they recommend you don't point to their DOSBox JavaScript (which I'm doing) so you'd also have to make a copy of that. This is for demonstration purposes only.

Here is the HTML code, just extract the file on your Desktop:
ZXSimulator.png
ZXSimulator_html.zip
(506 Bytes) Downloaded 76 times

Then download this zip file and also stick it on your Desktop:
qlay090.zip
(220.38 KiB) Downloaded 86 times
Now just double-click the HTML file and DOSBox will load and it will load QLAY in turn, which will then auto-boot the ZXSimulator.

A couple of issues. First, I'm using WIN and not MDV as the latter seemed to take forever to read (or it hung...dunno). Since DOSBox only wants 8 character names and the QL wants '_' we run out of characters pretty quickly since we need "_bas" for the extension, leaving 4 characters for the name (it took me some time to figure this out since I kept getting corrupt files and finally realized it was only those that were longer than 8 characters total -- i.e. banner_bas is 10 in length and kept giving me garbage). The second issue was that I could not, for the life of me, un-zip and re-zip the QLAY folder and still have it work unless I removed the sub2/ directory. So to leave that structure I ended up just taking the original qlay090.zip from Dilwyn's site and replaced the contents of sub2/ and that caused it to work. Something with Windows 7 zip that DOSBox doesn't like (it works if I just put all the files on the same level as the executable and leave out and sub directories (i.e. sub2/).

Keyboard input is slow but still, once I get my website going I can showcase ZXSimulator using this method. It's pretty easy to set up once you get the hand of it. I'll have to see if Wordpress will allow this to work and if not I'll have to find somewhere else to host it.


Post Reply