[EN COURS]Futur Pinball : Message ahk_class FuturePinballOpenGL

Ici se règle les problèmes concernant une configuration Hyperspin tournant sous HyperLaunch 3.

Modérateurs : Porko, Modérateurs

Avatar de l’utilisateur
Jullles
Habitué
Habitué
Messages : 94
Inscription : 09 sept. 2016 - 02:47
Localisation : Bretagne
A remercié : 21 fois
A été remercié : 41 fois

Futur Pinball : Message ahk_class FuturePinballOpenGL

Message par Jullles » 04 févr. 2017 - 13:50

Bonjour à tous,

Je complète la HFSBoxSP avec des systèmes de Pinball.
  • Pinball FX2 : Done (via PC Launcher),
    Future Pinball : Pas done du tout
Ce second système me donne du fil à retordre.
J'ai téléchargé un pack complet, qui tourne sans pb en stand alone, en lancant le Futur Pinball.exe.
Par contre, son intégration dans RocketLauncher me fait rager.

J'ai un message d'erreur au lancement concernant : "ahk_class FuturePinballOpenGL"

Mon fichier setting est le suivant :
Settings
[exe info]
path=F:\HFSBoxSP\Emulators\Future Pinball\
rompath=F:\HFSBoxSP\Emulators\Future Pinball\Tables\
userompath=
exe=Future Pinball.exe
romextension=7z
parameters=
searchsubfolders=
pcgame=false
winstate=HIDDEN
hyperlaunch=true

[filters]
parents_only=false
themes_only=false
wheels_only=false
roms_only=false
Mon fichier Module est le suivant :
Module
MEmu = Future Pinball
MEmuV = v1.9.1.20101231
MURL = http://www.futurepinball.com/" onclick="window.open(this.href);return false;
MAuthor = djvj,brolly,bleasby
MVersion = 2.0.1
MCRC = D29236A2
iCRC = F3A73C54
MID = 635038268894446032
MSystem = "Future Pinball"
;----------------------------------------------------------------------------
; Notes:
; Thanks to the FPLaunch author for some of the code
; To set fullscreen, open the emu and goto Preferences->Video / Rendering Options and set your resolution and check fullscreen.
; To prevent crashes disable "Load Image into Table Editor" under Preferences->Editor Options
; AHK is not 100% reliable with its focusing. If coin/start/flipper buttons don't function when you start a table, try clicking your left mouse button.
; The script will fail If you have any errors or missing files for your tables. Make sure every table is working before you turn on the LoadingScreen.
; If you use Esc as your exit_emulator_key, you may see the table editor flash in when you exit a game. This is because Esc is the default fixed key for FP so it's closing the game before ahk does.
; If you get script errors or no tables seem to work, try running FP as admin and it will probably fix it.
; If you need to run FP as admin, you can try this trick http://www.zdnet.com/blog/bott/fixing-w ... c/436?pg=4" onclick="window.open(this.href);return false; and use the other Run command commented below
; Future Pinball stores its config in the registry @ HKEY_CURRENT_USER\Software\Future Pinball\GamePlayer
; For tables with custom game rooms you can see the fine details by pressing F11 to enable manual camera, then using WASD and your mouse to move around. Press F1 through F5 to cycle the camera views.
; If you are using BAM together with Future Pinball, make sure you point your emulator executable to the FPLoader.exe file and do not rename this file to anything else.
; You can download BAM here : http://www.ravarcade.pl/" onclick="window.open(this.href);return false;
;
;Fade:
;If you want to hide the future pinball loading screen behind fade, you just need to set the fullscreen option to false.
;----------------------------------------------------------------------------
StartModule()
BezelGUI()
FadeInStart()

settingsFile := modulePath . "\" . moduleName . ".ini"
ArcadeRenderer := IniReadCheck(settingsFile, "Settings|" . romName, "ArcadeRenderer", "false",,1)
RenderGameRoom := IniReadCheck(settingsFile, "Settings|" . romName, "RenderGameRoom", "false",,1)
Fullscreen := IniReadCheck(settingsFile, "Settings", "Fullscreen","true",,1)
WindowedResolution := IniReadCheck(settingsFile, "Settings", "Windowed_Resolution",A_ScreenWidth . "x" . A_ScreenHeight,,1)

BezelStart()

If bezelPath
WindowedResolution := % Round(bezelScreenWidth) . "x" . Round(bezelScreenHeight)

If (executable = "FPLoader.exe")
StayInRAM := IniReadCheck(settingsFile, "Settings|" . romName, "StayInRAM", "false",,1) ;Only applicable with BAM

If (ArcadeRenderer = "true")
ParamsEnd := "/arcaderender"
If (StayInRAM = "true")
ParamsBegin := "/STAYINRAM"

