Author Topic: [SOLVED] SCI0 - Autosave  (Read 8241 times)

0 Members and 1 Guest are viewing this topic.

Offline Doan Sephim

Re: [SOLVED] SCI0 - Autosave
« Reply #15 on: July 12, 2023, 10:09:17 AM »
I have not tested with ScummVM, which I think uses it's own save system (but I'm no expert).

I want to make sure this is ironed out for people who want to play on era hardware, too. I think just removing the change directory will be my go to answer, which I thought would be easy enough, but I cannot even find WHERE that logic is!

Offline Kawa

Re: [SOLVED] SCI0 - Autosave
« Reply #16 on: July 12, 2023, 10:26:12 AM »
How exactly the files themselves are saved doesn't matter. If the SaveGame kernel call ends up doing some Weird ScummVM Stuff behind the scenes, nothing about the "change directory" button oopsing out would change in any way, because the classic UI is handled in script.

More to the point, in SCI0 the save/restore dialog box is in script 990, syswindow.sc, as SRDialog.

Offline Doan Sephim

Re: [SOLVED] SCI0 - Autosave
« Reply #17 on: July 12, 2023, 10:48:34 AM »
Thanks Kawa! With you pointing me to the correct script, I was able to remove the change directory stuff. Loses a touch of old school authenticity but I don't think anyone will mind. Also, can't crash the game if you can't push the button  ;D
« Last Edit: July 12, 2023, 11:02:16 AM by Doan Sephim »
Artificial Intelligence Competition

Offline Kawa

Re: [SOLVED] SCI0 - Autosave
« Reply #18 on: July 12, 2023, 11:42:18 AM »
The best solution of course would be to not have it crash at all. All a release terp's oops message would give is a number, which may help a lot depending on the number.

Offline lskovlun

Re: [SOLVED] SCI0 - Autosave
« Reply #19 on: July 12, 2023, 06:55:55 PM »
Yeah, it sounds like removing that button is really just papering over a latent problem.

Offline Doan Sephim

Re: [SOLVED] SCI0 - Autosave
« Reply #20 on: July 12, 2023, 07:07:00 PM »
Yeah, it sounds like removing that button is really just papering over a latent problem.
I agree, but it's the best available solution for now, and it's one that is easy to reverse if/when the time comes. It's also a very low cost to pay seeing as how I think it is very few people who even use that availability. Plus it does save ever so slightly on heap  ;D

Offline Collector

Re: [SOLVED] SCI0 - Autosave
« Reply #21 on: July 12, 2023, 07:27:28 PM »
Does the change directory button in the restore dialog cause the same crash?
KQII Remake Pic

Offline Doan Sephim

Re: [SOLVED] SCI0 - Autosave
« Reply #22 on: July 12, 2023, 07:49:51 PM »
Does the change directory button in the restore dialog cause the same crash?
Yes it does...well, it did until I removed it

Offline MusicallyInspired

Re: [SOLVED] SCI0 - Autosave
« Reply #23 on: July 13, 2023, 10:26:49 AM »
ScummVM does allow the original save GUI but it grays out the Change Directory button.

Aldo, in Ryan's case it's a SCI0 game so debug is built in.
« Last Edit: July 30, 2023, 04:13:09 PM by MusicallyInspired »
Brass Lantern Prop Competition

Offline Kawa

Re: [SOLVED] SCI0 - Autosave
« Reply #24 on: July 13, 2023, 11:26:49 AM »
Aldo, in Ryan's case it's a SCI0 game so debug is built in.
I'd say the "oops" error would be more of a "PMachine" error if it had the full debugger, with details like "heap at odd address" (oops #15) or "foo is not a selector for bar" (#5). But that's going by what SCI11 does so I wouldn't rightly know either way. Which brings me to the question, does clicking the CD button say just "oops", or does it include an error number?

Makes sense that ScummVM would disable the CD button though, considering it also lifts the 20 game limit.

Offline Collector

Re: [SOLVED] SCI0 - Autosave
« Reply #25 on: July 13, 2023, 07:18:42 PM »
Is the the 20 game limit in the interpreter or one of the system scripts? If that limit was removed it would make the need of the change directory button/function irrelevant.
KQII Remake Pic

Offline lskovlun

Re: [SOLVED] SCI0 - Autosave
« Reply #26 on: July 13, 2023, 07:45:17 PM »
The 20-save limit is not really the reason why Change Directory is disabled/unsupported. Rather, it's because ScummVM is rather restrictive on what you get to do with paths. You can read files (i.e. game assets) in directories below the game dir, but not create or change them. Many SCI games create files to save various preferences and such (and for the custom save schemes I mentioned). This was one of the big changes during the FreeSCI takeover; FreeSCI just accessed paths as usual.

And the reason for all this is platform support.

Offline Kawa

Re: [SOLVED] SCI0 - Autosave
« Reply #27 on: July 14, 2023, 06:49:36 AM »
And the reason there's a 20 game limit is, I think, because that's roughly how many copies of the heap you could fit on a single diskette, with compression, including the catalog file.

Offline Collector

Re: [SOLVED] SCI0 - Autosave
« Reply #28 on: July 14, 2023, 03:20:20 PM »
I have never thought about the why of the 20 game limit, but that would make sense. It is possible to change the save games in the middle of playing. It seems to read the catalog file every time the restore dialog is called.
KQII Remake Pic

Offline Kawa

Re: [SOLVED] SCI0 - Autosave
« Reply #29 on: July 14, 2023, 03:39:12 PM »
Well, how else are you gonna display an up-to-date list of saved games, knowing that the player can at any point in time switch to a different diskette?


SMF 2.0.19 | SMF © 2021, Simple Machines
Simple Audio Video Embedder

Page created in 0.136 seconds with 24 queries.