How to change scores for each position?

How to change scores for each position?

Postby Temporal » 10 Oct 2013, 15:25

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!
User avatar
Temporal
 
Posts: 4
Joined: 08 Jun 2010, 13:09

Re: How to change scores for each position?

Postby Auria » 11 Oct 2013, 23:21

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)
Image
User avatar
Auria
STK Moderator
 
Posts: 2976
Joined: 07 Dec 2009, 03:52

Re: How to change scores for each position?

Postby hiker » 11 Oct 2013, 23:53

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
hiker
 
Posts: 1435
Joined: 07 Dec 2009, 12:15
Location: Melbourne, Australia

Re: How to change scores for each position?

Postby Temporal » 12 Oct 2013, 00:34

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!
User avatar
Temporal
 
Posts: 4
Joined: 08 Jun 2010, 13:09

Re: How to change scores for each position?

Postby GunChleoc » 12 Oct 2013, 10:03

Just a comment from the peanut gallery: Won't you need to set the "to" attribute?
User avatar
GunChleoc
 
Posts: 502
Joined: 20 Sep 2012, 22:45

Re: How to change scores for each position?

Postby hiker » 12 Oct 2013, 11:39

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
hiker
 
Posts: 1435
Joined: 07 Dec 2009, 12:15
Location: Melbourne, Australia

Re: How to change scores for each position?

Postby Temporal » 12 Oct 2013, 12:16

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 |:)
User avatar
Temporal
 
Posts: 4
Joined: 08 Jun 2010, 13:09

Who is online

Users browsing this forum: No registered users and 1 guest

cron