[RESOLU]soucis arrêt yabause retour hyperspin

Un problème que vous ne pouvez classer dans aucune des autres sections?

Modérateurs : Porko, Modérateurs

Avatar de l’utilisateur
lankou910
Gourou
Gourou
Messages : 728
Inscription : 16 mai 2013 - 01:00
Localisation : Bordeaux
A remercié : 76 fois
A été remercié : 107 fois

[RESOLU]soucis arrêt yabause retour hyperspin

Message par lankou910 » 26 juil. 2013 - 15:31

bonjour

Je rencontre un petit soucis avec yabause en plus avec le module je pense ...
Je m'explique j'utilise yabause pour emule la sega saturn les iso se lance bien
quelle que soit la region de l'iso grace a un bios modifier trouve chez votre partenaire darius qui fonction a passsage tres bien plus de soucis de region ....
mais pour la sortis d'un jeu obliger de faire atl f4 esc ne marche pas voila mon soucis
si vous puvez eclaire a l'anterne merci
le Module
;----------------------------------------------------------------------------
; Sega Saturn
; SSF Yabause Emuladores ( 100% tested SSF Test Version (11/08/27) Yabause 0.9.10 )
; by Darkbelmonte ~ ; 3.2
; Info:
;
; Philosophy give more support and be as automatic as possible
; this script has as main features,
; A) for 2 Susporte best emulators (recommended SSF)
; B) support for compressed archives (.zip, .7z and .rar)
; C) supports more image formats CD's with the SSF (New .IMG,.MDF - Yabause and the command line and it only accepts formats. cue,. iso and. bin)
; D) Supported resolutions 1024x768 and above all other (tested up to 1280x1024 )
; E) Innovative bar count reading is triggered only when reading we play a game that is compressed
;    (the process uses Progress_Lib.ahk to be placed in the directory /Modules/Sega Saturn/Progress_Lib.ahk.
;
; To use the function you should unpack the files and 7z.exe 7z.dll in the directory "/ Modules / Sega Saturn /"
; All the necessary files you find on the FTP on the way down
; FTP:.  /Upload Here/Darkbelmonte/Modules/Sega Saturn
;----------------------------------------------------------------------------
; Start - Defines which emulator is being used and had to file FILE
; Configuration for the system SSF - Sega Saturn Emulator
SetBatchLines, -1
if (executable = "ssf.exe")
 {
 IfExist, %romPath%%romName%.cue
 {Goto , part0ssf
 }
 IfExist, %romPath%%romName%.iso
 {Goto , part0ssf  
 }
 IfExist, %romPath%%romName%.bin
 {Goto , part0ssf      
 }
    IfExist, %romPath%%romName%.img
                    {Goto , part0ssf      
                    }
 ifExist, %romPath%%romName%.mds
                        {Goto , part0ssf
}
 ifExist, %romPath%%romName%.7z
 {Goto , part1ssf
 }
 ifExist, %romPath%%romName%.rar
 {Goto , part1ssf
 }
 ifExist, %romPath%%romName%.zip
 {Goto , part1ssf
 }
 }
 
;----------------------------------------------------------------------------
; Configuration for the system Yabause - Sega Saturn Emulator "Open Source"
else if (executable = "yabause.exe")
 {
 IfExist, %romPath%%romName%.cue
 {Goto , part0yabause
 }
 IfExist, %romPath%%romName%.iso
 {Goto , part0yabause  
 }
 IfExist, %romPath%%romName%.bin
 {Goto , part0yabause      
 }
 ifExist, %romPath%%romName%.7z
 {Goto , part1yabause
 }
 ifExist, %romPath%%romName%.rar
 {Goto , part1yabause
 }
 ifExist, %romPath%%romName%.zip
 {Goto , part1yabause
 }
 }

ExitApp
          
CloseProcess:

  WinClose, ahk_class Yabause
  WinClose, ahk_class SSF TestVer
  WinClose, ahk_class SSF Ver0.12
  RunWait, %daemonToolsPath% -unmount 0  
  FileDelete, %romPath%\%romName%\%romName%*
 FileRemoveDir, %romPath%%romName%, 1
 Gui, destroy
  ExitApp  
return
; ###########################################################################

;----------------------------------------------------------------------------
; Shortcuts to the system SSF - Sega Saturn Emulator

 part0ssf:
{ Gui +AlwaysOnTop -Caption +ToolWindow
    Gui, color, 000000
    Y01 := A_ScreenHeight/6 - 100
    X02 := A_ScreenWidth/2 - 200
    Y02 := A_ScreenHeight/5 + 400
    Gui, Add, Picture,x%X02% y%Y01%, %A_ScriptDir%\Media\Main Menu\Images\Wheel\%systemName%.png
    Gui, Add, Picture,x%X02% y%Y02%, %A_ScriptDir%\Media\%systemName%\Images\Wheel\%romName%.png
    Gui, Show, x0 y0 h%A_ScreenHeight% w%A_ScreenWidth%
 IniWrite, 1, %emuPath%\SSF.ini, Peripheral, CDDrive ; Using a daemontools when there is only one real CDROM
 IniWrite, 2, %emuPath%\SSF.ini, Screen, FullSize    ; fullScreen or execution of a press Alt + Enter
 RunWait, %daemonToolsPath% -unmount 0  
 RunWait, %daemonToolsPath% -mount 0`,"%romPath%%romName%%romExtension%"
RunWait, %executable%, %emuPath%
WinSet, AlwaysOnTop, On, ahk_pid %Errorlevel%
 WinSet, Top,, ahk_pid %Errorlevel%
 WinActivate, ahk_pid %Errorlevel%
 WinWaitActive, ahk_pid %Errorlevel%
Process, WaitClose, %executable%
 RunWait, %daemonToolsPath% -unmount 0  
 }

 part1ssf:
{  RunWait, %daemonToolsPath% -unmount 0                                                      
   FileRemoveDir, %romPath%%romName%, 1
   Gosub, GuiCreate
   RunWait, %A_ScriptDir%\Modules\%systemName%\7z.exe e "%romPath%%romName%%romExtension%" -o"%romPath%%romName%\", ,Hide
   IfExist, %romPath%%romName%\%romName%.cue
 {  RunWait, %daemonToolsPath% -mount 0`,"%romPath%%romName%\%romName%.cue"
}  IfNotExist, %romPath%%romName%\%romName%.cue
 { Loop, %romPath%%romName%\*.cue, , 1
 {
 RunWait, %daemonToolsPath% -mount 0`,"%A_LoopFileFullPath%"
 Goto , part2ssf
 }
 } IfWinExist, DAEMON Tools Lite
  RunWait, %daemonToolsPath% -unmount 0
{ Loop, %romPath%%romName%\*.iso, , 1
 {
 RunWait, %daemonToolsPath% -mount 0`,"%A_LoopFileFullPath%"
 Goto , part2ssf
 }
 } IfWinExist, DAEMON Tools Lite
  RunWait, %daemonToolsPath% -unmount 0
{ Loop, %romPath%%romName%\*.bin, , 1
 {
 RunWait, %daemonToolsPath% -mount 0`,"%A_LoopFileFullPath%"
 Goto , part2ssf
 }
 } IfWinExist, DAEMON Tools Lite
  RunWait, %daemonToolsPath% -unmount 0
{ Loop, %romPath%%romName%\*.img, , 1
 {
 RunWait, %daemonToolsPath% -mount 0`,"%A_LoopFileFullPath%"
 Goto , part2ssf
 }
 } IfWinExist, DAEMON Tools Lite
  RunWait, %daemonToolsPath% -unmount 0
{ Loop, %romPath%%romName%\*.mds, , 1
 {
 RunWait, %daemonToolsPath% -mount 0`,"%A_LoopFileFullPath%"
 Goto , part2ssf
 }
 }}
 part2ssf:
{  
WinGet, JanelaAtual, ID, A
 WinGet, ExStyle, ExStyle, ahk_id %JanelaAtual%
 ; 0 is most likely your hardware drive, while 1 may be your virtual drive ( Usando o daemontools )
 ;IniWrite, 2, %emuPath%\SSF.ini, Peripheral, CDDrive
 ;IniWrite, 1, %emuPath%\SSF.ini, Screen, FullSize
 Run, %executable% , %emuPath%, , useerrorlevel   ; ,Maximize | Hide
Winset, AlwaysOnTop, off, ahk_id %JanelaAtual%
 Process, WaitClose, %executable%
 
}


;----------------------------------------------------------------------------
; Shortcuts to the system Yabause - Sega Saturn Emulator "Open Source"
part0yabause:
 { Run, %Executable% -f -i "%romPath%%romName%%romExtension%", %EmuPath%, Hide UseErrorLevel  
 Process, wait, %Executable%, 10                                                            
 Sleep, 30000                                                                      
Winactivate, %executable%                                                          
 Process, waitclose, %Executable%
ExitApp
 }

part1yabause:
 { FileRemoveDir, %romPath%%romName%, 1
 Gosub, GuiCreate
    RunWait, %A_ScriptDir%\Modules\%systemName%\7z.exe e "%romPath%%romName%%romExtension%" -o"%romPath%%romName%\", ,Hide
  IfExist, %romPath%%romName%\%romName%.cue
 {
 Run, %Executable% -f -i "%romPath%%romName%\%romName%.cue", %EmuPath%, Hide UseErrorLevel
Goto , part2yabause
 }IfNotExist, %romPath%%romName%\%romName%.cue
 {
 Loop, %romPath%%romName%\*.cue, , 1
 {
 Run, %Executable% -f -i "%A_LoopFileFullPath%", %EmuPath%, Hide UseErrorLevel
}
 }
if (ErrorLevel = 0)
 {
 Goto , part2yabause
 }else{
 Loop, %romPath%%romName%\*.iso, , 1
 {Run, %Executable% -f -i "%A_LoopFileFullPath%", %EmuPath%, Hide UseErrorLevel
WinGet, currentWindow, ID, A
 WinGet, ExStyle, ExStyle, ahk_id %currentWindow%
 Winset, AlwaysOnTop, off, ahk_id %currentWindow%
 Goto , part2yabause
 }
 }
 }
part2yabause:
 { Process, wait, %Executable%, 10                                                            
 Sleep, 30000                                                                      
Winactivate, %executable%                                                          
 Process, waitclose, %Executable%
 FileDelete, %romPath%\%romName%\%romName%*
FileRemoveDir, %romPath%%romName%, 1  
 ExitApp
 }
 

; ###########################################################################
; Formation process of the Bar Loading (Required to use Progress_Lib)
#Include %A_ScriptDir%\Modules\Sega Saturn\Progress_Lib.ahk
;----------------------------------------------------------------------------
; Part of the script aimed at setting the bar and Loading
; The bar only exists, of course if the file is compressed (zip, 7z, rar, ace, etc. ..
; The idea was to tell the size of unpacked the percentage being done in relation to its overall size and have unpacked
; Eg. An ISO 400MB (Actual Size) when it has been unpacked 200MB will be in the bar 50%

; 1 - Download the Image (progress bar) and Progress_Lib If They Are Not in the Script folder
GuiCreate:
If (FileExist("P-N.png") = "")
   UrlDownloadToFile, http://www.autohotkey.net/~Banane/Images/P-N.png, P-N.png
   If (FileExist("P-R.png") = "")
   UrlDownloadToFile, http://www.autohotkey.net/~Banane/Images/P-R.png, P-R.png
; If (FileExist("Progress_Lib.ahk") = "")
;  UrlDownloadToFile, http://www.autohotkey.net/~??????????????????
;-----------------------------------------------------------------------------
; 2 - Sets the size of ROM / ISO
    FolderSizeKB = 0
    Loop, %romPath%%romName%%romExtension%, , 1
    FolderSizeKB += %A_LoopFileSizeMB%
    compactado =0-%FolderSizeKB%
;-----------------------------------------------------------------------------
; 3 - Process of unpacking and launching of the progress bar (background screen)
  Gui, 3:+AlwaysOnTop -Caption +ToolWindow
  Gui, 3:color, 000000
  Y01 := A_ScreenHeight/6 - 100
  X02 := A_ScreenWidth/2 - 200
  Y02 := A_ScreenHeight/5 + 400
  Gui, 3:Add, Picture,x%X02% y%Y01%, %A_ScriptDir%\Media\Main Menu\Images\Wheel\%systemName%.png
  Gui, 3:Add, Picture,x%X02% y%Y02%, %A_ScriptDir%\Media\%systemName%\Images\Wheel\%romName%.png
  Gui, 3:Show, x0 y0 h%A_ScreenHeight% w%A_ScreenWidth%
  WinGet, JanelaAtual, ID, A
  WinGet, ExStyle, ExStyle, ahk_id %JanelaAtual%
  Winset, AlwaysOnTop, off, ahk_id %JanelaAtual%
; 4 - Launches the smaller screen with the bar mounted to
  X1 := A_ScreenWidth/2 - 400 /2    
  Y1 :=  A_ScreenHeight/2 - 90      
 Gui Show, x%X1% y%Y1% h%A_ScreenHeight% w%A_ScreenWidth%
  Gui, +LastFound -Caption
 Gui, Color, 222222
 WinSet, Region, 0-0 0-0 w395 H100 R9-9    
  Gui, Font, cFFFFFF Bold, Arial
 Progress_SetFile("P-N.png","P-R.png")
 hBar1 := Progress_Add(1,"x15 y50 w340 h15","0-4",0,"$Position/$Range")
 Progress_Set(hBar1,compactado,1)
 Gui, Add, Text, x115 y70 w140 h15 , %romName%  
  Gui, Add, Text, x300 y70 w50 h15 vText1 +Right, % Progress_Get(hBar1,2) "%"
 Gui, Add, Text, x15 y70 w75 h15 vText2, % Progress_Get(hBar1,1) "/" Progress_Get(hBar1,3)
 Gui, Font, S17 Bold, Arial
  Gui, Add, Text,x80 y25 w300 h25 , P l e a s e  W a i t
; 5 - Count the size of the ISO
   if(%A_LoopFileSizeKB% 0){            
          Progress_Set(hBar1,0)              
         Loop, % Progress_Get(hBar1,3) {          
          if a_index = %FolderSizeKB%
          break
  if a_index = %FolderSizeKB%        
  TamanhoPastaKB = 0
  Loop, %romPath%%romName%\*.*, , 1  
 Run, %romPath%%romName%\, ,Hide    
 Gui, Add, Text,x300 y25 w300 h25 , .%A_Space%.%A_Space%.%A_Space%.
  TamanhoPastaKB += %A_LoopFileSizeKB%
  if a_index = %TamanhoPastaKB%    
  break
  if a_index = %TamanhoPastaKB%          
 Run, %romPath%%romName%\, ,Hide
 Gui, Add, Text,x300 y25 w300 h25 , %A_Space%.%A_Space%.%A_Space%.%A_Space%.
  Progress_Set(hBar1,A_Index)
  GoSub, GuiUpdate
Sleep, 5
   }  
    }
 Return
 
  

GuiSlider:
 GuiControlGet, Slider
 Progress_Set(hBar1,Slider)
  GoSub, GuiUpdate
 Return

GuiUpdate:
 GuiControl, 1:, Text1, % Progress_Get(hBar1,2) "%"
 GuiControl, 1:, Text2, % Progress_Get(hBar1,1) "/" Progress_Get(hBar1,3)
 Return
Image
Image

Avatar de l’utilisateur
lankou910
Gourou
Gourou
Messages : 728
Inscription : 16 mai 2013 - 01:00
Localisation : Bordeaux
A remercié : 76 fois
A été remercié : 107 fois

Re: [RESOLU]soucis arrêt yabause retour hyperspin

Message par lankou910 » 03 août 2013 - 11:49

Probleme resolu passer sous ssf
Image
Image

Répondre

Revenir à « Divers »