Sunday, February 28, 2010

How to fix the broken tutorials in Glest

I installed the free, real-time strategy game Glest with Kubuntu 9.10 using

$ sudo apt-get install glest

and found that the tutorial button did nothing because the repository version of Glest has a broken data file.

To fix this I had to get the missing files, put them into the correct place and tell Glest about them.

1 Get the missing files

You can download the latest glest-data files from SourceForge, or just do this :

$ cd ~
$ mkdir glestupdate
$ cd glestupdate
$ wget http://downloads.sourceforge.net/project/glest/glest%20data/3.2.1/glest_data_3.2.1.zip?use_mirror=surfnet
$ unzip glest_data_3.2.1.zip


2 Put them in the right place

$ cd glest_game
$ sudo cp -r * /usr/share/games/glest/.


3 Tell Glest about them, add a link to the ~/.config/glest directory that is created when you first run Glest

$ sudo ln -s /usr/share/games/glest/tutorials ~/.config/glest/tutorials

I deleted the ~/glestupdate directory and Glest tutorials work now.

No comments: