Wednesday, January 09, 2008

Decent Sound in KGS/cgoban3

As I've reported before, there was a way to replace the default ugly KGS/cgoban2 stone sound with a sound file of your choosing. That method also worked in the cgoban3 beta. Well, it's been a while since the full release of cgoban3 and I now find myself back on KGS. However, I see the full version no longer allows this same method since it's been digitally signed. I believe I've found the way around this:
  1. mkdir cgoban_tmp ; cd cgoban_tmp
  2. wget http://files.gokgs.com/javaBin/cgoban.jar
  3. jar xvf cgoban.jar
  4. rm META-INF/KGS2007.*
  5. cp /archive/misc/multigo_stone_fsf.wav org/igoweb/go/sounds/stone.wav
  6. jar cvmf META-INF/MANIFEST.MF cgoban.jar .
  7. sudo cp cgoban.jar /usr/local/cgoban3/cgoban.jar
That's it! Beautiful sound yet again. :)

By the way, I am not a java developer so I'd appreciate any comments on a better and/or easier method.

Update 2008-01-15: Added the . parameter to the end of step six.