Logo

[SM5] Shutdown Button?

Register Log In Back To Forums

Post #1 · Posted at 2017-11-29 05:05:51am 6.4 years ago

Offline leadbman
leadbman Avatar Member
263 Posts
Australia
Reg. 2016-02-01

"Working On: 5thMix BGA bgchanges"
Hi all,

Just wondering if it's possible to create a button for the operator menu that can shutdown the computer SM is running on? Just curious as I think it would be a handy feature so I could shut down directly from the game rather than having to exit then use a keyboard or mouse to shutdown.

Just figured I'd ask in case someone has already worked something like that out.
https://zenius-i-vanisher.com/ddrsig/18213.png?t=1510895050
Really need to add my scores to the tracker soon.
Always learning, always trying to push the boundaries of SM.

Post #2 · Posted at 2017-11-29 01:53:15pm 6.4 years ago

Offline Kyzentun
Kyzentun Avatar Member
3,209 Posts
United States
Reg. 2008-02-20

"I'm honestly pissed off."
Add an option that goes to ScreenExit.
silenttype01: Kyzentun is never harsh. He says it how it is.

GENERATION 24: The first time you see this, copy it into your sig on any forum and add 1 to the generation. Social experiment.

Post #3 · Posted at 2017-11-29 02:21:13pm 6.4 years ago

Offline leadbman
leadbman Avatar Member
263 Posts
Australia
Reg. 2016-02-01

"Working On: 5thMix BGA bgchanges"
Thanks for that. I was after shutting down the whole PC though.

I did a bit more searching and found the os.execute function of lua, but then I searched for that specifically regarding SM5 and found a thread that you had commented in saying that the os.execute function isn't available in SM5. So what I'll do is just make a batch file to open SM and then keep checking if SM is still open and if it closes I'll get the cmd to shutdown the PC.

Might not be as clean as doing it from the theme, but it will do Smile Thanks for letting me know about the ScreenExit though, that'll work great in my operator menu (and will help me create the solution I need)!
https://zenius-i-vanisher.com/ddrsig/18213.png?t=1510895050
Really need to add my scores to the tracker soon.
Always learning, always trying to push the boundaries of SM.

Post #4 · Posted at 2017-12-04 08:47:09am 6.3 years ago

Offline ZTS
ZTS Avatar Member
139 Posts
Not Set
Reg. 2015-01-13

"But enough talk! Have at you!"

Last updated: 2017-12-04 08:49am
I'm not too sure what your use case is for this, but if you're putting it on an arcade there are better ways.

If you've used Windows Embedded before you can configure eShell.exe to react to the program it's launching. One option is to shut down the system when the program closes.

This doesn't account for StepMania crashing, but if you're putting it on an arcade you might as well just edit the source code so StepMania immediately restarts in a crash.

Another thing... Can't you make a batch file that runs shutdown after StepMania closes? If you put the shutdown command after the command to run StepMania it will wait.
Get Rave It Out! https://sites.google.com/view/riodevs/home
Want your theme made? I take commissions, PM for details.

Post #5 · Posted at 2017-12-04 09:03:10am 6.3 years ago

Offline leadbman
leadbman Avatar Member
263 Posts
Australia
Reg. 2016-02-01

"Working On: 5thMix BGA bgchanges"
Quote: ZTS
I'm not too sure what your use case is for this, but if you're putting it on an arcade there are better ways.

If you've used Windows Embedded before you can configure eShell.exe to react to the program it's launching. One option is to shut down the system when the program closes.

This doesn't account for StepMania crashing, but if you're putting it on an arcade you might as well just edit the source code so StepMania immediately restarts in a crash.

Another thing... Can't you make a batch file that runs shutdown after StepMania closes? If you put the shutdown command after the command to run StepMania it will wait.

I'm just running it at home on my cabinet I've built, not an arcade. I already have made scripts to check if it's a legit shutdown or not (I just made it so if I press a specific arrow on the P1/P2 controls it either will shutdown or restart SM).

Thanks for the suggestions though!
https://zenius-i-vanisher.com/ddrsig/18213.png?t=1510895050
Really need to add my scores to the tracker soon.
Always learning, always trying to push the boundaries of SM.
Register Log In Back To Forums

0 User(s) Viewing This Thread (Past 15 Minutes)

©2006-2024 Zenius -I- vanisher.com -5th style- IIPrivacy Policy
Web Server: 4% · Database: 4% · Server Time: 2024-04-27 05:55:37
This page took 0.006 seconds to execute.
Theme: starlight · Language: englishuk
Reset Theme & Language