PicoChess V3.2: Retro edition

1.256 Aufrufe
Direkt zur ersten ungelesenen Nachricht

Dirk

ungelesen,
13.05.2023, 15:04:5813.05.23
an PicoChess

PicoChess V3.2: Retro edition

Quick update for V3.2 (artwork, positions setup and info display support)

PicoChessWeb (picochessweb) – VNC Viewer 2023-04-26 16-46-43.jpeg

Big thanks to Franz and his CBEmu project and his ongoing help, Guido and his „Mysticum“ plugins and Dieter for converting Franz/Guidos plugins to PicoChess.

I just made some necessary additional adjustments for picochess to support the position set up function in PicoChess and to reduce the performance loss because of the retro-information display.

Main task for me was to support the display of the artwork by implementing a practical mechanism for enjoying the internal/external artworks of the old chess computers so that we still can operate the PicoChess GUI.

The wonderful external artworks -as far as I know- have been created by Luis (from Spanish chess forum https://foro.chesscc.com) - big thanks to him!

Furthermore Randy was helping supporting/testing these features- thanks!


This is how it looks like playing with retro engines in artwork mode:

https://www.dropbox.com/s/f1dmsgrhzvroref/picochess_retro_artwork.mov?dl=0

IMG_6010.jpeg

The two main problems with the artwork display in PicoChessWeb are the chromium browser running in kiosk mode and the far too less space in order to show the artwork window.

If you touch the chromium browser an artwork window will go in background and if you have a fullscreen artwork window you wouldn’t be able to switch back to the GUI (because of a missing toggle button).

I didn’t want to change the fullscreen browser GUI mode so we need a way to easily switch between the „GUI mode“ or „artwork mode“.

These are the new retro-settings:

Engines menu -> Retro Engine Settings ->…

  • Toggle and switch Fullscreen/Window mode (will be stored in picochess.ini)
  • Retro-Speed
  • Retro-Sound
  • Display of artwork
  • Display of Retro-Engine Features  (at the moment: position setup and info display). This information is also shown in the WebGUI behind the engine name

Switch between PicoChess GUI and artwork display: Lift up piece and put it back  

If you don’t need the artwork (or don’t use desktop OS): Set artwork option to OFF

IMG_5971.jpeg

I like to have the artwork in fullscreen mode and switch to the GUI by lifting and putting back a piece but you can of course show the artwork in window mode and arrange it on the GUI as you like, eg. if the engine artwork has…

  • … no integrated sensor board, small retro window: window mode on the right so you have th visual board as a help

mame_arwork_window_1.jpg

  • … an integrated sensor board, small display: window mode on the left, so you have the additional info form Picochess n(moves, stockfish evaluation etc.)
PicoChessWeb (picochessweb) – VNC Viewer 2023-05-13 19-21-29.jpg
No idea if we can save and keep the window position for each engine!?

Even if one does not have a PicochessWeb device one can enjoy the artwork with just a tablet if you are running the Desktop version of RaspianOS (what I would recommend anyway) and use a VNC app to connect to your PI.

IMG_1379.PNG

IMG_5997.jpeg

This is really cool together with the Revelation II: Operating PicoChess via the RevII keyboard and enjoying the artwork without the need of switching…

IMG_6004.jpeg

Drawbacks/limitations:

Not all artwork overlays offer easy key control via touch especially not in fullscreen mode.

You could try the internal artwork by changing the mame video option if it works better but I think it is not a big deal because most settings are predefined by our uci level config files. Maybe it is just a setting for the touch usage missing!?

Artwort is performance intensive so it probably only makes sense on a PI4 but I haven’t checked a PI3. Even on a PI4 the emulation speed for some engines only reaches 150% when showing the artwork. 

For best performance frameskip for visualizing the artwork is already set to 10.


New PLUGINs for position setup and info display

For retro engine supporting these features (check vie retro engine settings menu or in WebGUI „(pos+info)“ ) you can now setup a position or see depth/eval/current move if supplied by the retro engine (updated during the engine’s thinking time)

https://www.dropbox.com/s/983ti0kkvseuivi/picochess_retro_pos_setup.mov?dl=0


PicoChessWeb (picochessweb) – VNC Viewer 2023-04-26 18-36-28.jpeg

What do you need for the new features?

  1. Updated picochess V3.2 sources from my github repo (https://github.com/tosca07/picochess)
  2. External artworks files (obviously) 
  3. New retro engine scripts (supporting artwork)
  4. New plugins adopted for picochess (for position setup and info display)

We are still testing and cleaning up the scripts so please be patient…

Best thing you can do I think is to wait for an updated image from Randy ;-)

Dirk

Dirk

ungelesen,
15.05.2023, 12:18:1815.05.23
an PicoChess

Necessary Files for PicoChess V3.2

(Don’t care if you want to start and use Randy’s later image for V3.2)

IMG_6029.jpeg

This is for PicoChess users who want to test (feedback welcome) and set up the new artwork and plugins features themselves or don’t want to wait for an image from Randy.

Here are the necessary files you must add to your system:

  1. Make sure you have a back a backup! There might be some serious bugs at the beginning so you could easily switch back
  2. Update to the V3.2 sources as mentioned above

IMG_6025.jpeg3

3. External artworks files from Luis - thanks for your wonderful (art) work, Luis! Unfortunately the artwork files must be unzipped. We had to replace windows path syntax by raspian/linux syntax.

Replace your artwork folder in /opt/picochess/engines/mame_emulation with that one:

https://drive.google.com/open?id=13_jEaYNa7MGX_qWP8l6z182zsajo-OVW&authuser=dirk.mollmann%40googlemail.com&usp=drive_fs


4. New plugins:  Replace the plugin folder in /opt/picochess/engines/mame_emulation with these new plugins from Franz/Dieter with some additional adjustments for PicoChess:

https://drive.google.com/open?id=13WBwpxCno6U0PKTBylh25NrVHpRGBsFx&authuser=dirk.mollmann%40googlemail.com&usp=drive_fs

PicoChessWeb (picochessweb) – VNC Viewer 2023-05-13 19-23-10.jpg

5. New retro engine start scripts

For starting the engines with graphic output we need new scripts (ending on _art):

Put these into your mame engines folder in /opt/picochess/engines/armv7l/mame

https://drive.google.com/open?id=13l4-2wdxUr8385gqntNgxwZnykOeewmJ&authuser=dirk.mollmann%40googlemail.com&usp=drive_fs


Or just wait for a new image from Randy…. 

By the way:

The TascR30 (eg King 2.5) unit can be operated via touch controls (at the moment this is unfortunately not possible for all retro engines for some reason)...

IMG_6031 (1).jpeg

Happy testing...

Enjoy

Dirk

RandyR

ungelesen,
15.05.2023, 17:35:4515.05.23
an PicoChess
Hi everyone,

I have uploaded a new Desktop image (v3.2) for anyone who wants to check out the improvements made by Dirk. It should probably be considered a beta version as there may be some bugs in there with all the modifications. The publically available roms are included as usual. If you want to add your own into the /opt/picochess/engines/mame_emulation/roms folder, you will need to add corresponding entries into the /opt/picochess/engines/armv7l/retro.ini file (see the /opt/picochess/engines/armv7l/engines_ini/all_retro.ini file for examples).

I will update the Lite image shortly but this update is mainly for those using a stand-alone GUI setup with a Pi4.

If you find issues, make a post on the forum.

Here is the link to the updated image:

Desktop (4.3 GB)

Randy


RandyR

ungelesen,
15.05.2023, 17:53:1015.05.23
an PicoChess
Better hold off on the download. There seems to be an issue...

Will advise when ready.

Randy

RandyR

ungelesen,
15.05.2023, 18:02:0915.05.23
an PicoChess
I found the issue. The Mephisto MM IV  and MM V scripts are looking for an addon module. I'll upload a new version and advise. In the meantime don't select mm4 or mm5.

Randy

RandyR

ungelesen,
15.05.2023, 19:16:0515.05.23
an PicoChess
Corrected version is now uploaded.

Desktop (4.3 GB)

Randy

Ironman

ungelesen,
16.05.2023, 07:51:5016.05.23
an PicoChess
Hi Dir, hi Randy,

thanks for this perfect work !! Ine question/Problem with the Artworks i have......

Could you say, how i switch back from fullscreen Mode Retro Artwork to the normal mode?? I have made the Fullscreen Mode on my "7" Display but can not back to normal mode ?? it should good if there is an option to select back to the "normal" screen mode .

sorry for my bad englisch.

Best Regards

Frank

Dirk

ungelesen,
16.05.2023, 08:01:3716.05.23
an pico...@googlegroups.com
Hi Frank,

what to you mean with normal screen mode?

If you want to just switch Bach to the Picochess GUI when you see the artwork screen in fullscreen mode: just lift a piece and put it back.

If you want to switch from fullscreen to window mode for the artwork: just switch to the Picochess GUI and select the toggle fullscreen button again in engine retro settings: then artwork will be displayed in window mode again (that’s what a toggle button does ;-)

Have fun!
Dirk

Von meinem iPad gesendet

Am 16.05.2023 um 13:51 schrieb Ironman <fherz...@gmail.com>:

Hi Dir, hi Randy,
--
You received this message because you are subscribed to the Google Groups "PicoChess" group.
To unsubscribe from this group and stop receiving emails from it, send an email to picochess+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/picochess/04b56e8a-fbe7-4b43-8b98-c2d20f0d0ea9n%40googlegroups.com.

Ironman

ungelesen,
16.05.2023, 08:27:0416.05.23
an PicoChess
Thank You Dirk,

is it possible to change the button so that the funktion is toogle on / toogle off fuulscreen mode....? 

Best Regards

Frank 

Nacho Ros

ungelesen,
16.05.2023, 08:29:3316.05.23
an PicoChess
Thanks Randy, Dirk and the rest of the developers. I'm going to try it right now!

Tahir Hafiz

ungelesen,
16.05.2023, 08:38:0416.05.23
an PicoChess
Thanks Randy. Is there a Lite image available? I only have a Raspberry Pi 3 B model, I guess the Lite image would work best on that.

Randy Reade

ungelesen,
16.05.2023, 09:00:0916.05.23
an pico...@googlegroups.com
I'll update the Lite image soon.

Randy

Tahir Hafiz

ungelesen,
16.05.2023, 09:05:4516.05.23
an pico...@googlegroups.com
Randy, can the Desktop image work headless and with a lowly RasPi 3 Model B with just a 16GB micro SD card ??

--
You received this message because you are subscribed to the Google Groups "PicoChess" group.
To unsubscribe from this group and stop receiving emails from it, send an email to picochess+...@googlegroups.com.

Randy Reade

ungelesen,
16.05.2023, 09:16:0116.05.23
an pico...@googlegroups.com
Yes. I didn't test it in my DGTPi, which has a Pi3b, but I usually do. But there will be a performance drop. You can view the Desktop using VNC (read the enclosed docs for info) if running headless and with modifications can even see the MAME artwork, if desired. But, the Desktop image is meant for an attached monitor.

Randy

RandyR

ungelesen,
16.05.2023, 13:21:1016.05.23
an PicoChess
Hi everyone,

I have uploaded a new Lite image (v3.2). As it is set up and primarily for the DGTPi, and there is no Desktop GUI installed, there are some caveats to be aware of when using the retro (MAME) engines. Do NOT enable the Retro-Artwork Display in the engine/retro engine settings menu. This will cause PicoChess to crash and also fail on reboot. If this happens, the only way to fix it is to edit the /opt/picochess/picochess.ini file and reset the rdisplay setting to False. If you stay away from this option you should be fine. You can also re-flash your SD card back to default.

Another consideration is if you add your own roms and make appropriate entries in the /opt/picochess/engines/armv7l/retro.ini file, you whould also check the corresponding .uci file in the /opt/picochess/engines/armv7l/mame folder to confirm the level entries (enclosed in [] brackets) match your display capabilities (e.g. DGTPi/DGT3000 is limited to 11 characters, or 8 when plugged into the DGT board as a clock). Many of the .uci files are set for using the web interface and may have in excess of 11 characters. They will still work, you just may not see the full level text.

Finally, there may be performance issues with some (MAME) engines, even on an RPi4b. This is true with the Desktop version as well.


If you find issues, make a post on the forum.

Here are the links to both images:

Lite (3.8 GB)

Desktop (4.3 GB)

Randy

P.S. A huge thank you to Dirk for the considerable work put into these latest enhancements. His tireless efforts building on the work of previous contributors are what has allowed this open-source project to easily compete with commercial offerings at a fraction of the cost to the end-user. Enjoy.

Dirk

ungelesen,
16.05.2023, 14:48:2516.05.23
an PicoChess
Thanks Randy for the images - a really valuable help for many users!

Regrading the artwort and non desktopOS problem:

Does anybody know how ewe can detect this in python?

If we were able to determine if picochess is running with installed desktop (or desktop like) then I could avoid the crash...

Thanks
Dirk

Dirk

ungelesen,
16.05.2023, 14:51:5016.05.23
an PicoChess
Ok I answer myself after having ChatGPT consulted ;-)

