Jump to content



Photo
* * * * * 5 votes

Call for testing


  • Please log in to reply
1630 replies to this topic

#801 BoltBait

BoltBait

    Software Developer

  • Members
  • PipPipPip
  • 459 posts
  • Location:Sacramento, CA

  • Flag: United States of America

  • Favorite Pinball: Elvira, Whitewater, Big Bang Bar, Fun House and All the old EM tables of the 70s that I played as a kid (including Buccaneer, Spirit of 76, and King Kool)

Posted 10 June 2019 - 09:59 PM

 

Could PinballY have an option to replace the "Shutdown" command for a "Logout" command instead?

 

This sounds like another good one for Javascript:

 

let User32 = dllImport.bind("User32.dll", `
    BOOL WINAPI ExitWindowsEx(UINT uFlags, DWORD dwReason);
`);

mainWindow.on("command", ev => {
    if (ev.id == command.PowerOffConfirm) {
        const EWX_LOGOFF = 0;
        User32.ExitWindowsEx(EWX_LOGOFF, 0);
        mainWindow.doCommand(command.Quit);
        ev.preventDefault();
    }
});

 

 

Brilliant!

 

Thank you, works like a charm!


How I built my B2S Pinball Cabinet, step-by-step, with pictures!  Full-sized cabinet for ~$700. Believe me, if I can do it, so can you!

"Making anything with your hands goes wonderfully with whatever in your life you would consider your grind." ~Nick Offerman


#802 javier1515

javier1515

    Pinball Fan

  • VIP
  • 574 posts
  • Location:Villa Maria Cordoba

  • Flag: Argentina

  • Favorite Pinball: The Addams Family, Hook



Posted 11 June 2019 - 01:46 AM

mjr I think I know what my problem is, I created a bat with 2 profiles, one for the Hyperspin and another for VP, if I run them out of Pinball and they work fine but when I run them from Pinball, no, I think I need a delay for That DisplayFucion act before the game.
As I can achieve that, in the options I see that he is late to finish the game and not to delay his release.
 
Sorry for so many questions but my English is very bad and many times I do not understand the options in English.  :bye2:

"Learning without thought is vain, thought without learning is dangerous." (Confucius)
 
"Aprender sin pensar es inútil, pensar sin aprender es peligroso". (Confucio)

 

 

Please, if you can help me with a small contribution to update my work team and continue to make more tables I will be eternally grateful.
 

#803 mjr

mjr

    Pinball Wizard

  • Members
  • PipPipPipPipPip
  • 3,346 posts

  • Flag: United States of America

  • Favorite Pinball: Medieval Madness

Posted 11 June 2019 - 02:12 AM

mjr I think I know what my problem is, I created a bat with 2 profiles, one for the Hyperspin and another for VP, if I run them out of Pinball and they work fine but when I run them from Pinball, no, I think I need a delay for That DisplayFucion act before the game.

As I can achieve that, in the options I see that he is late to finish the game and not to delay his release.

 

If it's a timing issue, hopefully you can add a delay to the batch file somewhere.  One way you can add a delay with standard Windows tools is CHOICE.  This will pause for 5 seconds:

 

   choice /t 5 /d y > nul

 

Change the number after /t to a different wait time as needed.



#804 javier1515

javier1515

    Pinball Fan

  • VIP
  • 574 posts
  • Location:Villa Maria Cordoba

  • Flag: Argentina

  • Favorite Pinball: The Addams Family, Hook



Posted 11 June 2019 - 02:14 AM

ok I'm going to try it now and I'll comment on the result.
 
Thanks for the help

"Learning without thought is vain, thought without learning is dangerous." (Confucius)
 
"Aprender sin pensar es inútil, pensar sin aprender es peligroso". (Confucio)

 

 

Please, if you can help me with a small contribution to update my work team and continue to make more tables I will be eternally grateful.
 

#805 javier1515

javier1515

    Pinball Fan

  • VIP
  • 574 posts
  • Location:Villa Maria Cordoba

  • Flag: Argentina

  • Favorite Pinball: The Addams Family, Hook



Posted 11 June 2019 - 02:27 AM

