How to bypass the startup dialog

Discussions about Winboard/Xboard. News about engines or programs to use with these GUIs (e.g. tournament managers or adapters) belong in this sub forum.

Moderator: Andres Valverde

How to bypass the startup dialog

Postby pvolt » 03 Nov 2009, 19:59

Hi, I just recently downloaded Winboard 4.4.0, I used to use winboard 4.2.7. One thing I find annoying is that when I double click on a pgn file, 4.4.0 presents me the startup dialog, then I have to choose the option "just edit games" to continue, whereas 4.2.7 immediately loads the pgn file, which is much more desirable. How do I disable or bypass the startup box so that I can open a PGN file right away?

Thanks a lot!
pvolt
 
Posts: 2
Joined: 02 Nov 2009, 21:51

Re: How to bypass the startup dialog

Postby H.G.Muller » 03 Nov 2009, 23:09

To start directly in game-viewer mode, WinBoard neads the -ncp option. This was the same in 4.2.7. You must somehow have associated the PGN extension with the wrong application. The installer creates a game-viewer shortcut in your menu tree that contains the command "winboard @viewer", which uses the settings from the file viewer.ini in the WinBoard folder. This settings file contains the /ncp argument. It sounds like you have the PGN extension associated directly to winboard.exe. But without command-line options, WinBoard always starts with the startup dialog. You either must have "xboard -ncp" in the target line of the shortcut, or have -ncp in the file you metion after @ in the shortcut.
User avatar
H.G.Muller
 
Posts: 3453
Joined: 16 Nov 2005, 12:02
Location: Diemen, NL

Re: How to bypass the startup dialog

Postby Michel » 04 Nov 2009, 05:29

A good alternative is to open xboard with a chess engine instead of with ncp. If you turn on analysis mode you can follow what the engine thinks of the moves.

For real analysis (where you want to try moves yourself without destroying the loaded game) xboard is still missing a relatively standard feature. Instead of being linear the game should be a tree. This is what Arena and Scid do (and probably other GUI's as well).
Michel
 
Posts: 513
Joined: 01 Oct 2008, 12:15

Re: How to bypass the startup dialog

Postby H.G.Muller » 04 Nov 2009, 08:32

This would require a major redesign. Currently, the heart of XBoard is a single stack of boards, which cntains the game history, through which you can step with the arrow keys. I guess what is needed is another stack of boards, where you can shelve the top of the game-history stack when you start playing out a variation. (Currently this just discards the top of the game-history stack.) Pressing "revert" could then restore the game history and erase the variation you have just been building.

A similar issue is variations in a PGN. Currently they are treated as comments, saved as text with every move. There could be a menu item for shelving the rest of the main line, parse the variation, and substitute that for the remainder of the game. This would then contain sub-variations as comments, so that you could repeat the process. XBoard would have to keep track of how many levels deep you are in the sub-variation tree, and "revert" should then restore one level. So the shelving memory should be organized as a stack. Each variation would have to remember the original first and last plyNumber of the game history, and from where to where they are stored in the shelving stack. Of course the shelving stack could be simply the high end of the normal game-history array, growing down.

Hmm, this sounds not so difficult as I first thought. In fact it could be almost trivial...

Before it can be implemented, a known bug in the storing of comments should be fixed, though. Currently everything between {}, () or [] is considered comment, and the delimeters are stripped off before concatenating those that belong to the same move. On saving the PGN the whole thinng is then put between {}. This loses the sub-variation parentheses. It also produces invalid PGN, with nested {{}}, if there originlly was a variation that contained a comment: ({}). So the system must be changed first to save comments including their original delimiters.

Of course after playing out a variation, there must be a revert option that appends this variation as a comment to the move to which you revert.

This sounds like a great idea. I will think some more about it, in particular how it could be combined with my idea to play "tree matches" between therr engines, for comparing closely related engines (i.e. play A and A' against B.) This would naturally produce a tree of variations, as A and A' would now and then choose different moves, which would then be played out by both A and A'. The sequel of the move from A could then be designated "main line", the sequel of the move by A' the "variation". I guess the XBoard PGN parser would have to be improved to handle sufficiently deep nesting of sub-variations in this case.
User avatar
H.G.Muller
 
Posts: 3453
Joined: 16 Nov 2005, 12:02
Location: Diemen, NL

Re: How to bypass the startup dialog

Postby pvolt » 16 Nov 2009, 20:07

Thanks everyone for posting replies, especially for H.G.'s explanation. I now understand that PGN files should be associated with the shortcut "PGN Viewer" in the binary folder. However, after I did that, Windows would give an error message" xxx.pgn is not a valid windows program", it seemed that the shortcut didn't do anything, Windows was trying to execute the pgn file. I even created a shortcut myself, with "-ncp" option on the command line, still the same.

Probably something was messed up during the installation. I then uninstalled winboard 4.4.0 and installed the newer 4.4.1. During the process, 4.4.1 specifically me asked me whether to associate PGN and FEN files. Then everything is okay, I am able to open pgn files without the startup dialog. 4.4.1 is great.

Again, thanks a lot!
pvolt
 
Posts: 2
Joined: 02 Nov 2009, 21:51


Return to Winboard and related Topics

Who is online

Users browsing this forum: No registered users and 21 guests