SFNNv9.5.3_240420 released...

Discussion about chess-playing software (engines, hosts, opening books, platforms, etc...)
Amos 4ever
Posts: 62
Joined: Sun Aug 10, 2014 9:42 pm
Real Name: Marco Zerbinati

Re: SFNNv9.5.3_240420 released...

Post by Amos 4ever » Wed Apr 24, 2024 6:38 pm

Eduard..

Code: Select all

std::cout << "OptimalTime " << SE::tmOptTime << sync_endl;
This line prints the value of "tmOptTime" using std::cout.
OptimalTime is just the reference to the variable and could be named anything else.

SE namespace = Stockfish::Eval;: This line creates an SE alias for the Stockfish::Eval namespace. This means that within this portion of code, SE will be used as shorthand for the Stockfish::Eval namespace.
The line is only used during debugging and you can delete it and recompile
Regards
M.Z
Eduard Nemeth wrote:
Wed Apr 24, 2024 4:53 pm
Does anyone know Joachim26's email? I can not find them.

https://github.com/Joachim26/StockfishNPS/releases

On lichess under BotLi I get an error message with the engine. Something is wrong in the UCI protocol.

Error message ... "OptimalTime". This does not exist in the UCI protocol.

I found this line in search.cpp:


//SFnps Begin
namespace SE = Stockfish::Eval;

int mediumNetTH = int(options["Mediumnet Threshold"]);
SE::tmOptTime = main_manager()->tm.optimum();
SE::mediumNetOn = (SE::tmOptTime < mediumNetTH);

std::cout << "OptimalTime " << SE::tmOptTime << sync_endl;


Maybe the line needs to read "OptimumTime" and not "OptimalTime"?

Eduard Nemeth
Posts: 632
Joined: Thu Jun 10, 2010 12:50 am

Re: SFNNv9.5.3_240420 released...

Post by Eduard Nemeth » Wed Apr 24, 2024 6:57 pm

Thank You Marco!

I'll delete the line.

Under BotLi there was always the following message after every move! Only when I deleted the line in search.cpp did these messages no longer appear. It's no fun when this message keeps coming.

______ _ _ _
| ___ \ | | | | (_)
| |_/ / ___ | |_| | _
| ___ \/ _ \| __| | | |
| |_/ / (_) | |_| |___| |
\____/ \___/ \__\_____/_| nogit

WARNING:chess.engine:<UciProtocol (pid=3260)>: Unexpected engine output:
'OptimalTime 7923434971689412983'
lenschess-com (player): Hi! I'm lenschess-com. Good luck! Type !help for a list
of commands I can respond to.
lenschess-com (spectator): Hi! I'm lenschess-com. Type !help for a list of
commands I can respond to.
Book: 2. Nc3 100 %
WARNING:chess.engine:<UciProtocol (pid=3260)>: Unexpected engine output:
'OptimalTime 7923434971689412983'
Book: 3. Nf3 100 %
WARNING:chess.engine:<UciProtocol (pid=3260)>: Unexpected engine output:
'OptimalTime 7923434971689412983'
Book: 4. e4 100 %
WARNING:chess.engine:<UciProtocol (pid=3260)>: Unexpected engine output:
'OptimalTime 7923434971689412983'
(---)
Peace be with you!

Post Reply