No longer need to confirm resolution changes in windowed mode
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1403 178a84e3-b1eb-0310-8ba1-8eac791a3b58
1) called when any kart is not upside down and slowed down
2) called for AI when it's not making progress (the old
method of using m_collided did not work in at least one
case I have seen).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1395 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2) Compatibility fixes (e.g. VC6.0): remove initialization of static member
variables inside the class declaration.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1391 178a84e3-b1eb-0310-8ba1-8eac791a3b58
Added _() to strings that lacked it in display_config.cpp
Removed redundant member variable from display_config.hpp
Added resolution change confirmation gui
Resolutions that are not confirmed are blacklisted and no longer appear in the res list
Screen resolutions that cause crashes are now detected and blacklisted in user_config
If a resolution blacklist exists, then a button is now available on the display_config GUI to clear it
Improved Apply res button on config_display GUI. Now only selects if a new res has been selected
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1383 178a84e3-b1eb-0310-8ba1-8eac791a3b58
can be pushed around by karts (currently only used in
tux tollway).
2) Removed support for magnet.
3) Some code cleanup for missiles etc.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1379 178a84e3-b1eb-0310-8ba1-8eac791a3b58
checking), this reverts back to include all error checks.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1378 178a84e3-b1eb-0310-8ba1-8eac791a3b58
- fixes the bug of resetting the forces after each internal simulation step,
causing slower physics behaviour on slower FPS.
- improves raycast performance
2) Added script to copy all necessary source files from a full bullet installation
into STK.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1374 178a84e3-b1eb-0310-8ba1-8eac791a3b58
collisions happend in a short time).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1373 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2) Fixed bug in collision detection (a kart-kart crash could cause
a sigsegv).
3) Fixed bug in track loader, which caused somer track objects (e.g.
zipper in bsod castle) not to get the correct pitch/roll, causing
them to 'stick out')
4) Fixed wheelie handling for AI (though wheelies are still disabled
by default, change wheelie-max-speed-ratio to 0.5 to test).
5) Some cleanup of non-bullet code.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1370 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2) Cleanup of old unused, and non-bullet code
3) Fixed wheelies, though they are currently still
disabled in the stk_config.data file since the
AI crashes with the new wheelie implementation.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1365 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2) Removed some visual studio compiler warnings.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1350 178a84e3-b1eb-0310-8ba1-8eac791a3b58
heading after being rescued
2) Partly fixed 'automatic rescue' bug: karts get
rescued when touching a reset material (though it
currently can take a bit before it happens).
3) Restructured code: track loading and converting
is now done in the track object.
4) Fixed several warnings for windows.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1345 178a84e3-b1eb-0310-8ba1-8eac791a3b58
which wasn't fully visible anymore
2) Removed several warning for Visual Studio compiler.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1343 178a84e3-b1eb-0310-8ba1-8eac791a3b58
to be used in a release. Currently DEBUG enables the F1/2/3
cheats to give a player sparks, missiles, homing missiles, and
enables the player to call for a rescue while not touching
the ground.
2) Added many casts from size_t to int (and similar), to remove
warnings when compiling with windows.
3) Disabled F4 'bullet debug' shortcut, since it doesn't work
and it's not too useful anyway.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1333 178a84e3-b1eb-0310-8ba1-8eac791a3b58
Parameters for rockets etc. can for now be
set in data/*.projectile
2) Fixed bugs causing rockets not to explode (and
potentialy start rotating)
3) Added (somewhat temporarily) some cheats to get
rockets, homing missiles and sparks as F1/2/3
4) Fixed several memory leaks.
5) Fixed (very rare) occurring crash when deleting
phsyics.
6) Started to remove non-bullet physics code
7) Bullet physics is now the default, and it
can not be disabled anymore!!
Important note:
From this revision on, non-bullet physics is NOT
supported anymore, and will (most likely) not
compile. For now a -DBULLET is still necessary (it
is added as default), but the code will be cleaned
up in the near future.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1325 178a84e3-b1eb-0310-8ba1-8eac791a3b58
selection when coming back to that menu
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1324 178a84e3-b1eb-0310-8ba1-8eac791a3b58
via the option menu (I added some minor modifications to
get it to work with windows as well).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1321 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2) Added command line option to select if messages
are written to a file or terminal
3) Added some error checking if the log file can't
be opened (though this is apparently only working for
stdout, but not for stderr???)
4) Replaced the #ifdef DIR_SEPATAROR with a
static const in loader.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1302 178a84e3-b1eb-0310-8ba1-8eac791a3b58
accidentally committed my test setting of 1 laps only).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1301 178a84e3-b1eb-0310-8ba1-8eac791a3b58
grand prix. It can be set to 'lowest points first'
or 'highest points first' in stk_config (patch by
Paul Elms).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1300 178a84e3-b1eb-0310-8ba1-8eac791a3b58
the root directory is called 'supertuxkart').
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1299 178a84e3-b1eb-0310-8ba1-8eac791a3b58
compilation of the inluded bullet library, and
to include the new widget_manager.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1298 178a84e3-b1eb-0310-8ba1-8eac791a3b58
1) avoids opening of the STK window
2) removes problem with drv_deinit not being called (resulting potentially
in wrong screen resolutions when STK finishes)
and is faster (based on a patch by Paul Elms).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1290 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2) Fixed bug 1827284 (sand track bridge could not be used with bullet) by not
converting triangles which have the 'ignore' property set.
3) Fixed bug 1826773 (jumping while in air was possible)
4) Started adding support for projectiles which stay close
to the ground (not finished yet).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1284 178a84e3-b1eb-0310-8ba1-8eac791a3b58
and build environment. Default is still to build the non-bullet
version, to get bullet, configure with '--enable-bullet'.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1282 178a84e3-b1eb-0310-8ba1-8eac791a3b58
1) Added bullet collision handling, e.g. rocket hits are now
detected by bullet code, bombs will be passed on etc.
2) Rockets are now handled by bullet as well.
3) Moved expected location of bullet from STK/bullet to
STK/src/bullet.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1280 178a84e3-b1eb-0310-8ba1-8eac791a3b58
using another banana, now the bomb will explode if you
hit a banana).
2) All other 'bananas' now get more severe as well if you
hit a banana while having an anvil/parachute attached
(anvil: time is extended, parachute: you get an anvil
with the same time as the parachute attached).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1276 178a84e3-b1eb-0310-8ba1-8eac791a3b58
- prevent closing of result screen is now done for all input variants
and without odd side effects (and with less lines of code)
- convert mouse buttons, joystick buttons and axes to key input for easier management
- added note
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1274 178a84e3-b1eb-0310-8ba1-8eac791a3b58
- make mouse axes work like analog axes
- enable display menu for non-Win32 platforms
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1272 178a84e3-b1eb-0310-8ba1-8eac791a3b58
you have to define NEWBULLET when compiling the physics.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1271 178a84e3-b1eb-0310-8ba1-8eac791a3b58
1) some minor restructuring as preparation for
converting the missiles to bullet.
2) Added support for later bullet versions (using
btBroadphaseInterface instead of btOverlappingPairCache
in ctor of btDiscreteDynamicsWorld).
Default is still the old interface, use -DNEWBULLET for
physics.cpp if a newer bullet version is available
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1270 178a84e3-b1eb-0310-8ba1-8eac791a3b58
- changed name of class "Buffer" to "ReplayBuffer" .. "Buffer" at global scope was not a good idea of mine .. ;)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1268 178a84e3-b1eb-0310-8ba1-8eac791a3b58
* set max. sample-frequency to 30 frames per second
* put sample-freq-statistic in the end of replay-file as comments
* did some replay-cleaning
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1265 178a84e3-b1eb-0310-8ba1-8eac791a3b58
number of karts (meaning maximum number of karts).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1263 178a84e3-b1eb-0310-8ba1-8eac791a3b58
1799457 (multiplayer does not work ... if the number of
karts in the config file is lower than the number of
karts needed for multiplayer).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1262 178a84e3-b1eb-0310-8ba1-8eac791a3b58
with about 10 karts in tuxtrack and islandtrack).
The number of karts is additionally now limited
to 10 (see stk_config.data), the only reason for this
is to avoid the same bug report when someone is using
more karts than the number of specified start locations.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1261 178a84e3-b1eb-0310-8ba1-8eac791a3b58
* interpolation between sampled frames
* restart game works with replay
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1254 178a84e3-b1eb-0310-8ba1-8eac791a3b58
* no interpolation of ghosts position between sampled frames
* no transparency or something else to distinguish
to see it:
* run a game, rename file replay/test.rph to replay/test1.rph - this file is shown in replay
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1253 178a84e3-b1eb-0310-8ba1-8eac791a3b58
because of 'images/sky2.rgb' not found.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1252 178a84e3-b1eb-0310-8ba1-8eac791a3b58
display sizes
- re-adds the 'make last character the new preselection' feature in character
selection screen
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1247 178a84e3-b1eb-0310-8ba1-8eac791a3b58
- make "start race" button the default one in num laps screen
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1246 178a84e3-b1eb-0310-8ba1-8eac791a3b58
all code related to it must be activated with compiler-switch HAVE_GHOST_REPLAY
folder "replay" added to store the replay-files
there are 2 main classes. ReplayRecorder & ReplayPlayer. both are members of class World. the first is for recording/saving a replay and the latter one for showing the replay/loading/ghost-replay
*recording* a game works already very basic, only karts position-struct is stored and some data about the game (track,karts,player...)
the replay file currently is written to replay-folder in world's destructor to replay/test.rph
and it is loaded into ReplayPlayer in World's constructor
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1243 178a84e3-b1eb-0310-8ba1-8eac791a3b58
- fixed --numkarts/-k command line option (including
using '-1' meaning 'all karts').
- the default number of karts (used for quickstart) is now
taken from the user config file, i.e. once you've set your
preferred number of karts, you will get this number withouth
having to specify it all the time).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1242 178a84e3-b1eb-0310-8ba1-8eac791a3b58
ok until my last change of Widget. now Widget has std::string's as members, so initializing
like that is not possible anymore .. my debian crashed there .. added an initialization-list to Widget's ctor
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1239 178a84e3-b1eb-0310-8ba1-8eac791a3b58
old:
std::vector<CupData*> m_all_cups;
new:
std::vector<CupData> m_all_cups;
related:
changed RaceManager::setGrandPrix(const CupData &cup_) to const reference rather than pointer to CupData
(2) made vector CupData::m_tracks private and added getter
(3) CupData::m_name was passed in GrandPrixSelect::GrandPrixSelect() to WidgetSet as const char*
then it was passed to Widget::_text. changed the latter to std::string and passed it as std::string
(4) changed Widget::count_text to std::string as well ..
(5) tracked down all uses of Widget::count_text & Widget::_text to plib. changed
all funcs in between to work with std::string rather than const char*
Font::getBBox
WidgetSet::set_label
WidgetSet::get_label
WidgetSet::start
WidgetSet::state
WidgetSet::label
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1238 178a84e3-b1eb-0310-8ba1-8eac791a3b58
allocated RaceGUI::TimedMessage's were not deleted, only erased from the vector
RaceGUI::cleanupMessages(): fixed iterator usage for std::vector.erase - the returned iterator must be used, the passed iterator becomes invalid after erase, so one has to use the returned one
changed vector-type RaceGUI::AllMessageType to vector of objects, rather than vector of pointers .. no risk of memory-leaks here anymore ..
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1237 178a84e3-b1eb-0310-8ba1-8eac791a3b58
(1) CreditsMenu::CreditsMenu changed file-open-mode from "ra" to "r"
(2) added fclose'ing file in CreditsMenu's ctor
(3) CreditsMenu::m_string_list removed since base-class ScrolledText already has that member,
made it private in base-class to prevent confusion, since base-class has
member-func setText to *set* that member ;)
made all other member-vars of ScrolledText private too ..
(4) changed typedef of StringList from
typedef std::vector<char*> StringList;
to
typedef std::vector<std::string> StringList;
there was a memory-leak in class CreditsMenu, strings were pushed back
into StringList via strdup, which (m)allocated memory for the string,
so we should have freed it by calling free for each item in vector,
so i choosed the all-inclusive std::string :)
and moved typedef of StringList into class ScrolledText from global scope
(5) removed cleaning-up-code for m_string_list from CreditsMenu's dtor, nothing
to clean for us, since vector's and string's dtor takes care of it
(6) changed ScrolledText::setText (StringList const &sl_) param to const reference
for the sake of efficiency .. we dont want to copy here
hope we dont get problems with windows newline-style \r\n .. tried to take care of
that ;)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1223 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2) The 'unlimited rocket' cheat is now bound to F7
(before it was a clear key, which isn't available on
all keyboards - at least not on mine).
Bullet only:
3) Gear parameters are now configureable and can
be specified in stk_config.data and separately
for each kart.
4) An explosion will somewhat push other karts that
are close by away (some feedback on this feature
is welcome - the impulse can be set in the
stk_config file).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1214 178a84e3-b1eb-0310-8ba1-8eac791a3b58
including a defineable max-speed-reverse-ratio (bullet only).
Added a getsProjectile() when get hit by a homing missile (bullet only).
Modified forceCrash() for bullet.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1205 178a84e3-b1eb-0310-8ba1-8eac791a3b58
Added options:
--stk-config FILE
--mode N to set difficulty
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1203 178a84e3-b1eb-0310-8ba1-8eac791a3b58
non-bullet parameters. Bullet now has separate parameters
for mass, steer angle, and enigne power.
2) bullet only: Added suspension rest parameter (which might fix
the problem of karts not working on tuxtrack and other tracks).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1201 178a84e3-b1eb-0310-8ba1-8eac791a3b58
random one of those specified is played.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1188 178a84e3-b1eb-0310-8ba1-8eac791a3b58
in this case, accelerating should be braking (and
work with more force than just accelerating).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1155 178a84e3-b1eb-0310-8ba1-8eac791a3b58
items are collected (since it's confusing and looks
like a bug, see r1143 on 0.3rc1 branch).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1144 178a84e3-b1eb-0310-8ba1-8eac791a3b58
was not being displayed)
2) Removed number of points from quick race and time trial
result display (since it's meaningless anyway).
3) Fixed highscores for time trials.
(see 1141 commit on 0.3rc1 branch).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@1142 178a84e3-b1eb-0310-8ba1-8eac791a3b58