Forum Replies Created
-
AuthorPosts
-
dudleydesParticipant
According to the Game Color Wikipedia page, the resolution is 160 x 144 pixels so try changing the aspect ratio in the config file to 1.11.
dudleydesParticipantHi bruized
There is an ongoing discussion on getting a PS3 controller working with mame4all at the following thread.
dudleydesParticipantHere are some things you can try.
1. Check that you have a folder cfg in the mame4all-pi directory. If not, then you will need to create one.
2. Check who owns the cfg folder, if it exists, by running the command
ls -ld /opt/retropie/emulators/mame4all-pi/cfg
For changes to be saved, the user should be pi, not root. The output when I run this command isdrwxr-xr-x 2 pi pi 4096 Jul 8 14:21 /opt/retropie/emulators/mame4all-pi/cfg
If you get root as the owner, then you can change the user to pi with the following command.sudo chown -R pi:pi /opt/retropie/emulators/mame4all-pi/cfg
(I gave pi permission to /opt/retropie to avoid any future problems)dudleydesParticipantPleased to hear it worked.
You can use the TAB key to bring up the MAME menu. You can then map your controller for all games (Input:General) or for specific games (Input:This Game).
dudleydesParticipantHere are the steps to get your PS3 controller working with mame4all.
1. Replace your copy of minimal.cpp with my copy.
2. Recompile by running the commands below from the terminal on the Pi or via ssh on a desktop.cd /opt/retropie/emulators/mame4all-pi/ make
This step took me about 3 hours.
3. Your PS3 controller will work but you may need to configure certain actions by using TAB.
4. Enjoy.
dudleydesParticipantYes, your PS3 controller will now work. You may need to configure certain actions for your controller, such as exiting Mame. You can do this by pressing TAB on a keyboard to bring up the Mame menu.
dudleydesParticipantaornn, yes, you need to edit the minimal.cpp file. At the moment, the mame4all-pi code rejects any controller with more than 6 axes such as the PS3 controller.
If it’s easier, you can download my copy attached in my previous post, change the file extension from .txt to .cpp, overwrite the copy on your Pi and then recompile.
dudleydesParticipantYou need to comment out lines 168-174. I did this by adding double forward slashes (//) at the beginning of each line of code which should turn blue as you edit. My code looks as below
// if (SDL_JoystickNumAxes(myjoy) > 6) // { // SDL_JoystickClose(myjoy); // myjoy=0; // logerror("Error detected invalid joystick/keyboard\n"); // break; // }
I have attached my copy of minimal.cpp which you can use to overwrite your copy once you have changed the extension from .txt to .cpp (I couldn’t upload the cpp file).
Either way, you will need to recompile which took 3 hours for me.
dudleydesParticipantIn my previous post, the path to the minimal.cpp file is incorrect so that may explain why you couldn’t see any code when using ssh.
As file names and directories are case sensitive in Linux, the command should be
sudo nano /opt/retropie/emulators/mame4all-pi/src/rpi/minimal.cpp
What I did was write the Retropie 2.2 image to SD card, comment out the lines in the minimal.cpp file and then recompile using the following commands.
cd /opt/retropie/emulators/mame4all-pi/ make
dudleydesParticipantYou would need to change the minimal.cpp file and recompile but at least the file will be there.
dudleydesParticipantYou can get a copy of the minimal.cpp file from source.
http://code.google.com/p/mame4all-pi/source/browse/src/rpi/minimal.cpp
I would check that you have the /src/rpi folder on your Pi first. If not, you may have to install mame4all from source using the Retropie setup script which can take 16 to 22 hours.
In reply to your earlier post, you can assign a key to exit mame by using TAB. In the Input:General menu, there should be an option to configure how to exit UI.
dudleydesParticipantEach emulator has a retroarch.cfg file that will override the main config file in the all directory. To edit it, you can use the command
sudo nano /opt/retropie/configs/atari2600/retroarch.cfg
For GBC, you can change atari2600 to gbc.
For Atari 2600, I added the line below and saved the file.
video_aspect_ratio = 0.83
dudleydesParticipantThe file structure of Retropie 2.2 has changed so the command you need to use to access the minimal.ccp file is now
sudo nano /opt/RetroPie/emulators/mame4all-pi/src/rpi/minimal.cpp
dudleydesParticipantI have posted a solution for using the PS3 controller with Mame4all-pi in another thread (link below).
dudleydesParticipantHi
I have set up Retropie 2.2 and I too have jagged edges on the fonts in the games list. I have not made any alterations to the RPi config file.
Here is a screen shot. I noticed that the jaggedness only seems to appear on the right hand side of the game title.
I scraped the metadata for Arkanoid and this seemed resolved the issue. Here is a screen shot after scraping.
I intend to scrape all of my games lists so the jagged fonts aren’t really an issue for me but I thought I’d share that this isn’t an isolated case.
dudleydesParticipantHi Hodd
The code you have posted is in my mame.cfg.template file but not the mame.cfg file.
I found configuring the joystick mapping a lot easier by using the MAME UI. If you launch a rom, then press TAB on a keyboard, you will be presented with the MAME UI.
The first option “Input: General” will allow you to map buttons to events such as quit game and pause for every game. To adjust your mappings, select the input you want to configure, press Enter on your keyboard followed by a button on your joystick.
You can use the next option “Input: This Game” to configure mappings for individual games.
dudleydesParticipantI have posted a solution for using the PS3 controller with Mame4all-pi in another thread (link below).
dudleydesParticipantThere was a issue raised at mame4all-pi repository that resolved the problem. Apparently there is code that rejects controllers with more than 6 axes.
Here is what I did. In a terminal, type
sudo nano home/pi/RetroPie/emulators/mame4all-pi/src/rpi/minimal.cpp
Comment out lines 168 to 174 so it appears as below.// if (SDL_JoystickNumAxes(myjoy[i]) > 6) // { // SDL_JoystickClose(myjoy[i]); // myjoy[i]=0; // logerror("Error detected invalid joystick/keyboard\n"); // break; // }
Save and exit.
Next you need to recompile the code so type in the terminal.
cd home/pi/RetroPie/emulators/mame4all-pi/ make
Reboot and your PS3 controller should now work.
dudleydesParticipantYou can run the following command from a terminal.
sudo nano RetroPie/configs/all/retroarch.cfg
The lines I needed were
input_enable_hotkey_btn = 16 input_exit_emulator_btn = 16
This lets me use the PS button to exit a game and return to EmulationStation.
dudleydesParticipantHi
The setting input_enable_hotkey_btn was indeed missing from my retroarch.cfg file. I’ve added it and everything is working as intended. Many thanks.
-
AuthorPosts