Mednafen

Play with your Puppy.
Post Reply
Message
Author
IlluminatiPL
Posts: 27
Joined: Sun 16 Feb 2014, 14:23

Mednafen

#1 Post by IlluminatiPL »

Wiki: http://en.wikipedia.org/wiki/Mednafen
URL: http://murga-linux.com/puppy/viewtopic. ... 660#760660
Build: Slacko64 (--build=x86_64-slackware-linux)

User avatar
Geoffrey
Posts: 2355
Joined: Sun 30 May 2010, 08:42
Location: Queensland

#2 Post by Geoffrey »

I compiled this for Carolina, in my case I needed to install Nvidia drivers for smooth play, this needs some configuration that I yet have to figure out, I downloaded a Sega master system rom but can't seem to make Sonic the hedgehog jump :(

This is for Carolina only, it may work with other pups but will need some dependencies.

Some errors as there is no joystick device, everything else works, I'm no gamer, hope it's found to be of some use.

Remember it's for Carolina, no guarantee it will work with anything else, mednafen-0.9.33.3.pet

http://download.freeroms.com/sega_maste ... og(us).zip

There is no menu entry, it's a cli app, see http://mednafen.sourceforge.net/

Code: Select all

# mednafen '/root/.mednafen/Sonic the Hedgehog (US).smd'
Starting Mednafen 0.9.33.3
 Build information:
   Compiled with gcc 4.3.4
   Compiled against zlib 1.2.5, running with zlib 1.2.5
   Compiled against SDL 1.2.15, running with SDL 1.2.15
   Running with libsndfile-1.0.20
   Compiled against libcdio 0.82 i486-t2-linux-gnu, running with libcdio (unknown)
 Base directory: /root/.mednafen
 Internal emulation modules: nes snes gb gba pce pce_fast lynx md pcfx ngp psx vb wswan sms gg cdplay
 External emulation modules: 
 Loading settings from "/root/.mednafen/mednafen-09x.cfg"...
 Initializing joysticks...
Error opening joystick device "/dev/input/js0": No such device
Error opening joystick device "/dev/input/js1": No such device
 Loading /root/.mednafen/Sonic the Hedgehog (US).smd...
  Applying IPS file "/root/.mednafen/Sonic the Hedgehog (US).smd.ips"...
   Failed: No such file or directory
  Using module: md(Sega Genesis/MegaDrive)

Real: 0x6b86487ac69d9293ULL    Header: 0x4b2474749164b5d7ULL
20202020, 20202020, 20202020
Mapper: ROM
   ROM:       512KiB
   ROM MD5:   0x1bc674be034e43c96b86487ac69d9293
   Header MD5: 0x4b7278a669e66db54b2474749164b5d7
   Product Code: 00001009-00
   Domestic name: SONIC THE               HEDGEHOG                
   Overseas name: SONIC THE               HEDGEHOG                
   Copyright: (C)SEGA 1991.APR
   Checksum:  0x264a
   Supported I/O devices:
    3-Button Gamepad
   Supported regions:
    Japan/Domestic NTSC

   Active Region: Domestic NTSC
   Active Region Reported: Domestic NTSC

   Loading cheats from /root/.mednafen/cheats/md.cht...
    Error opening file "/root/.mednafen/cheats/md.cht": No such file or directory

 Initializing sound...
  Using "ALSA" audio driver with SexyAL's default device selection.
   Bits: 16
   Rate: 48000
   Channels: 2
   Byte order: CPU Native
   Buffer size: 1536 sample frames(32.000000 ms)
   Latency: 1536 sample frames(32.000000 ms)
   Period size: 64 sample frames(1.333333 ms)
 Initializing video...
  Video Driver: OpenGL
  Video Mode: 1440 x 900 x 32 bpp
   Pixel shader: none
  Fullscreen: Yes
  Special Scaler: None
  Scanlines: Off
  Destination Rectangle: X=136, Y=2, W=1168, H=896
  OpenGL Implementation: NVIDIA Corporation GeForce 8600 GT/PCI/SSE2/3DNOW! 3.3.0 NVIDIA 290.10
  Checking extensions:
   GL_ARB_texture_non_power_of_two found.
   GL_ARB_sync found.
  Using non-power-of-2 sized textures.
  Checking maximum texture size...
   Apparently it is at least: 8192 x 8192
  Using GL_BGRA, GL_UNSIGNED_INT_8_8_8_8_REV for texture source data.
