![](https://damforum.nl/bb3/images/ua.png)
Scan hub setting
Scan hub setting
Hi all,
For those who are interested by Scan hub GUI for have pondering option, save game, edit position.
For those who haven't Java installed you can download the offline setup here: http://www61.zippyshare.com/v/TLGW76zj/file.html
*1. Edit your hub.ini file like this: ( just replace the line "engine-dir" by your Scan 2.0 exe directory's) you can adjust game time also.
engine-name = Scan2.0
engine-dir = C:\Users\user\Desktop\scan_20
engine-command =
./scangui-square = 60 gui-font = 25gui-oval = true
game-moves = 75
game-time = 1
game-inc = 0
game-ponder = true
*2. Edit the "engine.ini" according to your Computer core, this is mine's:
book = true
book-margin = 0
ponder = true
threads = 4
tt-size = 24
bb-size = 6
*3. Now open hub.jar, you will see "init" this mean that it's loading the egdb
When it will be ready you will see this
After the few opening moves, you will see this, that prove that Scan it is pondering (44-39) it's the move planned by Scan 2.0
If you want to play with white play directly
If you want to play with Black press (G), Scan will play
Reverse board (R)
New game (N)
left/right -> undo/redo one ply
up/down -> undo/redo full game
Analyse current position (A)
Save game (S) a pdn file "game.pdn" will be created in Scan 2.0 directory
Load a game (L)
To edit a position be sure that a game it's not save, open a text file and edit it like this example:
[FEN
"W:W25,28,31-33,35-38,42-49:B1-4,8-19,23,24"]
and then save it as "game.pdn" into Scan 2.0 directory, open Scan 2.0 and press (L) Load you will get this:
Thank,
Sidiki
For those who are interested by Scan hub GUI for have pondering option, save game, edit position.
For those who haven't Java installed you can download the offline setup here: http://www61.zippyshare.com/v/TLGW76zj/file.html
*1. Edit your hub.ini file like this: ( just replace the line "engine-dir" by your Scan 2.0 exe directory's) you can adjust game time also.
engine-name = Scan2.0
engine-dir = C:\Users\user\Desktop\scan_20
engine-command =
./scangui-square = 60 gui-font = 25gui-oval = true
game-moves = 75
game-time = 1
game-inc = 0
game-ponder = true
*2. Edit the "engine.ini" according to your Computer core, this is mine's:
book = true
book-margin = 0
ponder = true
threads = 4
tt-size = 24
bb-size = 6
*3. Now open hub.jar, you will see "init" this mean that it's loading the egdb
When it will be ready you will see this
After the few opening moves, you will see this, that prove that Scan it is pondering (44-39) it's the move planned by Scan 2.0
If you want to play with white play directly
If you want to play with Black press (G), Scan will play
Reverse board (R)
New game (N)
left/right -> undo/redo one ply
up/down -> undo/redo full game
Analyse current position (A)
Save game (S) a pdn file "game.pdn" will be created in Scan 2.0 directory
Load a game (L)
To edit a position be sure that a game it's not save, open a text file and edit it like this example:
[FEN
"W:W25,28,31-33,35-38,42-49:B1-4,8-19,23,24"]
and then save it as "game.pdn" into Scan 2.0 directory, open Scan 2.0 and press (L) Load you will get this:
Thank,
Sidiki
-
- Posts: 299
- Joined: Tue Jul 07, 2015 07:48
- Real name: Fabien Letouzey
Re: Scan hub setting
Hi Sidiki,
My text files are in Unix (LF) format and probably need to be converted to Windows (CRLF) format. I assumed that most text editors would do that automatically, but apparently not.
Thanks again,
Fabien.
Thanks, that's very helpful!Sidiki wrote:Hi all,
For those who are interested by Scan hub GUI for have pondering option, save game, edit position.
...
These should be separate lines:engine-command =
./scangui-square = 60 gui-font = 25gui-oval = true
Code: Select all
engine-command = ./scan
gui-square = 60
gui-font = 25
gui-oval = true
Thanks again,
Fabien.
Re: Scan hub setting
Hi Fabien,
Thank for this detail, it's was important to know what was really any code line .
Thank.
Sidiki
Thank for this detail, it's was important to know what was really any code line .
Thank.
Sidiki
-
- Posts: 1368
- Joined: Thu Jun 20, 2013 17:16
- Real name: Krzysztof Grzelak
Re: Scan hub setting
Thank you Sidiki and Fabien. I would like to try it out and I have such a question. What should be the correct entry if I have program Scan 2.0 on D:\ in the folder Scan Interational. I mean the entry engine-dir =
-
- Posts: 299
- Joined: Tue Jul 07, 2015 07:48
- Real name: Fabien Letouzey
Re: Scan hub setting
Hub doesn't handle spaces in the INI file. You'll need to rename the directory.Krzysztof Grzelak wrote:Thank you Sidiki and Fabien. I would like to try it out and I have such a question. What should be the correct entry if I have program Scan 2.0 on D:\ in the folder Scan Interational. I mean the entry engine-dir =
-
- Posts: 1368
- Joined: Thu Jun 20, 2013 17:16
- Real name: Krzysztof Grzelak
Re: Scan hub setting
Thank you very much Fabien. I still have some questions Fabien to You.Fabien Letouzey wrote:Hub doesn't handle spaces in the INI file. You'll need to rename the directory.
1. Is it possible to have a sound when making moves on a board
2. Is it possible to make the time on both sides flow every one second
3. Is it possible to play with another program using dxp
4. Write what the word means "Hit"
Krzysztof
-
- Posts: 299
- Joined: Tue Jul 07, 2015 07:48
- Real name: Fabien Letouzey
Re: Scan hub setting
Sound is supposed to work, although only for Scan's moves. There is some chance that the AIFF format is not recognised on Windows. Find a .WAV elsewhere, put it into Hub's directory, and set the new name in hub.ini That's just a guess, though.Krzysztof Grzelak wrote:1. Is it possible to have a sound when making moves on a board
Hub reacts only to external events such as a mouse click or the engine sending information. That's why the clocks are updated only between moves. I don't know any easy way to change that.2. Is it possible to make the time on both sides flow every one second
There's no DXP yet. I've been asked about this multiple times, so it's possible that I implement something in the future. That's still a lot of work, however.3. Is it possible to play with another program using dxp
"Hit" (for "ponder hit") means that the user played the move that Scan expected during pondering (the one inside brackets); the search continues from where it was.4. Write what the word means "Hit"
A different move would be called "ponder miss" and a new search has to be launched. Hub would display this as "Think" (same as a move without pondering).
-
- Posts: 1368
- Joined: Thu Jun 20, 2013 17:16
- Real name: Krzysztof Grzelak
Re: Scan hub setting
Thank you for your reply Fabien. Can I still ask you for the sound of the program, because it is very important in my tournaments. I put the Wav file into a folder hub - I attach a picture. Can you write what command should be in the file hub.ini - to make the sound work.
- Attachments
-
- Sound.jpg (37.14 KiB) Viewed 10402 times
-
- Posts: 299
- Joined: Tue Jul 07, 2015 07:48
- Real name: Fabien Letouzey
Re: Scan hub setting
It should be:Krzysztof Grzelak wrote:Thank you for your reply Fabien. Can I still ask you for the sound of the program, because it is very important in my tournaments. I put the Wav file into a folder hub - I attach a picture. Can you write what command should be in the file hub.ini - to make the sound work.
Code: Select all
gui-sound = DAM3.WAV
-
- Posts: 1368
- Joined: Thu Jun 20, 2013 17:16
- Real name: Krzysztof Grzelak
Re: Scan hub setting
Thanks Fabien. The sound works. Fabien is whether it is possible to watch while running a program as the program is working. Please look at the picture - as you see on your laptop next to you GUI can see also how the program works.
- Attachments
-
- Scan.jpg (61.71 KiB) Viewed 10383 times
-
- Posts: 299
- Joined: Tue Jul 07, 2015 07:48
- Real name: Fabien Letouzey
Re: Scan hub setting
You have good eyesKrzysztof Grzelak wrote:Thanks Fabien. The sound works. Fabien is whether it is possible to watch while running a program as the program is working. Please look at the picture - as you see on your laptop next to you GUI can see also how the program works.
![Smile :)](./images/smilies/icon_smile.gif)
I launch Hub from the command line like this:
1) open a console
2) go to Hub's directory with the "cd" command
3) type "java -jar hub.jar"
Hub will run normally, but the console will also show all the communication between Hub and Scan. However you can already see the search information below Hub's board, so the console will not add much.
-
- Posts: 1368
- Joined: Thu Jun 20, 2013 17:16
- Real name: Krzysztof Grzelak
Re: Scan hub setting
Thank you very much but it is a bit complicated for me and especially for this
I launch Hub from the command line like this:
1) open a console
2) go to Hub's directory with the "cd" command
3) type "java -jar hub.jar"
I'm sorry to ask but how to open this console.
I launch Hub from the command line like this:
1) open a console
2) go to Hub's directory with the "cd" command
3) type "java -jar hub.jar"
I'm sorry to ask but how to open this console.
-
- Posts: 299
- Joined: Tue Jul 07, 2015 07:48
- Real name: Fabien Letouzey
Re: Scan hub setting
My bad; apparently it is called "Command Prompt" on Windows, and not "Console" as I thought (because of "Console Application"). On Linux and macOS, it is called "Terminal".Krzysztof Grzelak wrote:I'm sorry to ask but how to open this console.
You can find many tutorials on command prompt like these ones:
http://www.cs.princeton.edu/courses/arc ... rompt.html
https://www.bleepingcomputer.com/tutori ... roduction/
http://www.digitalcitizen.life/command- ... c-commands
However, knowing what you intend to do with it, I think it's not worth for you to learn this yet. It's only a little bit more information.
-
- Posts: 1368
- Joined: Thu Jun 20, 2013 17:16
- Real name: Krzysztof Grzelak
Re: Scan hub setting
Thank you for all the help Fabien. I wonder if the tournament moves you enter manually or using the mouse. I think using the cmd command to use the program is much better.
Re: Scan hub setting
The command mode worked for me. It's funny to see what happening during the game into the command.