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 - myghalloween - 2020-05-02

I use Solid Explorer but it pays. You can use X-Plore.
I've made research too and seems To be difficult To find helpful posts.

The final command line should get closer to that :
Code:
start --user 0 -n [packageName]/[.activityName] -a Android.intent.[actionName] /b /e "%rom%"

packageName and .activityName can be found in AndroidManifest.xml which is in the APK file. Extract APK To view AndroidManifest.xml


RE: Advanced Emulator Launcher - Multi-emulator frontend for Kodi - GuiZ - 2020-05-02

(2020-05-02, 05:02)myghalloween Wrote: I use Solid Explorer but it pays. You can use X-Plore.
I've made research too and seems To be difficult To find helpful posts.

The final command line should get closer to that :
Code:
start --user 0 -n [packageName]/[.activityName] -a Android.intent.[actionName] /b /e "%rom%"

packageName and .activityName can be found in AndroidManifest.xml which is in the APK file. Extract APK To view AndroidManifest.xml   

Hi,

Found the AndroidManifest.xml on Dolphin Git:
Quote:<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.dolphinemu.dolphinemu">
<uses-feature
android:name="android.hardware.touchscreen"
android:required="false"/>
<uses-feature
android:name="android.hardware.sensor.accelerometer"
android:required="false"/>
<uses-feature
android:name="android.hardware.sensor.gyroscope"
android:required="false"/>
<uses-feature
android:name="android.hardware.gamepad"
android:required="false"/>
<uses-feature
android:name="android.software.leanback"
android:required="false"/>
<uses-feature android:glEsVersion="0x00030000"/>
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="com.android.providers.tv.permission.READ_EPG_DATA"/>
<uses-permission android:name="com.android.providers.tv.permission.WRITE_EPG_DATA"/>
<uses-permission
android:name="android.permission.VIBRATE"
android:required="false"/>
<application
android:name=".DolphinApplication"
android:label="@string/app_name"
android:icon="@drawable/ic_launcher"
android:allowBackup="false"
androidConfusedupportsRtl="true"
android:isGame="true"
android:banner="@drawable/banner_tv">
<meta-data
android:name="android.max_aspect"
android:value="2.1"/>
<activity
android:name=".ui.main.MainActivity"
android:theme="@style/DolphinBase">
<!-- This intentfilter marks this Activity as the one that gets launched from Home screen. -->
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>
<activity
android:name=".ui.main.TvMainActivity"
android:theme="@style/DolphinTvBase">
<!-- This intentfilter marks this Activity as the one that gets launched from Home screen. -->
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LEANBACK_LAUNCHER"/>
</intent-filter>
</activity>
<activity
android:name=".features.settings.ui.SettingsActivity"
android:configChanges="orientation|screenSize"
android:theme="@style/DolphinSettingsBase"
android:label="@string/preferences_settings"/>
<activity
android:name=".activities.EmulationActivity"
android:theme="@style/DolphinEmulationBase"/>
<activity
android:name=".activities.CustomFilePickerActivity"
android:label="@string/app_name"
android:theme="@style/FilePickerTheme">
<intent-filter>
<action android:name="android.intent.action.GET_CONTENT"/>
<category android:name="android.intent.category.DEFAULT"/>
</intent-filter>
</activity>
<activity android:name=".activities.AppLinkActivity">
<intent-filter>
<action android:name="android.intent.action.VIEW"/>
<category android:name="android.intent.category.DEFAULT"/>
<data
android:host="@string/host"
androidConfusedcheme="@string/scheme"/>
</intent-filter>
</activity>
<service android:name=".utils.DirectoryInitialization"/>
<service android:name=".services.GameFileCacheService"/>
<service
android:name=".services.SyncChannelJobService"
android:exported="false"
android:permission="android.permission.BIND_JOB_SERVICE"/>
<service
android:name=".services.SyncProgramsJobService"
android:exported="false"
android:permission="android.permission.BIND_JOB_SERVICE"/>
<provider
android:name="androidx.core.content.FileProvider"
android:authorities="${applicationId}.filesprovider"
android:exported="false"
android:grantUriPermissions="true">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/nnf_provider_paths"/>
</provider>
</application>
</manifest>
 



RE: Advanced Emulator Launcher - Multi-emulator frontend for Kodi - myghalloween - 2020-05-02

We are getting closer !

