Android app: Incant! with Glulx + Z-Machine interpreter with sound & graphics, fully open source

Lack of Glulx on Android is improving every day. One thing I discovered is that nearly 3 years ago someone open source and released on GitHub a full Glulx interpreter that got almost no attention. As far as I can tell, it was never put on the Play store until now.

Anyone can join the testing program and download it from Google Play here: http://Incant-Test.WakeReality.com

The user interface is often the tricky part for parser interactive fiction. I invite Android software developers to submit Java code and examples of improvements and assist with support https://github.com/WakeRealityDev/incant - I will try to integrate improvements and publish updates on the Play store and Amazon app store. We should also be able to get this app up on /r/FDroid open source app store to support r/FOSSDroid.

As far as Glulx stories on Incant! goes: it will not run everything that say Gargoyle can run, some stories will not work, but many do run fine. It can be too slow for Counterfeit Monkey, I had a report that City of Secrets doesn't work right, and perhaps a few other stories.

The Glulx story Six by Wade Clarke really shows off the graphics and sound. and the original author of Incant uploaded a YouTube video demonstrating the speech interface: https://www.youtube.com/watch?v=D6i7c7jdV4Q -- keep in mind this video was made nearly 3 years ago as far as Android's speech capability.

One main thing to know: you have to press enter on every command. So, if Six says [press space to continue] you have to press space then enter. Again, software developer contributions are welcome to improve this sort of usability issue.

Thank you.

πŸ‘︎ 5
πŸ’¬︎
πŸ‘€︎ u/WakeReality
πŸ“…︎ Mar 26 2017
🚨︎ report
A new approach to running Glulx on JVM: ahead-of-time compilation

