Kodi Community Forum
[RELEASE] Rom Collection Browser - Browse and launch emulator game ROMs - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+---- Forum: Game Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=291)
+---- Thread: [RELEASE] Rom Collection Browser - Browse and launch emulator game ROMs (/showthread.php?tid=70115)



- bmfrosty - 2010-08-10

loktar Wrote:i have got it work here, im using -ad oss in zsnes and using useemusolo false. sound is working im gona test with other games and emus.

Never got it to work with OSS. The other wrinkle that I may have hit was that I was doing sound over HDMI. There really should be a way to mux SDL at a system level, but I have no idea what it is.


- bmfrosty - 2010-08-10

Pulseaudio may also be a way to do this, but I think that XBMC would have to support Pulseaudio.

EDIT:

XBMC does support Pulseaudio!

It might be as easy as starting Pulseaudio before XBMC and then configuring from there.

http://www.pulseaudio.org/wiki/PerfectSetup#ThirdPartyApplications

I wonder if Luigi has plans to pass Live audio through Pulse in a future release. Someone want to ask?


- spiff - 2010-08-10

which we have supported for atleast 2 years.


- Flomaster - 2010-08-10

im running Freaks live cd and I have the newest version of RCB its jot a joystick picture on it. when I click on the addon to open it I get an error script.Games.Rom.Collection.Browser failed to open.

im at work now and only have SSH via putty to my HTPC not sure how I can pull my log and try and find out what the log says about the error.

-=Jason=-


- bmfrosty - 2010-08-10

spiff Wrote:which we have supported for atleast 2 years.

Yes. I saw that when I searched google for pulseaudio xbmc. I hadn't been keeping track though as I don't usually spend time thinking about how audio works in linux. I'm still not entirely sure how everything stacks up, but I think that Pulse sits on top of ALSA and then acts as a middle layer between applications and the other APIs that are closer to the metal.

Would you be interested in helping work out how to make this work with Dharma, Live, and Pulseaudio?

-Ben
(used to play back mp3s at the command line with mpg123 - at the time there was only OSS)


- bmfrosty - 2010-08-10

Flomaster Wrote:im running Freaks live cd and I have the newest version of RCB its jot a joystick picture on it. when I click on the addon to open it I get an error script.Games.Rom.Collection.Browser failed to open.

im at work now and only have SSH via putty to my HTPC not sure how I can pull my log and try and find out what the log says about the error.

-=Jason=-

tail -f ~/.xbmc/temp/xbmc.log


- AbbieD - 2010-08-11

I have Ubuntu 10.04 and the latest XBMC build.

When I try to run RCB from the XBMC Programs menu, a few seconds pass before a popup appears on the screen, saying "Script failed! : script.games.rom.collection.browser"

This is what comes up on xbmc.log...

[HTML]INFO: -->Python script returned the following error<--
ERROR: Error Type: exceptions.AttributeError
ERROR: Error Contents: 'module' object has no attribute 'Language'
ERROR: Traceback (most recent call last):
File "/home/userxbmc/.xbmc/addons/script.games.rom.collection.browser/default.py", line 39, in ?
import gui
File "/home/userxbmc/.xbmc/addons/script.games.rom.collection.browser/resources/lib/gui.py", line 13, in ?
__language__ = xbmc.Language( os.getcwd() ).getLocalizedString
AttributeError: 'module' object has no attribute 'Language'
INFO: -->End of Python script error report<--[/HTML]


- malte - 2010-08-12

Very strange.

You can delete this line completely (line 13 in gui.py: "__language__ = xbmc.Language( os.getcwd() ).getLocalizedString").

