looking for pgn- utility...

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

looking for pgn- utility...

Postby GenoM » 08 Aug 2006, 10:26

hi all

i am looking for pgn-utility which can exctract games to 10th move from tournament pgn's.

thanks in advance,
Geno
we live in a beautiful world
GenoM
 
Posts: 36
Joined: 27 Dec 2004, 02:49
Location: Bulgaria

Re: looking for pgn- utility...

Postby George Lyapko » 08 Aug 2006, 13:34

I have written one in 2003:http://www.geocities.com/lyapko/lgpgntr.zip

Georg Zimmerman in Winboard Forum have asked for utility, which will truncate
a PGN file that each game should be maximum X plies long. Here you are.
This is only a first approach, so it may have bugs. Please report them to me.

Known limitations/shortcuts:

a)game is truncated after comment or illegal move;
b)no long filenames support;
c)no footer result.

Usage:

LGPGNTR <InputFile> <OutputFile> <max.plies>

Enjoy,
George Lyapko
User avatar
George Lyapko
 
Posts: 49
Joined: 27 Sep 2004, 14:34
Location: Mukachewo(Ukraine)/Ried(Austria)

Re: looking for pgn- utility...

Postby Norm Pollock » 08 Aug 2006, 20:19

The chess engine Yace contains a utility that truncates games in a pgn file. It sounds strange, but it has worked whenever I used it.

in a command window launch: yace.exe
inside yace type:

cadiz_pgn thegamefile.pgn gamesuntill40.pgn n 40

where "thegamefile.pgn" is the original file,
"gamesuntil40.pgn" is the output file up to 40 plies,
and "40" is the number of plies which of course you can change.
Norm Pollock
 
Posts: 217
Joined: 27 Sep 2004, 02:52

Re: looking for pgn- utility...

Postby GenoM » 08 Aug 2006, 23:47

thanks George thanks Norm!
we live in a beautiful world
GenoM
 
Posts: 36
Joined: 27 Dec 2004, 02:49
Location: Bulgaria


Return to Winboard and related Topics

Who is online

Users browsing this forum: Google [Bot] and 41 guests