maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Games (https://talk.maemo.org/forumdisplay.php?f=12)
-   -   [Announce] Nintendo 64 Emulator for Harmattan/Sailfish (https://talk.maemo.org/showthread.php?t=89216)

liar 2015-01-10 20:22

Re: [Announce] Nintendo 64 Emulator for Harmattan/Sailfish
 
i have added a package for mupen64plus on the Jolla Phone on the first page/post

n950 2015-02-09 11:05

Re: [Announce] Nintendo 64 Emulator for Harmattan/Sailfish
 
Hi,

I have tested new beta .so files from Liar,
He is very nice. Work good.

http://youtu.be/BOxpc25t9v0

Rice video plugin too:

http://youtu.be/7SOK-rMzc5w
http://youtu.be/pHhourvjVnY

Thanks to him for his good work.

n950 2015-02-13 11:09

Re: [Announce] Nintendo 64 Emulator for Harmattan/Sailfish
 
5 Attachment(s)
Here some pictures with hires textures activated.

Look nice no?

n950 2015-02-13 11:13

Re: [Announce] Nintendo 64 Emulator for Harmattan/Sailfish
 
5 Attachment(s)
Rice video plugin in hires texture :)

n950 2015-02-13 11:18

Re: [Announce] Nintendo 64 Emulator for Harmattan/Sailfish
 
5 Attachment(s)
With and without hires texture.
Always Rice plugin.

n950 2015-02-13 11:22

Re: [Announce] Nintendo 64 Emulator for Harmattan/Sailfish
 
5 Attachment(s)
Some various...

foufoutos 2015-02-13 15:26

Re: [Announce] Nintendo 64 Emulator for Harmattan/Sailfish
 
error could no open rom file '/home/nemo/downloads/supermario64.n64 for reading

liar 2015-02-16 12:20

Re: [Announce] Nintendo 64 Emulator for Harmattan/Sailfish
 
Quote:

Originally Posted by foufoutos (Post 1460653)
error could no open rom file '/home/nemo/downloads/supermario64.n64 for reading

can you post the full log? have you checked the file permissions? and have you checked for typos in the filename? (a case sensitive filename is required)

foufoutos 2015-02-16 15:26

Re: [Announce] Nintendo 64 Emulator for Harmattan/Sailfish
 
i found the prob i type mupen64plus ~/Downloads/supermario64.n64
but the solve is mupen64plus ~/Downloads/''supermario64.n64''

nieldk 2015-02-16 15:55

Re: [Announce] Nintendo 64 Emulator for Harmattan/Sailfish
 
Quote:

Originally Posted by foufoutos (Post 1460943)
i found the prob i type mupen64plus ~/Downloads/supermario64.n64
but the solve is mupen64plus ~/Downloads/''supermario64.n64''

No, you didnt ;)

In your firs. (Failed) attempt you supplied the path

/home/nemo/downloads/supermario64.n64
(Or, perhaps, ~/downloads/supermario64.n64, which equals)

In your successfull, you supplied the path

~/Downloads/supermario64.n64

The qoutes around the filename doesnt matter, but the capital 'D' in Downloads does ;)

n950 2015-02-23 14:56

Re: [Announce] Nintendo 64 Emulator for Harmattan/Sailfish
 
3 Attachment(s)
Glide64mk2 plugin in test...

The Legend of Zelda OOT Djipi's Pack 2011 work only with Glide64 plugin ��

This time with my N9 prototype device ��

n950 2015-03-05 19:31

Re: [Announce] Nintendo 64 Emulator for Harmattan/Sailfish
 
2 Attachment(s)
Glide64mk2 plugin with Jolla ��

n950 2015-03-06 11:11

Re: [Announce] Nintendo 64 Emulator for Harmattan/Sailfish
 
5 Attachment(s)
I have noticed some graphics errors in games like,
Check screens,
- zelda MM intro compressed at bottom
- Mario 64 texts doesn't show good. It's compressed
- waiting for audio ressources in terminal what is that? For exemple when i start new game in OOT audio lags...

n950 2015-03-06 11:14

Re: [Announce] Nintendo 64 Emulator for Harmattan/Sailfish
 
3 Attachment(s)
Others screens

n950 2015-03-07 12:10

Re: [Announce] Nintendo 64 Emulator for Harmattan/Sailfish
 
5 Attachment(s)
Some news tested games,

n950 2015-03-07 12:13

Re: [Announce] Nintendo 64 Emulator for Harmattan/Sailfish
 
5 Attachment(s)
Banjo-Kazooie start very slow why?

liar 2015-05-01 09:43

Re: [Announce] Nintendo 64 Emulator for Harmattan/Sailfish
 
i've been able to turn on more optimation flags (-flto) for some of the mupen64plus modules on the jolla phone, i will release this sometime this weekend
maybe this yields (slight) speed improvements

liar 2015-05-03 15:00

Re: [Announce] Nintendo 64 Emulator for Harmattan/Sailfish
 
i have updated the link for the jolla build in the first post.

liar 2015-05-07 14:13

Re: [Announce] Nintendo 64 Emulator for Harmattan/Sailfish
 
i've updated the rpm again, volume control using the system volume control works now :)
(this contains a fix which will be included in a later sailfish version, i will probably remove it again when sailfish includes the fix :))

HtheB 2015-05-07 14:17

Re: [Announce] Nintendo 64 Emulator for Harmattan/Sailfish
 
Quote:

Originally Posted by liar (Post 1469617)
i've updated the rpm again, volume control using the system volume control works now :)
(this contains a fix which will be included in a later sailfish version, i will probably remove it again when sailfish includes the fix :))

why not uploading to openrepos? :)

liar 2015-05-09 16:15

Re: [Announce] Nintendo 64 Emulator for Harmattan/Sailfish
 
Quote:

Originally Posted by HtheB (Post 1469618)
why not uploading to openrepos? :)

hm i can do that... but somebody has to give me a basic howto for that :D:D

coderus 2015-05-09 17:29

Re: [Announce] Nintendo 64 Emulator for Harmattan/Sailfish
 
Quote:

Originally Posted by liar (Post 1469778)
hm i can do that... but somebody has to give me a basic howto for that :D:D

create account and upload.

liar 2015-05-10 09:30

Re: [Announce] Nintendo 64 Emulator for Harmattan/Sailfish
 
Quote:

Originally Posted by coderus (Post 1469783)
create account and upload.

thats it? ok i will do that sometime, but i hope i can get it into the official store eventually

liar 2015-05-23 23:11

Re: [Announce] Nintendo 64 Emulator for Harmattan/Sailfish
 
https://www.youtube.com/watch?v=lX2P...ature=youtu.be
new graphics plugin, stay tuned!

HtheB 2015-05-23 23:35

Re: [Announce] Nintendo 64 Emulator for Harmattan/Sailfish
 
Quote:

Originally Posted by liar (Post 1471358)

Nice! Too bad for the lag.... :(

Will you add an option to get rid of the button overlay for TOHKBD users?

liar 2015-05-24 14:44

Re: [Announce] Nintendo 64 Emulator for Harmattan/Sailfish
 
Quote:

Originally Posted by HtheB (Post 1471361)
Nice! Too bad for the lag.... :(

Will you add an option to get rid of the button overlay for TOHKBD users?

you can switch to the sdl plugin for use with TOHKBD there will be no on screen buttons.
also there is an option to disable the touch screen buttons already implemented (its the black button top left)

n950 2015-05-24 22:16

Re: [Announce] Nintendo 64 Emulator for Harmattan/Sailfish
 
Very Nice work for Jolla device.
But the problem is to play with PS3 sixaxis controller on Jolla but we need same file as Harmattan to connect controller to jolla.
Anybody can compile a rpm file?

nb. I hope a lot you can compile working same new graphic plugin as jolla please for HARMATTAN :) it's a dream for me.

liar 2015-05-25 07:47

Re: [Announce] Nintendo 64 Emulator for Harmattan/Sailfish
 
Quote:

Originally Posted by n950 (Post 1471438)
Very Nice work for Jolla device.
But the problem is to play with PS3 sixaxis controller on Jolla but we need same file as Harmattan to connect controller to jolla.
Anybody can compile a rpm file?

nb. I hope a lot you can compile working same new graphic plugin as jolla please for HARMATTAN :) it's a dream for me.

it should be possible to play with your ps3 controller, just change the input plugin from mupen64plus-input-sdltouch.so to mupen64plus-input-sdl.so in mupen64plus.cfg

n950 2015-05-25 09:06

Re: [Announce] Nintendo 64 Emulator for Harmattan/Sailfish
 
Quote:

Originally Posted by liar (Post 1471454)
it should be possible to play with your ps3 controller, just change the input plugin from mupen64plus-input-sdltouch.so to mupen64plus-input-sdl.so in mupen64plus.cfg

The problem is to connect the PS3 controller to Jolla.

liar 2015-05-25 11:25

Re: [Announce] Nintendo 64 Emulator for Harmattan/Sailfish
 
Quote:

Originally Posted by n950 (Post 1471458)
The problem is to connect the PS3 controller to Jolla.

