Commit Graph

632 Commits

Author SHA1 Message Date
hikerstk
e7b0874274 Applied a (slightly modified) version of jskij7's patch to create
an AI that actively collects items. This is (for now) the new default
AI - feedback welcome!


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11291 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-06-10 19:52:11 +00:00
hikerstk
6536b4d112 Improved handling of controller name so that the end
controller keeps the name of the original controller, 
which allows proper statistic output in profile mode.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11287 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-06-09 15:48:18 +00:00
hikerstk
351c3f4367 Added support for a text that is shown above a kart to the
kart (and changed the FTL code to display 'Leader' so that
it uses this feature now).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11284 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-06-08 21:14:00 +00:00
hikerstk
4995fd22a3 Fixed compiler warnings (and removed some digits which I guess
are unnecessary).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11279 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-06-06 10:06:10 +00:00
auria
dae00f0828 Add first version on intro cutscene. Still incomplete but goes somewhere :) Ask me for the menu patch if you want to look at it
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11276 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-06-05 00:27:34 +00:00
auria
9ba0c7f137 More work to make cutscenes work
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11272 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-06-02 22:35:09 +00:00
auria
553385fe9d Start work to allow showing worlds without kart, for cutscenes. Does not work yet but getting closer
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11266 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-05-31 01:32:27 +00:00
hikerstk
1398184b35 Removed unused new AI controller, and created
new skidding ai which is at this stage a copy
of the default AI controller.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11254 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-05-21 06:57:05 +00:00
hikerstk
c6336649b3 Fixed #634 - crash when exiting a game with ghost
(ghost karts were not removed, causing problems when
drawing all later).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11252 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-05-20 00:29:03 +00:00
auria
e5a3a45153 Add missing file
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11243 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-05-16 00:21:34 +00:00
auria
87b2ee2b5d Add sample implementatiomn for ticket 263, add text to hover over karts, in follow the leader
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11242 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-05-16 00:12:16 +00:00
auria
a5a630f410 Use the new OVERRIDE macro in a couple more places
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11232 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-05-14 00:20:00 +00:00
hikerstk
04c3624d63 Fixed missing music (and count down) in demo mode.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11226 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-05-10 13:05:45 +00:00
hikerstk
a526fef588 Made m_phase and m_auxiliary_timer private, and added
setPhase. Removed usage of auxiliary timer in overworld
(instead set phase to race_phase) - as a result there
is no mpre 'Go!' being displayed (which I think is
actually better for the overworld).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11225 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-05-10 12:57:45 +00:00
hikerstk
4aecbb7ec3 Removed unnecessary settings of a demo mode in ProfileWorld.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11218 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-05-09 23:05:25 +00:00
hikerstk
5963f31079 Removed physics.hpp #include from world.hpp.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11213 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-05-08 07:07:15 +00:00
hikerstk
c15528f903 First version of demo mode. Use --demo-mode T to start
a demo after T seconds of idle time, --demo-tracks a,b,c
to specify a list of tracks to use for demo mode, --demo-karts
to specify the number of karts.
This is WIP, esp. it crashes if ESC is pressed during a race
(other keys will successfully return to main menu).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11189 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-05-07 00:10:33 +00:00
hikerstk
48bac59013 Replaced simple cast with proper dynamic cast to avoid potential incorrect cast
problems (I can't figure out what this line is supposed to do ... as far as I
could see it appears not to be used at all, and m_phase never reaches FINISH_PHASE).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11188 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-05-06 23:54:53 +00:00
wardje
78e09b4d1b Make punishment for the players less brutal, see #486.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11172 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-04-29 11:00:58 +00:00
auria
8a919816e1 Fixed returning reference to temporary
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11145 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-04-23 23:41:51 +00:00
auria
db2cd01922 Allow going to a challenge in the overworld by clicking on the minimap
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11143 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-04-23 19:23:21 +00:00
wardje
9eed9409e5 Add functionality to end a race early (#486).
* Only adding for standard races (normal race + time trial), didn't make as
  much sense elsewhere.
* Places still active players at the back of the final result and gives
  them penalty time.
* Add button to race pause dialog, temporarily using options_ui.png.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11093 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-04-07 21:58:11 +00:00
auria
9e3ba88f98 Don't allow starting a race from overworld while being rescued
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11091 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-04-05 02:28:21 +00:00
hikerstk
ae5b3b923e Bugfix: Casting Kart to TerrainInfo is not correct anymore,
added getTerrainInfo() function instead and dynamic_casts.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11081 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-04-04 00:43:52 +00:00
hikerstk
eca5b3e570 Refactored handling of kart animations: instead of
using a fixed object in the kart, now each animation
(rescue, explosion, canon) has its own object and 
implementation using a common interface. This
simplifies AbstractKartInterface, and makes it
easier to add new functionailty. 
Instead of using: kart->rescue(...),  or kart->explode(...)
you use new ExplosionAnimation(kart, ...) etc. Memory
handling is done by the object (and abstract kart).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11070 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-04-01 22:57:41 +00:00
auria
b83202439c When returning to overworld, bring back player to approximately where they were upon leaving
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11067 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-04-01 17:17:36 +00:00
auria
74ab49b1ac Hide lap messages in overworld
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11066 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-04-01 15:45:10 +00:00
auria
6f58350098 Return to overworld when exiting a race if race was started from overworld
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11065 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-04-01 15:42:44 +00:00
auria
ea3d5ca9b5 Updated Xcode project, plus fix quite a few issues found by Clang (Xcode now uses clang by default) - some of them genuine nasty bugs, great
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11029 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-03-27 22:04:44 +00:00
hikerstk
e3de48350d Removed compiler warning.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11024 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-03-25 23:56:25 +00:00
hikerstk
ebbc1a71d8 Introduced an 'abstract kart' class, which is used to
de-couple kart implementation and its interface. This
significantly reduces compile time when changing kart.hpp,
but is at this stage still work in progress.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10997 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-03-19 20:21:11 +00:00
auria
40efd3fbfc Apply patch by Wardje to skip the ready-start-go pahse for voerworld, thanks
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10989 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-03-17 18:43:11 +00:00
hikerstk
bbb0954ae8 Applied Wardje's patch to have separate high scores for reverse mode.
Thanks a lot!


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10967 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-03-14 22:37:56 +00:00
hikerstk
629f9a27e2 Removed dependencies on controller.hpp from kart.hpp (to
reduce compile time on controller changes).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10952 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-03-08 22:56:33 +00:00
hikerstk
72070db1a0 Fixed memory leak: the virtual createPhysics function of
GhostKart was not called, since it was called during when
the contrsuctor of Kart was executed (at this time the
GhostKart vtable wasn't set up, so Kart::createPhysics)
was called - which resulted in a memory leak since all
physics parts of the kart were actually allocated (just
not used). To fix this, karts are not constructed in two
phases: first a constructor, followed by a call to init
(during which virtual function can be used).
Fixed several bugs were physics data for a GhostKart
were accessed.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10947 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-03-07 02:41:41 +00:00
hikerstk
3fc43d4d14 Refactored replay by splitting it into one base class, and dedicated
classes for recording and for replaying. Added compression (by use of
interpolation) settings to stk_config - atm only using a certain
frequency (delta-t setting in stk_config) is used.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10904 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-02-28 22:33:49 +00:00
hikerstk
4f1961044c Avoid crash in case of a kart-track collision while during resetAllKarts (which
apparently happens in doing-the-dishes with 20 karts).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10903 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-02-28 03:36:18 +00:00
hikerstk
bce6113fd7 Added first version of (uncompressed) replays - atm only
kart positions and rotations are saved.
To save a replay, press ctrl-F10 which will create a file
in the stk config dir 'trackname'.replay .
To replay, use --ghost command line, and select the
track with the same name (at this stage the replay is
loaded even if number of laps and difficulty is different).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10897 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-02-27 05:52:17 +00:00
auria
c953803f13 Start refactor to turn around a bad design decision regarding challenges. Oops. Number of required trophies moved from scene.xml to .challenge file.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10885 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-02-23 01:36:24 +00:00
hikerstk
579715a8d8 Merged trunk with this branch. ATM the track screenshot does not work -
I am going to fix this next.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/reverse_mode@10862 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-02-16 04:57:49 +00:00
hikerstk
94be2cfec2 Automatically switch to camera 0 when the lap line is crossed. This
improved handling of end cameras for reverse mode (otherwise one
additional end camera would need to be defined to be used just
when the lap line is crossed).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/reverse_mode@10850 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-02-15 05:23:21 +00:00
hikerstk
e13a7078d8 Fixed warnings being printed at race start when using 0 lap races.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/reverse_mode@10845 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-02-14 23:25:43 +00:00
hikerstk
fcdf44c764 1) Fixed computing of checkling requirements to work properly with
reverse tracks. Simplified code by moving some functionality
   from QuadGraph to CheckManager.
2) Added comments, renamed some functions to better indicate
   what they are doing.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/reverse_mode@10843 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-02-14 20:51:29 +00:00