import os def is_desktop_environment_available(): display = os.environ.get('DISPLAY') return display is not None if is_desktop_environment_available(): print("Desktop environment is available.") else: print("Headless environment detected.")

Dirk

ungelesen,
17.05.2023, 06:25:2717.05.23
an PicoChess
I have added the desktop check when trying to use the artwork display. You will now get a message:
Monosnap 2023-05-17 12-10-54.jpg

and this is for Frank ;-)
PicoChessWeb (picochessweb) – VNC Viewer 2023-05-17 11-56-47.jpg
By the way: You can change (almost) every text output to your likings by changing the translation file translate.py in /opt/picochess/dgt folder

Just grab the updated menu.py and translate.py form my repo or wait for next image update by Randy...

Enjoy
Dirk

Dirk

ungelesen,
17.05.2023, 06:27:3717.05.23
an PicoChess
Forgot to mention: I no longer have any lite images in use (even in my headless PI for my Rev2 and in MolliPI are running RaspianOS desktop releases so I can't test this feature.

Would be good if someone with a lite image (no desktop installed) could check this...

Thanks
Dirk 

Tahir Hafiz

ungelesen,
17.05.2023, 08:50:0717.05.23
an PicoChess
Hi Dirk,

I'm running picochess lite (thanks Randy for the latest image). Great chess computer by the way - an amazing range of features.
I've done a wget for menu.py and translate.py from your repo and replaced those two files:
https://github.com/tosca07/picochess/tree/master/dgt

But I'm seeing an error (image attached).

Kind regards,
Tahir
error1.jpg

Dirk

ungelesen,
17.05.2023, 09:08:3417.05.23
an PicoChess
Hi Tahir,

don't know about  your files- looks like they are corrupted somehow or they don't fit to your light image.  There is no syntax error in line 8 in translate.py and I double checked on my system and compared them- they run without problems.
I would suggest just to wait for a new image from Randy - you won't miss anything until then.

Dirk

Tahir Hafiz

ungelesen,
17.05.2023, 09:23:1917.05.23
an pico...@googlegroups.com
Thanks Dirk, I will revert back to Randy's stock V3.2 image. Cheers!


--
You received this message because you are subscribed to a topic in the Google Groups "PicoChess" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/picochess/oE0HZ5vHaDA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to picochess+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/picochess/5b7765ea-d303-4eea-ac7b-dfe809fb068dn%40googlegroups.com.

Randy Reade

ungelesen,
17.05.2023, 09:36:1617.05.23
an pico...@googlegroups.com
Looks like a bad wget. Might be easier to copy and paste the translate.py text from the github site into nano over ssh.

Randy

--
You received this message because you are subscribed to the Google Groups "PicoChess" group.
To unsubscribe from this group and stop receiving emails from it, send an email to picochess+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/picochess/f680cef9-e991-407a-b73c-092c688efa94n%40googlegroups.com.

Tahir Hafiz

ungelesen,
17.05.2023, 10:34:0517.05.23
an pico...@googlegroups.com
Actually I wasn't doing a wget on the raw file but on the whole of the github page :-)

Anyway, picochess is operable now, but not sure where to look for the menu option to test the display if/else  for my Lite image.

You received this message because you are subscribed to a topic in the Google Groups "PicoChess" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/picochess/oE0HZ5vHaDA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to picochess+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/picochess/CAE5WdutUg%2BwpCUTPfO7L1jg_vK-XyAGHicCvVtSYyEqDMn1-jg%40mail.gmail.com.

Tahir Hafiz

ungelesen,
17.05.2023, 10:38:3917.05.23
an pico...@googlegroups.com
Found it! And if/else for Desktop is working on Lite image (proof attached).


no_desktop_installed.jpg

Randy Reade

ungelesen,
17.05.2023, 10:42:5217.05.23
an pico...@googlegroups.com
Probably easier to clone on the Pi:

cd ~

Then copy (only!) the files you want from the ~/picochess folder to /opt/picochess.

To update in the future from github:

cd ~/picochess
git pull

Then copy over updates.

Randy

Tahir Hafiz

ungelesen,
17.05.2023, 10:47:3817.05.23
an pico...@googlegroups.com
Thanks, will do! For the picochess software project, how often are there minor (i.e point) releases?

Randy Reade

ungelesen,
17.05.2023, 12:04:4517.05.23
an pico...@googlegroups.com
I would not say there are regular updates. :^)

