Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to add a custom player? #726

Open
DrCassos opened this issue Oct 17, 2024 · 17 comments
Open

How to add a custom player? #726

DrCassos opened this issue Oct 17, 2024 · 17 comments

Comments

@DrCassos
Copy link

Hello,
I have a modified version of Yuzu but when I launch it with Daijisho (using 'early access yuzu'), it shows up then stop working.
So, I want to add a custom player/emulator to Daijisho but I don't understand how and I can't find any tutorial...

@Jetup13
Copy link
Collaborator

Jetup13 commented Oct 17, 2024

Adding a player

Through that menu you'll need add the relevant info such as player name, am start argument, file extensions supported, and if Daijishou should kill the activity before starting it.

am start argument cheat sheet

Since it's a Yuzu fork, and most of the dozen Yuzu forks don't change much, you can simply take the am start argument from the original Yuzu and edit in or out whatever you need.

After you saving the player you add it to a platform by:

Daijishou > Library > Highlight platform > 🖊️ > Search additional players drop-down > Add to list > Save

You can also add a player by editing a platform json file and importing it

@DrCassos
Copy link
Author

Hello, thanks a lot for your quick reply!
I forgot to mention that i have several Yuzu apk installed. How can I tell Daijishou which one to use?
I mean, if I use the 'am start argument' from original Yuzu, how can I then choose which application (the original Yuzu or the modified one) to use depending on the game?

I'm a total noob, I don't even know to code. So, sorry if my question is dumb...

@Jetup13
Copy link
Collaborator

Jetup13 commented Oct 17, 2024

Assuming you've added the player(s) you can choose the default player for all games or individually

Global

Daijishou > Library tab > Platform > 🖊️ > Choose player from Default player dropdown > Save

Per game

Highlight game > Edit Item > Enable Custom Player > Select player from Custom Player dropdown > Save

Lastly you didn't need to know how to code to add players to Daijishou. You just need to know how applications launch on Android.

@DrCassos
Copy link
Author

Thanks again for your reply! I think you misunderstood my last question.
I did what you told me. But, like I said in my previous comment, if I copy the 'am start argument' from the original Yuzu apk, the new player will launch the original Yuzu apk.

Then again, my problem is that I want the new player to launch my modified Yuzu apk (I don't remove my original yuzu apk to use it for others games). How can I modify 'am start argument' to make it launch my modified yuzu apk ? I suppose I have to edit the first line, but I don't know what to type and where to find it. :)

It looks like this:

image

@Jetup13
Copy link
Collaborator

Jetup13 commented Oct 18, 2024

As I mentioned in the first post, you need to edit the am start argument. Specifically the package activity (-n example.example.example/.example.ExampleActivity). Assuming nothing else is different, you won't need to change anything else

The wiki cheat sheet I linked mentions a few ways to figure out the component activity that's used.

@DrCassos
Copy link
Author

I'm really sorry for my previous question, I missed a step, indeed. I changed the am start argument. But now, Daijisho launches the right emulator but not the game... Am I missing something again?

462554367_1063052281990360_7649522504788339190_n

462557928_3431382263821278_6295821975738055980_n

@Jetup13
Copy link
Collaborator

Jetup13 commented Oct 18, 2024

Since your using file.uri make sure Yuzu has has permissions to the same ROM folder as you chose for Daijishou's Switch platform. If it's still not launching and you've tried the other activities then it's possible that it doesn't support frontends.

All these Yuzu forks are a bit like the wild west. Which is why many frontends haven't added many or any at all. Nothing is guaranteed to work

@Jetup13
Copy link
Collaborator

Jetup13 commented Oct 18, 2024

You can also try switching the intent to:

-a android.intent.action.VIEW

Instead of:

-a android.nfc.action.TECH_DISCOVERED

@DrCassos
Copy link
Author

DrCassos commented Oct 18, 2024

The permission seems granted. I'm not sure how to doublecheck it, but Daijisho show me the same games that my modified Yuzu. I assume they have access to the same ROM folder.

Sadly "-a android.intent.action.VIEW" doesn't change anything.

I'm aware that, sometimes, apps doesn't support frontends. But the dev of this app told me it works with his Odin 2 with Daijisho (but he doesn't answer to my questions anymore). He basically just changed the name of the app to allow having multiple version of Yuzu. So I'm confused. There must be something I'm doing wrong...

@Jetup13
Copy link
Collaborator

Jetup13 commented Oct 18, 2024

Which am start arguments have you tried for the modified version?

If its the image you posted, thats already available in under switch - Yuzu (early access)

@DrCassos
Copy link
Author

When I launch with switch - Yuzu (early access), the Yuzu modified app launches, then close.
When I launch my custom player (screenshots below), the Yuzu modified app launches, open the Yuzu menu but not the game directly.

462563060_498961343133327_5361187829510674408_n
462552091_472831768402576_523343726370528780_n

@Jetup13
Copy link
Collaborator

Jetup13 commented Oct 19, 2024

Sounds like the old Citra issue. With the switch - Yuzu (early access) try opening the app beforehand and launch a game through Daijishou.

If that still doesn't work try adding these to the am start argument:

--activity-clear-task
--activity-clear-top

If it still doesn't work try enabling kill process on the player:

Edit Player > Kill Processes before am start > Save

Other than that I'm not sure as I don't have whatever modified Yuzu app your using.

Some other things it could be:

  • Your devices vendor has a borked OS, as seen on early Odin 2 firmwares.

  • Yuzu doesn't have the same games folder permissions. For example let's say the folder you added to Daijishou's Switch platform was roms/switch/ but the one you added to Yuzu was roms/nintendoswitch then your going to have issues.

@DrCassos
Copy link
Author

I'm going crazy...

With the switch - Yuzu (early access) try opening the app beforehand and launch a game through Daijishou.

It open the app without launching games.

If that still doesn't work try adding these to the am start argument:

Now the app shut down when I launch games.

If it still doesn't work try enabling kill process on the player:

It opens a yellow screen then go back to Daijisho.

Other than that I'm not sure as I don't have whatever modified Yuzu app your using.

I can send you the modified apk if you are curious, but I don't want to bother you more.

Your devices vendor has a borked OS, as seen on early Odin 2 firmwares.

I'm not sure of what it means, but my OS is the last Odin 2's.

Yuzu doesn't have the same games folder permissions.

I'm pretty sure they have same permission.

Dang, I don't understand.

PS : By the way, I love Daijisho, thank you very much for this application, your help and time. :)

@Jetup13
Copy link
Collaborator

Jetup13 commented Oct 19, 2024

Sure, you can share it with me. If you can't share it here you can find me on the Daijishou discord

@DrCassos
Copy link
Author

Great, thank you! I wrote to you in Discord, let me know if I contacted the right person.
Here is the APK link

@Jetup13
Copy link
Collaborator

Jetup13 commented Oct 20, 2024

Gave it a try and couldn't get it to launch from a frontend. Gave a test to both the original (real) yuzu and early access apps and it launched correctly. There's definitely something different about the one you provided.

@DrCassos
Copy link
Author

Ok, so now we know where is the problem.
Then again, thanks for your time. I appreciate it. At least, it can launch the app thanks to your help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants