Torinak QAOP emulator

Struggling with Fuse or trying to find an emulator with a specific feature. Ask your questions here.
User avatar
sludge
Dizzy
Posts: 85
Joined: Sat Feb 24, 2024 4:38 pm

Torinak QAOP emulator

Post by sludge »

This browser based emulator can play Spectrum files you drag and drop onto it, is there any way of downloading or forwarding a link so people without Spectrum emulators can play it?

I've inspected the page with various browsers and cant see any flash content.

Failing that is there any way of converting Spectrum files into stand alone apps that negate the need for emulation?
hikoki
Manic Miner
Posts: 589
Joined: Thu Nov 16, 2017 10:54 am

Re: Torinak QAOP emulator

Post by hikoki »

You can upload your tap to dropbox and build an url like this
https://torinak.com/qaop/#128#l=https:/ ... et9kwo7ce1
User avatar
sludge
Dizzy
Posts: 85
Joined: Sat Feb 24, 2024 4:38 pm

Re: Torinak QAOP emulator

Post by sludge »

How do you 'build' the URL though?

I've been messing about all afternoon and got nowhere.
hikoki
Manic Miner
Posts: 589
Joined: Thu Nov 16, 2017 10:54 am

Re: Torinak QAOP emulator

Post by hikoki »

This is the shared link generated by dropbox
https://www.dropbox.com/scl/fi/wze8qfmz ... f2o8c&dl=0

Compare it with the one I used above:
https://dl.dropboxusercontent.com/scl/f ... et9kwo7ce1
User avatar
sludge
Dizzy
Posts: 85
Joined: Sat Feb 24, 2024 4:38 pm

Re: Torinak QAOP emulator

Post by sludge »

So you use "#1=" then enter the address of the file?

Does it have to be Dropbox of will any file hosting site do?
User avatar
PROSM
Manic Miner
Posts: 482
Joined: Fri Nov 17, 2017 7:18 pm
Location: Sunderland, England
Contact:

Re: Torinak QAOP emulator

Post by PROSM »

You need to use a lowercase L, not a number 1. So you add "#l=" followed by the file URL.

Here's an example from my own website:

Code: Select all

The game link for Aliengun (from the 2020 Crap Games Competition)
    https://www.connosoft.com/csscgc2020/reviews/onlineplay/002.tap
The Torinak QAOP link was therefore
    https://torinak.com/qaop#~128#l=https://www.connosoft.com/csscgc2020/reviews/onlineplay/002.tap
You can use any URL, as long as Cross-Origin Resource Sharing is enabled for that URL. Dropbox seems to automatically enable this, and other file-hosting sites may do as well. If you're using your own web-hosting, you'll need to configure it yourself. There's a quick guide here that covers various web-server programs: https://enable-cors.org/server.html
All software to-date
Working on something, as always.
User avatar
sludge
Dizzy
Posts: 85
Joined: Sat Feb 24, 2024 4:38 pm

Re: Torinak QAOP emulator

Post by sludge »

L not 1 eh?

Nice one, got it working!
firelord
Manic Miner
Posts: 610
Joined: Wed Nov 03, 2021 10:57 am
Location: Greece - Thessaloniki

Re: Torinak QAOP emulator

Post by firelord »

If you don't have much traffic you can bypass CORS policy by using using a proxy like eg corsproxy.io .Just prefix your URL with

Code: Select all

https://corsproxy.io/?
eg

Code: Select all

https://torinak.com/qaop/#l=https://corsproxy.io/?https://www.connosoft.com/csscgc2020/reviews/onlineplay/002.tap
https://torinak.com/qaop/#l=https://cor ... ay/002.tap
User avatar
sludge
Dizzy
Posts: 85
Joined: Sat Feb 24, 2024 4:38 pm

Re: Torinak QAOP emulator

Post by sludge »

Now it just keeps saying 'failed to fetch' when using Google drive links.
User avatar
sludge
Dizzy
Posts: 85
Joined: Sat Feb 24, 2024 4:38 pm

Re: Torinak QAOP emulator

Post by sludge »

Is there no utility that will convert a TAP into an executable app that will play on other platforms?
firelord
Manic Miner
Posts: 610
Joined: Wed Nov 03, 2021 10:57 am
Location: Greece - Thessaloniki

Re: Torinak QAOP emulator

Post by firelord »

