Posts: 20
Joined: May 2018
Reputation:
0
Dax9
Junior Member
Posts: 20
Hi Wintermute, thanks for the details and continued development of AML. I look forward to trying the new version. And although it'll be a while before I move to Kodi Matrix, I'm glad to know AML will work with it too.
Posts: 50
Joined: Mar 2013
Reputation:
4
added:
machine = machines[m_name]
cloneof = machines_render[m_name]['cloneof']
romof = machine['romof']
to line 4741 of mame.py.
else the _get_CHD_location function crashed cause the above variable where only filled within the if above not in general scope and as such
this scope hadn't any.
Not for developer he will understand:
If u used merge for chd set all was fine, this was cause of this function a problem for split only.
Posts: 89
Joined: Aug 2015
Reputation:
5
So I found one issue with the alpha version. MAME Roms run correctly not issues there, however I can't get the software lists to run any ROMS. I get the following error below. The plugin in no longer pops up the selection box for selecting the machine you want to run the ROM on. I am going to try rebuilding everything again to make sure my machine lists were generated correctly. I am running MAME 0.225, just in case this is of relevance.
2020-10-19 21:50:48.146 T:16762 INFO <general>: AML INFO : Launching SL machine "sms" (ROM "alexhitw")
2020-10-19 21:50:48.146 T:16762 INFO <general>: AML INFO : run_SL_machine() Launching SL machine (location = STANDARD) ...
2020-10-19 21:50:48.146 T:16762 INFO <general>: AML INFO : run_SL_machine() SL_name "sms"
2020-10-19 21:50:48.146 T:16762 INFO <general>: AML INFO : run_SL_machine() SL_ROM_name "alexhitw"
2020-10-19 21:50:48.146 T:16762 INFO <general>: AML INFO : run_SL_machine() SL ROM is in Standard Location
2020-10-19 21:50:48.148 T:16762 WARNING <general>: xbmc.translatePath is deprecated and might be removed in future kodi versions. Please use xbmcvfs.translatePath instead.
2020-10-19 21:50:48.148 T:16762 INFO <general>: AML INFO : run_SL_machine() SL ROMs JSON "/home/laptopcas/.kodi/userdata/addon_data/plugin.program.AML.dev/SoftwareLists/sms_items.json"
2020-10-19 21:50:48.151 T:16762 WARNING <general>: xbmc.translatePath is deprecated and might be removed in future kodi versions. Please use xbmcvfs.translatePath instead.
2020-10-19 21:50:48.153 T:16762 INFO <general>: AML INFO : run_SL_machine() launch_machine_name = ""
2020-10-19 21:50:48.153 T:16762 INFO <general>: AML INFO : run_SL_machine() launch_machine_desc = ""
2020-10-19 21:50:48.307 T:16762 INFO <general>: AML INFO : run_SL_machine() User selecting SL run machine ...
2020-10-19 21:50:48.326 T:16762 ERROR <general>: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <class 'TypeError'>
Error Contents: '<' not supported between instances of 'dict' and 'dict'
Traceback (most recent call last):
File "/home/laptopcas/.kodi/addons/plugin.program.AML.dev/addon.py", line 36, in <module>
resources.main.run_plugin(sys.argv)
File "/home/laptopcas/.kodi/addons/plugin.program.AML.dev/resources/main.py", line 427, in run_plugin
run_SL_machine(cfg, SL_name, ROM_name, location)
File "/home/laptopcas/.kodi/addons/plugin.program.AML.dev/resources/main.py", line 7675, in run_SL_machine
for SL_machine in sorted(SL_machine_list):
TypeError: '<' not supported between instances of 'dict' and 'dict'
-->End of Python script error report<--
2020-10-19 21:50:48.421 T:16762 INFO <general>: Python interpreter stopped
Posts: 89
Joined: Aug 2015
Reputation:
5
So I have done some more sleuthing with the "TypeError: '<' not supported between instances of 'dict' and 'dict'" error and it would seem that Python3 handles lists/dicts differently than Python2. The machines can now be selected by replacing line 7675 ( for SL_machine in sorted(SL_machine_list):with:
for SL_machine in sorted(SL_machine_list, key=lambda x: (x['machine'])):
I still have another error prior to launching the rom but the list of machines now displays and I can select the machine I am looking for.
Cheers,
Posts: 89
Joined: Aug 2015
Reputation:
5
Figured out the other error, Line 7832 and 7834 need the cfg placed in the brackets after the calls:
run_before_execution() to run_before_execution(cfg)
run_after_execution() to run_after_execution(cfg)
With the above 2 changes software list roms are running. I will continue to play around.
Thanks
Posts: 20
Joined: May 2018
Reputation:
0
Dax9
Junior Member
Posts: 20
Mameinfo.dat 0.226 has a bug that causes a TypeError with AML 0.10.0. There's a blank line (row 376081) between $info=kpython and $mame. Removing this blank line allows Setup Plugin to complete successfully.
Otherwise, AML 0.10.0 is working well for me with MAME 0.226 and Kodi 18.9. Thanks for the continued development.