English Amiga Board


Go Back   English Amiga Board > Support > support.WinUAE

 
 
Thread Tools
Old 06 May 2022, 00:25   #1
Skumball404
Registered User
 
Join Date: Dec 2017
Location: UK
Posts: 22
Alien Breed Special Edition save states

I've been experiencing a lot of crashes trying to restore save states in this game (WHDLoad version). Namely trying to view the portable map or login to the ship's computer after restoring a state. This crashes to Workbench with a "resload_FlushCache" error having "modified the VBR".


The solution seems to be loading the first level and logging in to the first computer, then load the save state from there as it seems to restore a critical component to the game's memory.


I've also witnessed permanent alien sprite glitches when saving the state on the level transition screen, so wait until in-game or in a ship computer, and keep multiple saves in case something goes wrong.
Skumball404 is offline  
Old 06 May 2022, 09:59   #2
jotd
This cat is no more
 
jotd's Avatar
 
Join Date: Dec 2004
Location: FRANCE
Age: 52
Posts: 8,161
I remember "completing" the game using ARIII savestates on my A500 back in the days

Specially the last maze level. Horrible.
jotd is offline  
Old 06 May 2022, 13:56   #3
Mclane
Old retro god.
 
Mclane's Avatar
 
Join Date: Apr 2002
Location: Northolt, West London
Age: 62
Posts: 857
I'm probably wrong, but I seem to remember Toni mentioning issues with save states and WHD's.

No doubt JIT if on does not help..
Mclane is online now  
Old 06 May 2022, 14:18   #4
Anubis
Retro Gamer
 
Anubis's Avatar
 
Join Date: Jan 2005
Location: Underworld
Age: 51
Posts: 4,058
IIRC save states for WHDLoad are not completely supported, meaning - you play at your own risk. From what I remember, save state and HD position/files can mismatch, crashing Amiga. Just use ADFs if you plan to use Save States. (that is what I do )

Last edited by Anubis; 06 May 2022 at 21:16.
Anubis is offline  
Old 06 May 2022, 14:24   #5
Mclane
Old retro god.
 
Mclane's Avatar
 
Join Date: Apr 2002
Location: Northolt, West London
Age: 62
Posts: 857
Ah, good, nice to know it wasn't my memory playing tricks..
Mclane is online now  
Old 06 May 2022, 15:53   #6
Skumball404
Registered User
 
Join Date: Dec 2017
Location: UK
Posts: 22
I use an A1200 config with fast ram for WHDLoad, faster but cycle-exact clock speed and no JIT.

From what I have learnt, the recent A500 Mini uses WHDLoad, save states and includes this game. I wonder how it performs on that platform using the save states.
Skumball404 is offline  
Old 07 May 2022, 12:25   #7
Skumball404
Registered User
 
Join Date: Dec 2017
Location: UK
Posts: 22
Footage from the A500 Mini version of the game shows that upon loading the second level, the screen immediately transitions to the level map as if the player had purchased the Remote Location Scanner and pressed 'M' to view the map. I assume the problem was identified so something happens in the background to load in the missing piece before opening the ship's computer/map into memory, so a crash never occurs.
Skumball404 is offline  
Old 07 May 2022, 13:42   #8
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,504
Quote:
Originally Posted by Skumball404 View Post
This crashes to Workbench with a "resload_FlushCache" error having "modified the VBR".
I can debug this if someone first tells me what does this message mean in practise?
Toni Wilen is online now  
Old 07 May 2022, 15:11   #9
Skumball404
Registered User
 
Join Date: Dec 2017
Location: UK
Posts: 22
Quote:
Originally Posted by Toni Wilen View Post
I can debug this if someone first tells me what does this message mean in practise?

To be precise, the exact message reads as follows:
" Installed program has modified the VBR, detected on entering via 'resload_FlushCache'. "
Skumball404 is offline  
Old 07 May 2022, 15:35   #10
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,504
I know what it technically means but it makes no sense because VBR (68010+ CPU register) is restored with statefile.
Toni Wilen is online now  
Old 07 May 2022, 18:10   #11
jotd
This cat is no more
 
jotd's Avatar
 
Join Date: Dec 2004
Location: FRANCE
Age: 52
Posts: 8,161
whdload checks that program doesn't change some special locations whenever it has a chance (not in interrupts, though)

When the slave flushes the caches (after loading for instance), whdload checks that the program didn't write into VBR registers (the VBR that whdload installs to supervise zero page interrupts) just in case the machine doesn't have a MMU installed.
jotd is offline  
Old 11 May 2022, 18:29   #12
Toni Wilen
WinUAE developer
 
