Forums | MacLife
You are not logged in.
#1 2005-02-28 6:38 pm
- mvallance
- Member
- Registered: 2005-02-28
- Posts: 9
Create a text based iPod game
re. the article in March issue, page54.
I have inserted the simple codes as illustrated in your article.
However, when I open on my iPod I get as far as a RMS Titanic title but nothing else is revealed on my iPod screen.
I have checked folders and sub-folders.
Could it be the line,
<p><a href="RMS Titanic/Brandeis/page1">Emil Brandeis</a><p>
Should I create a folder called RMS Titanic and then put the Main.linx file outside that folder (ie. in the Notes folder)?
This is unclear in the article.
I have used Simple Text to create all my pages (files).
Thanks.
Offline
#2 2005-03-03 8:46 pm
- mvallance
- Member
- Registered: 2005-02-28
- Posts: 9
Re: Create a text based iPod game
You've gotta advise me :-(
I have uploaded the RMS Titanic game as instructed but cannot get beyond seeing the two folder names. I have a 3rd Gen 20 GB iPod. Help!
Offline
#3 2005-03-04 9:09 am
- Dunkin'
- Mom Bo'

- From: Over the hills and far away
- Registered: 1999-10-15
- Posts: 3302
Re: Create a text based iPod game
May I add my frustration to the pile.
I have fooled around with this for some time and cannot get any links to display on my iPod. I have a 3g 40GB iPod. Although there is only one RMS Titanic folder, I have two RMS Titanic folders showing in the Notes folder on the iPod. One is the actual folder hierarchy. The second is the "game". In the game folder, the title displays but nothing else.
My guess is that the parser is not reading the files correctly (duh!?!). I have used TextEdit with plain text encoding Western Roman (MacOS) and UTF-8. Nothing shows. I have used HyperEdit and checked the tags for accuracy. The page display correctly in HyperEdit.
The 3g iPod never displays any text beyond the page title.
Help? Please.
1/φ = φ-1
Dron't dink and dive.
Offline
#4 2005-03-04 11:22 am
- Dunkin'
- Mom Bo'

