Jump to content



Photo
* * * * * 5 votes

Call for testing


  • Please log in to reply
1630 replies to this topic

#1161 mjr

mjr

    Pinball Wizard

  • Members
  • PipPipPipPipPip
  • 3,346 posts

  • Flag: United States of America

  • Favorite Pinball: Medieval Madness

Posted 10 May 2020 - 05:22 PM

I have my VPX set up so that soundfx are turned off for items I have contactors for (flippers, slingshots, etc). In Night Mode, I'd like to automatically switch back to using soundfx, and then back to using DOF in "Day Mode". Is this possible?

 

I’m just talking about the replacing the contactors with the associated sound effects when the Pinscape is in night mode. I thought there might be some way for PinballY to manage that.

 

PinballY can indeed tell whether or not Pinscape is in night mode, but the VPX options are outside of its control.  As far as I know, the VPX setting for that is stored in the registry, so you might be able to do something with Javascript to edit the registry before each game launch.  That would be kind of ugly, though.  It might be better to put in a request with the VPX guys to add a command line option to control the DOF effects status.  Then you could use some simple Javascript on the PBY side to edit the command line parameters for each VPX launch according to the night mode status, adding or not adding the (yet to be determined) new VPX option according to the Pinscape night mode status.  (I think I'd also have to add a little code to PBY to expose the night mode status to Javascript, but that much would be easy on my side.)



#1162 miguelcerca

miguelcerca

    Neophyte

  • Members
  • Pip
  • 7 posts

  • Flag: ---------

  • Favorite Pinball: madness

Posted 10 May 2020 - 07:45 PM

I'm having trouble with the era-specific company logos

I have two files:

Stern (1999-2009).png

Stern (2010-2020).png

with only those two images in the Company Logos folder, I get no image in PinballY

If I rename one image to:

Stern.png

PinballY only shows that image....no era-specific seems to work, what am I missing?

thanks



#1163 mjr

mjr

    Pinball Wizard

  • Members
  • PipPipPipPipPip
  • 3,346 posts

  • Flag: United States of America

  • Favorite Pinball: Medieval Madness

Posted 10 May 2020 - 08:25 PM

I'm having trouble with the era-specific company logos

I have two files:

Stern (1999-2009).png

Stern (2010-2020).png

 

I just took a quick look at the code, and it looks like there's an error in the matching pattern.  Try it without a space before the parens, just smooshing the parens up against the manufacturer name:

 

Stern(1999-2009).png

Stern(2010-2020).png

 

I'll fix the match pattern for the next update, but I think that should let you work around it until then.



#1164 miguelcerca

miguelcerca

    Neophyte

  • Members
  • Pip
  • 7 posts

  • Flag: ---------

  • Favorite Pinball: madness

Posted 11 May 2020 - 03:02 PM

I'm having trouble with the era-specific company logos
I have two files:
Stern (1999-2009).png
Stern (2010-2020).png

 
I just took a quick look at the code, and it looks like there's an error in the matching pattern.  Try it without a space before the parens, just smooshing the parens up against the manufacturer name:
 
Stern(1999-2009).png
Stern(2010-2020).png
 
I'll fix the match pattern for the next update, but I think that should let you work around it until then.

That kind of worked, now when PinballY starts it chooses one of the two files at random for all games. Restart PinballY and it might choose the other...

#1165 djlunchbox

djlunchbox

    Enthusiast

  • Members
  • PipPipPip
  • 157 posts

  • Flag: El Salvador

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

Posted 13 May 2020 - 07:19 PM

 

 

I'm having trouble with the era-specific company logos
I have two files:
Stern (1999-2009).png
Stern (2010-2020).png

 
I just took a quick look at the code, and it looks like there's an error in the matching pattern.  Try it without a space before the parens, just smooshing the parens up against the manufacturer name:
 
Stern(1999-2009).png
Stern(2010-2020).png
 
I'll fix the match pattern for the next update, but I think that should let you work around it until then.

That kind of worked, now when PinballY starts it chooses one of the two files at random for all games. Restart PinballY and it might choose the other...

 

 

I think you need to make the image name something simple then for every table that you want to to use a specific logo, edit the manufacturer name to match it in the table info.

 

i.e name them like Stern99 and Stern2010 that way it's not fuzzy matching and causing random. 

 

this is what I did with Slamt1lt's tables. I grabbed his ultimate pro logo and named it Slamt1lt so his tables come up with the Ultimate Pro logo as the manufacturer. when I let the info get autofilled I just change the manufacturer name. 

 

 

 

On another note, @MJR I was wondering if you would be open to adding the option of an overlay be added to the attract mode. There's someone making some cool underlay and overlay images and they'd be awesome to have in PBY.

 

the art is 2 separate piece, but they look like one solid piece as seen below. Maybe a future update? 

 

Captura-Stranger-Things-1038x1845.png



#1166 mjr

mjr

    Pinball Wizard

  • Members
  • PipPipPipPipPip
  • 3,346 posts

  • Flag: United States of America

  • Favorite Pinball: Medieval Madness

Posted 14 May 2020 - 06:01 AM

i.e name them like Stern99 and Stern2010 that way it's not fuzzy matching and causing random. 

 

There actually isn't anything "fuzzy" or random about it - the rules are pretty simple and deterministic.  You can find the details in the help under Options > Info Box - scroll down to Manufacturer Logos.  The problem picking the right one is just a bug, not any sort of intentional "fuzzy" matching.

 

 

I was wondering if you would be open to adding the option of an overlay be added to the attract mode.

 

That should be doable with Javascript.  If you want to give it a try, see the help under Javascript > Drawing Layers for how to do custom overlay drawing.  If you want it to be tied to attract mode, you can tie it to the attract mode start/stop events (Javascript scripting > Events > Event Types > AttractModeEvent).



#1167 apophis

apophis

    Enthusiast

  • Members
  • PipPipPip
  • 99 posts
  • Location:Mission Viejo, California

  • Flag: United States of America

  • Favorite Pinball: The Getaway

Posted 17 May 2020 - 02:26 PM

 

Another thought if hardware acceleration not possible: if I could capture the videos to HD resolution, my CPU would be much happier. Is that possible?

 
I think that's a good workaround - HD is no problem even for older CPUs at this point.  There aren't currently any PinballY settings to override the capture settings like that, but I can think of a couple of manaul approaches you could use:
 
The first is to just switch your monitor to HD mode when you want to do a capture.  PinballY will capture in whatever mode you're currently in.
 
The second is to go through your existing captured videos with a batch file and transcode them to HD using ffmpeg.  The ffmpeg command line for that should be pretty simple - a little web searching should find an example.
By the way, I added another 8GB of RAM bringing the total to 16GB And that helped a lot with 4k video playback. But I'm curious if there might be a way to have PinballY automatically run the ffmpeg transcoding operation immediately after capturing the 4k video? That would be a really nice feature. I'm guessing there is some scripting solution?

Edited by dmassie, 17 May 2020 - 02:28 PM.


#1168 mjr

mjr

    Pinball Wizard

  • Members
  • PipPipPipPipPip
  • 3,346 posts

  • Flag: United States of America

  • Favorite Pinball: Medieval Madness

Posted 18 May 2020 - 05:30 PM

But I'm curious if there might be a way to have PinballY automatically run the ffmpeg transcoding operation immediately after capturing the 4k video? That would be a really nice feature. I'm guessing there is some scripting solution?

 

Yeah, you could definitely rig something with Javascript, by listening for launch events.  But it would be pretty inefficient to do it that way, since you'd have to make your CPU go to all the work of doing the 4K coding during the original capture, and then doing the HD transcoding as a separate step.  It would be much more efficient to just encode it at HD resolution in the first place, during the capture.  I think what I need to do is add a way to modify the ffmpeg command line from Javascript - probably via a new event that fires just before the capture begins, giving you a chance to intervene with command line changes.  Then you could insert a "-vf scale" ffmpeg option to get the desired sizing.



#1169 licwip

licwip

    Enthusiast

  • Platinum Supporter
  • 203 posts

  • Flag: United States of America

  • Favorite Pinball: Space Cadet

Posted 21 May 2020 - 03:31 PM

This might be obvious to everyone but me... I'm a big fan of PinballY and want it to be my only front-end, but there are some intriguing tables out there that use PuP-packs. Am I able to play those tables through PinballY in any way? Or do I have to run a second front-end in Pinup Popper, which I'd rather not do? Thanks in advance.



#1170 Thalamus

Thalamus

    VPF Veteran

  • Platinum Supporter
  • 5,007 posts

  • Flag: Norway

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

Posted 21 May 2020 - 05:31 PM

I don't have many pup pack tables. I remember that there is one, but, not which one, that I didn't get to work with PBY. Not a big issue for me.


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


#1171 miguelcerca

miguelcerca

    Neophyte

  • Members
  • Pip
  • 7 posts

  • Flag: ---------

  • Favorite Pinball: madness

Posted 22 May 2020 - 12:18 AM

I have no trouble playing any tables with pinup packs through pinball y.

#1172 mjr

mjr

    Pinball Wizard

  • Members
  • PipPipPipPipPip
  • 3,346 posts

  • Flag: United States of America

  • Favorite Pinball: Medieval Madness

Posted 22 May 2020 - 02:45 AM

licwip - as far as I know, you don't need the pup front end to use the pup player with games.  The pup player is just a run-time add-on, like the B2S backglass system or DOF, so you should be able to use it no matter how you launch games.



#1173 licwip

licwip

    Enthusiast

  • Platinum Supporter
  • 203 posts

  • Flag: United States of America

  • Favorite Pinball: Space Cadet

Posted 22 May 2020 - 04:27 AM

That's awesome news. Thanks, guys!



#1174 miguelcerca

miguelcerca

    Neophyte

  • Members
  • Pip
  • 7 posts

  • Flag: ---------

  • Favorite Pinball: madness

Posted 31 May 2020 - 03:48 PM

Hi there, trying to get a javascript to hide the Topper Window on certain games....I can get the topper to move off the screen when a certain game is selected, however when I exit the game and go back to PinballY, the Topper screen is moved to the playfield until I go to the next game in the wheel....

here's what I've got to do that, but I think that actually hiding the window would be better

thanks for any input

const PINUP_TOPPER_XPOS = 4224;
const NORMAL_TOPPER_XPOS = 3200;
gameList.on("gameselect", ev => {
    let xpos = ev.game.categories.indexOf("pinup-dmd") < 0 ? NORMAL_TOPPER_XPOS : PINUP_TOPPER_XPOS;
    topperWindow.setWindowPos(null, xpos, 0, 1024, 439, null | SWP_NOACTIVATE | SWP_NOZORDER);
});



#1175 miguelcerca

miguelcerca

    Neophyte

  • Members
  • Pip
  • 7 posts

  • Flag: ---------

  • Favorite Pinball: madness

Posted 31 May 2020 - 03:59 PM

 

Hi there, trying to get a javascript to hide the Topper Window on certain games....I can get the topper to move off the screen when a certain game is selected, however when I exit the game and go back to PinballY, the Topper screen is moved to the playfield until I go to the next game in the wheel....

here's what I've got to do that, but I think that actually hiding the window would be better

thanks for any input

const PINUP_TOPPER_XPOS = 4224;
const NORMAL_TOPPER_XPOS = 3200;
gameList.on("gameselect", ev => {
    let xpos = ev.game.categories.indexOf("pinup-dmd") < 0 ? NORMAL_TOPPER_XPOS : PINUP_TOPPER_XPOS;
    topperWindow.setWindowPos(null, xpos, 0, 1024, 439, null | SWP_NOACTIVATE | SWP_NOZORDER);
});

well, i guess i just needed to do a little more reading in the documentation!!!

i got it using this: thanks so much for your well documented work!!

const PINUP_TOPPER = "min";
const NORMAL_TOPPER = "restore";
gameList.on("gameselect", ev => {
    let state = ev.game.categories.indexOf("pinup-dmd") < 0 ? NORMAL_TOPPER : PINUP_TOPPER;
    topperWindow.setWindowState(state);
});



#1176 djlunchbox

djlunchbox

    Enthusiast

  • Members
  • PipPipPip
  • 157 posts

  • Flag: El Salvador

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

Posted 08 June 2020 - 12:10 AM

Hi there, trying to get a javascript to hide the Topper Window on certain games....I can get the topper to move off the screen when a certain game is selected, however when I exit the game and go back to PinballY, the Topper screen is moved to the playfield until I go to the next game in the wheel....
here's what I've got to do that, but I think that actually hiding the window would be better
thanks for any input

const PINUP_TOPPER_XPOS = 4224;
const NORMAL_TOPPER_XPOS = 3200;
gameList.on("gameselect", ev => {
    let xpos = ev.game.categories.indexOf("pinup-dmd") < 0 ? NORMAL_TOPPER_XPOS : PINUP_TOPPER_XPOS;
    topperWindow.setWindowPos(null, xpos, 0, 1024, 439, null | SWP_NOACTIVATE | SWP_NOZORDER);
});

well, i guess i just needed to do a little more reading in the documentation!!!
i got it using this: thanks so much for your well documented work!!
const PINUP_TOPPER = "min";
const NORMAL_TOPPER = "restore";
gameList.on("gameselect", ev => {
    let state = ev.game.categories.indexOf("pinup-dmd") < 0 ? NORMAL_TOPPER : PINUP_TOPPER;
    topperWindow.setWindowState(state);
});



You realize this is already possible in PBY without the need for a JavaScript? Go into the edit table info window in the operator menu. There (where you enter the table info) will be checkboxes at the bottom of the window for all available display windows. All you need to do is select which window you want to keep open or close and select it. If you want a specific window not to show after table launch, select it and make sure it has the red circle with the slash. This will override your global system settings. So if you have your toppers to always stay on for a system, this will let you pick and choose tables to ignore the global setting.

#1177 Roadblock

Roadblock

    Enthusiast

  • Members
  • PipPipPip
  • 169 posts
  • Location:Moncton, NB

  • Flag: Canada

  • Favorite Pinball: Attack from Mars

Posted 10 June 2020 - 11:58 PM

Hi mjr,

I'm having trouble getting VPX tables to start that use UltraDMD.

I have to click on the playfield to get them going.

I've tried adding [click playfield] to the Startup keys in the Visual Pinball Systems Options.

Is there some extra code that I could add to get it to focus? and can this be set by table instead of by system?

Thanks in advance.

Roadblock



#1178 BPICKINPAUGH

BPICKINPAUGH

    Hobbyist

  • Platinum Supporter
  • 21 posts

  • Flag: United States of America

  • Favorite Pinball: Many different types and era's

Posted 12 June 2020 - 12:15 AM

Question about "Seamless" game launch even if I have a simple script with the following from the documentation

 

mainWindow.on("launchoverlayshow", ev => {

mainWindow.showWheel(false);

mainWindow.setUnderlay("");

ev.preventDefault();

});

 

the VPX tables do not work the same as my vp9 tables. At launch the vp9 tables show the playfield image all the way to Virtual pinball launching

the game ready to play, but the VPX tables when I launch them show the playfield image for about 3 seconds then blip to a black screen for about 2

seconds then and then back to the playfield image again for another second or two before seamlessly launching the table.

 

I am still on beta 21 and I have look in the logs and they all seem fine just curious if I am the only one?

 

Thanks

Brad



#1179 BPICKINPAUGH

BPICKINPAUGH

    Hobbyist

  • Platinum Supporter
  • 21 posts

  • Flag: United States of America

  • Favorite Pinball: Many different types and era's

Posted 15 June 2020 - 03:40 PM

 

the VPX tables do not work the same as my vp9 tables. At launch the vp9 tables show the playfield image all the way to Virtual pinball launching

the game ready to play, but the VPX tables when I launch them show the playfield image for about 3 seconds then blip to a black screen for about 2

seconds then and then back to the playfield image again for another second or two before seamlessly launching the table.

 

 

 

Disabling exclusive full screen in VP makes the seamless launch in pinbally work like the VP9 tables, but makes the VPX games unplayable in VP.  So I ended up messing with Nvdia setting and turned off Vertical Sync and in VP turned back on Exclusive full screen and now everything works correctly



#1180 Slydog43

Slydog43

    Pinball Wizard

  • Platinum Supporter
  • 3,008 posts
  • Location:Hackettstown, NJ

  • Flag: United States of America

  • Favorite Pinball: Addams Family, All Williams 90's Games

Posted 15 June 2020 - 03:50 PM

Just started playing with PinballY, but having some issues.  

 

PinballY is scanning my tables dir. How do I disable that and only use my database files? (I guess I can change the file extension to something like VP-NO-Find)  wondering if this is the only way? Actually that fails, but VPQ doesn't include my VPX tables.  Am I missing something?

 

Just tried to launch with a non VPX file extension and table doesn't launch.  I want a way not to match tables in my tables dir with my databases.  Like a do NOT search check box.

 

Thanks

 

Seems so fast..

 

Also can I use it in Desktop Mode?  (Found it under rotate screen by right clicking on window, maybe something should be in documentation)


Edited by Slydog43, 15 June 2020 - 09:22 PM.