Author Topic: Frotz  (Read 6843 times)

JimR

  • Newbie
  • *
  • Posts: 16
    • View Profile
    • http://pixelstained.blogspot.com
Frotz
« on: August 08, 2008, 10:23:06 pm »
Hi there.
I'm trying to get Frotz running on my C3200 (Running SharpROM w/ English conversion), and I'm having some trouble, basically because I'm not sure of the file-tree on Linux/the Zaurus.
I can run frotz through the terminal, but I don't know how to load any games because I don't know where the program is looking.  Basically, how can I tell the terminal to load from the SD Card?  Or, conversely, where should I drop the game file so that Frotz can find it?

Also, using QKonsole, can I rotate orientation?  The rotate option is not available under the menu, and any keyboard commands are translated into input.  SHould I use another terminal program?
Thanks!
Jim

tux

  • Sr. Member
  • ****
  • Posts: 438
    • View Profile
    • http://
Frotz
« Reply #1 on: August 09, 2008, 09:19:07 am »
Quote from: JimR
Hi there.
I'm trying to get Frotz running on my C3200 (Running SharpROM w/ English conversion), and I'm having some trouble, basically because I'm not sure of the file-tree on Linux/the Zaurus.
I can run frotz through the terminal, but I don't know how to load any games because I don't know where the program is looking.  Basically, how can I tell the terminal to load from the SD Card?  Or, conversely, where should I drop the game file so that Frotz can find it?

Also, using QKonsole, can I rotate orientation?  The rotate option is not available under the menu, and any keyboard commands are translated into input.  SHould I use another terminal program?
Thanks!
Jim
 I've just checked the syntax on my desktop to be sure. So all the paths refer to my directory structure in /home/stan

There are two ways to do this. Both involve using the console.

1: cd into your gamefile directory. E.G. cd /zorks/data then frotz zork1.dat or zork2.dat as applicable. The adventure loads and runs. You might prefer to only cd to the zorks directory and specify the ./data/zork1.dat file.

2: Specify the full file path E.G. frotz ./zorks/data/zork1.dat.

Of course you'll need to use the actual position of your adventure files in your path or in the cd instructions that you use.

I prefer the second method because it minimises directory changes and makes it easy to use the history commands to play the games.

 Hope that helps.

I've got hold of the Scott Adams games as well as most of the Zork genre. The Adams' ones can be freely downloaded and i believe that there are legitimate sources for some of the Zork one.

As regards the rotation from within the console:I've always rotated the screen beforehand and then run the console. So I have no direct help for you: I think searching the forums should find you some hints on what you want to do. Good luck.
« Last Edit: August 09, 2008, 09:21:02 am by tux »
3200 aka BigZ, swapped in 16GB Sandisk Extreme III CF, Cacko 1.23 full,  new SDHC >2GB module,
SL860 Cacko 1.23 full, new SDHC >2GB module,
6000L SharpRom 1.12 + Tetsu kernel,
5500 TKC home on SD x 2 (with SD>1GB),
Archos PMA30 with OPEN PMA (Giraffe),
Nokia 770 (Hackers Edition)
Nokia 800 (ITOS 2008), 4GB SDHC x 2
Asus eeepc 4G (black), with 1GB ram, dual boot Xandros on SSD with Ubuntu Lucid Lynx on 16 GB SDHC,
Tmobile G1 Android (black), with Cyanogen's  Firerat's MTD script and Amon Ra Recovery 1.7.0
Tmobile HTC Wildfire.. rooted and on Cyanogen's 7.3 nightly Rom
Kopi/Kapi on everything bar the phone and the Nokias, there is a beta for the nokias...

All the above are retired

Samsung Note 8 N5110
Samsung Note N7105
FBreader on the lot!

JimR

  • Newbie
  • *
  • Posts: 16
    • View Profile
    • http://pixelstained.blogspot.com
Frotz
« Reply #2 on: August 10, 2008, 06:45:34 am »
Thanks Tux, you really helped me out.
Got it all figured out now!
Next up, ScummVM!
Jim
Quote from: tux
Quote from: JimR
Hi there.
I'm trying to get Frotz running on my C3200 (Running SharpROM w/ English conversion), and I'm having some trouble, basically because I'm not sure of the file-tree on Linux/the Zaurus.
I can run frotz through the terminal, but I don't know how to load any games because I don't know where the program is looking.  Basically, how can I tell the terminal to load from the SD Card?  Or, conversely, where should I drop the game file so that Frotz can find it?

Also, using QKonsole, can I rotate orientation?  The rotate option is not available under the menu, and any keyboard commands are translated into input.  SHould I use another terminal program?
Thanks!
Jim
 I've just checked the syntax on my desktop to be sure. So all the paths refer to my directory structure in /home/stan

There are two ways to do this. Both involve using the console.

1: cd into your gamefile directory. E.G. cd /zorks/data then frotz zork1.dat or zork2.dat as applicable. The adventure loads and runs. You might prefer to only cd to the zorks directory and specify the ./data/zork1.dat file.

2: Specify the full file path E.G. frotz ./zorks/data/zork1.dat.

Of course you'll need to use the actual position of your adventure files in your path or in the cd instructions that you use.

I prefer the second method because it minimises directory changes and makes it easy to use the history commands to play the games.

 Hope that helps.

I've got hold of the Scott Adams games as well as most of the Zork genre. The Adams' ones can be freely downloaded and i believe that there are legitimate sources for some of the Zork one.

As regards the rotation from within the console:I've always rotated the screen beforehand and then run the console. So I have no direct help for you: I think searching the forums should find you some hints on what you want to do. Good luck.

alexl

  • Newbie
  • *
  • Posts: 9
    • View Profile
Frotz
« Reply #3 on: July 12, 2009, 03:08:15 am »
Quote from: JimR
I can run frotz through the terminal, but I don't know how to load any games because I don't know where the program is looking.  Basically, how can I tell the terminal to load from the SD Card?  Or, conversely, where should I drop the game file so that Frotz can find it?
This may not be of much help since my reply is VERY late: the commandline version of Frotz (I'm using Frotz 2.43 with ncurses) looks at the environment variable INFOCOM_PATH.  I have something like this in my .bash_profile:
[div class=\'codetop\']CODE[/div][div class=\'codemain\' style=\'height:200px;white-space:pre;overflow:auto\']export INFOCOM_PATH=/home/lex/Infocom[/div]

Frotz then finds the data files, whatever the current dir.

Also, Frotz doesn't pick up the width and height of the tty that I'm logged into, so I renamed the Frotz binary to 'frotz.arm' and wrote a script to call it:

[div class=\'codetop\']CODE[/div][div class=\'codemain\' style=\'height:200px;white-space:pre;overflow:auto\']
#!/bin/sh
# Call frotz.arm with width and height
# 03-Oct-08
# Get rows and columns from stty, as tput doesn't allow querying
rows="`stty -a | head -n 1 | cut -d ";" -f 2 | tr -dc "0123456789"`"
cols="`stty -a | head -n 1 | cut -d ";" -f 3 | tr -dc "0123456789"`"
$0.arm -w ${cols} -h ${rows} $@
[/div]
I hope that this helps!

Lex