I do not know why but all the methods of inserting delay do not work for me, this is what I have in the bat

 

 

@ECHO OFF
 
choice /t 5 /d y > nul
 
START KillerInstinctX64_r.exe

"Learning without thought is vain, thought without learning is dangerous." (Confucius)
 
"Aprender sin pensar es inútil, pensar sin aprender es peligroso". (Confucio)

 

 

Please, if you can help me with a small contribution to update my work team and continue to make more tables I will be eternally grateful.
 

#806 javier1515

javier1515

    Pinball Fan

  • VIP
  • 574 posts
  • Location:Villa Maria Cordoba

  • Flag: Argentina

  • Favorite Pinball: The Addams Family, Hook



Posted 11 June 2019 - 08:01 PM

Well finally I was able to implement PC games to PinballY, I am very happy.
PinballY work more fluid than PinballX for my and apart it has some very interesting options for my taste.
 
 
@MJR I thank you again for this fantastic FrontEnd  :love39:  :otvclap:  :db:

Edited by javier1515, 12 June 2019 - 01:24 AM.

"Learning without thought is vain, thought without learning is dangerous." (Confucius)
 
"Aprender sin pensar es inútil, pensar sin aprender es peligroso". (Confucio)

 

 

Please, if you can help me with a small contribution to update my work team and continue to make more tables I will be eternally grateful.
 

#807 BoltBait

BoltBait

    Software Developer

  • Members
  • PipPipPip
  • 459 posts
  • Location:Sacramento, CA

  • Flag: United States of America

  • Favorite Pinball: Elvira, Whitewater, Big Bang Bar, Fun House and All the old EM tables of the 70s that I played as a kid (including Buccaneer, Spirit of 76, and King Kool)

Posted 12 June 2019 - 07:00 PM

Thank you, works like a charm!

 

Oops.  Spoke too soon.

 

I installed PinballY a few days ago and asked about replacing Shutdown with Logout.  On that day, everything worked fine.  I setup my window placements, customized my key remapping for my cabinet, and installed that JavaScript.  I ran PinballY several times.  Everything was working fine even though I had not customized any of my 50 installed tables. I was just having fun scrolling through the filenames using my flipper buttons and running tables.

 

Today, I was going to start customizing all the table graphics in PinballY, so I turn on my cab and run PinballY... it had lost all windows placements, key remappings, and it says that it can't find ANY tables!?

 

In between these two days, I had updated VPX from 10.4 to 10.5... that's the only change.  All of my tables are still in the same directory and can be launched in VP9 or VPX from explorer just fine.  (BTW, I have VP9/X installed to default directories on my C drive and I'm running Windows 10.)

 

Any ideas on how to get PinballY to see my installed tables again?  Should I try a reinstall, after all, I haven't actually customized anything yet?  I'm just concerned I did something wrong... I don't want this to happen again.

 

(Also, it would be handy if the PinballY menus would still work with the keyboard arrows/enter even when the keys are remapped to joystick buttons--I use the VirtuaPin Digital Plunger v3. I understand if this is not possible due to keyboard reassignments.)


Edited by BoltBait, 12 June 2019 - 08:00 PM.

How I built my B2S Pinball Cabinet, step-by-step, with pictures!  Full-sized cabinet for ~$700. Believe me, if I can do it, so can you!

"Making anything with your hands goes wonderfully with whatever in your life you would consider your grind." ~Nick Offerman


#808 mjr

mjr

    Pinball Wizard

  • Members
  • PipPipPipPipPip
  • 3,346 posts

  • Flag: United States of America

  • Favorite Pinball: Medieval Madness

Posted 12 June 2019 - 09:17 PM

In between these two days, I had updated VPX from 10.4 to 10.5... that's the only change.  All of my tables are still in the same directory and can be launched in VP9 or VPX from explorer just fine.  (BTW, I have VP9/X installed to default directories on my C drive and I'm running Windows 10.)

 

Any ideas on how to get PinballY to see my installed tables again?  

 

As always, check the log.  Make sure "Player system setup and table searches" is check-marked in the Log File page of the options.  Run the program.  Exit.  Check PinballY.log.  Read through the parts where it's scanning for tables.  Compare the directories it's searching to your actual install path.  

 