If (Fullscreen = "true")
RegWrite, REG_DWORD, HKEY_CURRENT_USER, Software\Future Pinball\GamePlayer, FullScreen, 1
Else {
StringSplit, WindowedResolution, WindowedResolution, x
RegWrite, REG_DWORD, HKEY_CURRENT_USER, Software\Future Pinball\GamePlayer, Width, %WindowedResolution1%
RegWrite, REG_DWORD, HKEY_CURRENT_USER, Software\Future Pinball\GamePlayer, Height, %WindowedResolution2%
RegWrite, REG_DWORD, HKEY_CURRENT_USER, Software\Future Pinball\GamePlayer, FullScreen, 0
}

;Setting RenderGameRoom option on registry If needed
RegRead, currentGameRoom, HKEY_CURRENT_USER, Software\Future Pinball\GamePlayer, RenderGameRoom
If (currentGameRoom != RenderGameRoom)
{ NewValue := If RenderGameRoom = "true" ? "1" : "0"
RegWrite, REG_DWORD, HKEY_CURRENT_USER, Software\Future Pinball\GamePlayer, RenderGameRoom, %NewValue%
}

hideEmuObj := Object("ahk_class Ghost",0,"ahk_class SPLASH",0,"ahk_class ScriptEditorClass",0,"ahk_class FuturePinballOpenGLSecondary",0,"ahk_class FuturePinballOpenGL",1,"ahk_class FuturePinball",1) ; Hide_Emu will hide these windows. 0 = will never unhide, 1 = will unhide later
7z(romPath, romName, romExtension, 7zExtractPath)
HideEmuStart()

