Page 1 of 1

How to change scores for each position?

PostPosted: 10 Oct 2013, 15:25
by Temporal
Hi, In the past I was able to change the scores for each position by editing some config file (I believe it was 0.7 yet).

Now I'm trying to find what file to edit (looks like it is in ..Data\supertuxkart\*) but the old settings don't seem to have any effect on the new files. Also, the game seems to edit those files on the fly, erasing anything I've tried to do.

I want to make all the scores differ by only 1 point, no matter my position (so 1st gets [nro of karts], second gets [nro of karts-1], and so on).

My reason: Usually when I lose it is by getting in 4th place or worse, while almost whenever I win the second place is already the best AI overall, making the game more challenging for me.

Thank you!

Re: How to change scores for each position?

PostPosted: 11 Oct 2013, 23:21
by Auria
Hi,

assuming you are under Windows, the highscores file would be under %appdata%/supertuxkart and is called highscore.xml (you can type this path in the address bar of windows explorer)

Re: How to change scores for each position?

PostPosted: 11 Oct 2013, 23:53
by hiker
Temporal {l Wrote}:Hi, In the past I was able to change the scores for each position by editing some config file (I believe it was 0.7 yet).

Now I'm trying to find what file to edit (looks like it is in ..Data\supertuxkart\*) but the old settings don't seem to have any effect on the new files. Also, the game seems to edit those files on the fly, erasing anything I've tried to do.

I want to make all the scores differ by only 1 point, no matter my position (so 1st gets [nro of karts], second gets [nro of karts-1], and so on).

It's in the file .../data/stk_config.xml:
{l Code}: {l Select All Code}
  <!-- Scores are the number of points given when the race ends. -->
  <grand-prix>
    <!-- Karts on position 1 and 2 will have 3 more points than the next kart;
         a kart on position 3 and 4 will have two more points than the next;
         and all remaining karts will have one more point than the next. -->
    <points from="1" to="2" points="3"/>
    <points from="3" to="4" points="2"/>
    <points from="5"        points="1"/>
  </grand-prix>

And this file is never written again by stk, so it certainly shouldn't change.

Cheers,
Joerg

Re: How to change scores for each position?

PostPosted: 12 Oct 2013, 00:34
by Temporal
Auria {l Wrote}:Hi,

assuming you are under Windows, the highscores file would be under %appdata%/supertuxkart and is called highscore.xml (you can type this path in the address bar of windows explorer)

Thank you, but I did not intent to edit my hiscores, but the amount of points given to each player at the end of each track during a grand prix.

hiker {l Wrote}:
Temporal {l Wrote}:Hi, In the past I was able to change the scores for each position by editing some config file (I believe it was 0.7 yet).

Now I'm trying to find what file to edit (looks like it is in ..Data\supertuxkart\*) but the old settings don't seem to have any effect on the new files. Also, the game seems to edit those files on the fly, erasing anything I've tried to do.

I want to make all the scores differ by only 1 point, no matter my position (so 1st gets [nro of karts], second gets [nro of karts-1], and so on).

It's in the file .../data/stk_config.xml:
{l Code}: {l Select All Code}
  <!-- Scores are the number of points given when the race ends. -->
  <grand-prix>
    <!-- Karts on position 1 and 2 will have 3 more points than the next kart;
         a kart on position 3 and 4 will have two more points than the next;
         and all remaining karts will have one more point than the next. -->
    <points from="1" to="2" points="3"/>
    <points from="3" to="4" points="2"/>
    <points from="5"        points="1"/>
  </grand-prix>

And this file is never written again by stk, so it certainly shouldn't change.

Cheers,
Joerg

Oh Hi! Thank you but, that is what I meant when I said "the old settings don't seem to have any effect on the new files.". I have already tried to edit the config.xml file using exactly your directions, adding this:
{l Code}: {l Select All Code}
<grand-prix>
    <points from="1" points="1"/>
</grand-prix>
and saving. But whenever I start super tux kart again, the settings file is overwritten and nothing happens. I assumed that it is because this does not work anymore, and the game thinks it is a mistake and rewrites with default contents. I have not being able to find any file named "stk_config.xml", just the one named "config.xml".

I'm using the Super Tux kart portable 0.8 it it is of any assistance. Thank you!

Re: How to change scores for each position?

PostPosted: 12 Oct 2013, 10:03
by GunChleoc
Just a comment from the peanut gallery: Won't you need to set the "to" attribute?

Re: How to change scores for each position?

PostPosted: 12 Oct 2013, 11:39
by hiker
Oh Hi! Thank you but, that is what I meant when I said "the old settings don't seem to have any effect on the new files.". I have already tried to edit the config.xml file using exactly your directions, adding this:

Adding is not the right thing, you have to replace the existing entry. Two additional hints:
  • When exiting stk, check %AppData%/supertuxkart/stdout.log, which contains the directory from which the data files are read. Perhaps you are editing the wrong file?
  • It might be that you can't modify the file as normal user (if you installed as admin), this could explain why apparently your changes were 'removed' ... they might not have been saved.

GunChleoc {l Wrote}:Just a comment from the peanut gallery: Won't you need to set the "to" attribute?

Yes, it should - though 'to' defaults to the number of karts, so it would work.

Cheers,
Joerg

Re: How to change scores for each position?

PostPosted: 12 Oct 2013, 12:16
by Temporal
AFF... I'm such an idiot. I've finally found the correct archive to edit.

I mean, I already knew about what and where to edit, but I wasn't finding the correct file and assumed they/it were(was) in:
..\SuperTuxKartPortable\Data\supertuxkart\*
when it was in:
..\SuperTuxKartPortable\App\SuperTuxKart\data\*

that I find when I gave up and decided to search the entire computer.

Thank you anyway for your patience, and sorry for wasting your time from more pressing issues.

PS: This is NOT sarcasm, I mean it!
PSS: I am one of those weirdos that like to play the "all tracks" challenge, so I added one myself. I know this might not be the best place to add this, but I'm adding anyway |:)