Page 1 of 1

Misplaced stone when creating SGF.

Posted: Tue Aug 10, 2010 9:10 pm
by psk31
Hi all,

I've just finished entering one of my games from Congress last week into CGoban3 using the Create SGF File function. When I finished I discovered that I have one stone out of place (found that when I hit the score estimate and it was way off). The stone in question is one space off, I put in on L9 instead of L10 and it makes the difference in making a group live. Is there anyway to move that one stone? Or do I have to wind it back to the move in question and re-enter from there. Or am I lucky enough that if I rewind back to the move, correct it, does the program remember the subsequent moves? Yes, it's late and I've discovered it takes forever to enter a game manually.

Thanks.

Re: Misplaced stone when creating SGF.

Posted: Tue Aug 10, 2010 9:18 pm
by Joaz Banbeck
You can manually edit an SGF file. The code for L9 will be '[kk]' and the code for L10 will be '[kj]'. Just stick the SFG file in an editor and do a search and replace.

Re: Misplaced stone when creating SGF.

Posted: Tue Aug 10, 2010 10:36 pm
by xed_over
psk31 wrote:Or am I lucky enough that if I rewind back to the move, correct it, does the program remember the subsequent moves?

yes, you can cut and paste the remaining moves from the old branch to the new branch.

Re: Misplaced stone when creating SGF.

Posted: Tue Aug 10, 2010 10:50 pm
by Vesa
Also, if you use real SGF publishing tools like GoWrite you can easily move the stone when editing (click and drag). CGoban3 is notorious for its tendency to create variations after a scribe error.

Cheers,
Vesa

Re: Misplaced stone when creating SGF.

Posted: Wed Aug 11, 2010 4:41 am
by freegame
Open the sgf in CGoban.
Use cut at the first move after the mistake.
Then delete the mistaken move(s) and put the correct once in.
Then past the part you removed back into the tree.

Don't just use the edit tool for this, it will mess up things (game tree/move sequence).

Re: Misplaced stone when creating SGF.

Posted: Wed Aug 11, 2010 7:25 pm
by psk31
Thanks all, good that there are options out there. Unfortunately, it looks like I missed the save button when I closed out last night because only about a fourth of the game was there. I guess I get to re-enter anyway, sigh. :cry:

Re: Misplaced stone when creating SGF.

Posted: Wed Aug 11, 2010 11:02 pm
by Kirby
Are you replaying the game from memory, or is it from like an iPhone? I seem to recall you mentioning that you were able to email yourself the sgf text of a file that you had.

Sorry if you already know this, or if it's not applicable, but if you are able to email the sgf text of the file that you had, you can copy and paste that text into a text file, and rename the text file extension to .sgf...

I'm not really sure if this applies to what you're trying to do or not. I just seem to remember you saying something about being able to get the text of the sgf, but not the sgf file itself.

Re: Misplaced stone when creating SGF.

Posted: Thu Aug 12, 2010 7:08 am
by psk31
This particular game is one that I had kept a paper game record and I was transcribing it to make a sgf file. The earlier one that I had emailed to me came to me not as an sgf attachment but the with sgf text as the body of the email. I just copied and pasted that into Notepad, gave it a .sgf extentsion and it worked great.

Re: Misplaced stone when creating SGF.

Posted: Thu Aug 12, 2010 7:55 am
by Kirby
psk31 wrote:This particular game is one that I had kept a paper game record and I was transcribing it to make a sgf file. The earlier one that I had emailed to me came to me not as an sgf attachment but the with sgf text as the body of the email. I just copied and pasted that into Notepad, gave it a .sgf extentsion and it worked great.


Great. I remembered that you had said something about the text, and I figured it was obvious to you that you could make the SGF file from it, but I wasn't totally sure.

Re: Misplaced stone when creating SGF.

Posted: Thu Aug 12, 2010 11:23 am
by xed_over
psk31 wrote:Thanks all, good that there are options out there. Unfortunately, it looks like I missed the save button when I closed out last night because only about a fourth of the game was there. I guess I get to re-enter anyway, sigh. :cry:

always remember to work on a copy of the original when making such sweeping changes :)