View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 16 posts ] 
Go to page 1, 2  Next

Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Thu Dec 15, 2005 6:12 pm 
Offline
Joined: Sun Jan 16, 2005 6:23 pm
Posts: 21
I'm trying to create a "bandaid" to get mupen64 support until it becomes apart of mythgame. I've come pretty far, but have hit another wall. If someone else wants to give it a try, heres what Ive done so far...It's pretty long...

Get some packages:
grab the source from the mupen site.
grab libgtk1.2-dev from apt-get

Edit the makefile:
(Their makefile incorrectly detects gtk2.0, when knoppmyth has 1.2)
Change
Code:
ifneq ("$(shell grep GTK2 config.h)","\#define GTK2_SUPPORT 1")
GTK_FLAGS       =`gtk-config --cflags`
GTK_LIBS        =`gtk-config --libs`
GTHREAD_LIBS    =`gtk-config --libs gtk gthread`
else
GTK_FLAGS      =`pkg-config gtk+-2.0 --cflags` -D_GTK2
GTK_LIBS       =`pkg-config gtk+-2.0 --libs`
GTHREAD_LIBS   =`pkg-config gthread-2.0 --libs`
endif

to...
Code:
#ifneq ("$(shell grep GTK2 config.h)","\#define GTK2_SUPPORT 1")
GTK_FLAGS       =`gtk-config --cflags`
GTK_LIBS        =`gtk-config --libs`
GTHREAD_LIBS    =`gtk-config --libs gtk gthread`
#else
#GTK_FLAGS      =`pkg-config gtk+-2.0 --cflags` -D_GTK2
#GTK_LIBS       =`pkg-config gtk+-2.0 --libs`
#GTHREAD_LIBS   =`pkg-config gthread-2.0 --libs`
#endif


Make it and install:
(the configure script is broken, as says their forum)
make all
mkdir ~/mupen64
cp mupen64_nogui ~/mupen64
cp -rv mupen64.ini ~/mupen64
cp -rv lang ~/mupen64
cp -rv plugins ~/mupen64
cp -rv doc ~/mupen64
mkdir /myth/games/n64/
mkdir /myth/games/n64/roms
Put your favorite rom in the new roms folder.

"Install" it into mythgame:
I have phpmyadmin, but you can access mysql how you want.
Insert into gamemetadata,
System="PC"
Romname="~/mupen64/mupen64_nogui --fullscreen /myth/games/n64/roms/romname.zip"
gamename="Romname"

Run ~/mupen64/mupen64_nogui --interactive /myth/games/n64/roms/romname.zip once before, to select the plugins and such. I selected:
2. dynamic recompiler
2 - glN64 v0.4.1
3 - JttL's SDL plugin 1.3
2 - blight's SDL input plugin 0.0.10
1 - Hacktarux/Azimer hle rsp plugin

Now here's the problem, if you try to run mupen64_nogui, you should get something called a SDL parachute opened, fatal error...If you can get past this, then you have completed the bandaid.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jan 14, 2006 1:39 am 
Offline
Joined: Mon Nov 24, 2003 4:23 pm
Posts: 38
Did you ever get this working? I more or less have things working. Just fighting with some joystick oddities. I got past all my SDL crashes though. I believe I patched in most of the compile errors noted on the emutalk site. I am running FC3+atrpms though. Can still compare setup/source if you need though.

Code:
[mythtv@jules ~]$ cat mythn64.sh
#!/bin/sh

NDIR="/usr/local/bin"
N64="mupen64_nogui"
ISODIR="/myth/games/n64/roms"
GAME="`echo $*`"
SDL_AUDIODRIVER="alsa"
AUDIODEV=digital

echo mupen64 : $GAME

# have to set the dir for the stupid blight controller plugin
cd $NDIR
#$NDIR/$N64 "$ISODIR/$GAME" < $NDIR/startkeys
echo HI: $NDIR/$N64 "$ISODIR/$GAME"
$NDIR/$N64 "$ISODIR/$GAME"



