Jump to content



Photo

Starting Pinball FX2 and FarSight's Pinball Arcade with HyperPin (uses modified FPLaunch1.295wip10)

HyperPin FPLaunch FX2 TPA PBA

  • Please log in to reply
176 replies to this topic

#61 cyberk30

cyberk30

    Enthusiast

  • Charter Member
  • 75 posts
  • Location:Colorado Springs, CO

  • Flag: United States of America

  • Favorite Pinball: All

  • PS3 Gamer Tag: cyberk31
  • 360 Gamer Tag: cyberk30

Posted 28 May 2013 - 01:55 AM

I tried that it just opens a Future Pinball table.



#62 LoadedWeapon

LoadedWeapon

    The Night Owl..

  • Members
  • PipPipPipPipPip
  • 2,572 posts
  • Location:South Carolina USA

  • Flag: United States of America

  • Favorite Pinball: Star Trek TNG



Posted 28 May 2013 - 02:02 AM

Put the 2 files that sir cheddar made in and make sure you copy and paste the xml part and add it to your future pinball xml it has to be just like posted.. just do it as posted and it will work I just loaded it on my laptop too and worked fine.. make sure everything is named like he posted..

#63 Sir Cheddar

Sir Cheddar

    His Sharpness

  • VIP
  • 383 posts

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

  • Favorite Pinball: Tales of the Arabian Nights



Posted 28 May 2013 - 05:36 AM

I tried that it just opens a Future Pinball table.
Cyber,  I think you have accidentally an "PinballFX2.fpt.txt" file with notepad. Can you disable "Hide extensions for known file types"? It's in "Windows Explorer/Tools/Folder Options/View" on XP or in "Control Panel/Appearance and Personisation/Folder Options/View" on Windows 7.
 
LoadedWeapon, your Problem with Steam being offline pretty much confirms that the -silent switch is to blame for some weirdness.
I did assume that Steam just avoids any message and starts offline in that case instead of hiding the offline dialog and doing nothing. Well, so much for assuming...
 
I post a new version as soon as I can compile it.

Edited by Sir Cheddar, 29 May 2013 - 05:23 AM.


#64 Zarquon

Zarquon

    Hobbyist

  • Members
  • PipPip
  • 37 posts
  • Location:Vancouver, BC

  • Flag: Canada

  • Favorite Pinball: Medevil Maddness

Posted 28 May 2013 - 05:46 AM

Thank you for this. Hopefully this gets added to the default FPLaunch code stream.

 

 

I would also suggest checking if ShowBackglass.exe exists before launching.

 

 

 

IfExist ShowBackglass.exe
    Run, ShowBackglass.exe /left=1916 /top=-4 /width=1928 /height=1088 /picture=gui2.pxp.bmp ,%SteamDirPath%\images,UseErrorLevel

 


Edited by Zarquon, 28 May 2013 - 05:48 AM.


#65 Sir Cheddar

Sir Cheddar

    His Sharpness

  • VIP
  • 383 posts

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

  • Favorite Pinball: Tales of the Arabian Nights



Posted 28 May 2013 - 04:24 PM

I would also suggest checking if ShowBackglass.exe exists before launching.
Good call, but the UseErrorLevel parameter should do that job by writing the file-not-found-error to ErrorLevel and skipping the error dialog. At least it did the job for me when I renamed my Steam\images folder for testing.
See Autohotkey run command documentation.
 
Did you get any error messages on your system?

#66 Zarquon

Zarquon

    Hobbyist

  • Members
  • PipPip
  • 37 posts
  • Location:Vancouver, BC

  • Flag: Canada

  • Favorite Pinball: Medevil Maddness

Posted 28 May 2013 - 05:07 PM

No no error message without the line.  Just never used the UseErrorLevel directive.

 

Here is another suggestion that I added to my script on the for the AppKill call as I was seeing a command window open while it was running.

 

I changed:

 

 

Run, %SteamDirPath%\Images\appkiller.exe ShowBackglass.exe 0,,UseErrorLevel

 

To:

 

IfExist ShowBackglass.exe

     Run, %SteamDirPath%\Images\appkiller.exe ShowBackglass.exe 0,,Hide UseErrorLevel

 

I think in this case the IfExist is appropriate ;)



Has anyone looked at killing the Steam process when closing out after exiting the game?  I would rather it not be running on the cabinet after I stop playing a PFX2 table and switch to another non-PFX2 table.



#67 Sir Cheddar

Sir Cheddar

    His Sharpness

  • VIP
  • 383 posts

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

  • Favorite Pinball: Tales of the Arabian Nights



Posted 28 May 2013 - 08:57 PM

IfExist ShowBackglass.exe
Can do that, but I think it should be "IfExist %steamdirpath%\images\ShowBackGlass.exe" because the IfExist command still has the Hyperpin directory as working directory. I'll give it a try.
Has anyone looked at killing the Steam process when closing out after exiting the game?  I would rather it not be running on the cabinet after I stop playing a PFX2 table and switch to another non-PFX2 table.

I think a "run, taskkill /im steam.exe" should do the job. Sorry, can't test anything at the moment :(

Edited by Sir Cheddar, 28 May 2013 - 09:00 PM.


#68 cyberk30

cyberk30

    Enthusiast

  • Charter Member
  • 75 posts
  • Location:Colorado Springs, CO

  • Flag: United States of America

  • Favorite Pinball: All

  • PS3 Gamer Tag: cyberk31
  • 360 Gamer Tag: cyberk30

Posted 28 May 2013 - 11:49 PM

Cyber,  I think you have accidentally an "Pinball FX2.fpt.txt" file with notepad. Can you disable "Hide extensions for known file types"? It's in "Windows Explorer/Tools/Folder Options/View" on XP or in "Control Panel/Appearance and Personisation/Folder Options/View" on Windows 7.

 

LoadedWeapon, your Problem with Steam being offline pretty much confirms that the -silent switch is to blame for some weirdness.

I did assume that Steam just avoids any message and starts offline in that case instead of hiding the offline dialog and doing nothing. Well, so much for assuming...

 

I post a new version as soon as I can compile it.

I used notepad and I disabled Hide extensions but it still freezes.  Is it normal for Future pinball to look like it wants to start?



#69 LoadedWeapon

LoadedWeapon

    The Night Owl..

  • Members
  • PipPipPipPipPip
  • 2,572 posts
  • Location:South Carolina USA

  • Flag: United States of America

  • Favorite Pinball: Star Trek TNG



Posted 28 May 2013 - 11:58 PM

you dont want anything with notepad.... just delete anything you have in your table folder with notepad and create a table with the name..

the only thing with notepad is your future pinball XML I will place a Picture below...

Attached File  Untitled.png   558.49KB   34 downloads


Edited by LoadedWeapon, 29 May 2013 - 12:05 AM.


#70 Sir Cheddar

Sir Cheddar

    His Sharpness

  • VIP
  • 383 posts

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

  • Favorite Pinball: Tales of the Arabian Nights



Posted 29 May 2013 - 05:23 AM

Gah, yes, no blank in PinballFX2.fpt. I had one in my post above. Thanks, LW.

#71 Sir Cheddar

Sir Cheddar

    His Sharpness

  • VIP
  • 383 posts

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

  • Favorite Pinball: Tales of the Arabian Nights



Posted 29 May 2013 - 09:12 PM

Updated first post to v1.2

#72 LoadedWeapon

LoadedWeapon

    The Night Owl..

  • Members
  • PipPipPipPipPip
  • 2,572 posts
  • Location:South Carolina USA

  • Flag: United States of America

  • Favorite Pinball: Star Trek TNG



Posted 29 May 2013 - 09:22 PM

Updated first post to v1.2

Awsome thanks Cheddar! :otvclap:



#73 imagamejunky

imagamejunky

    Addicted

  • Members
  • PipPipPip
  • 104 posts
  • Location:CA Bay Area

  • Flag: United States of America

  • Favorite Pinball: TZ, IJ, MM, TOTAN, CV, TAF, AFM, STTNG, T2

Posted 31 May 2013 - 12:20 AM

