Commit Graph

1418 Commits

Author SHA1 Message Date
hikerstk
18b7bd7736 Added new race result gui, which is an actual screen now. This is still work in progress
(e.g. atm it's not possible to skip part of the result animations, so for now you have
to wait till the buttons appear before you can continue).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5770 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-08-24 23:19:14 +00:00
hikerstk
ab92817eb6 Removed unnecessary variable (which was actually declared and used in
WorldStatus).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5733 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-08-10 00:25:38 +00:00
hikerstk
3d7f706cfc Removed debug print statement.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5717 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-08-02 00:16:39 +00:00
hikerstk
14e41122a8 Replaced _DEBUG_PRINTS_LIKE_MAD_ with code that will only print
this information when a race position changes.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5715 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-08-01 23:30:13 +00:00
hikerstk
e291ce56ff Keep the race going (with end race controller) while the race
results are shown.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5704 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-22 22:49:56 +00:00
hikerstk
9549138017 Missing file from previous 'fix race restarting' patch.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5696 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-19 00:14:06 +00:00
hikerstk
969314e1f0 Fixed race restarting.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5695 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-19 00:11:03 +00:00
auria
2a4570f6c6 Fixed warning
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5693 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-18 15:47:47 +00:00
hikerstk
c4797d6dd7 Added FIXME to indicate why restarting a race is currently broken.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5692 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-18 13:55:55 +00:00
hikerstk
04f2bd7190 1) Started adding new race result screen, which is for now disabled in the game.
2) Replaced int* with std::vector<int> in raceResultOrder.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5682 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-15 22:41:41 +00:00
hikerstk
626f83087a Added new base class for race gui (in prepration for improved
result gui).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5680 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-11 23:03:54 +00:00
hikerstk
db9bf099e5 Fixed incorrect assignment to unsigned variable.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5676 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-11 13:11:05 +00:00
hikerstk
dee6536f14 Fixed g++ compiler warning.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5672 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-08 02:32:50 +00:00
hikerstk
e9837ca8fc Added some startup speed boost, mainly for testing. The first two
karts to press 'accelerate' after 'go' will receive a boost. 


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5669 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-07 23:53:27 +00:00
hikerstk
396db5ae2b Added intro sfx to be played before ready-set-go.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5663 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-06 23:10:47 +00:00
hikerstk
468e059a94 Added last lap sfx, which is played once when the first kart
starts the last lap.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5656 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-06 00:11:42 +00:00
hikerstk
63d5f62cdb Removed unnecessary declaration.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5627 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-04 22:48:12 +00:00
hikerstk
61cc735179 Fixed memory overwrite that happens when the in-game menu is
displayed during the end animations.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5601 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-01 00:16:09 +00:00
hikerstk
744d9dd0fb The default start positions are now transformed/rotated if the lap
counting line is not centered around 0,0,0 or not parallel to the
X axis.
Note that this requires all lap counting line in the scene.xml files
to be 'oriented', i.e. the first point must be the left point, and
the second one the right point (r5488 updated this for all current
tracks, and r5487 updated the track exporter to do this automatically).
As a result of this the start positions might now be a bit too close
to the starting line (depending on where the chess-pattern is on the
track), and that might need some additional adjustments.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5490 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-06-08 23:30:45 +00:00
hikerstk
9bf9dea62c Bugfix: karts which had their arrival time estimated would not get the appropriate
points displayed.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5478 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-06-07 21:40:45 +00:00
hikerstk
e0328642f1 Added new 'UNDEFINED_PHASE' to catch incorrect pause/unpause
sequences (instead of re-using SETUP_PHASE as was done previously).



git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5477 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-06-07 03:31:41 +00:00
hikerstk
0a59455a82 Removed LIMBO state, added new RESULT_DISPLAY_PHASE (but at this stage no
visible change to user).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5424 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-05-10 23:53:32 +00:00
hikerstk
807274dc9f Fixed VS compilation problem.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5418 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-05-10 03:20:42 +00:00
auria
e84cb5d10c As discussed with Joerg : started removing maximum number of karts limitations
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5410 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-05-07 18:39:07 +00:00
hikerstk
ad6afbe036 Minor updates to documentation.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5396 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-05-06 23:26:49 +00:00
hikerstk
c7880fe80c Cosmetic changes to output of rendering statistics.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5395 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-05-06 23:25:11 +00:00
hikerstk
29539dd39f Added statistics about rendering to profile output.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5387 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-05-06 05:53:06 +00:00
hikerstk
56ebedd175 Fixed item handling in battle modes by adding an additional 'position class'
to data/powerup.xml for battle modes. This makes it unnecessary that modes
can select which powerup are available, therefore this code was cleaned up.
Also added some minor code simplifications.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5374 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-05-04 13:54:49 +00:00
auria
bfd3aca466 Fixed glitch when doing 'race again' in 3 strikes mode
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5330 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-04-30 21:03:39 +00:00
auria
f57252e914 Nicer screen at the end of 3 strikes battle
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5328 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-04-30 20:36:36 +00:00
hikerstk
e9413ccf46 The probability of which item is collected now depends on the race
position. The actual distribution is defined in powerup.xml (and
probably needs some adjustments).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5320 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-04-30 01:11:22 +00:00
hikerstk
ac42071c82 Moved PowerupType into PowerupManager (some minor work on
weights for powerups started, but nothing more than some
declarations).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5309 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-04-28 13:17:02 +00:00
auria
009c30b229 Removed some old bit of code in LinearWorld
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5275 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-04-25 19:38:26 +00:00
auria
c3fe0cb910 More work to enhance Doxygen output
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5250 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-04-23 20:48:56 +00:00
hikerstk
5696fc0c73 Moved explosion and rescue handling to EmergencyAnimation object
(previously called ExplosionAnimation).
Updated vs project file for latest changes as well.



