xmoto fails to tart up

Asked by Vanostaajen

xmoto is my favorite game. But when I try to start up lately the window(totally black) appears but closes directly. I tried reinstalling but that didn't work. Any advise is good advise!

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu xmoto Edit question
Assignee:
No assignee Edit question
Solved by:
ike
Solved:
Last query:
Last reply:
Revision history for this message
Bhavani Shankar (bhavi) said :
#1

What driver are you using?

Revision history for this message
Arnaudus (a-lerouzic) said :
#2

Hi,

Try to open xmoto in a terminal (Applications -> Accessories -> Terminal, and type xmoto). Then you will (hopefully) get an error message you can report.

Revision history for this message
Vanostaajen (tvodeslimme) said :
#3

@Arnaudus: I get this when doing that:

fatal exception : Your XM database required a newer version of xmoto

what does it mean?

And @Bhavani Shankar I don't know, how can I see?

Revision history for this message
Arnaudus (a-lerouzic) said :
#4

It looks like a problem linked to an update. Have you done something special, like installing xmoto from a package you have downloaded on the web?

Two suggestions:
1) Erase the personal database (type: 'mv ~/.xmoto ~/.xmoto_old' in a terminal) and restart xmoto.
2) Reinstall xmoto completely:

sudo apt-get remove --purge xmoto xmoto-data
sudo apt-get install xmoto xmoto-data

(the --purge also removes your personal files -- scores, etc -- stored in ~/.xmoto).

In both cases you will lose your personal bests. If you wish to keep them somewhere, store the content of the hidden directory .xmoto somewhere else.

Hope this helps!

Revision history for this message
Vanostaajen (tvodeslimme) said :
#5

I prefer to keep my personal best of course.
I try to find this .xmoto file but I'm unable to. Can you give a more detailed explanation how to preserve my records?

Revision history for this message
Arnaudus (a-lerouzic) said :
#6

Hi,

OK, so let's be clear: you get an error because your data base (your .xmoto directory) does not seem to correspond to your version of xmoto. I don't know what happened exactly, have you upgraded your Ubuntu or your version of xmoto? In any case, it is possible that there is no way to keep your replays, personal bests, etc.

Your .xmoto directory is a hidden file in your home directory. Places -> Home Folder will open Nautilus, View -> Hidden files will show the hidden files. Find the directory named .xmoto (with a dot at the beginning), and rename it (like .xmoto-old , whatever).

Then open xmoto. If it does not work, then it's not the way to proceed anyway, and I don't know how to fix your problem. If it works, just quit.

Launching xmoto should have created a new .xmoto directory which matches your xmoto version. You can then try to replace the files and the directories in the new .xmoto by directories from the old .xmoto. I don't know where your personal bests are. Perhaps in Replay ? Each time you replace something, try to launch xmoto and see if it works. When it crashes, then you have found the problematic file/directory, the one that cannot be read.

In any case, there is no warranty at all that it may work.

Revision history for this message
Best ike (igor-kolar) said :
#7

Vanostaajen, this has happened to me as well.

Most probably, you've somehow managed to override your maps / high scores with data meant for a newer version of xmoto. What you need to do is install the latest version. Try apt-get install xmoto, and if that does nothing, go here:
 -> http://packages.ubuntu.com/search?keywords=xmoto&searchon=names&suite=jaunty&section=all

.. and download both xmoto and xmoto-data .debs for your arch (i386 or amd x64). Then enter a terminal, type sudo su -, and do dpkg-i <deb> for both deb files. They will be upgraded, by hand. This solved the problem for me.

My situation was a bit specific - I had parallel installs of Ubuntu 8.10 Intrepid and 9.04 Jaunty on seperate partitions, but with a shared /home partition. Jaunty has a newer version of xmoto than intrepid, so after running the game on Jaunty, it had updated the data files. After rebooting to the old (albeit only 6 months, which is not a lot in OS age) ubuntu, the old version did not recognise the data files and would just quit after a black screen.

The solution is to manually install the new version of the game. It works perfectly, as far as I can tell. I've filed a but to get the Intrepid maintainer to upgrade the game about a week back [1], so far with no response.

Ubuntu has a short 6 mth release cycle and it seems that after that, everybody just moves on to the newer version, leaving older installs stranded. It's quite acute, much more than with Debian (which has a muuuuuuch much longer release cycle), and I'm actually here to complain about an old version of network-manager in intrepid.

Home this helps.

Revision history for this message
Vanostaajen (tvodeslimme) said :
#8

Thanks ike, that solved my question.