Commit Graph

5378 Commits

Author SHA1 Message Date
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
hikerstk
5feea5c8f2 Fixed byg and naming inconsistencies in kart pushing, more
tuning towards collision impulse.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10875 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-02-19 21:41:54 +00:00
hikerstk
1698d1dfe5 Removed unused function.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10872 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-02-17 11:53:29 +00:00
hikerstk
c7581353be File missing in previous commit.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10871 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-02-17 06:00:37 +00:00
hikerstk
31815c264a 1) Added an artifical impulse that pushes a kart towards the previous
driveline point if it hits the track (this will tend to push karts
   back onto the track, though obviously that's not physically correct).
   This can be tweaked by setting terrain-impulse in stk_config.xml
   (0=disable).
2) Remove unused collision side impulse from kart properties.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10870 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-02-17 05:47:02 +00:00
hikerstk
7ad18d4815 Merged reverse-mode branch back into trunk.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10867 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-02-16 11:45:22 +00:00
hikerstk
e57c34dc9c Made 'reversible' the default for all tracks, removed
unnecessary reverse=true from track.xml files.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/reverse_mode@10866 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-02-16 10:20:26 +00:00
hikerstk
902ff01d3c Remove 'reverse' checkbox in track info when the track
does not support reverse driving.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/reverse_mode@10865 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-02-16 05:41:33 +00:00
hikerstk
9b07ffe94f Removed debug print.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/reverse_mode@10863 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-02-16 05:27:52 +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
auria
6e793689d8 Disable accidentally committed DEBUG_MENU_ITEM macro
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10861 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-02-16 02:46:48 +00:00
auria
c6a2cecc05 Add my own sphere mapping shader, since irrlicht's one is buggy when the model moves around. Bonus, mine uses pixel shading instead of vertex shading, which makes the shadows much smoother
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10859 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-02-16 02:25:52 +00:00
auria
49d190defe Work on little cutscene where you earn a trophy
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10858 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-02-16 00:41:45 +00:00
hikerstk
5d956568b9 Fixed crash (which atm only happens with reverse mode, when the
cow in farm is inivisible).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/reverse_mode@10857 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-02-15 23:59:05 +00:00
hikerstk
5e2dcb7963 Fixed crash when using reverse in tracks with short cuts that
are hidden for the AI.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/reverse_mode@10853 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-02-15 20:55:36 +00:00
hikerstk
d76777f765 Fixed crash with end controller.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/reverse_mode@10852 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-02-15 20:54:11 +00:00
hikerstk
15445f182c Adjust start position of camera (for initial camera movement) properly,
which especially fixes its position in reverse mode.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/reverse_mode@10851 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-02-15 05:27:27 +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
auria
c92df26ea6 Show which challenges have been solved in the dialog
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10849 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-02-15 02:21:23 +00:00
auria
2d926bbfcd massive update : more work to support several challenge difficulties; remove a huge lot of code that is no more needed thanks to the new points system; start work on the challenge-solved cutscene
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10848 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-02-15 01:58:24 +00:00
hikerstk
4967ca992a Fixed one-frame jump when switching end cameras (esp. to
static camera). Main reason was that setPosition does
not update the absolutePosition of the camera, but also
that the camera position got switched without applying
all settings (like zoom).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/reverse_mode@10846 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-02-14 23:27:23 +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
8105b6ac0c Fixed end camera handling in reverse mode.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/reverse_mode@10844 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-02-14 21:15:37 +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
c54a651ce9 When failing to load a track object, don't leave a malformed TrackObject instance in the track_object_manager
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10842 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-02-13 23:40:27 +00:00
auria
43ba4c4c25 Fix another unitialized variable
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10841 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-02-13 23:32:15 +00:00
auria
418aaf84e7 Fix use of unintialized pointer and improve error reporting
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10840 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-02-13 23:23:10 +00:00
auria
5b6e31639c Potential crash fix
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10839 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-02-13 15:35:42 +00:00
auria
e21f040919 When LOD is used incorrectly, give error message instead of crashing
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10838 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-02-13 01:13:18 +00:00
hikerstk
8a0fe903a4 Use singleton constructions for check manager.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/reverse_mode@10837 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-02-12 21:25:06 +00:00
hikerstk
ff67a5cf4e Removed the usage of friend declaration. CheckStructure dependencies are
now not read in CheckStructure anymore, instead they are set by the
CheckManager depending on the direction of the track.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/reverse_mode@10832 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-02-09 21:14:32 +00:00
hikerstk
45bb8ceb40 Bugfix: In reverse mode, distance along track started with the wrong
graph node, causing the first lap crossing not being detected.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/reverse_mode@10831 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-02-09 11:21:07 +00:00
hikerstk
5535564467 Consider the 'sideway' speed with which karts hit each other: this makes
it possible to intentionally push karts off track by crashing into them
sideways. This is experimental ;)
Also renamed some variables to better describe what they are.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10830 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-02-09 05:41:13 +00:00
auria
8cfe69333f Port track info dialog to XML
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10829 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-02-09 03:08:32 +00:00
hikerstk
90e6a02193 Improved collision handling to better detect left/right side
collisions. Made collisions more bouncy than before (but I am
still tuning).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10827 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-02-08 20:22:00 +00:00