auria
da25bc6105 Fix entering garage in a cleaner way
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10817 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-02-07 01:25:56 +00:00
auria
a8dd687071 Revert change I did that introduced bug
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10811 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-02-06 02:55:41 +00:00
auria
65b4eed110 Implement going in the garage to change kart
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10807 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-02-05 19:32:17 +00:00
hikerstk
613173ff3d Set the world kart id in the constructor of karts, and not
later in a separate call.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10788 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-02-02 05:21:14 +00:00
hikerstk
a993cebca0 Applied first part of MCMic's patch to allow driving a track in reverse.
It adds a flag to the track.xml files, a (currently unnamed) checkbox
in the track selection screen, but doesn't do any actualy reversing (see
forum http://forum.freegamedev.net/viewtopic.php?f=18&t=2661 for
details).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/reverse_mode@10767 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-01-30 23:35:46 +00:00
auria
708d79b2f4 Add dialog asking to select challenge difficulty. Crashes for now so don't report bugs yet
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10736 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-01-28 02:06:44 +00:00
auria
57b727f68d Big overhaul of challenges. Bumped challenge XML file format to version 2.0. Now each challenge file speficies 3 difficulty levels. Started adapting unlock manager for these changes.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10727 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-01-26 19:12:48 +00:00
auria
ec0a20c319 Fix bug #557 by deactivating challenge orbs when the player doesn't have enough points for them
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10719 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-01-25 02:09:10 +00:00
hikerstk
808ffa85f8 Removed compiler warning.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10709 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-01-24 03:22:59 +00:00
auria
792aac1e68 Improve where rescue will drop you in overworld
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10696 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-01-20 01:14:15 +00:00
auria
aac43ad521 Improve starting challenge from overworld
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10695 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-01-20 00:43:51 +00:00
auria
cd6185c2ee Start work on starting challenges from overworld. Note that it does NOT yet fully work.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10668 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-01-15 02:46:59 +00:00
auria
2916e527da More work on overworld UI + give the player infinite nitro
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10620 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-01-09 01:25:27 +00:00
hikerstk
e06c8a05fa Split updatePhysics into several shorter functions to make the code easier to
understand. Removed and simplified some functions. This should not change
anything in actual game play.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10574 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-01-04 21:58:33 +00:00
hikerstk
87865b7dec Removed unnecessary include of kart.hpp from world.hpp.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10572 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-01-04 05:32:19 +00:00
auria
2a96276da5 The oveworld GUI now has its own class, will be easier to work the UI as I want
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10532 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-12-31 22:07:49 +00:00
auria
c2d69b24f9 Display number of trophies in overworld HUD
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10461 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-12-20 22:01:45 +00:00
auria
32f8666d10 Make overworld GUI cleaner by removing timer and rank
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10459 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-12-20 20:08:19 +00:00
auria
92b077a250 Create new world type for overworld for customized behavior. Hide overworld in track seelciton screen. Launch overworld when clicking on story mode button.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10443 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-12-19 02:26:07 +00:00
auria
92eb0ebd2a Ran a small bash script to remove all of those annoying strings. The only thing they gave us were the need to rebuild after committing
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10363 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-12-06 18:43:36 +00:00
auria
0455efd20d Massive refactor in challenge code to allow having more than 1 progression
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10349 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-12-05 22:00:42 +00:00
termina1
1d6953bcb3 Fix for ticket 450: use a largest accumulated distance to separate kart respawns in 3sb
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10335 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-12-04 15:10:59 +00:00
hikerstk
2c33ed75ed Merged the physics branch back to trunk. There should be no change at
this stage for users.
The physics branch added a few new stability options (which are disabled
by default), fixed bug and reproducing history files when using physics
replay, using --log=file command line option. See log on the physics
branch for full details.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10292 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-12-01 01:14:10 +00:00
hikerstk
e37c225654 Reset the 'reminder' time maintained by bullet (which uses fixed
time steps), so that in physics replay the time steps are now
correct.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/physics@10219 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-11-16 01:37:08 +00:00
hikerstk
c537c6873e Reset history data each time a race is started (to avoid that previous
history data is used).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/physics@10204 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-11-14 11:57:11 +00:00
hikerstk
da80f39ed4 Removed patched 10044 to 10047, since there is a much
easier patch to fix #458.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10050 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-27 01:04:16 +00:00
auria
953e8cf1ef Almost fix Nolok wheel issue in 3 strikes mode. Note, my fix is not complete and will result in segfaults in 3 strikes mode
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10044 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-26 15:18:46 +00:00
auria
d04bc58413 Quite a bit of work on Doxygen docs to contain an overview of the STK source code base
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10039 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-25 17:46:14 +00:00
hikerstk
23af52985f Removed unnecessary parameters kart and track from
TrackSector::update.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9997 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-16 12:29:37 +00:00
hikerstk
3491361a26 Enabled the debug keys F? in profile mode as well, allowing
people to give the AI certain items (it also avoids a
crash if one of the F? keys is pressed in profile mode).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9954 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-07 09:11:34 +00:00
hikerstk
b62b27a4d5 Instead of exit trigger a proper end of STK in profile
mode, which makes this better suited to find memory leaks.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9927 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-02 23:11:40 +00:00
hikerstk
798576ef12 Cosmetic changes only.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9918 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-29 23:03:00 +00:00
hikerstk
2590a8236a Update the kart translation after it was reset at the start of the
race. This way getXYZ() and getTrans() now report the correct 
position after the kart were reset, before the first frame (i.e.
before Moveable::update() is called the first time).
This caused the referee position to be inconsistent between 
tracks (and this will for now cause the referee position to be
bad ... but at least the same bad in all tracks ;) ).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9897 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-26 22:11:30 +00:00
hikerstk
a21c3a2c24 Fixed wrong #include (math.h instead of constants.hpp).
Thanks to khonkhortisan.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9878 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-21 02:17:15 +00:00
hikerstk
ef069d50a0 Fix #428: scene node of eliminated kart in battle mode was still
visible.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9875 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-21 00:55:18 +00:00
hikerstk
ca1093a563 Cosmetic changes only (to follow style guide).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9874 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-21 00:51:11 +00:00
hikerstk
a615b952c2 Cosmetic changes only (to follow our style guide).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9873 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-21 00:43:43 +00:00
auria
5e905e4322 Added support for the gettext context feature
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9862 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-18 18:07:59 +00:00
auria
3029d01014 Fixed a couple minor typos found by marclennart
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9856 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-18 00:12:12 +00:00
hikerstk
3185c5fcc9 Cleaned up world.hpp:
- sorted declarations so that all virtual functions
  are together.
- Renamed *_IDENT variables to IDENT_* so that the
  naming is consistent
- Using std::string& for IDENT_* instead of char*
- Use pointer for out variables in getDefaultCollectibles.
- Moved m_fastest_lap variable from world to LinearWorld.
- Many many cosmetic changes to follow our style guide.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9852 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-16 01:49:38 +00:00
hikerstk
6b19b7c49e Fixing #419: on restart of a 3SB tires previously thrown
on the track are now removed.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9850 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-15 12:46:03 +00:00
hikerstk
9811148d12 Added comments.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9849 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-15 12:44:53 +00:00
hikerstk
c42ca91dc9 Fixed compiler warning (there is no need for doubled in STK).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9839 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-14 23:26:30 +00:00
hikerstk
8b85ee1cac Uses arrays instead of m_tire_{1,2,3,4}_{radius,offset} scalar variables.
Fixed incorrect indices used for tires (used 1-4, should use 0-3).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9838 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-14 23:11:12 +00:00
hikerstk
f85556d83a Added thunderbird as start referee. Known bugs:
1) Ready, Set, Go is still shown.
2) Orientation of thunderbird is not correct in
   all cases (esp. in battle mode).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9822 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-14 00:48:49 +00:00
hikerstk
d3d0b87d93 Replaced #include with forward reference to reduce dependencies.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9821 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-13 23:43:15 +00:00
hikerstk
124c795120 Cosmetic changes only to follow our coding guidelines.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9820 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-13 23:42:06 +00:00
hikerstk
c298f6ef85 Applied Khonkhortisan's patch for #423: use the actual kart wheel models
when losing the final tires.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9818 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-13 02:51:33 +00:00
auria
9878f12039 Improve and simplify improved rescue code; also remove the CHEATER message I tried to add because it had some glitches
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9810 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-12 00:57:14 +00:00
auria
1f19560a29 More tweaks to improved rescue, plus as a bonus use the additional info we now have to let users know when they missed a checkline
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9809 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-12 00:28:46 +00:00
auria
2311b11b90 Added new smart rescue
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9807 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-11 23:59:49 +00:00
auria
ee7b178dce Started adding code to assign a checkline to each quad (currently disabled). See #398
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9805 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-11 19:46:51 +00:00
auria
58c634e1f4 Apply patch by khonkhortisan to lose 4 tires in 3 strikes mode, thanks\!
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9792 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-10 21:47:23 +00:00
auria
11c698e29d Fixed the timer remaining stopped when exiting race from pause dialog
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9784 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-08 01:27:04 +00:00
auria
a3eb3e293a Slightly tweak location of spare tires in 3 strikes
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9782 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-07 23:50:25 +00:00
hikerstk
1eaf8b436d 1) Fixed #407: crash/memory leak in battle mode.
Just dropping the last reference to the mesh
   does not remove the pointer to this mesh from
   the mesh cache --> in the next race when the
   tire model is loaded again the mesh cache tries
   to load a freed mesh.
2) Fixed floating tires: TrackObjectManager::removeObject 
   does not remove the scene graph or physics world.
   Just leaving them in the objects managed by
   TrackObjectManager frees them as expected
   (side note: I am considering refactorin removeObject ;) ).
3) Improved documentation on ThreeStrikesBattle.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9780 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-07 21:45:21 +00:00
hikerstk
1d2a0f4b89 More fixes in case that we have a kart without wheels.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9777 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-07 00:56:14 +00:00
hikerstk
eb12aedbbf Fixed compilation problem if this file is compiled.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9767 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-06 05:17:21 +00:00
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
hikerstk
c7c9f8150a Simplified vo_ngan_90's patch.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9752 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-05 04:14:50 +00:00
auria
6e98f90a48 Apply patch by vo_ngan_90 to pause particles and waves when paused, thanks\!
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9746 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-04 23:44:27 +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
auria
79f5f69b9e Change order in which tires are lost
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9706 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-01 23:59:05 +00:00
auria
a87d0c5f2b Fixed 3-strikes wheels not reappearing when restarting race
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9705 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-01 23:56:22 +00:00
auria
03178d9e75 Kinda fixed crash I introduced in 3 strikes, but the current code leaks. Will need to ask Joerg how irrlicht memory management works...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9704 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-01 23:47:15 +00:00
auria
3e7aeaf71f HAving some fun : you will now physically lose a tire in 3-strikes mode. Watch out for tires all over the place as the battle gets fierce ;)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9703 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-01 20:09:26 +00:00
auria
d1ee59b1e2 Tweaks over previous commit
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9604 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-08-22 00:42:21 +00:00
auria
6ba44be4f7 Give a go at the 3-spare-tires idea for 3 strikes battle
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9603 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-08-22 00:35:31 +00:00
hikerstk
0821fe3728 Removed the hard-coded usage of only one kart in profile mode
with graphics, since this can now be done using the --ai=... flag.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9540 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-08-17 00:09:11 +00:00
hikerstk
2172f1c4df Applied changes from statistics branch to trunk (r9413 - r9484).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9503 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-08-15 02:00:50 +00:00
hikerstk
6e5086f9b8 More refactoring: duplicated code handling track sectors and
distance along track is now moved into a separate class TrackSector
and used in linear_world and rubber ball.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9422 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-08-04 23:33:41 +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
hikerstk
48cf9e0515 Updated computation of 'distance from start' for the
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
2011-08-03 06:21:26 +00:00
hikerstk
e0d34ffdcd 1) Fixed counting of explosion for statistics.
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
2011-08-01 07:10:33 +00:00
hikerstk
029e50381d Added more statistics for profile mode:
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
2011-08-01 00:06:13 +00:00
hikerstk
c5ef5eb705 Beautified profile results table in case that karts name are
too long (or too short).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9385 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-07-29 06:25:12 +00:00
hikerstk
83680f4637 Added --ai=a,b,... command line option to allow specification
of which AI karts to use.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9381 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-07-28 22:56:49 +00:00
hikerstk
a62e0f86d3 1) Added new --no-graphics option for fast batch testing.
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
2011-07-27 12:11:11 +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
hikerstk
c9830eac8c Worked around a potential linux audio bug: on one machine
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
2011-07-08 01:22:43 +00:00
funto66
1c2795f0c8 Added a debug option to skip the ready-set-go phase
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9168 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-07-05 21:22:50 +00:00
hikerstk
8e0d7789b1 Fixed #298: the karts were rescued to 'last valid quad - 1'
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
2011-07-05 01:39:38 +00:00
auria
51a02272f0 At Arthur_D's request : in artist debug mode, when there are no AI karts, skip the ready/set/go messages quickly to make testing go faster
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9130 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-07-01 23:59:25 +00:00
auria
0631de56d0 More work to make arenas debuggable
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9096 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-06-26 22:59:06 +00:00
auria
2d824186fd Fixed crash when starting into an arena from command-line
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9095 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-06-26 22:49:09 +00:00
auria
9d52fa1e46 Make new fastest lap messages much less visible
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8810 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-06-04 00:12:38 +00:00
mbjornstk
47f8d29011 Remove more useless exec properties.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8798 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-06-01 21:19:18 +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
auria
357af5a27d More work on 'thou shalt not include irrlicht.h everywhere carelessly'
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8663 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-22 19:29:52 +00:00
auria
11e925f867 Fix musical note hiccup bug by preparing track music in 2 phases
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8551 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-11 01:47:27 +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
auria
8b725a88c2 Major audio cleanup : remove sound effects names. Now their filename is their identifier. This simplifies things a lot
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8424 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-04-23 00:22:16 +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
6b6cc3f7bf Remove outdated TODOs + fix typo
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8175 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-04-01 14:48:25 +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
589abb4333 Only play start and lap fanfares if music is enabled
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7771 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-02-28 16:19:43 +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
913596663b The AI now picks a different (random) path for each lap.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7689 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-02-12 07:35:34 +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
f48a82d2d4 fixed several failures of StringUtils::insert, I have no idea why they failed
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7641 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-02-06 23:44:17 +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
hikerstk
4ab6331ff4 Update to bullet-2.77.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7579 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-02-02 22:04:13 +00:00
hikerstk
67f33edbeb Fixed 3164026 - lap not counted in snowmountain: when a kart was rescued
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
2011-01-24 20:33:14 +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
mbjornstk
015443f582 Set props as per SVN-CONFIG for .[ch]pp, AKA SVN props clean up day. :)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7493 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-21 01:54:38 +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
auria
fa8b2a8ed6 Improve documentation of race manager; this is one huge class so having good doxygen docs is important. Also clarify difference between setNumPlayers and setNumLocalPlayers; replace many calls to setNumPlayers with calls to setNumLocalPlayers, since setNumPlayers is called by the network manager already and as such calls to setNumPlayers had no effect (the same method was called again later) and were just confusing
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7236 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-03 20:17:44 +00:00
hikerstk
4f1af3a862 Auto-rescue will now not be counted as a hit in battle mode anymore.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7111 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-12-20 12:21:48 +00:00
hikerstk
214bf5deec Fix bug in FTL: if the kart on position 1 was eliminated (i.e. it had
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
2010-12-20 11:58:10 +00:00
hikerstk
39d4fe5fb7 Fixed incorrect rescue positions in battle mode, which could
result in a crash (bug #3140030).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7102 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-12-20 02:41:02 +00:00
auria
10299aae86 Don't display rank in 3 strikes
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7099 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-12-20 01:19:05 +00:00
hikerstk
fd3895b45f Fixed severals problems with FTL GP: GP rank od the leader must be -1
(some GP ranks were not set at all).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7098 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-12-20 01:16:03 +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
aeonphyxius
2427aed571 Tutorial development incremental commit
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7095 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-12-20 00:52:59 +00:00
hikerstk
811550eb7f Removed tabs, fixed compiler warning ("/*" inside a comment).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7045 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-12-16 23:04:23 +00:00
aeonphyxius
d672a5446b tutorial new classes, VC project and main menu screen.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7043 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-12-16 22:57:13 +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
auria
7f97094b87 Fixed numerous leaks, especially audio leaks + add debug functions to be able to easily check for audio leaks
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6903 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-12-08 22:18:55 +00:00
auria
4447f3431e Don't show lap message on last lap
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6822 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-11-30 23:36:14 +00:00
auria
b83f850cd4 Don't show lap message on first lap
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6813 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-11-30 02:07:38 +00:00
auria
3fe9acd0e9 Show a message on every lap
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6812 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-11-30 02:04:18 +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
65d563ee2e Fixed profile world (ProfileWorld::CreateKart was not called anymore
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
2010-11-29 02:34:25 +00:00
hikerstk
18f8b831aa Fixed bug in bugfix for 3090183: kart positions were
changed incorrectly down instead of up.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6596 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-11-16 06:02:58 +00:00
hikerstk
507dd4cbde Fix bug 3090183: if the leader in a FTL race is on position
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
2010-11-15 23:28:05 +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
c40e50f4f1 Fixed crash in battle mode.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6485 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-11-09 21:45:06 +00:00
auria
166f342a06 Fixed KroArtem-reported rare bug with music dimmed down during last lap fanfare
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6419 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-11-05 19:19:39 +00:00
hikerstk
58a8444112 Avoided 'wrong direction' message if a kart is rescued or playing
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
2010-11-02 09:11:47 +00:00
hikerstk
6881c51be8 Fixed crash in case that no music is defined for a track.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6344 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-10-26 21:51:45 +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
hikerstk
b900230305 Fixed compiler warning and some comment typos.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6284 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-10-13 22:37:41 +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
16408bc258 Reduce volume of background music while playing last lap fanfare + don't play last lap fanfare in one-lap races
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6271 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-10-12 01:24:26 +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
auria
157133673c Fixed compilation
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6258 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-10-11 21:53:04 +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
2dad6ea54f Fixed compilation in case of non-debug compilation when
DEBUG_KART_RANK is defined.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6247 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-10-11 02:49:35 +00:00
hikerstk
34a7a538fe Fixed debug code: a change of a kart rank was not detected
(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
2010-10-11 02:29:50 +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
2c98d511fe Fixed graphical error in FTL races when music is enabled
(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
2010-09-23 07:17:04 +00:00
hikerstk
6b46f3162f Fixed uninitialised variable (which was used around line 695).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6120 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-23 03:45:08 +00:00
hikerstk
1f348ac93f Cosmetic changes only.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6078 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-20 14:46:07 +00:00
hikerstk
82fcdef6fb Add a 'time per kart' to the leader intervals, which is defined
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
2010-09-20 01:16:41 +00:00