[EN COURS]Emuler Amstrad CPC

Ici se règle les problèmes concernant la configuration des différents émulateurs.

Modérateurs : Porko, Modérateurs

Avatar de l’utilisateur
FactorX
Connaisseur
Connaisseur
Messages : 334
Inscription : 31 août 2016 - 21:00
A remercié : 55 fois
A été remercié : 19 fois

Re: Emuler Amstrad CPC

Message par FactorX » 16 oct. 2016 - 18:57

Au niveau des settings fade etc t'as tout mis en use global ?

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: Emuler Amstrad CPC

Message par Jullles » 16 oct. 2016 - 19:11

Dans F:\HFSBoxSP\RocketLauncher\Settings\Amstrad CPC, j'ai un fichier "Rocketlauncher.ini" qui fait pleins de lignes, toutes en "useglobal" en effet.

Dans F:\HFSBoxSP\Settings, j'ai un fichier "Amstrad CPC.ini" qui dit ceci :
ini
[exe info]
path=\HFSBoxSP\RocketLauncher\
rompath=
userompath=true
exe=RocketLauncher.exe
romextension=
parameters="Amstrad CPC" -f "\HFSBoxSP\HyperSpin.exe" -p "HyperSpin"
searchsubfolders=false
pcgame=false
winstate=NORMAL
hyperlaunch=false

[filters]
parents_only=false
themes_only=false
wheels_only=false
roms_only=false

[themes]
use_parent_vids=true
use_parent_themes=false
animate_out_default=true
reload_backgrounds=true

etc, etc...
Je n'ai pas de Dossier "Amstrad CPC" dans F:\HFSBoxSP\RocketLauncher\Modules
Normal ?

En revanche dans F:\HFSBoxSP\RocketLauncher\Modules, j'ai un dossier WinAPE qui contiens un fichier "WinAPE.ahk".
Je n'ai pas créé ce Module. En revanche, il provient peut-être d'un vieux copier/coller avec une version de HyperSpin téléchargé avant d'installer la HFSBoxSP.
Ce fichier "WinAPE.ahk" dit ceci :
ahk
MEmu = WinAPE
MEmuV = v2.0.a18
MURL = http://www.winape.net/" onclick="window.open(this.href);return false;
MAuthor = djvj,brolly,wahoobrian
MVersion = 2.0.5
MCRC = 3D8B4C52
iCRC = 8E33D008
MID = 635038268934069007
MSystem = "Amstrad GX4000","Amstrad CPC"
;----------------------------------------------------------------------------
; Notes:
; You cannot pass a game name to the emu through CLI, but the emu will autolaunch the game set in its ini file.
; Run the exe manually and goto Settings->General, check "Disable Automatic Update"
; On the Display tab, check "Hide Control Panel", "Hide Menus" and "No Right-Click Menu". "Linear Palette" will slightly darken image if you enable it.
; On the Sound tab, check "44 kHz" and "16 bit".
; On the Input tab, set your controls and hit OK.
; Press F10 to turn on fullscreen then ALT+F4 to exit and save your settings.
; Make sure your rom extension is either zip or cpr, not both.
; Make sure you have Arnold V Diagnostic Cartridge.cpr rom on WinApe\ROM folder if you want to run No Exit.
; You can use any other CPCPlus cart if you prefer, in that case make sure you edit the variable below to the correct name.
;
; Default WinAPE disk swap/flip keys:
; Shift+F1 will flip Disk on Drive A:
; Shift+F2 will flip Disk on Drive B:
; Shift+Ctrl+F3 will swap Disks on Drive A: and B:
;
; Tape support (.cdt files):
; WinApe has limited tape support, some games might not load and the ones that do load will load at real time! So it can take several minutes for
; a tape game to load. It's highly suggested to use CPCE instead to play tape games.
;----------------------------------------------------------------------------
StartModule()
BezelGUI()
FadeInStart()

IfExist, % modulePath . "\" . systemName . ".ini" ; use a custom systemName ini If it exists
settingsFile := modulePath . "\" . systemName . ".ini"
Else
settingsFile := modulePath . "\" . moduleName . ".ini"

Fullscreen := IniReadCheck(settingsFile, "Settings", "Fullscreen","true",,1)
DiagCart := IniReadCheck(settingsFile, "Settings", "DiagCart","Arnold V Diagnostic Cartridge.cpr",,1)
InsertDiskErrorFix := IniReadCheck(settingsFile, "Settings", "InsertDiskErrorFix","false",,1)

