Page 1 of 1

How to unlock all tracks in Linux version of SuperTuxKart

PostPosted: 11 May 2018, 09:06
by peterpandam
I want to set up an open-source gaming party, kinda small, in my local area, all of the machines running Ubuntu. One of the games I plan on have there is SuperTuxKart, specifically the 0.9 version. I want to unlock everything in the game without taking the time to play through the entire campaign mode, so I figured that I would cheat. I've seen millions of guides telling you to modify ~/.config/supertuxkart/challenges.xml, but for the life of me I cannot find that file in that location. Please help, I need this up and running in a week or so.

Re: How to unlock all tracks in Linux version of SuperTuxKar

PostPosted: 12 May 2018, 21:25
by Auria
Hi,

see "where is the configuration stored" on the FAQ: https://supertuxkart.net/FAQ , it can vary depending on your distribution but is usually ~/.config/supertuxkart/0.8.2/players.xml

Re: How to unlock all tracks in Linux version of SuperTuxKar

PostPosted: 12 May 2018, 21:30
by Alayan
This is probably spam.

The EXACT SAME QUESTION was asked on askubuntu in APRIL 2016 : https://askubuntu.com/questions/758410/ ... uxkart-0-9

Re: How to unlock all tracks in Linux version of SuperTuxKar

PostPosted: 23 May 2018, 16:05
by theofilus
I have tried, but the solution in the FAQ doesn't work, at least, not for me, since the file players.xml seems to be some kind of binary file, and I can't edit it in gedit or any other text editor. How do I go about editing this file?
(I have no interest in editing the high scores but, if it helps, the file hiscores.xml also seems to be a binary file.)

Re: How to unlock all tracks in Linux version of SuperTuxKar

PostPosted: 24 May 2018, 00:10
by Auria
players.xml is a text file, but is encoded using the uncommon UTF-16 encoding, which it seems gedit has trouble handling by default. You could try another text editor, or maybe there is an option somewhere in gedit to handle utf-16 files

Re: How to unlock all tracks in Linux version of SuperTuxKar

PostPosted: 24 May 2018, 00:29
by Arthur
Yes you can make it open as UTF-16 in gedit, however gedit is not able to do it properly on the fly so you will need to restart it. Considering adding this to our FAQ.

Re: How to unlock all tracks in Linux version of SuperTuxKar

PostPosted: 24 May 2018, 00:46
by QwertyChouskie
Is there any good reason for these to be in a non-standard encoding? This should probably be fixed to avoid confusion (though for the record, Mousepad seems to work with the files just fine).

Re: How to unlock all tracks in Linux version of SuperTuxKar

PostPosted: 24 May 2018, 01:01
by Alayan
The encoding is supposed to be like that to allow the correct storage of players name (which can use unicode characters). I don't see why UTF-16 is used rather than UTF-8, however. Wouldn't be 8 more economical space-wise, and more supported ?

Re: How to unlock all tracks in Linux version of SuperTuxKar

PostPosted: 24 May 2018, 01:18
by QwertyChouskie

Re: How to unlock all tracks in Linux version of SuperTuxKar

PostPosted: 24 May 2018, 01:49
by theofilus
Thank you for your answers. I downloaded Mouspad as QwertyChouskie suggested, and it opened the file without any problems. I had tried different encodings, including UTF 16, in Gedit, but it didn't work there. Now I can get back to racing like I did before I got a new computer.

Re: How to unlock all tracks in Linux version of SuperTuxKar

PostPosted: 24 May 2018, 06:01
by deve
I never liked these UTF-16 files :P And btw. in config.xml there is "everything_unlocked" parameter that should work too.

Re: How to unlock all tracks in Linux version of SuperTuxKar

PostPosted: 06 Jun 2018, 04:13
by QwertyChouskie
This has now been fixed in the git version.