Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mame-chessengine doesn't work with the latest versions of mame #12

Open
Lazz09 opened this issue Apr 20, 2021 · 8 comments
Open

mame-chessengine doesn't work with the latest versions of mame #12

Lazz09 opened this issue Apr 20, 2021 · 8 comments

Comments

@Lazz09
Copy link

Lazz09 commented Apr 20, 2021

chessengine doesn't work with the latest versions of mame, could you fix it?

@sronco
Copy link
Owner

sronco commented Apr 24, 2021

Recent MAME versions have some backwards incompatible changes in the Lua interface and I haven't found the time to update this plugin, I hope to find some time in the next weeks.

@happppp
Copy link

happppp commented May 1, 2021

Thanks for the update!

There are some changes needed from 0.231 to 0.232 too, but pretty minor compared to the driver overhauls of the previous month. At the moment, the newly changed drivers are:

  • chessmst/chessmstdm: added pwm_display, it fixed some leds getting stuck (led output tags changed)
  • slc1 got a driver overhaul
  • slc1a renamed to poly880s
  • lc80e (sc80 schachcomputer) promoted to working

@sronco
Copy link
Owner

sronco commented May 1, 2021

chessmst and slc1 require simple changes, I have both working locally, but I think it's better to keep this plugin working with official MAME releases, I will push the patch after the next release.
It is usually easy to update the plugin when only the input/output tags change, but MAME 0.227 has a Lua interface overhaul that took a bit more work.

@Plextor52
Copy link

Hi Sandro,
first of all, thank you very much for your plugins and that you have now largely adapted them to the big Lua overhaul since v0.227.
You wrote, that you will push an update after the release of v0.232. Will this also include adjustments for the new Saitek modules "Analyst" and "Maestro", which hap recently published (btw: big thanks to @hap for his tireless work on the chess drivers)? That would be great, if you could do it too. :)
Franz has created his own solution for his CB Emu, which unfortunately, as a Lua beginner, I cannot implement in the current Mess version.

@Vegetatio
Copy link

Hello Sandro
I have added a few additional functions to some interfaces.
Move takeback, player mode, score depth output etc.

Only with the position input I have difficulties, there the following does not work:

local function sb_clear_board(tag
send_input(tag .. ":UI", 0x0100, 0.09) -- SensorBoard Clear
board = { { 0, 0, 0, 0, 0, 0 },
{ 0, 0, 0, 0, 0, 0, 0, 0 },
{ 0, 0, 0, 0, 0, 0, 0, 0 },
{ 0, 0, 0, 0, 0, 0, 0, 0 },
{ 0, 0, 0, 0, 0, 0, 0, 0 },
{ 0, 0, 0, 0, 0, 0, 0, 0 },
{ 0, 0, 0, 0, 0, 0, 0, 0 },
{ 0, 0, 0, 0, 0, 0, 0, 0 }}
end

Renaissa need some change in the init.llua function search_selected_piece.
The piece_to ,i search it,if the LED of the field (piece_from) are off.

chessengint.zip

@Vegetatio
Copy link

In the MAME 0.226 Setup has works.

@Vegetatio
Copy link

Hi Sandro

I have now identified my problem.
In the function sb_reset_board() i have assigned the variable "sensorboard" with the "tag".
Then i was able to use this one for example at function move back .
But now the "tag" is not copied to "sensorboard".
i helped myself now by setting sensorboard with ":board" by default and the interfaces, which address the sensorboard differently, with the query sensorboard=interface.sensorboard() (polgar as example (":board:board"))
now i must look at all interfaces....

Or is there a more elegant way?

@Plextor52:
You can find my software here :
https://c.gmx.net/@954923852104733824/yj9qqeByTv-S_BK-vxSVSw

the plugin works with mame 0.232 only the "function.set_frequenz" in any interfaces you have to delete or get my build of messchess.exe

Mysticum Touch is a GUI for a homebuilt board.
https://www.michael-lang-schach.de/forum/viewtopic.php?f=25&t=288https://www.michael-lang-schach.de/forum/viewtopic.php?f=25&t=288

Greetings
Guido

@Lazz09
Copy link
Author

Lazz09 commented Feb 21, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants