Answers.Body: <p>Let <code>\path\to\endgame\tablebase\files</code> be ... the path to endgame tablebase files. This means that the directory should contains only tablebase files, and not for instance folder for up to 5 pieces tablebase files and a folder for 6 pieces tablebase files. The files are .rtbw or .rtbz files. (These are Syzygy files, I don't know how it works for Gaviotta files (for which DroidFish provides the gtb folder) but I guess it works the same.)</p>
  
  <p>The .rtbw files store win/draw/loss information including, where applicable, information on the 50-move rule. During the search only the .rtbw files are accessed. These files are "two-sided": they store information for both white to move and black to move.</p>
  
  <p>The .rtbz files store the distance-to-zero: the number of moves to the next capture or pawn move. These files only need to be accessed when the root position has 6 pieces or less. They are "single-sided".</p>
  
  <p>Anyway, all these files for up to 6 pieces endgames are in the folder <code>\path\to\endgame\tablebase\files</code> and now you should make DroidFish point to it. This takes place in DroidFish in "Settings --> Endgame Tablebases --> Syzygy Directory" where you have to put the complete path -- don't forget the "\" the path necessarily starts with.</p>
  
  <p>It may be stupid as you already put files in that folder so you think you know its path, but beware as for instance on my samsung galaxy, the application "My Files" (the samsung file explorer) gives me a wrong path : if I use the path it gives to me, I don't see that tablebase are used by the engine in analysis mode :</p>
  
  <p><a href="https://i.sstatic.net/YMTE0.jpg" rel="nofollow noreferrer"><img src="https://i.sstatic.net/YMTE0.jpg" alt="enter image description here"></a></p>
  
  <p>as in the last line there is only "d:35/55 3:g4 t:431.7 n:1935M nps:4483k h:99" and no "tb:x" in it. Recall that "d" is the depth of analysis expressed in number of moves, "3:g4" at this point indicates that the third best move is g4, "t" is the time spent on the analysis so far, expressed in seconds, "n" is the number of nodes the engine searched through, "nps" is the current number of nodes the engine searches through per second and "h" divided by 10 gives you how full in percent the hashtable is, in previous picture's case it is therefore 9.9% full. (These notations and definition are UCI engines standards.)</p>
  
  <p>The reason is that the "My Files" application does not give the absolute path to the folder. To get the absolute path to the folder, you have to use for instance the "<a href="https://play.google.com/store/apps/details?id=com.speedsoftware.explorer" rel="nofollow noreferrer">Explorer</a>" application which, while you browse, will display the absolute path the to place you browsed at.</p>
  
  <ul>
  <li>Example for a folder placed in the hard disk of my phone : <code>/storage/emulated/0/DroidFish/rtb</code></li>
  <li>Example for a folder placed in the micro sd card plugged in my phone : <code>/storage/3661-6463/Syzygy</code></li>
  </ul>
  
  <p>The <code>/storage/emulated/0/DroidFish/rtb</code> is a vanilla DroidFish folder that you should use if you have place enough on your phone's harddisk. In <code>/storage/3661-6463/Syzygy</code> the <code>/storage/3661-6463</code> is the absolute path of my micro sd card and the <code>Syzygy</code> is the folder I created in it.</p>
  
  <p>I give all these precisions about paths because what is for instance provided <a href="http://www.chess2u.com/t5347p15-droidfish" rel="nofollow noreferrer">here</a> does not work in my case. So beware, the absolute path (internal or external = on the sd card) depends on your device.</p>
  
  <p>When it works, the analysis looks like :</p>
  
  <p><a href="https://i.sstatic.net/FF5vu.jpg" rel="nofollow noreferrer"><img src="https://i.sstatic.net/FF5vu.jpg" alt="enter image description here"></a></p>
  
  <p>and you see the "tb:15" bit in the last analysis line, showing that the tablebased are used. The "tb" indicates the current number of tablebase consultations/hits by the engine. Sadly, even as Stockfish provide dtm and dtz information, they are not printed in droid fish analysis part and as far as I know there's no option allowing to tweak this ...</p>
  
  <p>I have a samsung galaxy s9+ with 64Gb of internal memory and a 250Gb micro sd card that contains 150Gb of endgame tablebase files versus a samsung galaxy s10+ with 1Tb of internal memory containing the same 150Gb of tablebase files and I don't see any real difference of performance. It's just a tiny bit slower on the s9+ when the analysis depth gets bigger, but nothing major. In any cases, it will crush any human more than 99% of the time on average. ;)</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-01-07T23:50:23.053Z
