bug-gnubg
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re : Re : [Bug-gnubg] Tr : No-gui warnings ?


From: Massimiliano Maini
Subject: Re : Re : [Bug-gnubg] Tr : No-gui warnings ?
Date: Wed, 19 Aug 2009 15:35:10 +0000 (GMT)

One strange thing I've found (or that I've never noticed). If you do an "help 
set" 
in the CLI, you get this:

(No game) help set
set - Modify program parameters

Usage: set <subcommand>
Available subcommands:
analysis        Control parameters used when analysing moves
*appearance      Modify the look and feel of the graphical interface
automatic       Perform certain functions without user input
beavers         Set whether beavers are allowed in money game or not
board           Set up the board in a particular position. Accepted formats are:

 set board =2 (sets the board to match the second position in the hint list.)
 set board simple 3 2 4 0 -3 -5 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2
 set board 4PPgASjgc/ABMA (sets the board to match the position id.)

browser         Set web browser
cache           Set the size of the evaluation cache
calibration     Specify the evaluation speed to be assumed for time estimates
cheat           Control GNU Backgammon's manipulation of the dice
clockwise       Control the board orientation
*colours         Synonym for `set appearance'
confirm         Confirmation settings
crawford        Set whether this is the Crawford game
cube            Set the cube owner and/or value
cubeefficiency  Set parameters for cube evaluations
delay           Limit the speed at which moves are made
dice            Select the roll for the current move
display         Select whether the board is updated on the computer's turn
evaluation      Control position evaluation parameters
export          Set settings for export
*fullscreen      Change to full screen mode
gotofirstgame   Control whether you want to go to the first or last game when lo
ading matches or sessions
import          Set settings for import
sgf             Set settings for sgf
invert          Invert match equity table
jacoby          Set whether to use the Jacoby rule in money games
lang            Set your language preference
matchequitytable        Read match equity table from XML file
matchid         set Match ID
gnubgid         set gnubg ID
matchinfo       Record auxiliary match information
matchlength     Specify the default length for new matches
met             Synonym for `set matchequitytable'
output          Modify options for formatting results
*panelwidth      Set the width of the docked panels
player          Change options for one or both players
postcrawford    Set whether this is a post-Crawford game
priority        Set the priority of gnubg
prompt          Customise the prompt gnubg prints when ready for commands
ratingoffset    Set rating offset used for estimating abs. rating
record          Set whether all games in a session are recorded
rng             Select the random number generator algorithm
rollout         Control rollout parameters
score           Set the match or session score
seed            Set the dice generator seed
sound           Control audio parameters
*styledgamelist  Display colours for marked moves in game window
threads         Set the number of calculation threads
*toolbar         Change if icons and/or text are shown on toolbar
turn            Set which player is on roll
tutor           Control tutor setup
variation       Set which variation of backgammon is used
*vsync3d         Turn vertical sync on/off

There are some commands that are meaningful only in the GUI build and not in the
CLI one. I tried to flag with a * the ones I think are GUI only. Is that normal 
?? Maybe
that's related to the warning shown when CLI starts-uo on a gnubgrc generated 
by a
GUI exe.

In fact, my gnubgrc starts like this:

set lang system
set annotation no
set message no
set gamelist yes
set analysis window yes
set theorywindow no
set commandwindow no
set panels yes
set geometry main width 0
set geometry main height 0
set geometry main xpos 20
set geometry main ypos 20
set geometry main max yes
set geometry game width 250
set geometry game height 200
set geometry game xpos 20
set geometry game ypos 20
set geometry game max no
set geometry analysis width 0
set geometry analysis height 400
set geometry analysis xpos 20
set geometry analysis ypos 20
set geometry analysis max no
set geometry hint width 0
set geometry hint height 450
set geometry hint xpos 20
set geometry hint ypos 20
set geometry hint max no
set geometry message width 0
set geometry message height 500
set geometry message xpos 20
set geometry message ypos 20
set geometry message max no
set geometry command width 0
set geometry command height 0
set geometry command xpos 20
set geometry command ypos 20
set geometry command max no
set geometry theory width 0
set geometry theory height 0
set geometry theory xpos 20
set geometry theory ypos 20
set geometry theory max no
set panelwidth 373
set fullscreen off
set gui showids on
set gui animation slide
set gui animation speed 6
set gui beep off
set gui dicearea off
set gui highdiefirst on
set gui illegal off
set gui showpips wastage
set gui dragtargethelp on
set gui usestatspanel on
set gui movelistdetail on
set gui grayedit on
set gui windowpositions on
set styledgamelist on

and when I start the CLI on it I see this:

Unknown keyword `annotation'.
Unknown keyword `message'..
Unknown keyword `gamelist'.
Unknown keyword `window'.
Unknown keyword `theorywindow'.
Unknown keyword `commandwindow'.
Unknown keyword `panels'.
Unknown keyword `geometry'.
Unknown keyword `geometry'.
Unknown keyword `geometry'.
Unknown keyword `geometry'.
Unknown keyword `geometry'.
Unknown keyword `geometry'.
Unknown keyword `geometry'.
Unknown keyword `geometry'.
Unknown keyword `geometry'.
Unknown keyword `geometry'.
Unknown keyword `geometry'.
Unknown keyword `geometry'.
Unknown keyword `geometry'.
Unknown keyword `geometry'.
Unknown keyword `geometry'.
Unknown keyword `geometry'.
Unknown keyword `geometry'.
Unknown keyword `geometry'.
Unknown keyword `geometry'.
Unknown keyword `geometry'.
Unknown keyword `geometry'.
Unknown keyword `geometry'.
Unknown keyword `geometry'.
Unknown keyword `geometry'.
Unknown keyword `geometry'.
Unknown keyword `geometry'.
Unknown keyword `geometry'.
Unknown keyword `geometry'.
Unknown keyword `geometry'.
Unknown keyword `geometry'.
Unknown keyword `geometry'.
Unknown keyword `geometry'.
Unknown keyword `geometry'.
Unknown keyword `geometry'.
Unknown keyword `geometry'.
Unknown keyword `gui'.
Unknown keyword `gui'.
Unknown keyword `gui'.
Unknown keyword `gui'.
Unknown keyword `gui'.
Unknown keyword `gui'.
Unknown keyword `gui'.
Unknown keyword `gui'.
Unknown keyword `gui'.
Unknown keyword `gui'.
Unknown keyword `gui'.
Unknown keyword `gui'.
Unknown keyword `gui'.
(No game)

So the CLI version is complaining about commands it is not expecting, and they 
are
not in the "help set" output.
On the other hand, it is NOT complaining about commands like "set panelwidth"
or "set fullscreen", because they are "visible" in CLI (proff by "help set") 
even if they
make sense only in GUI exe.

In commands.inc some commands are in #if USE_GTK ...

Removing all the #if USE_GTK in command.inc would probably solve the warning 
issue,
but not the pfact that savingfrom CLI will lose GUI settings and the fact that 
"help set" in CLI
will show GUI-only commands.

MaX.

>
>De : Jonathan Kinsey <address@hidden>
>À : address@hidden
>Cc : address@hidden; address@hidden
>Envoyé le : Mercredi, 19 Août 2009, 9h58mn 24s
>Objet : Re: Re : [Bug-gnubg] Tr : No-gui warnings ?
>
> >
>I've got a feeling that these warnings were hidden in older versions, probably
>something to do with changes to how messages are shown.
>
>If you save the settings from a command line build you loose all the gui
>settings...  This area needs a bit of an overhaul I think, the whole needing to
>save any setting changes explicitly is very non-standard.
>
>Jon
>
>Michael Petch wrote:
>> On 18/08/09 8:52 AM, "Massimiliano Maini"  wrote:
>> 
>>> I don't remeber this in the past ...
>>>
>>> Much in favor of option B here.
>>>
>> 
>> It happens on older ones as far as I can remember (At least in the past
>> year). The current version from 0625 that I have installed does the same (I
>> just tried it), it throws a number of "unknown keywords" before giving the
>> (no game) prompt.
>> 
>> Option B is my preference. Option B is pretty much the -t option in *nix. I
>> am curious if we can build a GUI version on Win32 with a similar -t option.
>> I don't have a  windows build environment for GnuBG (yet) so I can't easily
>> try at the moment.
>> 
>> Michael
>> 
>> 
>> 
>> 
>> _______________________________________________
>> Bug-gnubg mailing list
>> address@hidden
>> http://lists.gnu..org/mailman/listinfo/bug-gnubg
>> 
>> 
>
>
>
>
>________________________________
Celebrate a decade of Messenger with free winks, emoticons, display pics, and 
more. Get Them Now








reply via email to

[Prev in Thread] Current Thread [Next in Thread]