git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5239 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-04-22 13:21:35 +00:00
auria
297f0cceb4 Renamed SoundManager into MusicManager, since this makes it much clearer what it does (it was just confusing to have SoundManager and SFXManager)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5228 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-04-21 17:24:02 +00:00
hikerstk
e36f0fdd8f Made profile mode work again. Only one kart is now used as well, which allows
us to profile the effect different karts have.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5210 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-04-18 23:22:15 +00:00
hikerstk
f19e163385 Fixed the very unlikely and unimportant bug that a kart that does not start and has
never driven on a valid quad will cause a crash when rescue is triggered.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5195 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-04-14 13:16:32 +00:00
hikerstk
7e998399cd Fixed bug with kart positions (a position might be used more
than once).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5192 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-04-14 00:06:10 +00:00
auria
ee7e16b696 Adding the debug prints I used to figure what's wrong with ranking code (disabled but there to enable again)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5170 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-04-11 19:44:52 +00:00
auria
04ba1f96ae Added checks to catch the ranking bug much earlier (yay)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5169 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-04-11 19:28:53 +00:00
hikerstk
b58c29b697 Added fog to karts.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5139 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-04-09 13:00:40 +00:00
hikerstk
1b5f33e210 Fixed history debug files.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5133 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-04-08 12:45:57 +00:00
auria
e8bafc33b3 Improved debug error message to be more readable
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5116 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-04-07 00:26:47 +00:00
auria
1be79f8a72 fixed a FIXME (minor change)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5107 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-03-31 23:49:42 +00:00
hikerstk
f2c2d68c77 1) Improved AI. The AI still have some problems in tight curves and S curves,
but should be better than before. Basically the estimation of the turn
   radius was completely wrong and was replaced by a new and better
   algorithm.
2) Introduced new AI base class which has some common functions and variables.
3) Removed unused file auto_kart.hpp.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5102 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-03-31 21:53:32 +00:00
auria
3ed8cbc5da Save history file when ranking bug occurs
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5099 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-03-29 22:21:34 +00:00
auria
ada40cf7a3 Added the ability to specify a case color (fixed mine to have black clear color). Not supported yet by track exporter
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5084 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-03-27 19:19:09 +00:00
auria
723aff006e I reproduced wrong kart rank issues again; adding more debug code to better track this bug
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5082 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-03-27 18:11:00 +00:00
hikerstk
e95d5ad5dd A historical commit: replaced highscores lisp files with xml,
allowing us to completely remove the lisp code from stk - hooray!


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5072 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-03-25 22:29:47 +00:00
hikerstk
5f69e47451 Removed unnecessary debug print.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5064 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-03-24 23:55:04 +00:00
hikerstk
887ab0110e Fixed bugs in computing kart ranks code.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5000 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-03-15 11:25:01 +00:00
hikerstk
d50bd9dbe6 Merged the switch_coordinate_system branch with trunk. This means
that now all coordinate systems are y up, z forwards - including
the file format. For now only one track has been ported, the
rest will follow shortly.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4985 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-03-12 02:16:11 +00:00
auria
9fb9278f31 Improved Follow-the-leader game ending. An assert failure might occur if one kart dies in front of the leader
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4964 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-03-08 20:31:37 +00:00
auria
0da7e2da10 Hopefully fixed bug about bogus kart rankings. 1) Made all karts be ranked at the same time, so there's less risk of mismatches 2) Found a precondition inside the sorting method, that was not documented in the doxygen comments, nor enforced with contracts... and sure enough someone somewhere called it without respecting that hidden precondition. Fixed the problem by removing the precondition (the new logic doesn't have the same precondition)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4959 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-03-08 18:39:05 +00:00
auria
32f1e24b4a Added sanity checks to debug bogus rankings, especially in GPs. Improved Doxygen documentation on the way.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4953 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-03-07 16:52:20 +00:00
auria
11c147c8e9 Display less important messages in white, at the bottom of the screen, to not detract attention from gaming. Fixed probable grammar mistake in string
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4950 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-03-07 01:35:57 +00:00
auria
d0624a7ab7 Improved vertical spacing betweewn messages to adapt to font (but multi-line messages are NOT supported anymore)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4931 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-03-05 01:58:27 +00:00
auria
d27e3d90c5 Show 'feature unlocked' screen when unlocking a feature. It's not yet complete : it doesn't really show what you unlocked, and you can't leave the screen properly (game crashes or hangs)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4889 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-03-01 20:17:31 +00:00
auria
620f63adc2 Dont give plungers in 3 strikes mode (we need more weapons for this mode\!)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4860 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-26 19:09:41 +00:00
auria
9b7a0fdc31 Some fixes with end-of-race messages;don't display 'you have finished the race' when you're killed in 3-strikes mode; don't display 'you have won' when using the 'race again' button at the end of three strikes; improved FTL end
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4859 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-26 19:09:05 +00:00
hikerstk
bd33113f20 Fixed incorrect heading and pitch in vec3, fixed rescue (again),
fixed checklines, improved camera (still not fully working), fixed
incorrect 'wrong heading' messages.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/switch_coordinate_system@4844 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-25 13:20:22 +00:00
auria
eb15a6f11c Removed debug prints that should not have been committed
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4842 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-25 02:53:38 +00:00
auria
10834134d4 Started adding more interesting stuff to end-of-3-strikes battle dialog (more polish to come)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4841 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-25 02:52:07 +00:00
auria
08c0d291fb 3 strikes now has some ending instead of crashing (more to come)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4838 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-25 01:48:32 +00:00
hikerstk
fbeaa0524f More fixes to swap the bullet axis.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/switch_coordinate_system@4822 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-24 05:23:00 +00:00
auria
6ef1b804a5 Disable swapper powerup in battle mode
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4818 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-24 01:57:25 +00:00
auria
9fb9d24f08 Committed my code to quickly 'profile' FPS, in case someone ever needs that again
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4816 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-24 01:24:48 +00:00
hikerstk
092a59a7d2 Very first changes. Doesn't really work yet and will most likely crash - not recommended to use :)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/switch_coordinate_system@4813 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-23 13:27:01 +00:00
hikerstk
078a56b5b5 Removed compiler warnings.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4776 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-20 02:43:57 +00:00
auria
76c6ddbc93 Fix FTL having no highscores as expected; don't display highscores in end-of-race dialogs when the mode has none
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4761 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-18 02:08:11 +00:00
auria
2478db386a Don't try displaying highscores in modes that don't generate highscores (3 strikes, FTL)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4757 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-17 23:52:49 +00:00
auria
bbd2ecb4c4 Clarified one method by using a enum type instead of simply 'int'
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4756 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-17 23:35:25 +00:00
auria
263b94c706 Various fixes to get battle mode working again
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4753 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-17 16:48:12 +00:00
hikerstk
31e3806fd0 Refactor end of race handling so that more functions are done in a base class only
(esp. code that was previously duplicated in the battle mode and standard race).
There is now time for an end animation, even if the player should finish last
(in which case the previous end camera would not be shown). This mostly in 
preparation for end animations.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4750 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-17 11:59:51 +00:00
auria
93cc5209f7 Converted sound effects file to XML. Along the way, refactored the audio code to be more flexible. before, when a sound changed, you needed to edit the config file of STK, edit the enum in the header, edit the loader in the .cpp... was annoying. Now you only need to edit the config file.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4728 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-15 19:17:35 +00:00
hikerstk
da3de6d131 Big code refactoring: instead of having auto_kart, player_kart, the karts
now use a 'controller' object which is responsible for its steering, e.g.
a default_ai_controller, player_controller etc. This makes it easier to
switch a player kart to use a end-of-race computer controller to drive
the kart once the race is finished (though that's not implemented yet).
I expect some bugs with restarting race, and perhaps end of race
behaviour at this stage.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4714 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-15 00:54:28 +00:00
hikerstk
328373289a 1) Moved access to world object from race_manager to static functions in
world.
2) Removed more dujplicated/unnecessary functions from race_manager
   (getPlayerKart, getTrack).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4682 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-11 07:11:52 +00:00
hikerstk
b9ffb6fa13 Removed g++ compiler warnings.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4681 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-10 23:55:19 +00:00
hikerstk
4a96f98182 Removed player- and network-kart lists from world, so now
there is only one list used to access all karts in world.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4680 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-10 22:59:17 +00:00
hikerstk
47a1a1dfa2 Removed m_local_player_karts vector from world.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4678 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-10 12:47:18 +00:00
hikerstk
c6bf95a64c Started to remove the various kart lists in various objects.
1) Removed getKart from RaceManager.
2) Renamged RaceManager::getNumKarts() to getNumberOfKarts.
   This function should only be called when the world
   does not exist (or is not yet initialised). 	In all
   other cases world::getNumKarts() should be called.
3) Improved several 'const' functions.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4676 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-10 11:40:33 +00:00
auria
f78001c7b2 Misc nitpicking
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4675 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-10 02:11:56 +00:00
hikerstk
4e36fc1f78 Moved WorldStatus enums into WorldStatus class.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4673 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-09 09:24:45 +00:00
hikerstk
9a68e6e130 1) Renamed clock.?pp (which stored the class TimedRace) to
world_status.?pp (storing the class WorldStatus).
2) Fixed end of race in case that player kart is last
   (race would never end till esc is pressed).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4668 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-08 12:59:03 +00:00
hikerstk
0465313495 Fixed race finish time estimation at end of race for AI karts.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4664 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-07 21:58:16 +00:00
hikerstk
fde579bee8 Added comments, minor cosmetic changes.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4663 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-07 21:57:10 +00:00
auria
0e9266fd1c Added missing string to the pot
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4528 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-01-24 15:34:46 +00:00
hikerstk
70f5f1044b Removed compiler warning.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4437 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-01-11 23:51:59 +00:00
mbjornstk
42c395fd5f Cosmetic changes, last lap colour and fastest lap wording.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4434 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-01-11 23:40:12 +00:00
hikerstk
cf0e69b48f Removed #include of kart and player_kart from world.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4424 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-01-10 23:12:29 +00:00
hikerstk
2c60045223 Disabled new AI so that we know at least to which AI bug reports apply to.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4421 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-01-10 12:12:07 +00:00
mbjornstk
5da301b8e1 Show final lap message, original patch by Stephan Hillebrand.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4347 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-12-23 16:58:10 +00:00
mbjornstk
5fe41e5625 Run expand -t4 to convert tabs to spaces. No other whitespace fixes, but
there are still trailing spaces and lines with 5 spaces as indent (fix them
as the files are changed for other reasons). src/guiengine/CGUIFont.* and
src/bullet/ not processed to allow cleaner updates from upstream.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4320 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-12-18 00:36:35 +00:00
hikerstk
68ceea8619 Fixed time-trial mode - no more boxes will be added to the track.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@4275 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-12-10 02:10:19 +00:00
hikerstk
9f17650552 Bugfix: check_structures were reset before karts, which means that in the very first frame of a
restarted race incorrect checks would be triggered (e.g. causing a new lap to be counted).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@4235 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-12-04 00:49:38 +00:00
hikerstk
ed9bd38402 Some redesign of split screen to enable proper handling of
ambient light changes.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@4229 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-11-29 13:04:57 +00:00
hikerstk
a5a90be806 1) Started to add split screen (though not all parts of the race gui are displayed correctly yet).
2) The name of an AI kart will now only get the AI name added if it's profile mode (to prevent
   the name with AI name to be displayed in game)
3) Some code cleanup.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@4226 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-11-23 05:20:05 +00:00
hikerstk
dd02e0726f 1) Added new AI, which is not yet too different from the current one.
2) AIs can now modify the kart name, which is used in printing profile results, to
   include an AI identifiert.
3) NewAI and DefaultRobot are created un turns: first AI is DefaultRobot, then 
   NewAI, then Default...
4) Made specific mode in VS project file for irrlicht 1.6 (will be removed soon).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@4213 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-11-08 12:19:33 +00:00
hikerstk
6d89dd7ae0 Use loadRobot instead of new DefaultRobot, so that the same function
is used to create all AI karts.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@4212 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-11-08 12:15:12 +00:00
hikerstk
39cb1129d1 Bugfix: For the duration of one frame the position of the karts was incorrect
when a kart is about to cross the starting line.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@4151 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-10-23 01:54:05 +00:00
hikerstk
049ab14678 1) Fixed 'objects' import from blender script: objects are now
converted into the physics track model (previously they were
   only shown, but karts could drive through them).
2) Cleaned start position code: arena and normal tracks now use
   the same way and variables/functions to specify the start
   positions.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@4046 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-09-24 14:26:03 +00:00
hikerstk
d863d37c72 Bugfix: kart position were not computed correctly if crossing the start line for the
first time doesn't trigger a new lap (and therefore karts starting at lap -1).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@4021 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-09-10 03:25:42 +00:00
auria
2eef253158 Improved end-or-race dialog + backported a fix found there to track info dialog
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3981 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-09-02 00:01:10 +00:00
auria
5ff086d156 Fixed handling of wide strings in StringUtils::insertValues (the wide overlaod) + fixed aain assert import
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3979 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-09-01 21:18:07 +00:00
auria
22f6c6e008 First (rough) version of an end-of-race dialog
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3974 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-09-01 18:11:26 +00:00
auria
458e1a19da made text readable (i'm not really confident it works for everyone and all languages though)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3964 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-30 19:18:05 +00:00
auria
c3f0f7ab82 Massive conversion from std::string to stringw for all strings that need to be translated. Currently, translation is broken (strings i try to transalte appear as junk) -- since irrlicht GUI widgets all use wchar_t, using std::string in UTF-8 just didn't make it
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3963 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-30 18:21:59 +00:00
auria
432da8b070 Improved display of highscores. IMPORTANT: Kart name in highscores used to be saved as user-visible name and not internal name. This is wrong, the user name can change or be translated and we still expect it to work. I changed the highscore code to save the kart's ident and not translated name, but you will need to delete/correct your current highscore file if you want kart from highscores to be displayed
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3953 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-29 18:59:25 +00:00
auria
870c470eab Highscores are now displayed in the track screen
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3951 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-29 18:12:31 +00:00
davemk
276f3575e4 use kart projection after rescue in 3-strikes-battle-mode.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3928 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-27 02:14:38 +00:00
davemk
454463a919 add hit to kart rescued in 3-strikes-battle mode.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3927 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-27 02:04:37 +00:00
davemk
9ab21ce5fe speed up battle music when all opponents down to 1 life.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3926 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-27 02:00:59 +00:00
davemk
e06845c4af remove bubble gum item from 3-strikes-battle mode.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3925 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-27 01:57:24 +00:00
auria
452808838a Fixed various warnings
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3916 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-26 15:18:14 +00:00
hikerstk
96dc2a8fe2 Cleaned up StringUtils: used 'better' names (e.g. getPath()
instead of path()), and used our convention of using capitalization
for words (and not _). Started adding support for additional track
directories, but that's not working yet.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3912 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-24 05:56:53 +00:00
hikerstk
c1d69986b0 1) Profile mode now works, and is now completely implemented
in ProfileWorld only (no more m_profile in UserConfig)
2) Added some more virtual functions to the modes to simply
   code a bit.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3909 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-23 15:42:58 +00:00
hikerstk
6318008c87 Restructured modes to be easier to inerhit from:
- cleanly split into constructor and init()
  phase
- added new isRaceFinished() function
Some minor code cleanup.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3900 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-21 13:05:52 +00:00
hikerstk
ef175e94d4 1) Added alpha version of profile-mode (which replaces if-statements
in world).
2) Moved camera management into race gui, so that the number of split screens
   used can be adjusted (and not only indirect via number of player) - this
   allows e.g. debug modes where you can see 4 AI karts at the same time,
   for profile mode, ...
3) Code cleanup.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3899 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-21 00:32:24 +00:00
davemk
779003befe Make z-offset after rescue a configurable parameter (z-rescue-offset)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3888 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-19 14:07:15 +00:00
davemk
329124a3ba oops. Include btkart.hpp to world.cpp so it compiles again.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3887 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-19 13:48:28 +00:00
davemk
7315b74865 initially project karts onto track from slightly higher
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3886 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-19 13:45:44 +00:00
hikerstk
63e16e3e8a Removed scene.?pp (which didn't do much anyway except for
handling the cameras, which can as easily be handled by
player karts instead).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3883 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-19 04:03:25 +00:00
davemk
271a157c6c use kart projection for rescue and initial simulation
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3882 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-18 11:05:40 +00:00
davemk
9b45fdc547 more cosmetic changes
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3881 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-18 10:59:21 +00:00
davemk
a5dc04c5e7 cosmetic changes
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3879 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-18 10:33:21 +00:00
auria
91c04d564f Improved music credit text displayed at the beginning of a race so it's not confused with track author
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3870 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-16 22:52:41 +00:00
hikerstk
1033bfdf59 1) Only Track is now using the ItemManager.
2) Fixed several memory leaks in animation code.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3849 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-13 11:12:26 +00:00
hikerstk
2b5a273b95 Renamed RaceManager::getKartName to getKartIdent, since this is was the function actually does :)
(prevents us printing the id instead of the name somewhere).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3846 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-13 04:53:51 +00:00
auria
8623a4a49a Fixed incorrect code (and warning)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3792 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-02 18:04:16 +00:00
hikerstk
89b2eea124 Added first version of track mini map to race gui.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3784 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-30 02:40:30 +00:00
hikerstk
368604f379 Added speedometer.
NOTE: to use the speedometer, a patched version of irrlicht is needed. The replacement
files are included here, we hope that the necessary functions will be included in the
next irrlicht release (STK will still compile without a patched irrlicht version,
but not display the speedometer).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3781 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-27 11:56:09 +00:00
auria
34abb79d40 Fixed wrong includes (why was I able to compile it and MiniBjorn too??? scary)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3774 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-19 19:50:20 +00:00
auria
85266dfe10 Started mammoth cleanup of GUI code. Separated the generic GUI engine and the STK-specific bits (still work to do on this side)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3764 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-18 17:48:36 +00:00
auria
fbc3119dbc Continued cleaning up references to Player & ActivePlayer and docs
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3762 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-18 15:32:54 +00:00
auria
2c0a322b61 Started cleaning up references to Player to use ActivePlayer where relevant
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3761 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-18 15:21:16 +00:00
hikerstk
5f4b474e77 Fixed some memory leaks, code cleanup, started adding
mini map creation.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3755 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-16 12:09:15 +00:00
hikerstk
9563b78500 1) Added general messages (fastest lap etc) and plunger-in-face
2) Removed unused plib font objects - hooray :)


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3754 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-16 03:24:17 +00:00
hikerstk
45713083c7 1) Removed unnecessary (and by now incorrect) special handling of 'pre first
lap'.
2) Bugfix: number of laps were not updated.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3743 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-13 12:22:27 +00:00
hikerstk
88b4b3b041 1) Added calls to new render functions which are
called during the irrlicht rendering, so calls
   to directly print etc. to the screen are possible.
