[GAMES/EMULATOR] Mupen64Plus N64 Emulator

Post Reply
AreaScout
Posts: 1455
Joined: Sun Jul 07, 2013 3:05 am
languages_spoken: german, english
ODROIDs: X2, U3, XU3, C2, HiFi Shield, XU4, XU4Q,
N1, Go, VU5A, Show2, CloudShell2,
H2, N2, VU7A, VuShell, Go2, C4
Has thanked: 71 times
Been thanked: 226 times
Contact:

[GAMES/EMULATOR] Mupen64Plus N64 Emulator

Post by AreaScout »

Hi all

I made a easy to compile version of Mupen64Plus, it is really a big mixture between mupen64plus-ae/pandora/odroid, i will also try with mainline mupen64plus but for now this should do it :)

The benefit of this is -> it's working :)

Image

https://github.com/AreaScout/mupen64plus-odroid

Code: Select all

sudo apt-get install libsdl1.2-dev

git clone https://github.com/AreaScout/mupen64plus-odroid.git

cd mupen64plus-odroid
./m64p_build.sh
all files are now in a new subfolder called test, start mupen64plus with rom ( e.g m64p_test.sh ), it will crash on video driver but it will create a default mupen64plus.cfg in ~/.config/mupen64plus/
you should edit it as follow:

Code: Select all

[Audio-SDL]

# Mupen64Plus SDL Audio Plugin config parameter version number
Version = 1
# Frequency which is used if rom doesn't want to change it
DEFAULT_FREQUENCY = 22050
# Swaps left and right channels
SWAP_CHANNELS = False
# Size of primary buffer in output samples. This is where audio is loaded after it's extracted from n64's memory.
PRIMARY_BUFFER_SIZE = 32768
# Fullness level target for Primary audio buffer, in equivalent output samples
PRIMARY_BUFFER_TARGET = 16384
# Size of secondary buffer in output samples. This is SDL's hardware buffer.
SECONDARY_BUFFER_SIZE = 4096 

Code: Select all

[UI-Console]

# Mupen64Plus UI-Console config parameter set version number.  Please don't change this version number.
Version = 1
# Directory in which to search for plugins
PluginDir = "./"
# Filename of video plugin
VideoPlugin = "mupen64plus-video-gles2n64.so"
# Filename of audio plugin
AudioPlugin = "mupen64plus-audio-sdl.so"
# Filename of input plugin
InputPlugin = "mupen64plus-input-sdl.so"
# Filename of RSP plugin
RspPlugin = "mupen64plus-rsp-hle.so"

Code: Select all

[Core]

# Mupen64Plus Core config parameter set version number.  Please don't change this version number.
Version = 1.010000
# Draw on-screen display if True, otherwise don't draw OSD
OnScreenDisplay = False
# Use Pure Interpreter if 0, Cached Interpreter if 1, or Dynamic Recompiler if 2 or more
R4300Emulator = 1
also after first start you may edit gles2n64.conf as follow:

Code: Select all

video stretch=1
for all other settings please find your own and fastest, there are a lot ;) feal free to share your fastest config files !

have fun

djbordie
Posts: 21
Joined: Tue Jun 03, 2014 9:31 pm
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: [GAMES/EMULATOR] Mupen64Plus N64 Emulator

Post by djbordie »

Followed everything to a T, however the executable wont start?
Tried both in terminal and gui.

installed the prerequisites.

Am I missing something? how can I diagnose?

AreaScout
Posts: 1455
Joined: Sun Jul 07, 2013 3:05 am
languages_spoken: german, english
ODROIDs: X2, U3, XU3, C2, HiFi Shield, XU4, XU4Q,
N1, Go, VU5A, Show2, CloudShell2,
H2, N2, VU7A, VuShell, Go2, C4
Has thanked: 71 times
Been thanked: 226 times
Contact:

Re: [GAMES/EMULATOR] Mupen64Plus N64 Emulator

Post by AreaScout »

Hi
djbordie wrote: however the executable wont start?
What do you mean exactly with 'wont start', Segfault or the screen stays just black ?

RG

djbordie
Posts: 21
Joined: Tue Jun 03, 2014 9:31 pm
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: [GAMES/EMULATOR] Mupen64Plus N64 Emulator

Post by djbordie »

shit, didnt see this response. Sorry m8

Not a Seg...not sure exactly what to call it.

I will try to get a sense of what im seeing tonight and post back.
thanks for the response.


Edit

Nothing at all. In gui or terminal. No response from executing any of the. Sh files in mupen dir

AreaScout
Posts: 1455
Joined: Sun Jul 07, 2013 3:05 am
languages_spoken: german, english
ODROIDs: X2, U3, XU3, C2, HiFi Shield, XU4, XU4Q,
N1, Go, VU5A, Show2, CloudShell2,
H2, N2, VU7A, VuShell, Go2, C4
Has thanked: 71 times
Been thanked: 226 times
Contact:

Re: [GAMES/EMULATOR] Mupen64Plus N64 Emulator

Post by AreaScout »

Ops, this time it's my bad, i didn't saw your EDIT

what image are you using to build mupen64plus ?
are there any builderrors you can post ?
what was your exact command you typed in to build and start mupen64plus ?
did you edit the config files ?

RG

LiquidAcid
Posts: 1094
Joined: Fri Oct 11, 2013 11:07 pm
languages_spoken: english
ODROIDs: X2
Has thanked: 0
Been thanked: 2 times
Contact:

Re: [GAMES/EMULATOR] Mupen64Plus N64 Emulator

Post by LiquidAcid »

Start the executable with strace, that should give you more hints.

