Problem with ePSXe image mounting script
- Phoenix
- ECC Developer 2006-2016
- Posts: 9059
- Joined: 27 Aug 2006, 01:17
- Location: Deventer, The Netherlands
- Contact:
Re: Problem with ePSXe image mounting script
I't a typo: "/nomount" should be "/mount" in the infofield, for the rest it's not casesensitive...
Sebastiaan Ebeltjes | ECC Developer 2006-2016 | ECC Forum Admin | Phoenix Interactive WebMaster
[- ECC programs -]
eccUpdate, eccScriptSystem, GtkThemeSelect, DatFileUpdater (DFU), ImagePackCenter (IPC), eccDiagnostics, 3dGallery, iccImageInject
eccKameleonCode, eccCreateStartmenuShotcut, eccThirdPartyConfig (TPC), EmuMoviesDownloader (EMD), eccVideoPlayer
MobyGamesImporter (MGI), ECC Amiga GetGemusConfig.
[- ECC programs -]
eccUpdate, eccScriptSystem, GtkThemeSelect, DatFileUpdater (DFU), ImagePackCenter (IPC), eccDiagnostics, 3dGallery, iccImageInject
eccKameleonCode, eccCreateStartmenuShotcut, eccThirdPartyConfig (TPC), EmuMoviesDownloader (EMD), eccVideoPlayer
MobyGamesImporter (MGI), ECC Amiga GetGemusConfig.
Re: Problem with ePSXe image mounting script
I havent talked about anything case sensitive. What I said is that info to be put into command line (%ROM% /nomount) is different than you used in script. Second and third script dont work completely maybe because of this.Phoenix wrote:I't a typo: "/nomount" should be "/mount" in the infofield, for the rest it's not casesensitive...
Anyway something is wrong as it is not a working script

- Phoenix
- ECC Developer 2006-2016
- Posts: 9059
- Joined: 27 Aug 2006, 01:17
- Location: Deventer, The Netherlands
- Contact:
Re: Problem with ePSXe image mounting script
Please download update 607, all patched files & versions are in there, i will fix any typo's i can find in a future update!
If the script still doesn't work maybe the Autoit help files could help you on the way!: http://www.autoitscript.com/autoit3/docs/functions.htm
You can always test and debug the script yourself with a MSGBOX, look in eccScriptSystem for the variables to use with your script.
Adjust the eccScript to you liking, and when you get it to work, you can post the code on the forum!
If the script still doesn't work maybe the Autoit help files could help you on the way!: http://www.autoitscript.com/autoit3/docs/functions.htm
You can always test and debug the script yourself with a MSGBOX, look in eccScriptSystem for the variables to use with your script.
Adjust the eccScript to you liking, and when you get it to work, you can post the code on the forum!
Sebastiaan Ebeltjes | ECC Developer 2006-2016 | ECC Forum Admin | Phoenix Interactive WebMaster
[- ECC programs -]
eccUpdate, eccScriptSystem, GtkThemeSelect, DatFileUpdater (DFU), ImagePackCenter (IPC), eccDiagnostics, 3dGallery, iccImageInject
eccKameleonCode, eccCreateStartmenuShotcut, eccThirdPartyConfig (TPC), EmuMoviesDownloader (EMD), eccVideoPlayer
MobyGamesImporter (MGI), ECC Amiga GetGemusConfig.
[- ECC programs -]
eccUpdate, eccScriptSystem, GtkThemeSelect, DatFileUpdater (DFU), ImagePackCenter (IPC), eccDiagnostics, 3dGallery, iccImageInject
eccKameleonCode, eccCreateStartmenuShotcut, eccThirdPartyConfig (TPC), EmuMoviesDownloader (EMD), eccVideoPlayer
MobyGamesImporter (MGI), ECC Amiga GetGemusConfig.
Re: Problem with ePSXe image mounting script
I already have 607 update.Phoenix wrote:Please download update 607, all patched files & versions are in there, i will fix any typo's i can find in a future update!
If the script still doesn't work maybe the Autoit help files could help you on the way!: http://www.autoitscript.com/autoit3/docs/functions.htm
You can always test and debug the script yourself with a MSGBOX, look in eccScriptSystem for the variables to use with your script.
Adjust the eccScript to you liking, and when you get it to work, you can post the code on the forum!
I have no idea how to fix this script

