Commit Graph

804 Commits

Author SHA1 Message Date
auria
b157227e51 Properly place icons on minimap when the allocated texture was bigger than needed to accomodate drivers/gpus that quite POT textures
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12015 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-11-20 01:28:04 +00:00
hikerstk
e727e34b9d Fixed compiler warning.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11959 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-11-16 12:34:49 +00:00
auria
1b86065775 Add doors in overworld, that block Nolok's challenge until the end
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11955 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-11-16 00:42:38 +00:00
hikerstk
53cccb87da Made non-reverse the default for all tracks; added
'reverse=yes' to all tracks.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11935 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-11-14 01:45:43 +00:00
hikerstk
367e8b18dc Disable auto-rescue in arenas by default.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11903 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-11-08 22:44:42 +00:00
hikerstk
c316abda19 Added setting to disable push-back and auto-rescue for
each track. Manually set those in overworld.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11900 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-11-08 06:02:35 +00:00
hikerstk
a65147cad5 Bowling balls will only affect karts that are
directly hit now.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11860 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-11-04 12:57:03 +00:00
hikerstk
b1caec75a1 Fixed comments and removed tabs.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11845 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-10-31 00:41:39 +00:00
hikerstk
885c0c0b1d Added setting to disable caching of overworld to
user_config file.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11820 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-10-30 05:48:50 +00:00
hikerstk
9b74d0cdd0 Added caching of textures for overworld.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11813 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-10-29 23:14:30 +00:00
hikerstk
6058c3bcfc Committed Steel's patch for #708 (endless loop).
Thanks!


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11735 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-10-22 04:01:51 +00:00
hikerstk
0adcd00342 Use maximum height of a quad when determining if a kart is
on a quad or not. This fixes the problem that the AI can
not drive up the ramp in sandtrack.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11730 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-10-21 20:48:33 +00:00
hikerstk
4a8a40c7e8 Removed unnecessary warning; made debug mesh less transparent.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11702 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-10-17 21:48:42 +00:00
hikerstk
32ec4f8aee Fixed crash when using track_debug with the intro scene.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11651 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-30 23:32:00 +00:00
hikerstk
eaedc47ddc Fixed findOutOfRoadSector to take the height into account
(previously incorrect quads were found in FortMagma, when
driving slightly off track beneath a different part of the
track - and while this did not affect the kart's steering
in this case, it could cause problems in other places).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11637 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-30 13:11:07 +00:00
hikerstk
3a3d1a5a6f Fixed compiler warning.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11636 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-30 12:16:01 +00:00
auria
5a4f767403 Add special escape-menu on overworld, and make Nolok's bubble gum swapper-proof
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11635 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-29 22:46:29 +00:00
auria
48d480a67d Add tricks I hope help dramatically improve the synchronisation between the STK physics and irlricht animations in cutscene
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11633 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-28 01:52:09 +00:00
auria
f687659929 Try workaround for #700
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11629 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-22 18:37:47 +00:00
auria
f74f945558 Add minimal support for GP challenges in the overworld. More to come
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11566 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-07 02:06:50 +00:00
hikerstk
35c7cf0848 Added first version of item avoidance to the AI.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11537 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-03 22:49:30 +00:00
auria
fe65f46035 Work on end cutscene. Code to start particles based on a condition
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11516 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-08-23 01:52:55 +00:00
hikerstk
e2caea1c05 Refactored ItemManager to use static components to load
the default item meshes. An instance of it is now only
created when a race is started (and deleted once the
race is finished). This makes the race-specific 
initialisation and cleanup better to understand. Also
added singleton access to the one instance of ItemManager.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11498 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-08-09 06:37:29 +00:00
hikerstk
b972a2b2a3 Renamed GraphNode::getIndex to getQuadIndex.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11487 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-08-08 06:57:55 +00:00
auria
678a45cc9a Fix potential crashes
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11458 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-08-03 22:35:46 +00:00
auria
5f0f8e0346 Make gnu stop playing flute when he's abducted
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11449 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-07-29 19:16:59 +00:00
auria
8d68c2a766 Apply patch by nathanm32292394 to better support gpus/drivers that don't support non-power-of-two textures, thanks a lot
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11447 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-07-28 00:18:41 +00:00
auria
567da3ce38 Work to allow combining LOD and interaction
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11439 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-07-26 00:33:25 +00:00
hikerstk
9b15b22ef5 Fixed minimap, which was also shown transparent after r11435.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11437 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-07-25 22:09:12 +00:00
hikerstk
6c72b1c401 Make the debug driveline mesh transparent so that the karts can be
better seen (esp. in camera debug mode when the drivelines are
higher than the track).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11435 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-07-24 07:18:39 +00:00
auria
341297d951 Silence a few bogus warnings printed on the terminal
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11424 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-07-22 20:17:14 +00:00
auria
65d897915a Manually implement muting sounds when too far since OpenAL doesn't seem to have that feature, and use it to finally make the spaceship sound in the intro work
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11422 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-07-22 20:05:38 +00:00
auria
9f909b4c26 undo my attempts at configuring the attenuation model per-source, after closer inspection OpenAL doesn't support what I was trying to do :(
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11421 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-07-22 19:20:41 +00:00
auria
8760f28450 Change particle emitters into track objects so that they can be animated. I think I also fixed a few relatively minor leaks along the way
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11415 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-07-21 02:05:51 +00:00
hikerstk
3ec6682fb4 Added alternative implementation of findNoNCrashingPoint
which should be faster and 'more correct' (the old implemenation
only tests discrete points for being on/off track, which means
AI can cut corner and not realise that it will be off track).
The new implementation uses lines and intersections to detect
this condition correctly. Since the new implementation is
as a result not as aggressive in cutting corner, it's not
as fast as the old AI, and is for now disabled (see end of
SiddingAI::handleSteering if you want to switch).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11405 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-07-19 07:00:57 +00:00
hikerstk
c592be45df Instead of computing two different radius, detect if the kart
is not facing in the right direction (and if so, brake to allow
it to quicker get facing in the right direction again), and
only compute the turn radius otherwise. Print some useful
information when --ai-debug is specified, atm when and why
a kart is braking.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11386 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-07-11 23:05:16 +00:00
wardje
b3f190636b Correct track choosing logic in demoworld
* Overworld could be picked
 * If user gave one arena track as choice, things would crash

