Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 02-20-2025, 05:04 PM   #1
kbarni
Enthusiast
kbarni doesn't litterkbarni doesn't litter
 
kbarni's Avatar
 
Posts: 45
Karma: 106
Join Date: Feb 2025
Device: Kindle PW5
Talking Gargoyle Interactive Fiction interpreter for new Kindles (PW5)

Hello,

Finally I could jailbreak my Kindle PW5 and enjoying the great Koreader!

In the meantime I realized that most software wasn't updated for newer kindles (firmware 5.16+) So I decided to take the plunge and put my experience to the use of the community and create/update some extensions.

So, without further ado, I present you :

Gargoyle Interactive Fiction interpreter!
(Latest update: March 14)

You need a jailbroken Kindle (firmware 5.16.3+).

Instructions

KUAL: Unzip the attached file to the extensions folder on the Kindle. Start KUAL and choose gargoyle.

Booklet: Now copy the gargoyle_booklet.sh file to the documents/ folder on the Kindle. A Gargoyle book appears on the home page of your Kindle!

Playing

In case the keyboard disappears after opening a game, make a two finger tap on the top right corner of the screen! It will display the keyboard again!

Here are the list of gestures:
  • One finger:
    • Tap on input line: place cursor
    • Double tap: copy word to cursor
    • Swipe up/down: scroll pages
    • Swipe left/right: move cursor
  • Two fingers: see figure below (the table corresponds to the corners of the screen)


Configuration

To change the default folders (games, saved games), edit the gargoyle.sh file.

To configure further Gargoyle (changing fonts and font size), edit the garglk.ini file in the dist folder.

Troubleshooting
  • Gargoyle isn't starting! -> Check that the firmware is newer than 5.16.2. Check that the files are correctly copied to the extensions folder.
  • HELP! The on-screen keyboard disappeared! -> Two finger tap on the top right of the screen to display the keyboard!
  • Gargoyle crashes when opening .dat files -> Rename the file to .z5 to force the glulxe interpreter instead of advsys (see this post)

Credits

This extension is based on pete330's port, with the original patches by baf.

Source code here: https://github.com/kbarni/garglk/

For further instructions read the original thread.



Your feedback is always welcome!

Please tell me also what other extensions would you like to see?
Attached Thumbnails
Click image for larger version

Name:	taps.png
Views:	846
Size:	19.1 KB
ID:	214327   Click image for larger version

Name:	screenshot_2025_03_14T22_25_58+0200.png
Views:	252
Size:	65.9 KB
ID:	214328   Click image for larger version

Name:	screenshot_2025_03_14T22_24_46+0200.png
Views:	256
Size:	115.4 KB
ID:	214329  
Attached Files
File Type: zip gargoyle.zip (5.56 MB, 191 views)

Last edited by kbarni; 04-14-2025 at 04:57 AM. Reason: File updated, few explanations added.
kbarni is offline   Reply With Quote
Old 02-20-2025, 06:52 PM   #2
kbarni
Enthusiast
kbarni doesn't litterkbarni doesn't litter
 
kbarni's Avatar
 
Posts: 45
Karma: 106
Join Date: Feb 2025
Device: Kindle PW5
BTW, source code is here --> https://github.com/kbarni/garglk/

Last edited by kbarni; 04-08-2025 at 11:02 AM.
kbarni is offline   Reply With Quote
Advert
Old 02-20-2025, 10:05 PM   #3
fenny
Junior Member
fenny began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Feb 2025
Device: Kindle PW5
Can't seem to open any inform7 (.gblorb) files.

Tried with Counterfeit Monkey and Superliminal Vagrant Twin

Worked great with a z-code file (Anchorhead).
fenny is offline   Reply With Quote
Old 02-21-2025, 01:16 AM   #4
kbarni
Enthusiast
kbarni doesn't litterkbarni doesn't litter
 
kbarni's Avatar
 
