Where in SCID source code is engine launched?

Discussion of chess software programming and technical issues.

Moderator: Ras

Steve Brown
Posts: 9
Joined: Fri Apr 25, 2025 9:40 pm
Location: USA
Full name: Steven Brown

Where in SCID source code is engine launched?

Post by Steve Brown »

I haven't been able to find the file and function or method in the source code files of SCID where the UCI chess engine is actually launched. I also looked in the source of SCID vs PC. Help would be appreciated.
unserializable
Posts: 65
Joined: Sat Oct 24, 2020 6:39 pm
Full name: Taimo Peelo

Re: Where in SCID source code is engine launched?

Post by unserializable »

Piqued curiosity & downloaded from https://sourceforge.net/projects/scidvspc/ file scid_vs_pc-4.26.tgz (SHA256 checksum 386eda599c058c3da9fef64de2f5248d51204e00715b94babeb09976c36afa87).

In the unpacked archive, there is in tcl/tools folder file uci.tcl with procedure uciConfig that has execution
snippet (line 532):

Code: Select all

    # Try to execute the analysis program:
    if {[catch {set pipe [open "| [list $cmd] $arg" "r+"]} result]} {
      if {$oldpwd != ""} { catch {cd $oldpwd} }
      if {[winfo exists .engineEdit]} {
        set parent .engineEdit
      } else {
        set parent .
      }
      # This is broke on OS X... messageBox does not draw until user destroys .splash
      tk_messageBox -title "Error starting UCI engine" \
          -icon warning -type ok -message "Unable to start program \n$cmd $arg" -parent $parent
      return
    }
For executions then, look for any uciConfig call sites. Good luck!
Monchester 1.0, chess engine playing at scholastic level: https://github.com/unserializable/monchester ("Daddy, it is gonna take your horsie!")
Tickle Monchester at: https://lichess.org/@/monchester
Fulvio
Posts: 396
Joined: Fri Aug 12, 2016 8:43 pm

Re: Where in SCID source code is engine launched?

Post by Fulvio »

Steve Brown wrote: Fri May 02, 2025 3:53 pm I haven't been able to find the file and function or method in the source code files of SCID where the UCI chess engine is actually launched.
https://github.com/benini/scid/blob/git ... m.tcl#L161