Commit Graph

3261 Commits

Author SHA1 Message Date
xapantu
a087e00214 Adding update support for the addons and increase the size of the buttons in the addon dialog
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6230 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-10-09 16:44:12 +00:00
hikerstk
82a2aa9d8d Removed FIXME and unnecessary code.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6221 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-10-07 12:08:49 +00:00
hikerstk
8c030ccdb5 Fixed handling of multiple items: added missing parachute and
switch handling, fixed typo in bubble gum handling.
Sorted powerup handling according to order of POWERUP_*
defines, and added assert to default clause so that missing
handling of powerup items is detected earlier.

This should fix 3078892 - parachutes lasting long (most 
likely due to AIs firing multi-parachutes one after
another, which adds up the parachute time).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6220 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-10-07 11:52:55 +00:00
hikerstk
bae679eb83 Fixed bug 3082297: karts would easily flip over on the side.
Caused by an incorrect sign (which wasn't noticed earlier
because of bug 3081113).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6219 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-10-07 11:28:33 +00:00
hikerstk
ca61e6527d Bugfix: karts would rotate (around up axis) if they are on a steep uphill/downhill
part of a track. Reason was an incorrect axis in the upright constraint (see bug
3081113).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6218 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-10-05 12:35:02 +00:00
auria
095f45be00 Possibly fixed another thread-related bug
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6206 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-10-03 18:56:26 +00:00
auria
ddc2a3dab2 May now confirm kart selection by pressing fire on player name (in case someone selects a kart first, their identity second, this is more natural)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6192 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-10-02 00:39:24 +00:00
auria
5eb4aaf4ef Hopefully fixed nitrobar going off-screen at large resolutions : use a percentage of screensize, or an sbolute size multiplied by the scale parameter, but not both toghether.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6191 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-10-01 23:46:46 +00:00
auria
909c887724 Changed message displayed when making it in the top-3 of a GP as per recently received feedback
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6187 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-10-01 23:05:28 +00:00
hikerstk
6a6d574823 Prevented buffer overflows in case of invalid times (which could happen e.g.
as result of estimated times on a track with invalid drivelines), see also
bug 3078740.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6180 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-10-01 11:00:22 +00:00
hikerstk
5f6b0729b7 Fixed incorrect rescue in fortmagma (and potentially other tracks): if a kart
falls down into the castle, it would be rescued to the floor of the castle, giving
it a huge benefit.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6175 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-30 23:26:18 +00:00
auria
26c1e1ec34 Updated Xcode project
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6172 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-30 23:02:06 +00:00
mbjornstk
583689c347 Add messages for bowling ball self hits.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6169 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-30 06:01:10 +00:00
hikerstk
6d3c17f602 Added different way for detecting new lap: based on the quads this will
make sure that player ranking is always accurate. It's not used atm,
but around for testing.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6167 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-29 23:23:16 +00:00
hikerstk
ecfd912d54 Fixed --stk-config parameters: the user specified config file was read too late
(after all karts were loaded and therefore initialised with the original config
file default parameters), see bug 3072762.
-This line, and those below, will be ignored--

