Hello (and building problems)

7 views
Skip to first unread message

valdar

unread,
Feb 2, 2010, 4:41:11 AM2/2/10
to Raptor (chess-interface)
Hi all, I would like to play around with the code of this wonderful
project; I have setup eclipse environment as described in the wiki but
I have a compilation error on svn r1763 code:

SimpleMoveList.class class not found
line: 46
file: svn/trunk/raptor/src/raptor/swt/chess/movelist/
TextAreaMoveList.java

I changed line 46 from:

private static final Log LOG = LogFactory.getLog
(SimpleMoveList.class);

to:

private static final Log LOG = LogFactory.getLog
(TextAreaMoveList.class);

but when I run Raptror.java as a Java application I get a null pointer
exception at
line: 112
file: svn/trunk/raptor/src/raptor/Raptor.java

any suggestion?

Best regards, Andrea.

Bodia

unread,
Feb 2, 2010, 8:20:47 AM2/2/10
to raptor-ches...@googlegroups.com
Hello,
yes I forgot to change logger class in TextAreaMoveList, now fixed.

Check swt.jar in lib/swt/ the build process might have put the one for
another OS.

Bogdan (bvk256)

valdar

unread,
Feb 2, 2010, 5:29:19 PM2/2/10
to Raptor (chess-interface)
Hi, checked out the new source code from cvs and now:

Description Resource Path Location Type
The method close() is undefined for the type Browser
BrowserWindowItem.java /raptor/src/raptor/swt line 93 Java Problem

if I commented out that line the project compile fine but when i run
it (Raptor.java as java app) and load a game from PGN file I can not
see the board properly (I only see the upper left square a8).

Any ideas?

Thankyou, Andrea.

Carson Day

unread,
Feb 2, 2010, 6:33:09 PM2/2/10
to raptor-ches...@googlegroups.com
I bet you downloaded 3.5 (the current release swt) instead of the 3.6M5. Try downloading from here:
pick you environment at the bottom and follow the instructions on the wiki after that.

I just noticed 3.6M5 was released January 30th, and I have not had a chance to try it out yet. Let me know if you run into any issues with it.

CDay

valdar

unread,
Feb 2, 2010, 7:46:08 PM2/2/10
to Raptor (chess-interface)
Yep !
I was sure I have downloaded the right version but I was wrong.

Sorry for the waste of time.

On 2 Feb, 23:33, Carson Day <carson...@gmail.com> wrote:
> I bet you downloaded 3.5 (the current release swt) instead of the 3.6M5. Try

> downloading from here:http://download.eclipse.org/eclipse/downloads/drops/S-3.6M5-201001291...


> pick you environment at the bottom and follow the instructions on the wiki
> after that.
>
> I just noticed 3.6M5 was released January 30th, and I have not had a chance
> to try it out yet. Let me know if you run into any issues with it.
>
> CDay
>

valdar

unread,
Feb 3, 2010, 9:02:02 AM2/3/10
to Raptor (chess-interface)
Now that all works fine I would like to play around with PGN part;
in particular with the annotation visualization and/or making new
annotation in a game loaded from a PGN file.

Any suggestions on where to start (I mean, which pacage, classess and
so on).

Thank you in advance fro your patience.

Andrea.

cday

unread,
Feb 5, 2010, 12:47:31 AM2/5/10
to Raptor (chess-interface)
It uses a design pattern with a parser and a listener. The goal is to
be able to handle text comments, nags, and nested sublines. It also
handles some specific chess base comments like remaining clock time
and arrows. I refactored this from another project I was working on to
work in raptor. I have not gotten around to fixing some issues. The
subline parsing is a little buggy and I think it is currently disabled
in the parser. I also have never really tested arrow and highlight
parsing. The idea is to use the comments ChessBase uses to draw arrows
and add highlights for moves.

It uses a parser/listener model for parsing pgn. As the pgn is parsed
methods are invoked on the listener to assemble the games. The code is
located in the raptor.chess.pgn package. Some key classes
StreamingPgnParser,LeninentPgnParser,PgnParser,PgnParserListener,LenientPgnParserListener,
and ListMaintainingPgnParserListener.

There are several Pgn artifacts that are built into the game api in
the raptor.chess package. Game and Move are some of the key classes.
If you look at the move class you will see methods to get the
comments, highlights, arrows, remaining clock time, nags, and
sublines. These are created as the game is parsed. A game also stores
meta information in pgn headers. There are get/set header methods in
the Game object.

As far as visual annotations that has not really been built out yet.
When you go back moves, the TimeTakenForMove is used in raptor to show
the clock times. The pgnHeaders are used as a way to store off meta
informatin about a game, white name, black name, elos, etc. Bodia has
recently written a new move list that is based on text instead of a
table called TextAreaMoveList .

The gui parts to this will be a little tricky. The way to approach it
is to add methods in the raptor.swt.chess.interface like
moveListMoveRightClicked(int halfMove), sublineRightClicked, etc and
then implement a new PgnAnalysisController. When
moveListMoveRightClicked is invoked it could show a popup menu of
options like add comment, add NAG, remove current subline or whatever.
The controller could also create sublines and alter the SubLine
artifacts of a move as moves are made on the board. The controller
could also adjust the EngineAnalysisWidget as moved are made in
sublines if the user is using an engine.

The new gui move list Bodia wrote would then have to look at the pgn
artifacts of the Move and adjust the MoveList as it is traversed.
Populating the new comments section with the Comment artifacts,
showing sublines in some user friendly way with ()s or something.
Showing some type of glyphs for the NAGs (+-,-+.=+.+=,inf sign for
unclear, etc).

That is probably clear as mud if you are new to the code, but it
should get you started on pgn parsing and how to go about displaying
it in the gui.

cday

unread,
Feb 5, 2010, 1:00:56 AM2/5/10
to Raptor (chess-interface)
raptor.swt.chess.interface should be
raptor.swt.chess.ChessBoardController

On Feb 4, 11:47 pm, cday <carson...@gmail.com> wrote:
> It uses a design pattern with a parser and a listener. The goal is to
> be able to handle text comments, nags, and nested sublines. It also
> handles some specific chess base comments like remaining clock time
> and arrows. I refactored this from another project I was working on to
> work in raptor. I have not gotten around to fixing some issues. The
> subline parsing is a little buggy and I think it is currently disabled
> in the parser. I also have never really tested arrow and highlight
> parsing. The idea is to use the comments ChessBase uses to draw arrows
> and add highlights for moves.
>
> It uses a parser/listener model for parsing pgn. As the pgn is parsed
> methods are invoked on the listener to assemble the games. The code is
> located in the raptor.chess.pgn package. Some key classes

> StreamingPgnParser,LeninentPgnParser,PgnParser,PgnParserListener,LenientPgn­ParserListener,

Reply all
Reply to author
Forward
0 new messages