Re: Problem with ePSXe image mounting script
I am not sure if we understand each other now. I am not trying to adjust this new script (that you wrote) to my likings. It is just about that it is not workingPhoenix wrote:Adjust the eccScript to you liking, and when you get it to work, you can post the code on the forum!


ePSXe wont be an emulator that I will be using a lot - more like in a very rare occasions so that the time I spent on it is for other people that want to use it. Maybe then someone else can help here, but sadly no one seems to help in anything.
For now this script from newest update is to be deleted as it has bugs that make it not working.
- Phoenix
- ECC Developer 2006-2016
- Posts: 9059
- Joined: 27 Aug 2006, 01:17
- Location: Deventer, The Netherlands
- Contact:
Re: Problem with ePSXe image mounting script
Then it's a good time to learn it! google autoit and get started!
the thing is that not every PC is the same, it could work at my computer but not at yours etc, so autotit is pretty easy to learn, i think you get the hang of it in 3 evenings!
Nevertheless, i will not put much time in this script anymore, you can upload your version of the epsxe emulator +needed plugins and a "small" CD image to a filehoster, pm the link, when i found some time i will have a look at it!

Nevertheless, i will not put much time in this script anymore, you can upload your version of the epsxe emulator +needed plugins and a "small" CD image to a filehoster, pm the link, when i found some time i will have a look at it!
Sebastiaan Ebeltjes | ECC Developer 2006-2016 | ECC Forum Admin | Phoenix Interactive WebMaster
[- ECC programs -]
eccUpdate, eccScriptSystem, GtkThemeSelect, DatFileUpdater (DFU), ImagePackCenter (IPC), eccDiagnostics, 3dGallery, iccImageInject
eccKameleonCode, eccCreateStartmenuShotcut, eccThirdPartyConfig (TPC), EmuMoviesDownloader (EMD), eccVideoPlayer
MobyGamesImporter (MGI), ECC Amiga GetGemusConfig.
[- ECC programs -]
eccUpdate, eccScriptSystem, GtkThemeSelect, DatFileUpdater (DFU), ImagePackCenter (IPC), eccDiagnostics, 3dGallery, iccImageInject
eccKameleonCode, eccCreateStartmenuShotcut, eccThirdPartyConfig (TPC), EmuMoviesDownloader (EMD), eccVideoPlayer
MobyGamesImporter (MGI), ECC Amiga GetGemusConfig.
Re: Problem with ePSXe image mounting script
Alright.Phoenix wrote:Upload your version of the epsxe emulator +needed plugins and a "small" CD image to a filehoster, pm the link!
But first I will do some more testes with proper commandline because these "nomount" in info caused some problems when testing at first time above. We will knwo waht exactly to look for. From these new tests with proper commands it seems to quite work with only a few problems. I need some time now to check every of these three scripts and the problems that are with them - I will describe soon and then send whole emulatro with a game for your tests. I can say for now that first script for nomount is working correctly

Re: Problem with ePSXe image mounting script
That's easy to say when being a programmerPhoenix wrote:so autotit is pretty easy to learn, i think you get the hang of it in 3 evenings!


Re: Problem with ePSXe image mounting script
It is not that bad as it looked to be - the wrong info you provided in script messed a lot at my first test
Otherwise it nearly all works
Here is exactly what happens with every of these merged three scripts into one. With this description it will be very easy for you to find what the problem is 
First script "%ROM% (DEFAULT)":
Second script "%ROM% /nomount" - it should be corrected in notes to "%ROM% /mount":
It must be a script fault that causes first script to execute with second. When it is "blocked", then second script will be fixed completely.
Image is not unmounted which is correct.
Third script "%ROM% /nomount /nogui" - it should be corrected in notes to "%%ROM% /mount /nogui":
It should be very easy for you now to find why first script executes after second and third finish