M    main.cpp
M    config/stk_config.cpp
M    config/stk_config.hpp
M    items/item_manager.cpp


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6166 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-29 23:09:53 +00:00
hikerstk
fe91d4cfe5 Switched off debug print.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6164 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-29 00:26:48 +00:00
hikerstk
4b4bddf35e Support for grouping check structures. E.g. it is now possible to
have more than one lap line, which will always be in synch (i.e.
if one is triggered, all will be set to inactive).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6161 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-28 23:29:21 +00:00
hikerstk
3d66c17292 Added files missing in previous commit - sorry.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6160 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-28 23:27:14 +00:00
hikerstk
e189746787 Removed dubious warning about start line not on quad,
which can give a false positive on certain platforms due to 
floating point errors.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6159 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-28 23:19:56 +00:00
auria
e24b447a6d Removed unused includes
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6158 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-28 14:35:43 +00:00
auria
dd50501e73 More minor changes to make sure crashes don't occur due to the thread in the main screen
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6156 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-27 15:46:24 +00:00
hikerstk
4976d9d60c Made the backwards facing camera using a higher angle to make
it more useful (actual angle can be determined in stk_config.xml).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6155 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-27 12:15:19 +00:00
auria
6432d83c27 Fix more potential crash at shutdown regarding with add-on threads
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6154 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-27 01:27:06 +00:00
hikerstk
3c2f45a556 Changed slipstream handling: boost will now be given when getting out
of slipstream and enough 'slipstream credits' have been accumulated
(which is shown by a little bit of nitro). This should avoid the problem of
crashing into the kart ahead when getting nitro, and also make it less
likely that the AI creates trains.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6153 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-26 22:44:23 +00:00
auria
90cfa6bb4a Have better behavior than aborting when a bad kart is found (especially relevant with the add-on manager coming)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6152 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-26 01:20:50 +00:00
auria
a2edd2a9de Fixed several vertex color problems (re-exported fort magma because some per-plane vertex colors were not supported by B3D and/or irrlicht so I needed to split a few objects to have vertex colors work fine)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6148 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-25 23:39:08 +00:00
hikerstk
351a69adfe Fixed upright constraint, which prevents karts from toppling over when
jumping (e.g. paper plane in math class).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6147 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-25 21:57:56 +00:00
auria
d62e1f659d Fixed bug that could occur when leaving kart selection screen and a kart is currently leaving but not yet gone
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6146 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-25 20:12:54 +00:00
auria
984030f990 Added much debug code to help detect bugs early in kart selection screen and player management (see recent ticket; although these checks can be useful outside of this particular ticket anyway)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6145 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-25 18:34:04 +00:00
auria
90766a6118 Fix thread cancellation
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6144 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-25 18:09:06 +00:00
hikerstk
0c5c9496cf Fixed bug 3074299 (slipstream in air on low level AI).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6143 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-25 13:48:41 +00:00
hikerstk
e261294e47 Improved handling of multiple items by the AI.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6142 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-24 12:29:03 +00:00
hikerstk
87bb1cea34 Fixed incorrect camera angle when the kart is driving up a steep hill.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6141 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-24 12:22:56 +00:00
hikerstk
916b67dd80 Updated version number for VS project.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6136 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-24 01:17:04 +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
cbf089ce40 Disabled slipstreaming for low AI level.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6122 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-23 07:18:46 +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
58116b66be Made the up-angle relative to the pitch of the kart configurable.
It now defaults to 15 degrees (it was 30 degrees, but accidentally
a hard coded value of 15 was committed in r6110).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6119 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-23 03:43:10 +00:00
hikerstk
6b3d0db0fa Fixed crash in case that not enough AI are selected in a FTL
race (now there will be at least three karts in a FTL race).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6118 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-23 03:13:54 +00:00
hikerstk
ea94ac5c7c Karts that have finished the race will now still give slipstream advantage.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6111 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-22 02:17:00 +00:00
auria
81aca22434 Fixed weird music being used on XR591
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6110 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-22 02:01:52 +00:00
hikerstk
b754d9c879 Fixed camera aiming at incorrect (previous) position when restarting a race.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6107 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-21 12:25:17 +00:00
hikerstk
4733fead77 TUrns out the spaces did not actually remove the warning (sorry,
missed the warning when recompiling). So I've added a "."
at the end.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6106 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-21 10:36:40 +00:00
hikerstk
7085283a29 Fixed compiler warning ('\' at end of line indicates that the
line should be continued, so I added a space).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6105 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-21 10:34:17 +00:00
hikerstk
66259c59f6 Fixed compiler warning.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6104 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-21 10:28:30 +00:00
hikerstk
a973e8b84f Renamed all instanced of RandomKart in the race_manager to
AIKart (e.g. m_random_kart_list -> m_ai_kart_list) - since this
describes what the lists and function actually are (in network
the name is not entirely correct, but since this will be 
re-implemented anyway, we leave the proper naming till later).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6103 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-21 07:37:42 +00:00
hikerstk
3bc2a8b93d Fixed VS compilation problem (log from integer value).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6102 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-21 04:46:57 +00:00
hikerstk
1b1224b244 Added assert to catch inconsistent setting of number of karts.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6101 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-21 04:07:28 +00:00