PDA

View Full Version : Visual Pinball Wrapper



Johno
01-29-2011, 04:24 AM
Have Visual Pinball working in hyperspin with no wrapper but see loading screens. can someone post what I need to put in hyperlaunch to load with no loading screens using a wrapper?

volumetric
01-29-2011, 04:38 AM
change your hyperlaunch so that hide desktop, and hide taskbar are true.

jtslade
01-29-2011, 06:26 AM
I'll do that once my Hyperspin Cab is completely setup perfectly with all the emulators and roms, all of it launching clean including the exit.

I plan to have it done about 2014.lol.

jtslade
01-29-2011, 06:27 AM
Johno are you using full-screen in Visual Pinball, I had problems until changed it over to window (same size as the desktop resolution), but I see loading screens as well.

volumetric
01-29-2011, 10:11 PM
i think you can pull off hiding the desktop and taskbar, its hiding the mouse that will (can) cause you grief when things go wrong. Keep in mind, if you do hide the mouse, you can bring it back by pressing 't'.

Johno
01-29-2011, 10:28 PM
i just tried changing those settings but i still see the loading screens so it either doesn't work or i must be doing somethign wrong!

volumetric
01-30-2011, 03:24 AM
Did you re-compile your ahk? If so, does your ahk match this?

;**********************************Visual Pinball********************************
else if (systemName = "Visual Pinball" && (executable = "VPinball.exe"))
{
Hotkey, $%exitEmulatorKey%, CloseVP
Run, "%emuPath%\%executable%" /play -"%RomPath%%RomName%.vpt",,hide UseErrorLevel
WinWaitActive, ahk_Class VPPlayer
Gui, destroy
Process, WaitClose, VPinball.exe

}

Also you'll need to add the closeVP script to the kill commands section of your ahk, mine sits here in the ahk:

CloseProcess:
Hotkey, %exitScriptKey%, Off
Process, Close, %Executable%
Process, WaitClose, %Executable%
Gui, Color, 000000
Gui -Caption +ToolWindow +AlwaysOnTop
Gui, Show, W%A_ScreenWidth% H%A_ScreenHeight%, BlackGui
return

CloseVP:
Hotkey, %exitScriptKey%, Off
;Visual Pinball must be closed this way instead of killing process or it wil not save your last game information.i.e score/credtis
DetectHiddenWindows, on ;Or next line will not work
WinHide, ahk_class VPinball ;This line fixes where the VP Window flashes real quick when closing the window for a cleaner exit
WinClose, ahk_class VPinball
return


Just add the red bit

Johno
01-30-2011, 09:11 PM
yeah my script is set up like that. it loads fine etc I jsut don't like seeing the loading screens. under mamewah i ran a wrapper which was vplaunch4 is something similar and it worked a treat but if I have to see the loading screens in hyperpsin I'll live with that as it's an awesome front end.

Johno
01-30-2011, 09:25 PM
yeah my script is set up like that. I just want to get rid of the loading screens. in my mamewah setup i have visual pinball setup as below and it works fine and shows a splash screen until the game is loaded using the vp-launch4.exe wrapper and it just looks so much better. Maybe there is a way to work it out to get it running with hyperspin like that but I'm not sure how to do it as it's all new to me.

### 0001.ini (mamewah v1.61) ###

emulator_title Visual Pinball

### List Generation Settings ###
rom_path c:\Pinball\tables
rom_extension vpt
dat_file
nms_file
catver_ini_file
list_generation_method rom_folder

### Execution Settings ###
emulator_executable c:\Pinball\Tables\vp-launch4.exe
commandline_format [name]{autodosbox}{nosafelaunch}
alt_commandline_format_1 [name]
alt_commandline_format_2 [name]
game_specific_config_path

blur
01-31-2011, 12:21 AM
you can find all you need in fplaunch version 1.10 from BBB, or in some newer version.

hiding desktop, taskbar and mouse is not the solution

you have to hide vp window (and those scripts do that)

Johno
01-31-2011, 01:23 AM
you can find all you need in fplaunch version 1.10 from BBB, or in some newer version.

hiding desktop, taskbar and mouse is not the solution

you have to hide vp windows (and those scripts do that)

will fplaunch work with hyperspin and visual pinball as looks like it's for future pinball and hyperpin??

blur
01-31-2011, 02:35 AM
hyperpin and hyperspin are almost the same programs, only difference is with hyperpin you have rotated screen, but this is not difference in programs - just how you put your screen

fplaunch is autohotkey script that launches vp and fp, just like hyperlaunch in hyperspin

Johno
01-31-2011, 12:32 PM
hyperpin and hyperspin are almost the same programs, only difference is with hyperpin you have rotated screen, but this is not difference in programs - just how you put your screen

fplaunch is autohotkey script that launches vp and fp, just like hyperlaunch in hyperspin

ok cool. in hyperhq when i look at my setup for visual pinball do I just point to fplaunch as the executable with hyperlaunch turned off? sorry but this all new to me.

blur
02-01-2011, 01:22 AM
i'm not sure if using fplaunch.exe will work, try it and let us know how it goes
actually i think it would not work cause fplaunch needs two paramters fp or vp and table name - so command looks like this:
"FPLaunch.exe" "Visual Pinball" "Medieval Madness 1.34 FS Megapin"
But if you just change fplaunch script so that first argument is always Visual Pinball and recompile it, it could work.

normal procedure would be to take fplaunch.ahk 1.10 and pull out only the code for launching and killing vp and fp (it's easy to find it you can't miss it) and put it into hyperlaunch.ahk and then recompile hyperlaunch.ahk

hfdpro
02-01-2011, 06:04 PM
I too would like to get rid of the loading screens. Will spend some time on this tomorrow, if you figure something out please let me know.

Thanks.