maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Games (https://talk.maemo.org/forumdisplay.php?f=12)
-   -   Request: StepMania for N900 (https://talk.maemo.org/showthread.php?t=39224)

Andy1210 2010-01-04 15:12

Request: StepMania for N900
 
Hi,

anyone can port StepMania for N900?
Code:

http://www.stepmania.com/wiki/Downloads
This is open source :)

Viperz 2010-01-21 08:42

Re: Request: StepMania for N900
 
Looking for it too :)

buxz777 2010-01-21 08:54

Re: Request: StepMania for N900
 
looks good id be intrested in n900 port :-)

can you not brainstorm it??

:-)

Andy1210 2010-01-21 14:08

Re: Request: StepMania for N900
 
anyone could try compile it? :)

sadfist 2010-01-21 15:57

Re: Request: StepMania for N900
 
Do they have bluetooth dance pads? :D

uberballo 2010-01-21 18:27

Re: Request: StepMania for N900
 
well you can use wii-mote with n900 so dont wii's dance pads work the same way?

slux 2010-01-21 18:42

Re: Request: StepMania for N900
 
Don't know about the dance pads but pyDDR could be easier to get running than Stepmania which requires OpenGL IIRC. Some people even play these things with keyboard though. :P

thp 2010-01-21 18:51

Re: Request: StepMania for N900
 
It's only fun with the dance pads ;) The Wii Dance Pads are wired AFAIK. Maybe a N800/N810 in USB host mode and a modified BlueMaemo that then connects via Bluetooth to the N900 which runs Stepmania and outputs to the TV could work? But it depends on the latency that this "Bluetooth in between" introduces.

Also, you would need both a N8x0 and a N900 to get things going. Given that you can have Stepmania on a CD (and use it on a PC) and you have to take the dance mat with you anyway means that there's no real reason to have it on the tablet (you could place the Windows binary of Stepmania + some songs in your MyDocs folder and hook up the dance mat + N900 to a Windows PC, though).

thp 2010-01-21 19:27

Re: Request: StepMania for N900
 
Ok, got pydance running on the N810 here. Will try on the N900 and then upload a tarball for all you keyboard nerds ;)

thp 2010-01-21 19:47

Re: Request: StepMania for N900
 
Here you go:

http://khan.thpinfo.com/~thp/tmp/pydance-maemo.tgz

What you need to get it running:

sudo gainroot
apt-get install python-pygame

Then copy the downloaded file to your device and do:

cd MyDocs
tar xzvf pydance-maemo.tgz
cd pydance-1.1.0
python pydance.py

The keyboard bindings are as follows: Enter and Backspace to navigate the menus, and your dance pad is the square with "q" in the upper left corner and "c" in the lower right corner (i.e. "a" is left, "w" is up, "x" is down and "d" is right).

Only one song included (from the website). You can put more songs into "songs/", but be sure to decode the .ogg file to .wav and change the filename in the .dance file, because pygame (at least on the N810, and I guess also on the N900) does not support ogg :/

Enjoy. If people like it, I might do a proper .deb later and upload to Extras-Devel. But now back to some serious learning... ;)

Andy1210 2010-01-21 21:46

Re: Request: StepMania for N900
 
wow, very nice, thx :)
ogg support: http://maemo.org/downloads/product/Maemo5/ogg-support/

Andy1210 2010-01-21 22:09

Re: Request: StepMania for N900
 
hmm, laggy, and not working with sm songs (mp3)

edit: after restart, not laggy, but we need convert songs to wav :)

thp 2010-01-21 22:19

Re: Request: StepMania for N900
 
Quote:

Originally Posted by Andy1210 (Post 487608)
hmm, laggy, and not working with sm songs (mp3)

Decode them to .wav on your computer, copy it to your device and then make sure that the .sm and .dwi files have the .mp3 extensions changed to .wav. When (if) pygame/SDL get proper OGG/MP3 support in the Maemo package, this is going to be much easier ;)

Andy1210 2010-01-21 22:46

Re: Request: StepMania for N900
 
working with wav+sm files :) , playable, but not very good

HtheB 2010-01-21 22:54

Re: Request: StepMania for N900
 
Any Screenshots? :)

thp 2010-01-21 23:05

Re: Request: StepMania for N900
 
Quote:

Originally Posted by HtheB (Post 487715)
Any Screenshots? :)

http://khan.thpinfo.com/~thp/images/...o-20100122.png

Viperz 2010-01-25 16:14

Re: Request: StepMania for N900
 
Verry laggy on my device, can't play any song ?

thp 2010-03-21 21:56

Re: Request: StepMania for N900
 
I've got my USB dance mat working with the N800's "host mode" and a powered USB hub (didn't work without the hub - YMMV).

One also needs the "joydev" kernel module from this thread:
http://talk.maemo.org/showthread.php?t=13324

The stock pygame on Diablo does not have OGG/MP3 support and also no joystick support it seems. Maybe a pygame package recompiled with joystick support and more audio formats could help. Didn't have more time to investigate further today...

thp 2010-03-22 21:43

Re: Request: StepMania for N900
 
Another update: Re-compiled libsdl-mixer1.2 with OGG support; re-compiled pygame with joystick support. Converted MP3-based stepfiles to OGG, and played some songs on the N800 with the USB dance mat - works fine! Might post instructions and packages in a few days in case anyone is interested.

Andy1210 2010-03-22 22:54

Re: Request: StepMania for N900
 
hmmm, nice news, I cant wait :)

thp 2010-04-01 11:16

Re: Request: StepMania for N900
 
A short update with the current status what's still blocking a release:
  • Attila is packaging "joydev.ko" for Diablo for easy installation
  • The Diablo Community SSU hopefully provides OGG support in SDL-mixer

After that, I need to package pydance and provide a nice way of "importing" songs (converting them from MP3 to OGG) into the game.

Viperz 2010-04-09 19:38

Re: Request: StepMania for N900
 
Quote:

Originally Posted by thp (Post 591170)
A short update with the current status what's still blocking a release:
  • Attila is packaging "joydev.ko" for Diablo for easy installation
  • The Diablo Community SSU hopefully provides OGG support in SDL-mixer

After that, I need to package pydance and provide a nice way of "importing" songs (converting them from MP3 to OGG) into the game.

What's new ?
I'm very interested

thp 2010-04-10 18:14

Re: Request: StepMania for N900
 
Nothing yet - still waiting for the joydev.ko module to get packaged and for the Community SSU to provide OGG support.

thp 2010-05-04 00:14

Re: Request: StepMania for N900
 
Update and video:

http://thpmaemo.blogspot.com/2010/05...dance-mat.html

Andy1210 2010-05-04 02:31

Re: Request: StepMania for N900
 
I need fully working N900 version! :)

ahynes1 2010-05-05 03:03

Re: Request: StepMania for N900
 
Well, I've got it loaded on my N900, I've loaded ogg support (which is working nicely) but I just can't figure out what keys to press to get it to start. Seems like it is looking for Escape and for Tab (or perhaps some other mapping). Got any suggestions?

Also, any suggestions on porting Stepmania dances?

Final thought: : is anyone looking at creating an accelerometer based joystick? That might be a fun way to play.

thp 2010-05-05 10:06

Re: Request: StepMania for N900
 
Quote:

Originally Posted by ahynes1 (Post 643836)
Well, I've got it loaded on my N900, I've loaded ogg support (which is working nicely) but I just can't figure out what keys to press to get it to start. Seems like it is looking for Escape and for Tab (or perhaps some other mapping). Got any suggestions?

Think of the "qweasdzxc" part of your keyboard as the dance mat. Go back with "up+left" (q) and forward with "up+right" (e).

Quote:

Originally Posted by ahynes1 (Post 643836)
Also, any suggestions on porting Stepmania dances?

You want my pydance-oggify.sh script that should be ran in a directory with Stepmania songs. What it does is simply convert all mp3 files to ogg and then change the "mp3" file extension in the .sm file to "ogg". It also removes .avi files (background animations), as these take up space and aren't supported in pydance AFAIK. After this conversion, you can use the stepmania songs in pyDance.

https://garage.maemo.org/frs/downloa...ance-oggify.sh

Quote:

Originally Posted by ahynes1 (Post 643836)
Final thought: : is anyone looking at creating an accelerometer based joystick? That might be a fun way to play.

Should not be too difficult to implement. The only problem is that you can't do "UP+DOWN" moves simultaneously. (The "axis problem")

ahynes1 2010-05-06 00:10

Re: Request: StepMania for N900
 
I had the qweasdzxc part. What I was missing was the 'start' button. That is, I could get to the point of selecting Forkbomb. Then, if I hit enter I'd get the list of options I could change. Hitting enter again would take me back to it. The only way I've found to be able to start the game is to use Ctrl-E

I did try installing Accelemymote, but pydance did not recognize Accelemymote as a joystick. I know that Accelemymote is still in early testing which might be why.

I suspect that you could create special motions to be similar to up+down or left+right, something like some of the motions in Bounce.

I'm going to try to oggify some of my Stepmania files. However, based on Forkbomb, I suspect that until I can find a better input device for my N900 than the builtin keyboard, I'm going to find it very frustrating.

I'm curious about other people's experiences.

Dotblank 2010-05-06 00:37

Re: Request: StepMania for N900
 
I tried porting this awhile back but it did not have support for opengl ES.. The developers on the forum said it would need a rewritten video driver. Did you compile it without open gl?

ahynes1 2010-05-06 00:55

Re: Request: StepMania for N900
 
I ran pydance-oggify.sh and came up with a
BUTTERFLY.dwi
and
BUTTERFLY.ogg
(From DDR mix 1)

I can play the ogg file in Media player, but when I try to play it in pydance I get


Playing /home/user/pydance-1.1.0/songs/BUTTERFLY.dwi
BUTTERFLY by SMILE.dk
Not a supported file type: /home/user/pydance-1.1.0/songs/BUTTERFLY.ogg
Traceback (most recent call last):
File "pydance.py", line 208, in <module>
if __name__ == '__main__': main()
File "pydance.py", line 198, in main
menudriver.do(screen, (songs, crs, screen))
File "/home/user/pydance-1.1.0/menudriver.py", line 269, in do
me.display()
File "/home/user/pydance-1.1.0/menus.py", line 185, in display
ev = self.items[curitem].activate(ev)
File "/home/user/pydance-1.1.0/menus.py", line 58, in activate
text, subtext = self.callbacks[ev](*self.args)
File "/home/user/pydance-1.1.0/menudriver.py", line 158, in wrap_ctr
Obj(*args)
File "/home/user/pydance-1.1.0/gameselect.py", line 207, in __init__
self.loop()
File "/home/user/pydance-1.1.0/gameselect.py", line 230, in loop
VALUES[1][indices[1]])))
File "/home/user/pydance-1.1.0/songselect.py", line 245, in __init__
self.loop()
File "/home/user/pydance-1.1.0/songselect.py", line 341, in loop
self._configs, self._config, self._game)
File "/home/user/pydance-1.1.0/dance.py", line 342, in play
if dance(screen, songdata, players, prevscr, first, game):
File "/home/user/pydance-1.1.0/dance.py", line 437, in dance
song.filename + _(" could not be found."))
File "/home/user/pydance-1.1.0/error.py", line 12, in __init__
text = fontfx.shadow("Error!", 60, [255, 255, 255], offset = 2)
File "/home/user/pydance-1.1.0/fontfx.py", line 85, in shadow
t1 = font.render(text, True, color)
AttributeError: 'int' object has no attribute 'render'

thp 2010-08-31 12:02

Re: Request: StepMania for N900
 
This might be of interest for fans of dance games:

http://talk.maemo.org/showthread.php?t=61408


All times are GMT. The time now is 07:07.

vBulletin® Version 3.8.8