How to run Glk API games

General chat related to ScummVM, adventure gaming, and so on.

Moderator: ScummVM Team

Post Reply
AmintaScu
Posts: 3
Joined: Tue Mar 17, 2020 4:37 pm

How to run Glk API games

Post by AmintaScu »

Hi all!

I know that daily snapshots support Glk API that let to run Frotz and other sub-engine games (https://wiki.scummvm.org/index.php?title=Glk)

But in which format I have to get them?

Many thanks,

Davide
User avatar
Raziel
ScummVM Porter
Posts: 1538
Joined: Tue Oct 25, 2005 8:27 am
Location: a dying planet
Contact:

Re: How to run Glk API games

Post by Raziel »

According to the source code Frotz knows these extensions: ".z1", ".z2", ".z3", ".z4", ".z5", ".z6", ".z7", ".z8", ".dat", ".zip"
AmintaScu
Posts: 3
Joined: Tue Mar 17, 2020 4:37 pm

Re: How to run Glk API games

Post by AmintaScu »

Thanks! And what about the other sub engines?
AmintaScu
Posts: 3
Joined: Tue Mar 17, 2020 4:37 pm

Re: How to run Glk API games

Post by AmintaScu »

Also, I've tried the latest dev build with Scott Adams and Frotz games but it doesn't recognize any game on MacOS Version (in Windows version it workd)!
User avatar
Raziel
ScummVM Porter
Posts: 1538
Joined: Tue Oct 25, 2005 8:27 am
Location: a dying planet
Contact:

Re: How to run Glk API games

Post by Raziel »

Glk is an engne to still undergo soem changes, since it's not even "officially" ready for testing yet.
I don't know what the build rules for buildbot are, but MacOS might be excluded from building Glk yet.

adrift games will use .taf extension f.e., but you can check yourself, just browse here and check "detection.cpp" in the different engine variants.
enderandrew
Posts: 18
Joined: Mon Feb 19, 2018 6:43 am

Re: How to run Glk API games

Post by enderandrew »

With the latest snapshot, I just tried adding all the classic Infocom games (39 of them). The only ones that weren't recognized and added were

Fooblitzky, Plundered Hearts, Starcross, Suspect, Suspended, Zork 1 and Milliways. Fooblitzky I couldn't add at all. Plundered Hearts, Starcross, Suspect, Suspended and Zork 1 I was able to add as a generic ZCode game. Milliways was unreleased, so I'm not shocked that wasn't recognized. But it was on the famous Infocom Hard Drive, along with the Zork source code, etc.

Of the ones that I added as generic zcode games, all of them seem to start just fine except for Milliways. And for Milliways there are two versions of the unreleased game. milliways_release184.z6 doesn't work but milliways_release15.z4 does. I'm not sure an unreleased game is a high priority, but I tested it all the same.

https://waxy.org/2008/04/milliways_info ... the_galax/

The game in 'Plundered Hearts\' seems to be an unknown game variant.
Matched game IDs for the glk engine: zcode
{"plundered_hearts.z5", 0, "f557b52840f1ec3ad68ef941dc7dbcff", 128962},

The game in 'Starcross\' seems to be an unknown game variant.
Matched game IDs for the glk engine: zcode
{"starcross.z5", 0, "57b93a825b3011c8b4fbef5337c06fbc", 83792},

The game in 'Suspect\' seems to be an unknown game variant.
Matched game IDs for the glk engine: zcode
{"suspect.z5", 0, "94df6e910558b3c514e42f9a8d4075dd", 118692},

The game in 'Suspended\' seems to be an unknown game variant.
Matched game IDs for the glk engine: zcode
{"suspended.z5", 0, "64855adb37a3af5ce4d1fe80dfb73281", 105418},

The game in 'Zork 1 The Great Underground Empire\' seems to be an unknown game variant.
Matched game IDs for the glk engine: zcode
{"zork_1.z5", 0, "b1fa36d05b2a7379d83d843118bd087c", 131072},

The game in 'Milliways\' seems to be an unknown game variant.
Matched game IDs for the glk engine: zcode
{"milliways_release184.z6", 0, "7726dafb083dd86ee6fa7dfeec6e1ba6", 79152},
User avatar
dreammaster
ScummVM Developer
Posts: 559
Joined: Fri Nov 04, 2005 2:16 am
Location: San Jose, California, USA

Re: How to run Glk API games

Post by dreammaster »

Thanks for those. I'll be sure to add them in. Though it would be helpful for posterity if you could also provide me each game's release version (date string) as well, so I can include it like other detection entries have.
enderandrew
Posts: 18
Joined: Mon Feb 19, 2018 6:43 am

Re: How to run Glk API games

Post by enderandrew »

Where do I get that string?
User avatar
dreammaster
ScummVM Developer
Posts: 559
Joined: Fri Nov 04, 2005 2:16 am
Location: San Jose, California, USA

Re: How to run Glk API games

Post by dreammaster »

enderandrew wrote: Wed Apr 01, 2020 6:16 pm Where do I get that string?
Most of the Infocom games explicitly tell you as part of the starting text, something like "Release 3 / 871119". Alternatively, if you're are at all familiar with hex editing, the date is encoded as 6 characters from offset 18 decimal in the gamefiles.
enderandrew
Posts: 18
Joined: Mon Feb 19, 2018 6:43 am

Re: How to run Glk API games

Post by enderandrew »

Plundered Hearts - Release 26 / Serial number ??????
Starcross - Release 17 / Serial number
Suspect - Release number 14 / Serial number 000000
Suspended - Release 5 / Serial number ÂÅøÕîø
Zork 1 - Release 15 / Serial number ââââââ
Milliways - Release Number 184 / Serial Number 890412
enderandrew
Posts: 18
Joined: Mon Feb 19, 2018 6:43 am

Re: How to run Glk API games

Post by enderandrew »

You may find this helpful:

http://www.russotto.net/zplet/ivl.html
User avatar
dreammaster
ScummVM Developer
Posts: 559
Joined: Fri Nov 04, 2005 2:16 am
Location: San Jose, California, USA

Re: How to run Glk API games

Post by dreammaster »

enderandrew wrote: Thu Apr 02, 2020 6:40 am You may find this helpful:
Thanks. I've added detection entries for them all. It should be available in the next daily build.
Post Reply