Command := IniReadCheck(settingsFile, romName, "Command","",,1)
SendCommandDelay := IniReadCheck(settingsFile, romName, "SendCommandDelay", "1000",,1)
MachineType := IniReadCheck(settingsFile, romName, "MachineType", "CPC",,1)

DiagCart := GetFullName(DiagCart)

hideEmuObj := Object("Open CPC Plus Cartridge File ahk_class #32770",0,"ahk_class TfrmCover",0,"Windows Amstrad Plus Emulator ahk_class TfrmEmu",1) ; Hide_Emu will hide these windows. 0 = will never unhide, 1 = will unhide later
7z(romPath, romName, romExtension, 7zExtractPath)

BezelStart()

; Clean any previous disk in drives
IniWrite, %A_Space%, %emuPath%\WinAPE.ini, Drives, Drive(0) ; Drive A Side A
IniWrite, %A_Space%, %emuPath%\WinAPE.ini, Drives, Drive(4) ; Drive A Side B
IniWrite, %A_Space%, %emuPath%\WinAPE.ini, Drives, Drive(1) ; Drive B Side A
IniWrite, %A_Space%, %emuPath%\WinAPE.ini, Drives, Drive(5) ; Drive B Side B

; Clean any previous cart
IniWrite, %A_Space%, %emuPath%\WinAPE.ini, ROMS, Cartridge

; Clean any previous tape
IniWrite, %A_Space%, %emuPath%\WinAPE.ini, Tape, File Name

; autobootrom=true means rom will start through CLI otherwise another cart must be loaded before it as a workaround
autobootrom=true

; Set Fullscreen
If (Fullscreen = "true" && autobootrom = "true")
IniWrite, true, %emuPath%\WinAPE.ini, Configuration, Full Screen
Else
IniWrite, false, %emuPath%\WinAPE.ini, Configuration, Full Screen

; Set Numlock since you should have your joystick configurations made for this
SetNumlockState, off

If (systemName = "Amstrad GX4000") {
Gosub, CPCPlus
} Else {
; Change settings based on system name (CPC Plus games will only work if system is CPC Plus or GX4000)
IfInString, romName, (CPC+)
{
Gosub, CPCPlus
}
Else If (MachineType = "CPC+") {
Gosub, CPCPlus
}
Else {
IniWrite, false, %emuPath%\WinAPE.ini, Configuration, Enable Plus
IniWrite, 0, %emuPath%\WinAPE.ini, Configuration, CRTC Type
IniWrite, false, %emuPath%\WinAPE.ini, ROMS, Cartridge Enabled
IniWrite, OS6128, %emuPath%\WinAPE.ini, ROMS, Lower
IniWrite, BASIC1-1, %emuPath%\WinAPE.ini, ROMS, Upper(0)

If autobootrom = true
If romExtension = .cpr
{
IniWrite, %romPath%\%romName%%romExtension%, %emuPath%\WinAPE.ini, ROMS, Cartridge
}
Else If romExtension = .cdt
{
IniWrite, %romPath%\%romName%%romExtension%, %emuPath%\WinAPE.ini, Tape, File Name
}
}

; MultiDisk loading, this will load the first 2 disks into drives A and B since some games can read from both drives and therefore
; the user won't need to change disks through the MG menu.
; If (romName contains "(Disk 1" OR romName contains "(Side A")
If (InStr(romName, "(Disk 1") || InStr(romName, "(Side A"))
{ ; If the user boots any disk rather than the first one, multi disk support must be done through RocketLauncher MG menu
multipartTable := CreateRomTable(multipartTable)

If multipartTable.MaxIndex()
{ ; Make the searches case insensitive
original_case_sense := A_StringCaseSense
StringCaseSense, Off

; Has multi part
for index, element in multipartTable
{ current_rom := multipartTable[A_Index,1]

driveA_sideA = (Side A,(Disk 1),(Disk 1 Side A
driveA_sideB = (Side B,(Disk 1 Side B
driveB_sideA = (Disk 2),(Disk 2 Side A
driveB_sideB = (Disk 2 Side B

If current_rom contains %driveA_sideA%
IniWrite, %current_rom%, %emuPath%\WinAPE.ini, Drives, Drive(0)
Else If current_rom contains %driveA_sideB%
IniWrite, %current_rom%, %emuPath%\WinAPE.ini, Drives, Drive(4)
Else If current_rom contains %driveB_sideA%
IniWrite, %current_rom%, %emuPath%\WinAPE.ini, Drives, Drive(1)
Else If current_rom contains %driveB_sideB%
IniWrite, %current_rom%, %emuPath%\WinAPE.ini, Drives, Drive(5)
}
; Restore original StringCaseSense
StringCaseSense, %original_case_sense%
}
}
}

HideEmuStart()
Run(executable . " """ . romPath . "\" . romName . romExtension . """ /A", emuPath)

If (InsertDiskErrorFix = "true")
{
MiscUtils.SetErrorMode(2)
;WinWait("WinApe.exe - Drive Not Ready ahk_class #32770")
;WinActivate, WinApe.exe - Drive Not Ready ahk_class #32770
;ControlClick, Button1, WinApe.exe - Drive Not Ready ahk_class #32770
}

WinWait("ahk_class TfrmCover") ; waiting for logo to show
WinHide, ahk_class TfrmCover ; making logo dissappear!

; Close Information window, if it exists
Loop, 10 {
If WinExist("ahk_class TMessageForm") {
WinActivate
Send, {Enter}
break
}
Else
Sleep, 50
}

WinWait("Windows Amstrad Plus Emulator ahk_class TfrmEmu")
WinWaitActive("Windows Amstrad Plus Emulator ahk_class TfrmEmu")
BezelDraw()

If (autobootrom != "true")
{ ; Lets swap carts to load No Exit
Sleep 500 ; Wait just an instant for the diagnostic cart to load
ControlSend,, ^{F3},Windows Amstrad Plus Emulator ahk_class TfrmEmu ; Open CPC Plus Cartridge File
OpenROM("Open CPC Plus Cartridge File ahk_class #32770", romPath . "\" . romName . romExtension)
Sleep, 100
If Fullscreen = true
ControlSend,, {F10},Windows Amstrad Plus Emulator ahk_class TfrmEmu ; Fullscreen
}

; US keyboards need to send @ to type " while most EUR keyboards type "
; Both are located in the 2 key so we send Shift+2 instead so it will work on all cases
StringReplace, Command, Command, ", {Shift Down}2{Shift Up}, All

SendCommand(Command, SendCommandDelay)

If romExtension = .cdt
{ ; Tape Loading
SendCommand("{Shift Down}{vkBBsc01A}{Shift Up}tape{Enter}{Wait:200}run{Shift Down}2{Shift Up}{Enter}")
PostMessage, 0x111, 23,,,Windows Amstrad Plus Emulator ahk_class TfrmEmu ;Play Tape
SendCommand("{Enter}")
}

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


CPCPlus:
IniWrite, true, %emuPath%\WinAPE.ini, Configuration, Enable Plus
IniWrite, 3, %emuPath%\WinAPE.ini, Configuration, CRTC Type
IniWrite, true, %emuPath%\WinAPE.ini, ROMS, Cartridge Enabled
IniWrite, %A_Space%, %emuPath%\WinAPE.ini, ROMS, Lower
IniWrite, %A_Space%, %emuPath%\WinAPE.ini, ROMS, Upper(0)

If romExtension = .dsk
IniWrite, cpc_plus.cpr, %emuPath%\WinAPE.ini, ROMS, Cartridge
Else If romExtension = .cpr
IniWrite, %romPath%\%romName%%romExtension%, %emuPath%\WinAPE.ini, ROMS, Cartridge

; If autobootrom=true it means rom will start through CLI otherwise another cart must be loaded before hand as a workaround
If romName contains No Exit
{
; No Exit won't boot if the cart is already plugged it requires another cart (not all work) to be plugged and then we need to swap them
; We use the diagnostic cart as the booting cart since it always works
autobootrom=false
IniWrite, %DiagCart%, %emuPath%\WinAPE.ini, ROMS, Cartridge
}
Return

HaltEmu:
disableSuspendEmu := true
SetTimer, HideDebugWindow, 2
SendMessage, 0x0000bd00, 0x00000076, 410001,,Windows Amstrad Plus Emulator ahk_class TfrmEmu ; Pause
Log("Module - Sent a message to pause " . MEmu . (If ErrorLevel = 1 ? " and returned successful!" : ", but it failed with an error code of " . ErrorLevel))
Return
RestoreEmu:
SendMessage, 0x0000bd00, 0x00000078, 430001,,Windows Amstrad Plus Emulator ahk_class TfrmEmu ; Run
Log("Module - Sent a message to resume " . MEmu . (If ErrorLevel = 1 ? " and returned successful!" : ", but it failed with an error code of " . ErrorLevel))
SetTimer, HideDebugWindow, Off
Return

HideDebugWindow:
IfWinNotExist, WinAPE Debugger ahk_class TfrmDebug
Return
Else
WinSet, Transparent, 0, WinAPE Debugger ahk_class TfrmDebug
Return

CloseProcess:
FadeOutStart()
WinClose("ahk_class TfrmEmu")
Return
Le pb vient peut-être de là.
Tu as un truc différent FactorX ?
Dernière modification par Jullles le 16 oct. 2016 - 19:49, modifié 2 fois.

Avatar de l’utilisateur
FactorX
Connaisseur
Connaisseur
Messages : 334
Inscription : 31 août 2016 - 21:00
A remercié : 55 fois
A été remercié : 19 fois

Re: Emuler Amstrad CPC

Message par FactorX » 16 oct. 2016 - 19:16

mon ini
[exe info]
path=\HFSBoxSP\RocketLauncher\
rompath=
userompath=true
exe=RocketLauncher.exe
romextension=
parameters="Amstrad CPC" -f "\HFSBoxSP\HyperSpin.exe" -p "HyperSpin"
searchsubfolders=
pcgame=false
winstate=NORMAL
hyperlaunch=false

[filters]
parents_only=false
themes_only=false
wheels_only=false
roms_only=false

[themes]
use_parent_vids=true
use_parent_themes=false
animate_out_default=false
reload_backgrounds=false

[wheel]
alpha=.15
small_alpha=1
style=normal
speed=high
pin_center_width=500
horz_wheel_y=512
vert_wheel_position=right
y_rotation=center
norm_large=360
norm_small=230
vert_large=400
vert_small=240
pin_large=500
pin_small=200
horz_large=240
horz_small=150
letter_wheel_x=800
letter_wheel_y=384
text_width=700
text_font=Style4
small_text_width=260
large_text_width=400
text_stroke_size=6
text_stroke_color=0x000000
text_color1=0x00BFFD
text_color2=0xFFFFFF
text_color3=0x00BFFD
color_ratio=139
shadow_distance=0
shadow_angle=45
shadow_color=0x000000
shadow_alpha=1
shadow_blur=0

[pointer]
animated=true
x=975
y=384

[video defaults]
path=

[sounds]
game_sounds=true
wheel_click=true

[navigation]
game_jump=50
use_indexes=false
jump_timer=400
remove_info_wheel=false
remove_info_text=false
use_last_game=false
last_game=Target Renegade (UK) (1988)
random_game=false
start_on_favorites=false

[Special Art A]
default=false
active=true
x=512
y=720
in=0.4
out=0.4
length=3
delay=0
type=normal
start=bottom

[Special Art B]
default=true
active=true
x=512
y=740
in=0.4
out=0.4
length=3
delay=0
type=fade
start=none

[Special Art C]
active=true
x=512
y=384
in=0
out=0
length=3
delay=10
type=fade
start=none

[Game Text]
game_text_active=true
show_year=true
show_manf=true
show_description=true
text_color1=0xffffff
text_color2=0x0099cc
stroke_color=0x000000
text_font=Style1
text1_textsize=26
text1_strokesize=7
text1_x=32
text1_y=610
text2_textsize=36
text2_strokesize=8
text2_x=30
text2_y=640


Mon ahk:
MEmu = WinAPE
MEmuV = v2.0.a18
MURL = http://www.winape.net/" onclick="window.open(this.href);return false;
MAuthor = djvj,brolly,wahoobrian
MVersion = 2.0.5
MCRC = 3D8B4C52
iCRC = 8E33D008
MID = 635038268934069007
MSystem = "Amstrad GX4000","Amstrad CPC"
;----------------------------------------------------------------------------
; Notes:
; You cannot pass a game name to the emu through CLI, but the emu will autolaunch the game set in its ini file.
; Run the exe manually and goto Settings->General, check "Disable Automatic Update"
; On the Display tab, check "Hide Control Panel", "Hide Menus" and "No Right-Click Menu". "Linear Palette" will slightly darken image if you enable it.
; On the Sound tab, check "44 kHz" and "16 bit".
; On the Input tab, set your controls and hit OK.
; Press F10 to turn on fullscreen then ALT+F4 to exit and save your settings.
; Make sure your rom extension is either zip or cpr, not both.
; Make sure you have Arnold V Diagnostic Cartridge.cpr rom on WinApe\ROM folder if you want to run No Exit.
; You can use any other CPCPlus cart if you prefer, in that case make sure you edit the variable below to the correct name.
;
; Default WinAPE disk swap/flip keys:
; Shift+F1 will flip Disk on Drive A:
; Shift+F2 will flip Disk on Drive B:
; Shift+Ctrl+F3 will swap Disks on Drive A: and B:
;
; Tape support (.cdt files):
; WinApe has limited tape support, some games might not load and the ones that do load will load at real time! So it can take several minutes for
; a tape game to load. It's highly suggested to use CPCE instead to play tape games.
;----------------------------------------------------------------------------
StartModule()
BezelGUI()
FadeInStart()

IfExist, % modulePath . "\" . systemName . ".ini" ; use a custom systemName ini If it exists
settingsFile := modulePath . "\" . systemName . ".ini"
Else
settingsFile := modulePath . "\" . moduleName . ".ini"

Fullscreen := IniReadCheck(settingsFile, "Settings", "Fullscreen","true",,1)
DiagCart := IniReadCheck(settingsFile, "Settings", "DiagCart","Arnold V Diagnostic Cartridge.cpr",,1)
InsertDiskErrorFix := IniReadCheck(settingsFile, "Settings", "InsertDiskErrorFix","false",,1)

Command := IniReadCheck(settingsFile, romName, "Command","",,1)
SendCommandDelay := IniReadCheck(settingsFile, romName, "SendCommandDelay", "1000",,1)
MachineType := IniReadCheck(settingsFile, romName, "MachineType", "CPC",,1)

DiagCart := GetFullName(DiagCart)

hideEmuObj := Object("Open CPC Plus Cartridge File ahk_class #32770",0,"ahk_class TfrmCover",0,"Windows Amstrad Plus Emulator ahk_class TfrmEmu",1) ; Hide_Emu will hide these windows. 0 = will never unhide, 1 = will unhide later
7z(romPath, romName, romExtension, 7zExtractPath)

BezelStart()

; Clean any previous disk in drives
IniWrite, %A_Space%, %emuPath%\WinAPE.ini, Drives, Drive(0) ; Drive A Side A
IniWrite, %A_Space%, %emuPath%\WinAPE.ini, Drives, Drive(4) ; Drive A Side B
IniWrite, %A_Space%, %emuPath%\WinAPE.ini, Drives, Drive(1) ; Drive B Side A
IniWrite, %A_Space%, %emuPath%\WinAPE.ini, Drives, Drive(5) ; Drive B Side B

; Clean any previous cart
IniWrite, %A_Space%, %emuPath%\WinAPE.ini, ROMS, Cartridge

; Clean any previous tape
IniWrite, %A_Space%, %emuPath%\WinAPE.ini, Tape, File Name

; autobootrom=true means rom will start through CLI otherwise another cart must be loaded before it as a workaround
autobootrom=true

; Set Fullscreen
If (Fullscreen = "true" && autobootrom = "true")
IniWrite, true, %emuPath%\WinAPE.ini, Configuration, Full Screen
Else
IniWrite, false, %emuPath%\WinAPE.ini, Configuration, Full Screen

; Set Numlock since you should have your joystick configurations made for this
SetNumlockState, off

If (systemName = "Amstrad GX4000") {
Gosub, CPCPlus
} Else {
; Change settings based on system name (CPC Plus games will only work if system is CPC Plus or GX4000)
IfInString, romName, (CPC+)
{
Gosub, CPCPlus
}
Else If (MachineType = "CPC+") {
Gosub, CPCPlus
}
Else {
IniWrite, false, %emuPath%\WinAPE.ini, Configuration, Enable Plus
IniWrite, 0, %emuPath%\WinAPE.ini, Configuration, CRTC Type
IniWrite, false, %emuPath%\WinAPE.ini, ROMS, Cartridge Enabled
IniWrite, OS6128, %emuPath%\WinAPE.ini, ROMS, Lower
IniWrite, BASIC1-1, %emuPath%\WinAPE.ini, ROMS, Upper(0)

If autobootrom = true
If romExtension = .cpr
{
IniWrite, %romPath%\%romName%%romExtension%, %emuPath%\WinAPE.ini, ROMS, Cartridge
}
Else If romExtension = .cdt
{
IniWrite, %romPath%\%romName%%romExtension%, %emuPath%\WinAPE.ini, Tape, File Name
}
}

; MultiDisk loading, this will load the first 2 disks into drives A and B since some games can read from both drives and therefore
; the user won't need to change disks through the MG menu.
; If (romName contains "(Disk 1" OR romName contains "(Side A")
If (InStr(romName, "(Disk 1") || InStr(romName, "(Side A"))
{ ; If the user boots any disk rather than the first one, multi disk support must be done through RocketLauncher MG menu
multipartTable := CreateRomTable(multipartTable)

If multipartTable.MaxIndex()
{ ; Make the searches case insensitive
original_case_sense := A_StringCaseSense
StringCaseSense, Off

; Has multi part
for index, element in multipartTable
{ current_rom := multipartTable[A_Index,1]

driveA_sideA = (Side A,(Disk 1),(Disk 1 Side A
driveA_sideB = (Side B,(Disk 1 Side B
driveB_sideA = (Disk 2),(Disk 2 Side A
driveB_sideB = (Disk 2 Side B

If current_rom contains %driveA_sideA%
IniWrite, %current_rom%, %emuPath%\WinAPE.ini, Drives, Drive(0)
Else If current_rom contains %driveA_sideB%
IniWrite, %current_rom%, %emuPath%\WinAPE.ini, Drives, Drive(4)
Else If current_rom contains %driveB_sideA%
IniWrite, %current_rom%, %emuPath%\WinAPE.ini, Drives, Drive(1)
Else If current_rom contains %driveB_sideB%
IniWrite, %current_rom%, %emuPath%\WinAPE.ini, Drives, Drive(5)
}
; Restore original StringCaseSense
StringCaseSense, %original_case_sense%
}
}
}

HideEmuStart()
Run(executable . " """ . romPath . "\" . romName . romExtension . """ /A", emuPath)

If (InsertDiskErrorFix = "true")
{
MiscUtils.SetErrorMode(2)
;WinWait("WinApe.exe - Drive Not Ready ahk_class #32770")
;WinActivate, WinApe.exe - Drive Not Ready ahk_class #32770
;ControlClick, Button1, WinApe.exe - Drive Not Ready ahk_class #32770
}

WinWait("ahk_class TfrmCover") ; waiting for logo to show
WinHide, ahk_class TfrmCover ; making logo dissappear!

; Close Information window, if it exists
Loop, 10 {
If WinExist("ahk_class TMessageForm") {
WinActivate
Send, {Enter}
break
}
Else
Sleep, 50
}

WinWait("Windows Amstrad Plus Emulator ahk_class TfrmEmu")
WinWaitActive("Windows Amstrad Plus Emulator ahk_class TfrmEmu")
BezelDraw()

If (autobootrom != "true")
{ ; Lets swap carts to load No Exit
Sleep 500 ; Wait just an instant for the diagnostic cart to load
ControlSend,, ^{F3},Windows Amstrad Plus Emulator ahk_class TfrmEmu ; Open CPC Plus Cartridge File
OpenROM("Open CPC Plus Cartridge File ahk_class #32770", romPath . "\" . romName . romExtension)
Sleep, 100
If Fullscreen = true
ControlSend,, {F10},Windows Amstrad Plus Emulator ahk_class TfrmEmu ; Fullscreen
}

; US keyboards need to send @ to type " while most EUR keyboards type "
; Both are located in the 2 key so we send Shift+2 instead so it will work on all cases
StringReplace, Command, Command, ", {Shift Down}2{Shift Up}, All

SendCommand(Command, SendCommandDelay)

If romExtension = .cdt
{ ; Tape Loading
SendCommand("{Shift Down}{vkBBsc01A}{Shift Up}tape{Enter}{Wait:200}run{Shift Down}2{Shift Up}{Enter}")
PostMessage, 0x111, 23,,,Windows Amstrad Plus Emulator ahk_class TfrmEmu ;Play Tape
SendCommand("{Enter}")
}

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


CPCPlus:
IniWrite, true, %emuPath%\WinAPE.ini, Configuration, Enable Plus
IniWrite, 3, %emuPath%\WinAPE.ini, Configuration, CRTC Type
IniWrite, true, %emuPath%\WinAPE.ini, ROMS, Cartridge Enabled
IniWrite, %A_Space%, %emuPath%\WinAPE.ini, ROMS, Lower
IniWrite, %A_Space%, %emuPath%\WinAPE.ini, ROMS, Upper(0)

If romExtension = .dsk
IniWrite, cpc_plus.cpr, %emuPath%\WinAPE.ini, ROMS, Cartridge
Else If romExtension = .cpr
IniWrite, %romPath%\%romName%%romExtension%, %emuPath%\WinAPE.ini, ROMS, Cartridge

; If autobootrom=true it means rom will start through CLI otherwise another cart must be loaded before hand as a workaround
If romName contains No Exit
{
; No Exit won't boot if the cart is already plugged it requires another cart (not all work) to be plugged and then we need to swap them
; We use the diagnostic cart as the booting cart since it always works
autobootrom=false
IniWrite, %DiagCart%, %emuPath%\WinAPE.ini, ROMS, Cartridge
}
Return

HaltEmu:
disableSuspendEmu := true
SetTimer, HideDebugWindow, 2
SendMessage, 0x0000bd00, 0x00000076, 410001,,Windows Amstrad Plus Emulator ahk_class TfrmEmu ; Pause
Log("Module - Sent a message to pause " . MEmu . (If ErrorLevel = 1 ? " and returned successful!" : ", but it failed with an error code of " . ErrorLevel))
Return
RestoreEmu:
SendMessage, 0x0000bd00, 0x00000078, 430001,,Windows Amstrad Plus Emulator ahk_class TfrmEmu ; Run
Log("Module - Sent a message to resume " . MEmu . (If ErrorLevel = 1 ? " and returned successful!" : ", but it failed with an error code of " . ErrorLevel))
SetTimer, HideDebugWindow, Off
Return

HideDebugWindow:
IfWinNotExist, WinAPE Debugger ahk_class TfrmDebug
Return
Else
WinSet, Transparent, 0, WinAPE Debugger ahk_class TfrmDebug
Return

CloseProcess:
FadeOutStart()
WinClose("ahk_class TfrmEmu")
Return

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: Emuler Amstrad CPC

Message par moustic » 16 oct. 2016 - 19:36

Messieurs la prochaine fois merci d'utiliser la fonction spoiler svp (il vous suffit d'éditer vos messages respectifs pour vois comment cela fonctionne) car c'est quand même plus lisible. Et merci de vous aider entre nouveaux ça fait plaisir à voir ;)
Image

Avatar de l’utilisateur
FactorX
Connaisseur
Connaisseur
Messages : 334
Inscription : 31 août 2016 - 21:00
A remercié : 55 fois
A été remercié : 19 fois

Re: Emuler Amstrad CPC

Message par FactorX » 16 oct. 2016 - 19:40

Ouais sorry pour le massacre
Pour le reste c'est normal
Avec toute l'aide que j'ai sollicité

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: Emuler Amstrad CPC

Message par Jullles » 16 oct. 2016 - 20:01

J'ai l'impression que mon message s'est perdu en route, alors je recommence.
Message aux modérateurs : N'hésitez pas à le supprimer si il y a doublon au final.

Au passage, j'ai édité, mon précédent message pour placer des balises "SPOIL" sur mes copier/coller de fichier ini et ahk. En effet, ça fait plus propre !

Mon message disait en gros ceci (deux points ouvrez les guillemets) :

CA MAAAAAARCHE !!!!!

Les deux fichiers settings étaient très similaires. Seule la partie [Thème] divergeait un peu.
Les fichiers Module ahk étaient en revanche assez différents. Je n'ai pas joué au jeu des 7 erreurs pour identifier précisément les écarts, et puis de toutes façons je ne comprend pas ce qui est écrit.
Mais le problème venait visiblement bien de là.

De mémoire, le fichier .ahk que j’utilisais venait du pack complet téléchargeable avec hyperpin (j'avais fusionné le pack hyperspin avec la HFSBoxSP téléchargée plus tard). Jusqu'à maintenant ça marchait bien avec les divers systèmes installés (Master System, NES, FDS, 32X, N64, Atari2600, Jaguar, Dreamcast...). Donc je n'y faisait pas vraiment gaffe.

J'ai testé que sur 1 seul jeu CPC. Mais je suis sûr que c'est OK.
Le jeu se lance sans même passer par l'obligation de taper une ligne de commande (cool pour ma future borne !).
Je n'ose plus toucher à l'émulateur.

FactorX, où avais-tu trouvé ta version du Module WinAPE ?

Dans tous les cas, UN GRAND MERCI A TOI d'avoir pris le temps de me dépanner !

@+

Avatar de l’utilisateur
FactorX
Connaisseur
Connaisseur
Messages : 334
Inscription : 31 août 2016 - 21:00
A remercié : 55 fois
A été remercié : 19 fois

Re: Emuler Amstrad CPC

Message par FactorX » 16 oct. 2016 - 20:55

J'ai la version du pack Starter proposé ici par nos amis de HFS.

Tant mieux ça fait plaisir d'aider. Tu as mis un thème etc? moi j'ai trouvé pas mal de choses mais il me manque des bezels propre à Amstrad.
Pour les jeux tu me diras mais moi Bombjack ne se lance pas directement.
Il reste pas mal de travail:
Je n'ai pas encore testé les jeux en multi disquettes...
aussi
je pense qu'il faut une config xpadder par jeux (ou quasi)
Si tu veux on peut s'échanger notre travail pour aller plus vite

EDIT: au passage j'en profite pour dire qu'en plus des bezels je cherche les images "propres" des disquettes, si ça existe...

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: Emuler Amstrad CPC

Message par Jullles » 18 oct. 2016 - 16:47

Salut FactorX,

Je viens de lire ton message.
OK pour s'entraider bien sûr.
J'ai finalement mis de côté WinAPE et ai retourné sous CPCE194 (plus stable pour ma config curieusement).

Je n'ai pas de bezel sur Amstrad non plus, et j'ai mis le CPC de côté. Et pour agrémenter le thème, j'utilise les boite en 3D, et non les disquettes. Le thème est ici (adaptation d'un thème dispo dsur le Web HFSPlay ou Hyperspin, je ne sais plus) :
https://mega.nz/#!JsEBVCBI!arlvaafjNhxl ... -DQe31-Nkc" onclick="window.open(this.href);return false;

Je fais une pause sur le CPC (dont j'ai de sérieux doutes pour une intégration efficace dans une borne sans clavier : chgt de face de disquette, reconfiguration des touches...). J'attaque la Saturn.

@+

Julien

Avatar de l’utilisateur
FactorX
Connaisseur
Connaisseur
Messages : 334
Inscription : 31 août 2016 - 21:00
A remercié : 55 fois
A été remercié : 19 fois

Re: Emuler Amstrad CPC

Message par FactorX » 18 oct. 2016 - 17:32

Hello

Oui c'est sûr que ça risque d'être compliqué, moi c'était vraiment pour revivre un grand délire de mon enfance avec target renegade, en jeux à 2 avec mon frangin...
Et puis même si sur la box on a déjà Bombjack et prince of Persia, c'est pas les mêmes versions...

En tout cas, merci pour le partage, pour le thème j'en ai trouvé un plus sympa je trouve, avec le fameux crocodile de l'époque. Si tu veux que je te l'envoi fais moi signe.

pour les autres systèmes, ma philosophie est d'ajouter ceux que j'ai possédé en gros, et les jeux de mon enfance, et non pas d'avoir tous les jeux du monde...
Du coup j'ai ajouté NES/PS1/PC/AMSTRAD et j'hésite à mettre la N64

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: Emuler Amstrad CPC

Message par Jullles » 18 oct. 2016 - 18:09

Je suis dans la même optique que toi. Et puis, de toutes façon, mon PC n'a pas la capacité à intégrer tous les systèmes.
J'peux t'envoyer des billes pour la N64. C'est un des rares systèmes que j'ai a peu près soldé (à part le bezel, toujours).
Et non merci pour le croco (je l'ai justement remplacé par les boites).

Avatar de l’utilisateur
FactorX
Connaisseur
Connaisseur
Messages : 334
Inscription : 31 août 2016 - 21:00
A remercié : 55 fois
A été remercié : 19 fois

Re: Emuler Amstrad CPC

Message par FactorX » 18 oct. 2016 - 20:22

ok, si tu veux j'ai un beau bezel pour la N64
Image

Oui je veux bien par MP que tu me brief sur la N64, merci.

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: Emuler Amstrad CPC

Message par Jullles » 18 oct. 2016 - 22:08

Je te transmet asap le lien vers le dossier Media N64.
Ca va être un peu long (1 Go, car j'y ai laissé plusieurs versions de Wheel et Box). Tu feras ton choix. A suivre en MP.

Répondre

Revenir à « Aide Configuration d'Emulateurs »