Commit Graph

5412 Commits

Author SHA1 Message Date
hikerstk
1b53fc70ab Bugfix: the new skidding still applied a slowdown.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10981 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-03-15 23:28:01 +00:00
hikerstk
8108045c03 Adjusted debug camera somewhat to get a closer view
of the kart.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10972 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-03-15 05:56:23 +00:00
hikerstk
b9f6b6f0d5 Fixed debug output (trying to print a std::vector ;) ), removed compiler
warnings (which indicate a possible bug).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10971 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-03-15 01:21:35 +00:00
auria
8f2ee68b16 App,y patch by Wardje to fix small errors on the main menu, thanks!
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10970 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-03-14 23:30:47 +00:00
hikerstk
9377234935 Improved ghost format to support events (like start/end
skidding), and to make it easier to concatenate ghost
data. Skidding events are already stored, but not used
in replay atm.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10969 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-03-14 23:15:31 +00:00
hikerstk
83fc0b2644 Improved steering after releasing the skid button.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10968 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-03-14 23:10:16 +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
magned
6783ab7d6f Changed fabsf(steering)<0.3f to 0.9 in order to make it skid the other way even if steering is still at 90% to the other direction. It's complicated to explain.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10966 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-03-13 22:53:21 +00:00
hikerstk
330c269f42 Added a little jump (duration set in config file) when
starting to skid.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10965 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-03-13 22:34:50 +00:00
hikerstk
4e02fe9d6c Removed commented out code.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10964 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-03-13 22:33:43 +00:00
hikerstk
288f43d481 Made the bonus speed given for a skidding boost configurable (the values
were for bonuses were changed, but are still not considered to be tweaked).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10963 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-03-13 20:51:50 +00:00
auria
f639458f26 CMake can now generate visual c++ projects
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10959 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-03-10 23:16:57 +00:00
hikerstk
9d4bdd32a2 Updated VS 10 project files.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10958 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-03-10 12:40:28 +00:00
hikerstk
73176a8d28 Made skidding more controllable: now once the kart
started to skid, you can influence the turn radius
to a certain degree (stk_config.xml, reduce-turn-min
and -max).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10954 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-03-08 23:30:26 +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
9d1e114bde Moved steering adjustment when skidding into skidding class.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10949 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-03-07 11:27:12 +00:00
hikerstk
2555cc6e59 Removed unnecessary if statement (since now virtual functions
work for ghost karts).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10948 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-03-07 03:18:53 +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
auria
1e9b237b52 Update Xcode project
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10946 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-03-06 23:36:17 +00:00
auria
b250a20e50 Apply other patch by riebl to CMake, hopefully one of the last ;) stop manually linking the frameworks on OSX since the find modules add them, and remove sh-file from the list of files to compile
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10940 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-03-06 20:57:35 +00:00
mbjornstk
0a879c8e64 Add new skidding_properties.[ch]pp to build system.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10938 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-03-06 20:38:18 +00:00
auria
62d76f1405 Apply patch by riebl : fix possible crash when OpenAL was disabled
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10932 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-03-06 16:33:06 +00:00
auria
8391f085ce Apply patch by riebl : adjust DummySFX so it can be used instead of SFXOpenAL
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10931 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-03-06 16:32:18 +00:00
auria
c53895c941 Bugfix : don't ignore interaction property on animated objects
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10929 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-03-06 15:34:25 +00:00
hikerstk
9bce8f574b Fixed linux compilation problems, updated cmake project files.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10927 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-03-06 11:37:47 +00:00
hikerstk
65c73e9186 Refactored skidding to use a new base class SkiddingProperties.
This patch reduces the dependencies between KartProperties and
skidding core (and especially reduces compile time when skidding
core changes).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10926 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-03-06 11:28:04 +00:00
auria
3c2b69fb5c Apply a bunch of CMake patches by riebl, thanks\!
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10921 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-03-06 00:18:51 +00:00
auria
32c9213ccf Fix some code I can't make sense of anymore and would result in accessing index -1
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10920 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-03-04 23:17:26 +00:00
auria
c980c6e3cf Update Xcode project
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10918 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-03-04 13:53:06 +00:00
mbjornstk
16ff23c405 Record low-high Ktris range in FPS display.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10917 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-03-03 22:15:49 +00:00
mbjornstk
1baa949396 Add new skidding files to build system.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10916 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-03-02 20:41:19 +00:00
hikerstk
88c16e7cbe 1) Refactored skidding so that all skidding handling is now done
in a separate object (Skidding) of Kart.
2) Renamed m_drift of the kart control structure to m_skid
   to be consistent with the usage in STK.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10914 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-03-02 04:17:38 +00:00
mbjornstk
64e49ca09b Add missing \n in help text.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10913 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-03-02 02:05:53 +00:00
hikerstk
01f57291fe Fixed my previous commit, which stopped the AI from skidding with
the old skidding mode, not as intended with the new skidding code.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10912 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-03-02 00:52:02 +00:00
hikerstk
285789111f Disable skidding in the AIs if the new skidding code is enabled (since
the AIs can't handle the new skidding at all).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10911 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-03-01 23:33:26 +00:00
hikerstk
1f3cf63680 1) Removed unused angular velocity setting for skidding.
2) Stop misusing m_skidding to force skid sfx when a bubble
   gum was hit or the kart is breaking.
3) Somehwat simplified skidding code.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10910 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-02-29 21:27:39 +00:00
hikerstk
650af20260 Fixed #550: zippers have much less effect.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10909 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-02-29 09:10:16 +00:00
hikerstk
1e90311e5e Use the visual rotation in replay files, so that skidding is properly shown.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10908 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-02-29 05:44:37 +00:00
mbjornstk
19ad29ff90 Update build system for replay code reorganization.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10907 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-02-29 03:58:35 +00:00
hikerstk
188042d646 Fixed compiler warnings.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10906 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-02-28 22:42:58 +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
2fb96dc46f Instead of aborting when a track does not have a dedicated
CheckLap structures, also accept any CheckStructure that
triggers a new lap, but print a warning (since it will
likely cause incorrect kart rankings).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10902 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-02-28 02:32:06 +00:00
auria
fe4388de63 Fix harmless warning and update Xcode project
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10901 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-02-27 22:59:32 +00:00
hikerstk
1a7dde88d1 Fixed compilation on linux.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10899 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-02-27 12:16:25 +00:00
hikerstk
f190652fb0 Removed old/unfinished replay code.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10898 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-02-27 05:58:42 +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
hikerstk
34f92eefb4 Updated VS 10 project files.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10895 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-02-26 06:44:39 +00:00
auria
547ab07078 Add qubodup's new skid sound, thanks
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10887 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-02-24 00:19:07 +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