But I am wondering how you got there. This line should be commented (with a leading #) in Version 0.5.4 and it is not present in version 0.6.0.


- PinkFlojd - 2010-08-12

When installing the first time. Can't you just tell the user to put the folder Testdata - folder directly into "C:" and change the standard paths?

Im trying Rom Collection out before getting my new Htpc, but I don't think I have the energy to go through the installation again...


- malte - 2010-08-12

This will fit for a very little number of users. Anyway, whatever you want to do with RCB after installing the testdata, you have to change the romPath in the config file. So it is not a bad idea to let the user do this at the beginning.

I have seen in your other thread that you had some trouble with setting up this script because documentation was not up to date as you installed it. This should not happen when you do it a second time. All you have to do now is install RCB, unzip testdata and replace PathToTestData with your actual path. Not too much energy neededSmile

This script is still under development. I know, configuration is a pain atm but there are a lot of other things that I wanted to fix before I start reworking the config. This will be my topic for the weeks to come. So maybe you can try it again later if you like.


- bmfrosty - 2010-08-12

I love the idea of doing a library mode for Roms, but until we have a scraper that delivers descriptions, screenshots, and boxarts, a file mode to fall back on may make sense.

Maybe split config.xml into consoles and sources. In consoles define command lines to start each type of game - ask at install whether to use Windows, Linux, Live, or OS-X defaults - and then add sources that tie a directory to a console type.


- Flomaster - 2010-08-13

bmfrosty Wrote:tail -f ~/.xbmc/temp/xbmc.log

looks like I found my error, now to figure out how to get this mysterious pysqlite2 thing

-=Jason=-

Code:
20:26:35 T:2827770736 M:2961412096  NOTICE: -->Python Interpreter Initialized<--
20:26:35 T:2827770736 M:2961412096   DEBUG: Process - The source file to load is /home/xbmc/.xbmc/addons/script.games.rom.collection.browser/default.py
20:26:35 T:2827770736 M:2961412096   DEBUG: Process - Setting the Python path to /home/xbmc/.xbmc/addons/script.games.rom.collection.browser:/home/xbmc/.xbmc/addons/script.module.simplejson/lib:/usr/lib/xbmc/addons/script.module.pil/lib:/home/xbmc/.xbmc/addons/script.module.elementtree/lib:/usr/lib/xbmc/addons/script.module.pysqlite/lib:/usr/share/xbmc/system/python/python24.zip:/usr/share/xbmc/system/python/lib/python24.zip:/usr/share/xbmc/system/python/lib/python2.4/:/usr/share/xbmc/system/python/lib/python2.4/plat-linux2:/usr/share/xbmc/system/python/lib/python2.4/lib-tk:/usr/share/xbmc/system/python/lib/python2.4/lib-dynload
20:26:35 T:2827770736 M:2961412096   DEBUG: Process - Entering source directory /home/xbmc/.xbmc/addons/script.games.rom.collection.browser
20:26:35 T:2827770736 M:2960650240   DEBUG: xbp_dlopen loading python lib /usr/share/xbmc/system/python/python24.zip/strop.so. flags: 2
20:26:35 T:2827770736 M:2960650240   DEBUG: Loading: /home/xbmc/.xbmc/temp/strop.so
20:26:35 T:2827770736 M:2960650240   DEBUG: RegisterExtensionLib, adding strop.so (0xb952c40)
20:26:35 T:2827770736 M:2960650240   DEBUG: xbp_dlsym - load symbol initstrop
20:26:35 T:2827770736 M:2960396288   DEBUG: xbp_dlopen loading python lib /usr/share/xbmc/system/python/python24.zip/termios.so. flags: 2
20:26:35 T:2827770736 M:2960396288   DEBUG: Loading: /home/xbmc/.xbmc/temp/termios.so
20:26:35 T:2827770736 M:2960396288   DEBUG: RegisterExtensionLib, adding termios.so (0xaaa2f600)
20:26:35 T:2827770736 M:2960396288   DEBUG: xbp_dlsym - load symbol inittermios
20:26:35 T:2827770736 M:2960396288   DEBUG: xbp_dlopen loading python lib /usr/share/xbmc/system/python/python24.zip/time.so. flags: 2
20:26:35 T:2827770736 M:2960396288   DEBUG: Loading: /home/xbmc/.xbmc/temp/time.so
20:26:35 T:2827770736 M:2960142336   DEBUG: RegisterExtensionLib, adding time.so (0xaaabdde0)
20:26:35 T:2827770736 M:2960142336   DEBUG: xbp_dlsym - load symbol inittime
20:26:36 T:2827770736 M:2958864384    INFO: -->Python script returned the following error<--
20:26:36 T:2827770736 M:2958864384   ERROR: Error Type: exceptions.ImportError
20:26:36 T:2827770736 M:2958864384   ERROR: Error Contents: No module named pysqlite2
20:26:36 T:2827770736 M:2958864384   ERROR: Traceback (most recent call last):
                                              File "/home/xbmc/.xbmc/addons/script.games.rom.collection.browser/default.py", line 30, in ?
                                                import gui
                                              File "/home/xbmc/.xbmc/addons/script.games.rom.collection.browser/resources/lib/gui.py", line 7, in ?
                                                from pysqlite2 import dbapi2 as sqlite
                                            ImportError: No module named pysqlite2
20:26:36 T:2827770736 M:2958864384    INFO: -->End of Python script error report<--



- malte - 2010-08-13

@flomaster:
I am quite sure it is this one:

http://code.google.com/p/romcollectionbrowser/wiki/Main?ts=1281680079&updated=Main#Dharma_(RCB_0.5.3)


@bmfrosty:
Its on my list. I already got an example from VictorV how to do a file mode but had no time to check it in detail. Always moved to the next versionSmile

I am planning a lot of configuration changes for 0.7.x (or later) but I am not yet sure what way to go. Any input is welcome and maybe I will discuss my ideas here before I start implementation.

Some early thoughts (not all will be done in one version I think):
- File mode with one fixed nfo-format and one image
- Move some (or all?) configurations to XBMC settings and make a settings page
- Scraper


- Flomaster - 2010-08-13

malte I got the library deb file and ran a sudo dpkg -i package.deb

not sure what to do next im a n00b when it comes to this kind of stuff

-=Jason=-


- malte - 2010-08-13

Oh, sorry. Did not notice that it is a deb package, thought it was a zip or gz. Another user gave me this link and I did not test this myselfSmile

I think after installation you should find these files on your PC:
Code:
/usr/lib/python2.4/site-packages/pysqlite2/_sqlite.so
/usr/lib/python2.5/site-packages/pysqlite2/_sqlite.so
/usr/share/doc-base/python-pysqlite2
/usr/share/doc/python-pysqlite2/README.Debian
/usr/share/doc/python-pysqlite2/changelog.Debian.gz
/usr/share/doc/python-pysqlite2/copyright
/usr/share/doc/python-pysqlite2/default.css
/usr/share/doc/python-pysqlite2/docutils.css
/usr/share/doc/python-pysqlite2/silvercity.css
/usr/share/doc/python-pysqlite2/usage-guide.html
/usr/share/doc/python-pysqlite2/usage-guide.txt.gz
/usr/share/pyshared-data/python-pysqlite2
/usr/share/pyshared/pysqlite-2.4.1.egg-info
/usr/share/pyshared/pysqlite2/__init__.py
/usr/share/pyshared/pysqlite2/dbapi2.py

You will need the "__init__.py", "dbapi2.py" and the "_sqlite.so" (from the python2.4 path).

I have bundled the needed libraries in an extra installer now because every linux user has the same problem with pysqlite atm: http://romcollectionbrowser.googlecode.com/files/platform_libraries.zip.

I hope it is ok to distribute it this way.