English Amiga Board


Go Back   English Amiga Board > Support > support.FS-UAE

 
 
Thread Tools
Old 16 January 2013, 02:22   #1
wozza
 
Posts: n/a
Issue loading game

After a long session playing Captive (just like to good old days) and making significant progress I can't get the game to run using WHDLoad. I get the following traceback.

Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/fs_uae_launcher/ui/LaunchDialog.py", line 90, in handler_thread
self._handler_thread()
File "/usr/lib/python2.7/dist-packages/fs_uae_launcher/ui/LaunchDialog.py", line 99, in _handler_thread
self.handler.run()
File "/usr/lib/python2.7/dist-packages/fs_uae_launcher/LaunchHandler.py", line 88, in run
self.init_changes()
File "/usr/lib/python2.7/dist-packages/fs_uae_launcher/LaunchHandler.py", line 392, in init_changes
ignore=["*.uss", "*.sdf"])
File "/usr/lib/python2.7/dist-packages/fs_uae_launcher/games/GameChangeHandler.py", line 52, in init
shutil.copyfile(sourcepath, destpath)
File "/usr/lib/python2.7/shutil.py", line 83, in copyfile
with open(dst, 'wb') as fdst:
IOError: [Errno 21] Is a directory: u'/tmp/fs-uae-J30rjW/DH0/S'

This only happens when I try to run from a saved configuration. If I clear everything and start again the game runs but I have no saves.

Interestingly if I run another game my Captive saves are under save states and I can load them but I get a "installed program has modified the vbr detected on entering via resload_loadfile"

Hoping someone can help. I am running Ubuntu 12.10
 
Old 16 January 2013, 20:23   #2
FrodeSolheim
FS-UAE Developer
FrodeSolheim's Avatar
 
Join Date: Dec 2011
Location: Førde, Norway
Age: 42
Posts: 4,041
Hi, can you compress the state dir for Captive and send to fs-uae@fengestad.no? If not, a complete file listing of the state dir could also be useful.

(I looks like it tries to restore a *file* called S from the state dir - for a currently unknown reason - which conflicts with the S directory).
FrodeSolheim is offline  
Old 18 January 2013, 19:12   #3
FrodeSolheim
FS-UAE Developer
FrodeSolheim's Avatar
 
Join Date: Dec 2011
Location: Førde, Norway
Age: 42
Posts: 4,041
Hi, there are several issues here, but hopefully I have rescued most of your progress (solution at the end). The issues are:

(1) Your save state dir for this game has become corrupt
(2) The save states cannot be used to restore the game to a valid state

I have found the explanation for (1):

- When using the "load WHDLoad zip file" feature of the launcher, a temporary drive is created and the emulator/game is started.
- When the save state feature is used, information about open files are saved with absolute path to the save state file.
- Thus when later restarting the game, the temporary drive is created (at another path), the originally open files can no longer be located, and UAE creates dummy files for these files when restorting the state. By "coincidence", these dummy files are created directly in the save state dir, and this is the reason for the file conflict when later trying to start the game.

This means that save states and the "load WHDLoad zip file" feature of FS-UAE Launcher are not safe to use together, at least not currently. This may be fixable though.

Another important point is that using save states and hard drives at all may not always work, since the save states and hard drive content may come out of sync when loading earlier states (for example, the Amiga software loaded from the state can assume that some content is available / is not available on the HD, when the opposite is true). So in any case, using the game's own save feature is highly recommended. I think a warning about this in the FS-UAE interface will be appropriate (i.e. that FS-UAE suggests also using the games save feature when you access the save state menu).

The second issue (2) is more.. complex:

When the game is loaded from one your states, the game stops working when file resources are accessed (with the error message you reported ("The installed program has modified the vbr detected on entering via resload_loadfile"). This also prevents you from loading the state and saving your progress via the normal save feature.

By debugging a bit, I've found out that when loading the state, the VBR is first set to 0x001f6fc0, and shortly after set to 0x00000000. I can't right now tell why this happens, but WHDLoad aborts when it detects that the VBR has been modified.

I have tried to rescue your game progress for you:
- I manually recreated the HD files for the game at the locations expected by the save state
- I temporarily hacked FS-UAE to avoid setting VBR to 0x00000000 when loading the state.
- With these changes, I managed to load the last state from January 15th, and use the save feature to save the progress to disk. Hopefully, this savegame is valid (it looks that way, at least it loads after restarting the game).

To use this savegame, do the following:
- Make a backup of the existing save state dir for the game, just in case
- Delete everything inside it, including the save state files and DH0.
- Unzip the attached zip file to the (now empty) state dir, so FED_MAP6 is stored as DHO/Captive/Fed1/FED_MAP6 under the state dir.
- Start the game as usual (and don't use any save states, which you have probably deleted anyway), let the game load, access the load game feature, and "Load Game 6".

I cannot guarantee 100% that there is no problem with the save game, but it seems to work fine here

Remember to use the game's save feature. Also, the modified files are only saved back to the state dir (from the temp dir) by the Launcher when FS-UAE quits, so a power loss (or something) will prevent this from happening. So to ensure progress is really saved with this feature, it's actually best to quit FS-UAE once in a while
Attached Files
File Type: zip DH0.zip (3.7 KB, 196 views)
FrodeSolheim is offline  
Old 20 January 2013, 02:47   #4
wozza
 
Posts: n/a
Game save restored and working. Turns out that the file was my most recent file so no progress lost

Thanks again
 
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Black screen but game is still loading? pekr support.FS-UAE 9 04 February 2013 17:31
C64 game, US flag loading screen StarEye Looking for a game name ? 15 21 June 2006 21:43
In-game interruptions while harddrive is loading MheAd project.WHDLoad 6 19 September 2005 15:24
Problems with WHD game loading speeds MethodGit support.WinUAE 1 21 March 2003 00:00
Game Loading Superstition ! xamigax support.Games 7 03 May 2002 14:38

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 00:13.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.
Page generated in 0.06887 seconds with 15 queries