View Single Post
Flandry's Avatar
Posts: 1,559 | Thanked: 1,786 times | Joined on Oct 2009 @ Boston
#5
Edit: Latest release notes here.

It (prboom) is in extras-devel, and for good reason. The default keyboard mapping is worthless because the N900's enter key doesn't register as such, and there's not really sound as of yet. I did optify it, but it's a very rough WIP.

Remember, software in extras-devel could cause data loss, hair loss, spouse loss, global warming, or male pattern baldness. Don't enable the extras-devel repository unless you know exactly what you're doing, and don't leave it enabled on your N900 or you're just asking for trouble.

If you do decide to install it, you'll need an iwad file. I've been using the one from freedoom, which is, coincidentally enough, free. Put it in /opt/doom/wads.

Then you'll either want to copy the attached cfg file (remove the .txt part--that was so i could attach it) to /home/user/.prboom/ or run prboom once to generate a config file at /home/user/.prboom/prboom.cfg and then edit the cfg file to change the key_menu_enter mapping: the N900 enter key code is 0x10d, not 0xd. At that point, you can enter the game and use the menu to remap other keys. I'd recommend turning off the mouse, as its present behavior is a bit weird. Also switch the color depth to 16 bit-it makes a huge difference. It's silky smooth and delicious that way. I've already made those changes to the attached cfg file.

I was hoping to have this a bit more ready for testing tonight with a decent default config file delivered up front but i'm out of time on this for a bit.

Finding an ideal keymap and the best settings available from the menu is something anyone can do to help out. If you get stuck, remember that you can tap the power button and choose "close this application" to get out.

Note to would-be app maintainers:

I was careful to document everything i did as i prepared the ubuntu/debian package for maemo. Anyone who is looking for a bit of a working example on how to start with maemo packaging can grab the source package in the SDK scratchbox
Code:
apt-get source prboom
and look at the changelog in ./debian. I also have a todo list there...

Known Issues
  • The "Enter" key of the N900 doesn't have the same key code as prboom expects, so you have to change it with a text editor or use the attached config file. See above.
  • No default iwad is installed. See above.
  • Probably suffers from Nokia's localization bug AKA "Dude, where's my up arrow key?". Workaround described here.
  • Sound doesn't work. I had to package the dependency libsmpeg and will probably need to go back and make sure it actually works, rather than just builds. Best solution would be to use an already-working sdl mpg library, but not sure how involved that would be.
  • There's no way to map keys in-game to call up the menu once the demo or game starts. I suspect this is hard-mapped to "Esc", so will have to check the source code. Partial workarounds are possible by mapping other actions within the menu, but nothing very satisfactory.
  • No throttling or pausing on loss of focus: don't leave it running in the background while you go off and do other things or your battery will be mad.
  • Mouse control breaks the ability to use the on-screen exit button and generally isn't helpful. Leave it OFF.
Attached Images
 
Attached Files
File Type: txt prboom.cfg.txt (9.8 KB, 225 views)
__________________

Unofficial PR1.3/Meego 1.1 FAQ

***
Classic example of arbitrary Nokia decision making. Couldn't just fallback to the no brainer of tagging with lat/lon if network isn't accessible, could you Nokia?
MAME: an arcade in your pocket
Accelemymote: make your accelerometer more joy-ful

Last edited by Flandry; 2010-01-03 at 02:33.
 

The Following 8 Users Say Thank You to Flandry For This Useful Post: