Program to Create Engine .INI and .UCI Files

189 views
Skip to first unread message

RandyR

unread,
Dec 2, 2022, 4:30:03 PM12/2/22
to PicoChess
Just in case anyone finds this useful, I have created a python program that will create the engine.ini and <engine>.uci files for any new engines you might like to add, or can be used to update current engines. It's hobbled together from the existing engines.py (in the build folder) by putting all functions into a single file, which is independent of location (i.e. isn't tied to the engine/<arch> folder).

To use it, just create a working folder, put your UCI engine(s) into it, copy the create_ini_uci.py file into the same folder. From the terminal, run:

cd <path to working folder>
python3 create_ini_uci.py

If the engine supports levels (or at a minimum: threads) the .uci and engines.ini files should be created. You can now clean them up and add them to your existing engines.ini file and copy the <engine> and <engine>.uci file into the <arch> folder (e.g. /opt/picochess/engines/armv7l).

It's not perfect since it has to guess at some things, but should save you some time. The Elo ratings are from the CCRL but can be edited (around line 195). The Elo is used to create the levels.

If you see a bug, let me know and I can try to fix it.

Some engines do not support levels so you would still have to create the .uci file manually. The program will warn about this. The engine.ini file should always be created.

Note: each time the program is run it will overwrite any current engine.ini or <engine>.uci file in the folder. This is by design. I highly recommend NOT using it on your current PicoChess engines folders. Use a separate working folder!

Randy


create_ini_uci.py

Luigi Vogliobene

unread,
Dec 2, 2022, 4:35:30 PM12/2/22
to PicoChess
Very useful Randy, thank you very much!

Luigi

Scally

unread,
Dec 2, 2022, 4:59:11 PM12/2/22
to PicoChess
Hi Randy,

Very nice …

I have a Spreadsheet to convert the CCRL ratings (often W64) to a rough RPi equivalent grade (PicoELO.numbers), plus my engines.ini shows both the CCRL and ELO (RPi equivalent). I have extracted only the relevant info into a file (EngineInfo.txt)


I need to update them as several CCRL ratings lists have been released since.

Al

Randy Reade

unread,
Dec 2, 2022, 5:09:55 PM12/2/22
to pico...@googlegroups.com
Hi Al,

Yeah, I knew they wouldn't be very accurate for the RPi but didn't know what conversion factor you used or if you ran some tournaments against their x64 versions. I guess it's all relative.

Thanks for the links.

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/8hXF84rQgw4/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/853db5b8-342a-4d58-b9fe-d5ae01aee679n%40googlegroups.com.

Dirk Sommerfeld

unread,
Dec 3, 2022, 4:42:48 AM12/3/22
to PicoChess
Hi Randy, with my next update we split the engines to a new ini file to get a better structure. Dirk M is also testing it at this time.
Next we have a favorite.ini, a engine ini and a retro.ini and in the Menu -> Enigine entry's like:-> Modern Engine, ->Retro Engine, ->Favorites.  This makes all easy to manage and the engine.ini could be small for all native or extra engines.,

Dirk

Dirk

unread,
Dec 3, 2022, 7:04:30 AM12/3/22
to PicoChess
That is sooooooooooo cool!

THX!!!!!
DirkIMG_4919.jpeg

Randy Reade

unread,
Dec 3, 2022, 10:04:19 AM12/3/22
to pico...@googlegroups.com
Hi Dirk S,

That's a nice enhancement. 👍

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/88dbc731-6ac9-45b2-aaf6-9e2a394fb990n%40googlegroups.com.
Reply all
Reply to author
Forward
Message has been deleted
0 new messages