It is currently Fri May 02, 2025 1:48 am

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 20 posts ] 
Author Message
Offline
 Post subject: Merging two or more sgf files?
Post #1 Posted: Thu Jun 21, 2012 3:00 am 
Beginner

Posts: 16
Location: Singapore
Liked others: 0
Was liked: 1
Universal go server handle: Sadaharu
I was wondering if it is possible to merge two or more sgf files together into one sgf file.

That is, the final one sgf file will contain the data in all the sgf files(in the form of variations), and also the comments, if possible.

Is there a software that can do this?

I tried Drago but it doesn't work.

And CGoban only allows you to cut and paste in the same SGF and not from one SGF to another.

Top
 Profile  
 
Offline
 Post subject: Merging two or more sgf files?
Post #2 Posted: Thu Jun 21, 2012 11:01 am 
Dies with sente

Posts: 92
Liked others: 0
Was liked: 1
IGS: Alberich
Online playing schedule: IGS most weekdays
I discovered the answer to this just this afternoon. I've been playing against GNU Go using the CompoGo SGF editor and discovered when resuming saved SGF files the program was creating duplicate copies of the same game in the same file. It was continuously merging differences in the same game in one file. So I'd imagine it might be possible to save two or more games in the same SGF file using CompoGo.

Top
 Profile  
 
Offline
 Post subject: Re: Merging two or more sgf files?
Post #3 Posted: Thu Jun 21, 2012 11:13 am 
Gosei

Posts: 1543
Liked others: 111
Was liked: 324
SGF allows you to store more than 1 game in the same file.
I don't know offhand what software will do that for you easily :)

_________________
North Lecale

Top
 Profile  
 
Offline
 Post subject: Re: Merging two or more sgf files?
Post #4 Posted: Thu Jun 21, 2012 11:15 am 
Beginner

Posts: 16
Location: Singapore
Liked others: 0
Was liked: 1
Universal go server handle: Sadaharu
Javaness2 wrote:
SGF allows you to store more than 1 game in the same file.
I don't know offhand what software will do that for you easily :)


Yup that's why I'm looking for a way to do that without needing to manually inputting the moves~

Top
 Profile  
 
Offline
 Post subject: Re: Merging two or more sgf files?
Post #5 Posted: Thu Jun 21, 2012 11:16 am 
Beginner

Posts: 16
Location: Singapore
Liked others: 0
Was liked: 1
Universal go server handle: Sadaharu
Alberich wrote:
I discovered the answer to this just this afternoon. I've been playing against GNU Go using the CompoGo SGF editor and discovered when resuming saved SGF files the program was creating duplicate copies of the same game in the same file. It was continuously merging differences in the same game in one file. So I'd imagine it might be possible to save two or more games in the same SGF file using CompoGo.


Thanks! I will give it a try

Top
 Profile  
 
Offline
 Post subject: Re: Merging two or more sgf files?
Post #6 Posted: Thu Jun 21, 2012 2:40 pm 
Dies with sente

Posts: 92
Liked others: 0
Was liked: 1
IGS: Alberich
Online playing schedule: IGS most weekdays
Sadaharu wrote:
Alberich wrote:
I discovered the answer to this just this afternoon. I've been playing against GNU Go using the CompoGo SGF editor and discovered when resuming saved SGF files the program was creating duplicate copies of the same game in the same file. It was continuously merging differences in the same game in one file. So I'd imagine it might be possible to save two or more games in the same SGF file using CompoGo.


Thanks! I will give it a try


I've done more research on this topic. Here are the editors that accept multi joined SGF files:

1. CompoGo
2. GoHome
3. Kombilo
4. Dariush

Surprisingly Drago can't open multipart SGF files. Neither can CCoban 3 nor gGo. I don't know about the iPad versions of Go. Would be interesting to know if Easy Go or Smartgo Kifu accept multi part SGF files. Of all the editors I mentioned...I believe Dariush has the simplest GUI for creating multipart SGF files. I don't know the limitations of how many files per multipart SGF files can be created safely without corruption though. That could be a concern.

Top
 Profile  
 
Offline
 Post subject: Re: Merging two or more sgf files?
Post #7 Posted: Thu Jun 21, 2012 3:33 pm 
Dies with sente
User avatar

Posts: 110
Liked others: 11
Was liked: 120
Rank: AGA 3 dan
SmartGo Kifu can open SGF files that include multiple games.

