Commit Graph

706 Commits

Author SHA1 Message Date
hiker
36d705f021 Added 'always-show-login-screen' option, moved 'remember-password'
option from UI-options to UserScreen.
2014-05-27 15:36:44 +10:00
hiker
1946df97be Fixed start with no players (including aborting the create user screen),
added 'lastWasOnline' flag to enable saving of a login token even
when the account is used offline in between.
2014-05-17 11:43:05 +10:00
hiker
71603816fa Merge remote-tracking branch 'origin/master' into new_login 2014-05-16 14:21:13 +10:00
hiker
6650827784 Fixed various bugs in menu not showing up. 2014-05-16 08:24:15 +10:00
hiker
717a989bf8 Fixed --profile-laps command line parameter. 2014-05-15 09:08:18 +10:00
hiker
8d4b33f221 Removed tabs, and use a separate screen instead. Some more refactoring
to make remember-me a global setting.
2014-05-08 22:17:15 +10:00
hiker
d847e8de00 Renamed StoryModeLobby to UserScreen. 2014-05-05 21:17:46 +10:00
hiker
b3291caea2 Moved 'startup now' code in separate function to make main more readable. 2014-04-28 07:51:24 +10:00
hiker
886e7614e2 Fixed -help command line options (which was broken elsewhere before). 2014-04-22 14:24:32 +10:00
Daniel Butum
c7e9b87e90 Fix memory leak on early exit(0) in handleCmdLinePreliminary() 2014-04-19 20:44:30 +03:00
Marianne Gagnon
f6d52511ea Merge branch 'Issue_1263' 2014-04-18 18:24:31 -04:00
hiker
447ca89c0a Removed CurrentUser usage from all files except PlayerManager
and PlayerProfile.
2014-04-16 11:13:35 +10:00
hiker
f33a9f7cf6 Fixed #1282: STK crash on startup for the first time. 2014-04-15 09:06:50 +10:00
hiker
502987d3e0 Now each PlayerProfile has a (currently still called) CurrentUser
which manages online connection data. Work-in-progress to use
only one object for all player data (instead of two atm: PlayerProfile
and CurrentUser).
2014-04-10 16:32:58 +10:00
hiker
25c96d88ec Moved saved session data from UserConfig to PlayerProfile - which
means that now each player can individually save an online session.
2014-04-09 08:33:42 +10:00
hiker
43593d6312 Made getCurrentUser() a static function. 2014-04-08 08:06:52 +10:00
hiker
712d4cf84e Updated documentation for Christmas mode. 2014-04-03 08:20:43 +11:00
Marianne Gagnon
9a5e3d9c9c Try to handle case where addons XML file cannot be loaded 2014-03-30 11:48:38 -04:00
konstin
4d3e835021 re-adding -help 2014-03-30 16:19:09 +01:00
konstin
7cc83e1475 running whitespaces.py update 1 2014-03-29 11:33:43 +01:00
konstin
663fffdebb Revert "Running whitespaces.py; no more trailing whitespaces & tabs -> 4 spaces"
This reverts commit 65e2dcf2f0.
2014-03-29 11:32:04 +01:00
konstin
fc2d55d6a5 Fixing #1263 and little bit refactoring 2014-03-28 22:10:43 +01:00
konstin
65e2dcf2f0 Running whitespaces.py; no more trailing whitespaces & tabs -> 4 spaces 2014-03-28 20:08:39 +01:00
hiker
3c1a7b1c7b Merge branch 'master' of github.com:supertuxkart/stk-code 2014-03-07 16:05:17 +11:00
hiker
c8749a3400 Fixed unnecessary include. 2014-03-07 16:04:59 +11:00
nixt
28b089592d Merge remote-tracking branch 'upstream/master' 2014-03-07 05:17:59 +05:30
konstin
f7953f4f12 Adding debug messages for 1180 2014-03-06 20:30:52 +01:00
konstin
b561f440ba 1180 Loading Grand Prix's from locale directory 2014-03-06 11:30:51 +01:00
hiker
58a5928b17 Fixed #1228 (crash when no default player is set and -N, -R, ... is used). 2014-03-06 17:06:41 +11:00
nixt
c3bd527b8c Merge remote-tracking branch 'upstream/master'
Conflicts:
	data/shaders/ssao.frag
2014-03-06 04:25:17 +05:30
konstin
c09a3172f1 Solving Issue 1180 - Load addon GPs from local folder 2014-03-05 12:11:20 +01:00
hiker
e79a46ef38 Fixed crash when --track or --kart is used and no default player exists.
Also only print an error message if --track or --kart do not work (e.g.
the track/kart is not unlocked, or no default player exists) instead of
aborting STK.
2014-03-01 17:14:56 +11:00
hiker
1c6d63acc7 Added separate create() function for ProfileManager, and some cosmetic changes. 2014-02-26 16:34:46 +11:00
hiker
a3a5d5fc3b Moved achievements data into PlayerProfile (and data is saved in players.xml
now instead of in a separate achievements.xml file).
2014-02-20 22:04:03 +11:00
hiker
2b4729a145 Renamed player.?pp to player_profile.?pp (to follow our style
guide); removed unnecessary #includes.
2014-02-17 20:10:29 +11:00
hiker
5acf3e1681 Various compilation fixes, some cosmetic changes. 2014-02-10 08:41:54 +11:00
hiker
97be85777d Started to move current player info from unlock manager into
player_manager.
2014-02-09 23:22:45 +11:00
hiker
045bfeaf13 Removed m_all_players from UserConfigParams (though there are stil
bugs in the new code).
2014-02-06 23:08:55 +11:00
hiker
78b73aa3c8 Added new player manager, and started to replace the saved data
from user_config with player manager.
2014-02-06 14:43:47 +11:00
nixt
cc78233258 Merged from master 2014-01-23 03:17:32 +05:30
hiker
0d51477f5b Disabled online menu by default (use --online to get access to it). 2014-01-22 08:52:22 +11:00
hikerstk
9ee06a5fe0 Replaced boolstr with toString specialisation for bool;
fixed translations in current user. Otherwise many many
cosmetic only changes.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@15071 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2014-01-14 11:47:25 +00:00
hikerstk
428f74d859 Removed old network_http and related data structure. Its function
is now either in the addons/news_manager, or in Online::RequestManager.
Also added leack check and copy-preventing to online/Request.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@15034 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2014-01-13 05:21:48 +00:00
hikerstk
b136e16f7a Preparation to remove network_http (its work will be
taken over by the reqeust manager).
Initialise news and addons manager in a separate thread
and not from the network_http thread anymore. Icons are
also downloaded now from the request manager instead
of the network_http.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@15006 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2014-01-12 11:20:32 +00:00
hikerstk
54e6396df6 Renamed HTTPManager to RequestManager, and split request
into three files request, http_request and xml_request.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@14978 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2014-01-09 04:57:58 +00:00
hikerstk
a1c964f71d Some refactoring and cleanup of the online request handling:
added setter/getter, renamed functions to have better names,
removed synchronousRequest from http_manager. Should be no
change in functionality.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@14967 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2014-01-08 12:08:46 +00:00
hikerstk
7cdca13d7b Fixed all(?) warnings about signed and unsigned comparisons.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@14950 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2014-01-07 00:09:19 +00:00
hikerstk
3e8741c442 Fixed typo.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@14940 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2014-01-06 12:28:24 +00:00
hikerstk
6ee751e3c3 Added new class to handle command line parameters, which
simplifies parameter handling in main (e.g. it's not
necessary to list and ignore parameters in the 2nd
pass, when they were handled in the first pass).
Removed some command line options for which there
is a guy (e.g. --weather), or which are not really
useful (--list-karts). 