what is missing?

n950 2015-05-25 23:15

Re: [Announce] Nintendo 64 Emulator for Harmattan/Sailfish
 
Quote:

Originally Posted by liar (Post 1471467)
what is missing?

sixaxisd.rpm (sixaxis daemon)

like on harmattan terminal.

liar 2015-05-27 09:06

Re: [Announce] Nintendo 64 Emulator for Harmattan/Sailfish
 
is it open source? if yes can you link it?

n950 2015-05-27 09:42

Re: [Announce] Nintendo 64 Emulator for Harmattan/Sailfish
 
http://sourceforge.net/projects/pdax...ootloader/src/

http://talk.maemo.org/showthread.php...light=sixaxisd

n950 2015-05-29 12:07

Re: [Announce] Nintendo 64 Emulator for Harmattan/Sailfish
 
sixaxisd run now.
But we have another problems.
On harmattan i run these command before.

killall bluetoothd
/usr/sbin/hciconfig hci0 up
/usr/sbin/hciconfig hci0 lm master
/usr/sbin/hciconfig hci0 piscan


On Sailfish terminal this command make an error:

/usr/sbin/hciconfig hci0 up

Error is: can t init device hci0: operation not possible due to RF-kill (132)

How can i pass this command for exemple?

Thanks in advance.

nieldk 2015-05-29 12:57

Re: [Announce] Nintendo 64 Emulator for Harmattan/Sailfish
 
Quote:

Originally Posted by n950 (Post 1471833)
sixaxisd run now.
But we have another problems.
On harmattan i run these command before.

killall bluetoothd
/usr/sbin/hciconfig hci0 up
/usr/sbin/hciconfig hci0 lm master
/usr/sbin/hciconfig hci0 piscan


On Sailfish terminal this command make an error:

/usr/sbin/hciconfig hci0 up

Error is: can t init device hci0: operation not possible due to RF-kill (132)

How can i pass this command for exemple?

Thanks in advance.

$ devel-su
# pkcon install connman-tools
# /usr/lib/connman/tools/connmanctl enable bluetooth
# /usr/sbin/hciconfig hci0 up

V10lator 2015-06-30 22:47

Re: [Announce] Nintendo 64 Emulator for Harmattan/Sailfish
 
Quote:

Originally Posted by liar (Post 1469093)
i've been able to turn on more optimation flags (-flto) for some of the mupen64plus modules on the jolla phone, i will release this sometime this weekend
maybe this yields (slight) speed improvements

By just adding -flto you'll gain nothing. LTO needs the gold linker instead of bfd but I have no idea how to switch on SailfishOS (here's a how-to for gentoo: https://wiki.gentoo.org/wiki/Gold ). Also you have to add plugin support to the linker for LTO to work, so also add -fuse-linker-plugin. Last but not least you need to tell cc and the linker to use LTO, so your flags should look like this:
Code:

CFLAGS="-flto -fuse-linker-plugin"
CXXFLAGS="-flto -fuse-linker-plugin"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -flto -fuse-linker-plugin"

Now there's more to optimize than just LTO... This is how I compile almost everything on my desktop machine:
Code:

CFLAGS="-march=native -O2 -pipe -fno-ident -flto=3 -fuse-linker-plugin -ggdb"
CXXFLAGS="${CFLAGS}"
LDFLAGS="-Wl,-O1 -Wl,--as-needed ${CFLAGS}"

What do the flags say?
-march=native = Compile for the processor you're actually running at only.
-O2 = Level 2 optimization - Most sane optimization.
-pipe = Use pipes while compiling. Is a bit faster but needs more RAM (while compiling. Doesn't have any effect on the binarys).
-fno-ident = Don't save ident informatins in the binary. They are never used anyway, so save a bit of space.
-flto=3 = Use LTO. Use 3 threads at max for it. While 3 seems to be good for my desktop it also seems to be good for the Jolla phone as a rule of thumb is CPU cores + 1.
-ggdb = Add gdb debugging information. YOU DON'T WANT THIS!

-Wl,-O1 -Wl,--as-needed = more or less default linking flags. Don't ask me what exactly they do...

Now if you want to optimize even more try this:
Code:

CFLAGS="-march=native -O3 -pipe -fno-ident -flto=3 -fuse-linker-plugin -funroll-loops -ftree-vectorize -ffast-math"
CXXFLAGS="${CFLAGS}"
LDFLAGS="-Wl,-O1 -Wl,--as-needed ${CFLAGS}"

Flag explaination:
-O3 = Optimization level 3 (this is the maximum!) - might create bigger binarys. Might create unstable binarys. Binary might be slower than with -O2, so benchmark, benchmark, benchmark! ;)
-funroll-loops = Unroll a loop when the number of iterations are already known at compile time. From the GCC devs: This option makes code larger, and may or may not make it run faster. ... So again: Benchmark, benchmark, benchmark! ;)
-ftree-vectorize = I'm not sure what this does and if it does anything on arm at all. Anyway, it should help with the next:
-ffast-math = Faster but more unsave math operations. Use with caution!