At a guess, maybe you moved your VP table folder in the process of the update.

 

 

(Also, it would be handy if the PinballY menus would still work with the keyboard arrows/enter even when the keys are remapped to joystick buttons--I use the VirtuaPin Digital Plunger v3. I understand if this is not possible due to keyboard reassignments.)

 

You can actually assign multiple keys and/or joystick buttons to a single command.  Go to the Buttons page in the options.  Find the function you want to assign to multiple keys in the list (Next and Previous in this case).  Hover the mouse over that line, and you'll see a little green "+" appear at the right.  Click the "+" to add a new blank row for the command.  Click in the Key column of the new row and press the key/button you want to assign.



#809 BoltBait

BoltBait

    Software Developer

  • Members
  • PipPipPip
  • 459 posts
  • Location:Sacramento, CA

  • Flag: United States of America

  • Favorite Pinball: Elvira, Whitewater, Big Bang Bar, Fun House and All the old EM tables of the 70s that I played as a kid (including Buccaneer, Spirit of 76, and King Kool)

Posted 12 June 2019 - 11:18 PM

I ended up just deleting the settings.txt file which reset the system.  Then I configured everything again. I disabled the pinball systems I'm not using and configured the ones I am by putting the paths to the EXE's into the DefaultSettings.txt file. Tweaked a few other settings in there and turned logging on for everything. THEN ran the PinballY menu system. Working MUCH better now!
  
In the process, I did roll back PinballX to version 10.4 as some of my tables were "wonkey" on 10.5 (like the CarToons table was playing the music chimes too fast and other tables were counting the bonus too fast.) But, none of the paths changed. So, I'm not really sure what the problem was. I must have messed up something in the settings.txt file. That's the only thing I can think of.

 

You can actually assign multiple keys and/or joystick buttons to a single command.  Go to the Buttons page in the options.  Find the function you want to assign to multiple keys in the list (Next and Previous in this case).  Hover the mouse over that line, and you'll see a little green "+" appear at the right.  Click the "+" to add a new blank row for the command.  Click in the Key column of the new row and press the key/button you want to assign.


I did not notice that! Cool.

Now, I have everything setup the way I want: menus controlled with either the keyboard or cab buttons.

Time to configure the individual tables with graphics etc. ... :D

Thanks again for your help!

Edited by BoltBait, 12 June 2019 - 11:23 PM.

How I built my B2S Pinball Cabinet, step-by-step, with pictures!  Full-sized cabinet for ~$700. Believe me, if I can do it, so can you!

"Making anything with your hands goes wonderfully with whatever in your life you would consider your grind." ~Nick Offerman


#810 BoltBait

BoltBait

    Software Developer

  • Members
  • PipPipPip
  • 459 posts
  • Location:Sacramento, CA

  • Flag: United States of America

  • Favorite Pinball: Elvira, Whitewater, Big Bang Bar, Fun House and All the old EM tables of the 70s that I played as a kid (including Buccaneer, Spirit of 76, and King Kool)

Posted 12 June 2019 - 11:47 PM

BTW, you need a PayPal donation link on your site so I can send you some money.

How I built my B2S Pinball Cabinet, step-by-step, with pictures!  Full-sized cabinet for ~$700. Believe me, if I can do it, so can you!

"Making anything with your hands goes wonderfully with whatever in your life you would consider your grind." ~Nick Offerman


#811 BoltBait

BoltBait

    Software Developer

  • Members
  • PipPipPip
  • 459 posts
  • Location:Sacramento, CA

  • Flag: United States of America

  • Favorite Pinball: Elvira, Whitewater, Big Bang Bar, Fun House and All the old EM tables of the 70s that I played as a kid (including Buccaneer, Spirit of 76, and King Kool)

Posted 13 June 2019 - 12:45 AM

Ugh. It just reset again. But, I think I know what the problem is...

When exiting PinballY everything works fine. Rerun and all my settings are restored.

