Fuse Emulator - Saving Snapshots

Struggling with Fuse or trying to find an emulator with a specific feature. Ask your questions here.
Post Reply
User avatar
PeterJ
Site Admin
Posts: 6878
Joined: Thu Nov 09, 2017 7:19 pm
Location: Surrey, UK

Fuse Emulator - Saving Snapshots

Post by PeterJ »

Hi,

I'm often (but not always) getting this message when saving Snapshots in Fuse:

Image

I'm unable to load these files back into Fuse.

On the occasions I can save snapshots without errors, whilst I can load them back into Fuse, when I try and load them into Spectaculator I get this:

Image

Any idea what I'm doing wrong? I'm using machine type Spectrum 128K.

Thanks
User avatar
djnzx48
Manic Miner
Posts: 730
Joined: Wed Dec 06, 2017 2:13 am
Location: New Zealand

Re: Fuse Emulator - Saving Snapshots

Post by djnzx48 »

Do you have any peripherals attached? And are you using .szx format for saving?
User avatar
PeterJ
Site Admin
Posts: 6878
Joined: Thu Nov 09, 2017 7:19 pm
Location: Surrey, UK

Re: Fuse Emulator - Saving Snapshots

Post by PeterJ »

djnzx48 wrote: Tue Jun 16, 2020 9:26 am Do you have any peripherals attached? And are you using .szx format for saving?
Hi,

Hi, no peripherals, and just .sna

Peter
User avatar
djnzx48
Manic Miner
Posts: 730
Joined: Wed Dec 06, 2017 2:13 am
Location: New Zealand

Re: Fuse Emulator - Saving Snapshots

Post by djnzx48 »

If there isn't any particular reason you need snapshots in .sna format, I would try .szx instead. The .sna format is probably too limited for the machine configuration you're using.
User avatar
Guesser
Manic Miner
Posts: 641
Joined: Wed Nov 15, 2017 2:35 pm
Contact:

Re: Fuse Emulator - Saving Snapshots

Post by Guesser »

PeterJ wrote: Tue Jun 16, 2020 9:12 am Any idea what I'm doing wrong? I'm using machine type Spectrum 128K.
The sna format doesn't officially support the Spectrum 128
User avatar
Pegaz
Dynamite Dan
Posts: 1210
Joined: Mon Nov 13, 2017 1:44 pm

Re: Fuse Emulator - Saving Snapshots

Post by Pegaz »

It also supports Pentagon 128k.
User avatar
PeterJ
Site Admin
Posts: 6878
Joined: Thu Nov 09, 2017 7:19 pm
Location: Surrey, UK

Re: Fuse Emulator - Saving Snapshots

Post by PeterJ »

Thanks [mention]Guesser[/mention] and [mention]djnzx48[/mention]. Just out for walk, will try when I get home.
User avatar
PeterJ
Site Admin
Posts: 6878
Joined: Thu Nov 09, 2017 7:19 pm
Location: Surrey, UK

Re: Fuse Emulator - Saving Snapshots

Post by PeterJ »

Thanks! That resolved the issue.
User avatar
Seven.FFF
Manic Miner
Posts: 744
Joined: Sat Nov 25, 2017 10:50 pm
Location: USA

Re: Fuse Emulator - Saving Snapshots

Post by Seven.FFF »

I was curious about this, so I looked it up in the Fuse source.

It automatically emits this warning when you snapshot a +2A, +3, Pentagon, TC2048 or TC2068 model. 16K, 48K, toastrack and +2 grey don't get the warning. So you may not have been in the model you thought you were.

The warning is correct - all those models have features that aren't part of the SNA specification. Although Pentagon is a grey area, as there are several paging schemes and this snapshot code doesn't distinguish between them.

But for most games we're concerned with the +2A and +3 far more than the other models. The only thing really not snapshottable for +2A and +3 is the All-RAM mode, which almost no commercial software uses. So in the vast majority of cases, the snapshots should load and run fine.
Robin Verhagen-Guest
SevenFFF / Threetwosevensixseven / colonel32
NXtel NXTP ESP Update ESP Reset CSpect Plugins
User avatar
PeterJ
Site Admin
Posts: 6878
Joined: Thu Nov 09, 2017 7:19 pm
Location: Surrey, UK

Re: Fuse Emulator - Saving Snapshots

Post by PeterJ »

[mention]Seven.FFF[/mention],

Thanks for testing. I double checked and I'm most definitely on Spectrum 128K. That is the one I always used.

Please see below when saving as .sna

Image


Peter
dfzx
Manic Miner
Posts: 682
Joined: Mon Nov 13, 2017 6:55 pm
Location: New Forest, UK
Contact:

Re: Fuse Emulator - Saving Snapshots

Post by dfzx »

Fuse (well, libspectrum) spits out that error from this switch:

Code: Select all

  case LIBSPECTRUM_MACHINE_128:
  case LIBSPECTRUM_MACHINE_128E:
  case LIBSPECTRUM_MACHINE_PENT512:
  case LIBSPECTRUM_MACHINE_PENT1024:
  case LIBSPECTRUM_MACHINE_PLUS2:
  case LIBSPECTRUM_MACHINE_PLUS2A:
  case LIBSPECTRUM_MACHINE_PLUS3:
  case LIBSPECTRUM_MACHINE_PLUS3E:
  case LIBSPECTRUM_MACHINE_SCORP:
  case LIBSPECTRUM_MACHINE_SE:
    *out_flags |= LIBSPECTRUM_FLAG_SNAPSHOT_MAJOR_INFO_LOSS;
