Scid vs. PC 4.14

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

Moderators: hgm, Rebel, chrisw

User avatar
Ozymandias
Posts: 1532
Joined: Sun Oct 25, 2009 2:30 am

Re: Scid vs. PC 4.14

Post by Ozymandias »

Ferdy wrote:For MBB and SB just right-click the Board pane (right-click on the word "Board") then uncheck the button bar and status bar.
For Player Names I don't know how to hide it, because even if the game info is disabled (right-click Board pane) the player names of loaded pgn are still there. But there is a hack, goto Options->Windows->Auto resize board. Uncheck this auto resize board, after which drag-adjust the bottom edge of the guy until the game info pane is totally hidden.
Thnx, I didn't see the "Board" pane in my current configuration, but that worked. The hack was also a success for the player names, although the material imbalance still shows partially to the right of the board (when there is one).

Image
Ferdy
Posts: 4833
Joined: Sun Aug 10, 2008 3:15 pm
Location: Philippines

Re: Scid vs. PC 4.14

Post by Ferdy »

Ozymandias wrote:
Ferdy wrote:For MBB and SB just right-click the Board pane (right-click on the word "Board") then uncheck the button bar and status bar.
For Player Names I don't know how to hide it, because even if the game info is disabled (right-click Board pane) the player names of loaded pgn are still there. But there is a hack, goto Options->Windows->Auto resize board. Uncheck this auto resize board, after which drag-adjust the bottom edge of the guy until the game info pane is totally hidden.
Thnx, I didn't see the "Board" pane in my current configuration, but that worked. The hack was also a success for the player names, although the material imbalance still shows partially to the right of the board (when there is one).
I don't know what happened to your Board pane name not showing in the main board, but I have.
Regarding material imbalance, you can hide it by Options->game information->Toggle material. Press this toggle until the material imbalance is hidden. You can also press this to hide/unhide materials that were exchanged.

Image
User avatar
Ozymandias
Posts: 1532
Joined: Sun Oct 25, 2009 2:30 am

Re: Scid vs. PC 4.14

Post by Ozymandias »

Ferdy wrote:I don't know what happened to your Board pane name not showing in the main board, but I have.
Regarding material imbalance, you can hide it by Options->game information->Toggle material. Press this toggle until the material imbalance is hidden. You can also press this to hide/unhide materials that were exchanged.
Oh, that's just me NOT pressing F11. That way, the OS X menu bar is fixed to the top of the screen, and hides just that portion of the program. I like it btter this way, but I forgot about the top panes, simply because I don't usually see them :oops:
And I had not realized you had to press on "Toggle material" several times, I had tried it, but just the once. Now everything looks great, who needs HCE to have a nice looking chess GUI for Mac, with plenty of functionality to boot?:

Image
stevenaaus
Posts: 608
Joined: Wed Oct 13, 2010 9:44 am
Location: Australia

Can't compact database

Post by stevenaaus »

I should probably just mention this resolved bug. Some people have reported they can't compact databases on windows. It's due to having a chess engine open. :evil:

On windows, opening a base, and then an engine, means the engine will prevent removal of the old si4 file during compaction. (It's due to file descriptor inheritance of the forked engine)

I have written some checks to enforce this (in subversion) but since 4.15 is not coming out soon - for the moment the work around is to close all engines first.
Dann Corbit
Posts: 12538
Joined: Wed Mar 08, 2006 8:57 pm
Location: Redmond, WA USA

Re: Scid vs. PC 4.14

Post by Dann Corbit »

Thanks for your efforts.
Your version of the Scid family of GUIs is the only one I can use, because it allows plenty of games (16M) plenty of players (1M), half a million event names and site names.

I have to clobber all the round names since only 262143 are allowed, I change every round tag to say [Round "?"].

I forget if it is CCRL or CEGT or both, but there are over a million round names in all the files formatted something like this:
[Round "12.1.611"].

So I just run this program as a filter against the files:

Code: Select all

#include <stdio.h>
#include <stdlib.h>
#include <string.h>

char string&#91;32767&#93;;
char *getsafe&#40;char *buffer, int count&#41;
&#123;
    char *result = buffer, *np;
    if (&#40;buffer == NULL&#41; || &#40;count < 1&#41;)
        result = NULL;
    else if &#40;count == 1&#41;
        *result = '\0';
    else if (&#40;result = fgets&#40;buffer, count, stdin&#41;) != NULL&#41;
        if &#40;np = strchr&#40;buffer, '\n'))
            *np = '\0';
    return result;
&#125;


int main&#40;void&#41;
&#123;
    while &#40;getsafe&#40;string, sizeof string&#41;)
    &#123;
        if &#40;strstr&#40;string, "&#91;Round \""))
        &#123;
            puts&#40;"&#91;Round \"?\"&#93;");
        &#125;
        else
                puts&#40;string&#41;;
    &#125;
    return 0;
&#125;
Zenmastur
Posts: 919
Joined: Sat May 31, 2014 8:28 am

Re: Another apparent bug

Post by Zenmastur »

When analyzing games longer than 250 moves there seems to be a problem. The engine output is suppressed. The engine states bar that can be turned on and appears at the bottom still works but the main engine window has no output after whites 250th move. i.e. blacks 250 move will have no output. I test this with the latest version of Stockfish.

I rebooted and restarted the program to make sure there wasn't some other issue. I didn't try other engines however. At the time this first occurred I was analyzing the random games published by Steven Edwards published on the Programming forum on May 13.

If anyone else can replicate this it would be helpful.

Regards,

Zen
Only 2 defining forces have ever offered to die for you.....Jesus Christ and the American Soldier. One died for your soul, the other for your freedom.
Ferdy
Posts: 4833
Joined: Sun Aug 10, 2008 3:15 pm
Location: Philippines

Re: Another apparent bug

Post by Ferdy »

Zenmastur wrote:When analyzing games longer than 250 moves there seems to be a problem. The engine output is suppressed. The engine states bar that can be turned on and appears at the bottom still works but the main engine window has no output after whites 250th move. i.e. blacks 250 move will have no output. I test this with the latest version of Stockfish.

I rebooted and restarted the program to make sure there wasn't some other issue. I didn't try other engines however. At the time this first occurred I was analyzing the random games published by Steven Edwards published on the Programming forum on May 13.

If anyone else can replicate this it would be helpful.

Regards,

Zen
I have experienced the same problem.
stevenaaus
Posts: 608
Joined: Wed Oct 13, 2010 9:44 am
Location: Australia

Re: Another apparent bug

Post by stevenaaus »

Zenmastur wrote:When analyzing games longer than 250 moves there seems to be a problem. The engine output is suppressed.
Yah, there is a 500 ply hard limit in tkscid. SCID simply uses FEN to send to the engines, but we are doing things (properly) sending the whole movelist.

Fix is easy, but we are chewing up more memory. I don't think it's signifcant though. Only one structure of 500 or 1000 x 10 chars = 5k to 10k

What is a good limit ? I could only find computer games longer than 250 moves.

Code: Select all

--- src/tkscid.cpp      &#40;revision 2267&#41;
+++ src/tkscid.cpp      &#40;working copy&#41;
@@ -7926,7 +7926,7 @@
     bool sanFormat = true;
     bool printMoves = true;
     bool listFormat = false;
-    const uint MAXMOVES = 500;
+    const uint MAXMOVES = 1000;
 #ifdef WINCE
     sanStringT * moveStrings = &#40;sanStringT * ) my_Tcl_Alloc&#40;sizeof&#40; sanStringT &#91;MAXMOVES&#93;));
 #else
If you just need a tcl workaround, do this

Code: Select all

--- tcl/tools/analysis.tcl      &#40;revision 2269&#41;
+++ tcl/tools/analysis.tcl      &#40;working copy&#41;
@@ -3602,7 +3602,7 @@
   ### seems erroneous... what about vars/backtracking ??
   # if &#123;$movelist == $old_movelist&#125; &#123; return &#125;
 
-  if &#123;$movelist == "0000"&#125; &#123;
+  if &#123;1&#125; &#123;
     # null move in this line, so just go by fen
     set movelist ""
     set nonStdStart 1
stevenaaus
Posts: 608
Joined: Wed Oct 13, 2010 9:44 am
Location: Australia

Re: Another apparent bug

Post by stevenaaus »

Haha - we can just malloc the required size. No limit required of course. I'll make a tkscid.cpp commit shortly. Dog knows how that hard limit ever got in.
Last edited by stevenaaus on Mon May 18, 2015 11:48 am, edited 1 time in total.
Ferdy
Posts: 4833
Joined: Sun Aug 10, 2008 3:15 pm
Location: Philippines

Re: Another apparent bug

Post by Ferdy »

stevenaaus wrote:Haha - we can just malloc the required size. No limit required of course. I'll make a tkscid.cpp commit shortly.
All right, I have just finished downloading the 100k random games of Steven and I got the max move at 396. Here is that pgn.

[pgn]
[Event "Random Game Collection"]
[Site "gail"]
[Date "????.??.??"]
[Round "11240"]
[White "/dev/urandom"]
[Black "/dev/urandom"]
[Result "1/2-1/2"]
[ECO "A00"]
[Termination "Black draws by the fifty move rule"]

1.g4 f6 2.h4 g5 3.d4 c5 4.b3 e6 5.f3 Be7 6.Rh3 h5 7.Qd2 gxh4 8.f4 Rh6 9.Rf3 e5 10.Na3 d5 11.dxe5 hxg4 12.Qc3 Kf7 13.Rb1 Kf8 14.Qe3 Bd7 15.b4 f5 16.Rg3 b5 17.Qc3 Nc6 18.Kd2 a6 19.Qxc5 Bc8 20.Bh3 Nxe5 21.Qb6 Rc6 22.Rgb3 Rb8 23.Qa7 Kg7 24.c3 Nd7 25.Qb6 Kf7 26.Qxc6 Ndf6 27.Qc4 Bf8 28.Ke3 Qd6 29.Bf1 Nh6 30.Qd3 Qd8 31.c4 Nfg8 32.Qxf5+ Ke7 33.Qf6+ Kxf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