Also fix some comments.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11383 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-07-11 20:42:45 +00:00
hikerstk
cebae627c8 Keep track of all predecessor of a node, not only the first one.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11382 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-07-11 06:48:31 +00:00
hikerstk
c11fdc0bd8 Removed debug code.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11370 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-07-06 02:05:37 +00:00
hikerstk
b3c0eeab80 Skidding AI now estimates the turn radius of a curve, and is
able to brake if it should be too fast. Avoid using nitro
when braking (otherwise AI might be pushed out of curve).
Added new --ai-debug command line option that will display
the name of the AI on top of each kart (when compiled with
debug). See world.cpp lines 249 on how to select the new 
(or any other AI, including the option to use all AIs,
which is nice to compare them).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11368 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-07-05 22:37:57 +00:00
hikerstk
92538784b1 Fixed compiler warnings.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11364 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-07-04 01:38:32 +00:00
wardje
7b5d9e50a4 Fix two compiler warnings
* cutscene: comparison between unsigned and signed int
 * graph: simplify the comparison being made


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11361 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-07-02 19:11:12 +00:00
auria
4cb8ba7e50 Start work to support moving sound emitters. Doesn't quite work yet, don't know why' :(
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11357 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-06-30 19:15:12 +00:00
auria
1574ff472d Add specifying SFX rolloff type
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11356 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-06-30 18:49:35 +00:00
auria
c77be89a27 Improve error message when a driveline is missing
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11354 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-06-30 15:04:05 +00:00
auria
137600a5f0 Add the capacity to show subtitles in cutscenes
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11334 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-06-24 17:14:34 +00:00
auria
8d0273ced0 Allow cutscenes to have no music, a few minor other fixes in animation
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11315 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-06-17 00:13:33 +00:00
auria
9dd3bb9468 Fix : objects like the subsea seagul would be animated even when animations were turned off
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11314 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-06-17 00:05:32 +00:00
auria
aced31cbfa Add support for playing sounds at given points during the cutscene
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11310 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-06-16 23:35:51 +00:00
auria
cff2dd75bc A few audio adjustments for intro cutscene, and now play the scene when playing on the story mode button (sorry story mode will be unavailable for a little while, but you can comment out the sdebugging code that launches the intro)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11306 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-06-16 19:41:21 +00:00
auria
dae00f0828 Add first version on intro cutscene. Still incomplete but goes somewhere :) Ask me for the menu patch if you want to look at it
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11276 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-06-05 00:27:34 +00:00
auria
b1a24a78a9 More work on cutscenes
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11273 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-06-03 00:08:18 +00:00
hikerstk
02d1141bb7 Added class to show an arbitrary 3d curve in a race, and used this class
to display the curve of a cannon (when using --track-debug).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11235 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-05-14 22:26:41 +00:00
hikerstk
fb249f43bf Allowed to enable smooth-normals per track, and added this flag as an
example to lighthouse track. Note atm both needs to be set: smooth-normals
in the track.xml file and in stk_config. 


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11217 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-05-09 22:57:51 +00:00
hikerstk
5963f31079 Removed physics.hpp #include from world.hpp.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11213 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-05-08 07:07:15 +00:00
auria
95a8ba37e0 Make animated textures work with LOD
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11186 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-05-06 01:13:03 +00:00
auria
157081edf2 Add fog support to water shader
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11184 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-05-04 01:33:13 +00:00
hikerstk
15ad3f845d Enable cannons to be used in reverse mode.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11177 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-04-29 23:08:50 +00:00
hikerstk
02dc97a021 First proper working version of cannon.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11168 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-04-26 22:17:46 +00:00
auria
b3f6177306 Ticket 515 : add debug code to have a better diagnostic if this happens again
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11147 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-04-24 20:18:31 +00:00
hikerstk
5eafaaa918 Added support for checklines to be specified by two 3d points
instead of 2d points and the minimum height.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11125 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-04-18 22:07:45 +00:00
hikerstk
d0fb8aa78a A first version of the cannon that uses linear interpolation for the
bezier curves to allow smooth (i.e. constant speed) travel along
the curve.
This is WIP. Known bug: the kart jumps at the beginning and
end of the cannon animation.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11122 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-04-18 13:14:18 +00:00
hikerstk
317ff370cb 1) Control the time for an IPO animation in AnimationBase
instead of individually on each IPO (besides removing
   redundancy it keeps the IPOs in synch, since it is now
   guaranteed that they cycle all at the same time).
2) Started to add length computations for IPOs, but this
   code is not yet used.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11082 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-04-04 00:48:05 +00:00
hikerstk
fcb8aaf9c6 Fixed crash when using --check-debug: when determining the checkline
requirements, no karts are created yet, so printing the kart id
causes a crash.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11079 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-04-03 22:27:11 +00:00
hikerstk
2f92fefffd Fixed spelling problem.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11076 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-04-03 01:46:54 +00:00
hikerstk
eca5b3e570 Refactored handling of kart animations: instead of
using a fixed object in the kart, now each animation
(rescue, explosion, canon) has its own object and 
implementation using a common interface. This
simplifies AbstractKartInterface, and makes it
easier to add new functionailty. 
Instead of using: kart->rescue(...),  or kart->explode(...)
you use new ExplosionAnimation(kart, ...) etc. Memory
handling is done by the object (and abstract kart).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11070 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-04-01 22:57:41 +00:00
auria
ea3d5ca9b5 Updated Xcode project, plus fix quite a few issues found by Clang (Xcode now uses clang by default) - some of them genuine nasty bugs, great
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11029 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-03-27 22:04:44 +00:00
hikerstk
53b3c78598 1) Added first version of 'cannon' (flying the kart to a specific
location) support. ATM only linear interpolation of the position
   is used (i.e. no rotation).