Run(executable . " " . ParamsBegin . " /open """ . romPath . "\" . romName . romExtension . """ /play /exit" . " " . ParamsEnd, emupath, "Hide")
;Run, "schtasks /run /tn �Future Pinball�", C:\Windows\system32 ; this runs FP via Task Scheduler If you need to run as admin and don't want to see a UAC popup

WinWait("ahk_class FuturePinball")
WinWait("ahk_class FuturePinballOpenGL")
WinActivate, ahk_class FuturePinballOpenGL
WinWaitActive("ahk_class FuturePinballOpenGL")
WinWait, ahk_class FuturePinballOpenGLSecondary,,1 ; do not use the function because it will ScriptError after 1 second
WinActivate, ahk_class FuturePinballOpenGLSecondary
WinWaitActive, ahk_class FuturePinballOpenGLSecondary,,1 ; do not use the function because it will ScriptError after 1 second
WinWaitClose("ahk_class Ghost",,5) ; this doesn't always get picked up by ahk, so we need a timeout
Loop {
IfWinActive, Future Pinball ahk_class FuturePinballOpenGL
Break
WinActivate, Future Pinball ahk_class FuturePinballOpenGL
Sleep, 50
}
WinWaitActive("Future Pinball ahk_class FuturePinballOpenGL")

If (Fullscreen = "false"){
If !bezelPath {
WinGet emulatorID, ID, A
WinSet, Style, -0xC00000, A
;ToggleMenu(emulatorID)
WinSet, Style, -0xC40000, A
WinMove, ahk_id %emulatorID%, , 0, 0
timeout := A_TickCount
Sleep, 200
Loop {
Sleep, 50
WinGetPos, X, Y, W, H, ahk_id %emulatorID%
If (X=0) and (Y=0)
Break
If (timeout < A_TickCount - 3000)
Break
Sleep, 50
WinMove, ahk_id %emulatorID%, , 0, 0
}
}
}

BezelDraw()
HideEmuEnd()
FadeInExit()
Process("WaitClose", executable)
BezelExit()
7zCleanUp()
FadeOutExit()
ExitModule()

CloseProcess:
FadeOutStart()
WinHide, ahk_class FuturePinball ; need these 2 lines otherwise the table editor flashes over the GUI
WinMinimize, ahk_class FuturePinball
WinClose("ahk_class FuturePinball")
WinWaitClose("ahk_class FuturePinball") ; this helps eliminate the slight flicker when you exit the table
Return
Vous avez une idée ?

Avatar de l’utilisateur
reg62
Habitué
Habitué
Messages : 74
Inscription : 18 juin 2016 - 10:13
Localisation : etaples
A remercié : 1 fois

Re: Futur Pinball : Message ahk_class FuturePinballOpenGL

Message par reg62 » 04 févr. 2017 - 14:49

Bonjour
j'ais aussi intégré future pinball a mon hyperspin est j'avais le meme probléme.
a tu bien rentrer toute les extensions dans global emulateur?
et bien configurer la partie 7z dans les settings ?

Avatar de l’utilisateur
Jullles
Habitué
Habitué
Messages : 94
Inscription : 09 sept. 2016 - 02:47
Localisation : Bretagne
A remercié : 21 fois
A été remercié : 41 fois

Re: Futur Pinball : Message ahk_class FuturePinballOpenGL

Message par Jullles » 06 févr. 2017 - 23:07

Salut,

La liste des extensions est bonne.
D'ailleurs, la liste des Games apparait bien totalement en verte dans RocketLauncherUI. Le pb ne vient donc pas de là.

Les settings du Zip sont bons aussi je pense (car aucun pb avec mes autres systèmes).

Quelqu'un a une autre idée ,

Avatar de l’utilisateur
Nabubokon
Initié
Initié
Messages : 139
Inscription : 17 nov. 2016 - 09:37
Localisation : Pas trop loin de Metz
A remercié : 25 fois
A été remercié : 29 fois

Re: Futur Pinball : Message ahk_class FuturePinballOpenGL

Message par Nabubokon » 07 févr. 2017 - 08:35

Salut. La liste est verte dans RL ok.

Est ce que l Emulateur fonctionne seul ?
Est ce que lancer l Emulateur par RL c est ok ?
Est ce que lancer une rom par RL c est ok ?

Avatar de l’utilisateur
moustic
Administrateur
Administrateur
Messages : 6941
Inscription : 23 juil. 2014 - 01:00
Localisation : Saint Jean Rohrbach
A remercié : 331 fois
A été remercié : 677 fois

Re: Futur Pinball : Message ahk_class FuturePinballOpenGL

Message par moustic » 07 févr. 2017 - 08:49

Et à tout hasard change la ligne hyperlaunch dans le settings tu mets false à la place de true
Image

Avatar de l’utilisateur
Jullles
Habitué
Habitué
Messages : 94
Inscription : 09 sept. 2016 - 02:47
Localisation : Bretagne
A remercié : 21 fois
A été remercié : 41 fois

Re: Futur Pinball : Message ahk_class FuturePinballOpenGL

Message par Jullles » 09 févr. 2017 - 20:03

Salut Moustic,

J'ai malheureusement le même résultat en modifiant le Settings.
En lançant le jeu via RocketLauncherUI (Alt+L), j'ai bien le fade (écran noir avec le logo HFS qui tourne), puis un message windows qui demande la confirmation du lancement du jeu, puis l'image d'intro de Future Pinball, Puis... le mesage d'erreur.
Arggh !!

Je tourne en rond...

Avatar de l’utilisateur
moustic
Administrateur
Administrateur
Messages : 6941
Inscription : 23 juil. 2014 - 01:00
Localisation : Saint Jean Rohrbach
A remercié : 331 fois
A été remercié : 677 fois

Re: Futur Pinball : Message ahk_class FuturePinballOpenGL

Message par moustic » 09 févr. 2017 - 20:06

Tu as le bon module pour ta version de future pinball ?
Image

Avatar de l’utilisateur
Jullles
Habitué
Habitué
Messages : 94
Inscription : 09 sept. 2016 - 02:47
Localisation : Bretagne
A remercié : 21 fois
A été remercié : 41 fois

Re: Futur Pinball : Message ahk_class FuturePinballOpenGL

Message par Jullles » 09 févr. 2017 - 20:38

Tout est bon.
Le logiciel indique "Version 1.9.1.20091231

Et le Module dit :
MEmu = Future Pinball
MEmuV = v1.9.1.20101231
MURL = http://www.futurepinball.com/" onclick="window.open(this.href);return false;
MAuthor = djvj,brolly,bleasby
MVersion = 2.0.1
MCRC = D29236A2
iCRC = F3A73C54
MID = 635038268894446032
MSystem = "Future Pinball"

Ca semble donc OK.

Ah non merde : le logiciel dit 2009, et le Module 2010. OK, je tente avec une nouvelle version de Future Pinball...
EDIT : Bah non. Je viens de télécharger la dernière version de Future Pinball, et elle est bien de 2009. Même après avoir ré-installer le logiciel, le pb demeure. Et quand on télécharge spécifiquement la version v1.9.1.20101231, c'est bien la version v1.9.1.20091231 que l'on a en réalité. Damned !
Dernière modification par Jullles le 02 avr. 2017 - 16:13, modifié 2 fois.

Avatar de l’utilisateur
Jullles
Habitué
Habitué
Messages : 94
Inscription : 09 sept. 2016 - 02:47
Localisation : Bretagne
A remercié : 21 fois
A été remercié : 41 fois

Re: Futur Pinball : Message ahk_class FuturePinballOpenGL

Message par Jullles » 04 mars 2017 - 14:22

Je me permet de relancer ce message. Je bloque.
Est-ce que quelqu'un pourrait me transmettre son propre module (qui marche).

Un Grand Merci par avance !

EDIT du 02/04/2017 : Est-ce que quelqu'un pourrait me transmettre son Module ? Pleaaaase.
"Aidez-moi, XXXX, vous êtes mon seul espoir", comme dirait l'autre.

Répondre

Revenir à « Aide sur RocketLauncher »