SAM Coupé screenshot format

This is the place for general discussion and updates about the ZXDB Database. This forum is not specific to Spectrum Computing.

Moderator: druellan

User avatar
PeterJ
Site Admin
Posts: 6879
Joined: Thu Nov 09, 2017 7:19 pm
Location: Surrey, UK

Re: SAM Coupé screenshot format

Post by PeterJ »

Excellent [mention]obo[/mention],

I'm glad I can now switch to your emulator. Thank you for doing this.

I use an outlook.com email address for new message alerts. I know they often go in people's junk folders.
obo
Drutt
Posts: 31
Joined: Sat Sep 01, 2018 11:08 am
Location: Nottingham, UK
Contact:

Re: SAM Coupé screenshot format

Post by obo »

Stefan spotted that I'd attached the wrong binaries to the release, using those from 24th March instead of 24th May. Please re-download if you've grabbed the older files, as only the new version supports SSX.

It looks like my forum notifications are working now too :)
User avatar
moroz1999
Manic Miner
Posts: 329
Joined: Fri Mar 30, 2018 9:22 pm

Re: SAM Coupé screenshot format

Post by moroz1999 »

Thank you! That's a really great news, I will add a support of the format as soon as possible.
User avatar
moroz1999
Manic Miner
Posts: 329
Joined: Fri Mar 30, 2018 9:22 pm

Re: SAM Coupé screenshot format

Post by moroz1999 »

Please check github for an updated version of ZX-Image.
I've added support of mode3 and mode4 SSX files, others are to be implemented soon as well.

When I try to run the python script, I get the following problem:
f:\projects\ssxview-master>python ssxview.py mode2.ssx
File "ssxview.py", line 71
sys.exit(f"Invalid SSX file size ({size} bytes)")
^
SyntaxError: invalid syntax

What am I doing wrong? I've copied mode2.ssx from samples to same dir as python script located.
obo
Drutt
Posts: 31
Joined: Sat Sep 01, 2018 11:08 am
Location: Nottingham, UK
Contact:

Re: SAM Coupé screenshot format

Post by obo »

Thanks for the updated zx-image, which I'll get set up soon.

It looks like it's choking on the f-string formatter in ssxview.py, which was added in Python 3.6. I'd best add that as a requirement :)
User avatar
pavero
Dynamite Dan
Posts: 1586
Joined: Sat Dec 09, 2017 11:49 pm
Location: The Czech Republic
Contact:

Re: SAM Coupé screenshot format

Post by pavero »

[mention]PeterJ[/mention] and [mention]moroz1999[/mention]

How does it look with the support of SSX format now?

1) In ZX-Image library? Does it really require PHP 7.4?

2) At SC site?

Thanks for info.
Last edited by pavero on Sat Nov 28, 2020 8:34 pm, edited 1 time in total.
User avatar
pavero
Dynamite Dan
Posts: 1586
Joined: Sat Dec 09, 2017 11:49 pm
Location: The Czech Republic
Contact:

Re: SAM Coupé screenshot format

Post by pavero »

[mention]obo[/mention] Is it possible to open SSX files in your emulator?
User avatar
pavero
Dynamite Dan
Posts: 1586
Joined: Sat Dec 09, 2017 11:49 pm
Location: The Czech Republic
Contact:

Re: SAM Coupé screenshot format

Post by pavero »

[mention]moroz1999[/mention]

$converter->getResultMime() probably doesn't work for SSX files.
User avatar
PeterJ
Site Admin
Posts: 6879
Joined: Thu Nov 09, 2017 7:19 pm
Location: Surrey, UK

Re: SAM Coupé screenshot format

Post by PeterJ »

[mention]pavero[/mention], because of the amount of issues we had with Sam screens I went back to using PNGs. I'm happy to try again though. I just spent a long time on it and didn't get anywhere. Will need to refer back to my notes to find the details.
[mention]moroz1999[/mention] kindly updates the image library when we request it.
User avatar
pavero
Dynamite Dan
Posts: 1586
Joined: Sat Dec 09, 2017 11:49 pm
Location: The Czech Republic
Contact:

Re: SAM Coupé screenshot format

Post by pavero »

PeterJ wrote: Sat Nov 28, 2020 9:05 pm @pavero, because of the amount of issues we had with Sam screens I went back to using PNGs. I'm happy to try again though. @moroz1999 kindly updates the image library when we request it.
It's working for me now at my local computer!

