Aloshi / EmulationStation

A flexible emulator front-end supporting keyboardless navigation and custom system themes.
MIT License
2.07k stars 905 forks source link

launch terminated with nonzero exit code 1 #659

Open Tunaa opened 7 years ago

Tunaa commented 7 years ago

please excuse my bad english

ive download and config ES on my pc and it works perfect. then i copy the whole folder to my laptop and everytime when i start a game it goes back to the menu and the log says: launch terminated with nonzero exit code 1

why does it work on my pc put not on my laptop?

DavidinCT commented 7 years ago

Check your paths. or check your RetroArch config. Try to run the game directly from the command line and try a few different ways.

Tunaa commented 7 years ago
snes Super Nintendo Entertainment System ~\.emulationstation\roms\snes .sfc .smc .zip .SFC .SMC .ZIP %HOME%\.emulationstation\systems\retroarch\retroarch.exe -L %HOME%\.emulationstation\systems\retroarch\cores\snes9x2010_libretro.dll "%ROM_RAW%" snes snes

this is my path for my snes as an example. it works on my pc but not on my laptop

DavidinCT commented 7 years ago

I might look over and grab the portable version for your laptop... As you would have to change config files for each machine....

here is a setup video, it's a download and go type thing... Or use this version for BOTH machines but, you have to run a batch file to kick it off. https://www.youtube.com/watch?v=oHtCnBiyzOY

Tunaa commented 7 years ago

the same problem as before. it works on my pc but when i start a game on my laptop it goes back to the menu and the log says zero exit code 1

ive tried this with the portable, the install and another downloaded version of ES ive install/copy ES 1:1 on my pc and laptop and my laptop goes always back to the menu

Tunaa commented 7 years ago

do i need some special drivers for ES? Ive install directx, vcredist and dotnet. is there anything more?

DavidinCT commented 7 years ago

exit code 1 is a path based issue from what I have seen, if you follow it below that line to the next line there will be a "something not found" error...

Try to run a game manually and Open up RetroArch manually, make sure it works...(RetroArch will say it needs something, this should be the FIRST step).

Then copy your command line from your xml file and run it manually.... for example one of mine... Open up the RUN command on windows and paste it in... %HOME%.emulationstation\systems\retroarch\retroarch.exe -L %HOME%.emulationstation\systems\retroarch\cores\nestopia_libretro.dll "%ROM_RAW%"

Follow the config directions from http://emulationstation.org/gettingstarted.html#config

or rip the file from the portable one and mod it to your needs.

Your problem IS in your es_systems.cfg OR there is a problem with RetroArch (open it manually to see if it runs)

Once you figure out one, make them the same format (paths, etc) and it should work fine.

Sorry to say, this is not a bug, this is a setup issue.

I only found this program about a week ago, and been playing with it to figure out it's ins and outs... If you understand some basic XML formatting, it's not too bad, most cane be a copy and paste, find a completed one, mod it to your needs and your off and running...

Tunaa commented 7 years ago

IT WORKS! I had the 64bit retroarch installed on my 32bit laptop. Thats the reason why it works on my pc in the first place. Ive just copy the right version, updated all cores and now it works on my laptop. Thank you DavidinCT!

AucardThe3rd commented 7 years ago

i get the same issue, here is a section of my cfg

<system>
    <name>nes</name>
    <fullname>Nintendo Entertainment System</fullname>
    <path>F:\roms\nes</path>
    <extension>.nes .NES</extension>
    <command>%HOMEPATH%\.emulationstation\systems\retroarch\retroarch.exe -L %HOMEPATH%\.emulationstation\systems\retroarch\cores\fceumm_libretro.dll "%ROM_RAW%"</command>
    <platform>nes</platform>
    <theme>nes</theme>  
</system>
SSGKnuckles commented 6 years ago

I finally found the solution after several abortive attempts. First I found it is important to properly configure RetroArch (RA) in terms of video, audio, and, input settings. Once you've figured out how best to run RA on you particular setup you can start with EmulationStation (ES).

My launch command looked very similar until I found one post... crap- somewhere- which indicated the error was in both space separated values and quote parsing within windows.

Here is the gist of that post that solved my problem: Windows does you the favor of dropping the first and last set of quotes in the tag. It's an issue of parsing that I hardly understand. At any rate, you should surround your ENTIRE command tag with quotes, then quote anything with spaces (i.e. path names) individually. Windows will drop the first and last set it encounters and will run the launch command perfectly. I was forgetting that my %ROM_RAW% parameter would include spaces in the ROM filenames.

Here is my solution: "C:\Users*myname.emulationstation\systems\RetroArch\RetroArch.exe -L "C:\Users*myname.emulationstation\systems\RetroArch\cores\nestopia_libretro.dll" "%ROM_RAW%""

Conclusion: If you are having trouble with the ES >> RA launch terminating with "exit code 1" and you've tried everything else, it is most likely an issue with your paths. Quote-enclose everything individually, then the entire command. Windows should be able to parse the command correctly.

Cereal-Killa commented 5 years ago

Thank you so much.

Quote-enclose everything individually, then the entire command.