2) Time and ready/set/go of the race gui now work.
3) Code cleanup.
4) Removed compiler warnings.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3740 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-12 11:54:21 +00:00
auria
a44b531525 Replaced usage of some confusing IDs with more explicit pointers
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3736 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-12 00:18:37 +00:00
hikerstk
f332c3a345 Moved timeToString into StringUtils.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3711 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-08 12:34:39 +00:00
hikerstk
1b6d075346 Lap counting is now done using checklines, old code for this removed.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3706 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-08 00:44:55 +00:00
hikerstk
8c1bba8abb Added initial support for checklines (though atm they don't do anything yet).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3703 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-06 13:35:33 +00:00
hikerstk
88600d7d2e 1) Animations can now be bullet rigid bodies, which means collisions are
possible.
2) The track exporter supports now exporting a single animation model only even
   if the model is used in several animations.
3) Changed the rad to/from degree macros to be uses as multiplication factors,
   i.e. RAD_TO_DEGREE*x instead if RAD_TO_DEGREE(x). This allows more compact
   code if vectors are convered (RAD_TO_DEGREE*vec3  instead of three separate
   macro invocations, once for each component)


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3688 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-03 00:51:31 +00:00
hikerstk
6cefc34b31 More work on animations (still work in progress)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3680 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-06-30 12:51:38 +00:00
auria
2f6b05bace started converting user config to XML. Implementation is not 100% complete yet; saving works, not lodading. Implementation is not the prettiest but designed for minimal maintenance.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3625 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-06-21 01:10:43 +00:00
hikerstk
ee90eca26e 1) Created new config subdir and moved the last remaining files into
appropriate subdirs (only main.cpp and main_loop.?pp are now directly
   in the src directory).
2) Cleaned up all #include directives, so that all files now use
   the right subdirectories.
3) Some minor code cleanup.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3606 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-06-11 10:00:43 +00:00
hikerstk
96805cfc71 Moved race related files into new subdir 'race'.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3581 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-06-03 01:36:48 +00:00
hikerstk
59d5098ade 1) More support for quad graphs added. Now the AI should
be able to use shortcuts and loops (e.g. using the same quads
   more than once).
2) More AI simplifications, and adjustments to handle off road
   driving with the new quad graph structure.
3) Fixed bug in LinearWorld: last_valid_sector was not defined
   anymore, resulting in crashes when a kart was rescued.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3543 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-05-28 00:43:12 +00:00
hikerstk
864c1d6fff 1) More redesign of drivelines into quad graphs. Moved
graph related functions from Track to QuadGraph,
   removed plib usage. The AI is now able to drive
   a loop (re-using the same quad, before continuing
   on the original path). The beack track currently
   defines a simple look at the first right hand
   turn (the AI will drive down the hill, then
   up again and then keep on going).
2) During the conversion process some AI called
   function were significanly sped up, but it has
   to be tested if this has any ill effects for
   certain tracks or certain karts.
3) Tried to add support for moving sky domes, but
   that doesn't work yet.



git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3527 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-05-22 03:23:48 +00:00
hikerstk
d40f096127 1) Removed unused TrackInfo objects for the AI.
2) More code cleanup to use the new quad structure
   instead of driveliens.
3) Updates VS project file to work with latest
   GUI additions.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3515 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-05-18 04:08:00 +00:00
hikerstk
616acb985a 1) Removed some of the old driveline usage (not all yet, work
in progress).
2) Removed shortcut detection and handling.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3505 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-05-17 12:57:40 +00:00
auria
f4a76bc2ae removed 95% remaining dependencies on plib
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3479 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-05-11 01:28:18 +00:00
hikerstk
30de5e36f8 Removed callback manager, callbacks are not needed the way they were
with plib, and the track is now updating its animated textures and
physical objects.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3337 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-04-01 00:55:20 +00:00
hikerstk
4ccd7662ef 1) Added support for animated textures.
2) Removed static_ssg source files.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3335 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-03-31 23:45:20 +00:00
auria
4acc6fc7c8 first introduction of new GUI code. It does *not* work, consider this a backup (and the removal of the old UI)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3256 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-03-13 13:50:24 +00:00
hikerstk
8a60edf241 Moved file manager to io subdir, made irrlicht compilation default,
started removing #ifdefs HAVE_IRRLICHT.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3239 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-03-12 03:49:31 +00:00
hikerstk
3b7bfd5367 Update to irrlicht only, non-irrlicht part should be unchanged.
- Tracks and kart models are now loaded and converted into
  bullet physics. 
- A simple camera is implemented, so a loaded track can be
  displayed (note: the current SVN version does not contain
  a track converted for irrlicht yet)
