Help inserting java applet - Page 2

User 2180319 Photo


Registered User
9 posts

I sent a message to the blog page and am awaiting a reply. I will post any information I received. Thanks for the help and interest.

Tim
User 2180319 Photo


Registered User
9 posts

Well, here is the response I got from the blog. Can't say that I found it particularly enlightening :/ but thought some of you might be able to make sense of it.

Tim


Hi timboone,
In the installation instructions above I was using:
/
/bin/Viewer-Deluxe.jar
/games/Samples.Pgn

You can have them placed in any folder in your Web space but make sure it’s been served properly. As an alternative, you may try out the steps in How to publish a chess game on your blog
Doing it that way allows you to combine your PGN with your HTML code, meaning less file maintenance. Also, you won’t need to bother about the APPLET tags or JAR upgrades.
User 187934 Photo


Senior Advisor
20,271 posts
Online Now

Tim I got I working.:cool:

http://selkirklake.net/chess.html
Let me put the steps together and repost. I did it with the CC editor so I still need to try VSD.

Tim, Do you have CC editor?
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 2180319 Photo


Registered User
9 posts

That's great Eric! Can't wait to see the steps and, more importantly, whether you can get it to work with VSD. I don't have CC editor yet.

Thanks, Tim
User 187934 Photo


Senior Advisor
20,271 posts
Online Now

I got it to work in VSD.:)
http://selkirklake.net/chess.html

I'm working out the steps for you.
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 364143 Photo


Guest
5,410 posts

Eric, The VSD Chess Master! Or do you prefer Yoda? :D
CoffeeCup... Yeah, they are the best!
User 187934 Photo


Senior Advisor
20,271 posts
Online Now

Tim, This is for inserting the chess game into VSD.

Open notepad and paste this code into it.


[Event "F/S Return Match"]
[Site "Belgrade, Serbia JUG"]
[Date "1992.11.04"]
[Round "29"]
[White "Fischer, Robert J."]
[Black "Spassky, Boris V."]
[Result "1/2-1/2"]

1. e4 e5 2. Nf3 Nc6 3. Bb5 a6 4. Ba4 Nf6 5. O-O Be7 6. Re1 b5 7. Bb3 d6 8. c3
O-O 9. h3 Nb8 10. d4 Nbd7 11. c4 c6 12. cxb5 axb5 13. Nc3 Bb7 14. Bg5 b4 15.
Nb1 h6 16. Bh4 c5 17. dxe5 Nxe4 18. Bxe7 Qxe7 19. exd6 Qf6 20. Nbd2 Nxd6 21.
Nc4 Nxc4 22. Bxc4 Nb6 23. Ne5 Rae8 24. Bxf7+ Rxf7 25. Nxf7 Rxe1+ 26. Qxe1 Kxf7
27. Qe3 Qg5 28. Qxg5 hxg5 29. b3 Ke6 30. a3 Kd6 31. axb4 cxb4 32. Ra5 Nd5 33.
f3 Bc8 34. Kf2 Bf5 35. Ra7 g6 36. Ra6+ Kc5 37. Ke1 Nf4 38. g3 Nxh3 39. Kd2 Kb5
40. Rd6 Kc5 41. Ra6 Nf2 42. g4 Bd3 43. Re6 1/2-1/2



Now click "file" then "save as"
In the window that opens Type "Samples.Pgn" in the file name box.
Now below that line click on the "file save as type" box. Click on "all files".
You can save this wherever you like just remember later for adding it to VSD.

Close Notepad

Download the "Viewer-Deluxe.jar" file and save wherever you like just remember later for adding it to VSD.
http://chesstuff.googlecode.com/svn/bin/Viewer-Deluxe.jar

Open VSD
Click on "Edit" then "Add files".
Highlite the root folder and click "add folder" at the bottom left corner of the add files window.
Name this folder "bin"
Now click on the new "bin" folder you just created and click on "add files".
Browse to the "Viewer-Deluxe.jar" file that you downloaded earlier.

Highlite the root folder again and click "add folder" at the bottom left corner of the add files window.
Name this folder "games"
Now click on the new "games" folder you just created and click on "add files".
Browse to the "Samples.Png" file that you created in Notepad.

Now goto the page that you would like the chess applet to show on and paste this code into that page using the HTML tool.
Paste to the "Body HTML"

<APPLET archive="Viewer-Deluxe.jar" code="ChessBoard.class"
codebase="/bin" width="631" height="560" mayscript="true">
<PARAM name=PgnGameFile value="/games/Samples.Pgn">
<PARAM name=LightSquares value=F3DCC2>
<PARAM name=DarkSquares value=DDA37B>
<PARAM name=Background value=CCCCCC>
<PARAM name=ImagesFolder value=images>
<PARAM name=PuzzleMode value="off">
Your browser is completely ignoring the &lt;APPLET&gt; tag!
</APPLET>


Now save and publish
You can look at the chess website for customizing the Pgn file to your liking.
Hope you have fun with it.:)
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 187934 Photo


Senior Advisor
20,271 posts
Online Now

Tom wrote:
Eric, The VSD Chess Master! Or do you prefer Yoda? :D


Yoda man!:D
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 187934 Photo


Senior Advisor
20,271 posts
Online Now

The preview wont show in VSD so just publish the content to verify. I'll work out the directory structure needed to have the preview show in VSD later.:)
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com
User 187934 Photo


Senior Advisor
20,271 posts
Online Now

I was able to get the Applet to show in VSD preview mode by copying the bin folder that you create in VSD to the C : /.
I tried copying the games folder to C : / but get a permissions error. So the applet will show but you won't be able to play the game in preview mode.
I can't hear what I'm looking at.
It's easy to overlook something you're not looking for.

This is a site I built for my work.(RSD)
http://esmansgreenhouse.com
This is a site I built for use in my job.(HTML Editor)
https://pestlogbook.com
This is my personal site used for testing and as an easy way to share photos.(RLM imported to RSD)
https://ericrohloff.com

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.