Page 1 of 2

Playing from my flash drive?

PostPosted: 19 Jan 2020, 18:16
by tuxkartkaye
Hello Friends

I've been playing STK in my Linux system for awhile now and I was wondering if I could transfer the whole thing to my USB flash drive?

What I want to achieve is to be able to install STK in my flash drive, play it from there, and all configurations and game achievements would be stored in the flash drive, so that I could take the game

and all my game achievements and play anywhere and continue where I left off, for example if I have unlocked 5 tracks, the next time I play from the flash drive I would still have 5 unlocked tracks,

regardless of the computer where the flash drive is inserted into, i.e. I could stick the flash drive into my friends desktop computer and I would unlock another track, making it 6 tracks total, and I

would go home and I would try to unlock the 7th track (because the 6th was unlocked thru my friend's computer earlier).

Thank you!

Re: Playing from my flash drive?

PostPosted: 19 Jan 2020, 19:14
by DoggoOfSpeed
Is this what you are looking for?
https://supertuxkart.net/FAQ

The intended in-game way is to play story mode and beat all challenges. If however you want to unlock everything without playing story mode, you can also cheat by editing a config file. Open the folder mentioned above in question "Where does STK store the user config file". From there, open the folder "config-0.10" then open the file "players.xml". Replace all occurrences of "none" with "hard" (or "easy" or "medium", indicating the highest level at which you have solved a challenge).

Re: Playing from my flash drive?

PostPosted: 20 Jan 2020, 02:30
by tuxkartkaye
No, it's not. I'm talking about playing from my flash drive.

Re: Playing from my flash drive?

PostPosted: 20 Jan 2020, 11:53
by benau
You need to use environment variable to save config to flash drive instead of home folder

Re: Playing from my flash drive?

PostPosted: 20 Jan 2020, 18:21
by eltomito
Or, you can copy the stk config directory between the machines. On my Ubuntu 18.04, it's
{l Code}: {l Select All Code}
~/.config/supertuxkart/config-0.10/

Actually, maybe all you really need to copy back and forth is this file:
{l Code}: {l Select All Code}
~/.config/supertuxkart/config-0.10/players.xml

Re: Playing from my flash drive?

PostPosted: 20 Jan 2020, 19:04
by dulsi
But that would overwrite someone else progress unless you backed it up first and restored it afterwards. Additionally it assumes the machine has SuperTuxKart or you can install it. If you setup the Windows version on the flash drive as well, you could play on someone's windows computer. I don't have a need for it but I could see it being useful.

Re: Playing from my flash drive?

PostPosted: 20 Jan 2020, 20:29
by eltomito
dulsi {l Wrote}:But that would overwrite someone else progress unless you backed it up first and restored it afterwards. Additionally it assumes the machine has SuperTuxKart or you can install it. If you setup the Windows version on the flash drive as well, you could play on someone's windows computer. I don't have a need for it but I could see it being useful.


Agree but the copying thing works today and it's platform independent - as long as you find where the config file is :lol:

Re: Playing from my flash drive?

PostPosted: 21 Jan 2020, 02:52
by tuxkartkaye
Hi friends, I'm the OP.

What if I've been playing 1.0 for a while and I've made quite a few achievements already, and now 1.1 has come out. What should I do? Or do I have to start from zero again?

Re: Playing from my flash drive?

PostPosted: 21 Jan 2020, 03:50
by benau
1.1 and 1.0 profile are compatible

Re: Playing from my flash drive?

PostPosted: 22 Jan 2020, 17:05
by tuxkartkaye
Hello friends
Copying the entire config-0.10 does absolutely nothing with regards to the unlocked tracks, as well as my high scores on Normal Race.

Re: Playing from my flash drive?

PostPosted: 23 Jan 2020, 23:47
by eltomito
tuxkartkaye {l Wrote}:Hello friends
Copying the entire config-0.10 does absolutely nothing with regards to the unlocked tracks, as well as my high scores on Normal Race.


Beats me! @Benau? Any idea?
I think it has to work. Maybe the config directory is called something else on the other system? Find the right config dirs on both systems. It's gotta work!

Re: Playing from my flash drive?

PostPosted: 24 Jan 2020, 02:14
by benau
all your unlocked tracks is stored in players.xml inside config-0.10, so whats your problem?

Re: Playing from my flash drive?

PostPosted: 29 Jan 2020, 17:10
by tuxkartkaye
You need to use environment variable to save config to flash drive instead of home folder


How do I do that?

Re: Playing from my flash drive?

PostPosted: 29 Jan 2020, 18:06
by benau
try SUPERTUXKART_SAVEDIR=/some/folder bin/supertuxkart (or ./run_game.sh), then in your /some/folder/config-0.10 will have players.xml which saved the list of unlocked track

Re: Playing from my flash drive?

PostPosted: 08 Mar 2020, 12:54
by tuxkartkaye
Before I try that, can anyone please explain to me why I've already unlocked several tracks, as you can see in the attached file, but my

/home/user/.config/supertuxkart/config-0.10

looks like this:

{l Code}: {l Select All Code}
<?xml version="1.0"?>
<players version="1" >
    <current player="kaye"/>
    <player name="kaye" guest="false" use-frequency="15"
            icon-filename="1.png"
            unique-id="1" saved-session="false"
            saved-user="0" saved-token=""
            last-online-name="tuxkartkaye" last-was-online="true"
            remember-password="false"
            default-kart-color="0">
      <story-mode first-time="true">
        <abyss solved="none" best_while_slower="false"/>
        <candela_city solved="none" best_while_slower="false"/>
        <cocoa_temple solved="none" best_while_slower="false"/>
        <cornfield_crossing solved="none" best_while_slower="false"/>
        <fortmagma solved="none" best_while_slower="false"/>
        <gp1 solved="none" best_while_slower="false"/>
        <gp2 solved="none" best_while_slower="false"/>
        <gp3 solved="none" best_while_slower="false"/>
        <gp4 solved="none" best_while_slower="false"/>
        <granparadiso_island solved="none" best_while_slower="false"/>
        <green_valley solved="none" best_while_slower="false"/>
        <hacienda solved="none" best_while_slower="false"/>
        <lighthouse solved="none" best_while_slower="false"/>
        <mansion solved="none" best_while_slower="false"/>
        <mines solved="none" best_while_slower="false"/>
        <minigolf solved="none" best_while_slower="false"/>
        <olivermath solved="none" best_while_slower="false"/>
        <sandtrack solved="none" best_while_slower="false"/>
        <scotland solved="none" best_while_slower="false"/>
        <snowmountain solved="none" best_while_slower="false"/>
        <snowpeak solved="none" best_while_slower="false"/>
        <stk_enterprise solved="none" best_while_slower="false"/>
        <unlock_bonus_kart1 solved="none" best_while_slower="false"/>
        <unlock_bonus_kart2 solved="none" best_while_slower="false"/>
        <unlock_supertux solved="none" best_while_slower="false"/>
        <volcano_island solved="none" best_while_slower="false"/>
        <xr591 solved="none" best_while_slower="false"/>
        <zengarden solved="none" best_while_slower="false"/>
      </story-mode>
      <achievements online="true">
        <achievement id="1" achieved="false"/>
        <achievement id="2" achieved="false"/>
        <achievement id="3" achieved="false"/>
        <achievement id="4" achieved="false"/>
        <achievement id="5" achieved="false"/>
        <achievement id="6" achieved="false"/>
        <achievement id="7" achieved="true"/>
        <achievement id="8" achieved="false"/>
        <achievement id="9" achieved="false"/>
        <achievement id="10" achieved="false"/>
        <achievement id="11" achieved="false"/>
        <achievement id="12" achieved="false"/>
          <data version="4"/>
          <var counter="2"/>
          <var counter="2"/>
          <var counter="0"/>
          <var counter="0"/>
          <var counter="0"/>
          <var counter="2"/>
          <var counter="0"/>
          <var counter="0"/>
          <var counter="2"/>
          <var counter="2"/>
          <var counter="30"/>
          <var counter="20"/>
          <var counter="0"/>
          <var counter="0"/>
          <var counter="0"/>
          <var counter="0"/>
          <var counter="33"/>
          <var counter="22"/>
          <var counter="0"/>
          <var counter="0"/>
          <var counter="0"/>
          <var counter="0"/>
          <var counter="0"/>
          <var counter="0"/>
          <var counter="0"/>
          <var counter="0"/>
          <var counter="0"/>
          <var counter="0"/>
          <var counter="0"/>
          <var counter="0"/>
          <var counter="0"/>
          <var counter="0"/>
          <var counter="0"/>
          <var counter="0"/>
          <var counter="165"/>
          <var counter="0"/>
          <var counter="11"/>
          <var counter="2"/>
          <var counter="0"/>
          <var counter="1"/>
          <var counter="4"/>
          <var counter="0"/>
          <var counter="1"/>
          <var counter="20"/>
          <var counter="0"/>
          <var counter="4"/>
          <var counter="21"/>
          <var counter="0"/>
          <var counter="3"/>
          <var counter="0"/>
          <var counter="0"/>
          <var counter="0"/>
          <var counter="0"/>
          <var counter="0"/>
          <track_stats ident="abyss" sta="0" fin="0" won="0" fin_rev="0" fin_al="0" l_laps="0" m_laps="0" t_laps="0" eh_sta="0" eh_fin="0"/>
          <track_stats ident="black_forest" sta="0" fin="0" won="0" fin_rev="0" fin_al="0" l_laps="0" m_laps="0" t_laps="0" eh_sta="0" eh_fin="0"/>
          <track_stats ident="candela_city" sta="0" fin="0" won="0" fin_rev="0" fin_al="0" l_laps="0" m_laps="0" t_laps="0" eh_sta="0" eh_fin="0"/>
          <track_stats ident="cocoa_temple" sta="0" fin="0" won="0" fin_rev="0" fin_al="0" l_laps="0" m_laps="0" t_laps="0" eh_sta="0" eh_fin="0"/>
          <track_stats ident="cornfield_crossing" sta="0" fin="0" won="0" fin_rev="0" fin_al="0" l_laps="0" m_laps="0" t_laps="0" eh_sta="0" eh_fin="0"/>
          <track_stats ident="fortmagma" sta="0" fin="0" won="0" fin_rev="0" fin_al="0" l_laps="0" m_laps="0" t_laps="0" eh_sta="0" eh_fin="0"/>
          <track_stats ident="gran_paradiso_island" sta="0" fin="0" won="0" fin_rev="0" fin_al="0" l_laps="0" m_laps="0" t_laps="0" eh_sta="0" eh_fin="0"/>
          <track_stats ident="hacienda" sta="0" fin="0" won="0" fin_rev="0" fin_al="0" l_laps="0" m_laps="0" t_laps="0" eh_sta="0" eh_fin="0"/>
          <track_stats ident="lighthouse" sta="0" fin="0" won="0" fin_rev="0" fin_al="0" l_laps="0" m_laps="0" t_laps="0" eh_sta="0" eh_fin="0"/>
          <track_stats ident="mines" sta="0" fin="0" won="0" fin_rev="0" fin_al="0" l_laps="0" m_laps="0" t_laps="0" eh_sta="0" eh_fin="0"/>
          <track_stats ident="minigolf" sta="0" fin="0" won="0" fin_rev="0" fin_al="0" l_laps="0" m_laps="0" t_laps="0" eh_sta="0" eh_fin="0"/>
          <track_stats ident="olivermath" sta="0" fin="0" won="0" fin_rev="0" fin_al="0" l_laps="0" m_laps="0" t_laps="0" eh_sta="0" eh_fin="0"/>
          <track_stats ident="ravenbridge_mansion" sta="0" fin="0" won="0" fin_rev="0" fin_al="0" l_laps="0" m_laps="0" t_laps="0" eh_sta="0" eh_fin="0"/>
          <track_stats ident="sandtrack" sta="0" fin="0" won="0" fin_rev="0" fin_al="0" l_laps="0" m_laps="0" t_laps="0" eh_sta="0" eh_fin="0"/>
          <track_stats ident="scotland" sta="31" fin="22" won="2" fin_rev="0" fin_al="0" l_laps="0" m_laps="0" t_laps="0" eh_sta="0" eh_fin="0"/>
          <track_stats ident="snowmountain" sta="0" fin="0" won="0" fin_rev="0" fin_al="0" l_laps="0" m_laps="0" t_laps="0" eh_sta="0" eh_fin="0"/>
          <track_stats ident="snowtuxpeak" sta="1" fin="0" won="0" fin_rev="0" fin_al="0" l_laps="0" m_laps="0" t_laps="0" eh_sta="0" eh_fin="0"/>
          <track_stats ident="stk_enterprise" sta="0" fin="0" won="0" fin_rev="0" fin_al="0" l_laps="0" m_laps="0" t_laps="0" eh_sta="0" eh_fin="0"/>
          <track_stats ident="volcano_island" sta="0" fin="0" won="0" fin_rev="0" fin_al="0" l_laps="0" m_laps="0" t_laps="0" eh_sta="0" eh_fin="0"/>
          <track_stats ident="xr591" sta="0" fin="0" won="0" fin_rev="0" fin_al="0" l_laps="0" m_laps="0" t_laps="0" eh_sta="0" eh_fin="0"/>
          <track_stats ident="zengarden" sta="0" fin="0" won="0" fin_rev="0" fin_al="0" l_laps="0" m_laps="0" t_laps="0" eh_sta="0" eh_fin="0"/>
      </achievements>
    </player>
</players>


I always play "Hard" level. Shouldn't there be "Hard" instead of "none" , as in the above code:
zengarden solved="none"

Thank you for your time!

Re: Playing from my flash drive?

PostPosted: 08 Mar 2020, 13:54
by benau
Your game assets seem got mixed up, for example i see bovine barnyard in standard track menu Image

Re: Playing from my flash drive?

PostPosted: 08 Mar 2020, 14:29
by tuxkartkaye
quote]Your game assets seem got mixed up, for example i see bovine barnyard in standard track menu [/quote]

Do you mean bovine barnyard should not be in standard track menu? How did it get that way? and can anything be done about it? How do I transfer my achievements then?

Re: Playing from my flash drive?

PostPosted: 08 Mar 2020, 15:13
by benau
Maybe you are not even playing stk 1.0 in the past...

Where / how did you install stk?

Re: Playing from my flash drive?

PostPosted: 10 Mar 2020, 05:19
by QwertyChouskie
Yeah, that screenshot looks like STK 0.9.2...

Re: Playing from my flash drive?

PostPosted: 10 Mar 2020, 19:23
by tuxkartkaye
Maybe I messed up with the installation? Probably installed older version then installed again but with a newer version?

I guess there's no other way but to purge everything and install the latest version and start from scratch?

Re: Playing from my flash drive?

PostPosted: 11 Mar 2020, 02:58
by benau
possible

Re: Playing from my flash drive?

PostPosted: 11 Mar 2020, 04:06
by tuxkartkaye
benau {l Wrote}:try SUPERTUXKART_SAVEDIR=/some/folder bin/supertuxkart (or ./run_game.sh), then in your /some/folder/config-0.10 will have players.xml which saved the list of unlocked track



If it's not too much trouble, can you please explain it to me.

In what file do I add the line:

SUPERTUXKART_SAVEDIR=/some/folder bin/supertuxkart ?

Re: Playing from my flash drive?

PostPosted: 11 Mar 2020, 05:32
by benau
How do u install stk 1.1?

Re: Playing from my flash drive?

PostPosted: 29 Mar 2020, 17:35
by tuxkartkaye
Hi benau! Sorry for the late response.

Perhaps you should tell me how I should install stk 1.1 in order for me to do what I want to do? (Playing entirely from my flash drive, like I do with some very old dos games; I can take my flash drive anywhere and plug it in any computer and just play, and my achievements would still be there, and any future achievements would be saved there)

In Synaptic, the version of stk is 0.9.3-2 , so obviously I cannot install via Synaptic.

In my Linux distro's Package Manager, it seems the same as in Synaptic.

So maybe I should install directly from your website https://supertuxkart.net/Main_Page and extract?

Re: Playing from my flash drive?

PostPosted: 30 Mar 2020, 01:30
by benau