First script "%ROM% (DEFAULT)":
There are no problems with first sript. It is just working perfectly.Func ExecuteScriptNomount()
EmuWindowControl("ePSXe")
Sleep(1000)
; Load ROM
Send("{ALT}")
Send("{ENTER}")
Send("{Down}")
Send("{ENTER}")
Sleep(1000)
Send($RomFile, 1)
Send("{ENTER}")
Endfunc
Second script "%ROM% /nomount" - it should be corrected in notes to "%ROM% /mount":
It is nearly all fine. Image is mounted, script "alt, enter, enter" is executed, mounted cd rom is run and game starts correctly. The only problem here is that after it happens, for whatever reason first script is executed and is loading the game. It happens in a two ways - rarely it opens just another ePSXe window and nothing happens, another time (which happens the most) it opens ePSXe window and starts to input game path into emulator "file - run iso" - just as in first script. I am sure it is first script executed (just after second finishes) by seeing what happens.Func ExecuteScriptMount()
CDImage("mount")
ShellExecute($eccEmuEmulatorPath & $eccEmuEmulatorFile)
Sleep(1000)
; Load ROM
Send("{ALT}")
Send("{ENTER}")
Send("{ENTER}")
;CDImage("unmount")
Endfunc
It must be a script fault that causes first script to execute with second. When it is "blocked", then second script will be fixed completely.
Image is not unmounted which is correct.
Third script "%ROM% /nomount /nogui" - it should be corrected in notes to "%%ROM% /mount /nogui":
Here the problem is the same as with second script. Game is mounted, nogui version appears as it should be and game is loaded. But when you press escape button to close nogui version, then the same happens as with second script - first script is executed. It always happens when you close game. And it is when image is unmounted in this script. Third script gives very good conclusion because first script executes just after image is unmounted which is exactly when third script finished. It would mean that when second and third script finish their job, then first script executes.Func ExecuteScriptMountNogui()
CDImage("mount")
ShellExecuteWait($eccEmuEmulatorPath & $eccEmuEmulatorFile, "-nogui")
CDImage("unmount")
Endfunc
It should be very easy for you now to find why first script executes after second and third finish

Re: Problem with ePSXe image mounting script
I think I found a partial fix to the problem. I deleted from your script:
I was just trying to remove certain lines, knowing from above described problem that something must casue first script to execute, and it started to work 
But another problem appearted - by removing these three lines, first script stopped working completely. But after all I did, it should be extremely easy now for you to fix it
And now first script doesnt execute when second and third finish. Second and third script work perfect when it is deleted. But dont look at me if I understood what I did because I didnt; Start mount (default)
ExecuteScriptNoMount()
Exit


But another problem appearted - by removing these three lines, first script stopped working completely. But after all I did, it should be extremely easy now for you to fix it

- Phoenix
- ECC Developer 2006-2016
- Posts: 9059
- Joined: 27 Aug 2006, 01:17
- Location: Deventer, The Netherlands
- Contact:
Re: Problem with ePSXe image mounting script
I forgot to put the "Exit" after the commandline codes, that's why the script got run twice!
, give it a try and let me know!
Should be:

Code: Select all
If $eccEmuCmdparameter2 = "/nogui" Then
ExecuteScriptMountNogui()
Else
ExecuteScriptMount()
EndIf
Code: Select all
If $eccEmuCmdparameter2 = "/nogui" Then
ExecuteScriptMountNogui()
Exit
Else
ExecuteScriptMount()
Exit
EndIf
Sebastiaan Ebeltjes | ECC Developer 2006-2016 | ECC Forum Admin | Phoenix Interactive WebMaster
[- ECC programs -]
eccUpdate, eccScriptSystem, GtkThemeSelect, DatFileUpdater (DFU), ImagePackCenter (IPC), eccDiagnostics, 3dGallery, iccImageInject
eccKameleonCode, eccCreateStartmenuShotcut, eccThirdPartyConfig (TPC), EmuMoviesDownloader (EMD), eccVideoPlayer
MobyGamesImporter (MGI), ECC Amiga GetGemusConfig.
[- ECC programs -]
eccUpdate, eccScriptSystem, GtkThemeSelect, DatFileUpdater (DFU), ImagePackCenter (IPC), eccDiagnostics, 3dGallery, iccImageInject
eccKameleonCode, eccCreateStartmenuShotcut, eccThirdPartyConfig (TPC), EmuMoviesDownloader (EMD), eccVideoPlayer
MobyGamesImporter (MGI), ECC Amiga GetGemusConfig.
Re: Problem with ePSXe image mounting script
It all works perfect now 
I corrected wrong info in script notes from "/nomount" to "/mount" and "/nomount /nogui" to "/mount /nogui" . I am copying whole script. Please check if all is fine. Seems new update is needed