Answers.LastActivityDate: 2020-01-10T00:17:12.670Z
Answers.LastEditDate: 2020-01-10T00:17:12.670Z
Answers.UserDisplayName: Olórin
Body: <p>DroidFish has an rtb folder that should be used for wdl and dtz syzygy endgame tables. For the six pieces tables it represents roughly 80+60Gb and as I my phone has only 64Gb as internal memory, I would like to put the files on a SD card and make DroidFish point to them, but it does not seem to be possible. Is it really the case ? If not, how should I do ?</p>
  
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2020-01-04T22:51:34.767Z
Comments.Text: Will do as soon as I can test
Comments.UserDisplayName: Olórin
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2020-01-07T10:17:02.377Z
Comments.Text: Actually, I put each folder (for up to 5 pieces and both 6pieces wdl and dtz) in a same folder on the "external" SD Card (I stress the external because of the legacy surname "internal sd card" for the device hard, creating confusion here and there) an pointed to them in the endgame ("tablebase") DroidFish's setting and it works.
Comments.UserDisplayName: Olórin
Comments.ContentLicense: CC BY-SA 4.0
Comments.CreationDate: 2020-01-07T23:11:58.987Z
Comments.Text: Actually I was wrong, all files (rtbw and rtbz files for endgames up to 5 pieces and 6 pieces) should be the same directory and the directory can be on the phone hard disk or on a micro sd card, provided DroidFish points to it correctly, details in my answer.
Comments.UserDisplayName: Olórin
Tags: <endgame><android>
Title: DroidFish's rtb folder's file placed somewhere else
ThreadText: # DroidFish's rtb folder's file placed somewhere else
  
  (Asked by: username_0 on 2020-01-04)
  
  DroidFish has an rtb folder that should be used for wdl and dtz syzygy endgame tables. For the six pieces tables it represents roughly 80+60Gb and as I my phone has only 64Gb as internal memory, I would like to put the files on a SD card and make DroidFish point to them, but it does not seem to be possible. Is it really the case ? If not, how should I do ?
  
  **Tags:** endgame, android
  
  > **Comments:**
  > **username_0**: Will do as soon as I can test  
  > **username_0**: Actually, I put each folder (for up to 5 pieces and both 6pieces wdl and dtz) in a same folder on the "external" SD Card (I stress the external because of the legacy surname "internal sd card" for the device hard, creating confusion here and there) an pointed to them in the endgame ("tablebase") DroidFish's setting and it works.  
  > **username_0**: Actually I was wrong, all files (rtbw and rtbz files for endgames up to 5 pieces and 6 pieces) should be the same directory and the directory can be on the phone hard disk or on a micro sd card, provided DroidFish points to it correctly, details in my answer.  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_0 on 2020-01-07. Score: 2 | Accepted answer
  
  Let `\path\to\endgame\tablebase\files` be ... the path to endgame tablebase files. This means that the directory should contains only tablebase files, and not for instance folder for up to 5 pieces tablebase files and a folder for 6 pieces tablebase files. The files are .rtbw or .rtbz files. (These are Syzygy files, I don't know how it works for Gaviotta files (for which DroidFish provides the gtb folder) but I guess it works the same.)
  
  The .rtbw files store win/draw/loss information including, where applicable, information on the 50-move rule. During the search only the .rtbw files are accessed. These files are "two-sided": they store information for both white to move and black to move.
  
  The .rtbz files store the distance-to-zero: the number of moves to the next capture or pawn move. These files only need to be accessed when the root position has 6 pieces or less. They are "single-sided".
  
  Anyway, all these files for up to 6 pieces endgames are in the folder `\path\to\endgame\tablebase\files` and now you should make DroidFish point to it. This takes place in DroidFish in "Settings --> Endgame Tablebases --> Syzygy Directory" where you have to put the complete path -- don't forget the "\" the path necessarily starts with.
  
  It may be stupid as you already put files in that folder so you think you know its path, but beware as for instance on my samsung galaxy, the application "My Files" (the samsung file explorer) gives me a wrong path : if I use the path it gives to me, I don't see that tablebase are used by the engine in analysis mode :
  
  [![enter image description here](https://i.sstatic.net/YMTE0.jpg)](https://i.sstatic.net/YMTE0.jpg)
  
  as in the last line there is only "d:35/55 3:g4 t:431.7 n:1935M nps:4483k h:99" and no "tb:x" in it. Recall that "d" is the depth of analysis expressed in number of moves, "3:g4" at this point indicates that the third best move is g4, "t" is the time spent on the analysis so far, expressed in seconds, "n" is the number of nodes the engine searched through, "nps" is the current number of nodes the engine searches through per second and "h" divided by 10 gives you how full in percent the hashtable is, in previous picture's case it is therefore 9.9% full. (These notations and definition are UCI engines standards.)
  
  The reason is that the "My Files" application does not give the absolute path to the folder. To get the absolute path to the folder, you have to use for instance the "[Explorer](https://play.google.com/store/apps/details?id=com.speedsoftware.explorer)" application which, while you browse, will display the absolute path the to place you browsed at.
  
  * Example for a folder placed in the hard disk of my phone : `/storage/emulated/0/DroidFish/rtb`
  * Example for a folder placed in the micro sd card plugged in my phone : `/storage/3661-6463/Syzygy`
  
  The `/storage/emulated/0/DroidFish/rtb` is a vanilla DroidFish folder that you should use if you have place enough on your phone's harddisk. In `/storage/3661-6463/Syzygy` the `/storage/3661-6463` is the absolute path of my micro sd card and the `Syzygy` is the folder I created in it.
  
  I give all these precisions about paths because what is for instance provided [here](http://www.chess2u.com/t5347p15-droidfish) does not work in my case. So beware, the absolute path (internal or external = on the sd card) depends on your device.
  
  When it works, the analysis looks like :
  
  [![enter image description here](https://i.sstatic.net/FF5vu.jpg)](https://i.sstatic.net/FF5vu.jpg)
  
  and you see the "tb:15" bit in the last analysis line, showing that the tablebased are used. The "tb" indicates the current number of tablebase consultations/hits by the engine. Sadly, even as Stockfish provide dtm and dtz information, they are not printed in droid fish analysis part and as far as I know there's no option allowing to tweak this ...
  
  I have a samsung galaxy s9+ with 64Gb of internal memory and a 250Gb micro sd card that contains 150Gb of endgame tablebase files versus a samsung galaxy s10+ with 1Tb of internal memory containing the same 150Gb of tablebase files and I don't see any real difference of performance. It's just a tiny bit slower on the s9+ when the analysis depth gets bigger, but nothing major. In any cases, it will crush any human more than 99% of the time on average. ;)
  
  
  ---
  
  