28 January 2013, 19:20 | #1 |
Registered User
Join Date: Jan 2013
Location: Poland
Posts: 40
|
Problem with hard drive and save states, and a few other questions
Hi there!
First of all, thank you for your hard work! I have one issue with stable and development version of fs-uae. Way to reproduce:
Btw, is there any configuration options for switching off fade at emulator quiting? It's pretty annoying while hunting bugs (yes, I know that I can change code, which actually I'm doing anyway, but maybe I have missed something). And finally - is there a configuration option for turning mono audio output? Or maybe have control over software mixing channels? Best regards! |
28 January 2013, 20:08 | #2 |
FS-UAE Developer
Join Date: Dec 2011
Location: Førde, Norway
Age: 43
Posts: 4,043
|
Hi, thanks for the test case. I will try to reproduce and see if there's any interesting conclusion to be drawn (or something to this).
This assumes that you use a normal (unzipped) directory - please let me know if this is not the case - there is a known problem when using zipped drives via the Launcher (save states are now disabled in *that* case in the most recent development version) but that is another problem. Also, I suppose the "not supported" warning means that no-one will provide user-support for it (=it may work under ideal conditions) Fade: I'll throw in an fade_out_duration (ms) or something, should be equally useful for myself Mono/stereo: FS-UAE has no offical option for this, but you can use uae_sound_stereo_separation = 0. You can also modify OpenAL settings (outside FS-UAE), ~/.alsoftrc when using the OpenAL soft implementation. |
28 January 2013, 21:45 | #3 | ||||
Registered User
Join Date: Jan 2013
Location: Poland
Posts: 40
|
Quote:
Quote:
Quote:
Quote:
uae_sound_stereo_separation works just fine, thank you. Is there any documentation on those uae_ configuration options? |
||||
28 January 2013, 21:50 | #4 | |
FS-UAE Developer
Join Date: Dec 2011
Location: Førde, Norway
Age: 43
Posts: 4,043
|
Quote:
It is seldom needed, but you can use this to override low-level emulation settings when FS-UAE does not provide "supported options" for it. |
|
28 January 2013, 22:19 | #5 |
Registered User
Join Date: Jan 2013
Location: Poland
Posts: 40
|
Ok, that's fine. Thanks again!
|
28 January 2013, 23:37 | #6 |
FS-UAE Developer
Join Date: Dec 2011
Location: Førde, Norway
Age: 43
Posts: 4,043
|
I did not manage to reproduce the "VBR detected" problem, but I have found a problem which may be the root cause. It is at least a problem in any case
When loading the state, the emulator tries to re-open files which were held open by Amiga programs when the state was saved. The problem is that the Amiga path is simply appended to the hard drive path, and then checked for existence - but this will not always work: (1) it will not work when the file is opened by the Amiga with another case than the real host file on systems such as Linux with case sensitive file systems! (2) it should not work if the Amiga path names need special mapping against host file names. I think (2) may affect WinUAE as well, but (2) is much more rare than (1), and (1) is not a problem on Windows. I have solved this now by traversing the path, mapping each Amiga path element to it's host element (while also considering case, of course) when open files are restored by state loading. Do you compile your own version of FS-UAE if I supply a patch? A further complication: - When the file to be restored is not found due to different case, the UAE code opens a new file (a dummy file) and sets the file position to the original position and fills the file with dummy data. - But when the file is about to be opened, the path is correctly mapped from Amiga path to host path, and so the correct (existing) file will be opened, and the state loading routine overwrites the original data with dummy data! So unfortunately, (some of) the files in the directory hard drive may have been corrupted when loading the state. EDIT: attached patch, apply with patch -p1 < /path/to/filesys.patch.txt from the source root dir. Last edited by FrodeSolheim; 28 January 2013 at 23:57. |
29 January 2013, 08:15 | #7 |
WinUAE developer
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,505
|
You may have noticed that it is just a hack, just enough to make it work even if file is missing. (work as in not immediately crashing). I think I needed it to debug something..
Proper solution (that I haven't bothered to do) is of course to create a virtual file and only save it back if it is modified. |
29 January 2013, 15:49 | #8 | |
Registered User
Join Date: Jan 2013
Location: Poland
Posts: 40
|
Quote:
Tested with default letter cases and all-lowercase filenames. Same result. |
|
22 June 2021, 08:39 | #9 | |
Registered User
Join Date: Sep 2015
Location: Montreal
Posts: 296
|
Quote:
I use NoVBRmove in the WHDLoad arguments prior saving the state file. Do not use this option with all of your configurations as it may cause unexpected results or freeze during loading with some games. Last edited by ztronzo; 22 June 2021 at 10:13. |
|
22 November 2021, 12:55 | #10 |
Registered User
Join Date: Jan 2005
Location: Portugal
Age: 42
Posts: 139
|
The unreliability of save states on FS-UAE is something that really prevents me from having the most fun I could. I just don't have the time to play First Samurai or Leander in one go. From what I gather, having unzipped Whdload files would solve the problems?
Also, what's this NoVBRmove argument? This is new to me. Will it solve the issue? |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Save States from hard-disk installed games | antonvaltaz | support.WinUAE | 4 | 02 November 2009 14:05 |
Hard drive, partitions, buffer questions. | fc.studio | support.Hardware | 15 | 01 September 2007 13:37 |
A600 Hard Drive Questions | Wingnut | New to Emulation or Amiga scene | 20 | 21 March 2006 02:42 |
Problem with save states | runamuck | support.WinUAE | 3 | 17 October 2003 13:20 |
Hard Drive Questions | killergorilla | support.Hardware | 1 | 23 March 2003 19:18 |
|
|