Rockbox

This is the bug/patch tracker for Rockbox. Click here for more information.

Quick links: Bugs · Patches · Rockbox frontpage

Tasklist

FS#7577 - Robotfindskitten - a zen simulation

Attached to Project: Rockbox
Opened by Jonas Häggqvist (rasher) - Saturday, 11 August 2007, 01:43 GMT+2
Last edited by Jonas Häggqvist (rasher) - Friday, 05 October 2007, 22:06 GMT+2
Task Type Patches
Category Plugins
Status Closed
Assigned To No-one
Player Type All players
Severity Low
Priority Normal
Reported Version Daily build (which?)
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Private No

Details

This is my first attempt at porting robotfindskitten (http://robotfindskitten.org/) to Rockbox. Right now it has a few problems:
- The screensize calculation goes wrong, and leaves a large empty area at the bottom.
- The NKI (non-kitten item) texts don't scroll.
- General ickyness with text positioning


Wikipedia description of robotfindskitten:

robotfindskitten is a "Zen simulation," originally written by Leonard Richardson for DOS. It is a free computer game with an ASCII interface in which the user (playing the eponymous robot and represented by a pound sign "#") must find kitten (represented by a random character) on a field of other random characters. Walking up to items allows robot to identify them as either kitten, or any of a variety of whimsical, strange or simply random Non-Kitten Items (NKIs). It is not possible to lose

The above text is copyright by the wikipedia authors and under the GFDL license, yadda yadda.

http://en.wikipedia.org/wiki/Robotfindskitten
   robotfindskitten_v1.patch (35.4 KiB)
 CATEGORIES         |    1 
 SOURCES            |    1 
 messages.h         |  421 ++++++++++++++++++++++++++++++++++++++++++
 robotfindskitten.c |  522 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 945 insertions(+)

This task depends upon

Closed by  Jonas Häggqvist (rasher)
Friday, 05 October 2007, 22:06 GMT+2
Reason for closing:  Accepted
Additional comments about closing:  Committed in r14993.
Comment by Jonas Häggqvist (rasher) - Saturday, 11 August 2007, 02:02 GMT+2
And here's a patch that should actually build for a real target. Some additional stuff that needs to be done:
- Use colour if the target supports it
- Clear the NKI line when moving
   robotfindskitten_v2.patch (35.5 KiB)
 CATEGORIES         |    1 
 SOURCES            |    1 
 messages.h         |  421 ++++++++++++++++++++++++++++++++++++++++++
 robotfindskitten.c |  522 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 945 insertions(+)

Comment by Jonas Häggqvist (rasher) - Monday, 01 October 2007, 22:20 GMT+2
Updates:
- Make NKI text scroll
- Colour support
- Text/char placement fixes

Compiles for h120, recorder and ipod video, both target and sim. I've only tested the sims (I'm currently without a Rockbox-able target), so I'd love it if someone with a bit of spare time would take it for a whirl.
   robotfindskitten_v3.patch (36.9 KiB)
 CATEGORIES         |    1 
 SOURCES            |    1 
 messages.h         |  423 ++++++++++++++++++++++++++++++++++++++
 robotfindskitten.c |  578 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 1003 insertions(+)

Comment by Jonas Häggqvist (rasher) - Monday, 01 October 2007, 22:32 GMT+2
"Proper" patch relative to the root, rather than apps/plugins/
   robotfindskitten_v4.patch (37.1 KiB)
 apps/plugins/CATEGORIES         |    1 
 apps/plugins/SOURCES            |    1 
 apps/plugins/messages.h         |  423 +++++++++++++++++++++++++++++
 apps/plugins/robotfindskitten.c |  578 ++++++++++++++++++++++++++++++++++++++++
 4 files changed, 1003 insertions(+)

Comment by Jonas Häggqvist (rasher) - Tuesday, 02 October 2007, 10:47 GMT+2
And here's one with the right filenames.. (forgot to rename messages.h to robotfindskitten_messages.h)
   robotfindskitten_v5.patch (37.1 KiB)
 apps/plugins/CATEGORIES                  |    1 
 apps/plugins/robotfindskitten_messages.h |  423 ++++++++++++++++++++++
 apps/plugins/SOURCES                     |    1 
 apps/plugins/robotfindskitten.c          |  578 +++++++++++++++++++++++++++++++
 4 files changed, 1003 insertions(+)

Comment by Jonas Häggqvist (rasher) - Thursday, 04 October 2007, 12:14 GMT+2
Update:
- Change controls on Ipods to not use the scrollwheel.
- Show instructions (on 320x240 only right now - I need to create a nice way of displaying lots of text)
- Add robotfindskitten section to the manual

Edit: Oops, forgot to attache the patch
   robotfindskitten_v6.patch (41.4 KiB)
 apps/plugins/CATEGORIES                  |    1 
 apps/plugins/robotfindskitten_messages.h |  423 ++++++++++++++++++++
 apps/plugins/SOURCES                     |    1 
 apps/plugins/robotfindskitten.c          |  645 +++++++++++++++++++++++++++++++
 manual/plugins/main.tex                  |    2 
 manual/plugins/robotfindskitten.tex      |   21 +
 6 files changed, 1093 insertions(+)

Comment by Jonas Häggqvist (rasher) - Friday, 05 October 2007, 20:26 GMT+2
Further update:
- Clear button queue when robotfindskitten
- Nicer play_animation which includes colour and looks nicer
- Wait for the user to press something after finding kitten
- Fix an off-by one error that made the rightmost column inaccessible (and crashed if you try to go there)
   robotfindskitten_v7.patch (41.8 KiB)
 apps/plugins/CATEGORIES                  |    1 
 apps/plugins/robotfindskitten_messages.h |  423 +++++++++++++++++++
 apps/plugins/SOURCES                     |    1 
 apps/plugins/robotfindskitten.c          |  667 +++++++++++++++++++++++++++++++
 manual/plugins/main.tex                  |    2 
 manual/plugins/robotfindskitten.tex      |   21 
 6 files changed, 1115 insertions(+)

Comment by Jonas Häggqvist (rasher) - Friday, 05 October 2007, 21:45 GMT+2
Screenshots for the manual.

Loading...