Jump to content
Download Section Back Up, Navigate the Right Hand Menu to find files, ignore the 0s
  • 0

Intégrer un jeu PC dans la wheel MAME


psypol

Question

Bonjour à tous

je me replie sur cette section FR car je n'obtiens pas d'aide dans le forum general.

A croire qu'intégrer un jeu PC dans la roue MAME est quelque chose que bcp de gens demandent et qui est SIMPLE

mais voila pour moi ca ne marche pas.

je recapitule les étapes que j'ai suivi :

on ma fourni tout un dossier hyperspin préconfiguré par un ami (tous les jeux sont mame et il n'y avait pas de selecteur de Wheel au lancement)

j'ai reussi a créer une wheel jeu pc sur lequel j'arrive à lancer le jeu que je veux (par un lien lnk)

maintenant je voudrais mettre ce jeu PC directement dans la wheel mame et que la wheel PC soit invisible pour le joueur (démarrage direct sur MAME comme pré-configuré)

le raccourci pour le jeu pc se trouve ici : HyperSpin 1.0\Emulators\PC Games\roms\gamename.lnk

dans Databases\PC Games\PC Games.ahk j'ai mis :

<?xml version="1.0"?>

<menu>

<game name="gamename" index="true" image="">

<description>some description</description>

<manufacturer>someone</manufacturer>

<year>2013</year>

<genre>Sports</genre>

</game>

</menu>

d'après ce que j'ai lu sur divers topics il faut que j'ajoute au fichier HyperSpin 1.0\Databases\MAME\MAME.xml

le lignes suivantes :

<?xml version="1.0"?>

<menu>

<game name="gamename" index="true" image="">

<description>test</description>

<manufacturer>toto</manufacturer>

<year>1995</year>

<genre>Sports</genre>

<exe>PC Games</exe>

</game>

Problème : je ne vois toujours pas le jeu pc dans ma mame wheel

quelqu'un pourrait m'aider à trouver le souci ?

merci

Link to comment
Share on other sites

10 answers to this question

Recommended Posts

Cette fonction me permet de lancer différents emulateurs au sein du meme système (wheel)

<exe>AmigaF</exe>

Pour mon système AMIGA par exemple, je m'en sers pour lancer ds jeux au format "ADF" via Winuae alors que par défaut le système AMIGA est paramétré pour lancer des jeux "WHD" au format ZIP via WinuaeLoader

Il faut pour cela créer dans le dossier SETTINGS d'Hyperspin un fichier INI (AmigaF.ini cf mon exemple) dans lequel j'indique le pass vers les roms et vers l'EXE de l'émulateur

Je sais que cette fonction est remplacée dans le nouvel HS mais j'ai pas trop cherché ...

Je ne sais pas si c'est très clair mais bon ça marche pas mal chez moi :)

Je m'en sers aussi pour lancer les jeux PC Engine CD et les jeux PC Engine sur le même système (wheel) par exemple

Link to comment
Share on other sites

Salut,

Ce système fonctionne chez moi avec hyperlaunch 2.25. Je l'ai utilisé pour mettre "fix it felix Jr" dans ma roue Mame. J'ai l'impression que tu mélanges un peu tout : dans ton repertoire database, il ne faut pas mettre le module PC Games.ahk. Ce fichier doit être mis dans /modules/PC Games/ et il doit contenir le script fait par djvj (PC Launcher). Ensuite, attention quand tu rajoutes un jeu dans un fichier XML. Dans ton exemple, tu ouvres une balise "menu" mais tu ne la fermes pas. Ca m'a l'air d'être un sacré bricolage ton truc :confused:

Link to comment
Share on other sites

merci pour vos reponses. je planche sur ca.

il faut savoir que j'agis sur une borne dont je ne suis pas proprietaire (au boulot)

on ne peut pas non plus mettre a jour HyperLaunch par ex

(c'est la politique de l'admin qui lui meme na aucune connaissance en Hyperspin, il me laissera juste inclure des lignes dans les fichiers si

je lui prouve sur mon propre pc que jai reussi la manip)

@fifou : pourrais tu me faire un copier/coller de ton fichier AmigaF.ini ??

@shinobi68 :desole ct une boulette ds mon post. le ahk est bien dans modules et pas dans databases

Link to comment
Share on other sites

tiens peut etre que je devrais partager avec vous le DEBUT du contenu de ces fichiers la :

HyperSpin 1.0\Settings\MAME.ini

[exe info]

path=E:\HyperSpin 1.0\HyperSpin 1.0\Emulators\Mame\

rompath=E:\HyperSpin 1.0\HyperSpin 1.0\Emulators\Mame\roms\

userompath = false

exe=mame.exe

romextension = zip

parameters =

searchsubfolders = false

pcgame=false

winstate = HIDDEN

hyperlaunch=true

et HyperSpin 1.0\Settings\Pc Games.ini

[exe info]

path=

rompath=D:\Games\HyperSpin 1.0\Emulators\PC Games\roms\

userompath=true

exe=

romextension=lnk

parameters=

searchsubfolders=true

pcgame=true

winstate=HIDDEN

hyperlaunch=false

+ contenu de Pc Games.ahk

;---------------------------------------*-------------------------------------

; PC Games

; PC Engine 1.7.0.49

; by BBB

; 1.0

;

;---------------------------------------*-------------------------------------

Run, %executable% /e"%romPath%%romName%%romExtension%", %emuPath%, Hide

Sleep, 2000

;[MOUSE CURSOR]

hideCursor = true

Process, WaitClose, %Executable%

ExitApp

CloseProcess:

Process, Close, %Executable%

return

Link to comment
Share on other sites

Tu utilises quelle version d'hyperlaunch ? la 2.25 ? Si c'est le cas, il faut te procurer le script PClauncher:

;----------------------------------------------------------------------------

; Application Launcher

; PCLauncher

; by djvj

; 1.5

;

; Notes:

; Use the example Settings.ini in your Modules\PCLauncher\ folder to add more applications.

; Read the comments at the top of Settings.ini for the definitions of each key.

;----------------------------------------------------------------------------

If 0 < 1

{ MsgBox,,,Please run this through HyperSpin,2

ExitApp

}Else

Goto, Start

Start:

GUI_ID := FadeInStart()

SettingsFile := CheckFile(A_Scriptdir . "\Modules\" . systemName . "\Settings.ini")

iniLookup = ApplicationPath,ApplicationEXE,Parameters,PreLaunch,PreLaunchSleep,PostLaunch,PostLaunchSleep,ExitKey,FadeTitle

Loop, Parse, iniLookup, `,

{

IniRead, %A_LoopField%, %SettingsFile%, %romName%, %A_LoopField%

If ( %A_LoopField% = "ERROR" ) { ; Create keys if they do not exist in the ini

IniWrite, %A_Space%, %SettingsFile%, %romName%, %A_LoopField%

missingKeys = 1

}

}

If missingKeys

ScriptError("Created missing keys in Settings.ini for " . romName . "`nFill in your desired values and try again.")

;Verify Settings.ini parameters are set

CheckSettings()

If ( PreLaunch <> "" ) {

Run, "%PreLaunch%"

Sleep, %PreLaunchSleep%

}

Run, "%ApplicationPath%%ApplicationEXE%" %Parameters%, %ApplicationPath%,, AppPID

If FadeTitle {

WinWait, %FadeTitle%

WinWaitActive, %FadeTitle%

} Else {

WinWait, ahk_pid %AppPID%

WinWaitActive, ahk_pid %AppPID%

}

GUI_ID2 := FadeInExit()

Process, WaitClose, %AppPID%

If ( PostLaunch <> "" ) {

Run, "%PostLaunch%"

Sleep, %PostLaunchSleep%

}

GUI_ID4 := FadeOutExit()

WinActivate, HyperSpin

ExitApp

CheckSettings() {

global romName

global ApplicationPath

global ApplicationEXE

StringRight, ApplicationPathBackSlash, ApplicationPath, 1

If (romName = "")

ScriptError("Missing romName in Settings.ini")

If (ApplicationPath = "")

ScriptError("Missing ApplicationPath in Settings.ini")

If (ApplicationPathBackSlash != "\")

ScriptError("Make sure your ApplicationPath contains a backslash on the end.")

If (ApplicationEXE = "")

ScriptError("Missing ApplicationEXE in Settings.ini.")

CheckFile(ApplicationPath . ApplicationEXE)

}

CloseProcess:

If ExitKey ; fadeout will only take effect if an ExitKey method was set, otherwise fade will occur and application will not close

GUI_ID3 := FadeOutStart()

If ( ExitKey = "Process" )

Process, Close, %ApplicationEXE%

Else If ( ExitKey = "WinClose" && FadeTitle )

WinClose, %FadeTitle%

Else If ( ExitKey = "WinClose" )

WinClose, %ApplicationEXE%

Return

Ensuite, dans ton repertoire module, il te faut aussi le fichier settings.ini suivant où tu mets tes différents jeux PC:

# [romName] - The romName starts each section below. It must match your "game name" in your database.

# ApplicationPath - The directory your application resides in (this must end with a backslash).

# ApplicationEXE - The executable, batch, or shortcut (lnk file) residing in the ApplicationPath (this must end with the applications 3-letter extension).

# Parameters - This can be any number of parameters that you want to supply to your application.

# PreLaunch - This can be used to run another application before launching the ApplicationEXE. This will usually be blank. Use an absolute path and include any parameters on the one line

# PreLaunchSleep - If you need the script to wait after launching your PreLaunch app for a set amount of time, put that here (1000 = 1 second).

# ExitKey - Define a quick way, if desired, to exit your ApplicationEXE in case it doesn't close with your Hyperspin exit keys. Choices are Process or WinClose

#//////////////////////////// My Applications //////////////////////////////

[hayate]

ApplicationPath = G:\Games\daphne\

ApplicationEXE = hayate.bat

Parameters =

PreLaunch =

PreLaunchSleep =

PostLaunch =

PostLaunchSleep =

ExitKey =

FadeTitle =

[timegal]

ApplicationPath = G:\Games\daphne\

ApplicationEXE = timegal.bat

Parameters =

PreLaunch =

PreLaunchSleep =

PostLaunch =

PostLaunchSleep =

ExitKey =

FadeTitle =

[timetraveler]

ApplicationPath = G:\Games\daphne\

ApplicationEXE = timetraveler.bat

Parameters =

PreLaunch =

PreLaunchSleep =

PostLaunch =

PostLaunchSleep =

ExitKey =

FadeTitle =

[timetraveler3D]

ApplicationPath = G:\Games\daphne\

ApplicationEXE = timetraveler3D.bat

Parameters =

PreLaunch =

PreLaunchSleep =

PostLaunch =

PostLaunchSleep =

ExitKey =

FadeTitle =

[Fix It Felix Jr]

ApplicationPath = G:\Games\PC Games\Fix It Felix Jr\

ApplicationEXE = Fix-It Feliz Jr Launcher.exe

Parameters =

PreLaunch =

PreLaunchSleep =

PostLaunch =

PostLaunchSleep =

ExitKey =

FadeTitle =

J'espère que t'es bien en HL 2.25 et que ça pourra t'aider.

Link to comment
Share on other sites

merci pour ces indications. je vais tenter de progresser chez moi.

je peux dores et deja dire que je suis en v1.05 si jme trompe pas :-(

voila le début de HyperLaunch.ahk

* HyperLaunch Version 1.05

* Autohotkey script by BadBoyBill [email protected]

* CursorHide by Lazlo

* Integrated FreeDO wrapper by brian_hoffman

c'est grave docteur ? pensez vous que je vais devoir obliger cette personne à faire une MAJ de HyperLaunch ? (ou me resigner à la double wheel en desespoir de cause ...)

Estce que faire la Maj d'hyperlaunch est quelque chose de compliqué pour conserver toute la borne qui fonctionne nickel comme avant ?

dans l'espoir de lire des nouvelles rassurantes.

Link to comment
Share on other sites

Tout est fait en script, donc ça doit être faisable de faire ce que tu veux sous hyperlaunch 1. Par contre, je peux pas trop t'aider. Il faudrait que tu trouves qq qui tourne encore avec hyperlaunch1. Vu que la version 2 est sortie depuis longtemps et qu'un maximum de gens sont maintenant passés sur la version 3, le mieux serait peut être une MAJ (cela dépends du nombre de systèmes que tu as. Si tu as beaucoup de système, c'est un boulot énorme de migrer).

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...