Code:
[mythtv@jules ~]$ cat .mupen64/mupen64.conf
[Default]
Audio Plugin = /home/mythtv/.mupen64/plugins/jttl_audio.so
Input Plugin = /home/mythtv/.mupen64/plugins/blight_input.so
RSP Plugin = /home/mythtv/.mupen64/plugins/mupen64_hle_rsp_azimer.so
Gfx Plugin = /home/mythtv/.mupen64/plugins/ricevideo.so
Fullscreen = true
Emulation Mode = 2
No Ask = true
RomDirsScanRecursive = true
NoAudioDelay = false
NoCompiledJump = false
AutoIncSaveSlot = false
RomDirectory[0] = /myth/games/n64/roms/
NumRomDirs = 1
Core = 1
MainWindow Width = 716
MainWindow Height = 230
RomBrowser ColWidth[0] = 167
RomBrowser ColWidth[1] = 17
RomBrowser ColWidth[2] = 47
RomBrowser ColWidth[3] = 57
RomBrowser ColWidth[4] = 358


A piece from gamelist.xml:
Code:
  <game>
    <name>N64 Emu - Mario Kart</name>
    <command>/usr/local/bin/mythn64.sh MarioKart64.v64</command>
    <genre>N64</genre>
    <year>2001</year>
  </game>


Top
 Profile  
 
PostPosted: Thu Apr 20, 2006 2:38 pm 
Offline
Joined: Thu Oct 13, 2005 6:32 pm
Posts: 12
watermark wrote:

Now here's the problem, if you try to run mupen64_nogui, you should get something called a SDL parachute opened, fatal error...If you can get past this, then you have completed the bandaid.



I have successfully gotten mupen64 running on R5B7 using your instructions. I had this same error when I finally tried to run mupen64. What is causing this error is the mythtv user not having write access to the directory where the binary is in order access and update the config files. I figured this out when I was able to run mupen64_nogui as root with no problems. So there are 2 ways to tackle the problem, either by giving the mythtv user write priviledges to /usr/games/n64 or installing mupen in the mythtv user's home folder instead.

There are some other things that need to be done that are not obvious from documentation to get things working smoothly.

1. Create a mupen64.conf file in the same directory as the binary with the following:
Quote:
[Default]
Gfx Plugin = /usr/games/n64/plugins/Glide64.so
Audio Plugin = /usr/games/n64/plugins/jttl_audio.so
Input Plugin = /usr/games/n64/plugins/blight_input.so
RSP Plugin = /usr/games/n64/plugins/mupen64_hle_rsp_azimer.so
Fullscreen = true
Emulation Mode = 2
No Ask = true

Be sure your plugins folder is in the same location as the config file.