I corrected wrong info in script notes from "/nomount" to "/mount" and "/nomount /nogui" to "/mount /nogui" . I am copying whole script. Please check if all is fine. Seems new update is needed

Code: Select all
; ------------------------------------------------------------------------------
; Platform : Sony PlayStation
; Script for : ePSXe
; Script version : v2.0.0.0
; Last changed : 2014.05.18
;
;
; Author: Sebastiaan Ebeltjes (aka Phoenix)
;
; NOTES:
;
; ECC settings:
;
; *** Start ePSXe without mounting a CD. (menu scripting):
; %ROM% (DEFAULT)
; ESCAPE = ON
;
; *** Mount CD and start ePSXe:
; %ROM% /mount
; ESCAPE = ON
; USE CUE FILE = ON
; (cd will not be unmounted)
;
; *** Mount CD and start ePSXe with NO GUI (-nogui):
; %ROM% /mount /nogui
; ESCAPE = ON
; USE CUE FILE = ON
;
; ------------------------------------------------------------------------------
; ==============================================================================
; You need to implent this block in every script, this changes the workfolder to
; the folder where this script is executed, and loads the 'eccScriptSystem' script.
FileChangeDir(@ScriptDir)
#include "..\eccScriptSystem.au3"
; ==============================================================================
; ------------------------------------------------------------------------------
; BEGIN OF SCRIPT
; ------------------------------------------------------------------------------
If $eccEmuCmdparameter1 = "/mount" Then
If $eccEmuCmdparameter2 = "/nogui" Then
ExecuteScriptMountNogui()
Exit
Else
ExecuteScriptMount()
Exit
EndIf
EndIf
; Start mount (default)
ExecuteScriptNoMount()
Exit
Func ExecuteScriptNomount()
EmuWindowControl("ePSXe")
Sleep(1000)
; Load ROM
Send("{ALT}")
Send("{ENTER}")
Send("{Down}")
Send("{ENTER}")
Sleep(1000)
Send($RomFile, 1)
Send("{ENTER}")
Endfunc
Func ExecuteScriptMount()
CDImage("mount")
ShellExecute($eccEmuEmulatorPath & $eccEmuEmulatorFile)
Sleep(1000)
; Load ROM
Send("{ALT}")
Send("{ENTER}")
Send("{ENTER}")
;CDImage("unmount")
Endfunc
Func ExecuteScriptMountNogui()
CDImage("mount")
ShellExecuteWait($eccEmuEmulatorPath & $eccEmuEmulatorFile, "-nogui")
CDImage("unmount")
Endfunc
; ------------------------------------------------------------------------------
; END OF SCRIPT
; ------------------------------------------------------------------------------
Exit
- Phoenix
- ECC Developer 2006-2016
- Posts: 9059
- Joined: 27 Aug 2006, 01:17
- Location: Deventer, The Netherlands
- Contact:
Re: Problem with ePSXe image mounting script
Good work!
, i'll take this in the next update!

Sebastiaan Ebeltjes | ECC Developer 2006-2016 | ECC Forum Admin | Phoenix Interactive WebMaster
[- ECC programs -]
eccUpdate, eccScriptSystem, GtkThemeSelect, DatFileUpdater (DFU), ImagePackCenter (IPC), eccDiagnostics, 3dGallery, iccImageInject
eccKameleonCode, eccCreateStartmenuShotcut, eccThirdPartyConfig (TPC), EmuMoviesDownloader (EMD), eccVideoPlayer
MobyGamesImporter (MGI), ECC Amiga GetGemusConfig.
[- ECC programs -]
eccUpdate, eccScriptSystem, GtkThemeSelect, DatFileUpdater (DFU), ImagePackCenter (IPC), eccDiagnostics, 3dGallery, iccImageInject
eccKameleonCode, eccCreateStartmenuShotcut, eccThirdPartyConfig (TPC), EmuMoviesDownloader (EMD), eccVideoPlayer
MobyGamesImporter (MGI), ECC Amiga GetGemusConfig.
Who is online
Users browsing this forum: No registered users and 1 guest