Logo

SM5 - Screenshot saving in USB drives

Register Log In Back To Forums

Post #1 · Posted at 2016-05-09 08:54:21am 9 years ago

Offline Laura_DDR
Laura_DDR Avatar Member
7 Posts
Spain
Reg. 2008-05-26

Hi,
I´m using a PC running Stepmania 5 (last version) on an DDR cabinet vía a JPAC.
I´ve recently configured USB profiles & saving and it works like a charm.
But there´s something I still don´t know how to do: when playing with our USB drives, we want to be able to save screenshots of our scores in our USB drives instead of having them saved in the /Screenshots Stepmania install folder on the PC. For example, having a screenshot of our scores by pressing the two yellow buttons on the front panel simultaneously.
Currently we can only save them using PrintScreen. But the goal is to somehow "map" this key to any of the buttons on the front panel to take the screenshot and then have it saved on the USB drives.
¿Any clues on how we can do this?
Thanks in advance,

Post #2 · Posted at 2016-05-09 05:08:48pm 9 years ago

Offline AxelWasHere
AxelWasHere Avatar Member
1,637 Posts
United States
Reg. 2012-07-13

"No."
I believe the button mapped to "SELECT" does this?
https://i.imgur.com/vnrpBDk.gif

Post #3 · Posted at 2016-05-09 09:18:33pm 9 years ago

Offline Th3_Ov3rHell_3XoduZ
Th3_Ov3rHell_3XoduZ Avatar Member
313 Posts
Chile
Reg. 2012-09-13

"ITG, The Best Dance Machine!"
You could try something, on the Theme you are currently running, you can use a function called SaveScreenshot() that obviously, saves a screenshot. I have never tried it by myself.

This function has the following arguments:

The Function: SaveScreenshot( PlayerNumber pn, bool compress, bool sign, string prefix, string suffix )
Description: Saves a screenshot. If pn is nil, saves to the machine's Screenshots dir, otherwise saves to the profile's Screenshots dir. Saves as jpg if compress is true, or png if compress is false. The screenshot is signed if sign is true. prefix and suffix are optional strings to add to the beginning and end of the filename.

You can use that on any part of the Theme on a .lua file. If u need something else, I will try my best to answer it.
Quote: Released Themes for SM5 Beta 3
Quote: Released Themes for SM5 Beta 4 & 5.0.7
Quote: Simfles Packs Released

Post #4 · Posted at 2016-05-10 06:55:47am 9 years ago

Offline Laura_DDR
Laura_DDR Avatar Member
7 Posts
Spain
Reg. 2008-05-26


Last updated: 2016-05-10 06:58am
Thanks both for your reply !! I solved this by myself. By doing a little research on the theme code I figured out what I needed:

I had to manually edit the theme metrics to force the Codescreenshot to be invoked by just holding MenuLeft instead of Select.
Also, I was missing the correct screenshot storage paths for P1 and P2 on the metrics.ini.
No need to edit any .lua file (I did as well, but I just renamed the folder where the screenshots are stored).

I have to mention that holding Select did the job as well but that wasn´t what I needed as I´m using an arcade cabinet and don´t want to use the keyboard keys, but just the cabinet buttons.

Post #5 · Posted at 2016-05-10 07:05:00pm 9 years ago

Offline AxelWasHere
AxelWasHere Avatar Member
1,637 Posts
United States
Reg. 2012-07-13

"No."

Last updated: 2016-05-10 07:06pm
Quote: Laura_DDR
Thanks both for your reply !! I solved this by myself. By doing a little research on the theme code I figured out what I needed:

I had to manually edit the theme metrics to force the Codescreenshot to be invoked by just holding MenuLeft instead of Select.
Also, I was missing the correct screenshot storage paths for P1 and P2 on the metrics.ini.
No need to edit any .lua file (I did as well, but I just renamed the folder where the screenshots are stored).

I have to mention that holding Select did the job as well but that wasn´t what I needed as I´m using an arcade cabinet and don´t want to use the keyboard keys, but just the cabinet buttons.

Pressing LEFT RIGHT and START activates Select as well i believe.

EDIT: Nevermind it's a theme im using that did it. Don't remember which one.
Probably was just on OITG
https://i.imgur.com/vnrpBDk.gif
Register Log In Back To Forums

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

©2006-2025 Zenius -I- vanisher.com -5th style- IIPrivacy Policy
Web Server: 7% · Database: 4% · Server Time: 2025-05-16 07:01:52
This page took 0.006 seconds to execute.
Theme: starlight · Language: englishuk
Reset Theme & Language