Misplaced stone when creating SGF.

Comments, questions, rants, etc, that are specifically about KGS go here.
Post Reply
User avatar
psk31
Dies with sente
Posts: 74
Joined: Wed Apr 21, 2010 9:38 pm
Rank: OGS 17K
GD Posts: 0
KGS: psk31
OGS: psk31
Location: Near Denver, Colorado
Has thanked: 11 times
Been thanked: 6 times

Misplaced stone when creating SGF.

Post 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.
"Play confidently. Make the best of mistakes."
- Janice Kim, Learn to Play Go Vol. 1
User avatar
Joaz Banbeck
Judan
Posts: 5546
Joined: Sun Dec 06, 2009 11:30 am
Rank: 1D AGA
GD Posts: 1512
Kaya handle: Test
Location: Banbeck Vale
Has thanked: 1080 times
Been thanked: 1434 times

Re: Misplaced stone when creating SGF.

Post 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.
Help make L19 more organized. Make an index: https://lifein19x19.com/viewtopic.php?f=14&t=5207
xed_over
Oza
Posts: 2264
Joined: Mon Apr 19, 2010 11:51 am
Has thanked: 1179 times
Been thanked: 553 times

Re: Misplaced stone when creating SGF.

Post 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.
User avatar
Vesa
Lives with ko
Posts: 207
Joined: Thu Apr 29, 2010 5:44 am
Rank: EGF 5 dan
GD Posts: 29
Has thanked: 6 times
Been thanked: 65 times

Re: Misplaced stone when creating SGF.

Post 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
User avatar
freegame
Lives in gote
Posts: 399
Joined: Tue Apr 20, 2010 8:40 am
Rank: EGF 2d KGS 3d
GD Posts: 353
KGS: freegame
Location: Shanghai, China
Has thanked: 5 times
Been thanked: 35 times
Contact:

Re: Misplaced stone when creating SGF.

Post 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).
Laurens
Go school: freegame's Teaching School
Author of: The Next Move a book for 15-3kyu players.
User avatar
psk31
Dies with sente
Posts: 74
Joined: Wed Apr 21, 2010 9:38 pm
Rank: OGS 17K
GD Posts: 0
KGS: psk31
OGS: psk31
Location: Near Denver, Colorado
Has thanked: 11 times
Been thanked: 6 times

Re: Misplaced stone when creating SGF.

Post 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:
"Play confidently. Make the best of mistakes."
- Janice Kim, Learn to Play Go Vol. 1
Kirby
Honinbo
Posts: 9553
Joined: Wed Feb 24, 2010 6:04 pm
GD Posts: 0
KGS: Kirby
Tygem: 커비라고해
Has thanked: 1583 times
Been thanked: 1707 times

Re: Misplaced stone when creating SGF.

Post 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.
be immersed
User avatar
psk31
Dies with sente
Posts: 74
Joined: Wed Apr 21, 2010 9:38 pm
Rank: OGS 17K
GD Posts: 0
KGS: psk31
OGS: psk31
Location: Near Denver, Colorado
Has thanked: 11 times
Been thanked: 6 times

Re: Misplaced stone when creating SGF.

Post 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.
"Play confidently. Make the best of mistakes."
- Janice Kim, Learn to Play Go Vol. 1
Kirby
Honinbo
Posts: 9553
Joined: Wed Feb 24, 2010 6:04 pm
GD Posts: 0
KGS: Kirby
Tygem: 커비라고해
Has thanked: 1583 times
Been thanked: 1707 times

Re: Misplaced stone when creating SGF.

Post 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.
be immersed
xed_over
Oza
Posts: 2264
Joined: Mon Apr 19, 2010 11:51 am
Has thanked: 1179 times
Been thanked: 553 times

Re: Misplaced stone when creating SGF.

Post 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 :)
Post Reply