All parameters to options must now consistently be
specified using '=', e.g.: --log=1 and --kart=tux.

Also removed support for 'classic' camera (which was
not used anymore). Removed now unneccessary #include
in user_config.hpp, which made some #include changes
in other files necessary.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@14939 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2014-01-06 12:23:16 +00:00
nixt
83d91b7b07 Merge from trunk, pending.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/battleAI@14776 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-12-24 04:34:57 +00:00
hikerstk
c450c97472 Allowed the music directory to be external. Renamed
getMusicFile to searchMusic and getTextureFile to
searchTexture. Removed m_root_dir from file_manager.
Added convenience function getTexture to irr_driver
which takes an asset type, so now less code is needed
to load textures (though that's proably not used
everywhere yet).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@14736 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-12-18 22:29:08 +00:00
hikerstk
73c498daf3 Start to support 'externa' data directories. Most directories
from data can now be moved out (except music). STK prints
an overview of which directory is taken from where. More 
cleanups and improvements will come.
Also moved skins into a separate directory under data (from
data/skins), since it's likely that skins will be part
of a binary package (i.e. changes to skins not really
related to code), while gui files will more likely stay
with the code.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@14731 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-12-17 23:48:47 +00:00
nixt
43f1c59a6e Huge merge from trunk, part 1.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/battleAI@14659 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-12-08 03:45:57 +00:00
hikerstk
f7cf407208 Deallocated http manager earlier (in case that it is using a command
which needs any of the objects that have been deleted while cleaning up).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@14644 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-12-06 13:12:45 +00:00
deveee
ec13bcf802 Merge branch 'hilnius'
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@14638 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-12-05 17:28:55 +00:00
hikerstk
bced8cdb9f Merged with trunk, part 1 (due to previous failures I am splitting this
patch).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/uni@14605 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-12-02 04:27:55 +00:00
hikerstk
c0783283e0 Fixed VS compilation (without WIN32_LEAN_AND_MEAN
VS defines MAX_PRIORITY as a macro).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/uni@14384 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-11-04 09:58:24 +00:00
hikerstk
41804c99da Fixed windows compilation (without WIN32_LEAN_AND_MEAN
windows will define a macro MAX_PRIORITY, which clashes
with the constant of the same name in http_manaher).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/hilnius@14281 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-10-21 04:29:40 +00:00
nixt
d3f92542df Split AIBaseController to AIBaseLapController and AIBaseController.
AIBaseLapController inherits from AIBaseController. 

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/battleAI@14223 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-10-09 07:26:55 +00:00
hilnius
a637ce6e36 some buxfixes + implementation of the max player count
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/hilnius@14127 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-09-21 20:56:39 +00:00
hilnius
0ce03186ee merging uni's branch and fixing compilation problems
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/hilnius@13690 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-09-15 10:12:54 +00:00
hilnius
262f70205c merging trunk and fixing compilation issues
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/hilnius@13689 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-09-15 10:05:34 +00:00
unitraxx
c775662e4a fix rfc for achievements when no default profile is selected
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/uni@13685 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-09-14 22:52:21 +00:00
unitraxx
2c1d02095a Changes to HTTPManager and it's clean-up sequence. Main thread now "joins" the network thread and thus waits for all the requests to be done. (Remember me to start a discussion on the memory leak checker!)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/uni@13671 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-09-12 18:23:56 +00:00
hilnius
20418a82af Lot of changes to make a cleaner startup in no-graphics mode and having a clean exit with all threads being stopped etc...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/hilnius@13669 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-09-12 15:54:32 +00:00
unitraxx
e71d99aa2d small clean up improvement
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/uni@13668 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-09-12 02:44:52 +00:00
unitraxx
5ba1493990 Some fixes in the sequence of quiting STK. Though the thread still gets killed before the request is done.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/uni@13667 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-09-12 02:29:05 +00:00
unitraxx
cbca9404e3 Big ass commit regarding achievement viewing of other people via their profile.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/uni@13658 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-09-10 20:41:57 +00:00
unitraxx
c67c5a6fb1 Achievements progress now actually gets saved.. how cool is that?
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/uni@13634 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-09-05 23:20:39 +00:00
unitraxx
03be63ea5b Even more achievements stuff. Unlock manager is a mess!
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/uni@13630 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-09-04 19:44:10 +00:00
unitraxx
91e77a14c3 Lots of additions to achievements! core almost done.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/uni@13616 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-09-02 20:53:55 +00:00
curaga
fe9d2ec86c Mark the main clean function static
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@13600 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-08-30 11:39:40 +00:00
unitraxx
7e8d167a89 Decent clean-up when closing STK. Send a message to the server if still signed in. (Server-code will not be pushed immediately, so testers might experience errors.)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/uni@13590 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-08-28 22:45:11 +00:00
hikerstk
298bd078fb Applied Deve's patch for #1042 - thanks!
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@13588 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-08-28 13:58:45 +00:00
curaga
97232fe314 Invalid params should go to console
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@13586 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-08-28 13:51:12 +00:00
hilnius
98f3b20bcb merging uni's branch and trunk
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/hilnius@13485 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-08-15 12:35:23 +00:00
unitraxx
2711744ed8 merge with trunk
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/uni@13477 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-08-15 00:20:28 +00:00
hikerstk
9fe8d0f259 Started to work on rewinding. ATM a single kart can be rewound
to a previous time (i.e. the race continuous from the previous
location). No memory handling is done, ... all work in progress :)


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/rewind@13468 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-08-12 23:29:21 +00:00
hikerstk
f9fa721a22 Minor bugfix: if an invalid kart name was specified on the
command line, it was not ignored (as stated), it would
result in STK aborting. Now this is just ignored.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@13400 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-08-01 06:06:09 +00:00
hikerstk
5efa7c8ad2 Removed apparently unnecessary #include <io.h>, since
it will actually include io.h from wiiuse, not the
internal one from VS (which results in some warnings
about RAD_TO_DEGREE already defined).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@13399 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-08-01 06:02:44 +00:00
hilnius
057c8f46be adding things in order to be able to leave the world at the end of a network race
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/hilnius@13397 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-08-01 01:03:07 +00:00
hilnius
ea2b52a663 merging hilnius's branch
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/uni@13394 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-07-31 18:03:11 +00:00
unitraxx
8656a12d12 Undoing last commit which was not what I wanted after all.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/uni@13391 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-07-30 22:05:06 +00:00
unitraxx
75e286932f An attempt to merge with hilnius' branch
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/uni@13390 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-07-30 21:39:27 +00:00
hilnius
a20c200b77 merging uni's branch. one bug appeared back
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/hilnius@13386 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-07-30 00:41:47 +00:00
hilnius
87e9deea78 established back login from command line
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/hilnius@13343 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-07-25 01:21:03 +00:00
hilnius
c5c6c6195f merging uni's branch
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/hilnius@13337 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-07-24 15:43:54 +00:00
unitraxx
ac40b8111b Decent killing of the network singleton and thread.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/uni@13294 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-07-20 02:14:36 +00:00
hilnius
75e75c43ee adding a workaround to be able to start a network client from a server (with --no-graphics option)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/hilnius@13262 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-07-16 22:27:28 +00:00
hilnius
0625379706 slight modification in the synchronization protocol to handle correctly multiple clients on the server (token management was not working).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/hilnius@13257 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-07-15 23:28:20 +00:00
hilnius
c1534075d3 adding a protocol to synchronize client/servers and a little bit of code to test it
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/hilnius@13208 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-07-13 23:12:53 +00:00
hilnius
212b77fef3 adding features in the client lobby room protocol, separating client and server lobby room protocols in their own files to have clearer code
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/hilnius@13162 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-07-10 20:15:17 +00:00
hilnius
60e4a2bb5e adding possibilities to connect directly with command-line options, adding console entry for the client server manager'
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/networking@13144 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-07-09 12:42:44 +00:00
hilnius
f56f1ec3b1 weird commit number 2 to fix issues
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/networking@13120 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-07-08 14:36:39 +00:00
hilnius
1e94193b8b splitting --no-graphics option into --no-graphics and --with-profile options
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/networking@13118 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-07-07 22:55:21 +00:00
hilnius
9aa25a4e97 Modifications in protocols to use the http connector and xml to get information from the database. Correcting the --server option which wasn't working. Now launching supertuxkart --server will connect the user 'server':'serverpass' and start automatically a ServerLobbyRoomProtocol that listens to incoming peer connections.
Improvement of logging. Some were fatal whereas they shouldn't.
Improvement of the protocol system. There were mutex permanent locking.
Protocols that do not use http are now non-blocking (except maybe one).
A user can 'quick join' the server by logging then pressing the 'quick play' button in the online panel.
Improvement of packet serialization/unserialization
Added a ping protocol to ping peers as long as they don't respond


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/networking@13112 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-07-07 19:49:51 +00:00
hilnius
ed6e4ebfb4 correcting the ai kart bug due to the former networking removal
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/networking@13088 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-07-05 12:01:29 +00:00
hilnius
2a0a9a3617 merging uni's and hilnius's branches in networking
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/networking@13077 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-07-04 17:24:20 +00:00
hilnius
253a3ec1e8 cleaning destructors, using log:: instead of printf or std::cout, cleaning more paths, removed useless fnctions
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/hilnius@13076 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-07-04 16:59:30 +00:00
hilnius
613e97d0d6 breaking everything that was working. cannot even start a race now, need to rewrite the network manager and part of the race startup sequence
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/hilnius@13032 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-06-29 22:57:18 +00:00
curaga
454fef7fe4 Fix crash when closing window in the middle of a race
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12911 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-06-21 08:19:17 +00:00
auria
485551aa89 Apply patch by KroArtem to fix minor issues : unused variables and other minor warnings from cppcheck, crash when launching from terminal with AI karts in a mode where AI is not supported
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12857 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-06-09 20:04:07 +00:00
curaga
a6a2ec66d4 Make fatal fatal
Removes a lot of duplicated code.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12827 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-05-31 14:09:39 +00:00
curaga
ef9a1e78eb Only the GL driver is supported.
DX hasn't worked in months, SW are not worth their LOC, and NULL is pointless with 
--no-graphics.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12825 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-05-31 14:07:43 +00:00
hikerstk
366f8cd6b1 Cosmetic changes only.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12824 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-05-31 06:26:47 +00:00
curaga
b8cc3217d2 Fix an inefficiency in listing. Using std::string here allocates memory needlessly.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12810 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-05-30 12:37:59 +00:00
curaga
007bbacf5f Fix the --list options, broken by the file logging (we _want_ them to console)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12806 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-05-30 11:24:39 +00:00
hikerstk
717e0e2992 Fixed installation (the desktop entry still used --log=file
instead of --no-console), fixed help text for --no-console as well.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12799 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-05-29 23:44:28 +00:00
curaga
b56bf4dc53 Remove trailing space, git doesn't like it
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12797 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-05-29 22:04:35 +00:00
hikerstk
6d097b6ad5 Added --wiimote-debug command line option to print raw values read
from a wiimote.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12773 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-05-16 06:50:41 +00:00
hikerstk
da9d75bbae Re-enabled windows console in debug mode - it's just handy to have ;)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12727 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-05-10 23:19:36 +00:00
hikerstk
e99e944f9b Fix #942. Thanks to hilnius.
(note I modified the original patch, and had no opportunity to verify it
again on linux. If it doesn't work, blame me, not hilnius).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12713 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-04-30 07:17:02 +00:00
hikerstk
5776ae8b80 Log all important info to stdout.log on windows (part
of #836: remove console on windows).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12689 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-04-23 00:28:11 +00:00
hikerstk
c9695fa1d2 Disable console window on Windows (#836). Thanks to hired777 for the patch.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12678 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-04-21 12:39:25 +00:00
hikerstk
23814a3145 Fixed 'fixmes': checking for locked tracks and karts did not work
anymore (since it's not known which player is actually selected to
use those). Since it can be assumed that whoever uses --track
or --kart will also use -N (otherwise the GUI will handle notification
of the player), this is now tested for player 0.
Also the corresponding --list-kart/track options will now use all
karts/tracks, but add '(locked)' at the end of locked items.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12667 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-04-17 07:18:23 +00:00
hikerstk
2829f711c6 Applied curaga's patch for #675: don't create GUI with certain
command line options - thanks!


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12666 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-04-17 07:00:30 +00:00
hikerstk
9a9ff77812 iAdded new 'best' AI difficulty. ATM this is not locked yet, and
art work (icon) is still missing. Also we have to find what
to call it (atm 'Iron Man').


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12637 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-04-11 06:17:46 +00:00
hikerstk
a14a9df3f1 Removed unnecessary "\n" in Log messages.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12551 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-03-14 05:26:17 +00:00
funto66
07c74c41b5 Merge soccer mode back into trunk - but still WIP, can be disabled via a #define in race_setup_screen.cpp
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12475 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-02-11 22:30:50 +00:00
funto66
43a37aee1b Only enable Christmas mode in December, except --xmas=1 is given in the command line
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12465 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-02-09 15:01:58 +00:00
hikerstk
97e8fddd7e Added --wii command line option, which shows the connect-wiimote dialog
at startup.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12456 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-02-05 11:11:25 +00:00
hikerstk
4410101721 Remove the usage of '//', which isn't properly supported by Irrlicht's CFileList
("a/b" and "a//b" on a file archive are not equal) and is not necessary.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12402 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-01-21 05:37:33 +00:00
hikerstk
67dc8141da Use Log:: in main.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12378 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-01-17 21:44:51 +00:00
auria
16df188b03 Delete old unsued files
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12356 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-01-14 01:02:38 +00:00
hikerstk
5d8c0d7be1 Added log infrastructure. Only a few files of STK are actually using it,
but all (f)printfs should be replaced. Note that I had to rename
tinygettext/log.?pp to avoid linking problems on windows.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12351 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-01-14 00:38:07 +00:00
hikerstk
57a29ff15c Added popup window to show a news message that has
'important="true"' specified. The message is only
shown once.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@12345 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-01-09 05:46:26 +00:00
funto66
e16c03edf2 Added a special type of tracks for soccer arenas
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/christmas@12300 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-12-22 22:33:15 +00:00
auria
4cc1222681 Try to fix #663
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11958 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-11-16 01:57:36 +00:00
hikerstk
7d33125f54 Mostly cosmetic change: renamed RD_EASY etc to
DIFFICULTY_EASY to make it easier to understand;and
removed separate DIFFICULTY_COUNT constant and
replaced it with an entry in the enum (this means
one less change if a difficulty is added). 
Changed layout to be closer to our style in race_manager.hpp.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11733 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-10-21 23:06:33 +00:00
red-skull
5d5d004d3f Bugfix for #682: we now allow to remove addons when no access to the net is available.
Also add a timeout for download request.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11679 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-10-13 19:49:48 +00:00
hikerstk
d126d7c76f Properly implemented NetworkHttp using a interface and
a singleton-like pattern.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11616 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-09-20 05:51:19 +00:00
hikerstk
e2caea1c05 Refactored ItemManager to use static components to load
the default item meshes. An instance of it is now only
created when a race is started (and deleted once the
race is finished). This makes the race-specific 
initialisation and cleanup better to understand. Also
added singleton access to the one instance of ItemManager.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11498 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-08-09 06:37:29 +00:00
auria
178ec7eb18 Apply patch by nathanm32292394
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11407 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-07-20 01:14:16 +00:00
hikerstk
810586ff09 Added --type [0,1,2] command line option to allow setting the race
type (0=normal, 1=time trial, 2=FTL).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11384 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-07-11 22:02:56 +00:00
hikerstk
57c68cc9ea Fixed help message which was partly deleted.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11369 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-07-06 01:58:40 +00:00
hikerstk
b3c0eeab80 Skidding AI now estimates the turn radius of a curve, and is
able to brake if it should be too fast. Avoid using nitro
when braking (otherwise AI might be pushed out of curve).
Added new --ai-debug command line option that will display
the name of the AI on top of each kart (when compiled with
debug). See world.cpp lines 249 on how to select the new 
(or any other AI, including the option to use all AIs,
which is nice to compare them).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11368 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-07-05 22:37:57 +00:00
hikerstk
dbf7654178 Removed automatically starting a race if --ghost is specified, since this will
start the wrong race if no --track is specified.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11244 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-05-17 23:11:41 +00:00
auria
9cc6593a4c Quick fix to make --list-tracks and --list-karts available again. Note that I removed the feature to list only unlocked ones, since we now support many game slots, so it's not clear who's game slot's unlocked things we should show
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11239 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-05-15 01:24:59 +00:00
hikerstk
ddace7368c Set a more sensible default value for number of tracks in demo mode.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11204 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-05-08 00:17:33 +00:00
hikerstk
c15528f903 First version of demo mode. Use --demo-mode T to start
a demo after T seconds of idle time, --demo-tracks a,b,c
to specify a list of tracks to use for demo mode, --demo-karts
to specify the number of karts.
This is WIP, esp. it crashes if ESC is pressed during a race
(other keys will successfully return to main menu).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11189 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-05-07 00:10:33 +00:00
auria
7e5f51b270 Identify players by a unique ID and no more by their name, so that when you rename a player game slots are no longer so confused. This is a somewhat painful change, please report any breakage
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11146 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-04-24 01:28:43 +00:00
auria
6f58350098 Return to overworld when exiting a race if race was started from overworld
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11065 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-04-01 15:42:44 +00:00
auria
1b85ced4f9 Allow remembering Window position. Useful for multi-monitor setups. Only works for Windows at this time I'm afraid - although the code for Linux is mostly there
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@11046 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-03-29 01:04:07 +00:00
hikerstk
ebbc1a71d8 Introduced an 'abstract kart' class, which is used to
de-couple kart implementation and its interface. This
significantly reduces compile time when changing kart.hpp,
but is at this stage still work in progress.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10997 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-03-19 20:21:11 +00:00
hikerstk
72070db1a0 Fixed memory leak: the virtual createPhysics function of
GhostKart was not called, since it was called during when
the contrsuctor of Kart was executed (at this time the
GhostKart vtable wasn't set up, so Kart::createPhysics)
was called - which resulted in a memory leak since all
physics parts of the kart were actually allocated (just
not used). To fix this, karts are not constructed in two
phases: first a constructor, followed by a call to init
(during which virtual function can be used).
Fixed several bugs were physics data for a GhostKart
were accessed.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10947 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-03-07 02:41:41 +00:00
mbjornstk
64e49ca09b Add missing \n in help text.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10913 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-03-02 02:05:53 +00:00
hikerstk
3fc43d4d14 Refactored replay by splitting it into one base class, and dedicated
classes for recording and for replaying. Added compression (by use of
interpolation) settings to stk_config - atm only using a certain
frequency (delta-t setting in stk_config) is used.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10904 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-02-28 22:33:49 +00:00
hikerstk
bce6113fd7 Added first version of (uncompressed) replays - atm only
kart positions and rotations are saved.
To save a replay, press ctrl-F10 which will create a file
in the stk config dir 'trackname'.replay .
To replay, use --ghost command line, and select the
track with the same name (at this stage the replay is
loaded even if number of laps and difficulty is different).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10897 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-02-27 05:52:17 +00:00
hikerstk
579715a8d8 Merged trunk with this branch. ATM the track screenshot does not work -
I am going to fix this next.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/reverse_mode@10862 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-02-16 04:57:49 +00:00
hikerstk
648eb17e0a Added command line option for reversing tracks.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/reverse_mode@10808 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-02-05 20:56:45 +00:00
hikerstk
8dd5b8461c Make sure that --history (and other options that immediately cause
a race to start) work properly without having to specify -N.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10787 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-02-02 05:18:59 +00:00
hikerstk
68cbd9696d Started to add some breakpad tests and a special VS9
configuration to test it (not even compiling yet).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10655 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2012-01-12 05:43:14 +00:00
funto66
569308a730 git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10539 178a84e3-b1eb-0310-8ba1-8eac791a3b58 2012-01-01 21:19:13 +00:00
auria
ed432fbdf4 Disable checking if kart/track is locked when launching from terminal, avoids crash
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10404 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-12-12 01:03:44 +00:00
auria
8b65c3d084 Fix crash when starting from terminal with option -N
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10388 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-12-10 02:44:35 +00:00
auria
92eb0ebd2a Ran a small bash script to remove all of those annoying strings. The only thing they gave us were the need to rebuild after committing
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10363 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-12-06 18:43:36 +00:00
auria
bd36a57164 Add initial seelct identity screen
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10357 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-12-06 02:06:48 +00:00
auria
0455efd20d Massive refactor in challenge code to allow having more than 1 progression
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10349 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-12-05 22:00:42 +00:00
auria
cccdbb14f7 Remove accidentally committed code
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10325 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-12-04 01:32:17 +00:00
auria
3c4c88e57f Refactor LOD loading to make it easier to make animated LOD objects next
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10321 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-12-04 00:51:20 +00:00
hikerstk
2c33ed75ed Merged the physics branch back to trunk. There should be no change at
this stage for users.
The physics branch added a few new stability options (which are disabled
by default), fixed bug and reproducing history files when using physics
replay, using --log=file command line option. See log on the physics
branch for full details.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10292 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-12-01 01:14:10 +00:00
auria
c50e1a6c8b Apply patch that is a bit similar to what xapantu did, but in a IMHO more modular way
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10263 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-11-27 00:48:02 +00:00
auria
9ca73ca5f3 More on Doxygen
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10040 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-25 17:53:07 +00:00
auria
d04bc58413 Quite a bit of work on Doxygen docs to contain an overview of the STK source code base
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@10039 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-25 17:46:14 +00:00
auria
b5669e151c Fixed what happens when starting from terminal and the akrt 'random' is selected in the suer config
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9994 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-16 00:18:13 +00:00
hikerstk
941b8aeeba Added a consistency check for addons: if the addons_installed.xml
file is out of synch (due to a bug in 0.7.2 an empty file would be
written if internet is disabled or not working, resulting in
information about installed addons being lost), the installed addons
are now marked as being  installed again (bug #455).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9976 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-13 21:29:10 +00:00
hikerstk
41b4aa96af Fixed memory leaks for particles.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9975 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-13 11:20:15 +00:00
hikerstk
a93d05d046 Fixed unnecessary creation of an irrlicht NULL device (one in file_manager,
one was created just to get the list of modes, before the actual device
is then created). This fixes a minor memory leak (the 2nd NULL device was not
freed), encapsulates all device creation into irr_driver (and not in 
file_manager).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9967 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-12 11:28:35 +00:00
hikerstk
341b87fd3a More cosmetic changes.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9940 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-10-05 04:15:19 +00:00
hikerstk
cc9fce2965 Fixed VS compilation problem ('free' is a macro) by renaming free to deallocate.
Updated VS 9 project file.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9889 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-23 00:07:24 +00:00
auria
978bb5466b Fixed a couple more leaks
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9886 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-22 18:24:28 +00:00
auria
07afe4c87b Fix quite a few leaks in the GUI engine, and introduce my quick leak-detection macros in dbeug mode (with Joerg's approval)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9885 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-22 18:08:04 +00:00
hikerstk
f85556d83a Added thunderbird as start referee. Known bugs:
1) Ready, Set, Go is still shown.
2) Orientation of thunderbird is not correct in
   all cases (esp. in battle mode).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9822 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-14 00:48:49 +00:00
hikerstk
13de49b5ee 1) Improved rubber ball handling, which should work better in tunnels
and inclines now.
2) Added --debug=flyable debug option to use print plenty of debug output
   for rubber balls (needs to be compiled with -DDEBUG to work).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9762 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-09-05 23:20:23 +00:00
auria
bb6ae3f1fa Correct the first-use string
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9581 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-08-20 21:02:28 +00:00
auria
753ef5c351 Fixed bug found by KroArtem where crashes occur if you specify an invalid gp name on the terminal
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9541 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-08-17 00:22:50 +00:00
coug36
b85ea2ce9a Added message dialog to reload button on Addons screen. Added callback functionality to the OK dialog by adding a message dialog type enum and requiring it in the constructor. See #266
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9532 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-08-16 08:13:43 +00:00
hikerstk
d26bc30c9c Added destructor for addons_manager that saves the installed
addons file (and therefore saves the information about cached
icons and prevents them from being re-downloaded next time
STK is started). Fixed #382.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9509 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-08-15 22:04:07 +00:00
hikerstk
5edbdca4e7 Renamed cleanTuxKart into cleanSuperTuxKart.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9508 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-08-15 21:59:57 +00:00
hikerstk
2172f1c4df Applied changes from statistics branch to trunk (r9413 - r9484).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9503 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-08-15 02:00:50 +00:00
hikerstk
209237a0c8 Bugfix - incorrect &.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9414 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-08-03 02:19:01 +00:00
hikerstk
b33c10a369 Fixed missing newline (thanks coug36).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9410 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-08-03 00:23:04 +00:00
hikerstk
2fe73a6deb Removed commented out code (that doesn't work anymore).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9398 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-08-01 00:04:48 +00:00
auria
b669180ea9 Rename the messages about internet to mention add-ons and not only news
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9395 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-07-31 01:26:31 +00:00
hikerstk
83680f4637 Added --ai=a,b,... command line option to allow specification
of which AI karts to use.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9381 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-07-28 22:56:49 +00:00
hikerstk
a62e0f86d3 1) Added new --no-graphics option for fast batch testing.
Renamed --profile=+-n options to --profile-laps=n
   and --profile-time=n.
2) Fixed averaging in case of --profile-time.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9372 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-07-27 12:11:11 +00:00
funto66
d26b406780 Starting the merge with the swatter branch. Now it should be automatic with karts, but doesn't work with items (yet).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9275 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-07-15 23:38:40 +00:00
funto66
a8919a8252 Added experimental and buggy hardware skinning support + removed a useless loop in the material manager
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9253 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-07-14 00:59:00 +00:00
funto66
1c2795f0c8 Added a debug option to skip the ready-set-go phase
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9168 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-07-05 21:22:50 +00:00
auria
2d824186fd Fixed crash when starting into an arena from command-line
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9095 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-06-26 22:49:09 +00:00
auria
6c3bb3d12e Fixed a few typos in main.cpp found by Crendgrim and KroArtem
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9077 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-06-26 14:41:09 +00:00
hikerstk
da8ec214ce Added a very first version of a swatter (or inflatable hammer).
Details are in the wiki (http://supertuxkart.sourceforge.net/Items).
Note that the model is _obviously_ a placeholder, and I  used
the icon for the bomb (which isn't used in game atm) for the
swatter. I hope someone can provide a better model and icon.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@9011 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-06-22 12:27:48 +00:00
hikerstk
cdb2a7dab6 Removed support for explicit setting of verbosity flag using -v
(which clashed with -v usage for version number). Use
--debug={memory,addons,gui,misc,all}.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8815 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-06-04 14:06:06 +00:00
auria
6e4cee9341 Includes cleanup; especially avoid including in headers, creating implicit dependencies and horrible chains of recursive includes. Avoid iostream when possible because this header is not small
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8749 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-29 19:52:24 +00:00
auria
1671a445b1 Remove leftover check for ADDONS_MANAGER
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8723 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-27 01:06:31 +00:00
auria
d501753ef2 Clean up irrlicht includes; avoiding including the huge irrlicht.h when we only need one specific class, especially in header files; use forwards when possible
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8660 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-22 18:03:28 +00:00
hikerstk
c52fa8ceff 1) Fixed race condition: the network thread could access network_http
before it is assigned.
2) The network thread is now signalled to quit earlier, giving it more
   time to quit cleanly.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8563 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-13 06:29:12 +00:00
auria
1ad86ccf55 Allow escaping from gamepad visualisation screen
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8554 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-13 00:03:12 +00:00
hikerstk
498a0a104e 1) Moved news message handling into a separate object.
2) Added prioritised request list to network manager.
3) Fixed ticket 217 (crash at shutdown), which happens if 
   the background thread downloading the icons is still
   active when STK is quit (and then accessing managers
   that have been deleted).