More information about flags: https://gcc.gnu.org/onlinedocs/gcc-4...e-Options.html / https://wiki.gentoo.org/wiki/GCC_optimization

Last but not least don't forget to give that flags to all compiling stages (at least to ./configure, make and make install). At best export them before doing anything.

Hope that helps. :)

//EDIT: On a side note you might want to ship this within the rpm:
Code:

<?xml version="1.0" encoding="UTF-8"?>
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
  <mime-type type="application/x-n64-rom">
        <comment>Nintendo 64 ROM</comment>
        <magic priority="50">
                <match type="string" value="\x37\x80\x40\x12" offset="0" />
                <match type="string" value="\x80\x37\x12\x40" offset="0" />
        </magic>
  </mime-type>
</mime-info>

just place it to /usr/share/mime/packages/ and run
Code:

update-mime-database /usr/share/mime
in your %post

The magic numbers where taken from ROMs I had available. None of them is xdg-openable without this file. Anyhow, my file extensions for the ROMs are f*cked up, so while I'm pretty sure the first magic match is the v64 format I don't know what the second value is. That's one of the reason why I'm using magic numbers instead of file extensions, the other is that there's n64 and N64 and both are different nintendo 64 ROM formats: https://en.wikipedia.org/wiki/List_o...M_file_formats

//EDIT²: Also a small bug: While the app UI is sideways it doesn't tell that to the phone, so swipe from side / swipe from top are exchanged.

//EDIT³: Tested some games:
Banjo & Kazooie: Slideshow
Iggy's Reckin' Balls: Crash (well, in fact mupen64plus is still eating a bit CPU but doesn't do anything noticeable)
Zelda Ocarina of Time: Massive Z-fighting and lightning issues
Legend of Zelda 2 Majora's Mask: Same as Zelda Ocarina of Time + bad performance at the menue (in-game it gets better) + letterboxing issues (wrong color, wrong position)
Yoshis Story: Very bad button layout (Thumb above the character is not good)
Pilotwings 64: Massive rendering issues

General issues:
- Sometimes the image gets flipped by 90°
- Sometimes the image renders small and stretched
- Sometimes both happens at the same time

//EDIT⁴: Now that I think about it: For the Zelda games the wrong letterboxing color could be connected to the lightning issues and the wrong ltterboxing position to the z-fighting. It's just a shot into the blue but maybe worth investigating?

javispedro 2015-07-01 10:48

Re: [Announce] Nintendo 64 Emulator for Harmattan/Sailfish
 
Rather, just use -fno-fat-lto-objects to ensure that you're really using the results of LTO at link time. But LTO is almost useless on any gcc pre 4.9.1, and Jolla is on 4.7... most probably not even worth the effort.

nieldk 2015-07-01 12:38

Re: [Announce] Nintendo 64 Emulator for Harmattan/Sailfish
 
Quote:

Originally Posted by javispedro (Post 1475359)
Rather, just use -fno-fat-lto-objects to ensure that you're really using the results of LTO at link time. But LTO is almost useless on any gcc pre 4.9.1, and Jolla is on 4.7... most probably not even worth the effort.

Well, not exactly, but nevertheless ....

Code:

[nemo@Jolla ~]$ gcc --version
gcc (Linaro GCC 4.8-2014.01) 4.8.3 20140106 (Mer 4.8.3-1)
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


olympus 2015-07-03 15:31

Re: [Announce] Nintendo 64 Emulator for Harmattan/Sailfish
 
would it be possible to make this work with dirk's tohkbd on jolla? :)

liar 2015-07-06 17:14

Re: [Announce] Nintendo 64 Emulator for Harmattan/Sailfish
 
Quote:

Originally Posted by olympus (Post 1475636)
would it be possible to make this work with dirk's tohkbd on jolla? :)

i plan to fix the issues related to tohkbd, as soon as i can get to it :), the plugin mupen64plus-input-sdl supports keyboards (you can enable it in ~/.config/mupen64plus/mupen64plus.cfg) but there is at least one (reported) case where it doesn't fully work


All times are GMT. The time now is 13:53.

vBulletin® Version 3.8.8