When Shutting down (via the Logout script given above) the settings.txt file gets corrupted. (Luckily, I'd made a backup of it earlier once I had all the settings the way I wanted them.) Restoring from the backup fixes the problem.

Perhaps you need to flush the output buffer after saving the settings before executing the logout command?

EDIT: I just double checked. Yup, PinballY saves the settings file every time it exits. And, every time I exit via the logout script above it corrupts the settings.txt file.

Edited by BoltBait, 13 June 2019 - 01:00 AM.

How I built my B2S Pinball Cabinet, step-by-step, with pictures!  Full-sized cabinet for ~$700. Believe me, if I can do it, so can you!

"Making anything with your hands goes wonderfully with whatever in your life you would consider your grind." ~Nick Offerman


#812 STV

STV

    Enthusiast

  • Members
  • PipPipPip
  • 436 posts

  • Flag: United States of America

  • Favorite Pinball: Varies. 140 in the list ATM.

Posted 13 June 2019 - 12:50 AM

I've had the settings.txt get reset or corrupted twice also in the entire time running it since early alphas.     This is where the backups come in.   move settings.txt back from a backup, and back in business as if nothing bad happened.     I never reported it as it seemed to be possibly linked to a hard reset of the machine (power off)  or some other unclean shutdown for whatever reason.    

 

Backups backups backups!   :)



#813 djlunchbox

djlunchbox

    Enthusiast

  • Members
  • PipPipPip
  • 157 posts

  • Flag: El Salvador

  • Favorite Pinball: WCS 94, Theatre of Magic, TOTAN

Posted 08 July 2019 - 04:57 PM

Anyone have some cool startup videos? 



#814 Carny_Priest

Carny_Priest

    Pinball Fan

  • Members
  • PipPipPipPip
  • 1,258 posts
  • Location:Austin, TX

  • Flag: United States of America

  • Favorite Pinball: EATPM

Posted 08 July 2019 - 09:38 PM

Nope. Startup videos only delay the playing of pinball. When I want to play pinball, I play pinball. When I want to watch a video, I watch NetFlix.



#815 mjr

mjr

    Pinball Wizard

  • Members
  • PipPipPipPipPip
  • 3,346 posts

  • Flag: United States of America

  • Favorite Pinball: Medieval Madness

Posted 08 July 2019 - 10:34 PM

Ugh. It just reset again. But, I think I know what the problem is...

When exiting PinballY everything works fine. Rerun and all my settings are restored.

