Commit Graph

35 Commits

Author SHA1 Message Date
hikerstk
92efb6ccc7 1) Time-trial and follow-the-leader modes can now be
used in GP as well.
2) Improved game-mode gui to use the new layout engine.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2174 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-07-21 04:51:27 +00:00
auria
0b56f85de6 Turned Spark into Bowling Ball
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2173 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-07-21 01:55:41 +00:00
hikerstk
0eb36180bd Added SFX when karts hit karts back in.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2163 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-07-14 03:40:58 +00:00
hikerstk
dde2f508d3 1) Added support for kart groups, added all current karts to the group 'standard'.
2) Cleaned up unused kart physics parameters, added new suspension_travel_cm parameter.
3) Renamed TrackManager::getTrackCount() to getNumberOfTracks() (to follow the same pattern as
   getNumberOfKarts()).
4) Minor code cleanup, warnings removal, ...


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2148 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-07-03 03:14:27 +00:00
hikerstk
370fa80994 1) Made some attributes private.
2) Fixed the AI calling rescue when crashing repeatedly (which hasn't
  d been working since bullet physics was used).



git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2138 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-06-24 06:29:35 +00:00
hikerstk
2dc36390fa 1) Removed the old m_curr_pos sg* data structure from kart.
2) Replaced several sg* data structures and function parameters with
   plib independent data structures.
3) Some code cleanup, updated gpl license to 3 in a file or two.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2132 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-06-20 09:34:35 +00:00
cosmosninja
eb482c7d4b Updated the GPL version to GPLv3.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2128 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-06-13 00:53:52 +00:00
hikerstk
003fffd9f6 Added missing AI settings for skidding preview (1961 on 0.5rc1).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1962 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-05-21 01:20:00 +00:00
hikerstk
70badaa9ea Fixes vector normalisation issues (which can result in crashes due to NAN values).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1720 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-04-22 14:02:07 +00:00
cosmosninja
0a41f57aee Fixes the AI not doing wheelies in jungle track; removed unused variable.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1701 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-04-20 18:07:04 +00:00
hikerstk
63a70c3f4b Removed debug print.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1691 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-04-17 11:44:15 +00:00
hikerstk
a53ca214c5 1) Follow the leader mode now removes the first kart if
the leader is not the first.
2) AI karts brake if they are ahead of the leader
3) The leader has now the text 'leader' displayed next
   to the item.
4) The ranks in the leader results table are now correct
   (starting with 1 instead of 2)
5) Fixed two potential bugs, which might result in
   triggering an assert.
6) Replaced assert (in case that it should get triggered
   again) with useful messages to stderr.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1688 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-04-17 00:20:06 +00:00
hikerstk
68dae90d15 Added first beta version of 'follow the leader' mode.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1683 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-04-15 13:57:18 +00:00
hikerstk
3e6a0cf5ab 1) Removed race_setup and race_mode data structures. All this
information is now only managed by the race_manager, no
   more in-between objects to transfer information along.
2) The scores for grand prix are now defined in the stk_config.dat
   file (10, 8, 6, 5, 4, .., 1, 0, 0) points
3) Bugfix: unlock information wasn't saved anymore. Added specific
   saving after unlocking, plus re-inserted the 'generic' save
   at the end of STK again.
4) bugfix/work around: Visual Studio complains about incompatible
   iterators in sdldrv - apparently caused by using erase, and
   then keep on using the iterator.
5) Fixed bug when running a race in a GP again (scores/times
   were added each time).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1681 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-04-09 13:52:48 +00:00
hikerstk
6324285de8 1) Zipper now get an immediate speed boost when they are activated (instead
of only a higher acceleration).
2) Code cleanup (removed unused functions and config parameters).



git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1636 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-03-05 13:22:00 +00:00
hikerstk
8d2779495b (See r1587 on 0.4rc1):
1) empty robot templates have been moved from
   'tools' to src/robots (documentation was updated),
   and are now included in source distributions
   Removed tools directory which is now empty.
2) Include documentation in source distributions
   (but only player_manual will be installed)