Posts: 45
Karma: 106
Join Date: Feb 2025
Device: Kindle PW5
Yes, I confirm. This looks like a problem with the Glulx interpreter. Will look into the issue this weekend.
It also seems it won't open images...
kbarni is offline   Reply With Quote
Old 02-21-2025, 05:22 PM   #5
kbarni
Enthusiast
kbarni doesn't litterkbarni doesn't litter
 
kbarni's Avatar
 
Posts: 45
Karma: 106
Join Date: Feb 2025
Device: Kindle PW5
aaaanndd....

It's working!

Please download below the latest version.
This works with every format I tested. Images and all.

@administrator: please update the file in the original post and remove the previous versions.
Attached Files
File Type: zip gargoyle_kindle_pw5_2.zip (3.88 MB, 148 views)

Last edited by kbarni; 02-21-2025 at 05:24 PM. Reason: attachment added
kbarni is offline   Reply With Quote
Advert
Old 02-21-2025, 06:26 PM   #6
Frogm4n
Evangelist
Frogm4n ought to be getting tired of karma fortunes by now.Frogm4n ought to be getting tired of karma fortunes by now.Frogm4n ought to be getting tired of karma fortunes by now.Frogm4n ought to be getting tired of karma fortunes by now.Frogm4n ought to be getting tired of karma fortunes by now.Frogm4n ought to be getting tired of karma fortunes by now.Frogm4n ought to be getting tired of karma fortunes by now.Frogm4n ought to be getting tired of karma fortunes by now.Frogm4n ought to be getting tired of karma fortunes by now.Frogm4n ought to be getting tired of karma fortunes by now.Frogm4n ought to be getting tired of karma fortunes by now.
 
Posts: 450
Karma: 3456809
Join Date: Jul 2023
Device: Scribe 2022, OA2, PRS-350
Thanks for building this! I've been interested in IF on my Scribe for a while. I'm on a Scribe 2022 running 5.17.3. I tried some .DAT format files with both your first release and this _2 release and they wouldn't work with either of them. I found an archive with .z5 files, and those do work. However it's hit or miss which one will have the keyboard open once it loads the game. Is there a gesture to show/hide the keyboard and one to quit/close Gargoyle? I've been lucky that the game screen only uses the top 2/3 of the screen, so KUAL is still visible behind it. I happen to have enough extensions in it that the bottom of the Quit button can be tapped when no keyboard is available.
Frogm4n is offline   Reply With Quote
Old 02-22-2025, 06:46 AM   #7
kbarni
Enthusiast
kbarni doesn't litterkbarni doesn't litter
 
kbarni's Avatar
 
Posts: 45
Karma: 106
Join Date: Feb 2025
Device: Kindle PW5
Thanks for the feedback !

The issue with the DAT extension is that two formats use the same extension: advsys games and old Infocom games. Gargoyle uses advsys interpreter by default when opening this format and will eventually crash.

The easiest solution seems to be to simply change the extension to .z5

Another workaround seems to be to force the interpreter for a specific game in the garglk.ini file (in /extensions/gargoyle/dist folder):
Code:
[ zork.dat ]
terp frotz
(for more details see this discussion)

Concerning the disappearing keyboard, I also observed the issue (it's even worse on leafpad, another project I'm working on). Correcting this bug is my top priority. Adding a swipe gesture to display hidden keyboard is also a good suggestion.
kbarni is offline   Reply With Quote
Old 02-22-2025, 11:18 AM   #8
Frogm4n
Evangelist
Frogm4n ought to be getting tired of karma fortunes by now.Frogm4n ought to be getting tired of karma fortunes by now.Frogm4n ought to be getting tired of karma fortunes by now.Frogm4n ought to be getting tired of karma fortunes by now.Frogm4n ought to be getting tired of karma fortunes by now.Frogm4n ought to be getting tired of karma fortunes by now.Frogm4n ought to be getting tired of karma fortunes by now.Frogm4n ought to be getting tired of karma fortunes by now.Frogm4n ought to be getting tired of karma fortunes by now.Frogm4n ought to be getting tired of karma fortunes by now.Frogm4n ought to be getting tired of karma fortunes by now.
 
