stone clicking sound missing - windows 7

Comments, questions, rants, etc, that are specifically about KGS go here.
xed_over
Oza
Posts: 2264
Joined: Mon Apr 19, 2010 11:51 am
Has thanked: 1179 times
Been thanked: 553 times

Re: stone clicking sound missing - windows 7

Post by xed_over »

UnclMartin wrote:Some of you please try this, and post the results here.

This did not work for me on two MacBookPro (both 10.6.8), with latest Java updates.

So far, I only tried the java webstart, and not java directly.

No stone clicks, no pass dings, but I get PM rings and lecture audio.
xed_over
Oza
Posts: 2264
Joined: Mon Apr 19, 2010 11:51 am
Has thanked: 1179 times
Been thanked: 553 times

Re: stone clicking sound missing - windows 7

Post by xed_over »

oops... nevermind : File -> Preferences -> sound for: "All games" <-- must remember to turn this on first
C. Blue
Dies in gote
Posts: 69
Joined: Thu Oct 07, 2010 4:45 am
Rank: EGF 1d
GD Posts: 0
KGS: CBlue
Has thanked: 29 times
Been thanked: 29 times

Re: stone clicking sound missing - windows 7

Post by C. Blue »

Nick23 wrote:Well, WMS has replied to my email saying that unfortunately he cannot spend time to fix this in cgoban.

Yay for having other people who fix your *\o/* for you. Instead of continuously forcing people to reverse engineer it, maybe the cgoban-client source code could just be released officially so the community can do all the work more efficiently, saving some of their members' own time too -> everyone is happy and KGS becomes that more awesome.
(Disclaimer: If I sound a bit annoyed it's simply because I like KGS that much and want its development to take the best possible future course. And I'm extremely tired of a LONG time with the same old sound bugs.)

Also, the biguglyhack actually fixed missing stone-clacking sfx and missing lesson audio stream on Archlinux w/ OpenJDK6 (32b) for me, got full sound now. Yay!
Nice work, Nick23.
phew
Beginner
Posts: 2
Joined: Sat Apr 28, 2012 10:48 pm
GD Posts: 0
KGS: phong

Re: stone clicking sound missing - windows 7

Post by phew »

Thanks for people in this topic!
Special thanks for Nick23 !!!

I tried both 2 methods above. The results are:

1. biguglyhack.jar
Works.

2. Add "-J-Dsun.sound.useNewAudioEngine="false" into Shortcut
Not works.

Java 1.7.0_05
Windows 7 x86

@Nick23,

If there's something wrong and want to restore Java environment, I guess I just need to remove biguglyhack.jar from lib/ext directory, right?
Correct me if I'm wrong, please!
patricemny
Beginner
Posts: 1
Joined: Fri Jun 22, 2012 6:21 am
Rank: 4 kyu
GD Posts: 0
KGS: kayok
DGS: patoche

Re: stone clicking sound missing - windows 7

Post by patricemny »

Hello world!

I experienced too many missing sounds, and some heavy slowdowns while running games in blitz (few seconds, but very handicaping in such situations).

So, I decided to develop a very small Batch script for Windows XP/Vista/7. Its principle is quite simple: it goes in the regitry to find the exact location of de JRE6, then runs Java WebStart to load cgoban.jnlp, which can be located locally or not ()by default, the script goes to KGS in order to retrieve it.

The download link is here (virus free, I promise :) ) --> https://www.dropbox.com/s/bqztjp5gapw4c1w/CGoban.bat

Patrice
Sumatakyo
Dies in gote
Posts: 48
Joined: Mon Mar 12, 2012 4:14 am
GD Posts: 0
Location: Montreal, Canada
Been thanked: 9 times

Re: stone clicking sound missing - windows 7

Post by Sumatakyo »

Nick23 wrote:
How to implement? First, open the zip file and look through the source code for any malware or security vulnerabilties. If you are satisfied, and willing to use this at your own risk, rename the file to .jar and place it under lib/ext in your java home directory. For me this was /usr/lib/jvm/jre/lib/ext. For you it may be C:\Program Files\Oracle\Java1.7.0\lib\ext.



No programming knowledge whatsoever, so please excuse the newbie questions, but...

by renaming the file .jar, you mean renaming the folder .jar?
There are many files in the folder... so I'm kinda at a loss :sad:
blade90
Lives with ko
Posts: 160
Joined: Thu Sep 02, 2010 11:16 am
Rank: KGS 2k
GD Posts: 0
KGS: blade90
Has thanked: 15 times
Been thanked: 11 times

Re: stone clicking sound missing - windows 7

Post by blade90 »

Sumatakyo wrote:
Nick23 wrote:
How to implement? First, open the zip file and look through the source code for any malware or security vulnerabilties. If you are satisfied, and willing to use this at your own risk, rename the file to .jar and place it under lib/ext in your java home directory. For me this was /usr/lib/jvm/jre/lib/ext. For you it may be C:\Program Files\Oracle\Java1.7.0\lib\ext.



No programming knowledge whatsoever, so please excuse the newbie questions, but...

by renaming the file .jar, you mean renaming the folder .jar?
There are many files in the folder... so I'm kinda at a loss :sad:

He means: rename the zip file to jar (example: test.zip -> test.jar)

I guess you are using windows:
if you see a folder instead of the zip file, then that means windows opens it for you. In that case install winrar and then it will be shown as a file.
Uberdude
Judan
Posts: 6727
Joined: Thu Nov 24, 2011 11:35 am
Rank: UK 4 dan
GD Posts: 0
KGS: Uberdude 4d
OGS: Uberdude 7d
Location: Cambridge, UK
Has thanked: 436 times
Been thanked: 3718 times

Re: stone clicking sound missing - windows 7

Post by Uberdude »

Install WinRar? That's rather OTT. I suspect Sumatakyo' problem is Windows is hiding the extensions of files. You can show them with a setting, precisely where it is depends on what version of Windows but it's probably something like in Windows explorer go to Tools menu, Folder Options, and in View tab uncheck Hide extensions.
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: stone clicking sound missing - windows 7

Post by daal »

I just lost my stone sound when I "upgraded" to java 1.6 build 33. I must say that this sort of thing (software not working properly, having to fiddle with something that you don't know how to do that might break something else) sucks.

That said, would somebody help me try to implement this solution:


UnclMartin wrote:Here is a solution that comes to us via email that should work for the Java Web Start client (but not the applet):

Edit the shortcut or command that starts CGoban and add
-J-Dsun.sound.useNewAudioEngine="false"
after javaws.

For example, if your command was javaws cgoban.jnlp change it to javaws -J-Dsun.sound.useNewAudioEngine="false" cgoban.jnlp


Some of you please try this, and post the results here.

For those of you who use the "java" command instead of the "javaws", remove the "-J" For example,
java -Dsun.sound.useNewAudioEngine="false" -jar cgoban.jar


How do I edit the shortcut? When I right click the shortcut and select properties, this is what is in target: C:\WINDOWS\system32\javaws.exe -localfile "C:\Dokumente und Einstellungen\daal\Anwendungsdaten\Sun\Java\Deployment\cache\6.0\54\21086f76-71eccf2c"

Is this where I'm supposed to add something? I tried inserting -J-Dsun.sound.useNewAudioEngine="false" right after javaws.exe, but it didn't work.

What a bother.

Edit: btw, I am using windows xp, and this is making me angrier by the minute.
Patience, grasshopper.
teralaser
Beginner
Posts: 2
Joined: Sun Jun 24, 2012 3:46 pm
Rank: KGS 5 kyu
GD Posts: 0
Universal go server handle: teralaser
Has thanked: 1 time

no stone click sound on Windows 7 - java fix

Post by teralaser »

1. First make sure "File extensions" can be seen on your Windows machine. Open "Windows Explorer" (find it in Start or use 'WindowsKey' and 'E').
Press 'Alt' and 'v'. In pull-down menu, choose 'Folder options'. Click the tab 'View'. Uncheck "Hide extensions for known file types".
2. Right-click on your desktop. "New", "text document", name it 'j31cgoban'
3. Paste this line into it:

"C:\Program Files\Java\jdk1.6.0_31\bin\java.exe" -jar "%homedrive%%homepath%\Desktop\cgoban.jar"

4. Now get cgoban.jar from http://files.gokgs.com/javaBin/cgoban.jar ... Choose "Save As" and save on your desktop.
5. Find the cgoban.zip or cgoban.jar file. Rename from cgoban.jar to cgoban.zip . Ignore Unuseable warning
6. Find the j31cgoban.txt file and rename it j31cgoban.bat. Ignore unuseable warning.
7. If you prefer to 'hide known extensions' repeat 1. but check 'Hide extensions' instead of uncheck.
8. You can play on KGS by double-clicking on j31cgoban (or j31cgoban.bat)
- you can check the stone sound by -inside the cgoban program- go to Preferences, set sound to "All games" not just "My games", enter a game, wait for a player to play.

Improvements:
- You can make a shortcut by copying another shortcut (click the shortcut once, Ctrl-C, Ctrl-V, look for "Copy of" on your desktop). Rightclick, 'Properties', and then change 'Target' to
"C:\Program Files\Java\jdk1.6.0_31\bin\javaw.exe" -jar "%homedrive%%homepath%\Desktop\cgoban.jar"
- You can also change the location of the cgoban.jar file to anywhere you like. Just change "%homedrive%%...etc." to "C:\MyCGobanPlace\cgoban.jar"

Problems:
- The java 1.6.0_031 maybe installed at another location , look for it, and change the path
- On a new installation java 1.6.0_031 may not be installed, look for it here http://www.oracle.com/technetwork/java/ ... 31-oth-JPR

Best regards, teralaser
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: stone clicking sound missing - windows 7

Post by daal »

Teralaser -

Thank you for your clear and detailed description of that workaround.

My rough understanding of what it does is that it makes cgoban use the older version of java - is this correct?

Nonetheless, this solution is different than the solutions recommended by KGS (see https://www.gokgs.com/help/Java.html ).

I personally have now downgraded java to version 31. but since this is not a very good permanent solution, I would still like someone to explain how to implement UnclMartin's solution.

He writes:

Edit the shortcut or command that starts CGoban and add
-J-Dsun.sound.useNewAudioEngine="false"
after javaws.


Command? To start KGS, I click an icon, which I assume is what is meant by shortcut. Where in my shortcut is this "javaws" ? Like I said, in properties I found javaws.exe, but putting something before the .exe seems not to make sense. Please remember, we're not all born typing code.
Patience, grasshopper.
Sumatakyo
Dies in gote
Posts: 48
Joined: Mon Mar 12, 2012 4:14 am
GD Posts: 0
Location: Montreal, Canada
Been thanked: 9 times

Re: stone clicking sound missing - windows 7

Post by Sumatakyo »

Thanks for the help!

Unfortunately... I'm still not getting any sound...
I think I'll try going over everything one more time tomorrow... hopefully it works then :scratch:

I really can't stand not knowing when the other player has placed a stone on the board... Run out of time fast ><
So I think I'll just play my Tygem account until I can resolve this...
User avatar
ez4u
Oza
Posts: 2414
Joined: Wed Feb 23, 2011 10:15 pm
Rank: Jp 6 dan
GD Posts: 0
KGS: ez4u
Location: Tokyo, Japan
Has thanked: 2351 times
Been thanked: 1332 times

Re: stone clicking sound missing - windows 7

Post by ez4u »

daal wrote:Teralaser -

Thank you for your clear and detailed description of that workaround.

My rough understanding of what it does is that it makes cgoban use the older version of java - is this correct?

Nonetheless, this solution is different than the solutions recommended by KGS (see https://www.gokgs.com/help/Java.html ).

I personally have now downgraded java to version 31. but since this is not a very good permanent solution, I would still like someone to explain how to implement UnclMartin's solution.

He writes:

Edit the shortcut or command that starts CGoban and add
-J-Dsun.sound.useNewAudioEngine="false"
after javaws.


Command? To start KGS, I click an icon, which I assume is what is meant by shortcut. Where in my shortcut is this "javaws" ? Like I said, in properties I found javaws.exe, but putting something before the .exe seems not to make sense. Please remember, we're not all born typing code.

When I right click on the KGS icon on my desktop [edit: and then left click on "properties"], I see this...
Image
The original line under "Target" here is:

C:\Windows\SysWOW64\javaws.exe -localfile "C:\Users\dave\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\54\21086f76-54db9c90"

After I modify it following UnclMartin's instructions it looks like this:

C:\Windows\SysWOW64\javaws.exe -J-Dsun.sound.useNewAudioEngine="false" "C:\Users\dave\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\54\21086f76-54db9c90"

This is all under Windows 7 Home Edition 64-bit and it works for me. Note that the absence of -localfile in the edited "Target" line did not do anything bad for me. :)
Dave Sigaty
"Short-lived are both the praiser and the praised, and rememberer and the remembered..."
- Marcus Aurelius; Meditations, VIII 21
teralaser
Beginner
Posts: 2
Joined: Sun Jun 24, 2012 3:46 pm
Rank: KGS 5 kyu
GD Posts: 0
Universal go server handle: teralaser
Has thanked: 1 time

daal , yes

Post by teralaser »

Hello Daal, yes the javaws -J-Dsun.sound.useNewAudioEngine="false" cgoban.jnlp solution also works on my machine.
I've heard the "big ugly hack" one also works (but for ordinary users it might be tricky to find the right java version, I suspect), but I have no time to test for a while (travelling).

My solution is a basic downgrade, yes.

Also, my solution gets around the "not signed" problem with gokgs: some users can not even get the java web start to work *at all*.

(I think some of this security change is very warranted, on one of my machines the S.M.A.R.T. hdd virus did attach to the gokgs.jnlp or .jar - deleting the jnlp cache and loading it again solved it - again not easy for non-coder users)
User avatar
judicata
Lives in sente
Posts: 932
Joined: Wed Apr 21, 2010 12:55 pm
Rank: KGS 1k
GD Posts: 0
Universal go server handle: judicata
Location: New York, NY
Has thanked: 146 times
Been thanked: 150 times

Re: stone clicking sound missing - windows 7

Post by judicata »

Biguglyhack worked for me, as of this weekend. Windows 7 Pro 64-bit. I had almost resorted to running it in Ubuntu or XP through virtualbox...though I'm not sure it would have worked.
Post Reply