Kodi Community Forum
Beta Advanced Emulator Launcher - Multi-emulator frontend for Kodi - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+---- Forum: Game Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=291)
+---- Thread: Beta Advanced Emulator Launcher - Multi-emulator frontend for Kodi (/showthread.php?tid=287826)



RE: Advanced Emulator Launcher - Multi-emulator frontend for Kodi - TheTimeWalker - 2020-02-08

Thanks for making this great plugin.

One thing I have noticed is that ScreenScraper can occasionally give a 429 error which probably means that there are too many requests coming. I would suggest that there could be a way to rate limit by adding a small delay between requests. Skyscraper for example adds a 1.2s wait time in between downloads so it doesn't risk doing too many requests.


RE: Advanced Emulator Launcher - Multi-emulator frontend for Kodi - Wintermute0110 - 2020-02-10

(2020-02-07, 04:59)Jachin99 Wrote: About the steam shortcuts I'm having trouble with.  The simplest way to launch them via the command line seems to be just typing I the full path to the file.  Is there a way I can format my command line arguments to only pass the path of my scanned roms to AEL?  I tried using "path" for my arguments so far but I haven't had any luck.

Here you have a list of variables you can use as arguments of a launcher.


RE: Advanced Emulator Launcher - Multi-emulator frontend for Kodi - Wintermute0110 - 2020-02-10

(2020-02-08, 00:01)TheTimeWalker Wrote: Thanks for making this great plugin.

One thing I have noticed is that ScreenScraper can occasionally give a 429 error which probably means that there are too many requests coming. I would suggest that there could be a way to rate limit by adding a small delay between requests. Skyscraper for example adds a 1.2s wait time in between downloads so it doesn't risk doing too many requests.

OK, noted. I will include a small delay between requests to avoid overloading.


RE: Advanced Emulator Launcher - Multi-emulator frontend for Kodi - Jachin99 - 2020-02-10

(2020-02-10, 11:29)Wintermute0110 Wrote:
(2020-02-07, 04:59)Jachin99 Wrote: About the steam shortcuts I'm having trouble with.  The simplest way to launch them via the command line seems to be just typing I the full path to the file.  Is there a way I can format my command line arguments to only pass the path of my scanned roms to AEL?  I tried using "path" for my arguments so far but I haven't had any luck.
Here you have a list of variables you can use as arguments of a launcher. 
I'll take a look at that, thanks.


RE: Advanced Emulator Launcher - Multi-emulator frontend for Kodi - Jachin99 - 2020-02-11

(2020-02-10, 11:29)Wintermute0110 Wrote:
(2020-02-07, 04:59)Jachin99 Wrote: About the steam shortcuts I'm having trouble with.  The simplest way to launch them via the command line seems to be just typing I the full path to the file.  Is there a way I can format my command line arguments to only pass the path of my scanned roms to AEL?  I tried using "path" for my arguments so far but I haven't had any luck.
Here you have a list of variables you can use as arguments of a launcher. 
If I understood everything correctly I tried each command line argument in that python file.  I believe windows can't find the file each time but I'm attaching this log to be sure.  I had to trim it by A LOT because pastebin woulld't let me add the whole thing.  Here it is.  https://pastebin.com/TcWYqN5p


RE: Advanced Emulator Launcher - Multi-emulator frontend for Kodi - mechevarria - 2020-02-11

Just a heads up @Wintermute0110 , I noticed a couple of bugs in the release-0.9.8 branch. I added the issues on github. The icon issue is simple, not sure about the scraper error.

https://github.com/Wintermute0110/plugin.program.AEL/issues


RE: Advanced Emulator Launcher - Multi-emulator frontend for Kodi - Wintermute0110 - 2020-02-12

(2020-02-11, 17:51)Jachin99 Wrote:
(2020-02-10, 11:29)Wintermute0110 Wrote:
(2020-02-07, 04:59)Jachin99 Wrote: About the steam shortcuts I'm having trouble with.  The simplest way to launch them via the command line seems to be just typing I the full path to the file.  Is there a way I can format my command line arguments to only pass the path of my scanned roms to AEL?  I tried using "path" for my arguments so far but I haven't had any luck.
Here you have a list of variables you can use as arguments of a launcher. 
If I understood everything correctly I tried each command line argument in that python file.  I believe windows can't find the file each time but I'm attaching this log to be sure.  I had to trim it by A LOT because pastebin woulld't let me add the whole thing.  Here it is.  https://pastebin.com/TcWYqN5p

I have been looking at the Kodi Steam Launcher addon. You can create a Standalone Launcher to launch a game in Steam like this:

Code:
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<advanced_emulator_launcher_configuration>
<launcher>
    <name>Steam game title</name>
    <category>Steam</category>
    <Launcher_NFO>Steam game title.nfo</Launcher_NFO>
    <application>C:/Program Files/Steam/Steam.exe</application>
    <args>steam://rungameid/steam_id</args>
</launcher>
</advanced_emulator_launcher_configuration>

For each game you need to change the steam_id. The NFO file with the metadata is optional as so is the category. Also, make sure the path to Steam.exe is the correct one (I don't use Steam and have never installed it). Please tell me if this works.

Proper support for Steam is planned for AEL 0.10.0. In the mean time you can create standalone launchers for every Steam game or use the Kodi Steam Launcher addon.


RE: Advanced Emulator Launcher - Multi-emulator frontend for Kodi - Wintermute0110 - 2020-02-12

(2020-02-11, 22:50)mechevarria Wrote: Just a heads up @Wintermute0110 , I noticed a couple of bugs in the release-0.9.8 branch. I added the issues on github. The icon issue is simple, not sure about the scraper error.

https://github.com/Wintermute0110/plugin.program.AEL/issues

Noted. I will fix this issues ASAP.


RE: Advanced Emulator Launcher - Multi-emulator frontend for Kodi - Jachin99 - 2020-02-12

(2020-02-12, 09:56)Wintermute0110 Wrote:
(2020-02-11, 17:51)Jachin99 Wrote:
(2020-02-10, 11:29)Wintermute0110 Wrote: Here you have a list of variables you can use as arguments of a launcher. 
If I understood everything correctly I tried each command line argument in that python file.  I believe windows can't find the file each time but I'm attaching this log to be sure.  I had to trim it by A LOT because pastebin woulld't let me add the whole thing.  Here it is.  https://pastebin.com/TcWYqN5p 

I have been looking at the Kodi Steam Launcher addon. You can create a Standalone Launcher to launch a game in Steam like this:
Code:
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<advanced_emulator_launcher_configuration>
<launcher>
<name>Steam game title</name>
<category>Steam</category>
<Launcher_NFO>Steam game title.nfo</Launcher_NFO>
<application>C:/Program Files/Steam/Steam.exe</application>
<args>steam://rungameid/steam_id</args>
</launcher>
</advanced_emulator_launcher_configuration>

For each game you need to change the steam_id. The NFO file with the metadata is optional as so is the category. Also, make sure the path to Steam.exe is the correct one (I don't use Steam and have never installed it). Please tell me if this works.

Proper support for Steam is planned for AEL 0.10.0. In the mean time you can create standalone launchers for every Steam game or use the Kodi Steam Launcher addon. 

This looks like it did trick but I do have some questions.  I'm still getting familiar with AEL but I knew enough to fill in the XML data via the AEL menu in Kodi.  If I were to create this file from something like notepad, where would I put the launcher file?


RE: Advanced Emulator Launcher - Multi-emulator frontend for Kodi - mechevarria - 2020-02-14

(2020-02-12, 23:28)Jachin99 Wrote:
(2020-02-12, 09:56)Wintermute0110 Wrote:
(2020-02-11, 17:51)Jachin99 Wrote: If I understood everything correctly I tried each command line argument in that python file.  I believe windows can't find the file each time but I'm attaching this log to be sure.  I had to trim it by A LOT because pastebin woulld't let me add the whole thing.  Here it is.  https://pastebin.com/TcWYqN5p 

I have been looking at the Kodi Steam Launcher addon. You can create a Standalone Launcher to launch a game in Steam like this:
Code:
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<advanced_emulator_launcher_configuration>
<launcher>
<name>Steam game title</name>
<category>Steam</category>
<Launcher_NFO>Steam game title.nfo</Launcher_NFO>
<application>C:/Program Files/Steam/Steam.exe</application>
<args>steam://rungameid/steam_id</args>
</launcher>
</advanced_emulator_launcher_configuration>

For each game you need to change the steam_id. The NFO file with the metadata is optional as so is the category. Also, make sure the path to Steam.exe is the correct one (I don't use Steam and have never installed it). Please tell me if this works.

Proper support for Steam is planned for AEL 0.10.0. In the mean time you can create standalone launchers for every Steam game or use the Kodi Steam Launcher addon.  

This looks like it did trick but I do have some questions.  I'm still getting familiar with AEL but I knew enough to fill in the XML data via the AEL menu in Kodi.  If I were to create this file from something like notepad, where would I put the launcher file? 

Under utilities you can import a launcher into AEL. Here is an example that I use for retroarch

https://pastebin.com/9NN9RUjr


RE: Advanced Emulator Launcher - Multi-emulator frontend for Kodi - Jachin99 - 2020-02-14

Thanks for that. I'll take a look


RE: Advanced Emulator Launcher - Multi-emulator frontend for Kodi - Wintermute0110 - 2020-02-14

@mechevarria Thanks for your help.

@Jachin99 To get familiar with the XML configurations the best place to look is the AEL Asset Library. In the Launchers XML Examples directory you have a well-documented examples of a Launcher and a Category. Note that these examples include every possible option, to get a working launcher with no metadata or assets you just need a few tags. Also, in the Linux directory you have working and tested launcher examples for over 60 platforms. Linux is the most populated operating system because it is the one I use but you also have some examples for other OSes including Windows.

To use the XML files just place them in any directory you want that can be accessed by your Kodi box. Then, go to Utilities menu in AEL and use the command Import Category/Launcher XML. I strongly recommend you to use NotePad++ to edit the XML files and to use UTF-8 encoding if you use non-ASCII characters.

Note that you can make changes to any XML file and then reimport it again. Once you have imported your launcher you can check the configuration opening the Launcher context menu, then View Launcher and View Launcher data. A text-display windows pops up and you can see the launcher as it is currently in the AEL database. Note that in most skins the text-display window is small, use the skin Estuary AEL Mod which has a proper text-display at least for setting things up, then switch to your favourite skin once everything is working well.


RE: Advanced Emulator Launcher - Multi-emulator frontend for Kodi - Jachin99 - 2020-02-21

Is there a way to instruct retroplayer to use a given emulator core when launching a game to avoid having to select my preferred emulator each time?  I know you cant select a default in kodi itself but one thing I like about IAGL is that I can pick a default emulator for a given list, and just open games directly from the launch button.  Thanks.


RE: Advanced Emulator Launcher - Multi-emulator frontend for Kodi - Wintermute0110 - 2020-02-21

(2020-02-21, 01:47)Jachin99 Wrote: Is there a way to instruct retroplayer to use a given emulator core when launching a game to avoid having to select my preferred emulator each time?  I know you cant select a default in kodi itself but one thing I like about IAGL is that I can pick a default emulator for a given list, and just open games directly from the launch button.  Thanks.

Not at the moment. The emulator selection windows is displayed by Kodi itself, not by addons. Actually, I do not know if IAGL uses a workaround. Best thing to do is just install a single core to run each platform and hence the core selection window will never pop up.


RE: Advanced Emulator Launcher - Multi-emulator frontend for Kodi - garbear - 2020-02-22

(2020-02-21, 01:47)Jachin99 Wrote: Is there a way to instruct retroplayer to use a given emulator core when launching a game to avoid having to select my preferred emulator each time?  I know you cant select a default in kodi itself but one thing I like about IAGL is that I can pick a default emulator for a given list, and just open games directly from the launch button.  Thanks.

Add-ons such as AEL can bypass the emulator core selection dialog by settings the ListItem.GameClient property to the core's add-on ID. See: https://forum.kodi.tv/showthread.php?tid=336876