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

Launch game on MiSTer from AMMiSTer #7

Closed
city41 opened this issue Jan 16, 2023 · 8 comments
Closed

Launch game on MiSTer from AMMiSTer #7

city41 opened this issue Jan 16, 2023 · 8 comments
Labels
enhancement New feature or request
Milestone

Comments

@city41
Copy link
Owner

city41 commented Jan 16, 2023

I think this is possible, but I'm not totally sure. If it is possible, add this in.

If it is possible and feasible, this might be better than the MAME idea.

@city41 city41 added the enhancement New feature or request label Jan 16, 2023
@exolon
Copy link

exolon commented Jan 16, 2023

It is possible for other systems, not sure about MAME. There's an Android app that does it and it does list mame ROMs but I don't have my MiSTer with me to test it

@birdybro
Copy link

Definitely possible. Just have to inject the right command over ssh.

echo load_core /media/fat/_Arcade/arcadegame.mra >/dev/MiSTer_cmd

I think that will work, maybe.

@city41 city41 changed the title Launch game on MiSTer from AMiSTer Launch game on MiSTer from AMMiSTer Jan 16, 2023
@city41
Copy link
Owner Author

city41 commented Jan 16, 2023

It looks like that only works with cores, not mras, sadly. My googling around so far has not found a way to launch an mra programmatically.

@birdybro
Copy link

birdybro commented Jan 16, 2023

Actually, it needs the the mra name but I think the directory is relative to /media/fat by default, so maybe just _Arcade/

https://github.com/mrchrisster/MiSTer_SAM/blob/main/MiSTer_SAM_on.sh#L1550-L1551

@city41
Copy link
Owner Author

city41 commented Jan 17, 2023

Ah ha, it does work! What was tripping me up was I was escaping the spaces in the file name, which /dev/MiSTer_cmd doesn't seem to want.

This works

echo "load_core /media/fat/_Arcade/_foo/foo bar.mra" > /dev/MiSTer_cmd

This doesn't:

echo "load_core /media/fat/_Arcade/_foo/foo\ bar.mra" > /dev/MiSTer_cmd

Relative paths also work:

echo "load_core _Arcade/_foo/foo bar.mra" > /dev/MiSTer_cmd

Nice, this should be doable by AMMiSTer. Sadly it means adding SSH to the app, which doesn't work on MacOS :( but that is surmountable, just need to figure out a workaround for that.

@birdybro
Copy link

birdybro commented Jan 17, 2023

Maybe some clues in here for SSH.

https://github.com/electerm/electerm

Electron based like your app, MIT licensed, there might be some clues, supposedly works on Mac as well.

I would be highly suspicious if Macs didn't have some kind of SSH client capability, that's unusual, it's a basic system administration tool, how would anyone do their job on it? :P

EDIT: Hrm... looking around, Mac does indeed have the normal ssh username@hostname/ipaddress like windows and linux.

@city41
Copy link
Owner Author

city41 commented Jan 17, 2023

Oh I meant the node ssh package causes an issue with macos and electron. I'll get macos and ssh working, especially now since this feature would be really cool.

btw, exporting to mister is done with ftp instead of ssh, as it's over twice as fast. ssh requires encryption, making the mister's lil cpu a bottleneck.

@city41 city41 added this to the 1.1 milestone Jan 18, 2023
@city41 city41 removed this from the 1.1 RC milestone Feb 4, 2023
@city41 city41 added this to the 1.1 RC milestone Apr 19, 2023
@city41
Copy link
Owner Author

city41 commented Apr 30, 2023

v0.33.0 now includes short play videos thanks to Arcade Italia. So at least for now, I don't plan to implement this as I think the videos solve this need better.

@city41 city41 closed this as completed Apr 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Done
Development

No branches or pull requests

3 participants