However, note that multiple games in SGF are not merged into a single game tree; the file is just a concatenation of the individual games, making it easier and more efficient to deal with game collections. So if your goal is to combine multiple versions of the same game using variations, this may not help you.

_________________
Anders Kierulf
@smartgo

Top
 Profile  
 
Offline
 Post subject: Merging two or more sgf files?
Post #8 Posted: Thu Jun 21, 2012 4:20 pm 
Dies with sente

Posts: 92
Liked others: 0
Was liked: 1
IGS: Alberich
Online playing schedule: IGS most weekdays
smartgo wrote:
SmartGo Kifu can open SGF files that include multiple games.

However, note that multiple games in SGF are not merged into a single game tree; the file is just a concatenation of the individual games, making it easier and more efficient to deal with game collections. So if your goal is to combine multiple versions of the same game using variations, this may not help you.


I'm glad to hear Smartgo Kifu accepts multi-part SGF files. When I import the multi part file how do I select the game I want to view? Does it pop up a dialog box asking me to select the game to view?

I have to disagree with you on this one point though...you can save the same game with multiple variations. The trick though, is to open and save the game with different filenames otherwise the program will refuse opening the file because it will say to close the current game because it is in use. So it is possible to do this once you get around that limitation.

Top
 Profile  
 
Offline
 Post subject: Re: Merging two or more sgf files?
Post #9 Posted: Thu Jun 21, 2012 4:28 pm 
Dies with sente
User avatar

Posts: 110
Liked others: 11
Was liked: 120
Rank: AGA 3 dan
Alberich wrote:
When I import the multi part file how do I select the game I want to view? Does it pop up a dialog box asking me to select the game to view?

All the games in the imported file will be added to the games list in My Games, and you just select the game you're interested in.

_________________
Anders Kierulf
@smartgo

Top
 Profile  
 
Offline
 Post subject: Re: Merging two or more sgf files?
Post #10 Posted: Thu Jun 21, 2012 5:05 pm 
Dies with sente

Posts: 92
Liked others: 0
Was liked: 1
IGS: Alberich
Online playing schedule: IGS most weekdays
smartgo wrote:
Alberich wrote:
When I import the multi part file how do I select the game I want to view? Does it pop up a dialog box asking me to select the game to view?

All the games in the imported file will be added to the games list in My Games, and you just select the game you're interested in.


I hope we get a variation list option someday so we can look at the game score and tap on the move to go directly to that point in the game for study instead of using the slider.

Top
 Profile  
 
Offline
 Post subject: Re: Merging two or more sgf files?
Post #11 Posted: Thu Jun 21, 2012 11:54 pm 
Beginner

Posts: 16
Location: Singapore
Liked others: 0
Was liked: 1
Universal go server handle: Sadaharu
smartgo wrote:
SmartGo Kifu can open SGF files that include multiple games.

However, note that multiple games in SGF are not merged into a single game tree; the file is just a concatenation of the individual games, making it easier and more efficient to deal with game collections. So if your goal is to combine multiple versions of the same game using variations, this may not help you.


Yes, I'm not looking for a way to put multiple games in a single SGF. Rather, I want the multiple games to be in a single game tree, in the form of variations. Naturally there will be some overlapping moves, and they will be resolved in the game tree under the same move.

So basically it is still a single sgf but it contains many games merged together in the form of variations.

Is there a software which can do this?

Top
 Profile  
 
Offline
 Post subject: Re: Merging two or more sgf files?
Post #12 Posted: Fri Jun 22, 2012 12:56 am 
Dies in gote
User avatar

Posts: 38
Location: Cachan, Paris, France
Liked others: 0
Was liked: 14
Rank: FFG 5k
Alberich wrote:
Surprisingly Drago can't open multipart SGF files.
:scratch: Basic feature since first releases. Can even open sgf folders. I am curious about what could have failed.

_________________
Drago is freeware

Top
 Profile  
 
Offline
 Post subject: Re: Merging two or more sgf files?
Post #13 Posted: Fri Jun 22, 2012 1:10 am 
Dies in gote
User avatar

Posts: 38
Location: Cachan, Paris, France
Liked others: 0
Was liked: 14
Rank: FFG 5k
Sadaharu wrote:
So basically it is still a single sgf but it contains many games merged together in the form of variations.

Is there a software which can do this?
Drago can with some limitations: only main branches of input games are processed and comments are not kept. It has been designed to make game trees like Arno's fuseki database.

Start it from File > Collections > Make game tree.