3) Added missing bullet documentation files
   and removed unnecessary cmake files. 


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1588 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-02-25 02:22:04 +00:00
hikerstk
930a1ef2b5 Added AI tweaks (adjusting curve speed and angle
depending on track). Details in wiki.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1513 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-02-18 04:16:57 +00:00
hikerstk
751ed6d748 Removed debug output.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1499 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-02-15 08:03:46 +00:00
hikerstk
35514f15f8 Update to bullet 2.67 beta1 (which fixed the problem of karts falling through the
track with optimised triangle meshes).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1497 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-02-15 03:53:41 +00:00
hikerstk
beb8c742db Added missing initialising (which can cause AI karts to
be rescued at the beginning of a race).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1485 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-02-13 11:15:49 +00:00
hikerstk
7550f687da Bugfix/code cleanup: the loading time was counted as countdown time
in certain circumstances (e.g. when setting up a new race from the race menu).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1474 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-02-13 01:02:02 +00:00
hikerstk
4c4eee4c4d Fixed automatic rescue:
1) called when any kart is not upside down and slowed down
2) called for AI when it's not making progress (the old
   method of using m_collided did not work in at least one
   case I have seen).



git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1395 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-01-16 00:09:05 +00:00
hikerstk
bd3ab7926f 1) Fixed 'moving physics', i.e. objects on the track that
can be pushed around by karts (currently only used in
   tux tollway).
2) Removed support for magnet.
3) Some code cleanup for missiles etc.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1379 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-01-09 12:09:55 +00:00
cosmosninja
298a81da04 Moved the variable m_time_since_stuck from the kart.hpp/kart.cpp files to the default robot. Since there is other code to catch the same situation, the code dealing with the m_time_since_stuck variable is disabled for now as a test.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1377 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-01-09 02:20:58 +00:00
hikerstk
a5e2ef24d5 1) Fixed zipper (settings for further tuning in stk_config.data).
2) Fixed bug in collision detection (a kart-kart crash could cause
   a sigsegv).
3) Fixed bug in track loader, which caused somer track objects (e.g.
   zipper in bsod castle) not to get the correct pitch/roll, causing
   them to 'stick out')
4) Fixed wheelie handling for AI (though wheelies are still disabled
   by default, change wheelie-max-speed-ratio to 0.5 to test).
5) Some cleanup of non-bullet code.



git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1370 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-01-01 14:30:39 +00:00
hikerstk
b3ab2d474d Fixed several compiler warnings for Visual Studio.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1340 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2007-12-11 02:48:10 +00:00
hikerstk
7ed846ca3e 1) Improved rockets and sparks for bullet physics
Parameters for rockets etc. can for now be
   set in data/*.projectile
2) Fixed bugs causing rockets not to explode (and
   potentialy start rotating)
3) Added (somewhat temporarily) some cheats to get
   rockets, homing missiles and sparks as F1/2/3
4) Fixed several memory leaks.
5) Fixed (very rare) occurring crash when deleting
   phsyics.
6) Started to remove non-bullet physics code
7) Bullet physics is now the default, and it
   can not be disabled anymore!!
Important note: 
From this revision on, non-bullet physics is NOT
supported anymore, and will (most likely) not
compile. For now a -DBULLET is still necessary (it
is added as default), but the code will be cleaned
up in the near future.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1325 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2007-12-08 13:04:56 +00:00
cosmosninja
59fb95e64b Fixes an uncommon dumb old bug in the AI, strangely only reported to appear with bullet physics, which could make it loop forever.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1303 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2007-11-25 00:28:54 +00:00
hikerstk
4a93d103d4 This file was missing in the previous patch.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1285 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2007-11-08 13:14:31 +00:00
ikework
754bd5275c fixed bug 1791242 in robots/default_robot.cpp
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1233 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2007-09-09 21:18:18 +00:00
hikerstk
96509dd941 Applied Maik's patches (bugfixes).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1222 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2007-08-24 03:42:59 +00:00
hansthefarmer
cd2698300b Bug 1778256, AI does not use collectables, fixed
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1216 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2007-08-22 16:21:22 +00:00
hansthefarmer
6da43c83c5 Fixed the kart length problem in default_robot.cpp.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1211 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2007-08-19 15:05:20 +00:00
hansthefarmer
67a4c5a4a1 Small hack to avoid steer vibrations
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1208 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2007-08-18 12:46:16 +00:00
grumbel
7a6d165641 - moved trunk/ to trunk/supertuxkart
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1118 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2007-05-27 16:01:53 +00:00