Jump to content



Photo
- - - - -

how can i mix tables with different fxaa (vp setting on,off ) in pinballx?


  • Please log in to reply
16 replies to this topic

#1 krille81

krille81

    Enthusiast

  • Members
  • PipPipPip
  • 197 posts

  • Flag: Sweden

  • Favorite Pinball: Junk Yard, White Water, Star Wars (Data East)

Posted 24 August 2013 - 08:14 AM

Any sugestion? i want to start different tables with fxaa on, and another tables with fxaa off.

 



#2 krille81

krille81

    Enthusiast

  • Members
  • PipPipPip
  • 197 posts

  • Flag: Sweden

  • Favorite Pinball: Junk Yard, White Water, Star Wars (Data East)

Posted 23 September 2013 - 07:19 PM

Can anyone help me? I want to load 2 different vpinball.exe in pinball x. 1 with fxaa on. And another with fxaa off. For data east tables that dont work with fxaa on.

#3 PilzTom

PilzTom

    Enthusiast

  • Members
  • PipPipPip
  • 82 posts
  • Location:South of Germany

  • Flag: Germany

  • Favorite Pinball: Attack From Mars

Posted 23 September 2013 - 08:59 PM

In Nvidia Control Panel you can bind the 3D-settings like FXAA to specific EXE files. So you can make a copy of VP.exe and rename it. For one copy you can activate FXAA for the other not. This shoud work fine when starting VP executables manually. But there is still the question if frontends like PinballX can handle different EXE files. It would be a good feature anyway e.g. for tables that only work perfect with older revisions of VP.


Currently building playing a low-cost cab: 39''/27''/15''

System: Intel Core i5-4570, Asus P8Z77-M, 8GB, EVGA GTX650 Ti Boost 1GB, Win10 Pro x64 , 3 screen setup


#4 bosvrucht

bosvrucht

    Enthusiast

  • Members
  • PipPipPip
  • 410 posts

  • Flag: Netherlands

  • Favorite Pinball: LOTR

Posted 24 September 2013 - 07:13 AM

In Nvidia Control Panel you can bind the 3D-settings like FXAA to specific EXE files. So you can make a copy of VP.exe and rename it. For one copy you can activate FXAA for the other not. This shoud work fine when starting VP executables manually. But there is still the question if frontends like PinballX can handle different EXE files. It would be a good feature anyway e.g. for tables that only work perfect with older revisions of VP.

 

I tried that once, as most frontends support multiple .exe's.   but for me Nvidia hardware FXAA only works if i turn it on permanently, not on a per exe basis. This with 3.14 driver and a GTX460.   If there is someone out there that did get it to work then please let us know.

 

Also krille81 is not clear if he wants to change the built-in software FXAA, or change the Nvidia hardware FXAA settings?   These are two different things.



#5 krille81

krille81

    Enthusiast

  • Members
  • PipPipPip
  • 197 posts

  • Flag: Sweden

  • Favorite Pinball: Junk Yard, White Water, Star Wars (Data East)

Posted 24 September 2013 - 02:40 PM

Hi guys! Thank you for the help. I will have 2 different exe files. 1 with software fxaa on for the most tables. 2 no fxaa for tables that dont support software fxaa ( data east tables) i run win7 so i can't use hardware fxaa. My graphic card will not work good in xp. I don't want to change to xp.. I like win7 but i will use sw fxaa. Now i can' t because some tables dont support...

#6 krille81

krille81

    Enthusiast

  • Members
  • PipPipPip
  • 197 posts

  • Flag: Sweden

  • Favorite Pinball: Junk Yard, White Water, Star Wars (Data East)

Posted 25 September 2013 - 06:26 PM

Anyone?

#7 gtxjoe

gtxjoe

    VPF Veteran

  • VIP
  • 5,152 posts

  • Flag: United States of America

  • Favorite Pinball: Medieval Madness, AbraCadabra



Contributor

Posted 26 September 2013 - 12:46 AM

VP FXAA setting is stored in windows registry here:  [HKEY_CURRENT_USER\Software\Visual Pinball\Player]

Setup VP with FXAA off.  Export VP settings to a reg file and call it "VP_FXAA_OFF.reg"

Setup VP with FXAA on.  Export VP settings to a reg file and call it "VP_FXAA_ON.reg"

 

Create batch file or perl script that will check the table that pinballx is launching. If the table needs FXAA_OFF, have the batch/perl script, run "reg import VP_FXAA_OFF.reg, else "reg import VP_FXAA_ON.reg".  It would look something like:

 

if "%1" == "Aaron Spelling 1.0"
   reg import VP_FXAA_OFF.reg

else if "%1" == "King Kong 1.02"
   reg import VP_FXAA_OFF.reg

else if "%1" == "Back to the Future 2.02"
   reg import VP_FXAA_OFF.reg

else
   reg import VP_FXAA_ON.reg
 

 

 

Change PinballX settings to run the batch/perl script before executing VP by adding it to the "Launch Before Executable" parameter.  You will want to pass the [TABLEFILE] parameter to the script.


Edited by gtxjoe, 26 September 2013 - 12:54 AM.


#8 krille81

krille81

    Enthusiast

  • Members
  • PipPipPip
  • 197 posts

  • Flag: Sweden

  • Favorite Pinball: Junk Yard, White Water, Star Wars (Data East)

