How to post SGF files

Post your games here for other members to critique your play.
User avatar
fwiffo
Gosei
Posts: 1435
Joined: Tue Apr 20, 2010 6:22 am
Rank: Out of practice
GD Posts: 1104
KGS: fwiffo
Location: California
Has thanked: 49 times
Been thanked: 168 times

How to post SGF files

Post by fwiffo »

There are several ways to attach SGF files to your posts. Use the "sgf" tag to attach them with the "compact" eidogo theme. Use "sgf-full" to use a wider, more full-featured layout. You can also embed a problem with the "sgf-problem" tag.

The preferred method is to refer to the SGF file by URL. For example, you can link to a game from the KGS archives.

Code: Select all

[sgf]http://files.gokgs.com/games/2009/3/26/muchen1999-TheCaptain.sgf[/sgf]




You can do the same for SGF files that you attach to your post (see below for detailed instructions). For example:

Code: Select all

[sgf-full]https://lifein19x19.com/forum/download/file.php?id=167[/sgf-full]




Here's an example using the problem mode:

Code: Select all

[sgf-problem]https://lifein19x19.com/forum/download/file.php?id=168[/sgf-problem]




You can also paste the SGF data inline, though you may run into size limits with SGF files larger than a few kilobytes. You can use inline SGF data or URLs with all three embedding modes.

Code: Select all

[sgf-problem]
(;GM[1]FF[4]CA[UTF‑8]AP[CGoban:3]ST[2]
RU[Japanese]SZ[19]KM[0.00]
PW[White]PB[Black]AW[ba][da][fb][cc][dc][ec][fc][ad][bd][ce]
AB[aa][ea][ab][cb][db][eb]C[Black to live.]
(;B[bb]LB[ca:A]C[Correct. Black is alive (white can't play at A).])
(;B[ca]
;W[bb]
(;B[bc]
;W[bb]
(;B[ba]
;W[ac]LB[bb:A]C[Wrong. A is a false eye.])
(;B[ac]
;W[ba]C[Wrong.]))
(;B[ac]
;W[bc]C[Wrong.]))
(;B[bc]
;W[bb]
;B[ca]
;W[bb]
(;B[ba]
;W[ac]LB[bb:A]C[Wrong. A is a false eye.])
(;B[ac]
;W[ba]C[Wrong.])))[/sgf-problem]




Detailed steps for adding SGF files as attachments:

Find the "Upload Attachment" section on the post screen. Click "Browse" to select your SGF file, then click "Add the file" to upload the SGF file as an attachment to your message.
step1.png
step1.png (11.14 KiB) Viewed 4299240 times

An "upload in progress" window will pop up briefly while your file uploads.
step2.png
step2.png (27.17 KiB) Viewed 4299240 times

After the file has uploaded, you should see that it is attached to the post. You can upload additional files if you're adding more than one. Then you should click the "Preview" button.
step3.png
step3.png (26.29 KiB) Viewed 4299240 times

You'll see a section in the preview area that shows your file is attached.
step4.png
step4.png (36.56 KiB) Viewed 4299240 times

Right click on the download link, then choose "Copy Link Location". The exact wording will depend on your browser. This is the URL for the SGF file that you've attached to the post.
step5.png
step5.png (41.04 KiB) Viewed 4299240 times

Finally, you can paste the URL between the sgf tags like so:
step6.png
step6.png (10.54 KiB) Viewed 4299240 times

If you click "Preview" you should now see the eidogo player.
Attachments
zipper-problem.sgf
(2.21 KiB) Downloaded 39052 times
YilunYang-bigbadwolf.sgf
(55.33 KiB) Downloaded 35217 times
User avatar
Harleqin
Lives in sente
Posts: 921
Joined: Sat Mar 06, 2010 10:31 am
Rank: German 2 dan
GD Posts: 0
Has thanked: 401 times
Been thanked: 164 times

Re: How to post SGF files

Post by Harleqin »

This one is also a "permanent unread".
A good system naturally covers all corner cases without further effort.
User avatar
fwiffo
Gosei
Posts: 1435
Joined: Tue Apr 20, 2010 6:22 am
Rank: Out of practice
GD Posts: 1104
KGS: fwiffo
Location: California
Has thanked: 49 times
Been thanked: 168 times

Re: How to post SGF files

Post by fwiffo »

They don't appear permanently unread for me... If I mark everything as read, or I read them, they become marked as read...
User avatar
schultz
Lives in gote
Posts: 505
Joined: Tue Apr 20, 2010 5:31 pm
GD Posts: 0
Location: Montana
Has thanked: 80 times
Been thanked: 62 times

Re: How to post SGF files

Post by schultz »

fwiffo wrote:They don't appear permanently unread for me... If I mark everything as read, or I read them, they become marked as read...

It was doing this for me until I went into another subforum (I went to off topic) and read this thread there. Then it stopped doing that for me.
KGS: schultz [?].
dtslife
Dies in gote
Posts: 38
Joined: Thu Oct 07, 2010 12:34 am
Rank: KGS 2 kyu
GD Posts: 0
KGS: dtslife
Has thanked: 3 times
Been thanked: 2 times
Contact:

Re: How to post SGF files

Post by dtslife »

Do you guys know how to post .sgf files in other forums such as tigersmouth.org? I really enjoy that feature in lifein19x19.
User avatar
Li Kao
Lives in gote
Posts: 643
Joined: Wed Apr 21, 2010 10:37 am
Rank: KGS 3k
GD Posts: 0
KGS: LiKao / Loki
Location: Munich, Germany
Has thanked: 115 times
Been thanked: 102 times

Re: How to post SGF files

Post by Li Kao »

The forum requires a viewer plugin(for example for eidogo).

A workaround for forums without such a plugin is uploading the sgf to eidogo.com and link it.
Sanity is for the weak.
xed_over
Oza
Posts: 2264
Joined: Mon Apr 19, 2010 11:51 am
Has thanked: 1179 times
Been thanked: 553 times

Re: How to post SGF files

Post by xed_over »

Are there instructions for navigating the sgf viewer?

For example, I can use left/right arrows on the keyboard to progress back and forth through the game, but when I encounter a variation, how do I navigate to it? Up/down arrows go to start/end of game (unexpected?).
User avatar
schultz
Lives in gote
Posts: 505
Joined: Tue Apr 20, 2010 5:31 pm
GD Posts: 0
Location: Montana
Has thanked: 80 times
Been thanked: 62 times

Re: How to post SGF files

Post by schultz »

[Insert obligatory "Google it!" message here]

From: http://code.google.com/p/eidogo/wiki/KeyboardShortcuts

Keyboard shortcuts for quick navigation and variation selection:

    Right arrow -- go forward
    Right arrow + shift -- go forward 10 moves
    Left arrow -- go back
    Left arrow + shift -- go back 10 moves
    Down arrow -- jump to the end
    Up arrow -- jump to the beginning
    Backtick (`) -- pass
    Variations can be selected using 1-9 or, if the variation move has a label, using the label's first alphanumeric character (A, B, C, etc).

And look at that - I actually learned a couple new ones (the navigation with + shift). Thanks! ;)
KGS: schultz [?].
xed_over
Oza
Posts: 2264
Joined: Mon Apr 19, 2010 11:51 am
Has thanked: 1179 times
Been thanked: 553 times

Re: How to post SGF files

Post by xed_over »

schultz wrote:[Insert obligatory "Google it!" message here]

yeah, thanks... no idea what to google for, since did not know its eidgo related.

schultz wrote: Variations can be selected using 1-9 or, if the variation move has a label, using the label's first alphanumeric character (A, B, C, etc).[/list]

so if there are no labels, then variations are unnavigable (except with a mouse)? it feels like a more common default expected behavior would be to use up/down arrows.
hyperpape
Tengen
Posts: 4382
Joined: Thu May 06, 2010 3:24 pm
Rank: AGA 3k
GD Posts: 65
OGS: Hyperpape 4k
Location: Caldas da Rainha, Portugal
Has thanked: 499 times
Been thanked: 727 times

Re: How to post SGF files

Post by hyperpape »

If there aren't labels, I believe the variations are just 1,2,3... and you can use the number keys. At least I don't recall encountering a case where that didn't work.
User avatar
Celebrir
Lives in gote
Posts: 353
Joined: Thu Jan 05, 2012 5:22 am
Rank: German 1k
GD Posts: 0
KGS: 1.Dan
OGS: 4k
Universal go server handle: Celebrir
Has thanked: 36 times
Been thanked: 14 times

Re: How to post SGF files

Post by Celebrir »

xed_over wrote:so if there are no labels, then variations are unnavigable (except with a mouse)? it feels like a more common default expected behavior would be to use up/down arrows.

Take a closer look ;) "Variations can be selected using 1-9 or, if the variation move has a label, using the label's first alphanumeric character (A, B, C, etc)"
1-9 is default and if there is a label you can use the labels first alphanumeric character ;)
User avatar
schultz
Lives in gote
Posts: 505
Joined: Tue Apr 20, 2010 5:31 pm
GD Posts: 0
Location: Montana
Has thanked: 80 times
Been thanked: 62 times

Re: How to post SGF files

Post by schultz »

Celebrir, he asked about when there are no labels. ;)

Now that I look at it, guess I made an assumption about what people are saying. Now that I've read all the comments again, I've gotten myself all confuzzled!

hyperpape wrote:If there aren't labels, I believe the variations are just 1,2,3... and you can use the number keys. At least I don't recall encountering a case where that didn't work.

Should have mentioned this (hyperpape's note above). It's a little annoying without the tree (am I missing some variations?!), and it's led me to spam the 2 and 3 buttons in some problems/game commentaries. If I really want to dig into a game with lots of complicated variations, though, I just use one with a visible game tree.

So the end note - you can hit the actual number keys, you don't have to click on them with the mouse! Let's make sure this is clear. Same with the actual letter labels (just hit that letter).
KGS: schultz [?].
xed_over
Oza
Posts: 2264
Joined: Mon Apr 19, 2010 11:51 am
Has thanked: 1179 times
Been thanked: 553 times

Re: How to post SGF files

Post by xed_over »

thanks
Buri
Dies with sente
Posts: 85
Joined: Sun Feb 05, 2012 2:34 am
GD Posts: 0
Has thanked: 1 time
Been thanked: 30 times

Re: How to post SGF files

Post by Buri »

Greetings,
this is really helpful.
But, you have to have an url from the KGS archives in the first place. Where do I get that (apart form the KGS archives...)
I need to be able to post a link to a game from there but I can`t find how to do it.
Can anyone help?
Thanks in advance,
Buri
User avatar
daal
Oza
Posts: 2508
Joined: Wed Apr 21, 2010 1:30 am
GD Posts: 0
Has thanked: 1304 times
Been thanked: 1128 times

Re: How to post SGF files

Post by daal »

When you find your game here : http://www.gokgs.com/archives.jsp , you can right click the "yes" under "viewable" and copy the link location (or link address, depending on your browser). Then you can post like this:

Code: Select all

[sgf]paste your copied link here[/sgf]


As an alternative to that, you can download the file, and then upload it here following the procedures fwiffo outlined in his first post under: "Detailed steps for adding SGF files as attachments."
Patience, grasshopper.
Post Reply