- Otherwise the irrlicht version is not working, i.e. no
  menus atm, ...


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@3115 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-02-10 05:30:59 +00:00
hikerstk
d49f009213 Removed the camera jump which happens on some tracks (e.g. snow
mountain) at the start of a race.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@3088 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-02-01 22:54:00 +00:00
hikerstk
4b907c643a Fixed bug 2547586 (keys lock after pause): keys pressed when the
in-game menu is called would still considered to be pressed
when the game is continued.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@3085 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-01-31 04:51:50 +00:00
hikerstk
012f503d60 Added more flexible functions to simulate s(n)printf,
removed more snprintf.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@3058 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-01-28 04:43:18 +00:00
hikerstk
067d3daf79 1) Renamed scene to stk_scene (since scene is a namespace in irrlicht).
Note that with irrlicht the scene objects is most likely going to
   be replaced anyway.
2) Removed more snprintf.
3) Removed unused modes from VS project file, added new mode for irrlicht.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@3055 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-01-28 00:38:28 +00:00
hikerstk
6f34674b4c 1) Moved more files around.
2) Replaced many (though not all yet) snprintf with ostringstream
   (getting rid of the maximum length of messages).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@3034 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-01-23 05:23:22 +00:00
hikerstk
6ce3803165 Moved more files into subdirs.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@3029 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-01-22 22:27:13 +00:00
hikerstk
340fc18548 1) Applied Jonan's patch to fix the layout for many files.
2) Moved STK specific extensions to bullet out of
   bullet src tree.
3) Started to move more files into separate subdirs.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@3027 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-01-22 12:02:40 +00:00
hikerstk
2287757c6e Made STK more robust in case that the name of a track requested on the
command line does not exist. It now aborts with a useful error message
in this case.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2934 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-01-15 23:05:50 +00:00
hikerstk
2c0a135d94 Improved shortcut handling:
1) on road/off road is now detected with a certain tolerance
   to the drivelines (currently 15%), i.e. the drivelines are
   made 15% wider.
2) Skipped segments distance was shortened to 50m (since it
   should be used less with the above higher tolerance, and
   it caused problems with shortcut not being detected.
3) The new drivelines with tolerance can be seen with --track-debug=4
   (--track-debug=2 shows the original drivelines)


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2890 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-01-13 00:16:09 +00:00
hikerstk
634b6044ae Enabled anvil for FTL races again.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2868 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-01-08 23:25:19 +00:00
hikerstk
2d48b0e1c2 Cleaned up some unnecessary includes.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2837 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-01-05 22:51:02 +00:00
hikerstk
161605ceb0 Bugfix: in OMC when driving backwards at start, and then drive towards the
small gap between the book and the wall (to the right), an invalid
driveline index would be accessed.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2834 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-01-05 00:36:40 +00:00
auria
c403bc0037 reverted debug code that shouldn't have been committed
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2788 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-12-26 20:49:21 +00:00
auria
4a032ca32e plunger now blocks view as planned when thrown backwards; no aiming yet though
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2787 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-12-26 20:45:56 +00:00
auria
eb85dd1c8b reverted debug code that shouldn't have been committed
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2786 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-12-26 20:14:26 +00:00
auria
16beb446c3 made it possible to add a big plunger blocking a player's view (does not yet work with plunger, to be completed)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2785 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-12-26 20:12:57 +00:00
auria
2cc926b381 last lap-coutning-with-rescue bug should be fixed now...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2774 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-12-25 19:07:56 +00:00
auria
f489ae57cd fixed rescuing bugs with lap count (free laps or missing laps) hopefully for good this time. Instead of the previous weak implementation, which substracted laps, this time I just keep a variable of the lap number when the kart was last on a valid sector. Then on rescue I just set back this number of laps - I can't think of any way to trick this system.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2773 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-12-25 18:49:34 +00:00
hikerstk
b9571a41f0 Bugfix: it was possible to take a shortcut and in the process of being
rescued get a lap counted incorrectly, see bug 2453274 for details.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2739 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-12-22 00:33:25 +00:00
hikerstk
2e0c4f7738 Fixed 'wrong way' message (which wasn't working at all
anymore).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2738 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-12-22 00:21:43 +00:00
hikerstk
039eb6733d Minor refactoring.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2734 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-12-21 07:43:41 +00:00
hikerstk
c72b0194df Bugfix: karts still in a FTL race at the end (i.e. the last player is eliminated)
had their score added twice.