4) Handled partial downloads correctly: files are now
   downloaded with ".part" appended to the filename,
   and only upon a successful download renamed to 
   the original name.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8552 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-12 23:51:00 +00:00
hikerstk
9c127322f2 Added assert to material_manager to catch if unintentionally
temporary materials are made permanent (while this is not
a memory leak, the code should use the right functions to
indicate which materials will stay around). Fixed some
materials that became permanently even though the code
called 'pushTempMaterial' (but the materials stayed
permanent). Moved icons_frame into commong race gui
base class, and made race gui textures permanent (so
that they don't cause any false texture-leaked messasges,
and also to avoid loading them again at each race).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8514 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-05-04 00:15:46 +00:00
hikerstk
6f765cb95f Added --debug=all as a shortcut if all debug output should be enabled.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8482 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-04-29 03:42:47 +00:00
hikerstk
84badc0eeb Added --debug={memory,gui,addons,misc} command line
option (so far only memory debug is actually supported
by debug code).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8478 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-04-28 10:56:13 +00:00
hikerstk
af2476c6e0 The verbosity was set too late, so many messages where not shown.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8466 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-04-27 00:11:16 +00:00
hikerstk
ea64332130 Accept both American and Britain spelling for -gamepad-visuali{s,z}ation.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8294 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-04-12 01:23:27 +00:00
auria
6c71c30b8c Undo test modification I accidentally committed
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8234 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-04-06 23:45:34 +00:00
auria
0c30bfbf53 Tweak RTL : should only happen when a stirng is actually translated, if no translation is provided and the string stays in English keep it LTR
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8232 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-04-06 23:43:17 +00:00
hikerstk
5a43a98286 Fixed incorrect function for setting environment variable in windows, which
resulted in the saved language not being used.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8203 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-04-03 23:20:17 +00:00
auria
05a2ee825c Print irrlicht version on terminal as per suggestion by Joerg (but I realize this isn't really needed since irrlicht logs it anyway)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8153 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-31 22:27:04 +00:00
hikerstk
a074268876 Fixed hang when STK ends the first time internet news is enabled.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8151 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-31 21:13:40 +00:00
auria
4a8c7c05e0 Change popup message now that we have yes/no
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8149 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-31 16:25:08 +00:00
auria
b056d06ea9 ops, forgot to close the dialog once the user gave their answer
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8148 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-31 16:20:04 +00:00
auria
da46fe21cb Add a IConfirmDialogListener to the 'can I access iternet' popup + while we're at it, modify the Dialog class a bit to simplify memory management in some cases
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8147 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-31 16:17:51 +00:00
hikerstk
64411d616f Fixed typo in previous commit.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8145 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-31 10:25:05 +00:00
hikerstk
542aabf0a5 Added a popup window to inform the user about STK accessing a server
on the internet. 
Auria: I couldn't easily find (or remember) the class to use which allows the
user to select yes/no - could you fix that?  


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8144 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-31 10:15:09 +00:00
auria
b548b1bc93 Rename VERSIOn to STKVERSION
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8132 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-30 23:41:25 +00:00
auria
1c270cde1f Add VERSION to constants.hpp, please remove that define from Visual Studio file and autotools
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8131 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-30 23:31:29 +00:00
hikerstk
ca651b37b3 Removed all #ifdef VERSION, since VERSION is necessary to set the user-agent
for the news server, so we detect any problems with VERSION at compile time.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8106 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-29 22:25:20 +00:00
hikerstk
6867018d52 Enabled news (but not addons) in normal debug mode.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8086 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-27 12:10:07 +00:00
hikerstk
28aaaf4f5b Added --ftl-debug command line option, to print some debug information for
FTL (esp. GP) races.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8018 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-21 06:15:39 +00:00
auria
94015c38cd Fixed kart/track confusion in command-line output
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7800 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-03 21:56:30 +00:00
auria
3a3619750a Artist debug features are now enabled even in release builds, but disabled in config by default
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7780 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-02 00:04:13 +00:00
auria
230de5728d Forbid selecting locked kart when starting from command-line
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7779 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-01 19:23:23 +00:00
mbjornstk
b8a0ab32b4 Apply camera changes provided by Jesse Smith to have v0.6 camera option.
Feel free to fix any C++ style issues, this saves you fighting with patch or
can be undone quickly by reverting this single commit.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7739 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-02-20 05:11:26 +00:00
auria
83049114db Change way language from config is set in the environment, should hopefully work under Linux now
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7722 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-02-18 01:21:50 +00:00
mbjornstk
42cd443a54 Add --rendering-debug to allow testing material settings or anisotrophy speed.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7700 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-02-14 02:07:04 +00:00
auria
896e2664fc Fixed track names not being translated on live language switch
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7633 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-02-06 02:59:19 +00:00
auria
a580f413e3 Fix kart names not being translated on live language switch + correct more RTL issues I found on the way
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7632 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-02-06 02:49:45 +00:00
hikerstk
4ab6331ff4 Update to bullet-2.77.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7579 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-02-02 22:04:13 +00:00
mbjornstk
0cb39ad40c Fix typo in string and shorten other to fit console.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7490 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-20 03:13:57 +00:00
auria
66e5d396bf Make 'guest' translatable again, fixed chicken-and-egg issue with initialisation order
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7446 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-16 16:56:21 +00:00
auria
24d0d549ba Improve error handling in XML classes (namely, atoi must die) since I was bitten several times now by insufficient error handling. Also set up base architecture to support the new gfx mode 'my kart is animated but not Ai karts', though it doesn't work atm for the simple reason that at the time the model node is created we do not yet know if the kart is player or AI...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7432 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-16 00:06:59 +00:00
auria
28db1165b1 Remember language selection in user config + fix a few language menu glitches
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7430 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-15 21:49:15 +00:00
mbjornstk
70be2dc965 Add --weather=0 (or 1) parameter to set weather effects.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7413 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-14 04:05:46 +00:00
hikerstk
eeafd79995 Fixed compiler warnings.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7363 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-11 21:06:19 +00:00
auria
a9d7500fe2 Add gamepad visualisation command-line option, maybe can help debug those issues with gamepads stuck...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7350 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-10 16:49:34 +00:00
hikerstk
110af2b7ae Removed/replaced getKartFile/Dir functions in file_manager, which
should solve issues with addon karts not being found or textures
not correctly loaded.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7248 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-04 05:47:49 +00:00
auria
fa8b2a8ed6 Improve documentation of race manager; this is one huge class so having good doxygen docs is important. Also clarify difference between setNumPlayers and setNumLocalPlayers; replace many calls to setNumPlayers with calls to setNumLocalPlayers, since setNumPlayers is called by the network manager already and as such calls to setNumPlayers had no effect (the same method was called again later) and were just confusing
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7236 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-03 20:17:44 +00:00
auria
fdbafeb5ff More FIXME cleanup
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7233 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-03 19:06:45 +00:00
hikerstk
d11fed1471 Fixed incorrect/hard coded paths.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7219 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-03 03:28:18 +00:00
mbjornstk
810dbc3edc Add --animations=[01] and --gfx=[01] to control effects from command line.
Plus clean a bunch of tabs and trailing whitespace.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7207 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-12-31 05:04:59 +00:00
hikerstk
ce986d623d Many style changes and code improvements to addons management.
The addons icon is now greyed out in case of an error (and till
the list of addons is downloaded, though usually that is done by
the time the main gui is shown). Moved synchronisations/threading
from addons_manager to network_http. Added 'Synchron' template
to hide usage of mutex to provide synchronised accesses to a variable.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7177 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-12-28 22:48:44 +00:00
aeonphyxius
86ba25bc59 Tutorial incremental commit. Add main loading and improving xml loading
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7150 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-12-23 13:38:38 +00:00
hikerstk
d8afbe9750 Added missing newline to information message.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7149 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-12-23 04:52:42 +00:00
hikerstk
588870d9bd Renamed network.?pp to network_http.?pp.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7141 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-12-22 10:37:23 +00:00
hikerstk
29e29c7bb7 Renamed addons.?pp to addons_manager.?pp.
NOTE: make distclean is most likely necessary on linux!!!!


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7138 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-12-22 06:00:58 +00:00
auria
9f27068fb7 Fixed kart paths randomness issue (and probably many others) : don't continuously call srand, srand is made to be called ONCE only, repeatedly calling srand gives very poor randomisation
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7082 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-12-19 01:55:29 +00:00
hikerstk
5bbbea2d3c Fixed compilation problems when not using addon manager.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7042 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-12-16 22:28:33 +00:00
hikerstk
8ecee44a35 Renamed getConfigFile to getDataFile (since getConfigFile
would actually not return a directory under getConfigDir).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7041 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-12-16 21:59:06 +00:00
hikerstk
f5662118c6 Made addon manager compiler with windows (though not working yet).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7039 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-12-16 21:07:14 +00:00
hikerstk
be7e8793b6 Fixed various compilation problems.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6945 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-12-10 05:54:04 +00:00
aeonphyxius
777292a74f <stkgui>
<div x="5%" y="0" width="90%" height="98%" layout="vertical-row" >
    
        <icon id="logo" align="center" proportion="8" width="100%" icon="gui/logo.png"/>
        
        <buttonbar id="menu_toprow" proportion="3" width="75%" align="center">
            <icon-button id="new" width="128" height="128" icon="gui/main_race.png"
                    I18N="Main menu button" text="Race"/>
            <icon-button id="network" width="128" height="128" icon="gui/main_options.png"
                    I18N="Main menu button" text="DEBUG"/>
            <icon-button id="challenges" width="128" height="128"
                         icon="gui/challenge.png"
                         I18N="Main menu button"  text="Challenges"/>
			<icon-button id="tutorial" width="128" height="128"
                         icon="gui/tutorial.png"
                         I18N="Main menu button"  text="Tutorial"/>
        </buttonbar>
        
        <spacer width="10" proportion="1"/>
        
        <buttonbar id="menu_bottomrow" proportion="3" width="85%" align="center">
            <icon-button id="options" width="128" height="128" icon="gui/main_options.png"
                    I18N="Main menu button"  text="Options"/>
            <icon-button id="help" width="128" height="128" icon="gui/main_help.png"
                    I18N="Main menu button" text="Help"/>
            <icon-button id="about" width="128" height="128" icon="gui/main_about.png"
                    I18N="Main menu button" text="About"/>
            <icon-button id="quit" width="128" height="128" icon="gui/main_quit.png"
                    I18N="Main menu button" text="Quit"/>
        </buttonbar>
        
        <spacer width="10" proportion="1"/>
        
    </div>

</stkgui>

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6940 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-12-10 01:42:08 +00:00
hikerstk
e9365d3a70 Fixed memory leak (title music was not freed).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6768 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-11-29 11:03:22 +00:00
hikerstk
6f28bb281c Added visual debug support (--slipstream-debug).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6713 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-11-24 21:05:45 +00:00
auria
cb78ded2ed Tidy up logging + other minor fixes
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6647 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-11-19 17:19:13 +00:00
hikerstk
87f849184d Added support for --material-debug command line option, which prints
the texture the kart is on and its slowdown related parameters.
This should help debugging incorrect slowdowns.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6341 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-10-26 09:29:44 +00:00
xapantu
ead0f00638 Add addons search path for the tracks and reload the tracks list when an addons is installed
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6293 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-10-16 14:01:17 +00:00
hikerstk
ecfd912d54 Fixed --stk-config parameters: the user specified config file was read too late
(after all karts were loaded and therefore initialised with the original config
file default parameters), see bug 3072762.
-This line, and those below, will be ignored--

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


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6166 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-29 23:09:53 +00:00
auria
2c98942c6c Fixed empty GP list
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6088 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-20 17:36:12 +00:00
auria
db012e081f More icons to the shiny loading screen ;)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6071 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-19 19:30:14 +00:00
auria
37901f7f39 Absolutely frivolous, but very cute, change : show icons of what is being loaded during the loading screen (sorry, couldn't help but waste time on this =)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6054 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-18 23:09:02 +00:00
hikerstk
286d12a5f2 Added number of mesh buffers to --kartsize-debug.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6025 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-16 05:48:26 +00:00
hikerstk
bb73c6f2f8 Fixed 'tabs' in file.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6008 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-15 00:38:07 +00:00
hikerstk
8cb6503ab3 Fixed --kartsize-debug command line option.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6007 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-15 00:31:05 +00:00
auria
5c0fba91f0 Init GUI as early as possible and show a loading screen during the first seconds when STK is loading
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5965 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-11 18:17:17 +00:00
xapantu
96abb55c7d Change the name of the addons screen (from options to addons)
Use a single pointer for addons, it is now initialized in main()
Working on the update screen, we can now see which addons can be updated

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5925 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-09-08 18:02:48 +00:00
hikerstk
47070a2f5a Added --gp option to start a GP from the command line.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5707 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-25 22:35:53 +00:00
xapantu
ad6785a2b2 Start a class for the network; use sample functions is getting dirty.
Starting to implement the 'redirection' system (e.g. if we want to change the server

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5665 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-07 17:02:08 +00:00
xapantu
b4d372489b A dirty hack to add addons direcotory support in kart loader and a fix for addons path
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5605 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-07-01 12:15:57 +00:00
xapantu
5a653e26e9 Adding the addons menu, I am going to write a mail to the ML
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5597 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-06-30 18:40:55 +00:00
xapantu
f0094304da Adding the '--with-addons' option in configure.ac
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5596 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-06-30 17:07:42 +00:00
hikerstk
200aa4ca36 Added new command line flag to enable debug debug camera (showing the view from high above
the kart down).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5286 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-04-26 23:28:11 +00:00
hikerstk
a572f7bf1b PowerupManager now loads its texture from models subdirectory, too
(including materials.xml file). Moved icons for those models
to model directory, too.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5247 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-04-23 12:54:15 +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
468507af8b Added debugging features for check structures (use --check-debug), which
prints when a checkline is triggered or activated.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5211 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-04-19 12:37:45 +00:00
hikerstk
939caf1981 1) Added -v X verbosity command line option, so that debug output is only printed
if an appropriat ehigh verbosity is selected. For now most debug statements 
   that are always printed (i.e. independent of user actions) is only printed
   if verbosity is >=5,  debug statement which are a reaction of a user action
   with verbosity >=4.
2) track- and gamepad-debug flags are not saved in config files anymore, made
   disabled reverse_look_threshold as default.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@5063 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-03-24 23:52:41 +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