Posts: 450
Karma: 3456809
Join Date: Jul 2023
Device: Scribe 2022, OA2, PRS-350
I'm glad you mentioned that about the file types. It got me to see if the gnu file command could tell me which kind the files are before I renamed them.

Code:
games$ file *.dat
Lurking.dat:  Infocom (Z-machine 3, Release 221, Serial 870918)
Nordandb.dat: Infocom (Z-machine 4, Release 19, Serial 870722)
Hitchhik.dat: Infocom (Z-machine 5, Release 31, Serial 871119)
I changed those extensions to the matching .z# based on those results. Gargoyle now opens them right away. Of course there's still the missing keyboard issue, but I haven't found a pattern to it yet. Hopefully it's not too much of a headache to find and fix.
Frogm4n is offline   Reply With Quote
Old 02-22-2025, 07:02 PM   #9
kbarni
Enthusiast
kbarni doesn't litterkbarni doesn't litter
 
kbarni's Avatar
 
Posts: 45
Karma: 106
Join Date: Feb 2025
Device: Kindle PW5
Yes, it gives headaches. It seems it occurs when opening large games; I re-display the keyboard when the game is opened. But if it's still loading, the keyboard disappears when the loading is finished.

I made a workaround. In the following version, two finger tapping on the top right corner will force the keyboard to reopen. I hope it will make Gargoyle usable until I figure out a better solution.

I also made some modifications on the font size to adapt to my Kindle.
You can modify the font size to your liking in the extensions/gargoyle/dist/garglk.ini file.
Attached Files
File Type: zip gargoyle_kindle_pw5_3.zip (3.88 MB, 155 views)
kbarni is offline   Reply With Quote
Old 02-22-2025, 09:13 PM   #10
Frogm4n
Evangelist
Frogm4n ought to be getting tired of karma fortunes by now.Frogm4n ought to be getting tired of karma fortunes by now.Frogm4n ought to be getting tired of karma fortunes by now.Frogm4n ought to be getting tired of karma fortunes by now.Frogm4n ought to be getting tired of karma fortunes by now.Frogm4n ought to be getting tired of karma fortunes by now.Frogm4n ought to be getting tired of karma fortunes by now.Frogm4n ought to be getting tired of karma fortunes by now.Frogm4n ought to be getting tired of karma fortunes by now.Frogm4n ought to be getting tired of karma fortunes by now.Frogm4n ought to be getting tired of karma fortunes by now.
 
Posts: 450
Karma: 3456809
Join Date: Jul 2023
Device: Scribe 2022, OA2, PRS-350
It works! Adding the keyboard gesture is a great help. Thanks! I'll try to give the config a look this weekend. From the repo readme it looks like there is some fancy font handling. Have you noticed any issues with modern proportional typefaces? I'm sure most of the games were designed on monospaced systems, but I'm not sure if any actually require it.
Frogm4n is offline   Reply With Quote
Old 02-23-2025, 10:24 PM   #11
Frogm4n
Evangelist
Frogm4n ought to be getting tired of karma fortunes by now.Frogm4n ought to be getting tired of karma fortunes by now.Frogm4n ought to be getting tired of karma fortunes by now.Frogm4n ought to be getting tired of karma fortunes by now.Frogm4n ought to be getting tired of karma fortunes by now.Frogm4n ought to be getting tired of karma fortunes by now.Frogm4n ought to be getting tired of karma fortunes by now.Frogm4n ought to be getting tired of karma fortunes by now.Frogm4n ought to be getting tired of karma fortunes by now.Frogm4n ought to be getting tired of karma fortunes by now.Frogm4n ought to be getting tired of karma fortunes by now.
 
Posts: 450
Karma: 3456809
Join Date: Jul 2023
Device: Scribe 2022, OA2, PRS-350
I looked at the .ini and didn't see much that I felt was worth poking at until I've used the app some. Tonight I was playing the C.I.A. Adventure (cia.z5, ported from TRS-80 to GWBASIC to Inform) when I had a crash due to an OOB read. I don't know if that was in the Z-machine or the interpreter itself, but I ended up having to hold the Scribe powerbutton for 15-ish seconds until it did a full restart and not a simple reset. FWIW, I was in the 1st floor office trying to pick up the items from the desk. I've attached a screenshot.
Attached Thumbnails
Click image for larger version

Name:	screenshot_2025_02_23T20_39_44-0600.png
Views:	154
Size:	82.1 KB
ID:	213850  
Frogm4n is offline   Reply With Quote
Old 02-24-2025, 03:20 AM   #12
kbarni
Enthusiast
kbarni doesn't litterkbarni doesn't litter
 
kbarni's Avatar
 
Posts: 45
Karma: 106
Join Date: Feb 2025
Device: Kindle PW5
Maybe you can try running the game in desktop Gargoyle to see if it gives the same error.
kbarni is offline   Reply With Quote
Old 02-24-2025, 05:28 PM   #13
poetrynati
Junior Member
poetrynati began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Feb 2025
Device: Kindle Basic 2022
So I'm very new to Kindle modding and was really interested in Gargoyle but I can't seem to get it to work. It shows in the list of KUAL applications, but when I try to launch it, nothing happens. I just get sent back to the home page. KOReader works fine however. I'm in the latest firmware, could that be the issue?
poetrynati is offline   Reply With Quote
Old 02-24-2025, 05:35 PM   #14
poetrynati
Junior Member
poetrynati began at the beginning.
 
Posts: 3
Karma: 10
Join Date: Feb 2025
Device: Kindle Basic 2022
Edit: So for some reason after I reinstalled everything it worked. Definitely me messing something up the first time. Thank you so much for this! The kindle is the perfect media for interactive fiction.
poetrynati is offline   Reply With Quote
Old 02-24-2025, 07:16 PM   #15
Frogm4n
Evangelist
Frogm4n ought to be getting tired of karma fortunes by now.Frogm4n ought to be getting tired of karma fortunes by now.Frogm4n ought to be getting tired of karma fortunes by now.Frogm4n ought to be getting tired of karma fortunes by now.Frogm4n ought to be getting tired of karma fortunes by now.Frogm4n ought to be getting tired of karma fortunes by now.Frogm4n ought to be getting tired of karma fortunes by now.Frogm4n ought to be getting tired of karma fortunes by now.Frogm4n ought to be getting tired of karma fortunes by now.Frogm4n ought to be getting tired of karma fortunes by now.Frogm4n ought to be getting tired of karma fortunes by now.
 
Posts: 450
Karma: 3456809
Join Date: Jul 2023
Device: Scribe 2022, OA2, PRS-350
Quote:
Originally Posted by kbarni View Post
Maybe you can try running the game in desktop Gargoyle to see if it gives the same error.
I haven't been able to replicate it on the Scribe, so I'll have to chalk it up to a random bug until I can.
Frogm4n is offline   Reply With Quote
Reply

Tags
game, interactive fiction, kual-extension


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Glulxe Interactive Fiction interpreter compiled for Kindle PW (via KTerm) pete330 Kindle Developer's Corner 16 12-13-2013 11:46 AM
Git Glulx Interactive Fiction interpreter compiled for Kindle PW (via KTerm) pete330 Kindle Developer's Corner 1 09-24-2013 01:06 PM
TADS Interactive Fiction interpreter compiled for Kindle PW (via KTerm) pete330 Kindle Developer's Corner 14 08-26-2013 11:22 PM
Interactive Fiction with Gargoyle for the Iliad Adam B. iRex 68 09-01-2011 04:49 AM
Gargoyle, an interactive fiction player, is ported to Open Inkpot hrashk OpenInkpot 7 06-22-2011 10:31 PM


All times are GMT -4. The time now is 09:37 PM.


MobileRead.com is a privately owned, operated and funded community.