But when they happen, they are special. 😃

Randy

RandyR

ungelesen,
17.05.2023, 18:51:2517.05.23
an PicoChess
Hi everyone,

I have uploaded new Desktop and Lite images. They include Dirk's fix for retro-artwork causing a crash when no desktop GUI is present. There are also some imrovements to the MAME chessengine plugin, also from Dirk. I have converted Dieter's German MAME engine .uci entries to English. There may still be some that slipped through the cracks. If you find any, let me know. Also, the Lite image MAME .uci files are now limited to 11 characters for the level displays. In the Lite image you can find a .7z archive in /opt/picochess/engines/armv7l/mame containing the web versions (longer text) if you want to swap them. The Desktop image has the web versions of the MAME .uci files as default. As with the Lite image, there is a .7z archive in the /opt/picochess/engines/armv7l/mame folder containing the shorter versions.

If you find issues, make a post on the forum. When I first tested the Desktop image I had a crash when switching to the retro-artwork using MM IV (or it might have been MM V). The log mentioned something about error shutting down the engine. It could have been because it was the first boot of the card - I rebooted and it worked OK after that.

One other caveat - if you are using the retro-artwork, do not close the artwork window. It will hang PicoChess and you'll need to log in to reboot.

Finally, I have made a slight modification to the translate.py English text for the retro window toggle. Perhaps Dirk will like it and translate the German entries to match, if desired.