git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2723 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-12-20 00:25:35 +00:00
hikerstk
3b0e6723ae Bugfix: eliminated karts called race finish twice (getting points twice).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2698 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-12-16 13:21:55 +00:00
hikerstk
ede429b79c Bugfix: if a kart ahead of the leader is eliminated,
it would have an invalid position (#1), and this would
result in duplicated positions later.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2697 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-12-16 13:18:46 +00:00
hikerstk
a6a4d2b7a8 Bugfix: eliminated karts would get their position updated (which would result
in all eliminated karts having the same position). Code cleanup.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2696 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-12-16 09:02:14 +00:00
hikerstk
548b904394 Disabled highscores for FTL mode.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2692 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-12-16 04:33:12 +00:00
hikerstk
27646ae0b1 Prevented mis-use of rescuing (drive off road close to another potentially
unreachable part of the track, press rescue, and (if you were closer to
that other part of the track), rescue would drop you off there).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2688 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-12-16 01:42:22 +00:00
hikerstk
e63962ba7c Improved end of lap detection by using the actual length of the track.
Otherwise (when testing for distance along tracks >300) it could
happen (e.g. shifting sand, drive left after the lap was counted before
the pillar till you do a shortcut) that laps were 'discounted' twice.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2686 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-12-16 00:57:23 +00:00
hikerstk
23c3e56c0c Fixed incorrect position of karts bugs (tracker: 2341498 and
2341488), fixed some incorrect lap counting.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2684 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-12-15 23:37:25 +00:00
hikerstk
6dda930e03 Bugfix to previous commit: doLapCounting was called at the wrong
location (when m_last_track_coords = m_curr_track_coords), so no 
laps were ever counted.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2678 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-12-15 08:15:06 +00:00
hikerstk
c240c657cf Bugfix: the new lap end condition did not work if a kart would
skip the last (or first) driveline when driving over the starting
line. This resulted in incorrect (duplicated/missing) positions.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2677 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-12-15 06:35:17 +00:00
auria
4b580237d2 debug output strikes again... :(
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2669 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-12-13 21:21:51 +00:00
auria
6cd5a152b9 fixed karts beginning in front of start line by calculating offset from drivelines instead of using arbitrary values
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2668 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-12-13 21:20:21 +00:00
auria
c060d36b4b fixed fast music kicking in too soon
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2625 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-12-11 19:43:25 +00:00
auria
95f2cb8b72 removed debug output
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2622 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-12-11 18:54:41 +00:00
auria
ace9e8ff8f fixed bug with number of zippers in TT mode
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2621 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-12-11 18:53:31 +00:00
hikerstk
9c8290423d Removed 'missing EOL' warning with linux compilation.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2617 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-12-11 10:55:46 +00:00
auria
78f50b0245 fixed shortcut detection bugs
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2603 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-12-11 00:45:54 +00:00
hikerstk
36b42693e7 Removed warnings when compiling on linux.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2592 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-12-09 22:30:30 +00:00
hikerstk
64a609d45f Cleaned up some unnecesary includes in .h files.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2591 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-12-09 22:21:01 +00:00
hikerstk
9b622e59c7 Fixed --profile behaviour.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2587 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-12-09 05:05:48 +00:00
hikerstk
d6ccd9cd1f AI improvements: better (level dependent) skidding, and using nitro.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2582 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-12-08 23:23:33 +00:00
hikerstk
66859e11e9 1) Very first version of improved AI: it does use skidding,
and braking behaviour is improved.
2) The track angle was switched from degrees to rad.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2577 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-12-08 01:29:02 +00:00
auria
a97879e279 removed debug code that should not have been comitted
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2571 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-12-04 00:08:40 +00:00
auria
db6df068dd added strike sound when a bowling ball hits a kart
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2565 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-12-03 16:28:32 +00:00
hikerstk
6e72015c53 Minor cosmetic changes.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2532 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-12-01 03:58:58 +00:00
auria
53ccf88532 fixed restarting FTL
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2517 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-11-27 21:36:11 +00:00
auria
f877e02358 fixed crash when displaying FTL results
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2515 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-11-27 21:20:52 +00:00
auria
2803c01eb9 fixed follow the leader, which was broken by an eaRLIER COMMIT
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2506 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-11-25 23:38:07 +00:00
hikerstk
c14ca10f81 1) Bubble gums do not disappear when hit, instead they are disabled
for 0.5 seconds (enough time for the kart that hit it to drive
   away). This also fixes the bug that re-appearing bubble gums
   were not properly pitch/roll aligned anymore.
2) Bugfix: If a bubble gum was used in a race, a crash happened
   when exiting STK (during cleanup).
3) Bugfix: When restarting a race, bubble gums from the old race
   are now removed.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2446 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-11-11 22:21:25 +00:00
auria
eacfa131f8 removed some debug output
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2428 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-11-08 20:02:42 +00:00
auria
bb56beb7f9 allow modes to disallow some types of powerups, for instance no anvil should be collected in battle mode...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2423 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-11-08 02:52:29 +00:00
auria
576d1c3265 fixed bonus boxes appearing in time trial mode
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2422 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-11-08 02:07:54 +00:00
hikerstk
ab506f462a Moved kart-related files into separate subdirectory.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2416 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-11-07 04:34:01 +00:00
hikerstk
c553ec77ee 1) Separated the wheel from the kart models. This is necessary
for irrlicht, simplifies the handling of the karts.
2) Current suspension is now used to display the wheels of karts.
   This currently only works for tuxkart, all other models still 
   need to be modified (and these models will not display any
   steering atm).
3) Refactored kart model handling: all plib specific kart model
   handling is now encapsulated in karts/kart_model.?pp
4) Moved some files into new subdirs.



git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2413 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-11-07 01:05:52 +00:00
auria
c595c74f7a renamed 'collectible' to 'powerup'
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2400 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-10-30 02:02:56 +00:00
auria
c834005143 removed most 'herring' names
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2392 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-10-29 15:55:54 +00:00
auria
42e0af65b7 started renaming herring to item
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2389 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-10-29 01:45:29 +00:00
auria
39bdf4f0b0 moved all item-related files into a new /items repository
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2385 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-10-28 01:46:35 +00:00
hikerstk
ba7adb18d7 Removed compiler warnings.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2384 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-10-27 02:47:49 +00:00
auria
91ada8f8e6 properly order karts at the end of a battle
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2378 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-10-25 01:47:21 +00:00
hikerstk
8f350c1ca1 Minor bugfix in case of non existing highscores, removed warnings.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2377 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-10-24 13:49:56 +00:00
hikerstk
f2f09deff8 Removed compiler warning.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2372 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-10-24 04:39:52 +00:00
hikerstk
03bc64d2e9 Bugfix for non-macs.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2371 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-10-24 04:39:27 +00:00
auria
5e757da9d5 fixed possible issue with kart sorting in battle mode + some minor typo fixes and documentation improvements
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2370 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-10-24 01:45:28 +00:00
auria
92e4ee5afb better time handling in battle mode
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2369 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-10-24 01:34:20 +00:00
auria
469518f04b initial support for proper kart rank/ordering in battle mode
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2367 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-10-24 00:42:31 +00:00
auria
0bab5f5772 remove debug stuff accidentally commited
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2365 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-10-22 23:30:44 +00:00
auria
6ac6eb9623 fixed bugs with battle mode
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2363 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-10-22 16:05:08 +00:00
scifly
ec272cf9ec Bugfix: Players can no longer set highscores of 0.00 if they do not
finish a race.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2361 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-10-21 16:04:54 +00:00
auria
f076540f68 fixed what happens at the end of a race, fixed problems with faster music set twice
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2349 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-10-17 01:41:41 +00:00
hikerstk
14d6130bf3 Removed compiler warnings.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2347 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-10-17 00:10:54 +00:00
auria
35c1c3eb32 work towards encapsulation of race results display
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2344 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-10-16 19:53:37 +00:00
hikerstk
b1cb705777 Improved physics: karts are now less likely to lose contact
with the ground (and as a result start rotating on the spot).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2342 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-10-16 00:20:49 +00:00
auria
88fcbc0c95 improvements to battle mode. 1. drop karts at an acceptable angle on rescue 2. hits make karts lose lives 3. improved resetting, ending and restarting 4. added fast music support 5. fixed memory leak
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2340 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-10-15 19:00:50 +00:00
auria
ed2f52bee6 First iteration of battle mode! It's playable, and the rack selection works. Warning, if you select AI players it won't work. Lives are shown but don't decrease with hits yet.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2339 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-10-14 20:20:54 +00:00
hikerstk
bb84db0664 Removed minor compiler warnings.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2330 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-10-09 23:33:14 +00:00
hikerstk
167107fcbc 1) Cleaned up implementation of history function.
2) Improved history file format to collect control information (like 
   steering etc) to allow replaying based on the physics (and not only
   replaying recorded kart positions).
