Showing posts with label itg. Show all posts
Showing posts with label itg. Show all posts

Friday, March 5, 2021


 

Stepmania Simfile Pack - Gym Intervals (Crossfit LUA Mod Stepcharts)

[What is it?]
WATCH THE VIDEO!
I was on the treadmill doing some intervals in the gym and I thought it would be a cool idea to have something similar for dance games. So I thought about having long step charts pause for x seconds, display a random exercise you perform off the machine, then you have to get back on the machine before the countdown concludes. I'm too lazy to handcraft something like that, so I wrote some software that would generate this all for me. When the charts pause for a random exercise, a background animation will appear to notify you and an audio voice will count down. Once ZERO is called, the chart will resume. This simfile is entirely autogenerated 100% (subtle ultimate deniability right there). It will probably have small target audience, but it's a cool concept I thought I would share if anybody wants to try.
[Customization]
Of course! You can customize the charts in this pack very easily! We have options for: exercises count, exercise type, repeating exercises, exercises ordering and even countdown timer volume. To customize your experience: Open "_lua\_default.lua" and follow the instructions at the top of the file. I HEAVILY commented the LUA file, so if you want to learn LUA with Stepmania, it's pretty easy to get started now!
[The 101]
- It's not perfect, it's just a bit of fun.
- Don't Hide Background or use screen filters.
- At the moment, there are no: crossovers, mines or two arrow stream.
- Credits to the original artists and stepchart authors!
[Things to note]
- If 2 players are playing: BOTH players must play the same interval (not chart; interval). Eg. 1/3min
- Do not rename ANYTHING inside the pack! If you do, you will receive a 'Song Not Supported' Error.
[Charts]
There are 3 charts for EACH interval grouping:
Single - 1 chart
Double - 2 charts (Easy and Hard)
[Requests?]
Sure. I accept requests and I can autogen charts for whatever song. Send me the simfile for a chart on single player, alongside a list of time stamps where you want the intervals to happen. Easy!
[Learn LUA with SM]
I have used LUA a lot for other things in the past, but never with Stepmania. I have heavily commented the LUA file so you can get to grips with learning pretty easily.
Works with Stepmania 5 and above.
Download link in video description

Tuesday, January 9, 2018

HOWTO: Install PIUIO Drivers in Linux (uBuntu, Debian, Fedora and more)


Need to install on Windows instead? Click here: http://s34nvideo.blogspot.com/2016/10/installing-piuio-drivers-for-windows.html


If you're building an MK6/MK9 for Pump It Up, or, OpenITG for In The Groove, or, simply a Stepmania setup or both... You may have opted for using a PIUIO to communicate with your arcade cabinet. If running a distribution of Linux, then installing PIUIO is a very simple task.

Note: If you are running OpenITG, then it already includes support for PIUIO natively. You do not need to proceed with this tutorial. Skip to the end to learn how to run OpenITG with PIUIO.


Installing PIUIO on Linux
1. Download the PIUIO input driver for linux here: https://github.com/djpohly/piuio

2. Install gcc. This will also install binutils. Both are required to run 'make' without getting CONFIG_X86_X32 binutils support errors.
sudo apt-get install gcc

3. Extract the files, open the mod directory and run make, then make install. Please refer to the ReadMe for an updated and more detailed set of instructions for compiling and installing. Ensure the operation completed without errors before continuing.

NOTE: The PIUIO driver legacy branch creates a PIUIO proprietary device here: /dev/piuio0. However, the latest re-write of the driver connects to the Linux Event and LED interfaces. The driver now creates a /dev/input/eventX device. The latest revision on github is a Linux kernel module - It exposes the PIUIO input to the system as a generic joystick with a bunch of buttons. It's a much cleaner solution than the legacy branch, and it allows any program on the system to make use of the input! 

4. Connect your PIUIO to your computer via USB (The fake PCI slot on the PIUIO is merely to sit it in a desktop computer properly, it does not communicate with a PC via PCI in any way at all.). To power the PIUIO, it will need power via Molex cable. If using a laptop, then you can use an old PC ATX power supply to power the PIUIO board via the molex connector. You will need to jump a couple of pins in the ATX connector to start the power supply once it's plugged in (This acts like a power switch on a desktop computer to start the power supply! More info: http://www.instructables.com/id/How-to-power-up-an-ATX-Power-Supply-without-a-PC/).

5. You are now good to go!




[Troubleshooting PIUIO Installation in Linux]

Refer to the steps below if you are having trouble installing PIUIO on your system. This assumes you have downloaded the latest master branch from: https://github.com/djpohly/piuio

It also assumes you have already tried make && make install and the PIUIO driver is still not working.

The following steps have been tested within ubuntu. Refer to your linux distribution if the command names differ. The troubleshooting concepts however will remain the same.

1. Open a Terminal window.

2. Search for the PIUIO module
find /lib/modules -name 'piuio*'

The above command, assuming you have ran make && make install already, will show you where the module (piuio.ko) has been installed. If there is no output here, then there is an issue with the 'make install' step.

3. Run the following command:
modinfo piuio

This will tell you information about the PIUIO module.
If you receive an error such as: "ERROR: Module piuio not found.", then you will need to run the following command:
depmod