The basic issue which I can see is to install PHP 7.4 on SC hosting server.
User avatar
PeterJ
Site Admin
Posts: 6879
Joined: Thu Nov 09, 2017 7:19 pm
Location: Surrey, UK

Re: SAM Coupé screenshot format

Post by PeterJ »

Hi [mention]pavero[/mention]

I will see which version of PHP we are running in the morning. The server is still on Ubuntu 16.04, so this will need updating to 18.04 or 20.04 soon. Not sure what version 16.04 runs, but I run updates every couple of weeks.

Edit. Just checked and Ubuntu 16.04 runs PHP 7.0. I won't be updating to 18.04 or 20.04 until after Christmas.

I also need to reference back to the exact issues we had. I just remember some Sam screens worked, but not others.
User avatar
pavero
Dynamite Dan
Posts: 1586
Joined: Sat Dec 09, 2017 11:49 pm
Location: The Czech Republic
Contact:

Re: SAM Coupé screenshot format

Post by pavero »

PeterJ wrote: Sat Nov 28, 2020 10:31 pm Hi @pavero

I will see which version of PHP we are running in the morning. The server is still on Ubuntu 16.04, so this will need updating to 18.04 or 20.04 soon. Not sure what version 16.04 runs, but I run updates every couple of weeks.

Edit. Just checked and Ubuntu 16.04 runs PHP 7.0. I won't be updating to 18.04 or 20.04 until after Christmas.

I also need to reference back to the exact issues we had. I just remember some Sam screens worked, but not others.
Thanks.

Maybe [mention]moroz1999[/mention] can prepare a version compatible with PHP 7.0
User avatar
moroz1999
Manic Miner
Posts: 329
Joined: Fri Mar 30, 2018 9:22 pm

Re: SAM Coupé screenshot format

Post by moroz1999 »

Sorry guys, I was a bit busy with real life lately. Will look into issues and provide support for SSX.
I was targeting the PHP7.4 really lately and I'm eager to switch to a fresh 8.0 with all its features. However, I will take a look at how to provide the support for 7.0, there should be some transpilers available already if I'm not mistaken.
User avatar
moroz1999
Manic Miner
Posts: 329
Joined: Fri Mar 30, 2018 9:22 pm

Re: SAM Coupé screenshot format

Post by moroz1999 »

viewtopic.php?f=32&t=3786 - added topic for zx-image discussions.
Shortly: SSX is fully supported now, mime is fixed, now I'll try to transpile it for older PHPs.

Update: PHP7.0 compatible version is ready to run, described in topic above.
User avatar
pavero
Dynamite Dan
Posts: 1586
Joined: Sat Dec 09, 2017 11:49 pm
Location: The Czech Republic
Contact:

Re: SAM Coupé screenshot format

Post by pavero »

Emulator Sim Coupe generates two different SSX files (in SS4 mode) for the same title.

e.g.:
https://spectrumcomputing.co.uk/entry/3 ... e/Amalthea
https://spectrumcomputing.co.uk/entry/3 ... tain_Comic

1) The first one (24 592 b)
https://spectrumcomputing.co.uk/zxdb/si ... load-1.ssx

2) The second one (98 304, 4x bigger size + resolution)
https://spectrumcomputing.co.uk/zxdb/si ... -run-1.ssx

[mention]obo[/mention]
[mention]moroz1999[/mention]

Is it a feature or bug? :)
User avatar
PeterJ
Site Admin
Posts: 6879
Joined: Thu Nov 09, 2017 7:19 pm
Location: Surrey, UK

Re: SAM Coupé screenshot format

Post by PeterJ »

pavero wrote: Sun Jan 17, 2021 7:36 pm Emulator Sim Coupe generates two different SSX files (in SS4 mode) for the same title.
Hi [mention]pavero[/mention] and [mention]moroz1999[/mention],

[mention]Stefan[/mention] kindly replied to my report on GitHub, and there is a later version which is available here:

https://github.com/simonowen/simcoupe/r ... g/20200827

I have tested with Captain Cosmic and the files are the correct size.

Start taking SSX screens everyone!

PS - Noticed that Simon also created a SSX viewer in Python which looks nice:

https://github.com/simonowen/ssxview
User avatar
pavero
Dynamite Dan
Posts: 1586
Joined: Sat Dec 09, 2017 11:49 pm
Location: The Czech Republic
Contact:

Re: SAM Coupé screenshot format