I remapped my flipper & magnasave buttons today with my ipac and started playing FX2 on my cab.  VERY FUN.

 

I used your modded FPLaunch files and now have it successfully loading from hyperpin/pinselect.  It works great.

 

Thank you SIR

You tha man!!

 

Nick



#74 andyco40

andyco40

    Enthusiast

  • Members
  • PipPipPip
  • 106 posts
  • Location:Preston UK

  • Flag: United Kingdom

  • Favorite Pinball: Attack from mars

Posted 31 May 2013 - 05:02 PM

hi all

 

imagamejunky wot keys did u use to get it to work with hyperpin. becouse my flipper key wont work in the exit menu in hyperpin when i change them for the pinball fx2 keys like in the first post.



#75 LoadedWeapon

LoadedWeapon

    The Night Owl..

  • Members
  • PipPipPipPipPip
  • 2,572 posts
  • Location:South Carolina USA

  • Flag: United States of America

  • Favorite Pinball: Star Trek TNG



Posted 31 May 2013 - 05:44 PM

You have to change your keys in pinball fx2 to match your hyperpin ones..

#76 Sir Cheddar

Sir Cheddar

    His Sharpness

  • VIP
  • 383 posts

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

  • Favorite Pinball: Tales of the Arabian Nights



Posted 31 May 2013 - 09:30 PM

hi all
 
imagamejunky wot keys did u use to get it to work with hyperpin. becouse my flipper key wont work in the exit menu in hyperpin when i change them for the pinball fx2 keys like in the first post.
There are different ways to get this working. I recommend setting the flipper keys to arrow left/right so you don't have to use Autohotkey to remap the buttons.
If you do so you have to change the key settings in Hyperpin's settings.ini, VP and FP.

#77 ClarkKent

ClarkKent

    Pinball Fan

  • Members
  • PipPipPipPip
  • 1,552 posts

  • Flag: Austria

  • Favorite Pinball: Q*Bert's Quest, Red's and Ted's Road Show, Dialed In, Big Bang Bar

Posted 17 June 2013 - 07:54 PM

Where in the script is the path to the Pinball FX2 directory defined?



#78 Sir Cheddar

Sir Cheddar

    His Sharpness

  • VIP
  • 383 posts

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

  • Favorite Pinball: Tales of the Arabian Nights



Posted 17 June 2013 - 09:26 PM

Where in the script is the path to the Pinball FX2 directory defined?
Nowhere. FX2 gets started by steam.exe, the location of the directory is defined internally.
 
The script gets the path to steam.exe from Registry here:
RegRead, SteamDirPath, HKLM, Software\Valve\Steam, InstallPath

Pinball FX2 gets started in that line:
Run, "%SteamDirPath%\Steam.exe" -applaunch 226980,,UseErrorLevel

If you need the Pinball FX2 directory for something inside the script it would be "%SteamDirPath%\steamapps\common\Pinball FX2"

Edited by Sir Cheddar, 17 June 2013 - 09:26 PM.


#79 ClarkKent

ClarkKent

    Pinball Fan

  • Members
  • PipPipPipPip
  • 1,552 posts

  • Flag: Austria

  • Favorite Pinball: Q*Bert's Quest, Red's and Ted's Road Show, Dialed In, Big Bang Bar

Posted 18 June 2013 - 04:58 AM

As there are several other pinball pinball games I wonder how to change the script to get them running? If it's no steam game but a regular exe in e.g. c:/games/pinball/pinball.exe how do I have to define the directory and the exe in the script to start?



#80 Sir Cheddar

Sir Cheddar

    His Sharpness

  • VIP
  • 383 posts

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

  • Favorite Pinball: Tales of the Arabian Nights



Posted 18 June 2013 - 06:33 AM

That would be instead of

Run, "%SteamDirPath%\Steam.exe" -applaunch 226980,,UseErrorLevel

Run, "c:\games\pinball\pinball.exe",,UseErrorLevel

You also need to alter the way FPLaunch detects the application has ended.

Which Pinball Games are you thinking of? Any I am missing?
Anything running in portrait? :)