3) Added some constants (time till finish, time for music credits) to
   the stk_config.dat file.
4) Made name of the menu background picture configureable in 
   stk_config.dat file.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2328 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-10-06 13:40:11 +00:00
auria
43d092c26c better encapsulation of on-screen messages so they are independant of what mode is in use, and are also independant of the type of clock used (for instance there's a few ones that in FTL counted backwards). switched to alternate timers independant of the game mode's timer + more cleanup on previous commit (clock merge)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2326 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-10-04 18:50:45 +00:00
auria
940f1a4702 correctly encapsulated fast music handling for FTL
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2325 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-10-04 18:02:49 +00:00
auria
4a1662f0cb improved FTL code
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2324 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-10-04 17:47:29 +00:00
auria
0c945d61d3 Made World derive from 'Clock' (now 'TimedRace') simplifying a lot of things, especially the race end process
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2323 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-10-04 17:32:40 +00:00
auria
695255d9b6 somehwat nicer shortcut detection based on distance rather than sectors. can still be wrongly triggered if you drive just next to the road for a while (but that can probably wait for checkpoints)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2322 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-10-04 01:44:08 +00:00
auria
739436fff9 fixed search-and-replace introduced problem
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2321 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-10-02 01:11:00 +00:00
auria
f38e47954c full encapsulation of 'raceHasLaps'
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2318 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-10-01 01:53:35 +00:00
auria
60b3f0ea6e removed one more explicit reference to a game mode, using a more dynamic/extendable call instead
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2317 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-10-01 01:37:43 +00:00
auria
dd5069d112 fixed times comparison at the end of a lap
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2316 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-10-01 01:15:34 +00:00
auria
1c7c08315a started fixing time comparison at the end of a lap
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2315 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-10-01 00:46:00 +00:00
auria
11bec6a781 fixed memory leak
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2314 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-09-30 20:38:11 +00:00
auria
0765e643cf fixed shortcut detection
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2312 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-09-30 01:54:09 +00:00
auria
04c106843a better fix for karts-position wrong when restarting a race
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2311 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-09-29 15:43:58 +00:00
auria
88d5b15747 fixed mistake in previous commit
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2310 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-09-29 15:27:09 +00:00
auria
3728343cfa workaround attempt for crash seen only by conso, but that i can't reproduce, so he can test
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2309 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-09-29 15:23:54 +00:00
auria
6371efb4c1 fixed lap counting and invalid shortcut detection false positives when resetting race
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2308 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-09-29 15:14:14 +00:00
hikerstk
1809dd1da1 Synchronised race results menu, single races in LAN
mode can now be restarted (GP and FTL modes are still 
to be done).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2307 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-09-29 02:29:33 +00:00
hikerstk
44e9335baa Updates and minor bugfix for VS compilation.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2306 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-09-28 10:39:52 +00:00
auria
faa1ba9161 minor cleanup
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2305 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-09-27 20:49:11 +00:00
auria
8d48875044 fixed rescuing
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2304 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-09-27 20:32:07 +00:00
auria
019eaca2cf Mammoth patch to try and encapsulate sector and lap code better in modes. Still work in progress so expect suboptimal implementations and breakage. Known to be broken at this stage : opponents' times at the end of a lap, rescue button and rescuing in general, shortcut detection
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2303 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-09-27 19:43:57 +00:00
auria
3477a7f7e2 made section handling and lap counting a little more modular (nothing definitive, just an incremental step)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2302 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-09-25 00:31:21 +00:00
auria
e1df51b631 made faster music a choice of the base class. various 'for' loop optimisations. replaced incorrect 'int' with 'bool'
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2299 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-09-24 00:43:45 +00:00
auria
03ae2ce6d4 made use of highscores optional (for instance battle mode may not ahve high scores so we need a way to turn them off)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2298 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-09-24 00:13:31 +00:00
auria
0e5106bfb9 started highscores refactor, also fixing them (they had been broken during the world refactor)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2296 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-09-23 01:16:50 +00:00
hikerstk
cfb755ac9e Re-solved several VS/linux compilation errors, and updated VS project file.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2294 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-09-22 12:14:55 +00:00
auria
199681c1d2 added missing clock.*pp files
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2293 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-09-22 01:52:28 +00:00
auria
0ece64bc05 split major and minor modes, started some more encapsulationa round that
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2292 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-09-22 00:55:27 +00:00
auria
cc61f53ff8 more cleanup, replaced World global variable with singleton-like implementation, removed lots of includes to world.hpp
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2291 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-09-21 16:07:56 +00:00
hikerstk
1738961f68 1) Bugfix: World::Karts was protected (causing a compilation error on
linux)
2) Removed several warning (e.g. no newline at end of file).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2288 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-09-21 06:04:38 +00:00
auria
67c514f1ed first iteration of new game mode code. most things seem okay, maybe high scores/rankings should be double-checked, also the end-of-race screen seems a bit messed up
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2287 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-09-20 23:45:22 +00:00