hikerstk
1552693cf4 Bugfix: history mode needed -N to work (solved by --history setting the -N flag automatically).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/switch_coordinate_system@4966 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-03-10 10:14:36 +00:00
hikerstk
d7c44cc93d Physics debug mode now cycles through off, show karts and collision shape,
to show only collission shape and then back to off. The command line
option --bullet-debug was removed.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/switch_coordinate_system@4853 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-26 07:03:12 +00:00
auria
616a3b3719 Fixed STK to not stumble upon command-line arguments that the OS X Finder might pass to the process
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4837 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-25 00:40:25 +00:00
hikerstk
f41150eae7 Replaced OpenGL bullet debug view with irrlicht bullet debug view.
Debug view can now be switch on and off during a race (ctl-F11),
but currenlty does not display as much information as the 
original debug view (more to be implemented here).
Removed glut dependency.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4794 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-22 12:02:13 +00:00
hikerstk
93e15df841 1) Replaced all .projectile files with one powerup.xml file,
replaced items.item with items.xml. Cleaned up item_manager
   and removed support for different item styles (since it
   didn't work anyway)
2) If a swapper item is used while items are swapped, they will
   now un-swap.
3) Moved all models and textures from data/items to data/models.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4648 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-02-07 02:05:21 +00:00
auria
bf40d0191e Don't abort STK when there's a bogus challenge file (e.g. a LISP file left from 0.6)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4472 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-01-15 19:01:45 +00:00
hikerstk
d6b91f8fc3 Applied Stephen Just's patch 2926028: search for data directory relative to the executable,
which allows STK to be started/debugged in VS without having to set a working directory.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4439 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2010-01-12 02:02:13 +00:00
auria
7d1c82d73c Fixed a lot of translation crap related to XML, hacky challenge files, no GUI, etc...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@4342 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-12-22 21:57:15 +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
auria
cb91674631 Started adding support for multiple keyboard players (does not work at kart selection screen atm)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@4223 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-11-14 15:09:34 +00:00
auria
bc9f8ebf6c Improved assignment of mouse to which player (a few known glitches when game master uses a gamepad, but getting better overall)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@4193 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-11-02 01:04:05 +00:00
auria
1292e2a37f Yay for another mammoth commitsvn rm src/states_screens/options_screen.hpp Major cleanup in screens event handling, so that I can look at my code without being ashamed ;)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@4077 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-10-04 23:59:05 +00:00
hikerstk
0a84da2726 Applied Hendrik's patch:
Adding command line option --renderer.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@4023 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-09-15 04:48:14 +00:00
hikerstk
9e2d3e6418 Bugfix: --screensize/-s option did not work anymore.
Thanks to Hendrik Dark for the patch.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3994 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-09-04 03:56:47 +00:00
auria
b615f71818 Improved error message so next time i get such error i'm not as clueless ;)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3975 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-09-01 20:38:54 +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
hikerstk
88abe09dd6 1) Added --kartdir directive, allowing loading of
additional karts from other directories.
2) Fixed potential bug (--track might have allowed you to
   run a locked track)