2) To be consistend renamed 'forceRescue' to 'rescue', 
   'handleExplosion' to 'explode' (and added shootTo for the canon).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11021 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-03-25 23:16:53 +00:00
auria
8dcc237c28 Fix tons of warnings when building with Mingw. Yes I know I did a few changes in bullet. I don't care, the warnings were too annoying
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11002 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-03-20 01:51:28 +00:00
hikerstk
ebbc1a71d8 Introduced an 'abstract kart' class, which is used to
de-couple kart implementation and its interface. This
significantly reduces compile time when changing kart.hpp,
but is at this stage still work in progress.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10997 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-03-19 20:21:11 +00:00
auria
f08f3b76fd Apply patch by Wardje to hide the reverse checkbox for battle mode, thanks
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10990 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-03-17 20:31:55 +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
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
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
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
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
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
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
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
mcmic
01458892f0 Now reversing check structures order.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/reverse_mode@10824 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-02-08 12:48:07 +00:00
hikerstk
7bdcb9d681 Updated comment.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/reverse_mode@10822 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-02-07 05:16:05 +00:00
hikerstk
92ef262bb0 Removed reversal of quads, instead fixed handling of the data structures
that depend on the orientation to properly handle reverse tracks.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/reverse_mode@10821 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-02-07 05:15:19 +00:00
hikerstk
3659b14667 Redone 'distance from start' calculation to use the proper graph structure
(and not to assume that the quads/graph nodes will be added in a specific
order, i.e. in the order in which they are connected).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/reverse_mode@10819 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-02-07 03:10:43 +00:00
auria
da25bc6105 Fix entering garage in a cleaner way
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10817 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-02-07 01:25:56 +00:00
hikerstk
b5bb733e19 Make the karts start just ahead of the starting line in reverse mode.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/reverse_mode@10810 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-02-05 22:33:17 +00:00
hikerstk
80ec893758 Use singleton-like constructs instead of static
pointer to quad set etc.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/reverse_mode@10809 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-02-05 22:24:20 +00:00
auria
65b4eed110 Implement going in the garage to change kart
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10807 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-02-05 19:32:17 +00:00
auria
7711bab285 Add the necessary code to trigger location-specific action; for now there is a placeholder in the location of the overworld garage
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10803 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-02-05 01:32:35 +00:00
mcmic
d81cc54fa8 Implementation of reversed track.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/reverse_mode@10799 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-02-03 23:18:14 +00:00
auria
27360fbe93 Fix leak by introducing code to free meshes that are not associated to any scene node
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10774 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-01-31 02:24:10 +00:00
auria
b950d4a7bc Work around crashes when visting overworld twice. However I'm pretty sure this 'fix' causes a leak
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10773 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-01-31 01:23:50 +00:00
auria
19dd91da8f All very minor changes
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10772 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-01-31 01:17:39 +00:00
hikerstk
a993cebca0 Applied first part of MCMic's patch to allow driving a track in reverse.
It adds a flag to the track.xml files, a (currently unnamed) checkbox
in the track selection screen, but doesn't do any actualy reversing (see
forum http://forum.freegamedev.net/viewtopic.php?f=18&t=2661 for
details).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/reverse_mode@10767 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-01-30 23:35:46 +00:00
auria
3e3c676db0 Clean up text nodes
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10759 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-01-30 01:59:33 +00:00
auria
e346b44ba1 Silence many of the annoying warnings that are printed when loading the overworld
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10757 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-01-30 00:54:13 +00:00
auria
973a7cd4bb Use higher-res font for the digits in the overworld
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10756 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-01-30 00:27:53 +00:00
auria
91cdec00a6 Correct crashes in overworld
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10749 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-01-29 21:28:31 +00:00
auria
57085843ae Improve placement of numbers in overworld
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10724 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-01-26 01:52:55 +00:00
auria
5bdca7e90f Improve display of requirements on force fields
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10723 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-01-26 01:13:45 +00:00
auria
c3e3c38817 Show required points near each force field. Feedback welcome, I'm somewhat dubious
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10697 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-01-20 02:21:19 +00:00
auria
792aac1e68 Improve where rescue will drop you in overworld
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10696 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-01-20 01:14:15 +00:00
auria
18ead10df9 Add support for tangent meshes when converting to bullet
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10693 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-01-20 00:19:10 +00:00
auria
9f69dad8a3 better error handling
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10680 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-01-15 22:07:05 +00:00
auria
d6221dae92 Use new normal map shader for overworld columns. Remove 2-UV-layer normal map feature, irrlicht just doesn't support it
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10675 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-01-15 21:52:07 +00:00
auria
d7eff73234 Different display for locked challenges; link toghether force field and challenge
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10667 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-01-15 01:45:40 +00:00
auria
55b18bdbba Show summary of challenge when approaching orb
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10664 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-01-14 19:16:25 +00:00
auria
25716c2b5b Differenciate between locked and unlocked challenges on minimap
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10660 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-01-14 03:04:10 +00:00
auria
26b9d63103 Start showing location of challenges on minimap. Atm state (locked on not) is not shown
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10658 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-01-12 23:35:57 +00:00
auria
de3b03cc80 Use right sound when crossing force field
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10647 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-01-11 02:54:55 +00:00
auria
72b409344e Start work to have trigger items, and for now use them to play a sound when crossing the force fields in overworld. This is WIP.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10646 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-01-11 02:47:06 +00:00
hikerstk
a25fb4a71c Replaced core::stringc with std::string.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10636 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-01-10 22:45:57 +00:00
auria
2c9db720c0 Add initial way to make some bubbles traversable and others solid. More tweaking will be necessary
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10630 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-01-10 02:04:46 +00:00
auria
6d7d52f993 Don't build the bvh twice
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10613 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-01-08 23:50:22 +00:00
auria
06d9359fa6 Add experimental code to load bullet mesh BVH from serialized file instead of calculating it on the fly, making it quite a bit faster
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10583 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-01-07 22:06:40 +00:00
hikerstk
87865b7dec Removed unnecessary include of kart.hpp from world.hpp.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10572 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-01-04 05:32:19 +00:00
auria
ee6d1b3b64 Add level of detail to overworld pedestral, they were using a LOT of polygons
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10519 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-12-30 20:32:09 +00:00
auria
3b0a88ae30 Update overworld : challenge orbs now contain the screenshot of the actual challenge they lead to
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10502 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-12-27 21:59:11 +00:00
auria
5322baa0f4 Add a fallback for when splatting is not available in overworld
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10468 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-12-21 21:19:04 +00:00
auria
92b077a250 Create new world type for overworld for customized behavior. Hide overworld in track seelciton screen. Launch overworld when clicking on story mode button.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10443 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-12-19 02:26:07 +00:00
auria
683b0e1903 Improve Lambert shading in splatting : actually use the sun direction
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10438 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-12-18 02:39:05 +00:00
auria
184da58d31 Use blender's new support for unicode to properly write Samuncle's name
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10428 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-12-15 19:28:23 +00:00
auria
66c41037ed Cleanup loading animated LOD nodes
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10399 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-12-10 21:49:24 +00:00
auria
92eb0ebd2a Ran a small bash script to remove all of those annoying strings. The only thing they gave us were the need to rebuild after committing
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10363 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-12-06 18:43:36 +00:00
mbjornstk
c85ec85136 Add include for std::sort, it needs algorithm.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10329 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-12-04 02:13:30 +00:00
mbjornstk
3e82bd7eec Add include for string.
The .cpp complains about sort... still looking for a fix for that.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10328 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-12-04 02:09:51 +00:00
auria
fed42fc062 Fix issue in new lod code
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10326 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-12-04 01:37:21 +00:00
auria
acec3729cd Complete animating LOD objects
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10323 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-12-04 01:29:27 +00:00
auria
6e152a22aa Animating LOD objects with IPO is now almost closer to work
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10322 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-12-04 01:25:09 +00:00
auria
3c4c88e57f Refactor LOD loading to make it easier to make animated LOD objects next
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10321 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-12-04 00:51:20 +00:00
hikerstk
2c33ed75ed Merged the physics branch back to trunk. There should be no change at
this stage for users.
The physics branch added a few new stability options (which are disabled
by default), fixed bug and reproducing history files when using physics
replay, using --log=file command line option. See log on the physics
branch for full details.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10292 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-12-01 01:14:10 +00:00
auria
bf02f9b788 Fix potential crash
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10265 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-11-27 02:40:46 +00:00
hikerstk
06a96ed356 Accept heading angle in degree instead of radians, which is easier
(considering that the special start-tag is mostly used when manually debugging).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/physics@10247 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-11-23 20:52:43 +00:00
hikerstk
04087dd0b1 Simplified function by removing duplicated code.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10105 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-11-04 10:57:30 +00:00
hikerstk
227bcdd773 When installing addons the karts/tracks are now not all completely
reloaded, only the new addon is loaded. This should also fix a
(minor) memory leak when a kart model is updated (textures and
mesh weren't freed).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10103 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-11-04 05:32:31 +00:00
hikerstk
1088fd35c8 Use a reference as return value.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10102 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-11-04 05:30:27 +00:00
hikerstk
da80f39ed4 Removed patched 10044 to 10047, since there is a much
easier patch to fix #458.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10050 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-27 01:04:16 +00:00
auria
9251f75064 Remove silly part of my previous commit
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10047 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-26 15:39:01 +00:00
auria
658cd9c401 Attempt to work with irrlicht mesh cache stuff
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10046 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-26 15:36:31 +00:00
auria
66ad858aa8 Attempt to fix desctructor of TrackObject + fix issue with texture retention
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10045 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-26 15:27:56 +00:00
auria
953e8cf1ef Almost fix Nolok wheel issue in 3 strikes mode. Note, my fix is not complete and will result in segfaults in 3 strikes mode
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10044 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-26 15:18:46 +00:00
auria
d04bc58413 Quite a bit of work on Doxygen docs to contain an overview of the STK source code base
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10039 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-25 17:46:14 +00:00
hikerstk
b9e4325560 Added 'early targeting': the rubber ball will align its relative position
to the center of the track according to the relative distance of its target
(more precisely: it will move the interpolation control points). This
results in the ball being better align when it switches to aim-directly-at-
target mode, meaning that the target-distance can be reduced, hopefully
reducing the frequency with which tunneling happens.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10016 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-18 20:14:03 +00:00
hikerstk
23af52985f Removed unnecessary parameters kart and track from
TrackSector::update.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9997 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-16 12:29:37 +00:00
hikerstk
d9ada38dcf Removed unused code.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9995 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-16 11:36:41 +00:00
hikerstk
9767765cb9 Removed exception throwing from MusicInformation constructor, and
use a simple static function to create a MusicInformation object.
This simplifies handling of errors in calling functions, and
appears to have fixed a (minor) memory leak as well.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9973 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-13 11:15:53 +00:00
hikerstk
5caee0a9fc Removed loading of music files from a track directory if the .music
files are not specified in the track.xml file. There is no need to
support this functionality (track directories should only contain
music that is actually used by the track), and it caused duplicated
entries on case-insensitive file systems (e.g. on windows it
resulted in one entry for west.music, and one for West.music).
While the latter had no big disadvantage (it was cleared correctly)
it is unnecessary and might lead to problems later.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9971 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-13 06:20:29 +00:00
hikerstk
9abcc41d52 Fixed memory leak each time a track with graphical surface effect
(water) is being used.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9950 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-06 22:22:29 +00:00
auria
cd8162c30f Disabling GFX should not result in ghost track objects
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9861 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-18 17:50:20 +00:00
hikerstk
6b19b7c49e Fixing #419: on restart of a 3SB tires previously thrown
on the track are now removed.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9850 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-15 12:46:03 +00:00
hikerstk
eeaf379e6b Minor cosmetic changes.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9848 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-15 12:42:23 +00:00
hikerstk
7abdefca39 Made AABB of track higher to allow projectiles to fly
higher than the actual height of the track. This fixes
#412 (cakes immediately exploding in a basically flat
track).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9837 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-14 22:48:57 +00:00
auria
f5b627bccd Fixed crash in battle mode
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9813 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-12 23:39:59 +00:00
auria
9878f12039 Improve and simplify improved rescue code; also remove the CHEATER message I tried to add because it had some glitches
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9810 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-12 00:57:14 +00:00
auria
1f19560a29 More tweaks to improved rescue, plus as a bonus use the additional info we now have to let users know when they missed a checkline
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9809 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-12 00:28:46 +00:00
auria
d8a5d710e9 Fixed minor issue in previous commit
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9808 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-12 00:07:41 +00:00
auria
2311b11b90 Added new smart rescue
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9807 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-11 23:59:49 +00:00
auria
ee7b178dce Started adding code to assign a checkline to each quad (currently disabled). See #398
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9805 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-11 19:46:51 +00:00
auria
727f84d7f8 Fixed water creating visible polygons, thanks to Hybrid for the weld tip. Jperg, maybe you can check my memory management makes sense (I think I'm getting the hang of it but I'm still not sure I know what I'm doing)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9797 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-11 15:46:47 +00:00
auria
cd859dcaa5 Fix silly GCC warning
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9787 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-09 00:40:08 +00:00
hikerstk
5f615c61e6 Added information about which successor of a graph node to
use in order to reach a certain target graph node.
This is now used by the rubber ball to follow karts even
if they are on an alternatice way/shortcut.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9773 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-06 06:56:00 +00:00
auria
29e09f5231 Fixed the fog=N flag in materials.xml
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9757 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-05 20:11:32 +00:00
auria
aa3ac2849a Improve some logging
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9755 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-05 19:03:35 +00:00
auria
2b2c07d81e React better when missing start positoons on arenas
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9745 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-04 23:37:58 +00:00
auria
026e7e67ce Add sanity checks to getStartTransform to avoid going out of array bounds
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9744 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-04 23:33:14 +00:00
auria
950ff58217 Make STK ready to handle lightmaps when creating physics
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9735 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-04 17:50:46 +00:00
auria
cb47023202 Added limited form of LOD on particle emitters
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9718 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-03 01:58:39 +00:00
hikerstk
cb08a03d7d Removed compiler warnings.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9710 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-02 01:34:08 +00:00
auria
03178d9e75 Kinda fixed crash I introduced in 3 strikes, but the current code leaks. Will need to ask Joerg how irrlicht memory management works...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9704 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-01 23:47:15 +00:00
auria
3e7aeaf71f HAving some fun : you will now physically lose a tire in 3-strikes mode. Watch out for tires all over the place as the battle gets fierce ;)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9703 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-01 20:09:26 +00:00
hikerstk
2ea50e99fd Fixed compiler warning.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9695 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-01 00:59:41 +00:00
auria
74956e454f Introduce new LOD
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9663 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-08-30 19:10:17 +00:00
auria
f45f06b994 Undo a few bogus optimisations to the B3D exporter *blush*
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9447 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-08-07 20:20:12 +00:00
auria
847e25fa0a Disable sound emitters in multiplayer mode as OpenAL supports a single listener so we make sounds non-positional in multiplayer and the result is bad for sound emitters that are meant to be localized
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9439 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-08-07 01:23:07 +00:00
auria
a44adb6e6c Allow per-track sounds for emitters
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9431 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-08-06 20:37:54 +00:00
auria
a4b954f2ea Add some support for sound emitters on tracks
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9430 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-08-06 19:51:12 +00:00
hikerstk
6e5086f9b8 More refactoring: duplicated code handling track sectors and
distance along track is now moved into a separate class TrackSector
and used in linear_world and rubber ball.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9422 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-08-04 23:33:41 +00:00
hikerstk
428ed5a07b Made QuadGraph use a singleton-like behaviour. It is still created with
explicit calls to QuadGraph::create(...), and the get() function can
return NULL (in case of a race mode that does not use a quad graph).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9421 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-08-04 23:02:58 +00:00
hikerstk
48cf9e0515 Updated computation of 'distance from start' for the
quad graph: now the distance of the node is the maximum
of all paths leading to it, which should solve the 
problems with the cube (#354).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9416 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-08-03 06:21:26 +00:00
hikerstk
e105a33b66 Replaced QuadGraph::getPredecessor function with (faster) function
GraphNode::getPredecessor().


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9415 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-08-03 02:20:29 +00:00
hikerstk
60c0aa5616 Applied patch for #342 (and added some comments and some
minor cosmetic changes).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9366 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-07-26 02:24:49 +00:00
auria
2f571eec10 Allow unicode to be used in track makers names and fix samuncle's name
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9360 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-07-26 00:42:01 +00:00
hikerstk
994ea9578a Added missing initialisation of m_material. This should fix #299
(crash happened most likely if a bowling ball exploded before
it was updated once - in this case m_material was not set).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9312 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-07-21 00:02:06 +00:00
hikerstk
1138c14595 Fixed incorrect unsigned (since -1 is used to indicate 'not set').
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9170 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-07-06 00:53:59 +00:00
hikerstk
4b39be6f83 Removed two unnecessary includes.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9167 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-07-05 06:05:08 +00:00
hikerstk
b24f53a3eb Added support for storing a predecessor for each node in the
quad graph (needed for rescueing). 


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9165 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-07-05 01:35:45 +00:00
hikerstk
e4905f48bd Added NoCopy.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9158 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-07-05 00:15:09 +00:00
hikerstk
da8ec214ce Added a very first version of a swatter (or inflatable hammer).
Details are in the wiki (http://supertuxkart.sourceforge.net/Items).
Note that the model is _obviously_ a placeholder, and I  used
the icon for the bomb (which isn't used in game atm) for the
swatter. I hope someone can provide a better model and icon.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9011 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-06-22 12:27:48 +00:00
auria
7b60ad1a9e Better error checking: refuse to continue when no drivelines are found but we're playing with AIs, we can only handle lack of drivelines when there is 1 kart
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8955 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-06-18 22:43:00 +00:00
auria
ccecbf0ba3 Allow playing without driveline when no AI akrt is used
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8954 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-06-18 22:36:14 +00:00
hikerstk
058a2ca870 Fixed #272: the list of tracks was not cleared before reloading
all track files, resulting in more and more tracks accumulating
in the track list each time a track is (un)installed.
In case of uninstalling a track, the track would remain in the
list, and if this track is selected, STK crashed.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8908 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-06-13 11:22:45 +00:00
auria
561e40a9ed No questiuon mark for minimap when RTT is down
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8881 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-06-12 00:04:53 +00:00
auria
2a482d7577 Remove logging
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8871 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-06-10 01:15:39 +00:00
auria
23711c7174 Try to add support for having dsome materials ignore fog. Works for lighthouse light, but not for lighthouse sky
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8866 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-06-09 01:29:25 +00:00
mbjornstk
62e60b94fc Add "#include <string>" so it stops complaining about "return NULL".
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8832 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-06-05 03:08:38 +00:00
auria
d24d70a2f8 Avoid crashing when checklines are incorrect
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8818 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-06-04 23:31:31 +00:00
hikerstk
9bc617bede Removed unused variable, added some documentation.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8758 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-29 23:04:00 +00:00
auria
6e4cee9341 Includes cleanup; especially avoid including in headers, creating implicit dependencies and horrible chains of recursive includes. Avoid iostream when possible because this header is not small
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8749 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-29 19:52:24 +00:00
hikerstk
a8008d38d7 First try to fix #253 - it might have some performance
impact since now all quads are checked if a kart is off road.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8716 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-26 06:02:10 +00:00
auria
8a00579b2a Simplify code by using PtrVector instead of vector + manual delete
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8688 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-24 00:04:43 +00:00
auria
f83492ef3d Fixed uninstalled tracks remaining in the track list
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8687 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-23 23:56:52 +00:00
auria
7082558a6a Fixed rare shutdown crash
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8686 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-23 23:55:50 +00:00
auria
97506bba43 Revert r8647, seems no more necessary now that I updated irrlicht
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8671 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-22 22:25:17 +00:00
auria
9e4b17d76f Fixed potential read of unset variable
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8666 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-22 20:39:31 +00:00
auria
4157f7dc10 More work on 'thou shalt not include irrlicht.h everywhere carelessly'
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8665 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-22 19:45:17 +00:00
auria
b31cca3ccd Fixed warnings with Visual studio
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8664 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-22 19:30:24 +00:00
auria
357af5a27d More work on 'thou shalt not include irrlicht.h everywhere carelessly'
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8663 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-22 19:29:52 +00:00
auria
a37008d014 More work on 'thou shalt not include irrlicht.h everywhere carelessly', plus add debug checks to track.hpp in a desperate attempt to make STK Arthur_D-proof
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8661 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-22 18:31:25 +00:00
auria
d501753ef2 Clean up irrlicht includes; avoiding including the huge irrlicht.h when we only need one specific class, especially in header files; use forwards when possible
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8660 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-22 18:03:28 +00:00
auria
47d03595de Make minimap less transparent
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8647 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-21 00:42:19 +00:00
auria
b77f9fc9e7 Fix incorrect fog flag in recent commit
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8639 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-19 00:25:48 +00:00
auria
0a2c9fc318 Simplify error message
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8637 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-18 01:19:58 +00:00
auria
d8abe4604d Fix glitch in previous commit
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8634 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-18 01:05:33 +00:00
auria
0a41c5fff8 Fix fog wrt LOD nodes
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8633 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-18 01:00:26 +00:00
auria
11e925f867 Fix musical note hiccup bug by preparing track music in 2 phases
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8551 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-11 01:47:27 +00:00
hikerstk
5e61e050a8 Simplified physics track mesh handling.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8515 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-04 21:41:32 +00:00
hikerstk
788d8b08e2 Fixed more texture related memory leaks.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8506 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-02 21:57:39 +00:00
auria
532053d319 Fix some RTT-related leaks
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8503 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-02 01:39:23 +00:00
hikerstk
c216d2b35e Fixed more texture memory leaks.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8498 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-01 22:38:23 +00:00
auria
0c788e14a4 Hopefully fixed crash
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8483 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-04-29 20:12:03 +00:00
hikerstk
fd78e796d2 Changed interface to sky box and sky cube (so that textures can be
tracked and released). Fixed memory leak in sky domes/boxes and
mini map.



git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8481 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-04-29 00:29:34 +00:00
hikerstk
fb4fb58ffd Added memory debug output for texture cache usage.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8479 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-04-28 12:48:28 +00:00
hikerstk
afad571929 Added convenience functions to check for log messages of various
types.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8477 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-04-28 04:25:58 +00:00
hikerstk
92b0d334de Made the m_old_mesh_buffer a member of the class instead of a global
variable.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8476 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-04-27 23:08:35 +00:00
hikerstk
f70d077ba0 Fixed mesh leaks when track objects are used.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8475 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-04-27 22:48:36 +00:00
hikerstk
b134eca433 Fixed memory corruption on cleanup when water nodes were used.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8474 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-04-27 22:46:48 +00:00
hikerstk
4b39b151cc In debug mode with verbose memory output the names of all leaked buffers
is now printed (my apologies for using a global array, I want to reduce
compile time atm :)  , will fix this later).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8473 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-04-27 22:02:52 +00:00
hikerstk
74f3baec20 Started to add bit-patterns to be used with verbosity setting so that
only certain debug messages can be enabled.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8472 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-04-27 12:47:47 +00:00
hikerstk
559edb6178 Renamed Track::m_all_meshes to m_all_cached_meshes, IrrDriver::removeMesh
to IrrDriver::removeFromCache to better describe their functions.
Started to add proper freeing of cached track meshes.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8471 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-04-27 11:47:33 +00:00
hikerstk
34af681156 Fixed memory leak.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8381 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-04-19 12:14:43 +00:00
hikerstk
b807a3e608 Fixed compiler warning.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8379 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-04-19 03:56:50 +00:00
auria
b17307e4de improve LOD, at samuncle's request
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8374 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-04-18 17:58:11 +00:00
hikerstk
7c9d1a3e8b Fixed compiler warnings.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8135 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-31 01:26:17 +00:00
auria
2e3a953004 Fixed crash when freeing LOD nodes
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8104 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-29 21:50:13 +00:00
auria
01154fd6b4 Simplified attachModel method, it was confusing that it has a out-pointer parameter yet returns void
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7972 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-17 19:08:01 +00:00
hikerstk
1fed8b10fb Fixed material settings in water scene nodes (ticket 104).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7952 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-16 21:03:23 +00:00
auria
e9c7a30b43 Fixed material properties on water
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7949 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-16 19:11:42 +00:00
auria
5d56ff3778 Fixed crash by moving scene_node->setName AFTER checking that scene_node is not null
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7947 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-16 15:39:46 +00:00
auria
5a9a09a59e Fixed warnings (one of which caught a real code problem)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7946 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-16 15:33:49 +00:00
auria
df817782b3 Add getter for fog in Track; it's not used atm but surely it can come in useful... (I added it when investigating bug 8)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7878 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-14 00:45:47 +00:00
hikerstk
400f5edc19 Removed warning messages printed to stderr if a track
object is not in the track directory (but in the
shared model directory).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7860 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-08 23:53:07 +00:00
auria
f00af38fc7 Make LOD objects visible to the physics
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7818 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-05 20:50:36 +00:00
auria
4c4dd50e13 Simplify LOD handling, based on suggestions by Samuncle (note that the simplification is on the blender side, the C++ code is more complex)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7815 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-05 20:13:40 +00:00
auria
c08b9b3a7f Add the basic infrastructure to support level-of-detail. Note that at this time the implementation is not the most efficient one can think of so let's not use this widely just yet
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7805 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-04 02:11:39 +00:00
auria
970fb985d3 Fooling around : added simple support for normal maps
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7802 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-04 00:58:00 +00:00
auria
2293fdbe80 Make snow follow kart, this should reduce the needed CPU and GPU demand to render snow. Note that the current effect is not perfect, you can 'outrun' snow
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7768 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-02-28 01:49:35 +00:00
auria
f7f01c144a Stop snowing inside tunnels
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7767 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-02-28 00:59:02 +00:00
auria
0b1702502f Better error handling + somewhat fix rain in lighthouse (for some reason it only works in multiplayer mode?)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7733 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-02-18 15:56:11 +00:00
hikerstk
cc155932a0 Added support to mark certain drivelines so that they are ignored
by the AI.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7720 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-02-17 07:36:41 +00:00
auria
482cfbcb2a Don't complain about unknown XML nodes when disabling particles
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7715 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-02-16 20:47:48 +00:00
hikerstk
858091d26f Fixed compiler warning.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7711 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-02-16 06:02:30 +00:00
hikerstk
66ff37eb80 Use normal particle terrain to make water splash; proper location
for water splashes is now being detected. Note: existing tracks
need to be updated.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7706 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-02-15 21:12:24 +00:00
hikerstk
17c81d8c5c Added warning message is a item projected on the terrain does not
hit the terrain. In this case the original position is kept.
Additionally the raycast starts from a slightly higher position
to allow for some floating point errors in the projection.
Fixe bug #63 (floating powerups).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7704 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-02-15 09:10:45 +00:00
hikerstk
ccc8ada054 Fixed ignoring of materials.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7699 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-02-13 23:14:23 +00:00
hikerstk
78eb5a09eb Replaced raycast used in detecting the terrain is on: instead of raycast
against the dynamics world, it's now using a raycast against the triangle
mesh only (i.e. a single collision body instead of the whole world).
Besides being faster, this will allow raycasts with material detection
against the 'gfx' (surface) mesh.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7694 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-02-13 00:23:23 +00:00
hikerstk
e78d2d8887 Made lap line consistently red (code to get a checkered lap line
is still in but commented out - it looks quite for in the shorter
tracks imho).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7678 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-02-11 10:43:20 +00:00
hikerstk
4cc6936d8a Added lap line (not fully tuned yet).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7672 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-02-10 21:33:26 +00:00
hikerstk
240d39636c Added support for 'graphical' meshes - atm mostly for water surfaces
(and below water meshes), so that water splashes can be displayed at
the proper position (not used atm).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7665 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-02-09 21:56:44 +00:00
auria
238f572c36 Say hello to the new rain, one that is much, much less CPU and GPU intensive. Joerg: sorry, you will need to modify the exporter again, since now we need support for some built-in weather types, which use a different XML syntax than particles
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7642 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-02-07 02:45:32 +00:00
auria
896e2664fc Fixed track names not being translated on live language switch
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7633 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-02-06 02:59:19 +00:00
hikerstk
f392d5f6fe Support for weather effects stored in a separate xml node (track format 5).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7617 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-02-05 02:51:56 +00:00
hikerstk
967a9223fb Added support for animated textures on water scene nodes (the track
exporter still needs support for this).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7614 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-02-04 13:38:38 +00:00
hikerstk
4d8b8e5dea Renamed ptr_vector to PtrVector so that is follows
our naming convention, also changed contentsVector
to m_contents_vector, and removed unused add method
(which is using an iterator, which would not work
when using aligned_arrays on windows anyway).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7602 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-02-03 22:20:53 +00:00
hikerstk
95a7e5c125 Added smoothing of normals for raycast wheels, but disabled for now (since
the normals of some tracks need to be fixed).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7600 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-02-03 21:06:50 +00:00
auria
107f479e87 Don't use particles when GFX are off
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7598 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-02-03 03:10:44 +00:00
auria
aa9068070d Demonstrating the new particles : fire effect in crecent crossing
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7597 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-02-03 03:02:50 +00:00
hikerstk
5931ddbe56 Hopefully fixed swapped axis for particle emitters.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7595 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-02-03 02:46:25 +00:00
hikerstk
4ab6331ff4 Update to bullet-2.77.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7579 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-02-02 22:04:13 +00:00
auria
0e58903fa8 Allow custom particle effects to be found in the same directory as the current track
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7570 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-31 02:46:18 +00:00
auria
ab5c3b43d7 Add support for full particle emitters anywhere in track
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7568 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-31 02:27:19 +00:00
auria
84fcc8f1b0 Prevent some strings from being flipped twice in fribidi
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7509 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-23 23:47:39 +00:00
mbjornstk
015443f582 Set props as per SVN-CONFIG for .[ch]pp, AKA SVN props clean up day. :)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7493 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-21 01:54:38 +00:00
mbjornstk
634ba9fc94 Fix typo, it should say weather.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7411 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-14 03:40:26 +00:00
auria
7ae7fb5dfd Added GFX level slider in options + spell wheather correctly in options...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7410 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-14 03:10:04 +00:00
auria
4396695920 Add a new config option for wheather effects (notm accessible in GUI yet)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7409 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-14 02:52:22 +00:00
auria
404bb88703 It now rains in lighthouse :)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7406 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-14 02:27:14 +00:00
auria
f7bcc2a6a5 Add snow flakes to Snow Mountain. Still to be improved
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7403 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-14 01:31:15 +00:00
auria
03af38c9b0 Work on water splash effect a bit; only lighthouse was changed for now, we can change other tracks when Joerg modified the track exported. The effect can still be improved of course, I mostly did the basic code aspect
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7375 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-12 03:01:57 +00:00
auria
6ad54434e0 Correct a few FIXMEs + minor style improvements
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7227 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-03 18:23:52 +00:00
mbjornstk
76ee2036d8 Update comment about items' fog, remove some lighting flags that just hide
wrong export options (resave with normals to fix) and make the items look 2d.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7222 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-03 04:39:18 +00:00
hikerstk
1c90d679e2 Removed unused animation_manager (track object manager takes care
of animations).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7040 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-12-16 21:15:59 +00:00
hikerstk
f5662118c6 Made addon manager compiler with windows (though not working yet).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7039 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-12-16 21:07:14 +00:00
hikerstk
7de2c4de41 Replaced unicode characters in comments with normal ASCII characters.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7028 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-12-15 22:46:06 +00:00
hikerstk
e23664c5bb Fixed line endings.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7027 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-12-15 22:31:53 +00:00
auria
347d73cfd1 Fixed more memory leaks
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6965 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-12-12 02:01:23 +00:00
auria
ad169e3191 Skyboxes and skydomes should be fog-free
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6954 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-12-11 21:52:14 +00:00
hikerstk
c4ba313e19 Removed debug print.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6864 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-12-05 22:30:24 +00:00
hikerstk
2c15bd265f 1) Made TrackObject use an ISceneNode instead of an IAnimatedMeshSceneNode,
allowing us to use the same base class for billboard.
2) Fixed billboard implementation: billboards are now properly removed,
   and can also be IPO animated.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6861 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-12-05 20:55:09 +00:00
hikerstk
c6607f4dbc Fixed lap counting: sometimes karts would get a 'distance along track'
after crossing the lap counting line that's larger than 2. 


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6821 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-11-30 23:34:02 +00:00
hikerstk
24d8d9ee9e Fixed 3122615: acid lake in xr591 did not trigger rescue (the lake mesh
had a rotation applied. Due to this bug an incorrect rotation was applied
to the mesh, resulting in the wrong bullet mesh, so that the collision 
was not detected).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6818 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-11-30 09:43:29 +00:00
auria
afce1534b9 Fixed warning
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6773 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-11-29 17:01:25 +00:00
hikerstk
b4533f0798 Removed debug check line visualisation correctly.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6770 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-11-29 11:47:15 +00:00
hikerstk
25b611a8d3 Adjust color of check lines according to state: active ones are
light red, inactive ones white-grey.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6765 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-11-29 05:26:45 +00:00
hikerstk
87b98b8fa1 Added visual debugging to check lines.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6747 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-11-28 22:08:02 +00:00
hikerstk
03ff921883 Fixed memory leak (check_manager and therefore all check structures
were not freed).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6746 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-11-28 22:07:05 +00:00