Jump to content
LaunchBox Community Forums

Mame Tutorial for n00bs


Lordmonkus

Recommended Posts

Navigate to your Mame installation folder using the Windows file manager, you want the folder where the Mame64.exe is located. While holding the shift button right click anywhere in the window but preferably an empty space as to not be clicking on anything. There should be an "Open Command Prompt Here" or something similar to that. This should open a command line window with you already in that directory, all you have to do now is type in:

mame64.exe -cc

This will generate the mame.ini file in the main Mame folder where the executable is, for some strange reason when Mame is launched through Launchbox with the mame.ini file in the \ini folder it causes problems.

If you have any more questions please feel free to ask here or on discord https://discord.gg/X3Cwsyw we are here to help you out.

  • Thanks 1
Link to comment
Share on other sites

Okay did you import your ROMs into the LB games folder? If so you have to point MAME to that folder as it is set by default to look inside the ROMs folder in you MAME root folder. You can change the  directory either through the UI or by opening the program and going into configure options then configure directories     

Link to comment
Share on other sites

On 29/9/2016 at 3:31 AM, Lordmonkus said:

Obviously from the title of this thread this tutorial is going to be geared towards people that are new to Mame. I am going to keep it short, simple and focused on getting things up and running easily. I will not be getting into updating your romsets either, that is more advanced and often it is just easier to redownload a new full rom set than mess around with updating.

The first and most important and most troublesome part of Mame is the roms. Mame roms are not simply 1 file like cartridge based consoles and because there are so many versions of arcade games based on region and hacks there can be a ton of different versions of a game, Street Fighter II: World Warrior alone has something like 27 different variations of the roms when hacks and clone files are included.

Because of the way the roms are the easiest place to start is by obtaining a complete rom set. Now you do not NEED to have the latest version of the rom set to match whatever version of Mame you are using. So if you are going to use Mame 0.178 you do not need a 0.178 rom set. You can very easily use a 0.151 rom set which is extremely easy to find. I cannot tell you exactly where to find it but using google there is a certain paradise that should prove useful.

I am going to cover the basic non ui based version of Mame because the ui I found to be kind of useless after getting used to editing the mame.ini file.

Download the version of Mame you are going to use and run it. It will ask you where you wish to extract it, just put it where you want. For me this is:
H:\Emulation\Emulators\Mame 177

If you wish you can dump your roms right into the \roms\ folder that is in the Mame install folder but you do not have to do that if you do not want to. In fact I recommend you actually keep them separate, this way you can have multiple installs of Mame to try out new versions without having to have duplicate collections of roms eating up drive space. For me this folder is:
H:\Emulation\Roms\Mame 177

The first thing you want to do is to generate a mame.ini file. To do this open your command prompt (dos looking window) and navigate to your Mame folder. Now run the following command:
mame64.exe -cc

You should now have a mame.ini file. If you have no idea how to actually use the command prompt make a shortcut file to your mame64.exe, right click it and then properties. In the Target box you will see a full path and exe just put -cc at the end with a space after the exe or quotes if there is a quotation mark. Run the shortcut and it will generate the mame.ini file. If the ini file did not generate you will need to fix your shortcut path.

Now open your mame.ini file in notepad or notepad++. The first thing you will want to do if your rom files are located somewhere other than the \roms\ folder in your Mame folder is to edit the line:
rompath

Put the full  path to where you have your roms located, for example mine looks like this:
rompath                   "H:\Emulation\Roms\Mame 177\"

You can have multiple locations by separating the paths with a semi-colon.

Now this is all you need to do to have your mame setup and will run as long as your roms and your rom paths have no mistakes. You can do a quick test if you still have your command prompt window open by typing in:
mame64.exe sf2

If your paths and roms are correct this will load up Street Fighter 2: World Warrior.

Setup Mame like any other emulator in Launchbox. Noting should be checked in the emulator details tab of the edit emulator window and in the associated platforms tab make sure you have Arcade for the platform and nothing is needed in the command parameters.

See picture below.

Here are a few extra recommended edits of the ini file:

sleep                           0
skip_gameinfo             1

Sleep 0 will make sure your cpu doesn't throttle down when not under load which can cause some stutter when it needs to ramp back up. Skip_gameinfo just hides the info window that shows up when you load a game.

There are other settings you can toy around with like the aspect but I recommend leaving those at default and there is the shader stuff which I have covered here:

To setup your controller when you have a game loaded simply press tab on your keyboard and this will bring up a menu. In here you can set up all your different bindings for controllers and other Mame shortcut functions.

Anyways this is the end of my basic tutorial and it ended up being longer than I expected but it really is a pretty simple emulator to use.

If you need more advanced information don't forget that there is documentation for Mame. Here is the link the website where you can read the web version or the pdf version which you can download for offline reading. http://docs.mamedev.org/

mame.jpgPort Audio:

Port Audio is a new feature that came in with version 0.182 and allows for much lower latency in the audio which means things like sound effects are heard much closer to when you are supposed to hear them. Things like punches, menu selection sounds and rhythm games are the most noticeable places for this. To take advantage of Port Audio you will need to edit your mame.ini file and look for the sections to make the following changes:

# OSD SOUND OPTIONS
#
sound                     portaudio
audio_latency             1

#
# PORTAUDIO OPTIONS
#
pa_api                    "Windows WASAPI"    
pa_device                 default
pa_latency                0.003334

WARNING: There is one drawback to this new feature however. Mames sound will take over all audio from your computer so if you like to play music through your system while playing Mame games at the same time you won't be able to do it. Maybe there is a workaround to this.

 

Romsets: Merged vs Split vs Non-Merged, what's the difference.

In your search for rom sets for Mame you will come across those terms and here is a straight copy paste of the difference from a certain "dome of pleasure".

A non-merged set is one that contains absolutely everything necessary for a given game to run in one ZIP file. This is ordinarily very* space-inefficient, but is a good way to go if you want to have very few sets and want everything self-contained and easy to work with. We do not recommend this for most users.*

A split set is one where the parent set contains all of the normal data it should, and the clone sets contain only what has changed as compared to the parent set. This saves some space, but isn’t quite as efficient as a merged set.

A merged set takes the parent set and one or more clone sets and puts them all inside the parent set’s storage. To use the existing Pac-Man example, combining the Puckman, Midway Pac-Man (USA) sets, along with various bootleg versions– and combining it all into ((PUCKMAN.ZIP**, would be making a merged set. A complete merged set with the parent and all clones is the most common format MAME sets are stored in as it saves the most space.

* obsolete for current standards, as it's based on ancient disk space usage and costs

http://choccyhobnob.com/articles/demystifying-mame-roms/

This image should help explain the difference in a visual way.

5a7129a38ba2a_MameSplitvsMergedvsNon-Merged.png.54c006357375dc3e7380004636e9434b.png

Thank U so much!.Now its working all perfect for me.Im happy :)

  • Like 2
Link to comment
Share on other sites

Good Morning/Evening one and all-

 

I don't profess to be an expert on MAME and clearly the fact that I have pulled what hair I have left out indicates this-

 

here is the plot:

Had MAME 0.185 working nice and sweet, thousands of Roms, had both my XBox 360 game pads and both my obsidian fightsticks configured as Player 1 and 2.....something snapped in me, decided I would upgrade to newer version (MAMEUI64), create a custom MAME romlist, artwork, bezels etc, get my light gun games on a separate playlist and configure one single lightgun...

So i did all this, upgraded BIOS files, downloaded updated CHD'd etc, configured all my controllers and everything was sweet, I was happy playing games and saving hiscores on MAMEUI- then I turned off the PC.

When I rebooted no controller configurations- ini files set to read/write and MAMEUI running in admin mode, even tried autosave on exit and that didn't work.

Fortunately I still had the previous MAME 0.185 still on the computer, pointed LB to MAME 0.185 all games load but no controls-

as it stands I have just downloaded a clean MAME 0.185 and will do a complete re-install, but I really do not want to do that and do all the work again...

 

 

I am at a loss!! any ideas- please anyone..

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...