Sophia D

ungelesen,
23.05.2023, 23:31:4623.05.23
an PicoChess

hello all,

I downloaded the image from Randy. In general it works quite well but now I have only a very limited choice of retro engines available compared to version 3.1.

There is Mephisto Amsterdam, Dallas 1986, Roma, MMIV, MMV,Rebel 5 and that's it. Do I have to install other retro engines myself? Or is this just a test version?

Thanks

Nacho Ros

ungelesen,
24.05.2023, 07:42:2924.05.23
an PicoChess
I also miss some more ROMs. In the /opt/picochess/build folder there are some scripts to add new engines. I have added some ROMs to the /opt/picochess/engines/mame_emulation/ folder. I have run engines.py but it returns an error. I have no knowledge to solve the problem.

On the other hand, adding books to the books folder and running books.py works perfectly. This 3.2 version looks great, with the artwork of the old machines it looks spectacular.

Cheers.

waldomiro dias machado junior

ungelesen,
24.05.2023, 08:00:5624.05.23
an pico...@googlegroups.com
Hello everybody!

I would also really like to have these roms but unfortunately I don't know how to do it.

Knowledge is everything!

Waldomiro

--
You received this message because you are subscribed to the Google Groups "PicoChess" group.
To unsubscribe from this group and stop receiving emails from it, send an email to picochess+...@googlegroups.com.

