BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 06-02-2005, 07:54 PM   #1 (permalink)
GPF
New Member
 
Join Date: Jun 2005
Model: EMU
Carrier: at&t
Posts: 4
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Z2me- Zcode emulator Released midp1.0 and Blackberry Versions [Play ZORK!]

Please Login to Remove!

Z2me - Z Machine 3, ZCode Interpreter for J2ME
Version 0.1.0
http://gpf.dcemu.co.uk
[email address]

Copyright (c) 2004 Troy Davis
All Rights Reserved
Licensed under the The Artistic License

Credits:
===================
Z2me is based in part on the Zplet ZCode interpreter by Matthew T. Russotto
More information may be found at http://sourceforge.net/projects/zplet/
and the complete Zplet code can be downloaded from there as well.

RandomAccessFile class from Firth Software
from http://www.firthsoftware.co.uk/RandomAccessFile.jsp

AdventureCanvas from Paul Rowland
from http://www.geocities.com/wirelessjava2002/adventure/

FastText input from Markku Korsumäki , I ported it to J2ME
from http://koti.mbnet.fi/korsu/ft.html

Thanks to everyone on j2me.org who answered my questions as I am learning j2me.


===================
Z2me is a ZCode interpreter for the J2ME environment.
ZCode is the intermediate language that was designed
and used by the original Infocom text adventure games.
Using Z2me, it is possible to package and play a large
variety of interactive fiction on your J2ME mobile device.

Z2me is shipped with the public domain game "MiniZork". This
is a demo version of the original Infocom Zork game. Refer to
http://gpf.dcemu.co.uk for more information about Z2me.

What's New
==========
- Initial release

Features
========
- J2ME MIDP 1.0 or greater, should run on most devices that have enough memory.
- Should run most Z-code programs of versions 3.
- Text completion(Z9) - can be enabled/disabled through menu.
- About screen through menu.
- Save/Restore support for 1 save file.
- key 1 , cycles through all of the directions (NORTH, SOUTH, etc)
- key 0 , cycles through some commands I frequently use. ( ',' , AGAIN , WAIT, AND)
- key * , cycles through the Z9 completed words
- UP/DOWN arrow keys scroll the screen.
- LEFT/RIGHT cycle through the last 10 commands.

Also a different Z3 zcode format file can be added to the jar file(remove minizork.z3 first) and then update the "Zfile" user defined property with the name of the new Z3 file in the jad file. Remembering to watch the file size of the jar depending on your cellphone limitations.

What's Missing
==============
- Multiple save/restore slots


Prerequisites
=============
- J2ME MIDP 1.0 capable device
- Enough memory to load the jar, load the zcode and host the heap.
The amount of memory will vary tremendously from one Z-Code game to the next.

Getting Started
===============
Install the JAR and JAD file to your mobile device.




Disclaimer
==========
Z2me is provided as-is. There is no warranty or guarantee that Z2me will work as advertised and
that it won't cause your mobile device any harm.

I hope you enjoy Z2me.

Midp1.0 version
===============
http://gpf.dcemu.co.uk/Z2me.jad
http://gpf.dcemu.co.uk/Z2me.jar

Source code
http://gpf.dcemu.co.uk/Z2me_src.rar

BlackBerry Version
===============
http://gpf.dcemu.co.uk/blackberryZ2me.alx
http://gpf.dcemu.co.uk/blackberryZ2me.cod
http://gpf.dcemu.co.uk/blackberryZ2me.cso
http://gpf.dcemu.co.uk/blackberryZ2me.rapc
http://gpf.dcemu.co.uk/blackberryZ2me.jad
http://gpf.dcemu.co.uk/blackberryZ2me.jar

Source code
http://gpf.dcemu.co.uk/blackberryZ2me_src.rar
Offline  
Old 06-07-2005, 07:31 PM   #2 (permalink)
GPF
New Member
 
Join Date: Jun 2005
Model: EMU
Carrier: at&t
Posts: 4
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

can someone host the blackberry version so that it can be installed OTA my host doesnt support the correct mime types.

Thanks,
Troy
Offline  
Old 06-09-2005, 01:43 AM   #3 (permalink)
Thumbs Must Hurt
 
philbogle's Avatar
 
Join Date: Mar 2005
Location: Seattle, WA
Model: 8700g
Carrier: T-mobile
Posts: 196
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Z2ME hosted for the OTA download

Quote:
Originally Posted by GPF
can someone host the blackberry version so that it can be installed OTA my host doesnt support the correct mime types.

Thanks,
Troy
Certainly, I put it up at www.thebogles.com/z2me/blackberryZ2me.jad. I tried an OTA download and it worked well.

Can you describe in a little more detail how to add my own game files?
Offline  
Old 06-10-2005, 12:04 PM   #4 (permalink)
GPF
New Member
 
