Author Topic: nFrotz—Endless adventure games on the TI-Nspire!  (Read 30815 times)

0 Members and 1 Guest are viewing this topic.

Offline hoffa

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 304
  • Rating: +131/-13
    • View Profile
nFrotz—Endless adventure games on the TI-Nspire!
« on: June 28, 2012, 09:26:33 am »


I decided to port the Frotz Z-machine interpreter to the TI-Nspire, and here we are!

Basically it allows you to play various text adventure games, even some best-selling extremely popular game from the old times. Here's a short excerpt from Frotz's how-to-play guide, you'll quickly understand if you've never played text adventures:

Quote
With Interactive Fiction, you type your commands in plain English each
time you see the prompt which looks like this:

>

[...]

There are many differnet kinds of sentences used in interactive fiction.
Here are some examples:

> walk to the north
> west
> ne
> down
> take the birdcage
> read about dimwit flathead
> look up megaboz in the encyclopedia
> lie down in the pink sofa
> examine the shiny coin
> put the rusty key in the cardboard box
> show my bow tie to the bouncer
> hit the crawling crab with the giant nutcracker
> ask the cowardly king about the crown jewels

You can use multiple objects with certain verbs if you separate them by
the word "and" or by a comma. Here are some examples:

> take the book and the frog
> drop the jar of peanut butter, the spoon, and the lemming food
> put the egg and the pencil in the cabinet

(More information here and here.)

Here for example I'm playing the still popular Zork of the 80's:



Or The Hitchhiker's Guide to the Galaxy:



This is still an early version of nFrotz, so some games do not work at all. But I've included three games that have at some point been very popular (the two mentioned above and The Lurking Horror), they should work fairly well; have had zero issues myself.

Download the latest nFrotz (attached), copy it on your calculator and launch it. It should ask you to install nFrotz (all it does is it adds a file association rule to your ndless.cfg.tns file), once done you should be able to play any games with a .z extension. You need a recent version of Ndless that supports file associations! (couldn't be arsed to write a file browser, it's more elegant this way)

Here are the download links for the games I talked about that you can try out yourself:

Aaand some on-calc footage:

Oh yes, to save your progress, type "save" and confirm. To restore your progress, type "restore".

Latest source code can be viewed on github.
« Last Edit: December 04, 2024, 07:54:26 am by hoffa »

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Oh that's nice to hear. I hope it comes to fruition. I'm not a fan of text-based games, but I think a bunch of people here are fans of Zork, as they told me I should play it before.

Offline Juju

  • Incredibly sexy mare
  • Coder Of Tomorrow
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 5730
  • Rating: +500/-19
  • Weird programmer
    • View Profile
    • juju2143's shed
Yay Zork :D

Remember the day the walrus started to fly...

I finally cleared my sig after 4 years you're happy now?
THEGAME
This signature is ridiculously large you've been warned.

The cute mare that used to be in my avatar is Yuki Kagayaki, you can follow her on Facebook and Tumblr.

Offline Scipi

  • Omni Kitten Meow~ =^ω^=
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1547
  • Rating: +192/-3
  • Meow :3
    • View Profile
    • ScipiSoftware
lolol. I remember when some members were looking into porting Zork to the Nspire via Lua. I looked into it, and utterly failed :P

Btw, if that game cover was honest, it should be this:



lolol, it reminded me of this article: http://www.cracked.com/photoplasty_398_if-video-game-covers-were-honest/

