Jump to content

All my products and services are free. All my costs are met by donations I receive from my users. If you enjoy using any of my products, please donate to support me. My bare hosting costs are currently not met so please consider donating by either clicking this text or the Patreon link on the right.

Patreon

Recommended Posts

Posted (edited)

Hello,

I've been trying for almost 5 hours now to make gameex close pcsx2 1.0 in order to go back to the frontend.

I just don't know what to try anymore. Please help me. At this point ANY solution is legit, so don't be shy.

I Have setup everything correctly in the Setup Wizard and the emulator does start and loads up the .iso. I can play the game and all is fine. But as soon as I hit escape the game stops but the PCSx2 Window stays open.

Normaly the "Map Keys" option under Emulator Setup should map the esc key to close the process of the emulator. But that doesn't work.

So I tried to turn it off and use the Advanced Config [Mapping OFF] Exit (Alt+F4) but that doesn't work either.

Then I tried the "Keys to send" but guess what it didn't work.

All I need is a f****** alt + f4 at the right time, but I just can't get.

I tried to use the --nogui command line and when I use that, it does not open such a PCSX2 window at all. But when i close the game by pressing ESC, the process pcsx2-r5350.exe stays alive in the background and that prevents gameex to go back to the frontend again.

So I tried to create a batch script "taskkill /IM pcsx2-r5350.exe"

and confirmed that it is working outside of Gameex. But when I used the "Launch After" field to execute the script after the emulator is closed it still didn't work.

Same goes for an AutoIt script. I compiled an .exe file and confirmed that it was working outside of gameex.

When I switch on the Debug Mode I can see that the script is being executed even before I hit the ESC button. Is this a bug or something?

What the hell is going on. Please help me!

Here is my emulator config

[Emulator]
CDCheckFile=
CDCheck=False
RandomMostPlayed=True
ShowMostPlayed=True
PlayInScreenSaver=False
GamesIn7Zips=False
PCGame=False
SelectionMusicFolder=
PlaySelectionMusic=False
DontShowInfo=
PlayMusic=False
CustomBackground=
ExcludedFiles=
LaunchAfter=D:\Arcade\PCSX2 1.0.0\closepcsx2.bat
LaunchBefore=
AlsoLaunch=
Debug=True
ShowDesktop=True
RemoveBrackets=True
Capitals=False
ReplaceUnder=True
ReplaceDash=False
SendKeys=
WaitBeforeKeys=
MapKeys=False
WorkingPath=D:\Arcade\PCSX2 1.0.0
ControlPanelPath=D:\Arcade\PCSX2 1.0.0\Asset\Sony Playstation 2\Controls
ManualPath=D:\Arcade\PCSX2 1.0.0\Asset\Sony Playstation 2\Manuals
CartPath=D:\Arcade\PCSX2 1.0.0\Asset\Sony Playstation 2\Cartridges
BoxPath=D:\Arcade\PCSX2 1.0.0\Asset\Sony Playstation 2\Boxes
TitlePath=D:\Arcade\PCSX2 1.0.0\Asset\Sony Playstation 2\Titles
SnapPath=D:\Arcade\PCSX2 1.0.0
RomPath=D:\Arcade\PCSX2 1.0.0\roms
MapFile=[Console] Sony Playstation 2.map
ConfigFile=[Mapping Off] Exit (ALT+F4)
Database=[Console] Sony Playstation 2
RomFilter=*.iso
Command=pcsx2-r5350.exe --fullscreen "[ROMPATH]\[ROMFILE]"
StartPageLogo=Sony Playstation 2
StartPageName=[Console] Sony Playstation 2 (PCSX2)
TitleText=Sony Playstation
Info=Sony Playstation 2 Emulator
Website=http://pcsx2.net/
RequiredFiles=scph10000.bin or scph39001.bin
DownloadUrl=http://www.gamesdbase.com/setupwizard/emulators/download/pcsx2.7z
Rating=7.9
Version=0.9.8r4600
Emulator=PCSX2
Category=Console
System=Sony Playstation 2
Enabled=True
lastgame=

Thank you so much for your help.

Edited by Draco1962
Please try to refrain from using explicit profanity - thanks!
Posted

You might want to provide a copy of your log.txt so we may be of further help. Have you tried adding the /T parameter in your taskkill bat file? I do not use the emulator you are trying to get to work correctly on exit, but I am curious if there may not be a child process invoked. Also, a timeout command might also prove useful prior to the execution of the taskkill.

Posted

I used the /T parameter and found out that there actually is a child process involved. You can see that when you pause the batch script. But unfortunately it didn't help.

Again: Why do I see the batch script being executed even BEFORE I press escape? I can see that in the Debug Mode when the batch pauses:

9lrl27s6.jpg

This is what I see even before the game starts.

Now when I press a Button the game starts. Then I press ESC to exit the game and I get the following

r6ppwzd4.jpg

Now I have to press Alt+F4 or click on the close button in order to close PCSX2 and get back into my frontend.

Here is my log.txt

17:59:54.5 01.01.2013: Opening Configuration File
17:59:54.5 01.01.2013: GameEx: Version 12.98: Starting Log
17:59:54.5 01.01.2013: Operating System Platform: Win32NT
17:59:54.5 01.01.2013: Operating System Name: Windows XP
17:59:54.5 01.01.2013: Operating System Version: 5.1.2600
17:59:54.5 01.01.2013: Getting CPU and RAM info
17:59:54.5 01.01.2013: Intel® Core2 Quad CPU Q9550 @ 2.83GHz, 3007MB
17:59:54.5 01.01.2013: 2,83Ghz - 4 Cores or CPU's
17:59:54.5 01.01.2013: Running Randomize()
17:59:54.5 01.01.2013: Loading PlugIns
17:59:54.6 01.01.2013: Checking for applications to Launch On Startup
17:59:54.6 01.01.2013: Running Misc startup tasks
17:59:54.6 01.01.2013: Setting Menu types
17:59:54.6 01.01.2013: Getting Configuration Values
17:59:54.6 01.01.2013: Using Theme: Default - Galaxian
17:59:54.6 01.01.2013: Checking for alternate Image Directory for Theme: Default - Galaxian
17:59:54.6 01.01.2013: Launching HideOS.exe
17:59:54.6 01.01.2013: Initialising Video/MNG DLL's
17:59:54.6 01.01.2013: GameEx will check for media insertion (may affect performance)
17:59:54.6 01.01.2013: Hiding Taskbar
17:59:54.6 01.01.2013: Using Cabinet Friendly Control System
17:59:54.6 01.01.2013: Is Media Center running?
17:59:54.6 01.01.2013: Checking/Creating LCD Registry values
17:59:54.6 01.01.2013: Check Media Center Exit/Start Mode
17:59:54.6 01.01.2013: Media Center Mode 2
17:59:54.6 01.01.2013: Video previews on. Warning: Only recommended on modern systems
17:59:54.6 01.01.2013: Snap Delay set to: 2
17:59:54.6 01.01.2013: Get other settings
17:59:54.6 01.01.2013: Desktop set to Hide ICONS and set Background to Black
17:59:54.6 01.01.2013: Set: Find emulator artwork on best match basis
17:59:54.6 01.01.2013: Start work for Form
17:59:54.6 01.01.2013: Getting Original Screen Size
17:59:54.6 01.01.2013: Opening Database Connection
17:59:54.7 01.01.2013: Initializing Component
17:59:54.7 01.01.2013: MAME Path is: D:\Arcade\mameui0146u2nonag
17:59:54.7 01.01.2013: Model 2 Path Path is: D:\Arcade\model210
17:59:54.7 01.01.2013: Multi Core/Hyper Threading detected. Looking for emulator_multicpu.exe
17:59:54.7 01.01.2013: Model 2 EXE file is: emulator_multicpu.exe
17:59:54.7 01.01.2013: Model 2 emulator with command line support detected
17:59:54.7 01.01.2013: Use Model 2 on. emulator_multicpu.exe will launch Sega Model 2 games
17:59:54.7 01.01.2013: ZiNc Path is: D:\Arcade\zinc
17:59:54.7 01.01.2013: ZiNc EXE file is: ZiNc.exe
17:59:54.7 01.01.2013: Use ZiNc on. ZiNc.exe will launch PSX games
17:59:54.7 01.01.2013: MAME EXE file is: mameui.exe
17:59:54.7 01.01.2013: ROM Paths are: D:\Arcade\mameui0146u2nonag\roms;D:\Arcade\mameromset0146\roms
17:59:54.7 01.01.2013: Catver.ini is located at: D:\Arcade\GameEx\DATA\catver.ini
17:59:54.7 01.01.2013: controls.ini is located at: D:\Arcade\GameEx\DATA\controls.ini
17:59:54.8 01.01.2013: History.dat is located at: D:\Arcade\GameEx\DATA\history.dat
17:59:54.8 01.01.2013: nplayers.ini is located at: D:\Arcade\GameEx\DATA\nplayers.ini
17:59:54.8 01.01.2013: command.dat is located at: D:\Arcade\GameEx\DATA\command.dat
17:59:54.8 01.01.2013: MAMEinfo.dat is located at: D:\Arcade\GameEx\DATA\mameinfo.dat
17:59:54.8 01.01.2013: Loading Controls.ini map file
17:59:54.8 01.01.2013: Snap Path is: D:\Arcade\mameextras\MAME 0.146 EXTRAs\snap
17:59:54.8 01.01.2013: Background Snap Path is: D:\Arcade\mameextras\MAME 0.146 EXTRAs\snap
17:59:54.8 01.01.2013: AVI Snap Path is: D:\Arcade\mameui0146u2nonag\movie
17:59:54.8 01.01.2013: Flyer Path is: D:\Arcade\mameextras\MAME 0.146 EXTRAs\flyers
17:59:54.8 01.01.2013: Cabinet Path is: D:\Arcade\mameextras\MAME 0.146 EXTRAs\cabinets
17:59:54.8 01.01.2013: Cabinet 3D Path: Not Found
17:59:54.8 01.01.2013: Title Path is: D:\Arcade\mameextras\MAME 0.146 EXTRAs\titles
17:59:54.8 01.01.2013: PCB Path is: D:\Arcade\mameextras\MAME 0.146 EXTRAs\pcb
17:59:54.8 01.01.2013: Artwork Preview Path is: D:\Arcade\mameextras\MAME 0.146 EXTRAs\artwork
17:59:54.8 01.01.2013: Panel Path is: D:\Arcade\mameextras\MAME 0.146 EXTRAs\cpanel
17:59:54.8 01.01.2013: Manual Path is: D:\Arcade\mameextras\MAME 0.146 EXTRAs\manuals
17:59:54.8 01.01.2013: Icon Path is: D:\Arcade\mameextras\MAME 0.146 EXTRAs\icons
17:59:54.8 01.01.2013: Marquee Path is: D:\Arcade\mameextras\MAME 0.146 EXTRAs\marquees
17:59:54.8 01.01.2013: Applying Language/Text
17:59:54.8 01.01.2013: Text/Language: English
17:59:54.8 01.01.2013: Loading Language/Text
17:59:54.8 01.01.2013: Loading Custom Emulators
17:59:54.8 01.01.2013: Loading Emulator 1: [Console] Sony Playstation 2 (PCSX2)
17:59:54.8 01.01.2013: Checking if Steam enabled
17:59:54.8 01.01.2013: Cannot find steam path
17:59:54.8 01.01.2013: Using Version 3 Themes Animations
17:59:54.8 01.01.2013: Retrieving resolution setting
17:59:54.8 01.01.2013: Using General Font: HandelGothic BT
17:59:54.8 01.01.2013: Using Title Font: HandelGothic BT
17:59:54.8 01.01.2013: GameEx will try to reduce CPU usage
17:59:54.9 01.01.2013: Initialising Direct3D
17:59:54.9 01.01.2013: Mouse Input is disabled
17:59:54.9 01.01.2013: Applying GameEx is Loading Image
17:59:55.0 01.01.2013: Setting Resolution to 800x600 32 bit color
17:59:55.0 01.01.2013: Creating Surfaces
17:59:55.0 01.01.2013: Creating Primary Surface - Full Screen Mode
17:59:55.0 01.01.2013: Creating Back Buffer
17:59:55.0 01.01.2013: Loading graphic Surfaces
17:59:55.1 01.01.2013: Display is running at: 800x600 32bit color, 60hz
17:59:55.1 01.01.2013: Adapter: ATI Radeon HD 4800 Series
17:59:55.1 01.01.2013: Max texture size: 8192x8192
17:59:55.1 01.01.2013: Available texture memory: 1119MB
17:59:55.1 01.01.2013: Initialising Bass Audio Library
17:59:55.1 01.01.2013: Creating Surfaces Misc and Dialogs
17:59:55.1 01.01.2013: Creating Surfaces Volume
17:59:55.1 01.01.2013: Creating Surfaces Arrows
17:59:55.1 01.01.2013: Creating Surfaces GameEXlogo Text
17:59:55.1 01.01.2013: Creating Surfaces Toolbar
17:59:55.1 01.01.2013: Creating Surfaces Toolbar Controls
17:59:55.2 01.01.2013: Creating Surfaces Backgrounds
17:59:55.2 01.01.2013: Creating Surfaces GameEx Logo
17:59:55.2 01.01.2013: Creating Surface Unselected
17:59:55.2 01.01.2013: Creating Surfaces Snaps
17:59:55.2 01.01.2013: Creating Surfaces Menu and List Bars
17:59:55.2 01.01.2013: Creating Fonts
17:59:55.2 01.01.2013: Creating Game Font
17:59:55.3 01.01.2013: Creating Game Font Faded
17:59:55.6 01.01.2013: Creating Title Font
17:59:55.6 01.01.2013: Restoring Title Font From Cache
17:59:55.7 01.01.2013: Creating Font Black
17:59:55.7 01.01.2013: Creating Font Black Small
17:59:55.8 01.01.2013: Fonts Created Succesfully
17:59:55.8 01.01.2013: 2MB Video Memory Used
17:59:55.9 01.01.2013: Attempting to load game list
17:59:56.0 01.01.2013: MAME CMD options: -nowindow -joy -skip_gameinfo
17:59:56.1 01.01.2013: Cannot Load Play List. Check Path and filename
17:59:56.1 01.01.2013: Gamepad/Joystick disabled
17:59:56.1 01.01.2013: Loading Start Page
17:59:56.1 01.01.2013: Initializing MCE Remote
17:59:56.1 01.01.2013: Playing intro sound file
17:59:56.1 01.01.2013: Initialization OK! Starting GameEx!
17:59:56.1 01.01.2013: Testing Main Loop Once: Processing Frame
17:59:56.3 01.01.2013: Testing Main Loop Once: Main Loop ran successfully
17:59:59.8 01.01.2013: Validating: Emulator_1: Snap Path: D:\Arcade\PCSX2 1.0.0
17:59:59.8 01.01.2013: Validating: Emulator_1: Control Panel Path: D:\Arcade\PCSX2 1.0.0\Asset\Sony Playstation 2\Controls
17:59:59.8 01.01.2013: Validating: Emulator_1: Database: [Console] Sony Playstation 2
17:59:59.8 01.01.2013: Validating: Emulator_1: Title Snap Path: D:\Arcade\PCSX2 1.0.0\Asset\Sony Playstation 2\Titles
17:59:59.8 01.01.2013: Validating: Emulator_1: Box Art Path: D:\Arcade\PCSX2 1.0.0\Asset\Sony Playstation 2\Boxes
17:59:59.8 01.01.2013: Validating: Emulator_1: Cart Art Path: D:\Arcade\PCSX2 1.0.0\Asset\Sony Playstation 2\Cartridges
17:59:59.8 01.01.2013: Validating: Emulator_1: Manual Path: D:\Arcade\PCSX2 1.0.0\Asset\Sony Playstation 2\Manuals
17:59:59.8 01.01.2013: Warning: Emulator_1: MAPFile Does Not Exist
17:59:59.8 01.01.2013: Cache Diff: true - false
17:59:59.8 01.01.2013: Not Restoring Emulator from Cache: 1
17:59:59.8 01.01.2013: Not Restoring Emulator Database From Cache: 1
18:00:07.9 01.01.2013: Creating instance of global keyboard hook
18:00:08.0 01.01.2013: Running: cmd.exe /c D: pcsx2-r5350.exe --fullscreen "D:\Arcade\PCSX2 1.0.0\roms\CVS2.ISO"
18:00:08.1 01.01.2013: Shutting down display
18:01:16.7 01.01.2013: Writing Stats
18:01:16.8 01.01.2013: Plugin: Game Exit
18:01:16.8 01.01.2013: Plugin: Process Commands
18:01:16.8 01.01.2013: Refreshing Keyboard
18:01:16.9 01.01.2013: Initialising Audio
18:01:17.0 01.01.2013: Relaunching HideOS
18:01:17.1 01.01.2013: Restoring Window
18:01:17.1 01.01.2013: Reinitializing Graphics System
18:01:17.1 01.01.2013: Mouse Input is disabled
18:01:17.7 01.01.2013: Reloading Game Info Page
18:01:17.8 01.01.2013: Returning to GameEx
18:01:19.8 01.01.2013: Exiting GameEx!
18:01:19.8 01.01.2013: Disposing all videos
18:01:19.8 01.01.2013: Deleting temporary Karaoke videos
18:01:19.8 01.01.2013: Disposing Image List
18:01:19.8 01.01.2013: Disposing Fonts
18:01:19.8 01.01.2013: Disposing Surfaces
18:01:19.9 01.01.2013: Saving Settings
18:01:19.9 01.01.2013: Shutting down Bass
18:01:19.9 01.01.2013: Closing HideOS.exe
18:01:20.0 01.01.2013: Disposing Plugins
18:01:20.0 01.01.2013: Disposing Plugins
18:01:20.0 01.01.2013: Closing database connection
18:01:20.0 01.01.2013: Checking for applications to Launch On Exit
18:01:20.0 01.01.2013: Bye

Posted

You may want to zip your batch files and upload them here as well. I am no guru when it comes to this, but we have quite a few that may understand better and be of further assistance.

Posted

I wouldn't use bat files as they are not needed. Just use an advanced config to watch for the given processes and it should work just fine.

Also try your bat file another way:

start "" "D:\Arcade\PCSX2 1.0.0\closepcsx2.bat"
Guest
This topic is now closed to further replies.
×
×
  • Create New...