_________________
Drago is freeware

Top
 Profile  
 
Offline
 Post subject: Re: Merging two or more sgf files?
Post #14 Posted: Fri Jun 22, 2012 1:44 am 
Beginner

Posts: 16
Location: Singapore
Liked others: 0
Was liked: 1
Universal go server handle: Sadaharu
Gilles wrote:
Sadaharu wrote:
So basically it is still a single sgf but it contains many games merged together in the form of variations.

Is there a software which can do this?
Drago can with some limitations: only main branches of input games are processed and comments are not kept. It has been designed to make game trees like Arno's fuseki database.

Start it from File > Collections > Make game tree.


Thanks! I've just tried it and yes, it works.

However, is it possible for this function to include sub-branches as well? Because I'm currently building a sgf like this myself and if I use this function I will have to go and look for the sgf of all those kifus I've already input.

Also it means I can't "add-on" to an already existing sgf file like this?

Top
 Profile  
 
Offline
 Post subject: Re: Merging two or more sgf files?
Post #15 Posted: Fri Jun 22, 2012 2:28 am 
Dies in gote
User avatar

Posts: 38
Location: Cachan, Paris, France
Liked others: 0
Was liked: 14
Rank: FFG 5k
Sadaharu wrote:
However, is it possible for this function to include sub-branches as well?
Sorry, this is one of the limitations and would require some work and a new release.

_________________
Drago is freeware

Top
 Profile  
 
Offline
 Post subject: Re: Merging two or more sgf files?
Post #16 Posted: Fri Jun 22, 2012 1:52 pm 
Dies with sente

Posts: 92
Liked others: 0
Was liked: 1
IGS: Alberich
Online playing schedule: IGS most weekdays
Gilles wrote:
Sadaharu wrote:
However, is it possible for this function to include sub-branches as well?
Sorry, this is one of the limitations and would require some work and a new release.


Can we get an update that allows users to select using the mouse cursor with an anti slip mode? Like attaching a ghost stone to the cursor so we see where we're clicking on the board? Kimbilo, gGo and Panda Go have this.

Top
 Profile  
 
Offline
 Post subject: Re: Merging two or more sgf files?
Post #17 Posted: Sat Jun 23, 2012 12:50 am 
Dies in gote
User avatar

Posts: 38
Location: Cachan, Paris, France
Liked others: 0
Was liked: 14
Rank: FFG 5k
Alberich wrote:
attaching a ghost stone to the cursor
Added to the wish list.

_________________
Drago is freeware

Top
 Profile  
 
Offline
 Post subject: Re: Merging two or more sgf files?
Post #18 Posted: Sat Jun 23, 2012 10:41 am 
Dies with sente

Posts: 92
Liked others: 0
Was liked: 1
IGS: Alberich
Online playing schedule: IGS most weekdays
Gilles wrote:
Alberich wrote:
attaching a ghost stone to the cursor
Added to the wish list.


Another one I'd like to see is a option to view the moves in variation mode instead of a game tree.

Top
 Profile  
 
Offline
 Post subject: Re: Merging two or more sgf files?
Post #19 Posted: Sun Jun 24, 2012 4:27 am 
Dies in gote
User avatar

Posts: 38
Location: Cachan, Paris, France
Liked others: 0
Was liked: 14
Rank: FFG 5k
Alberich wrote:
Another one I'd like to see is a option to view the moves in variation mode instead of a game tree.
There are three ways to visualize variations with Drago:
  • with the game tree
  • with the list of variation coordinates in the sidebar
  • with markups on board (ghost stones or letter)
Are you thinking about another mode?

_________________
Drago is freeware

Top
 Profile  
 
Offline
 Post subject: Re: Merging two or more sgf files?
Post #20 Posted: Mon Jun 25, 2012 7:24 am 
Dies with sente

Posts: 92
Liked others: 0
Was liked: 1
IGS: Alberich
Online playing schedule: IGS most weekdays
Gilles wrote:
Alberich wrote:
Another one I'd like to see is a option to view the moves in variation mode instead of a game tree.
There are three ways to visualize variations with Drago:
  • with the game tree
  • with the list of variation coordinates in the sidebar
  • with markups on board (ghost stones or letter)
Are you thinking about another mode?


The old SGF editor CompoGo has variation mode...letting the user see the game transcript using alphanumeric mode. This lets the player click on the node and the game board is instantly transported to that instance in the game. But I'll try the ones you listed.

Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 20 posts ] 

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group