![]() |
Advanced MAME Launcher - MAME frontend for Kodi - 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: Advanced MAME Launcher - MAME frontend for Kodi (/showthread.php?tid=304186) |
RE: Advanced MAME Launcher - MAME frontend for Kodi - Wintermute0110 - 2019-02-11 (2019-02-09, 21:51)Dax9 Wrote: Since upgrading to Kodi 18 and MAME 0.206, I'm getting errors when building databases. So I uninstalled AML, deleted the AML plugin data directory, and reinstalled AML 0.9.8 from the Kodi repo. But I still get the errors. Problem fixed in the development version. If interested, here is the technical info about the problem. I have updated the installation instructions of the dev version in Github. RE: Advanced MAME Launcher - MAME frontend for Kodi - Dax9 - 2019-02-12 Thanks for the quick fix, Wintermute. When I get the chance, I'll install the AML dev version and test with MAME 0.206. RE: Advanced MAME Launcher - MAME frontend for Kodi - Dax9 - 2019-02-15 I tested AML dev with MAME 0.206. In Setup plugin, Build all databases and Scan everything and build plots completed successfully. In Step by step, all functions completed successfully except for Build MAME databases which crashes with this error:
I have a suggestion: rename the "Machines by Score" filter to "Machines by Rating", to avoid confusing with scores in games. Thanks for adding the MAME INI/DAT path setting. This saves a lot of time when configuring the add-on. RE: Advanced MAME Launcher - MAME frontend for Kodi - Wintermute0110 - 2019-02-26 (2019-02-15, 21:37)Dax9 Wrote: I tested AML dev with MAME 0.206. In Setup plugin, Build all databases and Scan everything and build plots completed successfully. All these issues should be fixed now. I did quite a lot of refactoring of the code in the context menu "Setup plugin". Also, I have improved the PDF manual reader (images are extracted once). There are two issues pending: 1) due to non-ASCII characters in some SL ROMs AEL crashes. 2) 3 machines fail to audit due to the location of the sample ZIP files. For a detailed list of all the changes please have a look at the changelog. The code in master should be pretty close to the final 0.9.9 release. I did a lot of testing but some more testing won't hurt before I upload to the Kodi repo ![]() RE: Advanced MAME Launcher - MAME frontend for Kodi - Dax9 - 2019-03-01 I did a clean install of the latest AML dev build and tested it with MAME 0.207. I consistently get this error when trying to build the MAME main database:
I've tried setting the Samples 1 and Samples 2 paths to the same folder and different folders, but the error persists. I guess this is related to issue #2. I normally keep the zipped sample files in MAME's default samples folder. Does AML now require the zipped samples to be in a separate folder? RE: Advanced MAME Launcher - MAME frontend for Kodi - Dax9 - 2019-03-14 I made some edits to mame.py to stop the crashes caused by references to the removed samples_path. I also fixed a couple typos in main.py that caused crashes when browsing ROMs using Main and Binary filters with the MAME database cache enabled. The changed lines are posted here: https://pastebin.com/7kWZy9t7 This is a quick & dirty fix and I'm no Python programmer, so please pardon my crappy code ![]() RE: Advanced MAME Launcher - MAME frontend for Kodi - Wintermute0110 - 2019-03-14 @Dax9 Thanks a lot for your contribution. And your Python code is fine ![]() The crash was caused because when you change the settings of the addon Kodi does not delete the old settings. In my development machine the old setting was there and hence AML didn't crash unless you started with a fresh installation. I have already incorporated you changes relating the database cache and the crash when generating the MAME database. The reason for including Samples 1 and Samples 2 paths is that MAME includes 2 set of uncompressed samples on its installation directory, named floppy and MM1_keyboard . These samples are used with 3 machines and cause the ROM audit to fail for these machines. Currently, ROMs and Samples must be zipped in order for AML to work. I am now testing the audit engine with a 0.206 complete ROM set. Samples 1 directory is for the Sample ZIP files you download from progretto-SNAPS and Samples 2 is the samples directory in your MAME installation dir. I will notify here when the audit is working OK so you can test.Another current problem is that the some Software Lists include ROMs with non-ASCII characters. Since the ZIP standard does not define an official encoding for filenames this is a major problem because file names are not UTF-8 encoded (UTF-8 didn't exist when the ZIP file format was created) and it is very difficult to know the encoding of a string. I am currently investigating this issue now and probably will open an issue in the MAME repository in Github. RE: Advanced MAME Launcher - MAME frontend for Kodi - Dax9 - 2019-03-15 Hi Wintermute, I'm glad I could help. I'd always kept the zipped samples in MAME's default samples folder, but also deleted the floppy and MM1_keyboard subfolders because Clrmamepro won't scan clean with them there. I don't mind keeping the zipped samples in a separate folder. Users will need to be aware to configure samplepath in mame.ini for both sample folders. Non UTF-8 filenames in ZIPs are a difficult issue. It seems that chardet is the most recommended solution, but it's not foolproof. namelist() from ZipFile returns strings with an invalid encoding Python zipfile module can't extract filenames with Chinese characters RE: Advanced MAME Launcher - MAME frontend for Kodi - Wintermute0110 - 2019-03-22 (2019-03-15, 17:30)Dax9 Wrote: Hi Wintermute, I'm glad I could help. Thanks for your inputs. I already look at chardet but it will increase the complexity of the addon a lot. I have rolled back to 1 sample directory and currently AML ignores ZIP files not coded in UTF-8. In MAME 0.205 only one machine fails the audit because of the samples, and only 1 SL item out of 100,000 is affected by the UTF-8 issue. It is not perfect but we can live with that I think ![]() Interestingly, there are other SL ZIP files with non-ASCII filenames in the Pleasuredome collection, and on those ZIP files the filenames are correctly encoded in UTF-8. The problem seems to be with one particular ZIP file in the ibm5170 list. I will report this issue in the PD forum, currently I'm getting the 0.207 collection and once I'm finished I will see the results of the audit. I will release 0.9.9 soon. RE: Advanced MAME Launcher - MAME frontend for Kodi - Wintermute0110 - 2019-03-22 New AML release 0.9.9 Release 0.9.9 fixes some problems intorduced in MAME 0.205 and has been tested and works perfectly with every recent MAME version up to 0.207. Code has been refactored a bit and there are many small improvements here and there. Perhaps the main novelty is the addition of two entries in the AML root window, named Utilities and Global Reports. Both have functionality previously in the context menus or AML settings. Now I think the user inferface is cleaner and the context menus are not so overloaded. Upgrading AML to release 0.9.9 1) Download AML 0.9.9 from the Kodi addon repository. AML is under the category Program add-ons and Game add-ons, Game providers. 2) Open the context menu in any root window row, select "Setup Plugin" and then "All in one step". This will extract MAME XML, rebuild all the databases and rescan ZIP/CHD files and assets. You will need to update the Custom filters as well. 3) In the root window, go to "Utilities" and select "Check/Update all Favourite objects." This will bring your MAME Favourites, MAME Most Played, etc. up to date with the last version of the database. Note that some files in AML data directory have changed. If you want to delete all cruft, then completely wipe out the AML data directory and start from scratch. If you want to keep your MAME Favourites and SL Favourites, then make a backup of the files Favourite_Machines.json and Favourite_SL_ROMs.json , and restore these files after the upgrade.Advanced MAME Launcher | version 0.9.9 | 22 March 2019 Code: FEATURE [CORE] Improve statistics of working, non-working games, etc. for the Main filters. RE: Advanced MAME Launcher - MAME frontend for Kodi - Dax9 - 2019-03-25 The Kodi addon repository still has the AML 0.9.8 version, at least as of this writing. I installed the latest AML 0.9.10-alpha version and gave it a try. I experienced a couple errors during testing, but otherwise it works great. Thanks for your continued development of this addon. The errors were in Step by Step > Build Software List item plots and Utilities > Check MAME CRC hash collisions. I don't know if these issues are in AML 0.9.9, but here are the lines I edited in main.py to fix them, just in case:
RE: Advanced MAME Launcher - MAME frontend for Kodi - Wintermute0110 - 2019-03-25 (2019-03-25, 00:43)Dax9 Wrote: The Kodi addon repository still has the AML 0.9.8 version, at least as of this writing. I installed the latest AML 0.9.10-alpha version and gave it a try. I experienced a couple errors during testing, but otherwise it works great. Thanks for your continued development of this addon. Thanks a lot for your patch, I already fixed AML dev version. I refactored the code of the "Setup plugin" context menu and those crashes were due to variable renaming. Probably the crashes only affected to 0.9.9. AML 0.9.9 is waiting and under review by the Kodi developers in this pull request. Once the pull request is merged, the Kodi build tools generate the ZIP file and place it in the official repository. RE: Advanced MAME Launcher - MAME frontend for Kodi - Wintermute0110 - 2019-04-13 AML 0.9.10 work in progress. Generation of 3D Boxes. ![]() ![]() RE: Advanced MAME Launcher - MAME frontend for Kodi - yimyom - 2019-04-28 Hi, I have a problem with joystick (and to some extent keyboard) focus when launching mame from Kodi. My setup is an Odroid XU4, Kodi, mame installed (almost by the book). You can read on how I did my setup on this page I wrote https://github.com/yimyom/odroid-xu4-setup. The problem is the following: when I launch any game, my joystick doesn't work at all. If I start X with a regular session and run mame in fullscreen, it perfectly works. If I run mame in window mode, and put the focus on another window, well... of course the joystick doesn't work. I suspect I have something similar with my Kodi/AML installation but I can't find anything so far. I went through Kodi's logs, AML logs (in debug mode) and couldn't find anything suspicious. So far my impression is that the MAME windows doesn't take the focus and so the joystick events are not sent to MAME. Any idea ? RE: Advanced MAME Launcher - MAME frontend for Kodi - Wintermute0110 - 2019-04-28 (2019-04-28, 10:27)yimyom Wrote: Hi, Hi, very nice tutorial! The problem is that Kodi must be run using a Window Manager. I recommend you use OpenBox. Google a bit, also in this forum there are many old posts about that. If you need further help, I'm preparing my own tutorial about Linux + Kodi + Emulators configuration but that will take me some time to finish. EDIT: Sorry, OpenBox is used, see point 17, the contents of the file /etc/systemd/system/kodi.service Can you please give more information about the joystick? Can you try with an alternative joystick? |