Post by pavero »

PeterJ wrote: Wed Feb 03, 2021 8:31 am
Hi [mention]pavero[/mention] and [mention]moroz1999[/mention],

[mention]Stefan[/mention] kindly replied to my report on GitHub, and there is a later version which is available here:

https://github.com/simonowen/simcoupe/r ... g/20200827

I have tested with Captain Cosmic and the files are the correct size.

Start taking SSX screens everyone!

PS - Noticed that Simon also created a SSX viewer in Python which looks nice:

https://github.com/simonowen/ssxview
I am a little bit confused now.

On that link I can still see only the old version, all files are 6 months old, without any changes.

[mention]PeterJ[/mention] , [mention]Stefan[/mention] ?
User avatar
PeterJ
Site Admin
Posts: 6879
Joined: Thu Nov 09, 2017 7:19 pm
Location: Surrey, UK

Re: SAM Coupé screenshot format

Post by PeterJ »

[mention]pavero[/mention],

The original one linked here:

viewtopic.php?p=37338#p37338

Is from 24 May 2020

The new one in my post above is from 27 Aug 2020.

Old version

New version
User avatar
pavero
Dynamite Dan
Posts: 1586
Joined: Sat Dec 09, 2017 11:49 pm
Location: The Czech Republic
Contact:

Re: SAM Coupé screenshot format

Post by pavero »

PeterJ wrote: Wed Feb 03, 2021 6:32 pm @pavero,

The original one linked here:

viewtopic.php?p=37338#p37338

Is from 24 May 2020

The new one in my post above is from 27 Aug 2020.

Old version

New version
For me both versions are old. :)

I am using the version from 27 Aug 2020 for several months. And the bug is still there.

Now I have tried to generate SSX file from Bulgulators game and the output size is still about 100kB.
User avatar
PeterJ
Site Admin
Posts: 6879
Joined: Thu Nov 09, 2017 7:19 pm
Location: Surrey, UK

Re: SAM Coupé screenshot format

Post by PeterJ »

pavero wrote: Wed Feb 03, 2021 6:39 pm
I am using the version from 27 Aug 2020 for several months. And the bug is still there.

Now I have tried to generate SSX file from Bulgulators game and the output size is still about 100kB.
OK, I only tried the game that you put in your earlier post, Captain Cosmic and that was the correct size. Does that file come out the right size for you now?
User avatar
pavero
Dynamite Dan
Posts: 1586
Joined: Sat Dec 09, 2017 11:49 pm
Location: The Czech Republic
Contact:

Re: SAM Coupé screenshot format

Post by pavero »

Well, maybe there is some progress between both versions, but there is still not 100%.
User avatar
pavero
Dynamite Dan
Posts: 1586
Joined: Sat Dec 09, 2017 11:49 pm
Location: The Czech Republic
Contact:

Re: SAM Coupé screenshot format

Post by pavero »

PeterJ wrote: Wed Feb 03, 2021 6:43 pm
pavero wrote: Wed Feb 03, 2021 6:39 pm
I am using the version from 27 Aug 2020 for several months. And the bug is still there.

Now I have tried to generate SSX file from Bulgulators game and the output size is still about 100kB.
OK, I only tried the game that you put in your earlier post, Captain Cosmic and that was the correct size. Does that file come out the right size for you now?
Yep, Captain Cosmic works fine.
User avatar
PeterJ
Site Admin
Posts: 6879
Joined: Thu Nov 09, 2017 7:19 pm
Location: Surrey, UK

Re: SAM Coupé screenshot format

Post by PeterJ »

OK, I get the same result as you with Bulgulators. I will add to the GitHub report.

I suggest this does not stop us taking screens, we just keep a list of ones which come out incorrectly.
User avatar
PeterJ
Site Admin
Posts: 6879
Joined: Thu Nov 09, 2017 7:19 pm
Location: Surrey, UK

Re: SAM Coupé screenshot format

Post by PeterJ »

Posted here [mention]pavero[/mention]

https://github.com/simonowen/simcoupe/issues/37
User avatar
pavero
Dynamite Dan
Posts: 1586
Joined: Sat Dec 09, 2017 11:49 pm
Location: The Czech Republic
Contact:

Re: SAM Coupé screenshot format

Post by pavero »

Here is the other example.

https://www.worldofsam.org/products/f-16-combat-pilot

(SSX output 96 kB for running screen)
Post Reply