Powerup distribution weights

Powerup distribution weights

Postby bonifarz » 09 Apr 2012, 12:56

Hello everyone.

The SuperTuxKart project has caught my attention just a few days ago. I decided to give it a try, tested the challenges of 0.7.3 and was honestly surprised by the big fun factor.

It is also nice to see that many gameplay constants are read from xml files, so you can test various settings without making a mess in the sources. One thing I considered interesting to play around with are the relative weights for obtaining certain items based on the karts ranking. I had the impression that the values in the powerup.xml (0.7.3) are somewhat tentative (of course, as more power ups are certainly on the way) and that a little fine tuning has quite some impact on the game experience. Below is a snippet of said powerup.xml with yet another set of weights.

{l Code}: {l Select All Code}
 
  ...

  <!-- Distribution of the items depending on position of the kart:
       First place, last place, and three more groups for all other karts.
       The order of the items must correspond to powerup_manager.hpp.
       The first line (w=...) corresponds to the weights of
       getting a single item, the second line (w-multi) to
       getting three identical items instead of just a single one.
       
       altered weights by Bonifarz:
       All weights are normalized to a sum of 100 (probability in percent).
       All probabilities are multiples of 5% with a maximum of 25% per item.
       Switches and parachutes are used mainly by the first and last kart, respectively,
       to keep the game enjoyable also with very large numbers of karts.
       A strong bias for obtaining zippers in the last third helps a little to catch up.
  -->
  <!--      bubble  cake  bowl  zipper  plunger  switch swattr rubber para  anvil -->
  <first  w=" 25       5    15     0      15       25     15     0     0     0"
    w-multi="  0       0     0     0       0        0      0     0     0     0"    />
  <top33  w=" 15      15    15     0      15        5     15     0     0     0"
    w-multi="  5       5     5     0       5        0      0     0     0     0"    />
  <mid33  w=" 10      10    10     5      10        0     15     0     0     0"
    w-multi=" 10      10    10     0      10        0      0     0     0     0"    />
  <end33  w="  0       0     0    25       0        0     10    10     5     0"
    w-multi=" 10      10    10    10      10        0      0     0     0     0"    />
  <last   w="  0       0     0    20       0        0      0    15    15     0"
    w-multi="  5       5     5    25       5        0      0     0     5     0"    />
  <battle w=" 20      15    25     0       0       10     15     0     0     0"
    w-multi="  5       5     5     0       0        0      0     0     0     0"    />

</powerup>


I tested this one during a couple of 20 kart races and found it quite enjoyable this way. Of course, this depends much on your personal taste, and I am not a big friend of perma-para-mode ;)

In case this attempt is inspiring for any other STK gamer out there, I decided to post it here. This sort of xml modification does not seem to be covered by the list of contribution types in the corresponding guide, so I put it in the STK general board - I would not classify a bunch of numbers as a contribution either.

Keep up the good work with STK,

Bonifarz
Last edited by bonifarz on 10 Apr 2012, 13:06, edited 1 time in total.
User avatar
bonifarz
 
Posts: 379
Joined: 09 Apr 2012, 12:16
Location: switzerland

Re: Powerup distribution weights

Postby ctdabomb » 09 Apr 2012, 15:07

what all did you change?
Some people are like slinkies... not really good for anything, but you still can't help smiling when you shove them down the stairs.
ctdabomb
 
Posts: 1075
Joined: 13 Dec 2011, 21:21
Location: halfway there

Re: Powerup distribution weights

Postby bonifarz » 09 Apr 2012, 16:18

ctdabomb {l Wrote}:what all did you change?

Well, just the snippet posted above.
If that helps to answer the question, here is the original powerup.xml for you to compare.
(Edit: Codebox --> link to SVN repo)
Last edited by bonifarz on 10 Apr 2012, 12:53, edited 1 time in total.
User avatar
bonifarz
 
Posts: 379
Joined: 09 Apr 2012, 12:16
Location: switzerland

Re: Powerup distribution weights

Postby Auria » 09 Apr 2012, 20:31

Hi, thanks for your interest!

This seems interesting, but I must say I am a bit dubious about giving more cakes to the leader ;) cakes shot backwards to opponents behind you are very very hard to avoid so if the leader gets cake it may be very difficult to overtake them
Image
User avatar
Auria
STK Moderator
 
Posts: 2976
Joined: 07 Dec 2009, 03:52

Re: Powerup distribution weights

Postby bonifarz » 10 Apr 2012, 13:04

Thanks for your feedback, Auria.
Right, cakes are easier to use, so the constraint of equal weights for bowl, plunger and cake has its downside. Okay, moving back 10 % from cake to bubble for the leader.
User avatar
bonifarz
 
Posts: 379
Joined: 09 Apr 2012, 12:16
Location: switzerland

Who is online

Users browsing this forum: No registered users and 1 guest