Commit Graph

158 Commits

Author SHA1 Message Date
auria
2d6cb641c5 In 3 strikes you now have only 2 spare tires, to be more logical. And when you lose you actually lose your wheels.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9763 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-05 23:21:21 +00:00
auria
68b56d0c05 Remove unused parameter for race GUI message, plus use title font for the WRONG WAY message instead of this ugly pink font that was there before
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9731 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-03 20:23:55 +00:00
hikerstk
428ed5a07b Made QuadGraph use a singleton-like behaviour. It is still created with
explicit calls to QuadGraph::create(...), and the get() function can
return NULL (in case of a race mode that does not use a quad graph).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9421 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-08-04 23:02:58 +00:00
funto66
d26b406780 Starting the merge with the swatter branch. Now it should be automatic with karts, but doesn't work with items (yet).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9275 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-07-15 23:38:40 +00:00
funto66
a8919a8252 Added experimental and buggy hardware skinning support + removed a useless loop in the material manager
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9253 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-07-14 00:59:00 +00:00
funto66
93ed8113d3 Added markers for World::update() and made the profiler optional
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9225 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-07-10 10:33:42 +00:00
auria
6e4cee9341 Includes cleanup; especially avoid including in headers, creating implicit dependencies and horrible chains of recursive includes. Avoid iostream when possible because this header is not small
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8749 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-29 19:52:24 +00:00
auria
624d050571 Display when you get a highscore (it's a little subtle for now but at least the infrastructure is there)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8707 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-25 01:53:15 +00:00
hikerstk
8c22b21166 Fixed compiler warnings.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8699 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-24 04:56:18 +00:00
auria
da85204faf Partial work towards showing highscores when they are made
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8697 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-24 01:34:02 +00:00
hikerstk
86329d7ec5 Changed order in which race gui and track are released to
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
2011-05-03 07:14:04 +00:00
hikerstk
62fb47aeed Added support for textures to trigger a reset on collision (separately from
triggering reset when driving on).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8367 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-04-17 22:06:45 +00:00
auria
c54809ebe2 Fixed lightning being multiplied in multiplayer mode
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8174 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-04-01 14:41:18 +00:00
hikerstk
28aaaf4f5b Added --ftl-debug command line option, to print some debug information for
FTL (esp. GP) races.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8018 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-21 06:15:39 +00:00
auria
3a3619750a Artist debug features are now enabled even in release builds, but disabled in config by default
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7780 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-02 00:04:13 +00:00
auria
6df90a2a75 Fixed strings
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7743 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-02-20 23:14:26 +00:00
hikerstk
78eb5a09eb Replaced raycast used in detecting the terrain is on: instead of raycast
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
2011-02-13 00:23:23 +00:00
hikerstk
240d39636c Added support for 'graphical' meshes - atm mostly for water surfaces
(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
2011-02-09 21:56:44 +00:00
hikerstk
8ab10035a1 Updated VS10 project file, and started to add minimal race gui.
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
2011-02-08 12:59:32 +00:00
auria
238f572c36 Say hello to the new rain, one that is much, much less CPU and GPU intensive. Joerg: sorry, you will need to modify the exporter again, since now we need support for some built-in weather types, which use a different XML syntax than particles
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7642 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-02-07 02:45:32 +00:00
auria
a580f413e3 Fix kart names not being translated on live language switch + correct more RTL issues I found on the way
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7632 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-02-06 02:49:45 +00:00
auria
009960fc8a Clean up call to fribidi, add capabilities to insert values to the _ macro
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7508 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-23 23:39:10 +00:00
auria
f774aef2c4 Add animation setting middleground : only human players karts are animted
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7487 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-20 02:43:32 +00:00
auria
bf0743b354 Restored line that was accidentally removed
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7434 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-16 01:28:25 +00:00
auria
24d0d549ba Improve error handling in XML classes (namely, atoi must die) since I was bitten several times now by insufficient error handling. Also set up base architecture to support the new gfx mode 'my kart is animated but not Ai karts', though it doesn't work atm for the simple reason that at the time the model node is created we do not yet know if the kart is player or AI...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7432 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-16 00:06:59 +00:00
hikerstk
4d2a1d9faf Removed compiler warning.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7097 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-12-20 01:01:53 +00:00
hikerstk
c17ec200cf The --track-debug flag now also tests all reset positions for all
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
2010-12-15 22:50:17 +00:00
hikerstk
b800ddd200 Made the 'wrap around' lap counting approach work correctly.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6782 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-11-29 22:01:59 +00:00
hikerstk
1987c155f0 If no valid start position is found, automatically enter flying mode
(in debug compilations).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6566 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-11-15 09:47:44 +00:00
hikerstk
062fa61d60 Handle tracks that are not found better (track manager does not
throw an exception anymore, it instead returns NULL).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6338 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-10-26 06:14:46 +00:00
auria
5e482d9989 Fixed restart race bug + other issues possibly introduced by my scheduling of pausing
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6280 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-10-12 22:32:33 +00:00
auria
1cb2b1caa3 Fixed sound being shortly unpaused when switching screen and sound is off
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6265 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-10-11 23:12:30 +00:00
hikerstk
19b225a7ce Added improved default start positions. Start positions now follow the drivelines,
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
2010-10-11 21:49:35 +00:00
hikerstk
4694be90c3 Reverted patch 6123 (introducing AI steering variations), since it
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
2010-09-23 23:18:53 +00:00
hikerstk
2c7213b83e 1) Added support for AI steering variations: AI karts will now not
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
2010-09-23 07:21:52 +00:00
hikerstk
1643701ff7 Applied jmimu's patch to remove 'new laps' etc. messages when a race is
restarted.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5859 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-02 02:59:52 +00:00
hikerstk
0e84cdf091 Modified behaviour of startup boost: instead of giving it to the first
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
2010-09-02 00:19:06 +00:00
hikerstk
18b7bd7736 Added new race result gui, which is an actual screen now. This is still work in progress
(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
2010-08-24 23:19:14 +00:00
hikerstk
e291ce56ff Keep the race going (with end race controller) while the race
results are shown.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5704 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-22 22:49:56 +00:00
hikerstk
9549138017 Missing file from previous 'fix race restarting' patch.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5696 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-19 00:14:06 +00:00
auria
2a4570f6c6 Fixed warning
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5693 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-18 15:47:47 +00:00
hikerstk
c4797d6dd7 Added FIXME to indicate why restarting a race is currently broken.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5692 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-18 13:55:55 +00:00
hikerstk
04f2bd7190 1) Started adding new race result screen, which is for now disabled in the game.
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
2010-07-15 22:41:41 +00:00
hikerstk
626f83087a Added new base class for race gui (in prepration for improved
result gui).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5680 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-11 23:03:54 +00:00
hikerstk
db9bf099e5 Fixed incorrect assignment to unsigned variable.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5676 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-11 13:11:05 +00:00
hikerstk
e9837ca8fc Added some startup speed boost, mainly for testing. The first two
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
2010-07-07 23:53:27 +00:00
hikerstk
396db5ae2b Added intro sfx to be played before ready-set-go.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5663 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-06 23:10:47 +00:00
hikerstk
61cc735179 Fixed memory overwrite that happens when the in-game menu is
displayed during the end animations.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5601 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-01 00:16:09 +00:00
hikerstk
744d9dd0fb The default start positions are now transformed/rotated if the lap
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
2010-06-08 23:30:45 +00:00
hikerstk
0a59455a82 Removed LIMBO state, added new RESULT_DISPLAY_PHASE (but at this stage no
visible change to user).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5424 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-05-10 23:53:32 +00:00