Views: 6,906,873 Homepage | Main | Rules/FAQ | Memberlist | Active users | Last posts | Calendar | Stats | Online users | Search 04-24-24 09:46 AM
Guest:

0 users reading Command line parameters (Launcher) | 1 bot

Main - General - Command line parameters (Launcher) Hide post layouts | New reply


Signum
Posted on 07-10-22 05:20 PM (rev. 2 of 07-10-22 05:20 PM) Link | #5409
Hello, I first want to start off by saying that this emulator is awesome. I love Hybrid mode the best! I am wanting to use this emulator with my front end, which is retroFE and am wondering how I can create command line parameters for this emulator so that it would ope in fullscreen and in hybrid mode, and load the game I have selected from the front end. anyone have experience with this?

HeavensSword
Posted on 09-23-22 08:17 PM (rev. 2 of 09-26-22 07:02 PM) Link | #5543
Hello all,

This came up with a forum search for command line. I basically have a very similar use case. I'm using EmuDeck for my Steam Deck and the RetroArch core is garbage; I'm trying to switch over to the Standalone which runs much better, but for the best experience would like to create the command line argument that will launch my selected game in fullscreen.

I've done numerous searches and have even looked through some of the code on git. It appears that it should work, but MelonDS fails to load the provided path each time. Does this feature currently work on Linux (and will it load an archive file)? If so, what are the possible params and expected formatting?

Thanks.

HeavensSword
Posted on 10-04-22 05:56 PM Link | #5570
Just wanted to post an update.

Launching from command line works on Windows for NDS files, but not archives. Launching from command line doesn't seem to work on Linux at all for either NDS or archive files.

For now, I've just been playing Pokemon games in the Steam Deck's desktop mode.

sverth_blaed
Posted on 10-05-22 08:31 PM Link | #5571
I've encountered a similar problem, though you can get it to work in Linux on the Steam Deck, but not in a way that is sustainable for use with Steam Rom Manager.

I've done a bit of poking around and when you ask melonDS to load a game in directory, what seems to happen is it loads the file from a different location. For example if your nds file directory is:
/run/media/mmcblk0p1/Emulation/DS/nds/
(I've got mine on a microsd card) and you load a file from there, if you then check `Open recent` on the `File` tab you'll see that it actually opens the file from a different directory. The format of the path for this other directory is:
/run/user/1000/doc/{randomstring}/{ndsfile}

If you then change the filepath on Steam to match the new directory `/run/user/1000/doc/{randomstring}/{ndsfile}` you should find that Steam can launch the game. The issue then is that melonDS creates a different {randomstring} directory for each game it loads, rather than putting them all in one directory. This means you can't just update Steam Rom Manager and have it apply to all your DS games, you'd have to find the folder and update the filepath in Steam for each game, and this would likely be overwritten if you run the Rom Manager again in future.

I believe this is the result of a sort of security/sandboxing feature for flatpaks. When a flatpak tries to open a file it can make a sort of API caIl and have it mounted in
/run/user/1000/doc/
which is a fusefs filesystem, rather than using the main filesystem directly. My guess is that when you open in the app it can make the API call, but when you try and load via command line this call isn't made.

I'm no expert, so I've likely butchered the above explanation and I haven't poked about in the codebase yet either, so I could be way off on how it works too. I'll see if I can find any more info.

sverth_blaed
Posted on 10-06-22 06:24 PM Link | #5573
In case anyone needs this in the future I reckon I've solved it.

It looks like it was a flatpak access issue combined with the use of an external micro sd card. MelonDS adds the user home directory as a filesystem that it can access and open files from by default. It can access files outside of that it seems, but it has to mount them separately first. What I've done is to add my nds directory as a filesystem to the melonDS flatpak using Flatseal. I can now load my games via Steam just by adding the filepath as an argument in Steam Rom Manager and the file is no longer mounted to open it.

Hope that works for others having this issue.

Signum
Posted on 10-13-22 06:13 AM Link | #5583
Posted by HeavensSword
Just wanted to post an update.

Launching from command line works on Windows for NDS files, but not archives. Launching from command line doesn't seem to work on Linux at all for either NDS or archive files.

For now, I've just been playing Pokemon games in the Steam Deck's desktop mode.


would you be able to post an example of this for windows?

Pigeonade
Posted on 11-07-22 06:05 PM Link | #5630
Posted by sverth_blaed
In case anyone needs this in the future I reckon I've solved it.

It looks like it was a flatpak access issue combined with the use of an external micro sd card. MelonDS adds the user home directory as a filesystem that it can access and open files from by default. It can access files outside of that it seems, but it has to mount them separately first. What I've done is to add my nds directory as a filesystem to the melonDS flatpak using Flatseal. I can now load my games via Steam just by adding the filepath as an argument in Steam Rom Manager and the file is no longer mounted to open it.

Hope that works for others having this issue.


Do you have a screenshot or something for this setup on SRM or Steam? I can't get this to work, not sure what I'm doing wrong.

maysauce92
Posted on 04-19-23 12:22 AM Link | #5969
Hi I got the FLATPAK to work in gaming mode as the other guy said.
This way worked but after many tries error an some help from this post, I got a solution with details
Anything I tried before didn’t work.

-use FLATSEAL and add my directory of DS games to MelonDS directories section “/run/media/yoursdcard/Emulation/roms/nds” also added more file system permission.

-added in FLATSEAL “Persistent” section, the roms dir “/run/media/mmcblk0p1/Emulation/roms/nds/“
I tried many things,
I added “:ro” on the directory section as I didn’t work by just adding the Dir.(look on the pictures on the link)

-launch the games but same error, so i open properties on STEAM and remove the game directory from TARGET and added to LAUNCH OPTIONS

Note: first try didn’t launch cause in TARGET was an empty space at the end and at LAUNCH OPTIONS empty spaceS in the beginning, did the changes and it launch no error. this was a copy/paste error from me.

Note2: if you use rom manager for your DS collection it will probably mess up the whole work you did on Steam and it might merge entries or overwrite those again.

After 4months works for me, so tried in gaming mode and it launch the game, I will share a picture of my flatseal setup too. It is hard to explain and I am not expert Linux user but as a Steam Deck user I felt was my duty to share it, English not my first language too sorry if my explanation didn’t make sense for you.

https://drive.google.com/drive/folders/11cPKlNV1FzaFXyMVqOlSra6lo2Coa57P


Main - General - Command line parameters (Launcher) Hide post layouts | New reply

Page rendered in 0.032 seconds. (2048KB of memory used)
MySQL - queries: 26, rows: 81/81, time: 0.018 seconds.
[powered by Acmlm] Acmlmboard 2.064 (2018-07-20)
© 2005-2008 Acmlm, Xkeeper, blackhole89 et al.