Rockbox Technical Forums

Rockbox Development => Feature Ideas => Topic started by: Laertes on September 12, 2006, 02:29:56 PM

Title: Nethack in Rockbox?
Post by: Laertes on September 12, 2006, 02:29:56 PM
Hi,

I've just discovered and installed Rockbox in my iRiver H320 (using wine  ;) ) and I was wondering if Nethack  works with it. I made a few searchs in the forum and I didn't find anything about it.

Thanks.
Title: Re: Nethack in Rockbox?
Post by: bluebrother on September 12, 2006, 03:23:45 PM
I don't know of any existing plugin for nethack but I'm pretty sure it would work -- it only needs someone interested enough in it to actually start coding ;-)
Title: Re: Nethack in Rockbox?
Post by: Laertes on September 13, 2006, 12:16:07 AM
That would be great! I'm not coder myself, but I could help if anyone tries it. Do you think I should write a feature request?
Title: Re: Nethack in Rockbox?
Post by: Rincewind on September 18, 2006, 12:43:17 PM
that would be a really cool plugin!

If someone wants to start coding, I would like to help, but I don't have enough spare time to do it on my own (especially for the initial work).

I don't know if a feature request helps to get this started. Just keep the discussion running here.

If you want to help, you could try to find a version of nethack that was ported to a small screen/mobile device and gather as much information as possible. I think I read somewhere that there is one for the playstation portable.
Title: Re: Nethack in Rockbox?
Post by: theli on September 18, 2006, 12:56:20 PM
i would definitly happy if someone ports nethack to rockbox
i once started to port it by myself but was not very confident with rockbox's source at that time and after some time abandoned that project .. unfortunately i now have all source lost...

i would like to help anyone who starts to work on it, though i can't start this by myself as i work on zxbox and atari 2600 emulator for now
Title: Re: Nethack in Rockbox?
Post by: Laertes on September 18, 2006, 02:56:31 PM
So it seems that there is a few people interested. I would like to help but as I've said I can't code, but I can do any other thing needed. I think it's a good idea to keep the discussion running here as Rincewind suggests. Maybe we can assemble a little group to work on it.
Title: Re: Nethack in Rockbox?
Post by: RaeNye on September 19, 2006, 01:35:31 PM
A first step would be to create a feature request on flyspray.

If you happen to find a GPL/PD implementation (i.e., sources), add this as a comment to the request.
Title: Re: Nethack in Rockbox?
Post by: theli on September 20, 2006, 01:24:24 AM
btw can anyone say whether it is compatible with GPL2?

http://nethack.org/common/license.html
Title: Re: Nethack in Rockbox?
Post by: lachlan on September 20, 2006, 02:24:32 AM
This would be great, I hope it picks up some momentum.
Title: Re: Nethack in Rockbox?
Post by: tucoz on September 20, 2006, 06:07:14 AM
I think a nethack port would be perfectly possible, but what about the number of keys used when playing nethack? Would this be possible to solve on the rather limited input keys mp3-players have?
I haven't played nethack that much, so i am not sure if there are some alternative ways of controlling it. Maybe through a context menu?

Martin
Title: Re: Nethack in Rockbox?
Post by: tucoz on September 20, 2006, 06:12:11 AM

btw can anyone say whether it is compatible with GPL2?

http://nethack.org/common/license.html


I think it is compatible with GPL, from the nethack licence. No licence expert though.
Quote

Stated plainly: You are permitted to modify NetHack, or otherwise use parts of NetHack, provided that you comply with the conditions specified above; in particular, your modified NetHack or program containing parts of NetHack must remain freely available as provided in this License Agreement. In other words, go ahead and share NetHack, but don't try to stop anyone else from sharing it farther.
Title: Re: Nethack in Rockbox?
Post by: Rincewind on September 20, 2006, 12:21:26 PM

I think a nethack port would be perfectly possible, but what about the number of keys used when playing nethack? Would this be possible to solve on the rather limited input keys mp3-players have?
I haven't played nethack that much, so i am not sure if there are some alternative ways of controlling it. Maybe through a context menu?

Martin


It is long ago since I last played nethack, but I think it should be possible to have context menus for commands. Most of the the time you are running around trying to find doors and fighting anyway.

