Commit Graph

8435 Commits

Author SHA1 Message Date
wardje
361d2362fa Fix parentheses warning and an outdated comment
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11478 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-08-06 16:54:36 +00:00
auria
39e29c3c2e On Linux, with regards to feature 'remember window location', make sure to get the coordinate of the window including borders, not coordinates of the contents as was done before, which resulted in the window going down a bit on every launch
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11476 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-08-06 01:39:42 +00:00
hikerstk
d5284adf89 Added assert to catch a nan problem (reported in mailing list).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11475 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-08-06 01:20:55 +00:00
hikerstk
22ee9171e6 Minor bug fix (though it's in commented out code anyway).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11474 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-08-06 01:18:34 +00:00
auria
d9724c3690 Fix quite afew glitches in into cutscene part 2
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11472 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-08-06 01:00:23 +00:00
hikerstk
2562beae86 Adding asserts to find a NAN problem.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11471 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-08-06 00:45:52 +00:00
hikerstk
13175b8566 1) Changed the minimum turn radius when skidding to be 20% instead
of 40%. This allows longer skids in wider turns (e.g. hacienda).
2) Improved skidding decision when sharp turning is required:
   on sharp turn when already skidding, wait till an 'even sharper'
   turn is required, which (usually) means that then the AI is
   nicely aligned with the new track direction when releasing skid,
   which makes nice use of the bonus and the additional rotation.
   If not skidding when sharp turn is required, don't even start
   one.
3) Prevent AI from skidding 'against' track direction (i.e. track
   is turning left, but AI tries to skid right). This happened
   before (e.g. when slightly adjusting steering) and caused
   rapid left/right turns (and skid/stop/skid/stop sequences).
4) Allow some steering in wrong direction when skidding (to allow
   for some incorrect estimations, and to avoid skidding on/off
   sequences when only minor corrections are necessary).
5) If adjusted (i.e. taking the skid steering reduction into account)
   steer fraction when skidding is too high, stop skidding.
6) Re-enabled braking when AI is not aligned with track direction.
7) Improve debug output so that only a state change (skidding to
   non-skidding and vice versa) triggers output (instead of output
   every frame).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11469 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-08-05 23:27:39 +00:00
auria
21c26f5f54 Improvements to intro part 2
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11465 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-08-05 01:19:26 +00:00
mbjornstk
9123435b51 Remove useless executable property from image file.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11464 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-08-05 01:09:20 +00:00
auria
bbf2c6540a Add second part of intro, PRELIMINARY WORK IN PROGRESS VERSION. To switch between intro parts, atm you need to edit main_menu_screen.cpp, see the diff to this file in this commit. There are known issues
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11461 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-08-05 00:21:46 +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
fd6f2aa617 In screenshot title, use local time instead of GMT time
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11457 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-08-01 00:14:19 +00:00
auria
8c9c123986 Fix crash when taking screenshot while in menus
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11456 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-08-01 00:11:55 +00:00
auria
fe03de6851 Only save screenshot on keydown, not on keyup, and also improve date formatting
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11455 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-08-01 00:08:35 +00:00
auria
cc4affabd4 Add date in screenshots. Sorry, GMT time
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11454 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-08-01 00:03:39 +00:00
auria
90b28e86f1 Remove leftover code from my attempts at findind a working key combination
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11453 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-07-31 23:33:01 +00:00
auria
bf18201b30 Add feature to save screenshot. Try Right-Alt + PrintScreen
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11452 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-07-31 23:28:23 +00:00
hikerstk
16cd5fed20 Updated code to properly use the graph (and not just
assume that node n is followed by n1) - though that code
is actually not used.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11451 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-07-31 06:47:05 +00:00
hikerstk
203ae69ce6 Added support in MaxSpeed for an additional engine force
to work while a speed increase is active. This simplifies
existing code (for slipstream, nitro). Additional engine
force is also added for skidding, which should make 
skidding more worthwhile (since usually adjusting the
heading when stop skidding will use up the actual bonus
speed).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11450 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-07-29 23:46:16 +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
1ae417fcb2 Fix pressing on escape multiple times resetting the fadeout in cutscene
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11448 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-07-28 00:29:45 +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
de6cfbdcc1 Resist to a couple crash types
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11446 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-07-27 23:01:51 +00:00
hikerstk
f756c9c981 Split skidding handling into three separate functions:
determineTrackDirection, handleCurve, doSkid (the latter
was already implement, but didn't do anything).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11445 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-07-27 06:34:25 +00:00
hikerstk
50e07355f5 Fixed skidding handling for players: players might
press skid while still turning in the opposite direction
(due to the delay with which the turning reacts). Therefore
skidding is only triggered when steering has nearly reached
full left or right (this code was by accident removed in
a previous commit).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11444 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-07-27 06:31:04 +00:00
wardje
f6689f382c Some coding style changes (mostly comments)
Sorry for the big recompile because of it, had some of these
after some experimenting and it was clouding my svn diff.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11443 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-07-26 21:24:15 +00:00
wardje
f24fa3e0a3 Remove smooth-normals warning
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11442 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-07-26 02:37:23 +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
fb5ae0a566 First version of the new AI that can skid. It's still behaving
quite stupid, but can sometimes compete with the old AI (unless
the new AI is behaving stupid ... as I've said). This is still
disabled by default (and if you want to test it, make sure
to adjust stk_config.xml as well).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11438 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-07-25 23:58:30 +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
wardje
894d17f41d Re-exporting of tracks by ctdabomb - #630
Was needed because of some outdated attributes and the like.
This is the "630.7z" patch from the bug report, simple copying
over of the files. Jungle was left out because it has changed
in the repo since the patch got sent in.

Tracks:

 * Battle Island
 * Shiny Suburbs
 * Bovine Barnyard
 * Fort Magma
 * Hacienda
 * Old Mine
 * Minigolf Mischief
 * Oliver's Math Class
 * Scotland
 * Northern Resort
 * Zen Garden


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11436 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-07-25 01:27:29 +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
hikerstk
76f65ec077 Removed tabs.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11434 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-07-23 23:58:36 +00:00
hikerstk
90402c529d If the window position is saved, make sure it's not negative
(since this indicates an invalid position, and it would appear
like saving the position doesn't work).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11433 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-07-23 23:42:22 +00:00
hikerstk
03c0ceedbc Bugfix (missing :), and removed debug output.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11432 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-07-23 23:09:42 +00:00
auria
aa9588bce7 Somewhat hackish fix for #680
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11431 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-07-23 22:06:10 +00:00
wardje
c7f2e957a4 Fix forgotten variable initialization.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11430 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-07-23 20:33:02 +00:00
wardje
24587a9cff Actually implement #305 - wheel random startangle
Computerfreak97 had a go at this about a year ago, but the
implementation was flawed.

 * Randomization was still being reset later on (`reset()`)
 * Only physics were affected, not graphics

Implement it by randomizing at the start as well as adjusting
`KartModel::update()` so that it not resets the random values.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11429 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-07-23 19:52:24 +00:00
auria
4b9d02cc25 Allow combining lightmaps and normal maps
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11428 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-07-22 21:30:47 +00:00
auria
d585e548fe Add camera angle change to intro cutscene to make it look more dynamic
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11427 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-07-22 20:30:10 +00:00
auria
dfbcea08ad Minor updates to intro cutscene to suppress a couple missing texture warnings
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11425 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-07-22 20:22: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
60aff6dd1b Add other sound
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11420 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-07-22 19:19:59 +00:00
auria
f42e65b792 Add forgotten sound
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11418 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-07-21 19:12:21 +00:00
auria
bca64b728c Update to intro cutscene
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11416 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-07-21 19:02:00 +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
stephenjust
f766785302 Add rating to add-on info dialog.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11412 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-07-20 22:48:37 +00:00
stephenjust
1fd75915a9 Add x64 configs which I've been using to the VC10 project. Need to compile 64-bit dependencies to use. Shouldn't affect normal 32-bit compilation.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11411 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-07-20 22:17:45 +00:00