Hurmmmmm. This is so very strange indeed!
So. Just checking. You’re using the current 200903 build of my DEOT image, and not the old 19111 one?
Let’s just use this image for now. Then we can work backwards from there
Can you try opening dinguxcommander from the utilities folder, and navigate to the ~/apps/emulators/ directory, and directly executing the Pocket SNES app?
It should run, and just present a screen that looks like an old SNES game box. This is just to make sure PocketSNES is running. Quit out of it.
Try and directly load a rom from the launcher menu using PocketSNES. It should work. If it doesn’t, then there is a possible chance it could be an SD card issue; perhaps a counterfeit card reporting a size, but in fact being far less; thus sectors getting overwritten, and files going missing.
Try and run CaveStory from the main menu. This will at least ensure Retroarch is running. After that, try and make a script to run Mario using Retroarch. (See above)
If that doesn’t work, edit the contents of the cavestory script to contain the SNES Mario script. (Backup the contents of the cavestory script if you want to restore it)
Double check to make sure your rom is for certain in the correct directory that corresponds with where it’s specified in the script. It sounds like it is, but since we’ve switched from a stock OS to my custom one, I have streamlined my directory structure to better match a console for ease of compatibility.
How are your transferring files, editing files and running scripts? What OS, ssh client or anything else are you using? If you’re using something like notepad on windows, unless you specify otherwise, it adds a whole heap of unneeded headers for rich text support. Stuff like fonts, sizes, formatting etc. This gets in the way of code. Try and perhaps using something like vim or Nano to view the contents of the script while in an ssh session. Ie,
cd /home/cpi/launcher/Menu/GameShell/
sudo nano mario.sh
If there’s anything in the file other than what we want, delete it, then write out the file.
Confirm the permissions for the script file using ls -l mario.sh
and let me know what you see.
All of that being confirmed, it should be a fairly straight forward script. All it does is:
- Provide the shebang to use a bash interpreter
#!/bin/bash
- Change the directory to the location of the executable
cd /home/cpi/apps/emulators/
- Execute the app, followed by an argument pointing to the location of the rom file for it to load
./PocketSNES /home/cpi/games/SNES/mario.smc
It’s a fairly basic script, so I’m scratching my head re: where we could have gone wrong. I’m running this exact script right now, and it’s running fine. We WILL get this working!
Edit:
Going through your change log of your last post, I saw your screen shots that were actually much more useful. If looks like you booted up the gameshell, and then immediately ran the cat. I could be wrong!
Did you run the script first, get booted back to the launcher, and then run the cat?
It should be an even log. That’s why I thought that perhaps it wasn’t complete.