When Shutting down (via the Logout script given above) the settings.txt file gets corrupted. (Luckily, I'd made a backup of it earlier once I had all the settings the way I wanted them.) Restoring from the backup fixes the problem.

 

Did you ever figure that out?

 

You might try adding this line to the javascript code, before doing the system call to log out:

if (optionSettings.isDirty())
    optionSettings.save();

That'll explicitly save the settings (and mark the in-memory copy as "clean", meaning not needing to be written to disk again) before the log-out sequence starts.  Windows kills all running programs when you shut down or log out via the API.  It's supposed to do that in an orderly fashion that lets everything shut down cleanly, but maybe whatever weird thing about your system that makes this log-out step necessary is also affecting the clean shutdown.  Saving the file explicitly before starting the shutdown sequence might help.



#816 BoltBait

BoltBait

    Software Developer

  • Members
  • PipPipPip
  • 459 posts
  • Location:Sacramento, CA

  • Flag: United States of America

  • Favorite Pinball: Elvira, Whitewater, Big Bang Bar, Fun House and All the old EM tables of the 70s that I played as a kid (including Buccaneer, Spirit of 76, and King Kool)

Posted 09 July 2019 - 06:36 PM

 

Ugh. It just reset again. But, I think I know what the problem is...

When exiting PinballY everything works fine. Rerun and all my settings are restored.

When Shutting down (via the Logout script given above) the settings.txt file gets corrupted. (Luckily, I'd made a backup of it earlier once I had all the settings the way I wanted them.) Restoring from the backup fixes the problem.

 
Did you ever figure that out?
 
You might try adding this line to the javascript code, before doing the system call to log out:
if (optionSettings.isDirty())
    optionSettings.save();
That'll explicitly save the settings (and mark the in-memory copy as "clean", meaning not needing to be written to disk again) before the log-out sequence starts.  Windows kills all running programs when you shut down or log out via the API.  It's supposed to do that in an orderly fashion that lets everything shut down cleanly, but maybe whatever weird thing about your system that makes this log-out step necessary is also affecting the clean shutdown.  Saving the file explicitly before starting the shutdown sequence might help.

 

 
I had solved the problem by launching PinballY via a batch file that included a logout command at the end.
 
But, this looks much better.  Let me give it a try...
 
*10 minutes later*
 
Yup. This totally solves the problem.  THANKS!
 
I tried this several times and there was no corruption at all.
 
Here's what my main.js file looks like now:

let User32 = dllImport.bind("User32.dll", `
	BOOL WINAPI ExitWindowsEx(UINT uFlags, DWORD dwReason);
`);

mainWindow.on("command", ev => {
	if (ev.id == command.PowerOffConfirm) {
		if (optionSettings.isDirty()) {
			optionSettings.save();
		}
		const EWX_LOGOFF = 0;
		User32.ExitWindowsEx(EWX_LOGOFF, 0);
		mainWindow.doCommand(command.Quit);
		ev.preventDefault();
	}
});

BTW, the reason I need to LOGOUT instead of SHUTDOWN is because my system's BIOS has an option to power up the computer after power failure and my entire system is plugged into a power strip.  So, if I logout and then hit the switch on my power strip, when I turn the switch back on, the computer powers up and boots... thinking there'd been a power failure.  However, if I shutdown my PC and then hit the power strip switch, when I turn it back on, the PC does nothing and I have to open the box and hit the PC's power button to get the system to boot.


Edited by BoltBait, 09 July 2019 - 06:43 PM.

How I built my B2S Pinball Cabinet, step-by-step, with pictures!  Full-sized cabinet for ~$700. Believe me, if I can do it, so can you!

"Making anything with your hands goes wonderfully with whatever in your life you would consider your grind." ~Nick Offerman


#817 Onevox

Onevox

    VP Zealot

  • Members
  • PipPipPip
  • 269 posts
  • Location:Virginia, USA

  • Flag: United States of America

  • Favorite Pinball: The Getaway, High Speed II

Posted 15 July 2019 - 12:01 AM

I want to give this a go, but I'm stuck on one thing that I don't see in the documentation. How are topper photo and video files linked to games if I'm starting from scratch? (not a pinballx migration). I moved from pbx to pup a while back, so my pbx files are woefully out of date so I'm starting over). I want to run a full batch record once I get the toppers linked.

 

Thanks mjr. Looking forward to getting this set up.


_____________________

 

My build: The Joker Poker.

http://www.vpforums....showtopic=37574


#818 djlunchbox

djlunchbox

    Enthusiast

  • Members
  • PipPipPip
  • 157 posts

  • Flag: El Salvador

  • Favorite Pinball: WCS 94, Theatre of Magic, TOTAN

Posted 15 July 2019 - 12:19 AM

You can either drag and drop them per table or place them in the appropriate media folder

PinballY\Media\Visual Pinball\topper images

PinballY\Media\Visual Pinball\topper videos

Same goes for all other systems. So long as the files all have the table name

#819 Thalamus

Thalamus

    VPF Veteran

  • Platinum Supporter
  • 5,007 posts

  • Flag: Norway

  • Favorite Pinball: GOT, Alien Star, LOTR, TOM

Posted 28 July 2019 - 02:29 PM

MJR. I just noticed that it doesn't matter if I tell PBY to show the "Real Color DMD Video" after table has started in the recent releases. I'm pretty sure that this was working some revisions back. I haven't experimented much with it though. But, I have all Loserman tables setup the same where I want to a small video rotating in the backglass telling me tables, name and company.


From now on. I won't help anyone here at VPF. Please ask Noah why that is.


#820 djlunchbox

djlunchbox

    Enthusiast

  • Members
  • PipPipPip
  • 157 posts

  • Flag: El Salvador

  • Favorite Pinball: WCS 94, Theatre of Magic, TOTAN

Posted 14 August 2019 - 07:24 PM

Hello! 

 

Long time write!

 

Hey MJR would it be possible to add a systems wheel list? So you can scroll your through your systems? 

 

Similar to this? 

 

https://www.gameex.i...s-pinballx-349/

 

:D