Sep_Game_Pgn.
A little console utility to split a pgn file into separate games outputting a single pgn file for each game.
Each single game pgn file is uniquely named with the players names and put in a unique folder named after the
event in which the match took place.
How to use:
Put the pgn/s you want to split in the same folder as the program as run it. All new game pgns will be placed in the
'output' folder
I recommend only using this tool on an ssd and make sure the ssd is trimmed before use. It can potentially create
thousands of new files.
Download contains a windows executable and the python src.
https://drive.proton.me/urls/TXTRB8BYW4#1AAkqIjfOXg7
Jim.
Sep_Game_Pgn Tool JA
Moderator: Ras
-
- Posts: 2291
- Joined: Fri Jul 14, 2006 7:56 am
- Location: London, England
- Full name: Jim Ablett
-
- Posts: 2291
- Joined: Fri Jul 14, 2006 7:56 am
- Location: London, England
- Full name: Jim Ablett
Re: Sep_Game_Pgn Tool JA
The single game pgns are useful when you wish to analyze and annotate the game pgn using my PGN-Clean tool.
PGN-Clean 6
https://drive.proton.me/urls/SHHFAZ1V1M#8nJZuxgU2xw9
Jim.
PGN-Clean 6
https://drive.proton.me/urls/SHHFAZ1V1M#8nJZuxgU2xw9
Code: Select all
[Event "7th Georgiev - Kesarovski Mem"]
[Site "Sunny Beach BUL"]
[Date "2008.09.08"]
[Round "1"]
[White "Lilov, V1"]
[Black "Georgiev, Ivan"]
[Result "1-0"]
[WhiteElo "2184"]
[ECO "C40"]
[PlyCount "103"]
1. e4 e5 2. Nf3 f5 3. Nxe5 { brilliant!!! (+1.39) } 3... Qf6 { good!
(-1.77) } (3... Nf6 { BEST (-1.51) }) (3... Qe7 { BEST (-1.51) }) 4. Nc4 {
brilliant!!! (+1.70) } 4... fxe4 { brilliant!!! (-1.71) } 5. Nc3 {
brilliant!!! (+1.60) } 5... Qg6 { brilliant!!! (-1.58) } 6. Ne3 { good!
(+1.28) } (6. Ne5 { BEST (+1.64) }) 6... c6 { good! (-1.62) } (6... Nf6 {
BEST (-1.27) }) 7. d3 { brilliant!!! (+1.52) } 7... Bb4 { mistake?? (-2.65)
} (7... d5 { BEST (-1.57) }) 8. Bd2 { mistake?? (+1.68) } (8. dxe4 { BEST
(+2.80) }) 8... d5 { brilliant!!! (-1.40) } 9. Nxe4 { brilliant!!! (+1.55)
} 9... Bxd2+ { brilliant!!! (-1.65) } 10. Nxd2 { brilliant!!! (+1.55) }
10... Nf6 { excellent!! (-1.49) } (10... Ne7 { BEST (-1.48) }) 11. d4 {
brilliant!!! (+1.49) } 11... O-O { brilliant!!! (-1.55) } 12. Bd3 {
brilliant!!! (+1.62) } 12... Qf7 { good! (-2.21) } (12... Qh6 { BEST
(-1.82) }) (12... Qg5 { BEST (-1.82) }) 13. Qf3 { good! (+1.84) } (13. Nf3
{ BEST (+2.19) }) 13... b6 { good! (-1.97) } (13... c5 { BEST (-1.64) })
14. O-O { brilliant!!! (+1.85) } 14... Ba6 { good! (-1.85) } (14... c5 {
BEST (-1.74) }) 15. Qe2 { excellent!! (+1.98) } (15. Bxa6 { BEST (+2.05) })
15... Bxd3 { brilliant!!! (-1.83) } 16. Qxd3 { brilliant!!! (+1.82) } 16...
Nbd7 { brilliant!!! (-1.96) } 17. Rae1 { brilliant!!! (+2.01) } 17... b5 {
good! (-2.10) } (17... Rae8 { BEST (-1.87) }) 18. Re2 { excellent!! (+2.09)
} (18. Nf5 { BEST (+2.14) }) 18... Nb6 { good! (-2.30) } (18... Rae8 { BEST
(-1.95) }) 19. b3 { excellent!! (+2.39) } (19. Nf5 { BEST (+2.40) }) 19...
Rfe8 { inaccurate? (-2.61) } (19... b4 { BEST (-2.05) }) 20. Rfe1 {
brilliant!!! (+2.47) } 20... b4 { good! (-3.01) } (20... a5 { BEST (-2.55)
}) 21. Nf5 { brilliant!!! (+3.18) } 21... Rad8 { mistake?? - L (-4.27) } (
21... Qd7 { BEST (-2.95) }) (21... Rxe2 { BEST (-2.95) }) 22. Ne7+ {
brilliant!!! - W (+4.29) } 22... Kh8 { brilliant!!! (-3.98) } 23. Nxc6 {
good! (+4.00) } (23. Nf3 { BEST (+4.25) }) 23... Rxe2 { excellent!! (-3.98)
} (23... Rc8 { BEST (-3.96) }) 24. Rxe2 { brilliant!!! - W (+4.01) } 24...
Re8 { good! - L (-4.28) } (24... Rc8 { BEST (-4.07) }) 25. Nxb4 {
brilliant!!! - W (+4.39) } 25... Rxe2 { brilliant!!! - L (-4.24) } 26. Qxe2
{ brilliant!!! - W (+4.25) } 26... Qf8 { brilliant!!! - L (-4.29) } 27. c3
{ brilliant!!! - W (+4.54) } 27... a5 { brilliant!!! - L (-4.21) } (27...
Qc8) (27... Qd8) 28. Nd3 { brilliant!!! - W (+4.54) } 28... Qa3 {
excellent!! - L (-4.43) } (28... Qc8 { BEST (-4.37) }) 29. Nb1 { good! - W
(+4.44) } (29. Nf1 { BEST (+4.70) }) 29... Qd6 { brilliant!!! - L (-4.38) }
30. Qe5 { good! - W (+4.09) } (30. Ne5 { BEST (+4.52) }) 30... Qc6 {
brilliant!!! - L (-4.15) } 31. h3 { good! - W (+4.09) } (31. Qb8+ { BEST
(+4.51) }) 31... h6 { brilliant!!! - L (-4.11) } 32. Nc5 { good! - W
(+4.07) } (32. Qe1 { BEST (+4.21) }) 32... Nbd7 { brilliant!!! - L (-4.02)
} 33. Nxd7 { excellent!! (+3.99) } (33. Qe6 { BEST (+4.03) }) 33... Qxd7 {
brilliant!!! - L (-4.09) } 34. Nd2 { good! (+3.98) } (34. Na3 { BEST
(+4.16) }) 34... Qc6 { excellent!! - L (-4.15) } (34... a4 { BEST (-4.08) }
) 35. Qe3 { good! - W (+4.34) } (35. c4 { BEST (+4.51) }) 35... a4 {
excellent!! - L (-4.13) } (35... Qd6 { BEST (-4.07) }) 36. c4 {
brilliant!!! - W (+4.13) } 36... axb3 { excellent!! - L (-4.23) } (36...
Kg8 { BEST (-4.18) }) 37. axb3 { brilliant!!! - W (+4.48) } 37... Kg8 {
brilliant!!! - L (-4.29) } 38. c5 { excellent!! - W (+4.46) } (38. g4 {
BEST (+4.51) }) (38. Qe1 { BEST (+4.51) }) 38... Kf7 { good! - L (-4.85) }
(38... Qa6 { BEST (-4.41) }) 39. Nf3 { brilliant!!! - W (+4.77) } (39. Kh2)
39... Qb5 { good! - L (-4.92) } (39... Kg8 { BEST (-4.70) }) 40. Ne5+ {
brilliant!!! - W (+5.02) } 40... Kf8 { good! - L (-5.13) } (40... Kg8 {
BEST (-4.98) }) 41. c6 { brilliant!!! - W (+5.11) } 41... Ne8 { inaccurate?
- L (-5.83) } (41... Qa5 { BEST (-5.13) }) 42. Qc3 { mistake?? - W (+4.55)
} (42. Qf3+ { BEST (+6.39) }) 42... Qa6 { excellent!! - L (-5.28) } (42...
Qe2 { BEST (-5.22) }) 43. Qc5+ { mistake?? - W (+5.65) } (43. Qb4+ { BEST
(+7.17) }) 43... Kg8 { brilliant!!! - L (-5.76) } 44. Qxd5+ { good! - W
(+5.68) } (44. c7 { BEST (+5.96) }) 44... Kh8 { inaccurate? - L (-6.39) } (
44... Kh7 { BEST (-5.69) }) 45. Qd8 { brilliant!!! - W (+7.29) } 45... Qa1+
{ excellent!! - L (-7.36) } (45... Kh7 { BEST (-7.31) }) 46. Kh2 {
brilliant!!! - W (+7.54) } 46... Qb2 { blunder??? - L (-10.02) } (46... Kh7
{ BEST (-7.56) }) 47. Qxe8+ { brilliant!!! - W (+10.28) } 47... Kh7 { mate
-10 } 48. Qg6+ { mate 10 } 48... Kh8 { mate -10 } (48... Kg8 { mate -10 })
49. Nf7+ { mate 7 } 49... Kg8 { mate -6 } 50. Nxh6+ { mate 6 } 50... Kh8 {
mate -5 } 51. Nf5 { mate 5 } 51... Qxf2 { mate -1 } (51... Qxd4 { mate -4 }
) 52. Qxg7# { mate 1 } 1-0
-
- Posts: 2291
- Joined: Fri Jul 14, 2006 7:56 am
- Location: London, England
- Full name: Jim Ablett
Re: Sep_Game_Pgn Tool JA
Small update:
Program now recognizes all possible pgn header tags.
Outputs folder names and filenames in a more readable format.
Same download link as before >
https://drive.proton.me/urls/TXTRB8BYW4#1AAkqIjfOXg7
Jim.
Program now recognizes all possible pgn header tags.
Outputs folder names and filenames in a more readable format.
Same download link as before >
https://drive.proton.me/urls/TXTRB8BYW4#1AAkqIjfOXg7
Jim.
-
- Posts: 2291
- Joined: Fri Jul 14, 2006 7:56 am
- Location: London, England
- Full name: Jim Ablett
Re: Sep_Game_Pgn Tool JA
New update:
Added the command line switch '--players' to output all the games of each player to a folder with the players name
Same link as before
https://drive.proton.me/urls/TXTRB8BYW4#1AAkqIjfOXg7
Jim.
Added the command line switch '--players' to output all the games of each player to a folder with the players name
Same link as before
https://drive.proton.me/urls/TXTRB8BYW4#1AAkqIjfOXg7
Jim.
-
- Posts: 2291
- Joined: Fri Jul 14, 2006 7:56 am
- Location: London, England
- Full name: Jim Ablett
Re: Sep_Game_Pgn Tool JA
Update:
Added the command line switch '--openings' e.g 'sepgame-pgn.exe --openings' to output all the games of each opening to a folder
with the opening's name. Output is dependant on there being an 'Opening' tag in the game header of the file.
Added the command line switch '--eco' e.g 'sepgame-pgn.exe --eco' to output all the games of each eco opening to a folder
with the eco opening's eco code plus full opening's name. Output is dependant on there being an 'ECO' tag in the game header of the file.
Cleaned up the filenames a little bit.
Same link as before >
https://drive.proton.me/urls/TXTRB8BYW4#1AAkqIjfOXg7
Jim.
Added the command line switch '--openings' e.g 'sepgame-pgn.exe --openings' to output all the games of each opening to a folder
with the opening's name. Output is dependant on there being an 'Opening' tag in the game header of the file.
Added the command line switch '--eco' e.g 'sepgame-pgn.exe --eco' to output all the games of each eco opening to a folder
with the eco opening's eco code plus full opening's name. Output is dependant on there being an 'ECO' tag in the game header of the file.
Cleaned up the filenames a little bit.
Same link as before >
https://drive.proton.me/urls/TXTRB8BYW4#1AAkqIjfOXg7
Jim.
-
- Posts: 2291
- Joined: Fri Jul 14, 2006 7:56 am
- Location: London, England
- Full name: Jim Ablett
Re: Sep_Game_Pgn Tool JA
Bugfix.
There was a very bad bug on the last version. The 'White' & 'Black' header tags were missing from the
outputted pgns rendering them invalid. I didn't notice this until I loaded one up in Scid as it wouldn't accept it.
Also fixed problems with certain pgn files causing an error/crash.
Same link as before >
https://drive.proton.me/urls/TXTRB8BYW4#1AAkqIjfOXg7
Jim.
There was a very bad bug on the last version. The 'White' & 'Black' header tags were missing from the
outputted pgns rendering them invalid. I didn't notice this until I loaded one up in Scid as it wouldn't accept it.
Also fixed problems with certain pgn files causing an error/crash.
Same link as before >
https://drive.proton.me/urls/TXTRB8BYW4#1AAkqIjfOXg7
Jim.
-
- Posts: 2291
- Joined: Fri Jul 14, 2006 7:56 am
- Location: London, England
- Full name: Jim Ablett
Re: Sep_Game_Pgn Tool JA
Found some header tags the program didn't recognize,
WhiteTeam, BlackTeam, WhiteTeamCountry, BlackTeamCountry
Same link as before >
https://drive.proton.me/urls/TXTRB8BYW4#1AAkqIjfOXg7
I won't post any more updates here, just check the link above from time to time to see
if there is a new version.
Jim.
WhiteTeam, BlackTeam, WhiteTeamCountry, BlackTeamCountry
Same link as before >
https://drive.proton.me/urls/TXTRB8BYW4#1AAkqIjfOXg7
I won't post any more updates here, just check the link above from time to time to see
if there is a new version.
Jim.
-
- Posts: 7053
- Joined: Wed Nov 18, 2009 7:16 pm
- Location: Gutweiler, Germany
- Full name: Frank Quisinsky
Re: Sep_Game_Pgn Tool JA
Hi Jim,
do you have a download list about your tools?
Best
Frank
do you have a download list about your tools?
Best
Frank
-
- Posts: 2291
- Joined: Fri Jul 14, 2006 7:56 am
- Location: London, England
- Full name: Jim Ablett
Re: Sep_Game_Pgn Tool JA
Hi Frank,Frank Quisinsky wrote: ↑Sun Nov 17, 2024 12:21 pm Hi Jim,
do you have a download list about your tools?
Best
Frank
Here is a link to my Repo with everything I have >
https://drive.proton.me/urls/9TRAQG8SXC#3J2pemAZ0DpV
Jim.
-
- Posts: 7053
- Joined: Wed Nov 18, 2009 7:16 pm
- Location: Gutweiler, Germany
- Full name: Frank Quisinsky
Re: Sep_Game_Pgn Tool JA
Hi Jim,
wow, all x64 compiles and the tools ...
THANKS Jim!
Best
Frank
wow, all x64 compiles and the tools ...
THANKS Jim!
Best
Frank