v0ltumna
Posts: 69
Joined: Fri Jul 05, 2013 10:21 pm
languages_spoken: english, german
ODROIDs: U2, U3
Has thanked: 0
Been thanked: 0
Contact:

Re: [GAMES/EMULATOR] Mupen64Plus N64 Emulator

Post by v0ltumna »

I can confirm it works well on Meverics Gamestation image. Compiles and runs exactly like AreaScout described above. But I also tried to use it on an old system based on an image of Neagix before I changed to Meverics Gamestation. There I had some problems which I couldn't work out. I could compile everything, but had a runtime error afterwards.
@AreaScout:
Great work by the way :)
Did you try to get the Rice Plugin working? It compiles without problem, but gives only a black screen. Do you have any idea where that comes from? If I have the possibility to help I would be glad to do so.

User avatar
meveric
Posts: 11177
Joined: Mon Feb 25, 2013 2:41 pm
languages_spoken: german, english
ODROIDs: X2, U2, U3, XU-Lite, XU3, XU3-Lite, C1, XU4, C2, C1+, XU4Q, HC1, N1, Go, H2 (N4100), N2, H2 (J4105), GoA, C4
Has thanked: 49 times
Been thanked: 407 times
Contact:

Re: [GAMES/EMULATOR] Mupen64Plus N64 Emulator

Post by meveric »

AreaScout found a way to compile mupen64-libretro core and it will most likely be part of the next release of GameStation Turbo image. The libretro core offers a couple of graphics plugins, where rice and gln64 work the best.
Rice seems to be OpenGL ES1 and misses some light effects, backgrounds and fogs, but works generally very good, while gln64 seems to be OpenGL ES2 and offers these points.. but it has a lot more glitches and sometimes trouble to display graphics.

Anyway, rice is working and will be part of the retroarch core :)
Donate to support my work on the ODROID GameStation Turbo Image for U2/U3 XU3/XU4 X2 X C1 as well as many other releases.
Check out the Games and Emulators section to find some of my work or check the files in my repository to find the software i build for ODROIDs.
If you want to add my repository to your image read my HOWTO integrate my repo into your image.

AreaScout
Posts: 1455
Joined: Sun Jul 07, 2013 3:05 am
languages_spoken: german, english
ODROIDs: X2, U3, XU3, C2, HiFi Shield, XU4, XU4Q,
N1, Go, VU5A, Show2, CloudShell2,
H2, N2, VU7A, VuShell, Go2, C4
Has thanked: 71 times
Been thanked: 226 times
Contact:

Re: [GAMES/EMULATOR] Mupen64Plus N64 Emulator

Post by AreaScout »

@v0ltumna

Well yes, i got rice plugin working showing graphics but only with huge glitches, so the games are not playable, i think that's because i didn't use a recent version of rice, if you can get the latest rice version you are welcome to pull request it

Like meveric pointed out i found a way to get mupen64plus-libretro running on our boards, the rice/glide264/gles2n64 on libretro is heavily updated by the retroarch team members and rice works best @ the moment, i will open a thread here soon on how to compile it to get it working for all our arcade/console fans :)

Image

EDIT: i have to correct myself, gles2glide64 video plugin works best when it comes to graphic accuracy

RG

Holzhaus
Posts: 163
Joined: Sat Jan 31, 2015 3:12 am
languages_spoken: english, german
ODROIDs: C1 (running ArchLinux ARM)
Has thanked: 0
Been thanked: 0
Contact:

Re: [GAMES/EMULATOR] Mupen64Plus N64 Emulator

Post by Holzhaus »

Im getting segfaults in startup:

Code: Select all

GLES2N64 Plugin StartUp
UI-Console: using Video plugin: 'gles2n64' v0.0.5
UI-Console: using Audio plugin: 'Mupen64Plus SDL Audio Plugin' v2.0.0
Input Warning: missing config key 'C Button2 R' for controller 1 button 16
Input Warning: missing config key 'C Button2 L' for controller 1 button 17
Input Warning: missing config key 'C Button2 D' for controller 1 button 18
Input Warning: missing config key 'C Button2 U' for controller 1 button 19
Input Warning: missing config key 'C Button2 R' for controller 2 button 16
Input Warning: missing config key 'C Button2 L' for controller 2 button 17
Input Warning: missing config key 'C Button2 D' for controller 2 button 18
Input Warning: missing config key 'C Button2 U' for controller 2 button 19
UI-Console: using Input plugin: 'Mupen64Plus SDL Input Plugin' v2.0.0
UI-Console: using RSP plugin: 'Hacktarux/Azimer High-Level Emulation RSP Plugin' v2.0.0
InitateGFX
[gles2N64]: Couldn't open config file '(null)' for reading: Bad address
[gles2N64]: Attempting to write new Config
[1]    21243 segmentation fault (core dumped)

AreaScout
Posts: 1455
Joined: Sun Jul 07, 2013 3:05 am
languages_spoken: german, english
ODROIDs: X2, U3, XU3, C2, HiFi Shield, XU4, XU4Q,
N1, Go, VU5A, Show2, CloudShell2,
H2, N2, VU7A, VuShell, Go2, C4
Has thanked: 71 times
Been thanked: 226 times
Contact:

Re: [GAMES/EMULATOR] Mupen64Plus N64 Emulator

Post by AreaScout »

@Holzhaus

The Guide is a little bit outdated, there was a lot of progress on mainline muppen64plus, please follow v0ltumna's guide for fullspeed N64 Emulation

http://forum.odroid.com/viewtopic.php?f ... 146#p72290

RG

Post Reply

Return to “Games and Emulators”

Who is online

Users browsing this forum: No registered users and 8 guests