Join Date: Aug 2001
Location: Hämeenlinna/Finland
Age: 49
Posts: 26,504
Yeah, but VBR is obviously restored (or nothing would work) which makes this confusing...

Does it work if you save state when in games menu screen. Quick emulator immediately after saving. Then restore state directly. Does game work or still crash when it starts loading new data?

Does WHDLoad PRELOAD parameter change anything?
Toni Wilen is online now  
Old 11 May 2022, 19:06   #13
jotd
This cat is no more
 
jotd's Avatar
 
Join Date: Dec 2004
Location: FRANCE
Age: 52
Posts: 8,161
preload should definitely be used just because save states and hard disk read dont mux too well
jotd is offline  
Old 12 May 2022, 22:05   #14
Skumball404
Registered User
 
Join Date: Dec 2017
Location: UK
Posts: 22
Quote:
Originally Posted by Toni Wilen View Post
Yeah, but VBR is obviously restored (or nothing would work) which makes this confusing...

Does it work if you save state when in games menu screen. Quick emulator immediately after saving. Then restore state directly. Does game work or still crash when it starts loading new data?

Does WHDLoad PRELOAD parameter change anything?

Saving a state within the ship computer menu on the first level, quit emulator, reload state, logout of computer and log back in still crashes.


Uncommenting Preload still crashes.
Skumball404 is offline  
Old 12 May 2022, 22:09   #15
jotd
This cat is no more
 
jotd's Avatar
 
Join Date: Dec 2004
Location: FRANCE
Age: 52
Posts: 8,161
do you have JIT enabled by chance?
jotd is offline  
Old 13 May 2022, 00:02   #16
Skumball404
Registered User
 
Join Date: Dec 2017
Location: UK
Posts: 22
Quote:
Originally Posted by jotd View Post
do you have JIT enabled by chance?

Not in this case: A stock A1200 with a cycle-exact 42.562740 CPU frequency (6 x A500 @ 7.093790), rev 40.68 kickstart ROM, 4MB Z2 Fast memory, Workbench 3.1 rev 40.42 on an HDF at DH0 and PC-linked folders on DH1-DH3 for Retroplay's pre-installed games including the latest Alien Breed Special Edition (1998), WHDLoad v18.7.
Skumball404 is offline  
Old 13 May 2022, 07:44   #17
jotd
This cat is no more
 
jotd's Avatar
 
Join Date: Dec 2004
Location: FRANCE
Age: 52
Posts: 8,161
ok

Have you tried other save states of other games?
Have you tried running the game from hardfile instead of windows partitions?
jotd is offline  
Old 13 May 2022, 11:32   #18
Skumball404
Registered User
 
Join Date: Dec 2017
Location: UK
Posts: 22
Quote:
Originally Posted by jotd View Post
ok

Have you tried other save states of other games?
Have you tried running the game from hardfile instead of windows partitions?

While some games seem to load correctly in some places, Cannon Fodder produces similar VBR errors by saving states during level transitions, such as during the helicopter animation before each mission. Reloading a state during the helicopter scene produced a 'resload_LoadFileDecrunch' error (uncompress data in memory according to the WHDLoad website). That time WinUAE warns of saving a state.

The HDF version of Cannon Fodder seems to work correctly, but I haven't found an HDF of Alien Breed to test that game.

As others have suggested it seems like a combination of save states and WHDLoad is the issue.
Skumball404 is offline  
Old 13 May 2022, 21:35   #19
Don_Adan
Registered User
 
Join Date: Jan 2008
Location: Warsaw/Poland
Age: 55
Posts: 1,959
I can suspect that problem is related then new/different interrupt routine is used for different parts of this game (old one interrupt is overwritten by new interrupt). And WinUAE dont restored/set correctly something related with VBR.
Don_Adan is offline  
Old 13 May 2022, 21:52   #20
jotd
This cat is no more
 
jotd's Avatar
 
Join Date: Dec 2004
Location: FRANCE
Age: 52
Posts: 8,161
well, copy the Alien Breed files to a mounted HDF and you're done.
jotd is offline  
 


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Alien Breed Special Edition 92 money bug mako2000 Retrogaming General Discussion 0 21 January 2021 14:24
Alien Breed Special Edition 1992 Crazy C support.Games 0 23 June 2017 18:43
Alien Breed Special Edition 92 spannernick support.Games 1 04 June 2016 19:50
Alien Breed 3D Special Edition ever released? Firestone support.Games 25 05 January 2016 23:04
Alien Breed Special Edition'92 - special level mailman Nostalgia & memories 7 14 April 2010 09:03

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 19:25.

Top

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