Changes

Jump to navigation Jump to search

Mednafen

1,776 bytes added, 22:54, 31 January 2019
Undo revision 27721 by Sega Master System (talk)
|version = {{MednafenVer}}
|active = Yes
|platform = Multi-platformWindows, Linux, BSD and more|target = [[Atari Lynx emulators|Atari Lynx]], [[Apple II emulators|Apple II]], [[WonderSwan emulators|Bandai WonderSwan/Color]], [[Game Boy Advance emulators|Nintendo Game Boy Advance]], [[Nintendo Entertainment System emulators|NESNintendo Entertainment System]], [[Super Nintendo emulators|SNESSuper Nintendo Entertainment System]], [[Virtual Boy emulators|Virtual Boy]], [[PC Engine (TurboGrafx-16) emulators|NEC PC Engine (TurboGrafx-16)]], [[PC-FX emulators|PC-FX]], [[Neo Geo Pocket emulators|SNK Neo-Geo Pocket/Color]], [[PlayStation emulators|Sony PlayStation]], [[Master System emulators|Sega Master System]] and , [[Master System emulators|Game Gear]], [[Sega Genesis emulators|Genesis (Mega Drive (Genesis)]], [[Sega Saturn emulators|Saturn]]
|developer = Ryphecha, Mednafen Team
|website = [https://mednafen.github.io/ mednafen.github.io]
|source = [http://sourceforge.net/projects/mednafen/files/latest/download?source=files SourceForge]
}}
'''Mednafen''' (an acronym for '''My Emulator Doesn't Need A Frickin' Excellent Name''', formerly '''Nintencer''') is a an open-source, [[Multi-System Emulatorssystem emulators|multi-system emulator]], driven from the command-line. Many of its cores are ports of other emulators, but many of them are also original. Its [[PlayStation emulators|Sony PlayStation]], [[Sega Saturn emulators|Sega Saturn]], [[Virtual Boy emulators|Nintendo Virtual Boy]], and [[PC Engine (TurboGrafx-16) emulators|NEC PC Engine (TurboGrafx-16)]] original cores are notable for their high quality, compatibility and accuracy.
==Downloads==
|-
|[[Atari Lynx emulators|Atari Lynx]]
|[[Handy]]|-|[[Apple II emulators|Apple II]]|Original
|-
|[[WonderSwan emulators|Bandai WonderSwan/Color]]
|[[Cygne]]|-|[[PC Engine (TurboGrafx-16) emulators|NEC PC Engine/TurboGrafx-16 (CD)]]|Original. CD-ROM interface based on [http://www.geocities.co.jp/SiliconValley-Bay/9975/PC2E/english.html PC2E].
|-
|[[Game Boy Advance PC-FX emulators|Nintendo Game Boy AdvanceNEC PC-FX]]|Original. NEC V810 CPU core based on [[VisualBoy Advance|VisualBoyAdvance]http://www.goliathindustries.com/vb/ Reality Boy].
|-
|[[Nintendo Entertainment System emulators|Nintendo NES (Famicom (NES)]]
|[http://freecode.com/projects/fceultra FCE Ultra]
|-
|[[Super Nintendo Game Boy Advance emulators|Nintendo Super Famicom (SNES)Game Boy Advance]]|[[higan|bsnesVisualBoy Advance]]
|-
|[[Virtual Boy emulators|Nintendo Virtual Boy]]
|Original. NEC V810 CPU core based on [http://www.goliathindustries.com/vb/ Reality Boy].
|-
|[[PC Engine (TurboGrafx-16) Sega Genesis emulators|NEC PC Engine Sega Genesis (TurboGrafx-16Mega Drive)]]|Original. CD[[Genesis Plus GX#Genesis Plus|Genesis Plus]]|-ROM interface based on |[[Master System emulators|Sega Master System]] and [[Master System emulators|Game Gear]]|[http://www.geocities.cotechno-junk.jp/SiliconValley-Bay/9975/PC2Eorg/englishsmsplus.html PC2Ephp SMS Plus].
|-
|[[PC-FX Sega Saturn emulators|NEC PC-FXSega Saturn]]|Original. NEC V810 CPU core based on [http://www.goliathindustries.com/vb/ Reality Boy].
|-
|[[Neo Geo Pocket emulators|SNK Neo-Geo Pocket/Color]]
|[http://www.emuxhaven.net/ [NeoPop]]
|-
|[[PlayStation emulators|Sony PlayStation]]
|Original.|-|[[Master System emulators|Sega Master System]] and [[Master System emulators|Game Gear]]|[http://www.techno-junk.org/smsplus.php SMS Plus]|-|[[Sega Genesis emulators|Sega Mega Drive (Genesis)]]|[[Genesis Plus GX|Genesis Plus]]
|-
|[[Sega Saturn Super Nintendo emulators|Sega SaturnSNES (Super Famicom)]]|Original[[higan|bsnes v059]]
|}
Mednafen only has a command line interface, so its interface might be hard to use to new users.
The best cores in Mednafen are those that are original - which are the PS1Sony PlayStation, PCENEC PC Engine, PC-FX , Sega Saturn and Nintendo Virtual Boy cores. The PCE NEC PC Engine core is one of the best emulators for that system, with a Fast and Accurate version. The PS1 PlayStation core is native resolution only, and features a high degree of accuracy and compatibility.<ref>[http://forum.fobby.net/index.php?t=msg&th=1114 Mednafen PSX bugs reports]</ref> The Nintendo Virtual Boy core is one of the best for the system.
Other cores improve upon emulators that have been long abandoned and rarely updated. These include the SNK Neo Geo Pocket/Color, Bandai WonderSwan /Color , and Atari Lynx cores.
Other cores are less useful, as there are better options in stand-alone emulators (NESNintendo Entertainment System, Sega Genesis, Master System , and SNESSuper Nintendo Entertainment System). These cores might even be based on out-dated versions. For instance, the SNES Super Nintendo Entertainment System core is based on an old outdated version of bsnes. This is before the performance/accuracy/balanced cores — 0.50x territory — with a couple of changes by Ryphecha.
It is unknown at this time whether Mednafen's GBA Nintendo Game Boy Advance core is better than [[VisualBoy Advance#VBA-M|VBA-M]].
[[RetroArch]] uses the PS1Sony PlayStation, PCENEC PC Engine, SNK Neo Geo Pocket/Color, Nintendo Virtual Boy, Sega Saturn and Bandai WonderSwan /Color cores of Mednafen, so it might make sense to use that instead.
==Using Mednafen==
===BIOS===
Most cores do not require any BIOS except for the PS1Sony PlayStation, PCE-NEC PC Engine CD, PC-FX , and Sega Saturn cores. [[Emulator_Files#Multi-System|BIOS files]] need to be placed into a folder called "firmware" in your Mednafen directory. Mednafen is very picky about which BIOS to use. The ones that you might need are:
'''Sony PlayStation'''* SCPH5500.bin bin - (NTSC-J) Required for Japan-region games.* SCPH5501.bin bin - (NTSC-U) Required for North America/US-region games.* SCPH5502.bin bin - (PAL) Required for Europe-region games.
'''PCE-NEC PC Engine CD'''
* syscard3.pce
'''NEC PC-FX'''* pcfx.rombios
'''Sega Saturn'''
* sega_101.bin
* mpr-17933.bin
All of these come with the [[Emulator_Files#Multi-System|RetroArch BIOS pack]], and are correctly named.
===CUE===
For most systems, Mednafen only needs the rom ROM file; but to load PS1 PlayStation games, Mednafen requires CUE sheets to know where the music data is. Ensure that the CUE sheet is properly set up in order for the game to run. See the [[Cue sheet (.cue)]] page for more info.
===Loading a game===
For this method to work, shared memory cards (see below) must be used for the games in the playlist.
===Dual analog controllers with PS1PlayStation===
To enable analog sticks and rumble on DualShock controllers, open the mednafen-09x.cfg file, search for "psx.input.port1" and change gamepad to DualShock. Do this for port2 if you wish to play multiplayer games with the features of DualShock controllers.
===Graphical enhancements===
====Sprite limit====
This is a feature on older systems, due to hardware limitations, that makes it only display so many sprites could be on screen at the same time. Most systems got around this limitation by alternating which sprites were on the screen each refresh, causing the sprite to flicker. Mednafen's default settings are true to the original system limits,  but this can be disabled in the .cfg file. Here is the list of options from the .cfg file to change from 0 to 1 if you don't wish to have the limit.
* [{{MednafenURL|documentation/nes.html#nes.no8lim}} nes.no8lim]
Searching for new cheat codes is also possible. The general idea being comparing variables, going back to gameplay so that this variable changes then back to the cheat engine searching for any variables that changed in that particular way. For example:
* '''Infinite Health / Ammo / Time / Money:''' you start with 5 hearts, reset search (in the cheat engine, not reset the game you silly!), you get hurt to 4 hearts, search variables that decreased, get healed back to 5 hearts, search variables that increased, and so on. For the money , you can start with 0 when you have 0 gold and try earning/spending money. You could try using save states as well when you don't have as much freedom changing the value.
* '''Infinite Lives:''' It's game over when the internal variable for "Lives" is 0. So in some cases, when it shows "REST/LEFT=1" in-game and you lose a life then it becomes 0 but you're still allowed to play on your last life, that means the internal counter for lives has actually changed from 2 to 1 and not from 1 to 0, but in other games (where if you die on "LIVESx1" it's game over) it's not the case. In the case of lives, you actually know the exact value: reset search initially, then (if you have 2 lives on a game that allows you to play on "LEFT=0") search for variables with values equal to 3. Lose a life, search for variables equal 2, and so on.
* '''Character Modifier / Level Modifier / Having an Item:''' reset search, play without changing whatever you're searching for (let's say the stage), do lots of searches for new value equals old value. In-game, change it, then do a new value doesn't equal old value. And so on.
* '''Walk Though Through Walls / Invincibility / In-game Cheats & Features :''' you need to find the value that tells the character if he can move or not (he can't really move when walking against a wall) / if he's blinking or being invincible right now after getting hurt. Same methods as before, but there are hints that could be useful here -- both states could be 0/1, or something else... for example, one could assume 0 is not enabled and 1 is enabled.
* '''Debug Modes:''' stuff that stays 0 no matter what, extra off-screen inaccessible options in menus, extra dialogue... you name it. Have fun experimenting.
The goal of these searches is to narrow down the list of results to a single or handful of addresses (variables) pertinent directly to whatever we're searching for. The search always starts with "Reset Search", going back in-game (Alt+C) to play and change stuff, then back to the cheat engine to compare the "Original" value with the "Current" value. Then you check the results page which must get smaller and smaller (if it's 0 results, you screwed up and need to reset search to try again). The comparing options offered by Mednafen are as follow, with O being the Original value, and C being the Current value (when you reset a search, they're the same):
# '''O==V1 && C==V2''' if you know the explicit numerical values for the variable you write it here. First The first time, just write the same value in both. Subsequent times, leave O blank and press Enter so that you don't write the old value again, and write the current value under C.
# '''O==V1 && |O-C|==V2''' same, but instead of writing the current value you write by how much it changed (0 if old value equals new value)
# '''|O-C|==V2''' you write by how much it changed (0 if old value equals new value)
Here's the full documentation: {{MednafenURL|documentation/fname_format.txt}}
Emulation bugs, crashes , and save states can corrupt your memory card data.
===Transfer===
To transfer memory cards, follow this guide. Also, in games with multiple discs with saves that carry over, you have to follow the same procedure.
Mednafen creates memory card files for each individual game, in contrast to [[PCSX-RReloaded]]/[[ePSXe ]] where all game saves are stored into 2 memory card files. To transfer memory card files from PCSX-RReloaded/ePSXe to [[RetroArch]]:
* Start the game in RetroArch.* Go to the system folder. Copy the names of the .mcr files created for the game.
* Delete them.
* Rename the files you want to transfer with the names of the RetroArch memcard files.
* Place the new ones in the system folder.
 
====Using Memory Card Manager 1.4====
 
Another option is to use Memory Card Manager 1.4 to extract a separate game saves from a shared memory card file.
 
The utility has support for next memory card formats: *.mem, *.mcd, *.mcr, *.gme, *.ddf, *.psx, *.ps, *.psm, *.vmp, *.VM1
 
[[File:memory_card_manager.png|400px]]
 
It allows to transfer each of the game saves from a shared memory card to a .mcr memory file used by Mednafen. As it was described above you just need to start game and check for '''sav''' folder inside Mednafen system directory. Open with Memory Card Manager 1.4 the memory file created for your game by Mednafen and open the shared memory card file from which you wish to transfer a save entry. When there would be a dialogue 'Do you want to replace 'SAVE_ENTRY_NAME' click 'Yes' and then save the file to the '''sav''' folder (the older one should be replaced).
==Frontends==
Cores that work with netplay:
* NEC PC Engine (TurboGrafx-16)/PCPCE-CD (TG-CD)/SuperGrafx (option for both accuracy and fast cores)* NEC PC-FX* NESNintendo Entertainment System* Sega Genesis* Sega Master System* SNESSuper Nintendo Entertainment System* Sony PlayStation
{| class="mw-collapsible mw-collapsed wikitable" style="width: 100%;"
* Netcode allows for people to join a game that's already in session
* In-game chat
* Playing it full -screen works (sometimes)
|-
| '''CONS''' ||
* Command-line only (you can use a frontend, though)
* Weird, convoluted settings (or lack thereof)
* SNES Super Nintendo Entertainment System emulation will be slow to you if you're on a low-end computer (uses bsnes core)* Sony PlayStation core is accurate but slow
* Only supports 2 players on Genesis
* Frontend doesn't always save settings correctly
* Frontend defaults to detecting compressed ROM archives instead of the actual ROMs (you can still load uncompressed ROMs by selecting "All files *.*" from the dropdown drop-down menu)
|}
# Run MedGui.exe
# You'll get a small window. On your left, you'll see two arrow buttons with a console/handheld icon in between. Choose your desired platform.
# Click the button with the blue lightning icon and look for the folder that contains your game(s). The emulator looks for compressed archives by default, but you can still load uncompressed files by clicking on the drop -down menu.
# Pick your game.
# Click the button with a checkered red ball and joystick to start the game.
# When you're done fiddling with your settings, click Create standard.conf
# Click Create Server. A cmd window will appear.
# Click My IP to obtain your external IP address, and share it along with your port to your friend(s).
# Launch the game.
# Press T, and type /server localhost.
#* "Password", blank if there is none.
#* "Nickname" where you type whatever you want.
#* "LocalplayerLocal player" is the number of players that will also be playing from on one computer.
#* "Small font" which makes the chat font smaller.
# When you're done fiddling with your settings, launch the game.
You can chat in-game by pressing T. Also, remember that you can drop in and out of the game at any time, so you don't need to reset the game if someone accidentally disconnects.
There are way too many settings, commands , and features to list, so take a look at the emulator's documentation.
|}
[[Category:Emulators]]
[[Category:Multi-emulators]]
[[Category:Atari consoles]]
[[Category:Nintendo Entertainment System emulators]]
[[Category:Super Nintendo emulators]]
[[Category:PC Engine (TurboGrafx-16) emulators]]
[[Category:PC-FX emulators]][[Category:Game Boy /Game Boy Color emulators]]
[[Category:Game Boy Advance emulators]]
[[Category:PlayStation emulators‎]]
[[Category:Master System emulators]]
[[Category:Sega Genesis emulators]]
[[Category:Sega Saturn emulators]]
[[Category:Virtual Boy emulators]]
[[Category:Netplay]]
1,809
edits

Navigation menu