quad graph: now the distance of the node is the maximum
of all paths leading to it, which should solve the
problems with the cube (#354).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9416 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2) Fixed layout of result table in case of
profile-laps.
3) Fixed average speed computation.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9404 178a84e3-b1eb-0310-8ba1-8eac791a3b58
skidding-time, and time+count for rescues and exposions.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9399 178a84e3-b1eb-0310-8ba1-8eac791a3b58
Renamed --profile=+-n options to --profile-laps=n
and --profile-time=n.
2) Fixed averaging in case of --profile-time.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9372 178a84e3-b1eb-0310-8ba1-8eac791a3b58
the sfx manager kept on reporting that it was playing (the
track intro sound), while it wasn't. That resulted in STK
hanging (not reaching the 'ready set go' phase).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9192 178a84e3-b1eb-0310-8ba1-8eac791a3b58
instead of using the predecessor. So a kart on the first
quad of a short cut would be rescued to an incorrect
location (most likely to the end of the main driveline,
since shortcut quads come just after the main driveline
in the quad.xml). See r9161 on 0.7.2.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9166 178a84e3-b1eb-0310-8ba1-8eac791a3b58
avoid memory debugging having inconsistent texture information
at startup and cleanup time.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8507 178a84e3-b1eb-0310-8ba1-8eac791a3b58
against the dynamics world, it's now using a raycast against the triangle
mesh only (i.e. a single collision body instead of the whole world).
Besides being faster, this will allow raycasts with material detection
against the 'gfx' (surface) mesh.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7694 178a84e3-b1eb-0310-8ba1-8eac791a3b58
(and below water meshes), so that water splashes can be displayed at
the proper position (not used atm).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7665 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This was only committed early to update the VC10 project file.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7656 178a84e3-b1eb-0310-8ba1-8eac791a3b58
it would be set to the last valid sector, and the lap count to the last
valid lap count. If the kart triggered a lap count while being off
track, the lap count would be decremented, but the lap line is already
deactivated, so it would not count again. Since the last valid lap count
was stored to solve an old problem (being reset to before the lap line
would count the lap again), and this is not necessary anymore, the whole
storing of last valid lap was removed.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7529 178a84e3-b1eb-0310-8ba1-8eac791a3b58
overtaken the leader), and the race is over, the leader was moved back
to position 1 (so that all points are given correct), but the ranks
were not adjusted properly, potentially resulting in duplicated ranks.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7110 178a84e3-b1eb-0310-8ba1-8eac791a3b58
karts and prints a warning if the rescue position would result in
an immediate rescue again (which usually indicates that the
driveline is too low, and the kart is rescued 'under' the track).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7029 178a84e3-b1eb-0310-8ba1-8eac791a3b58
since the parameters for that function had changed).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6753 178a84e3-b1eb-0310-8ba1-8eac791a3b58
3 just before the last kart is eliminated (and a kart on
position 1 will be eliminated), the kart on previous position
2 (after elimination on position 1) will get too many points.
This situation is now detected, and the position of the
remaining karts are adjusted before scoring.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6583 178a84e3-b1eb-0310-8ba1-8eac791a3b58
an emergency animation (see bug 3100384).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6387 178a84e3-b1eb-0310-8ba1-8eac791a3b58
and the scene.xml file can specify how many karts to set in one row, and the
distance between karts in X and Z direction.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6256 178a84e3-b1eb-0310-8ba1-8eac791a3b58
(and so no debug info for a rank change was printed).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6246 178a84e3-b1eb-0310-8ba1-8eac791a3b58
resulted in AIs driving badly (even when the variation was set to 0).
This patch will be re-considered later, after the alpha 3 release.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6129 178a84e3-b1eb-0310-8ba1-8eac791a3b58
steer to the same driveline point, but to points slightly to
the left and right. The maximum variation is defined in
stk_config.xml (and should be between 0 and 1).
ATM THIS IS DISABLED! Since in my tests it appears that
the AI is not driving as good as previously anymore, i.e.
it drives more S-lines on straights etc. To enable this change
steering_variation in stk_config.xml
2) AI now handles multi-items better by waiting a certain amount
of time before using the next item.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6123 178a84e3-b1eb-0310-8ba1-8eac791a3b58
(see bug 3072740): the countdown timer caused incorrect
values to be used for the 'music credit' display.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6121 178a84e3-b1eb-0310-8ba1-8eac791a3b58
in stk_config. This is to balance races with larger number of
karts. Note that the changes to stk_config was part of the
previous commit.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6073 178a84e3-b1eb-0310-8ba1-8eac791a3b58
option) was too small, a leader could 'finish' the race, and while
no message would be printed, its distance calcuation become incorrect.
To workd around this issue (and to avoid making the code in
linear_world even more convoluted) I just set a large number
for the number of laps in case of a FTL race.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5998 178a84e3-b1eb-0310-8ba1-8eac791a3b58
driven by the computer) do not generate any 'fastest lap' messages
anymore (see bug 3061466).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5942 178a84e3-b1eb-0310-8ba1-8eac791a3b58
for duplicated ranks to world_with_rank.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5898 178a84e3-b1eb-0310-8ba1-8eac791a3b58
By now FTL should basically work (i.e. not crash and list karts
in the right order at the end), though the reported times are
still not correct.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5897 178a84e3-b1eb-0310-8ba1-8eac791a3b58
setKartPosition, some simplifications to ftl.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5865 178a84e3-b1eb-0310-8ba1-8eac791a3b58
contains all codes related to ranking the karts (which is used
to display the icons in the race gui and the end result table).
The battle mode should now be fixed, but follow-the-leader
has still issues and will most likely crash at the end.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5864 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2) Fixed last_lap sfx not being played in the last lap of a restarted
race.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5860 178a84e3-b1eb-0310-8ba1-8eac791a3b58
and explosion in the player icon list, and 'animates' if a kart
is overtaken another kart. Thanks a lot for this patch!
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5856 178a84e3-b1eb-0310-8ba1-8eac791a3b58
two karts, it is now given for all karts starting withint a certain
amount of time. These times and boost value are specified in
stk-config.xml.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5855 178a84e3-b1eb-0310-8ba1-8eac791a3b58
(e.g. atm it's not possible to skip part of the result animations, so for now you have
to wait till the buttons appear before you can continue).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5770 178a84e3-b1eb-0310-8ba1-8eac791a3b58
this information when a race position changes.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5715 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2) Replaced int* with std::vector<int> in raceResultOrder.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5682 178a84e3-b1eb-0310-8ba1-8eac791a3b58
karts to press 'accelerate' after 'go' will receive a boost.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5669 178a84e3-b1eb-0310-8ba1-8eac791a3b58
counting line is not centered around 0,0,0 or not parallel to the
X axis.
Note that this requires all lap counting line in the scene.xml files
to be 'oriented', i.e. the first point must be the left point, and
the second one the right point (r5488 updated this for all current
tracks, and r5487 updated the track exporter to do this automatically).
As a result of this the start positions might now be a bit too close
to the starting line (depending on where the chess-pattern is on the
track), and that might need some additional adjustments.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5490 178a84e3-b1eb-0310-8ba1-8eac791a3b58
sequences (instead of re-using SETUP_PHASE as was done previously).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5477 178a84e3-b1eb-0310-8ba1-8eac791a3b58
to data/powerup.xml for battle modes. This makes it unnecessary that modes
can select which powerup are available, therefore this code was cleaned up.
Also added some minor code simplifications.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5374 178a84e3-b1eb-0310-8ba1-8eac791a3b58
position. The actual distribution is defined in powerup.xml (and
probably needs some adjustments).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5320 178a84e3-b1eb-0310-8ba1-8eac791a3b58
weights for powerups started, but nothing more than some
declarations).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5309 178a84e3-b1eb-0310-8ba1-8eac791a3b58
(previously called ExplosionAnimation).
Updated vs project file for latest changes as well.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5239 178a84e3-b1eb-0310-8ba1-8eac791a3b58
us to profile the effect different karts have.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5210 178a84e3-b1eb-0310-8ba1-8eac791a3b58
never driven on a valid quad will cause a crash when rescue is triggered.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5195 178a84e3-b1eb-0310-8ba1-8eac791a3b58
but should be better than before. Basically the estimation of the turn
radius was completely wrong and was replaced by a new and better
algorithm.
2) Introduced new AI base class which has some common functions and variables.
3) Removed unused file auto_kart.hpp.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5102 178a84e3-b1eb-0310-8ba1-8eac791a3b58
allowing us to completely remove the lisp code from stk - hooray!
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5072 178a84e3-b1eb-0310-8ba1-8eac791a3b58