At 23:56 27.11.2002 +0100, Øystein Johansen wrote:
>>===== Original Message From "Nardy Pillards" <address@hidden> =====
>>> At 15:27 27.11.2002 -0000, Ian Shaw wrote:
>>> >Windows file association works only if the .sgf file is in the same
>>> >directory as gnubg.exe.
>>(hmmm... well: Yes, the .sgf must be in the Installed Dir at this moment.
>>Maybe add Registry Entries?)
>I think we rather should make a sgf laucher program. A program that looks at
>the sgf file and finds out whenever this is a Go file or Backgammon file or
>whatever file. Then the program can launch the right application based on
>environment variables. The user can set environmant variables
>SGF_BACKGAMMON_PROGRAM, SGF_GO_PROGRAM, SGF_WHATEVER_PROGRAM,
>I think this will be the best solution, since it will work for all (?)
>systems, and also cooperate for players who plays Go as well.
>And, such a program won't be many lines.
Good idea. The problem of dealing with spaces in path names, however, remains a GNUbg issue. The program has to cope with it anyway.
But the launcher program shouldn't be based on environment variables. The SGF format provides a property that states what kind of game it is.
Propvalue: number (range: 1-16)
Function: Defines the type of game, which is stored in the current
gametree. The property should help applications
to reject games, they cannot handle.
Valid numbers are: Go = 1, Othello = 2, chess = 3,
Gomoku+Renju = 4, Nine Men's Morris = 5, Backgammon = 6,
Chinese chess = 7, Shogi = 8, Lines of Action = 9,
Ataxx = 10, Hex = 11, Jungle = 12, Neutron = 13,
Philosopher's Football = 14, Quadrature = 15, Trax = 16,
Tantrix = 17, Amazons = 18, Octi = 19, Gess = 20.
Default value: 1