ChessGenius converter/adapter to winboard-UCI w16 to w32?

Discussion of anything and everything relating to chess playing software and machines.

Moderator: Ras

supersharp77
Posts: 1268
Joined: Sat Jul 05, 2014 7:54 am
Location: Southwest USA

ChessGenius converter/adapter to winboard-UCI w16 to w32?

Post by supersharp77 »

There must be some way to extricate the w16 ChessGenius engine (Geng7..Geng3...Geng6 etc) so it can be used with some sort of adaptor as a winboard/UCI engine in Arena/Chessbase.......has anyone tried to get it to work outside the ChessGenius GUI? Thx in advance...AR




orig post...What we really could use (for the smart folks in the forum) is a converter so the chess genius gui (GENG7) engine can be used in Arena and Chessbase so it could finally be fully tested out of the w16 Chessgenius GUI
Thx.......AAR :) :wink:
User avatar
hgm
Posts: 28514
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: ChessGenius converter/adapter to winboard-UCI w16 to w32

Post by hgm »

With computer programs anything is possible. But it would be a lot of work, so who cares...? It's just the umptieth Chess engine.
Engin
Posts: 1001
Joined: Mon Jan 05, 2009 7:40 pm
Location: Germany
Full name: Engin Üstün

Re: ChessGenius converter/adapter to winboard-UCI w16 to w32

Post by Engin »

this would be interesting me too, because i love the Genius engine in the past until going to the 80's

if there be an adapter to UCI or Winboard that would be great !
User avatar
hgm
Posts: 28514
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: ChessGenius converter/adapter to winboard-UCI w16 to w32

Post by hgm »

Well, you are a programmer. What is stopping you to make one?
Modern Times
Posts: 3898
Joined: Thu Jun 07, 2012 11:02 pm

Re: ChessGenius converter/adapter to winboard-UCI w16 to w32

Post by Modern Times »

Even if possible, you would need a 32-bit Windows O/S would you not ? x64 versions of Windows don't support 16-bit programems as I recall.
User avatar
hgm
Posts: 28514
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: ChessGenius converter/adapter to winboard-UCI w16 to w32

Post by hgm »

I thought there were DOS Box emulators that you could run in Windows x64, where you could still run 16-bit software. I suppose they run as a virtual machine. The x64 CPUs still support 16-bit modes, that is for sure. So it should be possible to write your own VM similar to DOS Box, but in a console version, that would just write to stdout instead of popping up its own console window.
Norbert Raimund Leisner
Posts: 1643
Joined: Tue May 20, 2008 4:57 pm
Location: Augsburg - Germany

Re: ChessGenius converter/adapter to winboard-UCI w16 to w32

Post by Norbert Raimund Leisner »

Chess Assistant by Convekta http://chessok.com/shop/index.php?main_ ... 20a&page=1
has a separate protocol for Genius 4+5 Windows, but starting the engines
under CA seems to be a problem. I reported that bug to ChessOK.com
(email: info@chessok.com) several months ago, but their support had no solution for it.

Norbert
Modern Times
Posts: 3898
Joined: Thu Jun 07, 2012 11:02 pm

Re: ChessGenius converter/adapter to winboard-UCI w16 to w32

Post by Modern Times »

hgm wrote:I thought there were DOS Box emulators that you could run in Windows x64, where you could still run 16-bit software. I suppose they run as a virtual machine. The x64 CPUs still support 16-bit modes, that is for sure. So it should be possible to write your own VM similar to DOS Box, but in a console version, that would just write to stdout instead of popping up its own console window.
Yes I think that is right, a VM provides solutions for many things.
supersharp77
Posts: 1268
Joined: Sat Jul 05, 2014 7:54 am
Location: Southwest USA

Re: ChessGenius converter/adapter to winboard-UCI w16 to w32

Post by supersharp77 »

Setup from UCI to ChessGenius 7........folder contents...
[ a)eng file... b)eng dll... c) polyglot.exe...d) polyglot.ini.....e) chess engine]

example 1) houdiniw32engine=
// Sample ENG file to add new Winboard engines
// Must be placed in the Genius7 folder.

INIT {
// First the pathname of WBConv.dll. note the double "\\".
"engines\\Houdini\\WBConv.dll",
// Name Text for screen display
"Houdini Engine",
284,

// Pathname of engine, relative to Genius7 folder.
// Can also be given as an absolute path
[#l:8192,1,0,0, 1,1,1, #b:'e,'n,'g,'i,'n,'e,'s,'\,'H,'o,'u,'d,'i,'n,'i,'\,'P,'o,'l,'y,'g,'l,'o,'t,'.,'e,'x,'e,0],
// ^^^^ change this number to the actual hash table size used by the engine
// ^ ^ ^ Engine flags (see engine dialog) ON (1) or OFF (0)

"",
0,
"Houdini", // short engine name (max. 8 characters)
"",
"",
"",
""
}

// Next we define the Engine options dialog
DIALOG {
"Set Options for Houdini..", // dialog title
250,150, // X/Y size of dialog

// dialog items..
"TICK", "Permanent brain", [#l:16,4, 20,30, 90],
"TICK", "White's score in analyse mode", [#l:20,4, 20,45, 120],
"TICK", "Can show current move", [#l:24,4, 20,60, 120],
"END", // Must be last
END }

b) wbconv.dll=

‹D$‹T$‹ÈVÁá‹òñÆ‹…À7‹…Àt8￾4@￾°‹5(A￾†‹0‰T°‹0F‰0‹pF‰p‹‹4…€…öu
‹AƒÁ…ÀuÈ^Ã￾￾￾￾￾‹D$‹T$‹ÈVÁá‹òñÆ‹…À7‹…Àt8￾4@￾°‹5,A￾†‹0‰T°‹0F‰0‹pF‰p‹‹4…€…öu
‹AƒÁ…ÀuÈ^Ã￾￾￾￾￾‹D$SVW‹|$‹ÈÁá‹×Ñ‹4…À7‹…ÀtX￾@￾ˆ¡(A￾￾‹ƒúuÇ ë‹X￾H;ßt
‹YƒÁ;ßuöJ‰‹T￾‰‹HI‰H‹‹…€…Éu
‹FƒÆ…Àu¨_^[Ã￾‹D$SVW‹|$‹ÈÁá‹×Ñ‹4…À7‹…ÀtX￾@￾ˆ¡,A￾￾‹ƒúuÇ ë‹X￾H;ßt
‹YƒÁ;ßuöJ‰‹T￾‰‹HI‰H‹‹…€…Éu
‹FƒÆ…Àu¨_^[Ã￾‹T$S‹ÂUÁøƒàVW￾Å +ÈöÂ￾I￾È￾€￾,… 8„‹ ‹•0A‹\$‹È‹ÓÁáÑ‹øÁçøÁç‹”Ÿày￾R￾‚‹t￾ ￾D￾ ƒþuÇ ë9X￾Ht ƒÁ9uùN‰0‹t°‰1‹HI‰H￾• ‹ˆ€…Ét ‹”8€më ‹”8ày…Òu¡_^][Ë•0A‹|$‹Â‹ÏÁàÈÑ‹4• 3‹￾@￾￾‹T… ƒú￾L… uÇ ë‹Y￾A;ßt
‹XƒÀ;ßuöJ‰‹L‘‰‹FƒÆ…Àu¼_^][Ã￾￾￾￾￾￾￾￾￾￾￾￾￾‹T$V‹ÂWÁøƒà￾Å +ÈöÂ￾I￾È￾€￾4… 8tm‹•0A‹|$‹È‹×ÁáÑS‹ÐÁâÐÁ⋌ºày￾I￾￾‹†￾†‰|˜‹C‰‹XC‰X￾￾ ‹ˆ€…Ét ‹Œ€më ‹Œày…Éu¿[_^Ë•0A‹T$‹È‹úÁáùÇ‹… 3‹￾<@ƒÁ￾¸‹<†￾†‰T¸‹8G‰8‹…Àuâ_^Ã￾￾￾￾￾￾￾S‹\$VW￾[￾4ƒÁ拆¤8…Àt/‹Ž 8￾¾¨8U￾l￾ü‹ ö…€t
PSèòûÿÿƒÄƒÇ;ývã]¡,A‹L…Ét(‹￾|￾t—ü‹ ö…€t
PSèüÿÿƒÄƒÇ;þvã_^[Ã￾￾￾￾￾￾￾￾￾￾￾￾￾￾U‹l$VW￾Dm ￾t… ¡(AÁæ‹L…Ét*‹￾|S￾\￾ü‹ ö…€t
PUè"üÿÿƒÄƒÇ;ûvã[¡,A‹L…Ét(‹￾|￾t—ü‹ ö…€t
PUèlüÿÿƒÄƒÇ;þvã_^]Ã￾￾￾￾￾￾￾￾￾￾￾￾￾￾QS‹\$UVW‹û‹ó‹ëÁÿÁþ ‹Ãƒçƒåƒæ% À ‰D$‹ÃtÁøƒà‰D$ë
Áøƒà‰D$PVè†üÿÿƒÄ…ÿtWVè¨ýÿÿƒÄë Vè}þÿÿƒÄ‹µÀ￾µÀ‰­À‰(‹D$…À‰<µ€t￾ã ￾Ë € Áëë‹\$…ÿ‰­€t¡@￾ƒè£@￾‹ ‰0‰SUè:ýÿÿUè¤þÿÿƒÄ_^][YÃ￾￾￾￾￾￾￾￾￾￾￾SU‹l$V‹ÝW‹Å‹ýÁû‹õƒãÁøƒçƒàÁþ SWƒæ‰D$èÀûÿÿ‹Ã‹ÏÁàÈ‹ÃÁ‹L$ ÁàƒÄ‹￾¨Y1‹L$‹￾èi1öÃu‹ˆ¨Y‹D$ 1‹D$…ÀtIPVèuûÿÿ‹D$‹Î‹ÐƒÄÁâÊÁ‹L$Áà‹￾¨Y1‹L$‹￾èi1ŠL$öÁu‹ˆ¨Y‹D$ 1Wè=ýÿÿ‹D$ƒÄ…Àt(¡@￾‹µÀ‰¡@￾‹µÀƒÀ£@￾Çc ‹½À‰µÀ‰0ǽ€ ÷Å À tÁýƒå‹ÝSV‰µ€èñûÿÿ‹Ó‹ÎÁâÊ‹ÃÁ‹L$ Áà‹)ƒÄ‹￾¨Y3ê‰)‹L$‹￾èi‹93úöÉ9u‹ˆ¨Y‹D$ 1‹D$…Àu VèýÿÿƒÄ‹Ó_÷ÓÁúÁëƒâƒã‹Ë^‹•„š]Áá‹ ËÁ[￾@￾￾‹… 8Ã￾￾￾￾￾￾￾￾‹D$ƒø£h8‡È ÿ$…x ‹L$3À£Œ‰
l8‰
X8ÇT8c £d8£`8£p8£P8ËL$¸ÿÿÿ£l8£X83À‰
T8£d8£`8£p8£P8ËT$3À£Œ£l8£X8ÇT8c ‰p8ÇP8 Ã3ÀÇT8c £Œ£l8£X8£p8ÇP8 Ãh€”èÜŽ YËÿ© ß ? ￾￾￾￾￾￾￾￾‹
pA3À‰A‹pA‰B‹
pA‰A‹pA‰BÃ￾￾￾￾￾￾￾￾￾¡pA‹T$Ç ‹
pA‰Q¡pAÇ@ Ã￾￾￾￾￾￾￾￾￾￾￾¡pAÇ èà‚ ‹
pA‰AÃ￾￾￾￾￾￾¡pAƒ8 t>‹@VPèÜ‚ ‹
pAƒÄ‹Q‰D‘¡pA‹5\8‹H‹TˆÖ‹tˆò‰tˆ¡pA^‹P3É…Ò”Á‰H‹pAƒ: tèk‚ ‹
pA‰A¡pA‹PÇD￾ Ã￾‹D$Pè¶￾ YÃ￾￾￾￾‹L$‹T$￾ ￾￾ ;ÈwV+Ћ4‰0ƒè;Ásô^Ã￾￾￾￾￾￾￾‹D$‹L$SUVW￾¸ä ￾q» ‹Æ‹Ïº ƒÆ ‹(ƒÀ‰)ƒÁJuóƒï

c) Polyglot.exe

d) Polyglot.ini .....[PolyGlot]

EngineName = Houdini
EngineDir = .
EngineCommand = Houdini x86 1CPU.exe

Book = false
BookFile = book.bin

Log = false
LogFile = Houini.log

Resign = true
ResignMove = 3
ResignScore = 900

[Engine]

Hash = 128
Threads = 1
OwnBook = false

e) Houdini Engine

Now clicking on the Geng7 engine starts the w16 exe (wow) so all that in needed is the reverse wbconv.dll (w16 to windows 32 along with some instructions using a wb2uci.eng file and wb2uci.exe engine so that ChessGenius can understand and the process should work!! Correct?!?! Let me know............AR
-------------------------------------------------------------------------------------


Hi Norm.......Thx for the reply.....need to get Genius to work in Arena and Chessbase probably using a WBConv.dll (reversed to work from w16 to w32.....along with the correct instructions so wb2uci instructions can be recognized by Chessgenius w16 eng Thx AAR
User avatar
hgm
Posts: 28514
Joined: Fri Mar 10, 2006 10:06 am
Location: Amsterdam
Full name: H G Muller

Re: ChessGenius converter/adapter to winboard-UCI w16 to w32

Post by hgm »

I suppose that what you show here is the way to run UCI engines in the ChessGenius GUI. The fact that it employs a DLL shows that the native way for the ChessGenius GUI and engine to communicate with each other is by running the negine as a DLL to which the GUI then links. This is similar to the method used by Fritz or SMIRF (in the same sense as that UCI is similar to WB protocol in that they both work by exchanging text messages thruough pipes).

So what would be needed to run a ChessGenius engine under WinBoard is a .exe program (to be used as engine) that would link itself to the DLL that is the ChessGenius engine, and translate the CECP commands to the appropriate fnction calls in the engine DLL to have it do the job. Similar to the way the SMIRF engine (also a DLL) runs under WinBoard through the Smirfoglot.exe adapter.

The problem is that it should first be reverse-engineered what services the ChessGenius engine DLL provides, and how the GUI uses those to set it thinking, and evoke a move response (and possibly PV info). I suppose there is no info published on that, just like there isn't any info on the Fritz interface. It is in theory possible to do this by writing a 'spy' DLL that offers the same services as the engine DLL (the names of which can be obtained by standard commands to provide info over the contents of a DLL library), and just passes them on to the real thing, but writing on some log file what it has been doing. (The DLL equivalent to the InBetween adapter, as it were.)

Of course there is the additional problem that we are dealing with a w16 binary here. I am surprised you can run it at all. Is this because you are on a w32 system, and not a w64?