Try this in your AEL argument field
Code:
start --user 0 -n org.dolphinemu.dolphinemu/org.dolphinemu.dolphinemu.ui.main.MainActivity -a android.intent.category.LAUNCHER /b /e "%rom%"

And don't forget this in AEL application field
Code:
/system/bin/am

When it's done post me the launcher.xml


RE: Advanced Emulator Launcher - Multi-emulator frontend for Kodi - myghalloween - 2020-05-02

I tested several variants from my smartphone (Dolphin compatible), but I did not manage to launch.
@Wintermute0110 here is my log, if you have an idea so we can move on

A recent lead with an early response on Hyperspin for Shield

mod edit - log spam removed and transferred to https://paste.kodi.tv/ohezobudab.kodi


RE: Advanced Emulator Launcher - Multi-emulator frontend for Kodi - DarrenHill - 2020-05-02

@myghalloween - which part of "Do not post logs in the forum. Use https://paste.kodi.tv/ instead." is unclear to you?

This time I've transferred it, but such occurrences will usually just be removed.


RE: Advanced Emulator Launcher - Multi-emulator frontend for Kodi - myghalloween - 2020-05-02

(2020-05-02, 18:05)DarrenHill Wrote: @myghalloween - which part of "Do not post logs in the forum. Use https://paste.kodi.tv/ instead." is unclear to you?

This time I've transferred it, but such occurrences will usually just be removed.

Sorry, post from my phone and I didn't pay attention


RE: Advanced Emulator Launcher - Multi-emulator frontend for Kodi - GuiZ - 2020-05-02

(2020-05-02, 18:00)myghalloween Wrote: I tested several variants from my smartphone (Dolphin compatible), but I did not manage to launch.
@Wintermute0110 here is my log, if you have an idea so we can move on

A recent lead with an early response on Hyperspin for Shieldmod edit - log spam removed and transferred to https://paste.kodi.tv/ohezobudab.kodi
So I try that:
Quote:<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<!-- Exported by AEL on 2020-04-22 23:51:07 -->
<advanced_emulator_launcher_configuration>
<launcher>
  <name>GameCube</name>
  <category>root_category</category>
  <year>2001</year>
  <genre>Console 128 bits</genre>
  <developer>Nintendo</developer>
  <rating />
  <plot>La Nintendo GameCube est une console de jeux vidéo de salon du fabricant japonais Nintendo, sortie en 2001 (2002 en Europe), développée en association avec IBM, NEC et ATI. Elle fut en concurrence avec la PlayStation 2 de Sony, la Xbox de Microsoft et la Dreamcast de Sega, qui forment ensemble la sixième génération de consoles de jeux vidéo. </plot>
  <platform>Nintendo GameCube</platform>
  <application>/system/bin/am</application>
  <args>start --user 0 -n org.dolphinemu.dolphinemu/org.dolphinemu.dolphinemu.ui.main.MainActivity -a android.intent.category.LAUNCHER /b /e "%rom%"</args>
  <args_extra />
  <ROM_path>/storage/emulated/0/Games/GameCube/</ROM_path>
  <ROM_extra_path />
  <ROM_ext>iso</ROM_ext>
  <ROM_asset_path>/storage/emulated/0/Games/GameCube/</ROM_asset_path>
  <Asset_Prefix />
  <s_icon>/storage/emulated/0/Games/Consoles/fanarts/GameCube.jpg</s_icon>
  <s_fanart />
  <s_banner />
  <s_poster />
  <s_clearlogo>/storage/emulated/0/Games/Consoles/clearlogos/GameCube.png</s_clearlogo>
  <s_controller />
  <s_trailer />
</launcher>
</advanced_emulator_launcher_configuration>
And... Nothing happens. Really Nothing.

I take a look to my log and I even can't see that I'm trying to launch something with AEL. Unlike your log that clearly shows error.

Here's my log but I'm prety sure that won't help
https://paste.kodi.tv/oxayovomal.kodi


RE: Advanced Emulator Launcher - Multi-emulator frontend for Kodi - jaylo - 2020-05-04

Hello, there is an android tv, installed ael, then added xml categories, but I don’t understand how to add retroarch and add games in library Huh ?


RE: Advanced Emulator Launcher - Multi-emulator frontend for Kodi - myghalloween - 2020-05-04

This post is dedicated To AEL. We can help you for create a launcher in AEL, but for Retroarch setting in order To launch game I think you should go To Retroarch posts.
I advise you that it's better To use Standalone emulators than a multi-emulators like RA.


RE: Advanced Emulator Launcher - Multi-emulator frontend for Kodi - Wintermute0110 - 2020-05-06

(2020-05-02, 18:00)myghalloween Wrote: I tested several variants from my smartphone (Dolphin compatible), but I did not manage to launch.
@Wintermute0110 here is my log, if you have an idea so we can move on

A recent lead with an early response on Hyperspin for Shield

mod edit - log spam removed and transferred to https://paste.kodi.tv/ohezobudab.kodi

In that case AEL runs the process but returns after a few ms with return code 0 (success). Probably there is some mistake in the Dolphin arguments.


RE: Advanced Emulator Launcher - Multi-emulator frontend for Kodi - Wintermute0110 - 2020-05-06

(2020-05-04, 16:49)jaylo Wrote: Hello, there is an android tv, installed ael, then added xml categories, but I don’t understand how to add retroarch and add games in library Huh ?

You have many examples of Retroarch configuration in Android in the AEL Asset Library. I think is perfectly fine to use Retroarch, the reason is that you need to configure your emulator once (setting up controls, etc.) and then you have access to dozens of platforms. Note that once you get one Retroarch core/platform working is very easy to create another Retroarch launcher for another platform, just need to change the core name.

If you have some trouble post a debug log as indicated in the first post, and use a pastebin service so forum moderators (and myself) are happy Laugh It's much easy to read the log from the pastebin service and additionally the forum is cleaner.


RE: Advanced Emulator Launcher - Multi-emulator frontend for Kodi - Wintermute0110 - 2020-05-06

(2020-05-02, 23:49)GuiZ Wrote:
(2020-05-02, 18:00)myghalloween Wrote: I tested several variants from my smartphone (Dolphin compatible), but I did not manage to launch.
@Wintermute0110 here is my log, if you have an idea so we can move on

A recent lead with an early response on Hyperspin for Shieldmod edit - log spam removed and transferred to https://paste.kodi.tv/ohezobudab.kodi
So I try that:
Quote:<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<!-- Exported by AEL on 2020-04-22 23:51:07 -->
<advanced_emulator_launcher_configuration>
<launcher>
  <name>GameCube</name>
  <category>root_category</category>
  <year>2001</year>
  <genre>Console 128 bits</genre>
  <developer>Nintendo</developer>
  <rating />
  <plot>La Nintendo GameCube est une console de jeux vidéo de salon du fabricant japonais Nintendo, sortie en 2001 (2002 en Europe), développée en association avec IBM, NEC et ATI. Elle fut en concurrence avec la PlayStation 2 de Sony, la Xbox de Microsoft et la Dreamcast de Sega, qui forment ensemble la sixième génération de consoles de jeux vidéo. </plot>
  <platform>Nintendo GameCube</platform>
  <application>/system/bin/am</application>
  <args>start --user 0 -n org.dolphinemu.dolphinemu/org.dolphinemu.dolphinemu.ui.main.MainActivity -a android.intent.category.LAUNCHER /b /e "%rom%"</args>
  <args_extra />
  <ROM_path>/storage/emulated/0/Games/GameCube/</ROM_path>
  <ROM_extra_path />
  <ROM_ext>iso</ROM_ext>
  <ROM_asset_path>/storage/emulated/0/Games/GameCube/</ROM_asset_path>
  <Asset_Prefix />
  <s_icon>/storage/emulated/0/Games/Consoles/fanarts/GameCube.jpg</s_icon>
  <s_fanart />
  <s_banner />
  <s_poster />
  <s_clearlogo>/storage/emulated/0/Games/Consoles/clearlogos/GameCube.png</s_clearlogo>
  <s_controller />
  <s_trailer />
</launcher>
</advanced_emulator_launcher_configuration>
And... Nothing happens. Really Nothing.

I take a look to my log and I even can't see that I'm trying to launch something with AEL. Unlike your log that clearly shows error.

Here's my log but I'm prety sure that won't help
https://paste.kodi.tv/oxayovomal.kodi

Please enable DEBUG in AEL settings BUT not in Kodi settings. If you enable debug in Kodi settings the log has so much information is very difficult to read.


RE: Advanced Emulator Launcher - Multi-emulator frontend for Kodi - Wintermute0110 - 2020-05-06

@myghalloween I have changed the first post to link to your Android launcher creation explanation. Thank a lot for your help.


RE: Advanced Emulator Launcher - Multi-emulator frontend for Kodi - GuiZ - 2020-05-07

(2020-05-06, 09:27)Wintermute0110 Wrote:
(2020-05-02, 23:49)GuiZ Wrote:
(2020-05-02, 18:00)myghalloween Wrote: I tested several variants from my smartphone (Dolphin compatible), but I did not manage to launch.
@Wintermute0110 here is my log, if you have an idea so we can move on

A recent lead with an early response on Hyperspin for Shieldmod edit - log spam removed and transferred to https://paste.kodi.tv/ohezobudab.kodi
So I try that:
Quote:<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<!-- Exported by AEL on 2020-04-22 23:51:07 -->
<advanced_emulator_launcher_configuration>
<launcher>
  <name>GameCube</name>
  <category>root_category</category>
  <year>2001</year>
  <genre>Console 128 bits</genre>
  <developer>Nintendo</developer>
  <rating />
  <plot>La Nintendo GameCube est une console de jeux vidéo de salon du fabricant japonais Nintendo, sortie en 2001 (2002 en Europe), développée en association avec IBM, NEC et ATI. Elle fut en concurrence avec la PlayStation 2 de Sony, la Xbox de Microsoft et la Dreamcast de Sega, qui forment ensemble la sixième génération de consoles de jeux vidéo. </plot>
  <platform>Nintendo GameCube</platform>
  <application>/system/bin/am</application>
  <args>start --user 0 -n org.dolphinemu.dolphinemu/org.dolphinemu.dolphinemu.ui.main.MainActivity -a android.intent.category.LAUNCHER /b /e "%rom%"</args>
  <args_extra />
  <ROM_path>/storage/emulated/0/Games/GameCube/</ROM_path>
  <ROM_extra_path />
  <ROM_ext>iso</ROM_ext>
  <ROM_asset_path>/storage/emulated/0/Games/GameCube/</ROM_asset_path>
  <Asset_Prefix />
  <s_icon>/storage/emulated/0/Games/Consoles/fanarts/GameCube.jpg</s_icon>
  <s_fanart />
  <s_banner />
  <s_poster />
  <s_clearlogo>/storage/emulated/0/Games/Consoles/clearlogos/GameCube.png</s_clearlogo>
  <s_controller />
  <s_trailer />
</launcher>
</advanced_emulator_launcher_configuration>
And... Nothing happens. Really Nothing.

I take a look to my log and I even can't see that I'm trying to launch something with AEL. Unlike your log that clearly shows error.

Here's my log but I'm prety sure that won't help
https://paste.kodi.tv/oxayovomal.kodi 

Please enable DEBUG in AEL settings BUT not in Kodi settings. If you enable debug in Kodi settings the log has so much information is very difficult to read. 
Hi,
Thx for your help,

Here's my log
https://paste.kodi.tv/yibipejuhe.kodi


RE: Advanced Emulator Launcher - Multi-emulator frontend for Kodi - Wintermute0110 - 2020-05-11

(2020-05-07, 11:58)GuiZ Wrote:
(2020-05-06, 09:27)Wintermute0110 Wrote:
(2020-05-02, 23:49)GuiZ Wrote: So I try that:
And... Nothing happens. Really Nothing.

I take a look to my log and I even can't see that I'm trying to launch something with AEL. Unlike your log that clearly shows error.

Here's my log but I'm prety sure that won't help
https://paste.kodi.tv/oxayovomal.kodi 

Please enable DEBUG in AEL settings BUT not in Kodi settings. If you enable debug in Kodi settings the log has so much information is very difficult to read. 
Hi,
Thx for your help,

Here's my log
https://paste.kodi.tv/yibipejuhe.kodi

I do not see anything unusual in the log, the process /system/bin/am launches and returns with no error. However, execution last for a few dozen ms, which suggest that there is some kind of error with the /system/bin/am parameters. Also, you are using the --user 0 arguments, is your device rooted? That could be the cause.

I have a hunch. Can you change

Code:
org.dolphinemu.dolphin-emu/org.dolphinemu.dolphin-emu.ui.main.MainActivity

with

Code:
org.dolphinemu.dolphinemu/org.dolphinemu.dolphinemu.ui.main.MainActivity

in you launcher arguments and try?