So the 128K machine will definitely produce it.

There's a lot of peripherals and other stuff checked too, so a lot of hardware emulation permutations will result in it as well.
Derek Fountain, author of the ZX Spectrum C Programmer's Getting Started Guide and various open source games, hardware and other projects, including an IF1 and ZX Microdrive emulator.
User avatar
Seven.FFF
Manic Miner
Posts: 744
Joined: Sat Nov 25, 2017 10:50 pm
Location: USA

Re: Fuse Emulator - Saving Snapshots

Post by Seven.FFF »

Ha, I was looking at a different version of the code.

Code: Select all

   case LIBSPECTRUM_MACHINE_TC2048:
   case LIBSPECTRUM_MACHINE_TC2068:
     *out_flags |= LIBSPECTRUM_FLAG_SNAPSHOT_MAJOR_INFO_LOSS;
     /* Fall through */
   case LIBSPECTRUM_MACHINE_16:
   case LIBSPECTRUM_MACHINE_48:
     error = write_48k_sna( buffer, &ptr, length, sp, snap );
     break;
     
   case LIBSPECTRUM_MACHINE_PLUS2A:
   case LIBSPECTRUM_MACHINE_PLUS3:
   case LIBSPECTRUM_MACHINE_PENT:
     *out_flags |= LIBSPECTRUM_FLAG_SNAPSHOT_MAJOR_INFO_LOSS;
     /* Fall through */
   case LIBSPECTRUM_MACHINE_PLUS2:
   case LIBSPECTRUM_MACHINE_128:
     error = write_128k_sna( buffer, &ptr, length, snap );
     break;
Robin Verhagen-Guest
SevenFFF / Threetwosevensixseven / colonel32
NXtel NXTP ESP Update ESP Reset CSpect Plugins
Spezzi63
Drutt
Posts: 44
Joined: Sat Dec 28, 2019 1:36 pm

Re: Fuse Emulator - Saving Snapshots

Post by Spezzi63 »

PeterJ wrote: Tue Jun 16, 2020 9:12 am I'm often (but not always) getting this message when saving Snapshots in Fuse:

Image

I'm unable to load these files back into Fuse.
Hi,
you should save the snap file without extension.
Fuse should be able to load this file using drag and drop.
You can also add the extension by renaming it if you want.
greetings
zxcygnus
Drutt
Posts: 31
Joined: Mon Aug 24, 2020 3:11 pm
Contact:

Re: Fuse Emulator - Saving Snapshots

Post by zxcygnus »

Spezzi63 wrote:you should save the snap file without extension.
Fuse should be able to load this file using drag and drop.
You can also add the extension by renaming it if you want.
greetings
I am using Fuse-emulator in Linux console and sometimes is drag&drop really inconvenient (because window manager or because i just don't have opened window with some "explorer" equivalent in right folder, i rather work with mc in text console than any clickable file browser).

Mostly i am using built in file browser in Fuse itself. But if i save snapshot without extension, it will be saved without extension on hard drive too (in format ZXST). So it will not be in list of supported files in open dialog when i am trying open snapshot. Even more weird is, Fuse is not displaying snapshots with zxst extension too. I must always select "all files" instead "supported files" which is kinda annoying.

I don't understand - sna files are in open dialog visible, but sna files are not able store perfect snapshot. Zxst are not visible, but works better and are default/recomended.

Does it mean i should use another extension for ZXST files? Or is it bug in Fuse?

I know about this problem long time and even latest SVN version does it (r5829-trunk).
https://cygnus.speccy.cz/ - mostly harmless user of ZX Spectrum 128k +2, Betadisk with TRDOS 5.05cz or DivIDE with ESXDOS
User avatar
Ast A. Moore
Rick Dangerous
Posts: 2641
Joined: Mon Nov 13, 2017 3:16 pm

Re: Fuse Emulator - Saving Snapshots

Post by Ast A. Moore »

zxcygnus wrote: Mon Aug 24, 2020 3:54 pm Does it mean i should use another extension for ZXST files? Or is it bug in Fuse?
I don’t know if Fuse uses different extension under Linux, but the proper snapshot file extension is szx, not zxst.
Every man should plant a tree, build a house, and write a ZX Spectrum game.

Author of A Yankee in Iraq, a 50 fps shoot-’em-up—the first game to utilize the floating bus on the +2A/+3,
and zasm Z80 Assembler syntax highlighter.
zxcygnus
Drutt
Posts: 31
Joined: Mon Aug 24, 2020 3:11 pm
Contact:

Re: Fuse Emulator - Saving Snapshots

Post by zxcygnus »

Ast A. Moore wrote: Mon Aug 24, 2020 7:10 pm
zxcygnus wrote: Mon Aug 24, 2020 3:54 pm Does it mean i should use another extension for ZXST files? Or is it bug in Fuse?
I don’t know if Fuse uses different extension under Linux, but the proper snapshot file extension is szx, not zxst.
Fuse doesn't use different extension, but it didn't adding extensions automatically either. Which is confusing. I just tried guess it from first four letters in snapshot. I think, bug is - Fuse emulator should add default extension if not specified by user, or display all files by default. Otherwise saved snapshots just are not visible (both - with wrong extension or without it).
https://cygnus.speccy.cz/ - mostly harmless user of ZX Spectrum 128k +2, Betadisk with TRDOS 5.05cz or DivIDE with ESXDOS
Post Reply