How to use own images and sounds

You find the sounds in the share directory within the glGo installation. On Linux this is by default /usr/share/games/glGo, on Windows C:\Program Files\glGo\share (or wherever you installed glGo). On Mac you need to right-click on the glGo icon in your Applications folder, select "Show package contents" and move to the SharedSupport folder.

In this directory you find the sound files and a file data.dat which contains the default images.

Using own sound files is pretty easy, just replace the existing sound files with your own. You need to use exactly the filenames. To replace the stone sound, you need to replace "stone.wav", etc. The sounds must be in .wav format. The current sounds were taken from CGoban2 with the permission of the author. If you have a cool sound, please send it to me if you want to share it!

To use own images, you need to create a directory data/ within the share directory and drop the images there. glGo will first search real existing files, and if they are not found use the defaults in data.dat. The images must have a certain name, format and size:

The goban kaya backgroundkaya.jpg512x512
The 3D white stone texturewhite_tex.jpg64x64
The 3D white last-move markermark_white.jpg64x64
The 3D black last-move markermark_black.jpg64x64
The table background (2D+3D)table.png128x128
The SDL white stonehyuga1.png - hyuga8.png49x49
The SDL black stoneblk.png49x49

Example: To replace the kaya goban background, copy an image file kaya.jpg of size 512x512 pixels into the following location:

If you use another image format or another size, it might work or not. Probably not. The OpenGL images must have a size of a power of two. SDL doesn't care about.

All images are automatically resized. The table background is made from 6x6 tiles with each 128x128 pixels size.

To change the font used by the 2D board, replace FreeSans.ttf with a TrueType font file of your choice. The font does not need to be FreeSans, just the file must be named "FreeSans.ttf".

You can also use an own font file for OpenGL board coordinates and text markers by replacing the coords_font.txf file in the share directory. If you want to create those font files yourself, have a look at the gentexfont program within the GLUT distribution which allows to convert a X-server font to a .txf file. I have no idea if there is a way to create these font files on Windows. You can find them on the net, the Plib example code has a couple of those font files.