Randy Reade

ungelesen,
24.05.2023, 09:08:2424.05.23
an pico...@googlegroups.com
The only roms included in my images are those for which we have permission to use (see http://rebel13.nl/dedicated/dedicated%20as%20uci.html).

The process to add others is as follows:

1. Place rom in /opt/picochess/engines/mame_emulation/roms
2. Edit retro.ini file and create an entry for the new machine. Many of these entries can be found in /opt/picochess/engines/armv7l/engines_ini/all_retro.ini

Randy

--
You received this message because you are subscribed to a topic in the Google Groups "PicoChess" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/picochess/oE0HZ5vHaDA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to picochess+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/picochess/b6767ee7-18a4-47d1-82ca-6104cdac230dn%40googlegroups.com.

Nacho Ros

ungelesen,
24.05.2023, 09:20:3624.05.23
an pico...@googlegroups.com
Thank you Randy (again and again)

RandyR

ungelesen,
25.05.2023, 17:09:2725.05.23
an PicoChess
Hi everyone,

I have uploaded new Desktop and Lite images. They include some bug fixes from Dirk, including a fix for moves not showing on the web server chess board display (in the browser) when replaying a game using the PGN Replay & Analysis engine. Also, I have cleaned up the display size of the engine names (found in .ini files) and levels (found in the <engine>.uci files) for both the Desktop and Lite images so they should fit on one line. As mentioned before, in the Lite image you can find a .7z archive in /opt/picochess/engines/armv7l/mame containing the web versions (longer text) of the mame levels if you want to swap them. The Desktop image has the web versions of the MAME .uci files as default. As with the Lite image, there is a .7z archive in the /opt/picochess/engines/armv7l/mame folder containing the shorter versions if you want to use them.

A note to those adding their own retro roms, the images contain v0.254 of MAME so require roms compatible with that version. Most don't change, but some do. If you've made the requisite changes and added the rom and it doesn't work, run it from the terminal and you should see why. E.g., to run mm5 you would enter (assuming ssh):

sudo service picochess stop
cd /opt/picochess/engines/mame_emulation
./mess -verbose -video none mm5

or if using a display:

DISPLAY=:0 ./mess -verbose mm5
Allen antworten
Antwort an Autor
Weiterleiten
Die Nachricht wurde gelöscht
0 neue Nachrichten