From the Nethack FAQ (http://www.nethack.org/common/info.html#Basic):

Quote

Are you porting NetHack to Palms?
    No. Other people who've written in with information about them lead us to believe that it won't work on most models, but the largest ones *might* be able to run it, if someone wrote bridge code adapting some major NetHack assumptions. The UI would actually be the easy part -- that's split off from the rest of the code anyway. The hard part is that Palms have only memory (no disk) and a very limited heap, while NetHack is designed to run in low memory conditions by writing everything not used to disk and likes to keep those varying-but- often-large numbers of monsters and objects in the heap. A couple people have gone off to look at the exact constraints, but we haven't heard anything to suggest that actual porting has started, let alone successfully finished. Aside from advising such people on NetHack internals, and merging their port code back in should such ever appear, we have no plans in that area. Some people may be making progress.


so there could be a major problem that rockbox doesn't like dynamic memory allocation, too.
But maybe we could steal the mp3 buffer and use it as a heap... I'm not very firm at this low level, I could be completely wrong here.
Title: Re: Nethack in Rockbox?
Post by: Rincewind on September 20, 2006, 12:34:05 PM
some links I found googling:

Nethack port to a nokia phone:
http://www.ee.oulu.fi/~moo/nethack/

Nethack port for the Playstation portable:
http://virtuamunstaz.de/nh/
Title: Re: Nethack in Rockbox?
Post by: tucoz on September 21, 2006, 09:42:45 AM

I think a nethack port would be perfectly possible...


Well, after googling around, maybe not perfectly possible but possible. But the lack of a PalmOS port seems to be a measure of the difficulty to port it to a portable target. Anyway, the source code has a Porting document that could be of good help to start a port. It would be fun to have a rogue like game in rockbox.
Title: Re: Nethack in Rockbox?
Post by: Wett on September 21, 2006, 01:40:18 PM
I'm afraid the display is a bit too small for comfortable text reading.
Anyway, that'd be great !
Title: Re: Nethack in Rockbox?
Post by: theli on September 22, 2006, 01:12:23 AM
as a nicer solution we can use some simple tiles ;)
Title: Re: Nethack in Rockbox?
Post by: Llorean on September 22, 2006, 01:16:21 AM
I think tiles would basically be essential for Nethack to work on Rockbox.
Title: Re: Nethack in Rockbox?
Post by: theli on September 22, 2006, 01:18:25 AM
maybe but at first i though about just using smallest availible font ....
Title: Re: Nethack in Rockbox?
Post by: Llorean on September 22, 2006, 01:21:03 AM
I don't think that'd work very well. It'd be possible, and probably the best plan for the H120 and maybe the Archoses, but you'd get a lot more clarity with some halfway decent tiles and color coding. It might be frustrating to be unable to tell the difference between something beneficial and something negative.
Title: Re: Nethack in Rockbox?
Post by: mikeage on September 22, 2006, 01:36:00 AM

I think tiles would basically be essential for Nethack to work on Rockbox.


I still play nethack in text mode... no colors, no tiles.

That said, in my mind, nethack requires a full keyboard... I've tried it on a pocketpc, and it's just too awkward to play.
Title: Re: Nethack in Rockbox?
Post by: Llorean on September 22, 2006, 01:47:35 AM
I play in text mode on a PC, but on a 176x132 pixel LCD that's not as clear as it could be, I think having some colored tiles would help visibility. Though no really way to know until it's testable, 'eh?
Title: Re: Nethack in Rockbox?
Post by: tucoz on September 22, 2006, 06:26:38 AM
Maybe iRogue is a good starting point to get a roguelike game in rockbox. This is made for PalmOS which is a little bit more rockboxish than the vanilla nethack is. http://roguelike-palm.sourceforge.net/iRogue/
Title: Re: Nethack in Rockbox?
Post by: BigMac on October 26, 2006, 05:14:18 PM
I am in no way a person to decide what can and can't be done, but those screenshots lead me to believe it could look nice and be done with rockbox.
Keep ROCKing On!
EDIT:Woops, didn't realize how old this topic was. Sorry for being the gravedigger.
Title: Re: Nethack in Rockbox?
Post by: mipodr on October 26, 2006, 05:59:09 PM
heh got hooked in looking at the former post.
Title: Re: Nethack in Rockbox?
Post by: Ajax on January 02, 2007, 06:14:30 AM
has anyone been doing anything with this? I got hooked checking out the nethack homepage and reading those comics :] would be a perfect game to waste another month or so of my life with :]

-Ajax
Title: Re: Nethack in Rockbox?
Post by: alawi on August 27, 2009, 01:27:20 AM
I see that this thread hasn't been active in two years, but I would definitely be willing to contribute some effort to making this happen.  I have plenty of experience playing nethack at this point (though still far from ascending!), but no experience with writing a plugin for RockBox.  Are any more seasoned developers interested in working on this?
Title: Re: Nethack in Rockbox?
Post by: GodEater on August 27, 2009, 01:51:59 AM
I would guess from the lack of activity over the last two years, the answer is probably "no"  :-\

I'll move this into "Feature Requests" on the off chance that some talented soul has missed it here though.