[LINUX] Getting emuLauncer python script to work under XBMC for Linux
#31
Well I managed to work around the wminput problem. The error had to do with some python calls that I believe are for wminput plugins. More info here:
http://abstrakraft.org/cwiid/discussion/1/103

The workaround I'm using is to compile cwiid/wminput with the --without-python option. Now wminput start properly within xbmc.
Reply
#32
miribota Wrote:I haven't had any speed issues, just no sound... though I've been using Mednafen for my NES emulator more than fceu but they both have the sound issues. ZSNES doesn't have the sound issues that either of those do.

I'm hoping it's a device setting somewhere. I'll post any solutions if I find any.

I got sound working with fceu. The solution works both when I launch fceu from within xbmc (still runs very badly) and when my script kills xbmc before launching fceu (fceu runs well). Sound in the emulator didn't work before in both cases.

It involves the combination of two workarounds:

The first step is to wrap the call to fceu in "aoss". Seems that this will cause audio it to go through the alsa software mixer instead of trying to directly access the only hardware playback channel, which I guess is busy when xbmc is involved. This is where I found the solution:
http://episteme.arstechnica.com/eve/foru...3004384831

I didn't have to do anything with asound.conf or .asoundrc to get it working, just using aoss was enough.

The second step was to add this really ugly hack of having mplayer always paused in the background. From this thread:
http://forum.xbmc.org/showthread.php?tid=34635&page=5

Rather then deal with python, I simply have this command in my startup scripts:
mplayer -nolirc -ao alsa -input file=/home/chris/scripts/mplayer.cmd /usr/share/xbmc/skin/Project\ Mayhem\ III/sounds/back.wav&

Where mplayer.cmd just contains "pause".

Let me know if that works for you. I'm hoping to clean up all the hacks I've done for emulator launching and post all the info together at some point.
Reply
#33
Wink 
csbook Wrote:I also find that fceu runs WAY slower from within xbmc and is pretty much unplayable. I don't see why it would be so slow because although my machine isn't fast, its just an NES emulator.
I don't want to take this off-topic but FYI; XBMC, being SDL (Simple DirectMedia Layer) based application on Linux, have been known to conflict with other SDL based applications.

Best would be to start new separate thread here in the forums for your issue as it is probably not likely related to the python scripting.
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
Reply
#34
feanorknd Wrote:sorry.. fixed... nobody talked about modifying default.py (added by ajje).. finally fixed doing:



well... my "engine" does not run at all.. just simply kill out XBMC... I reffer to:



It is really a pain on the ass to run emulators through XBMC... nobody found a good way to do it... also there is no possibility to run them on fullscreen as I can read in other post.

I am considering programming my remote to shutdown XBMC and run by example gxmame... I can navigate and run games using my PSX Pad...

I Use xmame.x11 with "Launcher" plugin and it works fine.
Read more on "Launcher" here:
http://forum.xbmc.org/showthread.php?tid=35739
Reply
#35
Completely yummy!! XD

Thanks so much for the advise!

leo2 Wrote:I Use xmame.x11 with "Launcher" plugin and it works fine.
Read more on "Launcher" here:
http://forum.xbmc.org/showthread.php?tid=35739
Reply
#36
Thumbs Up 
Sure I am a bit lazy, but.... may you upload to megaupload or simillar a tar.gz with your laucher dir just to check the way you did it??

Thanks! Rofl

leo2 Wrote:I Use xmame.x11 with "Launcher" plugin and it works fine.
Read more on "Launcher" here:
http://forum.xbmc.org/showthread.php?tid=35739
Reply
#37
feanorknd Wrote:Sure I am a bit lazy, but.... may you upload to megaupload or simillar a tar.gz with your laucher dir just to check the way you did it??

Thanks! Rofl
here's my launchers.xml file
Code:
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<launchers>
    <launcher>
        <name>Mame</name>
        <application>/home/mc/mame</application>
        <args></args>
        <rompath>/media/Media/Games/Mame/Roms/</rompath>
        <romext>zip</romext>
        <thumb>/home/mc/.xbmc/userdata/Thumbnails//Mame.jpg</thumb>
        <wait>true</wait>
        <roms>
            <rom>
                <name>Qbert</name>
                <filename>"/media/Media/Games/Mame/Roms/qbert.zip"</filename>
                <thumb>/home/mc/.xbmc/userdata/Thumbnails//qbert.png</thumb>
            </rom>
            <rom>
                <name>Aladdin</name>
                <filename>/media/Media/Games/Mame/Roms/aladbl.zip</filename>
                <thumb>/home/mc/.xbmc/userdata/Thumbnails//Aladdin.gif</thumb>
            </rom>
            <rom>
                <name>Puyo</name>
                <filename>"/media/Media/Games/Mame/Roms/puyo.zip"</filename>
                <thumb>/home/mc/.xbmc/userdata/Thumbnails//puyo_1.png</thumb>
            </rom>
            <rom>
                <name>Pbobble2</name>
                <filename>"/media/Media/Games/Mame/Roms/pbobble2.zip"</filename>
                <thumb>/home/mc/.xbmc/userdata/Thumbnails//pbobble2.png</thumb>
            </rom>
            <rom>
                <name>Pbobble3</name>
                <filename>"/media/Media/Games/Mame/Roms/pbobble3.zip"</filename>
                <thumb>/home/mc/.xbmc/userdata/Thumbnails//pbobble3.png</thumb>
            </rom>
            <rom>
                <name>Pbobble4</name>
                <filename>"/media/Media/Games/Mame/Roms/pbobble4.zip"</filename>
                <thumb>/home/mc/.xbmc/userdata/Thumbnails//pbobble4.png</thumb>
            </rom>
            <rom>
                <name>Simpsons</name>
                <filename>"/media/Media/Games/Mame/Roms/simpsons.zip"</filename>
                <thumb>/home/mc/.xbmc/userdata/Thumbnails//simpsons_2.png</thumb>
            </rom>
            <rom>
                <name>Pang</name>
                <filename>"/media/Media/Games/Mame/Roms/pang.zip"</filename>
                <thumb>/home/mc/.xbmc/userdata/Thumbnails//pang_1.png</thumb>
            </rom>
            <rom>
                <name>Mk2</name>
                <filename>"/media/Media/Games/Mame/Roms/mk2.zip"</filename>
                <thumb>/home/mc/.xbmc/userdata/Thumbnails//mk2.png</thumb>
            </rom>
            <rom>
                <name>Pbobble</name>
                <filename>"/media/Media/Games/Mame/Roms/pbobble.zip"</filename>
                <thumb>/home/mc/.xbmc/userdata/Thumbnails//pbobble.png</thumb>
            </rom>
            <rom>
                <name>Qbertqub</name>
                <filename>"/media/Media/Games/Mame/Roms/qbertqub.zip"</filename>
                <thumb>/home/mc/.xbmc/userdata/Thumbnails//qbertqub.png</thumb>
            </rom>
            <rom>
                <name>Tws96</name>
                <filename>"/media/Media/Games/Mame/Roms/tws96.zip"</filename>
                <thumb>/home/mc/.xbmc/userdata/Thumbnails//tws96_1.png</thumb>
            </rom>
        </roms>
    </launcher>
    <launcher>
        <name>Firefox</name>
        <application>/home/mc/Root/usr/bin/firefox</application>
        <args></args>
        <rompath></rompath>
        <romext></romext>
        <thumb>/home/mc/.xbmc/userdata/Thumbnails//FireFox_Sea-1600.jpg</thumb>
        <wait>true</wait>
        <roms>
        </roms>
    </launcher>

here is /home/mc/mame file
Code:
xmame -gm -skip_gameinfo -jdev /dev/input/js -jt 1 -rp /media/Media/Games/Mame/Roms/ -video-mode 1 -fullscreen $1

I hope it helps.
Reply
#38
leo2 Wrote:I hope it helps.

Sure it will........... thanks thanks thanks so much for sharing your exp... XDDDD
Reply

Logout Mark Read Team Forum Stats Members Help
[LINUX] Getting emuLauncer python script to work under XBMC for Linux0