Author Topic: Sierra Version Tool  (Read 3590 times)

0 Members and 1 Guest are viewing this topic.

Offline Collector

Sierra Version Tool
« on: February 23, 2023, 01:05:48 AM »
I have picked up development of my version tool again. I have cleaned up the code, fixed a few bugs and added new features. Give it a try and let me know if you find any bugs or have any feedback.

Edit: Download the "SierraVersionToolFull.zip" for the entire package. Download "SierraVersionToolSubFolders.zip" for just the subfolders (Tools and Docs). "SierraVersionToolEXE.zip" contains just the main EXE. You only need to download the version tool exe to update unless there is a change to the subfolders.

« Last Edit: June 03, 2023, 11:08:25 AM by Collector »


KQII Remake Pic

Offline Boohyaka

Re: Sierra Version Tool
« Reply #1 on: March 05, 2023, 04:14:49 AM »
Hello Collector!

I found this forum and your tool by pure search engine luck - exactly what I was looking for, amazing! And had to register just to thank you first of all :)

I'm an absolute Sierra fan and have a pretty deep collection of boxed games, that I'm currently in the process of fully documenting. I am also an active member of different software preservation projects and started collecting as many versions of the games as possible and have more at my disposal that I still need to go through, so your tool is an amazing help!

I would be glad to help improving your database along the way with my findings, if you're interested of course. I do have a few questions and feedback about the tool:

- What's the most convenient way for you to receive reports? In replies to this topic directly?
- Can you explain a bit more what your "database" is so I can maybe check a few things by myself first before making a report? I think I've read somewhere in another thread of yours that it's a mix between ScummVM database and other means. I am just surprised, because I already found both games that your tool recognizes but not ScummVM, and games that ScummVM recognizes but not your tool. Will give you more details once you let me know how you'd like reports. I have opened a couple of tickets with ScummVM with my findings, so hopefully I can also help them improve their DB.
- Can you describe a bit more what's the tool trying to do when it's automatically launching the included DosBox ECE? I guess it's trying to grab some info from the running game directly, is it a WIP because it seems to me not much is being written in the files it generates? I'd be interested to know more, and would suggest making this auto-launch an option?
- I would also suggest storing the files the tool generates outside of the game folder, maybe in the tool folder directly? As I am dumping my original disks I would like to keep game folders as clean as possible. Is it only version.txt and flags.txt that get written? If that's the case then it's easy enough to go and remove them after hand, so that's not exactly a big deal.

OK I think that's enough for a start, thanks again for making this and looking forward to your answer :) cheers!

Offline Collector

Re: Sierra Version Tool
« Reply #2 on: March 05, 2023, 09:39:38 PM »
The tool is still a WIP project. The 'database' is based on HWM's old version list and the ScummVM AGI and SCI hash tables that it uses to ID games being added to the SVM user's games to play. It originally was stored in two external CSV files, one for AGI and the other for SCI. I have since moved it to a comma separated string within the code, which makes it easier for me to read and update.

Like ScummVM and AGILE it compares the MD5 hash of certain files in the game's directory to that stored in this list to ID the game. If it cannot match any of the hashes, it will copy the hash to the clipboard where it can be pasted into a report with any other game information to add the unrecognized game to the database.

After matching the hash to determine the game the tool then tries to determine as much of the rest of the data by getting it directly from the game files. It extracts the version strings from the EXE and if it needs to decompress it first, it uses unlzexe to do so. It looks for certain files, like README, QA, and/or VERSION files to read and determine as much information as it can, such as game version, release date, etc. directly from the game itself.

DOSBox opening is from launching the interpreter with a '-' switch to attempt to have it write a list of recognized configuration flags and command line switches. Many versions of the SCI interpreter, especially earlier version, do not recognize this switch, so may launch the game itself or give an error of game or configuration file not found. I am in the process of adding WineVDM to query Win16 interpreters for these flags. Most will not need this information, but can be useful for anyone trying to troubleshoot or tinker with a game.

The tool will fill in any missing information from its database, but should note that is where it came from.

The original reason for including DOSBox was to preview the game to gather any missing information. Both AGI and SCI games usually have an 'About' button or menu item that may display game version, release date and credits. It now also includes AGILE, a modern AGI interpreter written in C# that three of us were working on here. It can launch AGI games, bypassing most copy protection used with AGI games, like the infamous CPC "bad sector" copy protection scheme and a few others, like the Gold Rush! documentation check.

If you encounter any unrecognized game or missing or inaccurate information, this thread would be as good of a place to report it.
KQII Remake Pic

Offline Boohyaka

Re: Sierra Version Tool
« Reply #3 on: March 06, 2023, 05:14:27 AM »
Many thanks for the insight on your tool's innards, much appreciated!

So here we go with a few SQ reports to start - these are all from my own original boxes and full releases, no collection/budget/kixs release etc...
Hope my format is clear and self-explanatory enough. Let me know if you need anything or how I can help further.



1. SQ2 v2.0C / Int. 2.917

[3.5"]
Sierra Version Tool: NOT OK
- Game Name: Space Quest II: Vohaul's Revenge
- Language: English
- Platform: MS-DOS
- Media: 2 x 3.5" diskettes
- Game version: 2.0C
- Interpreter version: 2.917
- Release date: 20-oct-1988
- Designer: Mark Crowe & Scott Murphy
- LOGDIR: B394EAAE1DFE4203378E02641178959C
- VOL.0: AB3E2F335B09306B0B9DFCD2A8ECD618
- OBJECT: 5024D50D42801AAEA7170A756218A7E6
HWM: OK
ScummVM: NOT OK (https://bugs.scummvm.org/ticket/14287)

[5.25"]
Sierra version tool: OK
HWM: OK
ScummVM: NOT OK (https://bugs.scummvm.org/ticket/14286)



2. SQ3 v1.0p / Int. 0.000.453

[3.5"]
Sierra Version Tool: NOT OK
- Game Name: Space Quest III: Pirates of Pestulon
- Language: English
- Platform: MS-DOS
- Media: 3 x 3.5" diskettes
- Game version: 1.0P
- Interpreter version: 0.000.453
- Release date: 22-Mar-1989
- Designer: Mark Crowe & Scott Murphy
- RESOURCE.MAP: 876445bb0085a62d5966f4153e2ddf52
HWM: OK
ScummVM: OK

[5.25"]
Sierra Version Tool: NOT OK
Same as above, plus:
- Media: 6 x 5.25" diskettes
- RESOURCE.MAP: 6dd8f59dd8a0c8131f34b159044e645e
HWM: OK
ScummVM: OK



3. SQ4 v1.1 / Int. 0.000.753 - 5.25" VGA English

[5.25"]
Sierra Version Tool: INCOMPLETE - See attached "SQ4_1.1_VGA_5.25.txt" file
- Media type: 6 x 5.25"
- Release date: RESOURCE.MAP 4-Mar-1991
- Interp Version is correct (0.000.753), the "0.000.200 (guess)" in Notes is wrong.
HWM: OK
ScummVM: OK



4. SQ5 v1.03 / Int. 1.001.068 - 3.5" English

[3.5"]
Sierra Version Tool: OK - See attached "SQ5_1.03_3.5.txt" file
- Minor detail: "From the Space Quest 6: The Spinal Frontier Collection" in Notes is wrong as this comes from my original game release (purple box).
HWM: OK
ScummVM: OK



5. SQ1VGA v2.0 / Int. T.A00.081 - 3.5" English

[3.5"]
Sierra Version Tool: OK - See attached "SQ1VGA_2.0_3.5.txt" file
- Minor detail: "From Space Quest Saga. Int:1.000.510 (guess)" in Notes is wrong as this comes from my original game release, and int guess is wrong too.
HWM: OK
ScummVM: OK




« Last Edit: March 06, 2023, 12:10:30 PM by Boohyaka »

Offline Collector

Re: Sierra Version Tool
« Reply #4 on: March 06, 2023, 11:15:23 AM »
The notes about version included with collections does not mean that all copies of that version came from the collection, just that it was the version selected to include in the collection. So a game scanned by the tool could have come from the original or the collection. I have changed it to now say "Used in" instead.

The int guess comes from the SVM hash tables. there are a number of interpreters that did not have a proper version number. A number of interpreters ID as "x.yyy.zzz". I suspect that this was a place holder for the actual version that was not updated to what it should have been before the build. The SVM guess is probably based on features and how it reads game data.

Games not recognized by the tool when SVM does is because they were added to SVM since I grabbed the tables. I have added both SQ3 1.0P and will look at the others when I get more time.

I'll need to come up with a better reporting system to make it easier to add unrecognized games. Most of the additions I have made have been from copies of my own where I can easily add information. I can check the interpreter version and gather as much information that I can determine to the database. For example, Sierra started to print the release date on diskette labels in lieu of the interpreter version.

To remotely add games I'll need as much info as is possible, such as not just size of media, but also the number of diskettes. The verifiable date, either digital or included physical documentation, language of localization, etc. In other words, all if the fields on the first tab of the tool.
KQII Remake Pic

Offline Boohyaka

Re: Sierra Version Tool
« Reply #5 on: March 06, 2023, 12:15:11 PM »
Makes sense about the notes. I think the "Used in" change is a great idea that avoids any confusion

I have edited my post and expanded on the SQ2 that is missing so you have the full table, could have thought about it myself. Also checked and confirmed the real SQ4 date.

Just let me know if you need anything else, that was just a first try, and we can improve on that. If you come up with something different for reports, a template or anything else that makes it easier for us, I'll be happy to adapt and make it useful.

More reports to come as I have more time to process them. Today I found my KQ4 SCI version+interpreter is NOT documented in HWM...interesting. I think that's a first :)




Offline Collector

Re: Sierra Version Tool
« Reply #6 on: March 06, 2023, 10:04:26 PM »
I may make a second form for editing gathered info and build it into a string that can be simply pasted into my games definition class. Then output it to a text file for uploading it.

Is the KQ4 version not listed here: http://sciwiki.sierrahelp.com//index.php?title=King%27s_Quest_IV:_The_Perils_of_Rosella#Versions

If so I am very interested in it.
KQII Remake Pic

Offline Boohyaka

Re: Sierra Version Tool
« Reply #7 on: March 07, 2023, 12:01:17 PM »
Yes it is there, it's King's Quest IV: The Perils of Rosella / 1.003.006 / 0.000.409. I was surprised as I've rarely found games that were not mentioned at all in HRW's list but didn't check really more than that before posting.

I believe it should be the earliest known release with the "bad" graphics?

Great idea for the reporting mechanism to streamline importing new games!

Offline Threepwang

Re: Sierra Version Tool
« Reply #8 on: March 08, 2023, 01:02:34 AM »
All ultra rare version, make me dream... I try the magic word, XYZZY

Offline Boohyaka

Re: Sierra Version Tool
« Reply #9 on: March 08, 2023, 02:31:38 AM »
Hehe Threepwang, as discussed privately my end goal and only drive is preservation. So this will all get available. I also have your elusive LSL1VGA 2.0/1.000.510 :)

I am still organizing my stuff and figuring out how I want to go forward. I may want to spin a specific "Sierra preservation project" out of my current efforts.

Offline Collector

Re: Sierra Version Tool
« Reply #10 on: March 08, 2023, 10:21:50 AM »
A while back I made a disk reader with a KryoFlux and wrote a program to interface with it to assist in cataloging and documenting the games. http://forums.sierrahelp.com/viewtopic.php?t=4213#p55211
KQII Remake Pic

Offline Boohyaka

Re: Sierra Version Tool
« Reply #11 on: March 08, 2023, 11:50:02 AM »
Wow, really cool! Here's my very own quick&dirty hack of a Shuttle XPC for very similar kryoflux purposes, that I affectionately called the PreservationStationTM  ;D

I only use DTC to generate .IMA + raw streams, would you mind expanding on the additional features of your GUI? I can guess/figure out some of it from the screenshots, but would love a more detailed explanation. As I just started going through properly capturing my collection as well, maybe it is worth trying to adhere to the standard you've created for yourself?

« Last Edit: March 08, 2023, 11:57:50 AM by Boohyaka »

Offline Collector

Re: Sierra Version Tool
« Reply #12 on: March 08, 2023, 09:20:46 PM »
At the top of the form is just for specifying the game and source. At the top of the first tabpage are fields for entering in the printed label information. The disk information group attempts to get the information from the images,  like disk label, size and format.. At the bottom the "Extract Files" will extract the contents of the generated image files for listing and probing (Retrieve Info button) the files for version information, etc.

If you click the label scan box when no image is displayed it will invoke your scanner to scan the disk. The box below will display the contents of the release's VERSION file. Changing the NumberUpDown switch the display between the different disks from the release.

The Notes tabpage is simply a big textbox to manually add any notes you want to include.

The file list tabpage displays a list of the files in that disk.

The diskette imaging tab interfaces with the KryoFlux via DTC. The GUI allows you to pass on argumets to DTC. It can also use dd.exe for disk imaging.

The CD imaging tab allows you to make an ISO of a CD-ROM disc. I could not find a freeware/oss command line BIN/CUE tool for imaging, so I added a ripper tab to rip any CDA tracks on a game's CD.

The last tab is a CUE sheet generator/editor for the ripped tracks.

I have not touched this in a few years, but if I were to pick it up again I might try to add the Version Detector to help further automate the retrieval of the release's information. I would also try again to find a tool for generating BIN/CUE images. I would also need to replace my 5.25" drive, but those have gotten rather pricey over the years.
KQII Remake Pic

Offline Collector

Re: Sierra Version Tool
« Reply #13 on: March 10, 2023, 07:01:15 PM »
Here is a test build. It has a child form for editing and adding information of unrecognized releases and produce an import file for the tool I can use to add the game to the tool. It does not yet have WineVDM incorporated to query Win16 interpreters for recognized flags as it currently has issues yet to be resolved. Other than that it is mostly complete outside of bug testing.

After loading an unknown game, click the "Submission Form" button to add/edit any missing or incorrect information. Make your addition and edits, then click the 'Write" button at the bottom of the form. This will parse your entries and write them into a file on your desktop. This file can be uploaded to this thread and will greatly simplify my process of adding these unrecognized releases to the tool.

And please, let me know of any bugs you may encounter.
« Last Edit: March 10, 2023, 07:09:05 PM by Collector »
KQII Remake Pic

Offline Boohyaka

Re: Sierra Version Tool
« Reply #14 on: March 11, 2023, 04:24:01 AM »
Great, thank you! Of course will let you know what I find and process the games I already reported so we can test the whole thing.


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

Page created in 0.026 seconds with 17 queries.