Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - EricOakford

Pages: [1] 2 3 ... 7
SCI Syntax Help / Re: SCI Audio - how to set up a music on/off toggle
« on: February 18, 2020, 09:37:42 AM »
I'm a little confused still. In the properties I see the following (In Studio Script, which I'm using for BA 1)

Have you considered converting to Sierra script? It would be a good excuse to familiarize yourself with it.
I'm using Sierra Script for the follow-up, but this one was written in the old code and I don't want to go through the process of transcribing it again and then dealing with the compilation errors.

Leave that to me. I've been working to convert the game to Sierra Script. I've already replaced the system scripts with those from my newer SCI0 template, and have moved the sciAudio, InitRooms, and Dying scripts into the 800 range (since they're not actually system scripts). Things like the custom window will have to be re-implemented into specific instances.

SCI Development Tools / Re: SCI01 Template Game
« on: January 27, 2020, 08:56:48 PM »
A major update!
Going back to the decompiled SCI0 system scripts and comparing them with their SCI01 counterparts using ExamDiff, I have managed to fill in the blanks for nearly every system script. The temp variables and parameters have been identified.
I'd gotten this idea from my recent decompilations of the LSL1, LSL5, SQ1VGA, and PQ3 demos, where I took the extra step in painstakingly identifying all the params and temps I could in their system scripts.
Also, while I'd done this earlier, I'd also created a subclass of InvItem in the main script. This subclass will allow item descriptions to be placed in a Text resource, saving on heap space and simplifying potential translations.

And there you go, the definitive template for SCI parser games is just about complete!

To answer Doan Sephim's question: The reason you see duplicate resources may be because I set the template to be managed as patch files. This is for source control purposes. The interpreter prioritizes patch files over the contents of RESOURCE.000. I have been using Kawa's SCICompanion build.

SCI Development Tools / Re: Decompilation Archive
« on: January 26, 2020, 02:19:23 PM »
And here is the decompilation for LSL1VGA, version 2.1.

So far, there are no known issues, and I've fixed a few script errors I found while playing.
For example, I realized that with the DSelector class, I mistakenly identified the type as "dSelected" instead of the correct "dSelector". This made the list of save games not appear in the save/restore dialog. Obviously, I didn't catch that with the demos.

Next up, SQ1VGA!

SCI Development Tools / Re: Decompilation Archive
« on: January 21, 2020, 08:22:04 PM »
Whew! Here are new decompilations of the LSL1, LSL5, SQ1, and PQ3 demos.
Here, I went through the system scripts, and identified all of the temp variables and parameters I could. The demos all play to completion with no known issues.

As for the full LSL1VGA, I've gone through that game's system scripts as well. I should have a ready decompilation of that soon.

SCI Development Tools / Re: Decompilation Archive
« on: January 05, 2020, 03:33:14 PM »
And here are decompiles of SQ4 CD, Ms. Astro Chicken, and the LSL1 and LSL5 demos!

The LSL1 demo has wide exports, but SCICompanion didn't realize this at first. That confused me when I found that all the procedures were even-numbered. Once I checked the "Wide exports" option in the version detector, the scripts decompile fine.
The demos and Ms. Astro Chicken play through to completion, and SQ4 CD seems to work okay, with a few bugs related to the fact that the game still uses some of the older dialog classes and procedures (moved into their own scripts)

So, what's next? I guess I'll work on LSL1VGA!

SCI Development Tools / Re: Decompilation Archive
« on: December 18, 2019, 08:35:08 PM »
Here are new decompiles of the QFG2 demo and full game (1.105).

The demo plays to completion without any known issues.
The full game, however, is a different story. Script 2 causes the game to glitch up when restoring a save, and 702 (the alley index) freezes the game when entering the alleyways.
It's not possible to visit the Moneychanger without debug (decompilation error in alley 151?), and the prompt to input gold to exchange doesn't appear (this seems to be an issue with INTRFACE.SC)

On the plus side, I did manage to recreate a few disassembly blocks in script code, such as BlueFrogTP, script 810's chAlloc cue: method, and Talker's messages: method. Much of the defines in GAME.SH have been placed into enums, and more global variables have been identified.

And since it's a week away from Christmas, here's a new decompile of Seasoned Professional! It's been tested to compietion.
Now there are no disassembly blocks in this or the QFG2 demo. The reason some functions would not decompile is because they relied on scripts that the game doesn't have. With those scripts spliced in, those functions decompile as intended.

Time for me to move on to SQ4...

SCI Development Tools / Re: Decompilation Archive
« on: December 08, 2019, 07:27:54 PM »
Here are new decompiles of KQ1SCI (demo and full), as well as the demos for HQ1 and Iceman.

The demos all play to completion with no known issues.
HQ1 and Iceman demos use interpreter 0.000.685, while KQ1 (both demo and full) uses S.old.010.

KQ1SCI has an issue where the game sometimes hangs at the rooms where you can plant the beanstalk.
And sometimes, the giant never falls asleep when he gets tired.
These seem to happen intermittently, and I've managed to play through the game to completion with full points.
And one more thing - I manually recreated the death handler.

SCI Development Tools / Re: Decompilation Archive
« on: December 03, 2019, 12:32:39 PM »
Game and interpreter versions?

Ah, yes, I forgot to mention that.

LSL3 is version 1.021, interpreter 0.000.572, and SQ3 is version 1.018, interpreter 0.000.685. These are the versions used in compilations and digital distribution.

LSL2 Amiga is version 1.003, interpreter x.yyy.zzz.

SCI Development Tools / Re: Decompilation Archive
« on: December 02, 2019, 09:22:10 PM »
Finally, here is LSL3. The game plays fine so far, and I've made sure to fix the speed bugs. I also managed to recreate the death handler.

Here's also a decompile of the Amiga version of LSL2! Its scripts are newer, and I recreated the death handler for that too. Now there is no assembly code at all in this one. Perhaps it can be used to make an ultimate patch for the game, similar to the Amiga sounds update for KQ4.

Finally, here is updated source for SQ3. The game's doit: has been fully recreated in script code thanks to researching Astro Chicken's doit:.

SCI Development Tools / Re: Decompilation Archive
« on: November 20, 2019, 12:19:06 PM »
Here's a little something random - decompiles of the KQ6 demo and the 1992 Christmas Card!

At this point, there's a new issue I'd come across during my digital archeology: missing system scripts.
For example, in the Christmas Card, the main (and only) game-specific script refers to vital scripts like INTRFACE, PRINT, and DIALOG. Without these scripts, the game's handleEvent: method can't decompile!
Fortunately, with a little work of transplanting the missing decompiled scripts and 997.voc from the EcoQuest 2 demo, that problem is solved. Now both fully compile and play to completion.

One thing I've noticed about the demos is that some of them are practically just stripped-down versions of the full games. As a result, there tend to be unused scripts remaining in the resource files, even those that a demo wouldn't logically use at all. This may just be to ensure that no errors occur from omitted scripts.

Next is LSL3 for sure!

Another note: I think it'd be a good idea to start the whole minigame compilation idea in a new topic.

SCI Development Tools / Re: Decompilation Archive
« on: November 16, 2019, 11:39:17 AM »
Thanks Eric!

Here's an idea for a fun project which could be based on your decompilations:
Make a mini-games collection with all the little games that weren't packaged as Nick's Picks, e.g. Dag-Nab-It and Mage's Maze from QfG1, Iceman's Dice game, etc.

That sounds like a good idea. Of course, QFG1's minigames take Ego's stats into account, so those may be hard to implement.
Things like Iceman's Dice game, Astro Chicken, and LSL3's river ride, on the other hand, would be trivial to put into one package. And no saving or restoring allowed - that takes away the challenge!

SCI Development Tools / Re: Decompilation Archive
« on: November 15, 2019, 08:28:55 PM »
Here are decompiles of SQ3 -- full game (version 1.018, interpreter 0.000.685), demo, and Astro Chicken. There's also a decompile of Fun Seeker's Guide.

SQ3 plays through with no known issues... until you get to ScumSoft HQ. Attempting to get into Elmo's office crashes the game with an "Out of Heap space" error. The demo, Astro Chicken, and Fun Seeker's Guide have been fully tested.

I guess next up is LSL3!

SCI Development Tools / Re: Decompilation Archive
« on: November 11, 2019, 08:39:35 PM »
And here are decompilations of PQ2, both the full game (1.002.011) and demo!

The demo plays through to completion.

In the full game, I've gotten up to the Cotton Cove, but haven't gotten farther than that. Other than a "Memory Fragmented" warning at the beginning, the game seems to play okay so far, and debugging has been enabled.

Next up is SQ3...

SCI Syntax Help / Re: Police Quest 1 VGA
« on: November 07, 2019, 11:13:43 AM »
I am taking the liberty to reapproach you regarding this topic (topic above, Conquest of the longbow).
It is possible to import ".txt" files that have numbered over 999?
Or It is not possible ?
I thank you for answer and help.

Text resources actually have the .TEX extension. And yes, it should be possible, as the game already has text resources numbered in the 1000 rang. However, they apparently need to be called through the "GetFarText" kernel function.

SCI Development Tools / Re: Decompilation Archive
« on: October 27, 2019, 01:35:09 PM »
And now here are decompiles of the LSL2 demo and full game (version 1.002.000, interpreter 0.000.409)

The demo plays through to completion.

The full game starts up and plays normally. Unlike KQ4, LSL2 uses heap much more efficiently. There have been cases of views vanishing and other graphical glitches, which appear to be priority bugs. This should not affect gameplay.

Next up, PQ2!

I would have done the 1988 Christmas Card, but that game was never upgraded to the newer SCI0 format. SCICompanion does not properly support the older SCI0 format, so you get things like "BAD_SELECTOR" errors in decompiled scripts (this seems to be due to the two-bit selectors, whereas later SCI games used one-bit selectors). I already posted this issue here.

Pages: [1] 2 3 ... 7

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

Page created in 0.134 seconds with 21 queries.