Join Date: Jun 2005
Model: EMU
Carrier: at&t
Posts: 4
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by philbogle
Certainly, I put it up at www.thebogles.com/z2me/blackberryZ2me.jad. I tried an OTA download and it worked well.

Can you describe in a little more detail how to add my own game files?
Thanks for hosting it.

Ok to change the game file, you need to open the blackberryZ2me.jar file with winzip(or other zip program), delete the minizork.z3 file and then add then new game file to the jar file.

Then open the blackberryZ2me.jad file in a text editor and find the line
Zfile: minizork.z3

and change that to
Zfile: game.z3

Now im not sure on the max size the blackberry will accept, I know during beta testing they were not able to load a jar file greater then 64k which severly limits most of the game files, there was some mention of an update to the blackberry software/firmware(im not sure which) that the betatester hoped would increase the filesize but Im not sure if it did or not.

Enjoy, download the source and improve it please

Thanks,
Troy Davis (GPF)
http://gpf.dcemu.co.uk/
Offline  
Old 01-08-2006, 03:00 PM   #5 (permalink)
Knows Where the Search Button Is
 
Join Date: Jan 2005
Posts: 47
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Looks like I came too late to the party! All the links have been taken down ... has anyone gotten this to work on their Blackberry yet? I'm still dying to get some text games on my 7520.
__________________
Nextel BB7520 on Nextel (US)
Offline  
Old 01-08-2006, 04:10 PM   #6 (permalink)
Retired BBF Moderator
 
Mark Rejhon's Avatar
 
Join Date: Aug 2004
Location: Ottawa, Ontario, Canada
Model: Bold
Carrier: Rogers
Posts: 4,870
Post Thanks: 1
Thanked 0 Times in 0 Posts
Default

Quote:
Originally Posted by VCI_Cell
Looks like I came too late to the party! All the links have been taken down ... has anyone gotten this to work on their Blackberry yet? I'm still dying to get some text games on my 7520.
The links work perfectly today... What are you talking about? Must be a web hosting issue... The links are all still there, it seems. (Interpretors - Z2ME at the bottom of the left yellow column)
__________________
Thanks,
Mark Rejhon
Author of XMPP extension XEP-0301:
www.xmpp.org/extensions/xep-0301.html - specification
www.realjabber.org - open source
Offline  
Old 01-08-2006, 07:50 PM   #7 (permalink)
Knows Where the Search Button Is
 
Join Date: Jan 2005
Posts: 47
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

Ahh. Must've been a temporary issue. Thanks!
__________________
Nextel BB7520 on Nextel (US)
Offline  
Old 01-11-2006, 04:55 PM   #8 (permalink)
New Member
 
Join Date: May 2005
Model: 9000
Carrier: AT&T
Posts: 13
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default swapping .z3 files in Z2me?

Has anyone successfully gotten an alternate .z3 file loaded? I got a .cod file created, but when I load it, the normal Z icon doesn't appear. Has anyone had any luck swaping out .z3 files?

- Mike
Offline  
Old 07-29-2006, 12:15 AM   #9 (permalink)
New Member
 
Join Date: May 2006
Location: sdfgfds
Model: 8700g
Carrier: csl
Posts: 7
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

I just downloaded this! I loved Zork during the good ol' Apple ][ days, though I never managed to finish the game then. Some quick questions:

1. Are there any other versions of Zork out there, and if so, what are the differences? I came across this one, but the link to the jad file doesn't seem to work anymore:
[add the http etc. in front of this cos I can't post links yet, being a new user]blackberrycool.com/2005/06/21/00564/

2. For this version of Zork, everytime I alt-esc to anohter application, or get an incoming call (or other message), then when I escape out of that other app and return to Zork, Zork resets itself to the beginning. Anything I can do to avoid this?

3. Any other Infocom games out there for the BB? (I'm using the 8700).

Thanks!

KL

Last edited by oohyeah : 07-29-2006 at 12:18 AM.
Offline  
Old 07-31-2006, 07:35 PM   #10 (permalink)
New Member
 
Join Date: May 2005
Model: 9000
Carrier: AT&T
Posts: 13
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default some answers to questions...

1. In theory any .z3 can be compiled in. I haven't had any luck with that so far though.

2. You need to do save and load(?). It doesn't autosave/autoload for you. That's an enhancement that somebody could do eventually There's also only one save slot.

3. None that I'm aware of. If we can figure out how to compile other infocom files into the app, then there's a fairly wide set of options. Particularly if we can get it upgraded to run the more recent .z5 and .z7 file formats.

- Mike
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





Copyright © 2004-2014 BlackBerryForums.com.
The names RIM © and BlackBerry © are registered Trademarks of BlackBerry Inc.