- From: Over the hills and far away
- Registered: 1999-10-15
- Posts: 3302
Re: Create a text based iPod game
ok, OK, OKAY!
I figured it out. TextEdit must be set to open and save documents in plain text. Use TextEdit preferences. In the Default Plain Text Encoding section you must set the Open and Save to Western (MacOS Roman). NOT Automatic.
Further, there must actually be pages that are referenced. The links are not visible unless the linked page exists.
Whew. Simple, huh?
1/φ = φ-1
Dron't dink and dive.
Offline
#5 2005-03-07 1:03 am
- mvallance
- Member
- Registered: 2005-02-28
- Posts: 9
Re: Create a text based iPod game
Simple? Ummm.. maybe, but still not working.
I have set the preferences as described.
When saving files in Text Edit the format is RTF or Word options only so I left as RTF default and hid extension.
On iPod I get the first file opening but lots of characters stating the format of the file.
I then tried saving all using Simple Text (from Panther's Developers CD). No luck.
It must be simple BUT it's frustrating. More help .. and kind patience please.
Offline
#6 2005-03-07 2:52 am
- Digital Droo
- Administrator
- Administrator
- From: San Francisco, CA
- Registered: 2000-09-01
- Posts: 1783
- Website
Re: Create a text based iPod game
mvallance wrote:
When saving files in Text Edit the format is RTF or Word options only so I left as RTF default and hid extension.
If those are the only options you have, the current document is still in Rich Text - not "plain text." Try this. Open your "Titanic" file in TextEdit. The window will appear one of two ways: 1. with formatting options and 2. without formatting options. If you see formatting tools at the top of your open document (Styles, spacing, ruler, tab stops, etc.) you have a rich text document open. Hit command-shift-T to turn it into text only. You may get a message saying your formatting will be lost. That's okay. Now your document is in plain text and your formatting options are gone. You can save this as a .txt file.
If you're typing from scratch, create a new document and make sure there are no formatting options in the window. If there are formatting tools, hit command-shift-T. This will be a valid text file.
Another thing to try is download TextWrangler from Bare Bones Software (or grab it from the disc, if it's there). TextWrangler is a plain text editor - a really good one. And it's free. You can't go wrong with that.
For kicks, try opening an RTF file in TextWrangler. You'll notice that what you typed in TextEdit (and saved as an RTF) is not what you see in the TextWrangler editor. It's likely the iPod is seeing the same thing.
-droo
Digital Droo - Krazy-Arse 'Lektronik Muzik for Fast-Driving
www.digitaldroo.com
Offline
#7 2005-03-08 11:26 pm
- mvallance
- Member
- Registered: 2005-02-28
- Posts: 9
Re: Create a text based iPod game
Maybe it's my iPod :-(
I have created a file using TextWrangler called Main.linx. Here are the contents.
<title>Business Meetings</title>
<p><a href="BusinessMeetings/page1">Business Meetings</a><br>
</p>
I then created a folder called BusinessMeetings and used TextWrangler to create a file called page1 (no .txt appended). Here are the contents.
<title>Business Meetings</title>
<meta name="LineWrap" content="false">
<meta name="ShowBodyOnly" content="false">
<meta name="HideAllTags" content="true">
You enter the meeting room.
Greet the delegates.
<a href="song=businessmeetings">I don't know what to do</a>
<a href="page2">Hi there you guys</a>
<a href="page3">Let me introduce myself</a>
And I wish to create many more pages for this Business game for my students. It is NOT commercial!
When I upload to Notes folder in iPod I put Main.linx into Notes folder and BusinessMeetings folder into Notes folder.
When I open Notes on my iPod I get Business Meetings header but no option to select page1
That's it. I really am trying and I can see how easy the code really is BUT my 'game' is not playing.
Many thanks in anticipation for your help :-)
Offline
#8 2005-03-09 3:38 am
- Dunkin'
- Mom Bo'

- From: Over the hills and far away
- Registered: 1999-10-15
- Posts: 3302
Re: Create a text based iPod game
First I used TextEdit
I copied and pasted the code from your post.
The game did not work.
I downloaded TextWrangler.
I copied and pasted the code from your post.
The game did not work.
Using TextWrangler
I opened the page1 file.
I used the File menu to select Reopen Using Encoding > Western (Mac OS Roman)
I saved the page1 file.
I opened a new file and typed in <errors>
I saved the file and named it error.
I used the File menu to select Reopen Using Encoding > Western (Mac OS Roman)
I saved the file.
I opened Main.linx
I added a new line <a href="error">debug</a>
I saved the file.
I used the File menu to select Reopen Using Encoding > Western (Mac OS Roman)
I saved the file.
I moved the Main.linx and error files to the Notes folder on the iPod.
I moved the BusinessMeetings folder to the Notes folder on the iPod
The game works.
The text encoding must have been incorrect, I guess.
1/φ = φ-1
Dron't dink and dive.
Offline
#9 2005-03-09 4:13 am
- Digital Droo
- Administrator
- Administrator
- From: San Francisco, CA
- Registered: 2000-09-01
- Posts: 1783
- Website
Re: Create a text based iPod game
Dang, that's a tip and a half. Cool! 
-droo
Digital Droo - Krazy-Arse 'Lektronik Muzik for Fast-Driving
www.digitaldroo.com
Offline
#10 2005-03-15 12:51 am
- mvallance
- Member
- Registered: 2005-02-28
- Posts: 9
Re: Create a text based iPod game
Thanks both .. now works a treat.
I use the word 'game' loosely but do try. See my Website for details
http://homepage.mac.com/mvallance/profe … nal69.html
Michael
Offline
#11 2005-08-03 5:18 pm
- Jon
- Using Forum Default

- From: Canada
- Registered: 2004-08-07
- Posts: 1968
Re: Create a text based iPod game
sdavsasd

Offline