Background (you can skip this part if you're in a hurry)

I need to run Glulx on the JVM for a project of mine. I couldn't find a satisfactory solution, and saw that Twisty ended up going with FFI'ing into a C Glulx interpreter to get good performance. I couldn't really believe that a straight-up interpreter written in a JVM language could really be too slow ("how hard can it be?!") so I decided to learn enough Clojure to be dangerous and wrote a Glulx terp.

I got it to the point where I can use it to play and complete the game I am targeting, but it was slow. Really, really slow. Like, taking 11 seconds to pick up an item slow. This abysmal performance is likely due to the combination of three effects:

  • I am not proficient enough in Clojure to write high-performant code

  • Clojure itself has serious performance problems if used in such a dynamic way

  • The impedance mismatch between Glulx and JVM discovered by the Twisty developers is real

Interesting part begins here

I decided to scrap that project and instead try a new approach: compiling Glulx into JVM bytecode. And boy does that one seem to be working out nicely. It is so fast that I haven't even bothered implementing binarysearch properly yet, since a simple linear search is good enough.

I haven't decided yet if I will open-source the compiler, but here are some technical details about it. It is less than 1000 lines of Haskell, including the Glulx disassembler, the Glulx-to-JVM compiler, and an ahead-of-time string compression table decoder. Another ~500 lines of Kotlin code form the runtime around the generated code, including a Glk implementation that is cheaper than CheapGlk and provides just enough functionality to do both character- and line-based terminal IO (but that is already 200 lines to implement some API-mandated housekeeping). The generated JVM bytecode uses trampolines to reify the stack to be able to support saving/loading.

Do note that this is "your grandma's compiler": it is completely staged and ahead-of-time (i.e. no JIT'ing) ; supporting self-modification and assembling into RAM are out of the question. As mentioned, strings are also decoded at compile time, so setstringtbl is unimplemented (and writing to the initial string table is silently ignored); but unlike self-modification, this could be easily fixed within the current approach. It's just not something I need for my tar

... keep reading on reddit ➑

πŸ‘︎ 4
πŸ’¬︎
πŸ‘€︎ u/gergoerdi
πŸ“…︎ Feb 22 2016
🚨︎ report
Glulx-TypeScript for Inform 7 web based text adventures github.com/thiloplanz/glu…
πŸ‘︎ 7
πŸ’¬︎
πŸ‘€︎ u/chicago_dave
πŸ“…︎ Aug 15 2015
🚨︎ report
Making glulxe more pleasant to use from the terminal

If, like me, you've gotten frustrated with glulxe's lack of command line editing, history, and completion features when used from the terminal, there's an easy solution: rlwrap

With rlwrap, you could just run glulxe as, for example: rlwrap --histsize 10000 --remember -p'green' glulxe YourGame.gblorb and get yourself command-line editing, a remembered history of 10000 lines, tab completion (from any word that you've typed or that rlwrap sees come from the game), and a green prompt.

rlwrap uses the readline library for its command-line editing, and readline uses Emacs keystrokes by default, but it can be configured to use vi keystrokes if you prefer, by putting set editing-mode vi in to ~/.inputrc

For other ways in which you can change readline's behavior, see Readline Init File Syntax.

πŸ‘︎ 9
πŸ’¬︎
πŸ‘€︎ u/trimorphic
πŸ“…︎ Jan 19 2019
🚨︎ report
(Warning: Morbid dad joke) True Story -- My family were planning my mum's funeral. We always try to keep things light and try to stay positive, just as Mum would have it...

The funeral director was asking us what we think Mum should wear in her casket.

Mum always loved to wear sarongs (fabric wraps that go around the torso and drape downward a bit like a long skirt would), so my uncle suggested that she wear a sarong in there.

The funeral director looked a bit confused, as did some of our family members, to which my uncle added:

"What's sarong with that?"

I started laughing like an idiot. He was proud of it too. The funeral director was rather shocked. We assured her, and our more proper relatives, that Mum would've absolutely loved the joke (which is very true).

His delivery was perfect. I'll never forget the risk he took. We sometimes recall the moment as a way help cushion the blows of the grieving process.

--Edit-- I appreciate the condolences. I'm doing well and the worst is behind me and my family. But thanks :)

--Edit-- Massive thanks for all the awards and kind words. And the puns! Love 'em.

πŸ‘︎ 12k
πŸ’¬︎
πŸ‘€︎ u/zipflop
πŸ“…︎ May 12 2021
🚨︎ report
If my son ever came out to be trans then I wouldn’t have a son anymore

I would have a daughter

πŸ‘︎ 7k
πŸ’¬︎
πŸ‘€︎ u/Captbeauner
πŸ“…︎ May 07 2021
🚨︎ report
Ah yes, pretty hip
πŸ‘︎ 8k
πŸ’¬︎
πŸ‘€︎ u/entertainer011
πŸ“…︎ May 09 2021
🚨︎ report
Dis-a-
πŸ‘︎ 6k
πŸ’¬︎
πŸ‘€︎ u/krismoff
πŸ“…︎ May 06 2021
🚨︎ report
Don't know if this was posted here before
πŸ‘︎ 6k
πŸ’¬︎
πŸ‘€︎ u/choclite69
πŸ“…︎ May 10 2021
🚨︎ report
Bill and Melinda Gates got divorced. Melinda got the house...

But Bill kept the Windows

πŸ‘︎ 12k
πŸ’¬︎
πŸ‘€︎ u/ScubaPride
πŸ“…︎ May 05 2021
🚨︎ report
From my 5-year-old son: "Hey"

True story; it even happened last night. My 5-year-old son walks up behind me and out of the blue says, "hey."

I turn to him and say, "yeah, kiddo? What's up?"

He responds, "it's dead grass."

I'm really confused and trying to figure out what's wrong and what he wants from me. "What? There's dead grass? What's wrong with that?"

.

.

.

He says, totally straight-faced, "hay is dead grass," and runs off.

πŸ‘︎ 13k
πŸ’¬︎
πŸ“…︎ May 10 2021
🚨︎ report
If you slap Dwayne Johnsons butt

You officially hit rock bottom

πŸ‘︎ 10k
πŸ’¬︎
πŸ‘€︎ u/joeytherealking
πŸ“…︎ May 14 2021
🚨︎ report
What rhymes with orange.

No it doesn't.

πŸ‘︎ 5k
πŸ’¬︎
πŸ‘€︎ u/Remo1975
πŸ“…︎ May 08 2021
🚨︎ report
There will be point in the future when Canada will take over the world.

And then you will all be sorry.

πŸ‘︎ 9k
πŸ’¬︎
πŸ‘€︎ u/porichoygupto
πŸ“…︎ May 01 2021
🚨︎ report
My Bluetooth speaker wasn’t working so I threw it into the lake.

Now it’s syncing.

πŸ‘︎ 8k
πŸ’¬︎
πŸ‘€︎ u/jigsatics
πŸ“…︎ May 11 2021
🚨︎ report
In surgery my doctor said, "So what do we have here?" I replied that I broke my arm in 12 places."

He replied, "Well, stop going to those places then!"

πŸ‘︎ 9k
πŸ’¬︎
πŸ‘€︎ u/TheAzrael2013
πŸ“…︎ May 08 2021
🚨︎ report
To the person who stole my MS Office License.

I will find you. You have my Word.

πŸ‘︎ 8k
πŸ’¬︎
πŸ‘€︎ u/Regclusive
πŸ“…︎ May 03 2021
🚨︎ report
I told my wife I saw a deer on the way to work.

She said how do you know he was headed to work?

πŸ‘︎ 6k
πŸ’¬︎
πŸ‘€︎ u/PensionNo8124
πŸ“…︎ May 07 2021
🚨︎ report
Water pun
πŸ‘︎ 5k
πŸ’¬︎
πŸ‘€︎ u/duckykitty7
πŸ“…︎ May 14 2021
🚨︎ report
In honor of Mother’s Day, I’d just like to say,

β€œthank you for your cervix.”

πŸ‘︎ 8k
πŸ’¬︎
πŸ‘€︎ u/Rusto_Dusto
πŸ“…︎ May 09 2021
🚨︎ report
I've started a boat building business in my attic...

...sails are going through the roof.

πŸ‘︎ 7k
πŸ’¬︎
πŸ‘€︎ u/xholdsteadyx
πŸ“…︎ May 13 2021
🚨︎ report
He is right there...
πŸ‘︎ 4k
πŸ’¬︎
πŸ‘€︎ u/jointly_epic
πŸ“…︎ May 12 2021
🚨︎ report
Sponge bob | (β€’)(β€’) | , Patrick / (β€’)(β€’) \ , Squidward ( (β€’)(β€’) ) , Plankton | (β€’) | , Mr. Krabs |β€’| |β€’|

Made me smile

πŸ‘︎ 10k
πŸ’¬︎
πŸ‘€︎ u/marinmarge
πŸ“…︎ May 01 2021
🚨︎ report
I got banned from /r/DadJokes for posting, "Frosted Flakes! Cheerios! Lucky Charms! Frosted Flakes! Cheerios! Lucky Charms! Frosted Flakes! Cheerios! Lucky Charms! Frosted Flakes! Cheerios! Lucky Charms! Frosted Flakes! Cheerios! Lucky Charms! Frosted Flakes! Cheerios! Lucky Charms!"

Mods said I'm a cereal reposter...

πŸ‘︎ 7k
πŸ’¬︎
πŸ‘€︎ u/honolulu_oahu_mod
πŸ“…︎ May 07 2021
🚨︎ report
What do you call a drunk person fumbling with their car keys?

A taxi

πŸ‘︎ 6k
πŸ’¬︎
πŸ‘€︎ u/SubstantialBelly6
πŸ“…︎ May 13 2021
🚨︎ report
Initially I didn’t believe that my chiropractor was any good.

But now I stand corrected.

πŸ‘︎ 11k
πŸ’¬︎
πŸ‘€︎ u/porichoygupto
πŸ“…︎ Apr 28 2021
🚨︎ report
*Triggering britishers*
πŸ‘︎ 4k
πŸ’¬︎
πŸ‘€︎ u/potato_patataa
πŸ“…︎ May 03 2021
🚨︎ report
Guys, today was my first day in the navy and I felt so lost!

Wait. Sorry, wrong sub.

πŸ‘︎ 10k
πŸ’¬︎
πŸ‘€︎ u/Nikolai_G
πŸ“…︎ May 05 2021
🚨︎ report
And on that note
πŸ‘︎ 4k
πŸ’¬︎
πŸ‘€︎ u/sarcastic_gooner
πŸ“…︎ May 11 2021
🚨︎ report
My whole life I thought Chewbacca was an Ewok....

Wookie mistake.

πŸ‘︎ 7k
πŸ’¬︎
πŸ‘€︎ u/VERBERD
πŸ“…︎ May 12 2021
🚨︎ report
I'm so proud. My 12-year old told this joke during dinner: What degree does Dr. Pepper have?

Theoretical Fizz-ics

πŸ‘︎ 11k
πŸ’¬︎
πŸ‘€︎ u/professorf
πŸ“…︎ Apr 30 2021
🚨︎ report
Knight Knight
πŸ‘︎ 4k
πŸ’¬︎
πŸ‘€︎ u/shevelled
πŸ“…︎ May 09 2021
🚨︎ report
originally posted on r/tumblr by u/MaetelofLaMetal
πŸ‘︎ 5k
πŸ’¬︎
πŸ“…︎ Apr 26 2021
🚨︎ report
Why is Dark spelled with a β€˜K’ and not a β€˜C’?

Because you can’t β€˜C’ in the dark

πŸ‘︎ 13k
πŸ’¬︎
πŸ‘€︎ u/streety22
πŸ“…︎ Apr 22 2021
🚨︎ report
Glulxe for Android

After spending a whole day searching for a way to run kerkerkruip on my phone, with no success, I stumbled upon this solution, so I thought I would share.

  1. Install termux from play store.

  2. Open termux.

  3. To install glulxe, run the command "apt-get install glulxe".

  4. To download the glorb file, run the command "wget <URL of gblorb file>".

  5. To run glulxe, run the command "glulxe <filename of gblorb file>

πŸ‘︎ 13
πŸ’¬︎
πŸ‘€︎ u/Meowthschwitz
πŸ“…︎ Dec 16 2016
🚨︎ report
It is
πŸ‘︎ 4k
πŸ’¬︎
πŸ‘€︎ u/egyptiancowboy05
πŸ“…︎ Apr 30 2021
🚨︎ report
My Dad just sent me this
πŸ‘︎ 5k
πŸ’¬︎
πŸ‘€︎ u/metroracerUK
πŸ“…︎ Apr 28 2021
🚨︎ report
He gave the toy horses a home in his ___
πŸ‘︎ 3k
πŸ’¬︎
πŸ‘€︎ u/7keletor
πŸ“…︎ May 07 2021
🚨︎ report
My wife said, β€œI don’t really understand the science behind human cloning.”

I said, β€œThat makes two of us.”

πŸ‘︎ 7k
πŸ’¬︎
πŸ‘€︎ u/porichoygupto
πŸ“…︎ May 09 2021
🚨︎ report
I caught my son chewing on an electrical cord...

so I had to ground him.

He's doing better currently.

And conducting himself properly.

πŸ‘︎ 9k
πŸ’¬︎
πŸ‘€︎ u/XIIXOO
πŸ“…︎ Apr 19 2021
🚨︎ report
This one cracked me
πŸ‘︎ 4k
πŸ’¬︎
πŸ‘€︎ u/WetSoggyTaco
πŸ“…︎ May 13 2021
🚨︎ report
There were 30 cows and 28 chicken. How many didn't?
πŸ‘︎ 9k
πŸ’¬︎
πŸ‘€︎ u/Rozen007
πŸ“…︎ Apr 19 2021
🚨︎ report
What has two butts and kills people?

An assassin

πŸ‘︎ 4k
πŸ’¬︎
πŸ‘€︎ u/buttered_t0asties
πŸ“…︎ May 13 2021
🚨︎ report
Found one of our own
πŸ‘︎ 3k
πŸ’¬︎
πŸ‘€︎ u/TheIronPumpkin
πŸ“…︎ May 07 2021
🚨︎ report
Music puns sometimes hit the high notes
πŸ‘︎ 4k
πŸ’¬︎
πŸ‘€︎ u/589ca35e1590b
πŸ“…︎ May 07 2021
🚨︎ report
My wife: You need to do more chores around the house.

Me: Can we change the subject?

My wife: Okay. More chores around the house need to be done by you.

πŸ‘︎ 10k
πŸ’¬︎
πŸ‘€︎ u/crazyfortaco
πŸ“…︎ May 06 2021
🚨︎ report
Best glulx interpreter for android
πŸ‘︎ 4
πŸ’¬︎
πŸ‘€︎ u/lnkarma
πŸ“…︎ Jul 06 2015
🚨︎ report

Please note that this site uses cookies to personalise content and adverts, to provide social media features, and to analyse web traffic. Click here for more information.