Posted 26 September 2013 - 03:08 PM

Thank you very very much i have to try that tonight :)

#9 krille81

krille81

    Enthusiast

  • Members
  • PipPipPip
  • 197 posts

  • Flag: Sweden

  • Favorite Pinball: Junk Yard, White Water, Star Wars (Data East)

Posted 26 September 2013 - 07:13 PM

i dont understand? i cant find that [HKEY_CURRENT_USER\Software\Visual Pinball\Player]



#10 krille81

krille81

    Enthusiast

  • Members
  • PipPipPip
  • 197 posts

  • Flag: Sweden

  • Favorite Pinball: Junk Yard, White Water, Star Wars (Data East)

Posted 26 September 2013 - 08:05 PM

Ok i get it.. I have to use regedit. But how can i export the vp settings?

#11 gtxjoe

gtxjoe

    VPF Veteran

  • VIP
  • 5,152 posts

  • Flag: United States of America

  • Favorite Pinball: Medieval Madness, AbraCadabra



Contributor

Posted 27 September 2013 - 12:05 AM

From command prompt,   reg export "HKEY_CURRENT_USER\Software\Visual Pinball\Player" VP_FXAA_ON.reg

You can do it from Regedit also. Expand the tree on left side to navigate to the path I gave. There should be an export command in one of the menus

Edited by gtxjoe, 27 September 2013 - 12:08 AM.


#12 krille81

krille81

    Enthusiast

  • Members
  • PipPipPip
  • 197 posts

  • Flag: Sweden

  • Favorite Pinball: Junk Yard, White Water, Star Wars (Data East)

Posted 29 September 2013 - 04:37 PM

i cant get that to work i have made the reg files and the batch file.but i cant get it to work anyway. can you explain the pinball x settings again please? what do you mean with that?   You will want to pass the [TABLEFILE] parameter to the script.


Edited by krille81, 29 September 2013 - 05:01 PM.


#13 krille81

krille81

    Enthusiast

  • Members
  • PipPipPip
  • 197 posts

  • Flag: Sweden

  • Favorite Pinball: Junk Yard, White Water, Star Wars (Data East)

Posted 07 November 2013 - 06:46 PM

Hello again guys!  I have tried everything to get that to work but i dont understand batch scripts??  like the text before i will use a specefic reg file with a specefic table to get fxaa on or off. I have the 2 reg files working as i want. but i think the batch script is wrong or the parameteter in pinballx. can anyone help me please?? 



#14 chepas

chepas

    t.me/horsepin

  • Members
  • PipPipPipPip
  • 1,966 posts

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

  • Favorite Pinball: BSD, Tr0n, SW:Stern

Posted 07 November 2013 - 08:11 PM

I did make an app a while back that allowed you to make settings profiles for VP & FP.

 

They could then be loaded per table. I've been wanting to make again but with C# this time around. Will get on it.


Bump maps are the new auto-tune :BDH:
VPX - RSS Updates ---- blog.flippingflips.xyz/en/ -- Visual Pinball No.1 (2021) . Est.2000


#15 gtxjoe

gtxjoe

    VPF Veteran

  • VIP
  • 5,152 posts

  • Flag: United States of America

  • Favorite Pinball: Medieval Madness, AbraCadabra



Contributor

Posted 08 November 2013 - 02:23 AM

1) Put the 2 files you created "VP_FXAA_OFF.reg" and "VP_FXAA_ON.reg" in c:\PinballX folder

2) Create a file called "fxaa.bat" in the c:\PinballX folder

3) Open "fxaa.bat" in Notepad and copy this text into it

if %1=="Firepower.vpt" (
  reg import VP_FXAA_OFF.reg
  goto END
)
if %1=="Sorcerer.vpt" (
  reg import VP_FXAA_OFF.reg
  goto END
)
if %1=="Terminator.vpt" (
  reg import VP_FXAA_OFF.reg
  goto END
)
 
 
reg import VP_FXAA_ON.reg
:END
 
 
4) Change the name of the pinball tables above to the name of the tables you want to turn off FXAA.  Copy as needed to add more tables.  Save file and close
5) Open the file c:\PinballX\Config\PinballX.ini in notepad.  In the [VisualPinball] section, change the following lines:
 
LaunchBeforeEnabled=true
LaunchBeforeWorkingPath=C:\PinballX
LaunchBeforeExecutable=foo.bat
LaunchBeforeHideWindow=False
LaunchBeforeWaitForExit=True
LaunchBeforeParameters="[TABLEFILE]"
 
6) Save the file and give it a go.
 
 

Edited by gtxjoe, 08 November 2013 - 02:26 AM.


#16 Pinball999

Pinball999

    Pinball Fan

  • Members
  • PipPipPipPip
  • 828 posts
  • Location:Germany

  • Flag: France

  • Favorite Pinball: Star Wars

Posted 09 November 2013 - 07:16 PM

Hi gtxjoe,

do you know if this would work as well with Hyperpin?

 

Cheers.



#17 krille81

krille81

    Enthusiast

  • Members
  • PipPipPip
  • 197 posts

  • Flag: Sweden

  • Favorite Pinball: Junk Yard, White Water, Star Wars (Data East)

Posted 08 December 2013 - 07:32 PM

Thank you very very much, that works now