bug-gnubg
[Top][All Lists]
Advanced

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

Re: [Bug-gnubg] Bug enquiry


From: Joern Thyssen
Subject: Re: [Bug-gnubg] Bug enquiry
Date: Thu, 27 Mar 2003 18:49:52 +0000
User-agent: Mutt/1.4i

On Thu, Mar 27, 2003 at 09:37:36AM -0800, Ned Cross wrote
> Lars,
>     Meanwhile, one thing you can do is open the TMG file in the TMG program
> and "Save As" to the .mat (Jellyfish file) format.  Then GNU import will
> work, just the table stakes info is lost (which GNU doesn't analyse anyway).
> 
> Joern,
>     Here is another file which crashes.  I can't be sure, but I think it may
> be the beaver that causes problems for GNU.

Yes, you're right: I didn't have any TMG files with beavers when I
programmed it.

The format for the moves in the TMG files is something like:

  X Y ZZZZZZZZZZZZZZZZZ

where X is the move number (positive for player 0 and negative for
player 1), Y is the move type (I'll return to that), and ZZZZZ is a
string with information about the move.

Examples are:

  -1 1 43:

for player 2 rolling 43 in the first move.

  -1 4 13/9 24/21

for player 2 moving 13/9 and 24/21 etc etc.

Here is my incomplete list over the move types:

Move type       Description
 1              Roll
 2              Auto double
 3              ???
 4              Move
 5              Double
 6              ???
 7              Take
 8              Beaver
 9              ????
10              Pass
11              ???
12              ???
13              ???
14              Win single
15              Win gammon
16              Win backgammon
17              out of time
18              ???
19              Table stake information

As you see there are few unknowns. Until now move type 8 was
also unknown :-)

I've programmed gnubg to crash if it reads one of these files, in the
hope that the poor user will mail us. Not a pretty solution I admit :-)

> Another slight issue with the .tmg import is that GNU doesn't bring in the
> string for the filename when the match is loaded.  
> When one goes to save the analysed match, the default string that pops
> up for the filename is the name of the previous file opened by the
> program.  Only if the file is the first to be opened since GNUBG was
> launched, is the filename successfully brought into the save dialog.

I've fixed that as well.

> Also, I have noticed that .sgg or .mat files load very quickly, while .tmg
> files load very slowly, taking perhaps 5 times as long to load, and you can
> see the progress as the moves scroll along in the game record window.

I've fixed some of the problem: in the other imports we freeze the GUI
while loading the match, and waiting with the update until the match has
finished loading. That should make the import somewhat faster. 

Jørn




reply via email to

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