Giter Site home page Giter Site logo

Comments (2)

john-peterson avatar john-peterson commented on June 1, 2024

I saw that you split out the text index to readable form but the game text itself is still illegible to me

This is a problem because i want to remove the sentence breaks from the game text so it can be played on a phone primarily or any terminal that is not exactly 70 columns

notice and cringe at the out of place break in the opening message

./Zork
Welcome to Dungeon. This version created 2021-10-31.
You are in an open field west of a big white house with a boarded <-- BREAK
front door.
There is a small mailbox here.
>

the text printer likewise prints breaks everywhere

gdt
dt
4
The parser tries to be clever about what to do in the case of
        actions which require objects that are not explicitly specified.

it seems to break at 70 columns so it will look right only on that column width. anything else will look strange. a phone has around 40 colums

echo "You are in an open field west of a big white house with a boarded"|wc
      1      15      66
echo "You are in an open field west of a big white house with a boarded front"|wc
      1      16      72
tput cols
44
termux-info
Android version:
12
Kernel build information:
Linux localhost 5.4.147-qgki-g3eeb1d6e489b #1 SMP PREEMPT Thu Jul 28 11:17:53 UTC 2022 aarch64 Android
Device manufacturer:
HMD Global
Device model:
Nokia G60 5G

have you seen if it tries to determine column width during runtime?

or are the line feeds hard coded into the text file?

in that case how do i change the text. or read it to begin with? do you have a command for reading the text

head -c 30 dtext.dat
=��a��ՠ�
        ��Q

the emulator does not suffer from this. maybe the text can be copied from that data file if its free of line breaks

http://www.infocom-if.org/downloads/zork1.zip
frotz DATA/ZORK1.DAT

ZORK I: The Great Underground Empire
Copyright (c) 1981, 1982, 1983 Infocom, Inc.
All rights reserved.
ZORK is a registered trademark of Infocom,
Inc.
Revision 88 / Serial number 840726

West of House
You are standing in an open field west of a
white house, with a boarded front door. <-- COMPLETE SENTENCE 
There is a small mailbox here.

>

it talks about rows

grep -wr rows
Makefile:## The Dungeon/Zork program provides a ‟more” facility which tries to figure out how many rows the terminal has.
Makefile:## more option 3: assume all terminals have 24 rows
local.c://      MORE_TERMCAP    Use termcap routines to get rows of terminal
local.c://      MORE_TERMINFO   Use terminfo routines to get rows of terminal
local.c://      MORE_AMOS       Use AMOS monitor calls to get rows of terminal
local.c:// Initialize the more waiting facility (determine how many rows the terminal has).

but not about columns

a@e:~/zork$ grep -wr columns
a@e:~/zork$ 

which makes me think the sentence breaks are in the data file

from zork.

LydiaMarieWilliamson avatar LydiaMarieWilliamson commented on June 1, 2024

from zork.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.