After talking with Al yesterday, I started wondering what changes were made to the init.lua file for the chessengine plugin of MAME/MESS. I mentioned to Al that when I compiled v0.245 I just used the updated plugin from Sandro Ronco's Github site. It occurred to me that it might cause issues in PicoChess since I wasn't using the one modified by Dirk.
Today I had a look at
Al's original release and noticed that there are 3 files in the chessengine folder. I assumed the init.lua file was a copy of init_molli.lua, but it isn't - it's missing some edits. I then checked what I was using in my images and it's different still.
Since MAME v0.227, the LUA C++ <--> Lua interface was migrated to Sol 3 (=Sol 2 v.3). Therefore, this required some changes to the chessengine lua files. However, we remained on an older version of MAME with Al manually editing the code to support new rom releases/changes. Going forward this will become unsustainable as the changes will become harder to integrate and the MAME code evolves.
All this to say, what changes were needed in the init.lua file to support PicoChess? And, how can it be easily tested (what fails when no changes are made)? I hope Dirk and Al can answer these questions.
An unfortunate side effect of the changes is that the custom artwork (used in CB-Emu) doesn't seem to work (that is to say, the board shows but the pieces don't). I'm not sure why (is it because the images are not open source and MAME somehow checks?) but perhaps the artwork files will get updated in the future. Currently, only the built-in graphics can be used (if using the MAME GUI.
Randy