depmod creates a list of module dependencies, by reading each module under /lib/modules/version and determining what symbols it exports, and what symbols it needs. Hopefully the system will now be able to 'find' the PIUIO module.

Now try the following command again:
modinfo piuio

You should receive some output regarding the module (Author, module location, version licence etc). This means the module is now recognized by the system and where it needs to be.

4. Run the following command:
modprobe piuio

This will add the piuio module to the linux kernel. Stepmania 5 (and any other capable piece of software) will now be able to detect the PIUIO module!

5. Run the following command:
lsmod | grep piuio

This will confirm that piuio has been loaded into the linux kernel. It also shows the size of the module and the current usage count.



NOTE: If these steps all checkout for you, but you cannot get input to work in Stepmania, then don't forget to set your Key Config!!! ;)





Getting PIUIO to detect within Stepmania 5 or OpenITG
Click here to learn how to use PIUIO with Stepmania 5 / OpenITG.

Thursday, August 3, 2017

How to Build OpenITG in Ubuntu from Source


This guide assumes you have downloaded the latest copy of the OpenITG source code from here: https://github.com/openitg/openitg You can optionally take the latest build from here: http://openitg.gr-p.com/ - However, this build hasn't been updated since 2013 and features quite a few bugs. So let's build from source using this guide.

NOTE: This guide has been written and tested using: Ubuntu 17.04 Zesty Zapus / 13 April 2017

1. Enable "Community-maintained free and open-source software (universe)".

a) Via the GUI here: Search > Software & Updates.

or

b) via Terminal here:
sudo add-apt-repository universe
sudo apt-get update


2. Open Terminal and execute the following...
sudo apt-get install libasound2-dev libpulse-dev libmad0-dev libtheora-dev libvorbis-dev libpng-dev libjpeg-dev libglu1-mesa-dev libgl1-mesa-dev xorg-dev libxrandr-dev libbz2-dev libglew1.5-dev glew-utils libglew-dev libglewmx-dev libgtk2.0-dev yasm automake liblua5.1-0-dev libusb-dev libavcodec-dev libavformat-dev libswscale-dev libresample1-dev libcrypto++-dev libsdl1.2-dev libavutil-dev libjpeg62-dev

NOTE: The old Beta2 build does not require these libraries: libavutil-dev libpng12-dev libjpeg62-dev


3. Install libpng12-dev. libpng12-dev is not available in the universe repository, so you have to add a new repository

a) Add the following line to: /etc/apt/sources.list
deb http://security.ubuntu.com/ubuntu trusty-security main

b) Now install libpng12-dev
sudo apt-get install libpng12-dev


4. Open Terminal and execute the following to build the source...
./build-home.sh


5. Open Terminal and execute the following to package it into a nice releasable form...
./generate-home-release.sh


6. A zip file (release) will now have been generated in the main directory called "home-tmp.zip". Well done!


NOTE: If you are trying to run OpenITG and it states that shared files/libs are missing, then chances are a lib was missing when it was compiled. Please check ALL required libraries were present on your system at compile time.

Need pads? and have PIUIO: https://github.com/djpohly/piuio

Credits: s34n and TeamBBC

Monday, October 24, 2016

Installing PIUIO Drivers for Windows


Need to install on Linux instead? Click here: http://s34nvideo.blogspot.com/2018/01/howto-install-piuio-drivers-in-linux.html




If you're building an MK6/MK9 for Pump It Up, or, OpenITG for In The Groove, or, simply a Stepmania setup... You may have opted for using a PIUIO to communicate with your arcade cabinet. If running a distribution of Linux, then installing PIUIO is a very simple task. However, if your are running Windows, you will need to build the driver yourself using Libusb.

Installing PIUIO on Windows
1. Download libusb-win32 here: http://sourceforge.net/projects/libusb-win32/ libusb-win32 is a port of the USB library libusb-0.1 (http://sf.net/projects/libusb/) for 32/64bit Windows (2k, XP, 2003, Vista, Win7, 2008; 98SE/ME for v0.1.12.2). The library allows user space applications to access many USB device on Windows.

2. Unzip libusb-win32 and run inf-wizard.exe (This will build a Windows driver for PIUIO).

3. Connect your PIUIO to your computer via USB (The fake PCI slot on the PIUIO is merely to sit it in a desktop computer properly, it does not communicate with a PC via PCI in any way at all.). To power the PIUIO, it will need power via Molex cable. If using a laptop, then you can use an old PC ATX power supply to power the PIUIO board via the molex connector. You will need to jump a couple of pins in the ATX connector to start the power supply once it's plugged in (This acts like a power switch on a desktop computer to start the power supply! More info: http://www.instructables.com/id/How-to-power-up-an-ATX-Power-Supply-without-a-PC/).

4. Hit next in inf-wizard.exe. Within the list, you are looking for a USB device called EZ-USB FX2... This is the PIUIO! Select it in the list, then hit next twice. We can now build a windows driver! Choose where you want to save the driver to (The driver is an INF file).

5. You can then install the PIUIO driver via inf-wizard.exe on the last screen, or, within Device Manager.


Getting PIUIO to detect within Stepmania 5 or OpenITG
Click here to learn how to use PIUIO with Stepmania 5 / OpenITG.