3) --list-tracks and --list-karts can now keep on running
   (before STK would be ended) - but they are slower now
4) Renamed all kartname.irrkart file to kart.xml. I realised too
   late that those files had not been converted to xml yet.
   It will be fixed later.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3930 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-27 06:22:52 +00:00
hikerstk
4ce732574a 1) Added support for new --trackdir command line parameter (which specifies a directory with more
tracks).
2) Challenges are now saved in its own file (not in user config file anymore).
3) The TRACKNAME.{irrtrack,scene,graph,quads} files are now called {track,scene,graph,quads}.xml
   (so not containing the name of the track anymore). Beach and lighthouse tracks have been
   updated.
4) Track exporter uses the new filenames above.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3915 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-25 11:58:25 +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
cosmosninja
15902af969 Added XML support for the stk_config.data file and challenges; removed the LISP support.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3910 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-23 19:44:31 +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
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
auria
600ac7ebf5 Fixed backspace in new player dialog dismissing the dialog
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3867 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-16 19:25:15 +00:00
rforder
47cfe64301 More cleanup. Replaced StateManager::addActivePlayer(PlayerProfile *) with StateManager::createActivePlayer(PlayerProfile *, InputDevice *) . This will ensure that in the future no active players will accidentally be added without an associated device and also removes some redundant code.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3860 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-14 17:36:47 +00:00
rforder
8b3b8e3d28 Fix for no keyboard support when using --no-start-screen switch.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3859 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-14 17:05:52 +00:00
auria
70f74f7142 fixed crashes with command line arguments
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3790 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-08-02 17:56:59 +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
987e230ca0 fixed running with both -N and --kart
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3780 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-07-21 01:43:24 +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
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
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
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
8130ab34af Bugfix: include of cstring was missing, resulting in strcmp not
defined on some platforms.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3615 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-06-18 02:13:00 +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
auria
63c6229fbc Fixed passing reolution on the command-line with -s. Improved command-line flags handling to not create a graphical context when none is required (like for --help or --version)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3596 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-06-07 15:20:51 +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
075c9dbb86 Moved more files into appropriate subdirs, update build
system for VS (verified) and autoconf (not verified).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3574 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-06-02 12:37:29 +00:00
auria
99e6752200 totally removed SDL dependency. wav sounds have been converted to OGG, since we already have an OGG reader in - why require an additionnal dep like SDL, that does input, graphics, etc. when we only need audio and already have an audio reader in? Original .wav files (lossless) will be added tomedia repository (second part)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3449 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-05-03 00:50:09 +00:00
auria
87a274fc77 started removing SDL from STK. Gamepad input broken, maybe keyboard a bit too. Default bindings changed because some keys on mac are ignored by irrlicht (known bug, fixed in enxt version IIRC)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3421 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-04-25 17:55:39 +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
auria
b160406dd4 started reconstructing input...
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3292 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-03-23 16:06:48 +00:00
auria
e7905e0811 started input module by splitting sdldrv in more logical parts
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3290 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-03-23 14:55:23 +00:00
auria
73d8aa063e you can now start a game from within the GUI! No matter where you click, it will always start in beach with hard settings, Tux and 1 kart only though
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3268 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-03-16 18:02:45 +00:00
auria
87a726ff74 The GUI will now react to clicks, so you can navigate it somewhat. Note that the event callback function provided is mainly a test one; it should eventually be replaced with something better organized
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3267 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-03-16 17:27:05 +00:00
hikerstk
41020d56ac Fixed lighting issues by adding ambient lights, and cleaned up more code.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3264 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-03-16 01:23:23 +00:00
auria
f5ced788ac Game menu now shows up :) Input is not yet handled, so not yet usable. Some dummy placeholder datafiles included for the sake of having something testable
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3261 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-03-15 01:34:21 +00:00
auria
c3f168bd3d fixed input, which wwas broken when introducing GUI
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/irrlicht@3260 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-03-14 22:35:00 +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
62bc9990ca Irrlicht only: Added preliminary support for reading materials.xml files
(though the information is not used atm).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@3203 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-02-27 00:15:09 +00:00
hikerstk
ec69ff9f3f Applied Frederik Himpe's patch to support -Werror=format-security.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@3173 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-02-18 22:56:48 +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
4d2ace56b3 First irrlicht code added.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@3101 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-02-04 00:31:40 +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
a24273abfc Fixed some minor memory leaks, added 'FIXME LEAK' comments
in many places which are either more complicated to fix for now,
or will be redesigned with irrlicht (and should therefore go
away anyway).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2996 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-01-20 04:26:24 +00:00
hikerstk
0b5bee042e Made glut optional (if it's installed it is used and optional
bullet debug via the --bullet-debug command line option can be used, 
otherwise this command line option is not available).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2926 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-01-15 04:08:41 +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
7787fc21b1 Remember the last selected difficulty, #laps and #karts.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2886 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-01-12 09:05:03 +00:00
hikerstk
eae3653470 The first kart to use in profiling can now be set on the command line.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2867 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-01-08 23:19:50 +00:00
hikerstk
b643cfd599 Bugfix: incorrect track name or GP in a challenge will not cause a crash
when trying to use to do the challenge, instead STK will abort with an
error message indicating the problem at startup (see bug 2316973).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2851 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-01-07 00:54:20 +00:00
hikerstk
0556858147 User configuration now stores the last used input configuration for each
device (i.e. for gamepad one mapping of gamepad axis/buttons to kart
controls). When changing the player conntrol option for 'left', the
last corresponding input configuration is loaded. This allows for example
to switch from keyboard to gamepad and back with one keystroke (in each
case).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2830 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2009-01-04 23:03:37 +00:00
hikerstk
95054dbd52 Added command line option to activate some gamepad debug output.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2743 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-12-22 01:49:05 +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
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
hikerstk
05ca336742 Bugfix for replaying history files.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2476 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-11-19 11:18:22 +00:00
hikerstk
e87201b98a Renamed default kart name from tuxkart to tux (necessary
after renaming the models).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2457 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-11-13 22:46:38 +00:00
hikerstk
f7d0e38a87 Fixed segfault when deleting callback manager.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2421 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-11-08 00:56:19 +00:00
stevo14
67569c71bc Every object created in InitTuxKart() is now deleted in CleanTuxKart(). This allows (among other things) the sound managers to properly clean up OpenAL (so STK plays nice with other OpenAL apps and doesn't leak memory).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/trunk/supertuxkart@2418 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2008-11-07 20:42:24 +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
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