Attachments
Sonic the Hedgehog (US)-0000.png
(14.31 KiB) Downloaded 2484 times
[b]Carolina:[/b] [url=http://smokey01.com/carolina/pages/recent-repo.html]Recent Repository Additions[/url]
[img]https://dl.dropboxusercontent.com/s/ahfade8q4def1lq/signbot.gif[/img]

User avatar
mikeb
Posts: 11297
Joined: Thu 23 Nov 2006, 13:56

#3 Post by mikeb »

Dont think puppy loads the joydev driver automatically...could try modprobing it.

We have a bundle of sega emulators...one more would make me go crosseyed :D

mike

User avatar
Geoffrey
Posts: 2355
Joined: Sun 30 May 2010, 08:42
Location: Queensland

#4 Post by Geoffrey »

mikeb wrote:Dont think puppy loads the joydev driver automatically...could try modprobing it.

We have a bundle of sega emulators...one more would make me go crosseyed :D

mike
I didn't have a joystick to try, it's more than just sega, I'll have to find my old PS1 games I loaned out to give them a try.


Atari Lynx
Neo Geo Pocket (Color)
WonderSwan
GameBoy (Color)
GameBoy Advance
Nintendo Entertainment System
Super Nintendo Entertainment System/Super Famicom
Virtual Boy
PC Engine/TurboGrafx 16 (CD)
SuperGrafx
PC-FX
Sega Game Gear
Sega Genesis/Megadrive
Sega Master System
Sony PlayStation
[b]Carolina:[/b] [url=http://smokey01.com/carolina/pages/recent-repo.html]Recent Repository Additions[/url]
[img]https://dl.dropboxusercontent.com/s/ahfade8q4def1lq/signbot.gif[/img]

User avatar
mikeb
Posts: 11297
Joined: Thu 23 Nov 2006, 13:56

#5 Post by mikeb »

ah ok...well perhaps the error is simply because there was no device plugged in...perhaps I am missing the plot here lol.

Ah so does a bundle...neat I am curious.
We use ePSXe for PS1 but sounds interesting

mike

User avatar
sc0ttman
Posts: 2812
Joined: Wed 16 Sep 2009, 05:44
Location: UK

mednafen frontend

#6 Post by sc0ttman »

here is a frontend for mednafen...

load it in the terminal with any of the following commands:

pamedgb pamedgg pamedpce pamedsms pamedwswan
pamedgba pamedia pamednes pamedpcfx pamedsnes
pamedgen pamedlynx pamedngp pamedpsx pamedvb


the different commands load up slightly different versions of the frontend,
one for each system supported by mednafen...

to use the frontend, browse to you rom folder, and double click on the rom...

i did not include the rom database that should go with this frontend, as it is
about 32MB of files .. You can get them from Puppy Arcade 11 if u like: just
copy the /usr/share/paloader/ folder into your puppy...

Image
Attachments
pamednafen.pet
mednafen frontend (without game database(s) included)
(97.98 KiB) Downloaded 786 times
[b][url=https://bit.ly/2KjtxoD]Pkg[/url], [url=https://bit.ly/2U6dzxV]mdsh[/url], [url=https://bit.ly/2G49OE8]Woofy[/url], [url=http://goo.gl/bzBU1]Akita[/url], [url=http://goo.gl/SO5ug]VLC-GTK[/url], [url=https://tiny.cc/c2hnfz]Search[/url][/b]

User avatar
mikeb
Posts: 11297
Joined: Thu 23 Nov 2006, 13:56

#7 Post by mikeb »

Had a play with it...its very fussy with libraries and roms and a mind boggling set of configs BUT it does show potential as filling a gap with linux emulators.

I got psx running but it seemed ok loading the game but only gave me the bios screen. sega stuff complained about my zlib and no sega cd it seems...need to fiddle and test more.

Lots of manual and website studying for this one but may be worth it

thanks for posting it on here

mike

User avatar
mikeb
Posts: 11297
Joined: Thu 23 Nov 2006, 13:56

#8 Post by mikeb »

Ok crtl-alt-1 then runs the gamepad/keyboard setup to assign keys... so did get to make sonic jump AFTER getting a particular libz.

Playstation...still only get the bios screen but its probably needing the exact libSDL for that to work...just a guess...you need EXACTLY the right bios too depending on region unlike epsxe.

Was mainly interested in the latter since on linux the other options are lacking in various ways.

This looks like it could be good if gamepad lag is not an issue but really is seems like the only sure way is to compile it so its 100% happy with yer system or you get lucky and one or the many variant builds happens to work for you. I was building a package with exactly the wanted libs regardless of distro but libSDL requirement for this build seemed to want the one from ubuntu raring and all the framebuffer/keberos stuff.
I might try the build approach out of curiosity one day...its definitely a game for devs :D

mike

User avatar
sc0ttman
Posts: 2812
Joined: Wed 16 Sep 2009, 05:44
Location: UK

#9 Post by sc0ttman »

mikeb wrote:Ok crtl-alt-1 then runs the gamepad/keyboard setup to assign keys... so did get to make sonic jump AFTER getting a particular libz.

Playstation...still only get the bios screen but its probably needing the exact libSDL for that to work...just a guess...you need EXACTLY the right bios too depending on region unlike epsxe.

Was mainly interested in the latter since on linux the other options are lacking in various ways.

This looks like it could be good if gamepad lag is not an issue but really is seems like the only sure way is to compile it so its 100% happy with yer system or you get lucky and one or the many variant builds happens to work for you. I was building a package with exactly the wanted libs regardless of distro but libSDL requirement for this build seemed to want the one from ubuntu raring and all the framebuffer/keberos stuff.
I might try the build approach out of curiosity one day...its definitely a game for devs :D

mike
Yes mednafen needs very specific BIOS files... i will PM you about the BIOS files in a bit..

I have a new mednafen-WIP package in http://akita.scottjarvis.com, might work out for you a little better... I also have other PSX emulators there..

BTW, Mednafen is an excellent emulator.. Once you get used to assigning controls with Alt-Shift-0 (p1), Alt-Shift-1 (p2), etc, then it's great.. The PSX emulation is very accurate.. It is a little fussy about Genesis roms, may ask for IPS patch until you get the right ROm or set..

Mednafen also has netplay for nearly all systems it supports..

The easiest way (if your hardware supports it) to test out mednafen in all its glory is to boot up Puppy Arcade 11.. Nearly everything is setup already..
[b][url=https://bit.ly/2KjtxoD]Pkg[/url], [url=https://bit.ly/2U6dzxV]mdsh[/url], [url=https://bit.ly/2G49OE8]Woofy[/url], [url=http://goo.gl/bzBU1]Akita[/url], [url=http://goo.gl/SO5ug]VLC-GTK[/url], [url=https://tiny.cc/c2hnfz]Search[/url][/b]

User avatar
mikeb
Posts: 11297
Joined: Thu 23 Nov 2006, 13:56

#10 Post by mikeb »

Hmm yes the netplay is of interest too.

Does it use true 3d rendering or simply use accelerated 2d graphics like PSXe? ePSXe does do a very nice job on out Nvidia cards... better than the original TV output . By the way that's up to version 1.8 now on windows and supports PSP compressed images which is neat. Sound handling is improved too.

I will give that pet a whirl. It does run the bios screen no problem and as far as I can tell I have the right bios handy.

mike

slavvo67
Posts: 1610
Joined: Sat 13 Oct 2012, 02:07
Location: The other Mr. 305

#11 Post by slavvo67 »

Do the PSX emulators work? I thought you need a bios or something that defeats the purpose...

Man, I'd love to get my Suikoden II and Gallop Racer working again....

User avatar
mikeb
Posts: 11297
Joined: Thu 23 Nov 2006, 13:56

#12 Post by mikeb »

Hmm getting a bit stuck on the libSDL 14 which wants the full pulseaudio which to me is unrelated... though a debian build says it can use an older libSDL.

Going to try the windows version as I may be missing something obvious.

mike

User avatar
mikeb
Posts: 11297
Joined: Thu 23 Nov 2006, 13:56

#13 Post by mikeb »

Ok me droning on...did not mean to hog this thread.... tried windows...the same.
Solution was it did not like the game i was testing and another did when I gave it the rom it demanded. This should mean it does not need the over demanding newer libSDL after all which makes for a program that will run on anything from puppy 4.

One note..the builds do seem to need newer processors (SSE2 perhaps?) my guess pentium 4 and newer.

If anyones stuck the keyboerd can be configured in the same way as a game pad.

mike

slavvo67
Posts: 1610
Joined: Sat 13 Oct 2012, 02:07
Location: The other Mr. 305

#14 Post by slavvo67 »

This does not seem to work in Fluxpup.

IlluminatiPL
Posts: 27
Joined: Sun 16 Feb 2014, 14:23

#15 Post by IlluminatiPL »

Updated. Whatever (after 0.9.34.1) I will be release at a 3.13 instead 3.12 because that's compiled from a 14.1 with a old kernel instead of newest.

9,6MB -> 9,4MB

http://www.mydrive.ch/download/28816975 ... 2-Slacko64 (Depends are be login/pass from a Frist post.)

Post Reply