Kodi Community Forum
Integrated Video Game Emulators - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Kodi Application (https://forum.kodi.tv/forumdisplay.php?fid=93)
+---- Forum: RetroPlayer Development (https://forum.kodi.tv/forumdisplay.php?fid=194)
+---- Thread: Integrated Video Game Emulators (/showthread.php?tid=146711)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44


RE: Integrated Video Game Emulators - N3MIS15 - 2013-02-20

I compiled new build and tried snes and nes roms. First i tried with snes9x and it the log showed ELF ERROR (I think it was because my install is 32bit)
So I tried my compiled .so and it crashed.
Tried bSNES with my own compiled .so, crashed.

Then I installed NEStopia addon, replaced the .so and rebooted. XBMC crahsed on boot.

snes9x crash log: http://www.xbmclogs.com/show.php?id=1040
bSNES crash log: http://www.xbmclogs.com/show.php?id=1041
NEStopia crash log: http://www.xbmclogs.com/show.php?id=1042

I did have bSNES not crashing at 1 point, but I only got a black screen. Will do more testing when I have time.


RE: Integrated Video Game Emulators - drivesoslow - 2013-02-20

(2013-02-20, 06:01)garbear Wrote: Feed me debug logs!

There is a link to one in my post

(2013-02-20, 05:13)BLKMGK Wrote: I still think I'm off in the weeds. I am trying to run SNES ROMs from the file manager - no go. Is this even the correct way to run them? I have gone through the add-on repo (libretro) and added at least two emulators that should respond to SMC files but no-go. I have at least two loaded right now, should I stick to only one? I'm not running RCB at all currently. I guess I just get the sense that despite having compiled I may still have things wrong in my attempts to get things rolling.

Certainly willing to dump logs and turn on debug but I think I need more info on basics before I can be much help!

When it comes to MAME - I'm willing to wait. Lots of work to be done it seems and while I love the old arcade games it seems like that portion could take awhile and not be as high a priority. Plenty of other neat older console stuff to fool around with for sure. Hrm, wonder if we'll ever see an XBOX1 emu, I have PILES of those games around to say the least! Yard sales rock Smile

Appreciate the updates and assistance! if I can get things running I hope to be able to give feedback and provide logs of things you want us to try Smile

What happens when you try to run the emulators?


RE: Integrated Video Game Emulators - BLKMGK - 2013-02-20

Nothing happens when I open a file that should trigger the emulator. I cannot (?) run the emulator standalone. I add the add-ons from the system\add-on menu, then restart XBMC, then goto the file manager in XBMC, navigate to ROMs of various types (via an SMB share), none run. Screen doesn't even flash. As I said, I feel like I'm doing something wrong in my approach - is this how to start ROMs? If that's the way then sure I'll fire up debug and try this again tonight. Some of the ROM are zipped, one of them isn't - same response from both.


RE: Integrated Video Game Emulators - garbear - 2013-02-20

It works for me. Can you send me a debug log please? If you didn't configured with --enabled-debug you can go to settings -> system -> debug to enable debug logging. Thanks.


RE: Integrated Video Game Emulators - drivesoslow - 2013-02-20

For myself I had to compile my own libretro and then after downloading the emulator in XBMC I had to replace the .so file in the .addons subfolder with the one I had compiled


RE: Integrated Video Game Emulators - drivesoslow - 2013-02-20

Here is a better debug log for my joystick issues: http://www.xbmclogs.com/show.php?id=1049

Here is my joystick.Logitech.RumblePad.2.xml from my keymap folder: http://www.xbmclogs.com/show.php?id=1050

What is strange is that you can see all the buttons being pushed but the only one that does anything is button 7 which is set to Stop.

Code:
10:36:29 T:3037759232   DEBUG: Joystick 0 button 4 Up
10:36:29 T:3037759232   DEBUG: Joystick 0 button 4 Down
10:36:29 T:3037759232   DEBUG: Joystick 0 button 4 Up
10:36:29 T:2958031680   DEBUG: NEWADDON PythonCallbackHandler construction with PyThreadState 0xb0505490
10:36:31 T:2970458944   DEBUG: Previous line repeats 3 times.
10:36:31 T:2970458944   DEBUG: CSoftAEStream::GetFrame - Underrun
10:36:31 T:2958031680   DEBUG: NEWADDON PythonCallbackHandler construction with PyThreadState 0xb0505490
10:36:33 T:2970458944   DEBUG: Previous line repeats 4 times.
10:36:33 T:2970458944   DEBUG: CSoftAEStream::GetFrame - Underrun
10:36:33 T:2958031680   DEBUG: NEWADDON PythonCallbackHandler construction with PyThreadState 0xb0505490
10:36:36 T:3037759232   DEBUG: Previous line repeats 4 times.
10:36:36 T:3037759232   DEBUG: Joystick 0 button 7 Down
10:36:36 T:3037759232   DEBUG: RetroPlayer: Closing file
10:36:36 T:2949638976   DEBUG: Thread RetroPlayerVideo 2949638976 terminating



RE: Integrated Video Game Emulators - garbear - 2013-02-20

found the joystick problem Smile i'll fix it later today, if you could test later that'd be great


RE: Integrated Video Game Emulators - drivesoslow - 2013-02-20

(2013-02-20, 21:28)garbear Wrote: found the joystick problem Smile i'll fix it later today, if you could test later that'd be great

Absolutely. Once you've made the commit let me know and I'll pull and recompile.

BTW one of my biggest complaints about all other ways of running emulators through XBMC is that there isn't a super clean way to quit them. I love that with libretro I can just hit the normal Stop button on my remote and they stop. This is a feature I have been desiring for so long.


RE: Integrated Video Game Emulators - garbear - 2013-02-20

./configure --disable-sdl might fix the problem, it looks like I only implemented joysticks for linux events, not sdl window events


RE: Integrated Video Game Emulators - drivesoslow - 2013-02-20

(2013-02-20, 21:50)garbear Wrote: ./configure --disable-sdl might fix the problem, it looks like I only implemented joysticks for linux events, not sdl window events

This fails to compile. I guess a bug slipped in to XBMC recently: http://forum.xbmc.org/showthread.php?tid=155124&pid=1327090


RE: Integrated Video Game Emulators - Majin - 2013-02-20

Everything is working great for me so far - here's a debug log of:
Starting XBMC
Browsing to a ROM via RBC
Selecting ROM
Choosing Emulator to install via JIT
Running game
Gamepad button presses
Quitting game
Running another game without needing to select an emulator (using previously installed one)
Gamepad button presses
Quitting game
Quit XBMC

The second game (fighting) doesn't seem to reliably pick up fast quarter rotations on the D-Pad for combos etc (might just be me being inaccurate)

http://pastebin.com/qpsA2H3J

Hope this helps!

The core thing missing really is save states - RCB integration is great in terms of library browsing and launching.
Great work guys!


RE: Integrated Video Game Emulators - garbear - 2013-02-20

Thanks Majin, I saw some input events I'll have to check out. Speaking of input - drivesoslow - sdl window events should be implemented now (untested, but i'm feeling lucky


RE: Integrated Video Game Emulators - drivesoslow - 2013-02-21

Cool I'll rebuild and test tonight.

BTW is there support for multiple joysticks or just one currently?


RE: Integrated Video Game Emulators - drivesoslow - 2013-02-21

I pulled and rebuilt with no change. The log files do not reflect anything different either.


RE: Integrated Video Game Emulators - BLKMGK - 2013-02-21

Pulled, compiled, installed, turned on Debug. Getting something slightly different now - when I navigate to the .SMC file and click on it a dialog pops up asking me to install an emulator, I say okay, select one I know I already installed, and then... nothing. If I select one I haven't installed it prompts me to allow a download, downloads, and still won't launch anything. If I cycle XBMC no difference except now it knows not to ask to download the new emulator...

Here's the pastebin log http://pastebin.com/uhx7Feq2