Forums » StepMania Development » PacDrive Light Output and Improved Parallel Light output for SM 3.9

1
So I wanted light output via PacDrive in SM 3.9 and added it...

Based on my earlier work I also improved the Win32Parallel light output to use the inpout32.dll (which works better and doesn't have the license issues of parallel_lights_io.dll) and I also set it up to use an external .ini file to set the port-addresses.

The source code and all necessary file to make that work can be downloaded here: http://web-nine.com/files/twistedsymphonys_sm_3.9_lights_package.zip

The pin assignment follows the same pattern as the parallel ports so
1-8 are cabinet lights, 9-16 are platform lights.
detailed pinouts can be found here: http://beta.stepmania.com/forums/general-questions/show/83#post543

------------

These are both setup for Win32, though making them work in Linux would be very easy to do (I'm just not setup for compiling or testing in Linux)

Similarly these could easily be made to work with SM 5.0 or whatever, I built this in 3.9 because I'm using Beware's DDR Extreme simulation and wanted light output in that.

Feel free to add this to the SM 5.x source if you'd like so long as you give me appropriate credit.

1 thing that could be improved is that the parallel lights get their port addresses from a separate .ini file, I would think ideally you'd want it to get it's values from the StepMania.ini file, however I don't know the best way to do this (and my request for some insight was ignored)... so I'll leave that improvement to someone else who is more familiar with inner workings of SM.

-------------------

If you have any questions or need any help let me know.

Last edited: 26 February 2014 9:05am

Reply
Could you make a diff? I don't think any of us have the time to track down the exact version of 3.9 you used to make one, or pick through an entire source tree to find out what you changed.
Reply
I used SM 3.9 Final from github

I've never made a diff before, I can put one together if you can point me to a guide on how to make one in Win 7. I hope you can appreciate I'm not a C++ Developer, I gave myself a crash course in it just to get this done. So I'm not familiar with any of the protocols for how to distribute or share this stuff.

Even still I tried to make it as easy as possible it shouldn't take anyone more than 5 mintues for anyone (programmer or not) to figure out how to apply this to the source though. the zip only includes the files I changed/added (only 6 files) not the whole source and it's arranged in the original directory structure so you can just copy/paste it over the current source.

other than that all you'll need to do is include the PacDrive.lib file into your project.

Last edited: 26 February 2014 11:05am

Reply
I used SM 3.9 Final from github
Going to assume that's from here unless you say otherwise, as I know there's at least one other 3.9 repo on GitHub.
Reply
sorry I meant to say sourceforge: http://sourceforge.net/projects/stepmania/files/stepmania/3.9/

though this begs the question... which is the official source?

Last edited: 26 February 2014 3:23pm

Reply
I've experimented in the past with lifts but kinda gave up because it was such a foreign concept and I couldn't really find a way to implement them in a fun way (or maybe I couldn't find them fun because I have no practice at all with them on pad but meh).
Our excellent online 1z0-146 training programs will lead you to success in the Testking We also offer latest hsbc and www.principiacollege.edu with 100% success University of New Haven good luck.
Reply