Commit Graph

38 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
hikerstk
a9d967d724 AI karts are now filled firstly from karts of the current group (before
other karts are then used).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2154 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-07-10 04:46:54 +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
1b49fd7b33 Bugfix: 'final camera' (currently only used in race track) didn't work
correctly.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2143 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-06-27 14:09:43 +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
ecde6ed51e 1) Removed unused (and nearly empty) traffic driver
2) Added new vec3 object, which is used to convert all
   sg* data structures to btVector3. Replaced more sg*
   data structures using vec3.
3) Replaced all individual red,reen,blue values in .kart
   files with a single 'rgb' vector entry.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2047 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-05-25 16:02:26 +00:00
hikerstk
a0473ad24b 1) Cleaned up and simplified handling of race phase in world.
2) Added a 'final camera': this camera will move forward and turn
   when a race is finished to show the finishing line. This is
   currently only enabled for the race track.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1953 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-05-20 03:33:48 +00:00
hikerstk
5365fcadda Blue boxes are no longer placed on a track when time trial
mode is used.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1864 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-05-12 00:23:39 +00:00
hikerstk
e295434afb 1) Added new attribute 'designer' to track, which is displayed if no
description is given (this simplified work for translators).
2) Changed the .track files to use designer instead of description
   (if applicable).
3) Updated .pot file
4) Minor clenaup in lisp parser.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1850 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-05-11 05:11:57 +00:00
hikerstk
76429aa5ab 1) Redesigned music_information and sound_manager interaction.
2) The faster music is now only triggered for the last 30 seconds
   of a race.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1825 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-05-08 01:28:07 +00:00
hikerstk
fae04312c8 1) Bugfix: in some rare circumstances (one kart on top of another kart)
a null pointer would be accessed.
2) Removed smoke.rgb warning.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1695 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-04-18 06:26:36 +00:00
hikerstk
47f23369e8 Added some const declarations.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1689 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-04-17 04:37:49 +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
f0bd9754ba Fixed incorrect print of std::string.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1672 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-03-26 00:36:47 +00:00
hikerstk
29dfd09f7c 1) Improved sound_manager to support separate
sound packages, and using "*.music" information
   files for additional information music. 
2) Removed old/unused plib sound support.
3) Moved all .ogg files to either data/music, or
   to the tracks where they belong.
4) Moved fonts to data/fonts; wav to data/sfx,
   po to data/po, herring to data/herrings,
   models to data/models.



git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1652 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-03-14 09:49:17 +00:00
hikerstk
9715f53659 1) Split file_manager into file handling functions (in file_manager),
and loading related (very plib specific) functions in the new
   loader object.
2) Move *.tkkf files into separate subdirs, and renamed them
   to *.kart  files.



git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1619 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-03-03 03:31:12 +00:00
hikerstk
32d4e3f117 1) Renamed loader to file_manager
2) Moved more track specific textures into corresponding track subdirectories.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1610 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-03-01 03:18:53 +00:00
hikerstk
ce57025781 First part of directory restructuring: all track specific files are
now in their own subdirectory (including models, textures).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1605 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-02-29 03:26:07 +00:00
hikerstk
ef4dd43104 Moved all *.track, *.drv{l,r}, *.loc files into the new location
at data/tracks/TRACKNAME.



git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1600 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-02-27 01:11:02 +00:00
hikerstk
8e108ff600 Bugifxes for new loader (when STK was not started in root
directorym files were not found).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1597 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-02-26 12:15:51 +00:00
hikerstk
2546c88019 Most (all?) directory handling is now into the loader.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1593 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-02-26 02:30:28 +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
39be9a9f67 Bugfix, the gravity was not read correctly from .track files.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1508 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-02-17 22:35:17 +00:00
cosmosninja
da8870162e Fixed a comment.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1479 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-02-13 03:59:29 +00:00
cosmosninja
9dfd898e31 Changed the minimum height requirements for sector detection from -3.5 to -2.0
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1478 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-02-13 03:57:53 +00:00
cosmosninja
f93b8b07e6 Raised the limit of the check for the sectors to
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1443 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-02-05 03:07:48 +00:00
hikerstk
4d38013a5a 1) Removed warning about order of initialisation in moving_physics.
2) Compatibility fixes (e.g. VC6.0): remove initialization of static member 
   variables inside the class declaration.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1391 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-01-13 23:51:09 +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
cosmosninja
aa8fe0c5b3 The track map can now be drawn through the widget set (thought it's not encapsulated properly yet), it's implemented in the track selection screen, a fix that calculates properly the bounding box of the track maps(before it calculated the bounding box of the center line), plus a few style changes.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1368 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2007-12-22 20:10:48 +00:00
hikerstk
0f0ae96039 1) Fixed automatic rescue mode when kart is on reset terrain.
2) More non-bullet code cleanup.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1361 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2007-12-17 13:16:09 +00:00
hikerstk
d0c1aa9e8c 1) Fixed 'rescue bug', i.e. karts have now a proper
heading after being rescued
2) Partly fixed 'automatic rescue' bug: karts get
   rescued when touching a reset material (though it
   currently can take a bit before it happens).
3) Restructured code: track loading and converting
   is now done in the track object.
4) Fixed several warnings for windows.
   


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1345 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2007-12-12 14:07:26 +00:00
hikerstk
6e6f06d2a1 1) Applied Paul's patch for redirecting messages to a file.
2) Added command line option to select if messages
   are written to a file or terminal
3) Added some error checking if the log file can't
   be opened (though this is apparently only working for
   stdout, but not for stderr???)
4) Replaced the #ifdef DIR_SEPATAROR with a
   static const in loader.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1302 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2007-11-22 01:20:57 +00:00
hikerstk
fddfac77d2 Bugfix for 1778264: karts starting off the track (esp.
with about 10 karts in tuxtrack and islandtrack).
The number of karts is additionally now limited
to 10 (see stk_config.data), the only reason for this
is to avoid the same bug report when someone is using
more karts than the number of specified start locations.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1261 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2007-09-26 03:43:02 +00:00
hikerstk
12ee22767c Fixed bug (sgMake2DLine actually returns a 3d vector).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1220 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2007-08-23 00:08:45 +00:00
hansthefarmer
662955fbd7 Bug 1776938 Invalid short cut loop solved.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1215 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2007-08-21 18:37:41 +00:00
hiker
c59838bba3 More than one music file can now be specified for each track, a
random one of those specified is played.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1188 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2007-07-25 14:01:14 +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