Page 1 of 1

How to unblok all levels?!

PostPosted: 22 Dec 2016, 14:23
by zequinha
Hi,

I want to unblock all the levels of supertuxkart 0.9.2, but I cannot find the file ''/home/USERNAME/.config/supertuxkart/challenges.xml''. My system install created a folder ''/home/USERNAME/.config/supertuxkart/0.8.2'' which is odd because the version I am using is 0.9.2. Also this folder contains no challenges.xml, neither have i found this file anywhere on my sistem. What a nightmare.

I tried the static build for GNU/Linux and the challenges.xml file is not there either!

Need help please! I have got an impatient 5 year old here. My goodness, we really need to implement a simple button in the options to ''unblock all tracks and characters''. It is an absurd having to mess with install folders (which on Unix-like systems are a maze) to find a possibly inexisting file to unblock all tracks and characters. My operating system is Antergos. Thank you!

Re: How to unblok all levels?!

PostPosted: 22 Dec 2016, 16:58
by farrer
zequinha {l Wrote}:Hi,
My system install created a folder ''/home/USERNAME/.config/supertuxkart/0.8.2'


Go to that folder, open players.xml file and you see, for each defined player, something like:

{l Code}: {l Select All Code}
<story-mode first-time="false">
        <abyss solved="none"/>
        <city solved="none"/>
        <farm solved="medium"/>
        <fortmagma solved="none"/>
        <gp1 solved="medium"/>


Just edit each 'solved="none"' to a completion level.

and also:

{l Code}: {l Select All Code}
<achievement id="1" achieved="false">
          <abyss value="0"/>
          <city value="1"/>
          <cocoa_temple value="1"/>
          <farm value="1"/>


change achieved to "true" and values from "0" to "1".

Re: How to unblok all levels?!

PostPosted: 22 Dec 2016, 19:36
by zequinha
Thank you so much! It really helped and my nephew enjoyed! :)

I think it would be a great idea to implement a simple ''Unlock game levels" toggle button somerwhere on the game settings.

Re: How to unblok all levels?!

PostPosted: 22 Dec 2016, 23:16
by onpon4
That kind of thing would probably be better as a password, considering they're supposed to be unlockable. Maybe it could be possible to create a player from a password that sets the completion level of the tracks based on it, ostensibly to keep your progress when you migrate between machines (but also so you can more easily cheat your way into unlocking everything).

Re: How to unblok all levels?!

PostPosted: 03 Nov 2017, 02:01
by sricks3
I've tried to do this, but my players.xml (and highscore.xml) file seems to use some sort of weird encoding. Pluma and VIM are unable to determine the encoding, so I'm unable to edit the file(s). How should the files be encoded? I'm using the STK version 0.8.2 from the Antergos community repository if that makes any difference.