sludge wrote: Fri May 24, 2024 11:52 am Is there no utility that will convert a TAP into an executable app that will play on other platforms?
Old DOS Warajevo emulator did that with an extra program ( https://worldofspectrum.net/warajevo/ ) . The exe file run on up to windows XP. I haven't tried it on later windows.

https://worldofspectrum.net/warajevo/Features.html :
Using the additional program ZXCOMP the Z80 snapshot files can, with some conditions, be converted to EXE programs which can be executed totally independently from the emulator, and they are not too much larger than the snapshot files themselves. This extremly powerful option is also a unique feature of the Warajevo emulator!
User avatar
8BitAG
Dynamite Dan
Posts: 1514
Joined: Sun Dec 17, 2017 9:25 pm
Contact:

Re: Torinak QAOP emulator

Post by 8BitAG »

That corsproxy link is really useful, thanks Firelord.
8-bit Text Adventure Gamer - games - research.
User avatar
PROSM
Manic Miner
Posts: 482
Joined: Fri Nov 17, 2017 7:18 pm
Location: Sunderland, England
Contact:

Re: Torinak QAOP emulator

Post by PROSM »

sludge wrote: Fri May 24, 2024 11:49 am Now it just keeps saying 'failed to fetch' when using Google drive links.
I've had a go myself with my own Google Drive account and I can't get it working either. It's probably easier to just use Dropbox.
All software to-date
Working on something, as always.
hikoki
Manic Miner
Posts: 589
Joined: Thu Nov 16, 2017 10:54 am

Re: Torinak QAOP emulator

Post by hikoki »

Talking about dropbox you have to replace "www.dropbox.com/" by "dl.dropboxusercontent.com/"
and remove the last string after the "&"
hikoki
Manic Miner
Posts: 589
Joined: Thu Nov 16, 2017 10:54 am

Re: Torinak QAOP emulator

Post by hikoki »

Another option is to include FUSE-SDL alongside your tap. There you have an example:


I don't know how to make an exe file like the one provided for the game Exotical
User avatar
sludge
Dizzy
Posts: 85
Joined: Sat Feb 24, 2024 4:38 pm

Re: Torinak QAOP emulator

Post by sludge »

firelord wrote: Fri May 24, 2024 11:58 am Old DOS Warajevo emulator did that with an extra program ( https://worldofspectrum.net/warajevo/ ) . The exe file run on up to windows XP. I haven't tried it on later windows.

https://worldofspectrum.net/warajevo/Features.html :
Unfortunately it wont work on my version of windows.
User avatar
8BitAG
Dynamite Dan
Posts: 1514
Joined: Sun Dec 17, 2017 9:25 pm
Contact:

Re: Torinak QAOP emulator

Post by 8BitAG »

I used the corsproxy to get QAOP working with a file hosted on my personal website...
https://torinak.com/qaop/#128#l=https:/ ... a-v094.tap

Which is cool, as previously I've just piggybacked on the SC link for Play Online functionality.
8-bit Text Adventure Gamer - games - research.
firelord
Manic Miner
Posts: 610
Joined: Wed Nov 03, 2021 10:57 am
Location: Greece - Thessaloniki

Re: Torinak QAOP emulator

Post by firelord »

sludge wrote: Fri May 24, 2024 12:10 pm Unfortunately it wont work on my version of windows.
Just tried it with DOSbox. I converted a z80 file to exe and run it through dosbox. I couldn't run it from wine (because it said it was a DOS program - maybe there is a wine parameter that will run it)


Also, keep in mind that corsproxy.io has a daily limit. If you reach it you can re-use it the next day.
User avatar
sludge
Dizzy
Posts: 85
Joined: Sat Feb 24, 2024 4:38 pm

Re: Torinak QAOP emulator

Post by sludge »

hikoki wrote: Fri May 24, 2024 12:09 pm Another option is to include FUSE-SDL alongside your tap. There you have an example:


I don't know how to make an exe file like the one provided for the game Exotical
Got it working!

Used notepad to edit the batch file.

Wonder if you could use ZX Spin in the same manner?
User avatar
ParadigmShifter
Dynamite Dan
Posts: 1094
Joined: Sat Sep 09, 2023 4:55 am

Re: Torinak QAOP emulator

Post by ParadigmShifter »

Looks like ZXSpin takes a filename of what to open (since when I tried ZXSpin /? expecting to see the command line options it said it could not find file /? so I expect you can. You may need to set the initial options to flashload TAP file though if you want to do that I suppose? Which looks like they live in

default.spincfg

snippet from mine

Code: Select all

[Tape]
AutoLoad=1
AutoStart=1
RewindAtEnd=1
AccelerateStandard=1
AccelerateEdge=1
AccelerateByte=1
NegPolarity=0
Feedback=0
FrameSkip=0
TapeWobble=0
BoostLoadingTones=0
It's a shame there's no documentation for Spin any more since the help file does not open on modern versions of Windows, and I can't find an online version.

I'm just used to using the debugger in Spin which is why I use it (have Fuse as well but I only use that as a secondary test emulator). Maybe I should learn how to use Fuse better and see what its debugger is like. The menu options and stuff aren't as good as in Spin though.
hikoki
Manic Miner
Posts: 589
Joined: Thu Nov 16, 2017 10:54 am

Re: Torinak QAOP emulator

Post by hikoki »

sludge wrote: Fri May 24, 2024 12:24 pm Got it working!

Used notepad to edit the batch file
The only problem is that it doesn't quit when pressing escape, so you would need to inform the user how to exit the emulator
User avatar
sludge
Dizzy
Posts: 85
Joined: Sat Feb 24, 2024 4:38 pm

Re: Torinak QAOP emulator

Post by sludge »

hikoki wrote: Fri May 24, 2024 1:15 pm The only problem is that it doesn't quit when pressing escape, so you would need to inform the user how to exit the emulator
That was my next question, had a job getting out of it myself.
User avatar
sludge
Dizzy
Posts: 85
Joined: Sat Feb 24, 2024 4:38 pm

Re: Torinak QAOP emulator

Post by sludge »

I'm only wanting to use Spin for ULA+ support.
User avatar
ParadigmShifter
Dynamite Dan
Posts: 1094
Joined: Sat Sep 09, 2023 4:55 am

Re: Torinak QAOP emulator

Post by ParadigmShifter »

Alt-F4 should quit Fuse.
hikoki
Manic Miner
Posts: 589
Joined: Thu Nov 16, 2017 10:54 am

Re: Torinak QAOP emulator

Post by hikoki »

sludge wrote: Fri May 24, 2024 2:50 pm That was my next question, had a job getting out of it myself.
you can use this bat

Code: Select all

@echo off
echo To exit use the F10 key

pause

Start .\fuse-sdl\fuse --full-screen --machine plus2 .\tapes\Cursed1.0.tap
Post Reply