New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

openitg/stepmania switcher #2

Closed
ianklatzco opened this Issue Nov 12, 2017 · 7 comments

Comments

Projects
None yet
2 participants
@ianklatzco
Copy link
Member

ianklatzco commented Nov 12, 2017

problem:

  • openitg and stepmania are both installed (~/openitg/openitg and ~/SM5/stepmania respectively)

  • i want any member to be able to hit a button code to swap between them so that anyone can play legacy content without my needing to be present to switch

  • stepmania starts at boot via a file or line in ~/.config/autostart

  • altering this to a script that

    • starts stepmania at boot
    • on the death of stepmania, starts openitg
    • on the death of openitg, re-calls the script
  • then writing a button code into each theme to call the Exit Game function

would solve the problem.

there's a script in ~/Util/swap-games.sh, but i think i left it in a state that forkbombs the cab.

i'm working on this bit-by-bit, will report progress here.

(once this is done we can load a bunch of 3.95 compatible mods content)

@ianklatzco ianklatzco self-assigned this Nov 12, 2017

@ianklatzco

This comment has been minimized.

Copy link
Member

ianklatzco commented Feb 28, 2018

the script no longer forkbombs.

there was an audio issue (audio would cut out after a switch) but i resolved it by adding longer delays between closing and opening versions of stepmania.

@ianklatzco

This comment has been minimized.

Copy link
Member

ianklatzco commented Mar 9, 2018

#!/bin/bash
(export DISPLAY=:0.0 ;~/SM5/stepmania 2>&1 /dev/null &) &&\
(export DISPLAY=:0.0 ; ~/openitg/openitg 2>&1 /dev/null &) && ~/Util/swap-games.sh

(might forkbomb)

@andrewipark

This comment has been minimized.

Copy link
Collaborator

andrewipark commented Aug 2, 2018

Super late, but requesting upload of your copy of this to the repo @ianklatzco . In all the excitement this summer I forgot to copy this over.

@ianklatzco

This comment has been minimized.

Copy link
Member

ianklatzco commented Aug 2, 2018

what exactly? the above snippet of code?

@andrewipark

This comment has been minimized.

Copy link
Collaborator

andrewipark commented Aug 2, 2018

~/Util/swap-games.sh

@ianklatzco

This comment has been minimized.

Copy link
Member

ianklatzco commented Aug 5, 2018

i no longer have it, but i'm pretty sure it was just those above three lines.

@ianklatzco

This comment has been minimized.

Copy link
Member

ianklatzco commented Sep 30, 2018

Solved with some amazon dash buttons and the amazon-dash pip package.
photo_2018-09-29_22-27-23

@ianklatzco ianklatzco closed this Sep 30, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment