ez4u wrote:... After I modify it following UnclMartin's instructions it looks like this: ...
Thanks, Dave.
Glad to be able to help. I assume that this fix will break every time we update Java because those updates keep changing the directory structure. So keep this thread handy!
Dave Sigaty
"Short-lived are both the praiser and the praised, and rememberer and the remembered..."
- Marcus Aurelius; Meditations, VIII 21
- Well, I tried the "biguglyfile" trick... didn't work. - Tried the altered extension with AudioEngine="false" extension... didn't work. - Cleared Java cache. Uninstalled all Java. Only installed version 6.31 of Java. (Tried same with 6.30.) Still didn't work...
(Oh and I did a "system recovery" but that didn't help either...)
Any Java geniuses have an idea of what to try next?
Really don't want to give up on KGS. Worse comes to worse I'll buy the Android app to play on my tablet, which I've thinking of getting anyways, but I'd still like to play with sound on my computer.
I had stone click sound missing (not sure of other sounds, didn't test) when I auto-updated to Java 7 update 5, but I got them back when I deleted it from control panel and redownloaded Java 6 update 31 from this link: https://www.gokgs.com/help/Java.html
I really don't want to have to mess around with my system and possibly change things that might cause problems later. This sounds like an issue with CGoban... is it likely that the developer will fix this and release a new version?
wms wrote:Yes, the stone clicks were the first sounds added to KGS, back when Java was young and the only audio system was very primitive.
Later as I added more audio I would always use the "latest and best" java audio system, and because Java audio was always screwed up they kept writing whole new systems, so now there are three different audio systems that KGS uses. I would have expected the old systems in java to pass through to the newer, but no that is not the case, instead they use totally different underlying system APIs in some cases, so you get weird things where you hear the clicks but not the KGS Plus audio, or the warning beeps but not the clicks, or whatever. Sigh.
Sumatakyo wrote:- Well, I tried the "biguglyfile" trick... didn't work. - Tried the altered extension with AudioEngine="false" extension... didn't work. - Cleared Java cache. Uninstalled all Java. Only installed version 6.31 of Java. (Tried same with 6.30.) Still didn't work...
(Oh and I did a "system recovery" but that didn't help either...)
Any Java geniuses have an idea of what to try next?
Really don't want to give up on KGS. Worse comes to worse I'll buy the Android app to play on my tablet, which I've thinking of getting anyways, but I'd still like to play with sound on my computer.
Well I was wrong. I thought the stone clicking didn't work because when I open a game and edit it, no stone sounds are heard... but after loging in and trying it... it does work with games online!
Thank you for those that posted tips for fixing the bug
I use the solution from UnclMartin and it works! Thank you!
I am using Windows Vista (32-bit).
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
Thank you, person that sent the email. (I guess he wishes to remain anonymous, since he did not post that here himself.)
The fix I relayed is the "official" fix from Oracle. However, the admins are getting reports that it does not work for Java 1.7 updates 4 and 5. The fix from Nick23 seems to work on more systems.
Thank you to those who provided the details on using that fix.
In addition to it not working on Java 1.7 updates 4 and later, some users might encounter a command line length limitation. I just tried it on a Windows XP machine. The original command was this:
C:\WINDOWS\SYSTEM32\javaws.exe -localfile -J-Djnlp.application.href=http://files.gokgs.com/javaBin/cgoban-nfa.jnlp "C:\Documents and Settings\Owner\Local Settings\Application Data\Sun\Java\Deployment\cache\6.0\8\30bb1788-51c4a15f"
When I tried to add the switch, I expected this:
C:\WINDOWS\SYSTEM32\javaws.exe -J-Dsun.sound.useNewAudioEngine="false" -localfile -J-Djnlp.application.href=http://files.gokgs.com/javaBin/cgoban-nfa.jnlp "C:\Documents and Settings\Owner\Local Settings\Application Data\Sun\Java\Deployment\cache\6.0\8\30bb1788-51c4a15f"
However, because that would have made the command too long, I actually got this: C:\WINDOWS\SYSTEM32\javaws.exe -J-Dsun.sound.useNewAudioEng -localfile -J-Djnlp.application.href=http://files.gokgs.com/javaBin/cgoban-nfa.jnlp "C:\Documents and Settings\Owner\Local Settings\Application Data\Sun\Java\Deployment\cache\6.0\8\30bb1788-51c4a15f"
In that case, I can delete -J-Djnlp.application.href=http://files.gokgs.com/javaBin/cgoban-nfa.jnlp in order to make more room, and the client appears to start up and run normally.* However, I do not know what effect deleting that it might later have.
*This computer uses Java 1.7, update 5. I tried this fix here to see whether or not it would fix the missing stone click here. It did not fix the missing stone click problem.
I started encountering this problem last night. I read this thread and tried updating my java to 7, and using the ugly hack, and nothing worked for me. But when I opened up the KGS configure menu and selected that the sounds apply for "all games" instead of just my own the stone clicks were back for everything.
tidiview wrote:[font=verdana]faced problem during entire day yesterday.
tried downgrading: failed
One thing here (for future commenters who might be reading this thread) -- from what I've seen when you roll back you need to roll all the way back to 1.6_30 ... the sound issue still affects many people who have 1.6_31 and later, so just rolling back to the last 1.6 isn't quite enough.
I updated my Java to (1.)7.x yesterday (from (1.)6.x), and that's when I lost stone sounds in KGS (pass sounds still work). I tried replacing "-localfile" with "-J-Dsun.sound.useNewAudioEngine="false"" in the shortcut, but no luck: still no sound. (Win7/x64)
Java has always sucked, on both Windows and especially Linux. I don't know how it ever managed to become so widespread.
wms, are you looking into the problem from your end?
Yeah, it's pretty annoying... The ugly hack worked for me, but then some weird stuff started happening so I decided to just make do with no sound until something gets fixed.
I'd skimmed this thread before, and thought, "Man, this all sounds horribly complex, I'm glad this hasn't happened to me!" Sadly, the latest update yesterday has thrown me into the quagmire.
I echo a previous poster - is there anything happening on the KGS side of things? I'm not exactly a world-class hacker, and think I'm doing pretty well just getting this message on to the forum, so these edits and roll-backs and patches and fixes and bugs and other assorted goodies just sort of leave me a little lost. I appreciate the basic steps that people have posted, but I can't seem to get it sorted for some reason; the easy-to-follow diagrams just don't seem to relate to what I get on my screen when I try and follow them. Anyway, enough moaning from me. If this is the worst thing that happens to me today, I suppose that's cause for celebration.
I do find it strange how crucial the sound is. I am completely at sea without it.