Imma Cat! =^_^= :3 (It's an emoticon now!)
Spoiler For Things I find interesting:
Spoiler For AI Programming:
Spoiler For Shameless advertising:

Spoiler For OldSig:





Spoiler For IMPORTANT NEWS!:
Late last night, Quebec was invaded by a group calling themselves, "Omnimaga". Not much is known about these mysterious people except that they all carried calculators of some kind and they all seemed to converge on one house in particular. Experts estimate that the combined power of their fabled calculators is greater than all the worlds super computers put together. The group seems to be holding out in the home of a certain DJ_O, who the Omnimagians claim to be their founder. Such power has put the world at a standstill with everyone waiting to see what the Omnimagians will do...

Wait... This just in, the Omnimagians have sent the UN a list of demands that must be met or else the world will be "submitted to the wrath of Netham45's Lobster Army". Such demands include >9001 crates of peanuts, sacrificial blue lobsters, and a wide assortment of cherry flavored items. With such computing power stored in the hands of such people, we can only hope these demands are met.

In the wake of these events, we can only ask, Why? Why do these people make these demands, what caused them to gather, and what are their future plans...

Offline TheNlightenedOne

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 427
  • Rating: +16/-1
    • View Profile
I actually had the idea to make a Z-Machine interpreter for the Nspire, that could load .z* files too... I was going to do it after the contest. Looks nice!
"Eris" (Ndless 3.1)
"Keto" (Ndless 3.1)
"Luna" (AMS 3.10, HW4)
"Aurora" (2.55MP)

Offline hoffa

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 304
  • Rating: +131/-13
    • View Profile
Re: nFrotz 0.1—Endless adventure games on the TI-Nspire!
« Reply #5 on: June 29, 2012, 05:44:17 pm »
Voila, just released a first version of nFrotz.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: nFrotz 0.1—Endless adventure games on the TI-Nspire!
« Reply #6 on: June 29, 2012, 05:58:50 pm »
Is it possible to switch the text to black background or even change the color of both?

Offline hoffa

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 304
  • Rating: +131/-13
    • View Profile
Re: nFrotz 0.1—Endless adventure games on the TI-Nspire!
« Reply #7 on: June 29, 2012, 06:01:53 pm »
Is it possible to switch the text to black background or even change the color of both?
Shit, forgot to implement the invert colors feature. D: (I had white-on-black at first, but I found it's more pleasant to read when it's the other way around.)
nspireio doesn't support colors, but the code isn't that massive so I could very well add true support CX (only shades of gray currently; errors and non-game messages are printed in gray)
« Last Edit: June 29, 2012, 06:02:40 pm by hoffa »

Offline TheNlightenedOne

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 427
  • Rating: +16/-1
    • View Profile
Re: nFrotz—Endless adventure games on the TI-Nspire!
« Reply #8 on: July 10, 2012, 12:44:25 pm »
I have 2 questions about nFrotz:
1. There's no CX support, since it uses nspireio, right?
2. Can it load .z3, .z5, or .z8 files?
"Eris" (Ndless 3.1)
"Keto" (Ndless 3.1)
"Luna" (AMS 3.10, HW4)
"Aurora" (2.55MP)

Offline ExtendeD

  • CoT Emeritus
  • LV8 Addict (Next: 1000)
  • *
  • Posts: 825
  • Rating: +167/-2
    • View Profile
Re: nFrotz—Endless adventure games on the TI-Nspire!
« Reply #9 on: July 10, 2012, 03:32:16 pm »
For 1.: I don't know for nFrotz, but nspireio does work on CX, but in grayscale. Just make sure to add the following statements at the beginning of your program: "clrscr(); lcd_ingray();"
Ndless.me with the finest TI-Nspire programs

Offline mdr1

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 303
  • Rating: +21/-2
    • View Profile
Re: nFrotz—Endless adventure games on the TI-Nspire!
« Reply #10 on: October 30, 2012, 05:04:11 pm »
2. Can it load .z3, .z5, or .z8 files?
+1
In fact, I tried to put an adventure created with inform but it doesn't work.



Offline joeym

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 19
  • Rating: +0/-0
    • View Profile
Re: nFrotz—Endless adventure games on the TI-Nspire!
« Reply #11 on: May 08, 2013, 01:19:46 am »
I love these text adventure games. Thank you for taking the time to do this.

Do you have know of any other games that can be played aside from the three posted above? What is needed to convert games to be able to be ran on the Nspire?
« Last Edit: May 08, 2013, 01:22:16 am by joeym »

Offline Lionel Debroux

  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2135
  • Rating: +290/-45
    • View Profile
    • TI-Chess Team
Re: nFrotz—Endless adventure games on the TI-Nspire!
« Reply #12 on: May 08, 2013, 02:56:25 am »
hoffa has been in a place without Internet connectivity for a while, and I don't remember how long it's supposed to last, so you're unlikely to get a reply from him soon...

BTW, I know of a Joey whose family name starts with M and whose interests include text adventure games... is that you ? ;)
In which case, FWIW, porting the TI-68k/AMS "advint" to the Nspire series would require porting all platform-, OS-specific code to the Nspire's OS / nSDL / some toolkit written on top of nSDL.
Member of the TI-Chess Team.
Co-maintainer of GCC4TI (GCC4TI online documentation), TILP and TIEmu.
Co-admin of TI-Planet.

Offline Stefan Bauwens

  • Creator of Myst 89 - סטיבן
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1799
  • Rating: +162/-24
  • 68k programmer
    • View Profile
    • Portfolio
Re: nFrotz—Endless adventure games on the TI-Nspire!
« Reply #13 on: May 08, 2013, 02:57:36 am »
Cool! Robyn Miller(co-creator of Myst) recently said that Zork was actually the only game he played before making Myst. Must be pretty good for non-gamers then? (Since that is what Myst is, according to him). :)



Very proud Ticalc.org POTY winner (2011 68k) with Myst 89!
Very proud TI-Planet.org DBZ winner(2013)

Interview with me

Offline joeym

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 19
  • Rating: +0/-0
    • View Profile
Re: nFrotz—Endless adventure games on the TI-Nspire!
« Reply #14 on: May 08, 2013, 12:20:54 pm »
Hi Lionel,

Yeah this is me :) I forgot to mention that I recently got a TI-nSpire. So I have been looking into what can be done with it.

I was very happy to see this ported to the nSpire.