A dancing game written in Python.pydance is a dancing game similar to Dance Dance Revolution, Pump It Up, or Technomotion. To play these games, you typically dance on a platform or mat, timing your steps to match arrows scrolling up the screen to the beat of the music that plays. pydance supports many different arrangements of panels, two players, keyboard and pad play, most features of the proprietary arcade games, lets you write your own steps for songs, and is compatible with other popular dancing games for Windows like Kick It Up, Stepmania, or Dance With Intensity.
License: free
Requirements:
- Python 2.3
- Pygame 1.5.6
- SDL_mixer >= 1.2.5 with Ogg Vorbis support.
| Sound: | Play in X: | Play in Console: | Multiplayer: | Network Play: | 3D Acceleration: | Source Available: |
|---|---|---|---|---|---|---|
| yes | yes | yes | yes | no | no | yes |
Submitted by Sunflare on 2002-05-17.

(But since a PS-1 is down to $49 and most dance pads come *with* a DDR type of game, one wonders whether it would be worth the effort!)
I'm not sure what the reason is. It seems to only effect SDL apps. Unloading the driver for the parport controller corrected everything. Of course, I'm not much of a programmer- so I'm not really able to dig into the code and figure it out.
- WzDD
Above all, pyDDR 0.6.2 was released, why not review the current version of the game?
Things I would like to see added. Retaining high scores, stats, etc. A way to quickly jump through mixes -- I have amassed some 200+ sim files and getting around all of that can be just as much of a workout as playing the game. Being able to use the mat without ever needing the keyboard (hitting select and start at the same time is a method the PS versions use to back out of a game in progress). And perhaps sorting within sorting i.e. I usually sort by mixes, being able to sort those by bpm or feet might be useful as well (though not that important).
I highly recommend this to anyone especially DDR players. I've now retired my PS1 in favor of pyDDR.
Dave
Dave
No mats found. Not initializing joystick support.
pydance, by theGREENzebra ([email protected])
Initialising..
Psyco optimizing compiler not found.
Searching ..\songs
Searching .
Audio: Skipping 45.000000 seconds...
Pygame Parachute Traceback:
File "C:\Program Files\pydance-0.7.4\audio.py", line 46, in play
Error window:
The instruction at "0x77f9cf8a" referenced memory at "0x03100308". The memory could not be "read".
This comes up quite a lot while playing, or loading a song. Some kind of unhandled exception in a Windows NT DLL. I've checked my event logs, and there's also a case where the memory could not be written. This may not be something that you can do anything about. Happens randomly in things I program in C as well. But the information's here for you if you can do anything with it.
As an aside: Does anyone here know if perhaps this is a fault of hardware I own? P4 2.4 ghz, 1 gb PC-800 Rambus RAM, Intel mobo. Any help would be appricated.
SMPEG is rather broken with pygame, but the support is built-in to SDL_mixer for those that have SMPEG available, so it's not turned off.
Also, this was probably one of the hardest programs to get to work in recent memory (been using linux for 10 years, I'm not a newbie by any stretch of the imagination) due to the lack of (working) packages for several of the ancillary stuff used (I'm running RH9).
Sorry but I'll keep dual booting windows to run Dance With Intensity (that works perfectly).
It's segfaulting because you're using MP3s.
We're not just using something else because nothing else integrates well with SDL_mixer. At all. pyao and pymad are hell crossplatform, and it seems we have to do our own volume signal processing and so on for them, which is currently unacceptable in Python.
We're not just sitting on our asses about the problem. If you want the crappy pyao and pymad support, which is the best we can do in pure Python, you can install them like says on the site (in the FAQ). Until then, it's a lot of work to get a decent crossplatform MP3 decoder into pygame and SDL, hampered by the fact that proprietary games use SDL, too.
I have no idea why you think the program should 0.0.1alpha. We support more features than actual DDR, or actual Pump It Up. We support more features than most other simulators. You're complaining about lacking *one* feature. It's a big feature, but we've doing, and are doing, extensive work towards alternatives. As it is right now, there is nothing else to switch to, so we can't switch to anything.
Why don't you just rerip your DDR CDs as Oggs, and solve your problem? They'll sound better too. What? You don't actually have DDR CDs and you're just using downloaded versions? Poor you, pydance can't play your copyright infringing music.
--piman
I am talking about 0.0.1Alpha because of the real problems in mp3 support: personally, if pydance decided to drop support of mp3s I wouldn't mind as much, or at least if it said that mp3 support is broken and plainly won't work.
As an aside, given the situation, why have you decided to code this in python vs C/C++? It's your project, so if you want to code it in ADA, hey, good for you, but I am just wondering about why you picked python in the first place...
Stepmania is a good C++ crossplatform dancing game, using SDL with MAD for MP3 support. The total size of the compiled binary is 16MB, and that's not including the announcer or graphics data. There's also substantially more code (I would estimate ~80-100k lines). pydance, for comparable features (sans MP3 support and quality graphics) is 7000 lines and 5MB. Better graphics would probably put us above the 10MB mark - which is still smaller than just the *binary* for Stepmania. (This isn't ragging on SM; but it's well-known that one or two developers have a hard time managing 100k lines of code, and that more code leads to more bugs.)
Using Pygame also gives us the ability to develop new features more quickly, and make them substantially cleaner because of Python's dynamic capabilities. It also means that if SDL and Python are ported to a platform, pydance also works there without modification; DWI still only runs on Windows, and SM needed concerted porting efforts to run on Mac OS X and GNU/Linux. pydance will run on BeOS, Solaris, or basically any system Python runs on, which is many.
I thought the BUGS file which said "Our MP3 support is ass" and our FAQ that tells you that MP3s will likely segfault, were enough warning.
Regarding the 'mp3 support is ass' my bad, I completely missed that: also I'd like to apologize for the tone of my original post, I was feeling very frustrated and I shouldn't really have took it out on your program like that. If I find some spare time I'll have a look at smpeg and try to figure out why the heck it's segfaulting so much.
it all goes back to my question above, python/pygame/smpeg/... doesn't seem to cut the mustard well enough for this project, why have you decided to use it? This is not an attack, like I said, write it in Ada or Ruby or whatever for all I care, but if your goal is to create a well functioning DWI-lookalike for linux, C/C++ seems like the way to go...
$ pydance 0 joystick[s] found in total. No mats found. Not initializing joystick support. pydance 0.8.1 Initializing... Psyco optimizing compiler not found. Searching /usr/share/games/pydance/songs Searching /usr/local/share/games/pyddr/songs Searching ~/.pyddr/songs Searching ~/.pydance/songs Searching /usr/local/share/games/pydance/songs Playing /usr/share/games/pydance/songs/6jan.dance 6.January'2002 by theGREENzebra Traceback (most recent call last): File "/usr/games/pydance", line 91, in ? if __name__ == '__main__': main() File "/usr/games/pydance", line 86, in main menudriver.do(screen, (songs, screen)) File "/usr/share/games/pydance/menudriver.py", line 186, in do me.display() File "/usr/share/games/pydance/menus.py", line 178, in display ev = self.items[curitem].activate(ev) File "/usr/share/games/pydance/menus.py", line 55, in activate text, subtext = self.callbacks[ev](*self.args) File "/usr/share/games/pydance/menudriver.py", line 106, in wrap_ctr Obj(*args) File "/usr/share/games/pydance/gameselect.py", line 101, in __init__ MODES.get((self.values[0], self.values[1]))) File "/usr/share/games/pydance/songselect.py", line 401, in __init__ self.player_configs, self.game_config, gametype) File "/usr/share/games/pydance/dance.py", line 198, in play if dance(screen, songdata, players, prevscr, first, game): File "/usr/share/games/pydance/dance.py", line 363, in dance for plr in players: rectlist.extend(plr.game_loop(curtime, screen)) File "/usr/share/games/pydance/player.py", line 467, in game_loop self.judge) File "/usr/share/games/pydance/player.py", line 379, in check_sprites arrows.update(curtime, self.bpm, steps.lastbpmchangetime) File "/usr/lib/python2.3/site-packages/pygame/sprite.py", line 320, in update a(s.update, args) File "/usr/share/games/pydance/arrows.py", line 186, in update AbstractArrow.update(self, curtime, curbpm, lbct) File "/usr/share/games/pydance/arrows.py", line 142, in update if self.sample and curtime >= self.timef1: AttributeError: 'ArrowSprite' object has no attribute 'timef1'In the future, could you please either submit them on IRC (irc.freenode.net/#pyddr), via email, or to the Debian BTS?
i tryed pydance cause i had nothing to do
i read the stuff on the webpage, and the promise of a frozen bubble sex appeal, sdl and python (pysol) made me click on the donwload page.
ok, i got the src, and as soon i run makeinstall i tryed the game and i got nothing.. .just a bunch python lines. I was on a middle of python libs prob conflit. i was already starting to put it aside when i decided to go to the bottom of the line Checked the install and read carefully the output of the setup.py again, ok i missed pygame. after installing it i soon realized lots of more python and sdl libs were requested to be present on the system. For the 2nd time i was starting to move back to happypenguim to search for another title to spend the evening.
But i remenbered either of seeing slackware packages on the site, and thank GOD and you guys for providing the 6 pkgs. Anyway the setup went smothly i ran the game and soon i realized that SONGS were missing, ok went back to the website and grabed the songs and the steps and the dance files. Soon everything was all set and ready to go
i started the game and played a little, not more than 5 minutes both on basic, and the other 2 levels. well the 2nd one its kind dificult, not to say about the last one, that its fking hard.
Im on keyboard, i thought this game its well played but with that thing they call "matt" on the website, something that i never had heard off before anyway all this to say what:
1- the gameplay its hard with only keyboard
2- you should provide a better way to install the game, if its possible on that sense
3- if you provide more songs it would be nice, atleast for guys like me, it would stick me at least 1 hour or more playing at it, and not making me drop the game after 5 minutes
4- a quick start mode, that will just start the game with only one menuchoise.
5- you should explain the score screen what is a "E" what is a "B" ?? and all that numbers on left and words on right what they mean? as you notice from my english, im not a native english speaker
And to tell you the true this kind of arcade game isnt popular here. At least i never saw.
Despite all that i liked the GUI, it really made me think about FB.
But on the other way, this is a game for the genre lovers, and i understand that. So sorry if makes no sense. but this was from someone that found and got suprised by the "sub-Culture" this game has, with links to fan sites all over. Something that i never know that exists..
3 - Yeah, more songs, but 5 minutes? It took me quite a while to be able to do 217 Max Combo on 6Jan, and the third song I cannot even complete.
5 - AA is the best, F is the worst.
This is a great port. So great, in fact, that I'm going to add it to build a big heavy dance pad and add pyDDR to my Mame cabinet. I'm granting 4 stars for great gameplay and excellent installation instructions. The only reason it didn't get 5 starts is the many updated SDL and python dependencies. Again, easy enough for us to update, and good instructions, but still a real hurdle for a linux newbie.
So- has anybody out there built their own dance pad?
Regards,
Dave
http://www.ddrfreak.com/phpBB2/viewtopic.php?t=59254
I did actually build a working DDR pad. I haven't done much with it in many months now, but I was out tonight and ran across an arcade DDR machine... and had to update my installed version of pydance! I think I'll need to finish mark 3 of my pad!
BTW, here is the link.
Any ideas? I really wanna play again.
I had a couple experiences that may or may not help you. Currently I am using pydance 0.8.1 and SDL 1.2.4. I started with an early pyddr and was updating whenever a newer version came out. At one point (although I do not remember the version), the update said to use SDL 1.2.5. I installed the update and SDL 1.2.5 under Linux. Then, the arrow graphics (and keypress recognition) would sporadically pause for a fraction of a second, causing it to be unplayable. I kept the update, but went back to SDL 1.2.4 and had no sporadic pause problems. So, going to a different SDL version may help you as well.
I also installed the same pydance version and SDL 1.2.5 under MS Windows XP on a much faster computer. It did not have the sporadic pause problem. I do not know if this is due to code differences or due to the speed difference. I did experience a separate problem. If pydance attempts giving a preview of a song and you try to select that song or move to the next song, pydance sporadically crashes. This occurred under Linux also. But, under Linux, it didn't if one waited a second before selecting a song or going to the next song (once the preview started). Under MS Windows, however, it would sporadically crash even under these conditions. So under MS Windows, I had to turn off the previews.
During these and later tests, I tried using and not using the psyco optimizer. Although I am still using the optimizer, I also do not notice any improvements.
Although I have continued to download pydance and SDL updates, I have yet to attempt to use them. So I can't give specific advice concerning them. Some day I need to install them. I have some suggestions for pydance but have not submitted them since I am not at the current versions, which might make some of the suggestions obsolete.
I hope this helps.
- JayThis is one of the cleanest, finest windows opensource games I have ever seen.
It never really occured to me that python was a good language for portable game development, but given it's object oriented nature, and the high availability of media libraries, makes sense to me now.
I was extremly impressed with how smoothly it runs, how accurate the gameplay seems to be, how easily i compiled it on WINDOWS (not the most opensource-friendly or easy-to-compile platform), and basically how much it rocks.
Either the people bitching on the above comments are smoking crack, or you guys performed miracles since whatever version they were using. or they need to upgrade their machines or something.
i have only good things to say about this release, and hopefully I'll brush up on my python a lil and help you guys out if i get some free time. ...think about how much network support would rock... =D
Zetabyte