2. In order to get joystick input working properly, you need to first run the gui version of mupen64. You should have a compiled mupen64 binary in the src folder, or you can grab the binary version from the Mupen homepage. Copy the mupen64 binary to the same folder you have the mupen64_nogui binary stored. Close your mythfrontend and run mupen64 from an xterm. Once the gui version comes up, use the configuration tool to set up your gamepad. This will create a blight_input.conf file in the mythtv user home directory. Copy this file to the same directory where the mupen64_nogui binary is stored (I'm not sure copying it here is necessary or not). Now you should be able to run the following command and have mupen64 successfully run at fullscreen with sound and gamepad support:

/usr/games/n64/mupen64_nogui --emumode 2 <rom location/name>


Restart mythfrontend and go to Setup - Media Settings - Games - Game Players and use the above command, to set up mupen64 in Myth. Don't forget to specify the directory where your Roms are. Tell it to detect new games and you should be all set.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 20, 2006 5:19 pm 
Offline
Joined: Sun Jan 16, 2005 6:23 pm
Posts: 21
I'm pretty sure I checked my permissions, but I'll def try it again...I lost my nogui binary on upgrade, so I gotta go through that dance again.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 20, 2006 7:14 pm 
Offline
Joined: Thu Oct 13, 2005 6:32 pm
Posts: 12
Cool, I should mention that I took the very lazy and unsecure route buy doing

chmod -R 777 /usr/games/n64


That may be what it takes but I would think simply giving write permissions should be enough.


Top
 Profile  
 
 Post subject:
PostPosted: Sat May 20, 2006 7:18 pm 
Offline
Joined: Sat Jun 25, 2005 7:39 pm
Posts: 162
seant9, I've been trying to figure out this for a while so I was eager to try the permissions thing. Unfortunately it didn't work... Any other ideas on how to get rid of this SDL Parachute error?


Top
 Profile  
 
 Post subject:
PostPosted: Sun Sep 10, 2006 3:04 pm 
Offline
Joined: Sun Aug 27, 2006 2:31 pm
Posts: 287
Am I supposed to be editing the ./configure file for the gtk2 stuff? I can't seem to find the correct lines. Also, the wiki says something about editing the code for a nogui version. I'm not sure if what I'm doin' is right.

_________________
KM R5E50; K8NGM2; A64-3800+; 1024MB PC3200; LG DVD-RW; Seagate 750GB; 6600 PCI-E; Onboard sound; Hauppauge PVR-150


Top
 Profile  
 
 Post subject:
PostPosted: Sun Sep 10, 2006 3:07 pm 
Offline
Joined: Sat Jun 25, 2005 7:39 pm
Posts: 162
In KnoppMyth I've never gotten the no-gui version to work. I have gotten Super Mario 64, Wave Race, Banjo Kazooie, and Extreme-G working with the GUI version. Editing the config file is just for compiling the no-gui version correctly which AFAIK doesn't work.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Sep 10, 2006 10:18 pm 
Offline
Joined: Sun Jan 16, 2005 6:23 pm
Posts: 21
Seems like there is still interest in mupen on knoppmyth. I've got it working, but the thread has been dead for a while. If you want mupen64 0.5 in R5D1, keep reading. If you've had problems with mupen in the past, R5D1 is a much better build of knoppmyth, there have been a lot of bug fixes...snes plays fullscreen now :).

Download the source tar and unzip it. There is an error in the code, which the source post indicates. In main/main.c, on line 40, after "#include <unistd.h>" you need to add the following.
Code:
#include <dirent.h>

Knoppmyth doesn't have the devel files you will need, but apt does. Run the following as root to get them.
Code:
apt-get update
apt-get install libgtk2.0-dev libsdl1.2-dev

And idk about the can't find gtk2 crap, sometimes it works, sometimes it doesnt. If it can't find it, and all the previous worked w/o errors you are going to have to modify configure too. Add the following, on line 281, after "BOTHGTK="0""
Code:
GTK2="1"

In the mupen64 source folder, run the following as user mythtv.
Code:
./configure

It will ask you several questions. The first is about multiuser, anwser no so the configs will save to your home directory. Anwser the default to all the rest.

Run the following as root.
Code:
make && make install


Now to configure mupen64_nogui using the gui (oxymoron?). You will need to run these on your physical mythbox as they will require a xserver. Run the following...
Code:
/usr/local/bin/mupen64

You should see the mupen gui. Goto options->configure->plugins. I use the following, but other configurations maybe possible with better results, but I had problems with some of the more common configurations.
Code:
gfx: gln64
audio: mupen64 audio plugin
input: blights SDL
rsp: (there is only one)

If you are running this on a TV, press configure on gln64, set the resolution to 640x480. Otherwise, you are on your own.

Configure your input...I have a gamecube controller hooked up via USB, so I configured that through the gui, but use what you will.

I had major problems using ricevideo and the sdl sound plugins...both were recommended to me, but they dont work well on knoppmyth (but excellent on ubuntu dapper).

create the following directories, and make sure they are readable by all...
/myth/games/n64
/myth/games/n64/roms
/myth/games/n64/shots

Add your roms to the roms folder and your screenshots to the shots folder.

Now to tell mythtv whats up. Goto setup->setup->Media settings->game settings->player settings->new game player.
Code:
Player name: N64
Type: N64
Command: nice mupen64_nogui --fullscreen %s
Rompath: /myth/games/n64/roms/
ScreenShots: /myth/games/n64/shots/

Scan for Games, play mario64.

Let me know if this worked for you.


Last edited by watermark on Mon Sep 11, 2006 2:19 pm, edited 2 times in total.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 11, 2006 1:17 pm 
Offline
Joined: Sun Aug 27, 2006 2:31 pm
Posts: 287
I'll give it a shot sometime this wk. I upgraded SDL to all(it had oss installed already). Do I need to change that, or is that okay?

_________________
KM R5E50; K8NGM2; A64-3800+; 1024MB PC3200; LG DVD-RW; Seagate 750GB; 6600 PCI-E; Onboard sound; Hauppauge PVR-150


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 11, 2006 2:23 pm 
Offline
Joined: Sun Jan 16, 2005 6:23 pm
Posts: 21
I really dont know the difference, but "all" says all the options...so assumily it does all of what oss can do and more. I have oss and it works fine. If it doesn't compile or you get some crazy sdl errors, you may have to switch back.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 11, 2006 8:55 pm 
Offline
Joined: Sun Aug 27, 2006 2:31 pm
Posts: 287
watermark wrote:
I really dont know the difference, but "all" says all the options...so assumily it does all of what oss can do and more. I have oss and it works fine. If it doesn't compile or you get some crazy sdl errors, you may have to switch back.


-nods- I saw somewhere about not having the correct options, so that's why I went to all. I'll give your instructions a try an' let ya know.

_________________
KM R5E50; K8NGM2; A64-3800+; 1024MB PC3200; LG DVD-RW; Seagate 750GB; 6600 PCI-E; Onboard sound; Hauppauge PVR-150


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 26, 2006 10:11 pm 
Offline
Joined: Thu Oct 13, 2005 6:32 pm
Posts: 12
Watermark,

I followed your new instructions tonight since I just upgraded to R5D1 and it worked like a champ. I was even lucky enough to be able to use the better graphics and sound plugins. The only bad thing now is that when the next knoppmyth comes out I will be scared as hell to upgrade because I finally have every single thing working in myth as well as NES, Mame, SNES, N64, Sega, and PSX emulation all working smoothly.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 26, 2006 11:55 pm 
Offline
Joined: Sat Jun 25, 2005 7:39 pm
Posts: 162
Well the mupen install went fine but I think somewhere in the cascading dependencies for gtk I hosed my gdm install. I get a message when I turn on the comp that says, "Your session only lasted less than 10 seconds" and refuses to let me in. Seems to be an xsessions error but only related to the mythtv user. I can login with root just fine and even start the frontend (no remote control because theres no config in that home directory) but mythtv user is out of luck. Any help?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 28, 2006 3:25 pm 
Offline
Joined: Wed Feb 01, 2006 8:37 pm
Posts: 14
Knoppmyth R5E50

I was really excited to try Mupen as I just recently got my Snes games working. I followed watermark's directions and everything seems to go okay, until I get to the config and try to select Plugins, there is only the layout that isnt greyed out, so I hit google and find some intructions that get the other plugins working except RSP, for the life of me I can't get this plugin to show up, and when I try to play a game it just hangs so whatever that RSP plugin does it seems to be important, any sugestions?
When I type make I do get some errors but I always get errors when I type make so I've learned to ignore them as I have no idea what they mean, I can post them if you need.

tyia, please help a newb play his N64 :D


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 16 posts ] 
Go to page 1, 2  Next



All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 19 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu