Author Topic: SCI01 Template Game  (Read 816 times)

lskovlun and 1 Guest are viewing this topic.

Offline Collector

Re: SCI01 Template Game
« Reply #30 on: January 16, 2019, 10:42:48 PM »
Now we need an SCI1 template.

I like how you have included all of the drivers and install related files that Brian deleted from his original template game.
KQII Remake Pic

Offline Kawa

Re: SCI01 Template Game
« Reply #31 on: January 17, 2019, 08:27:09 AM »
I must've tried twice but it kept breaking.

Offline OmerMor

Re: SCI01 Template Game
« Reply #32 on: January 17, 2019, 01:12:20 PM »
To make it easier for others to update, I've placed the template game at Github. I think it's mature enough for that now.

Here it is.

Moving to Github is great.
Would you like to take ownership on the SCI01-VGA template as well? I already uploaded it to Github: https://github.com/OmerMor/SCI01-VGA-Template
The only diff so far is the addition of PALETTE.999 and replacing the interpreter.

Offline EricOakford

Re: SCI01 Template Game
« Reply #33 on: January 17, 2019, 08:28:37 PM »
The VGA version is now in its own branch.

Offline OmerMor

Re: SCI01 Template Game
« Reply #34 on: January 18, 2019, 02:21:38 AM »
Thanks!

Offline EricOakford

Re: SCI01 Template Game
« Reply #35 on: January 21, 2019, 08:51:01 PM »
It looks like I discovered a bug in the template. When saving a game, then restoring it, certain things in the menu are messed up. Here are some screenshots of the glitchy behavior. Memory leak? Something wrong with SAVE.SC or restoring of a save? These only happen after restoring a game; they don't happen when starting a new game.

Also, when saving a game, then saving another with the same description, it sometimes doesn't overwrite the previous save, but saves a new file instead.

Online lskovlun

Re: SCI01 Template Game
« Reply #36 on: January 21, 2019, 11:18:47 PM »
Yes, the saving code seems to be at fault somehow. After saving the game twice in succession I have this in my template directory:
Code: [Select]
lars@starfish:~$ ls -l ~/SCI01-Template/SCI01SG*
-rw-r--r-- 1 lars lars 7771 jan 22 05:06 /home/lars/SCI01-Template/SCI01SG.000
-rw-r--r-- 1 lars lars 7884 jan 22 05:07 /home/lars/SCI01-Template/SCI01SG.213  <- BAD!
-rw-r--r-- 1 lars lars   14 jan 22 05:07 /home/lars/SCI01-Template/SCI01SG.DIR
The Sierra SCI interpreter only supports 20 games. Apparently memory corruption can occur if you try to save a game with number 213 :) I would guess the actual corruption takes place inside the SaveGame kernel call, which does little in the way of error checking (or else one of the other saving-related kernel functions). So the way forward should be to figure out where that number 213 comes from.

EDIT: Also, it may be a good idea to delete your savegame files frequently while investigating this. The mere presence of a file like the above could be a problem.
« Last Edit: January 21, 2019, 11:46:47 PM by lskovlun »

Online lskovlun

Re: SCI01 Template Game
« Reply #37 on: Yesterday at 03:22:51 AM »
Also, isn't the behavior of saving two games with the same title wrong to begin with? as though something is compiled or decompiled wrongly. I strongly recall being able to reuse the latest savegame slot simply by pressing <F5> <ENTER>. And if nobody changed it knowingly...

Offline troflip

Re: SCI01 Template Game
« Reply #38 on: Yesterday at 04:20:00 PM »
I think you can save multiple games with the same title...

From what I recall, the save dialog and the selector control do some weird things with embedding multiple strings in one string (a double-null terminated list of null-terminated strings). That might a place to look...
Check out my website: http://icefallgames.com
Groundhog Day Competition


SMF 2.0.14 | SMF © 2017, Simple Machines
Simple Audio Video Embedder

Page created in 0.159 seconds with 25 queries.