254 Commits

Author SHA1 Message Date
hikerstk
d1e59c20e8 Added functions to get the installation directory of addons.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8236 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-04-07 01:32:58 +00:00
hikerstk
ea32a4d52e Started to update addon loader to support new xml structure. It's not expected
to work yet.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8217 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-04-04 23:26:25 +00:00
hikerstk
3a2c7e2480 Added suport for "-rc?" at the end of version numbers (for comparison
of news and stk version numbers).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8200 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-04-03 22:22:15 +00:00
hikerstk
0f938f2863 Removed functions that are deprecated in irrlicht 1.8.
Note that you need the latest dependency packages to build STK now!!!!!


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8197 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-04-03 13:52:32 +00:00
hikerstk
d922f47515 Applied Stephen's patch to use the new stkaddons.net url for the news
server and also to allow redirections in curl.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8171 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-04-01 02:49:29 +00:00
hikerstk
4f65cd539b Looks like !a==b is not the same as a!=b if a is a UserConfigParams.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8143 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-31 06:18:29 +00:00
hikerstk
9e8a53631e The internet status saved in the user config file can now have
three values: not-asked, allowed, not allowed. It defaults to
'not asked', which will enable us to show a popup message
the first time STK is started.

NOTE: you have to enable internet news in the UI settings now!


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8142 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-31 05:10:45 +00:00
hikerstk
bca295bb97 Fixed stk version tests for news messages.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8141 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-31 02:39:20 +00:00
hikerstk
d5f1d8ad04 Added support for VERSION="svn" (in addition to VERSION="SVN").
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8140 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-31 02:30:47 +00:00
hikerstk
b14c8c9c86 Fixed typo.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8133 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-31 01:10:08 +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
hikerstk
2d2b3abad8 If the STK version is 'SVN', return '99.99.999' as a version number.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8130 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-30 23:29:35 +00:00
hikerstk
b588c65b0a Removed compiler warnings.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8129 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-30 21:53:39 +00:00
hikerstk
dd333becc1 Added support for conditional news messages.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8128 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-30 21:48:42 +00:00
hikerstk
426cf060b2 Commented out disabling of news messages after they have been
displayed a certain number of times (using #ifdef
NEWS_MESSAGE_REMOVAL, so it can be enabled easily again).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8115 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-30 10:56:08 +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
5eee0884e2 Added more debug prints (if verbosity is set).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8101 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-28 23:58:50 +00:00
hikerstk
86bcc57f41 Fixed windows compilation (where pthread_t is a struct, not a integer like type).
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8100 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-28 23:34:36 +00:00
hikerstk
6bd2d0b3b5 Fixed crash at end if threads could not be created. Added appropriate
warning, and made more prints depend on verbosity level.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8097 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-28 23:06:21 +00:00
hikerstk
b2ab95ff16 Made the 'enable internet' button work.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8088 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-27 21:02:00 +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
30d39e30f0 Read in the number of times a message was displayed from the user config file,
and discared messages that have been displayed often enough.
Note that this is mostly a first test, we might want to only increase the
display counter once each time STK is started or so.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8058 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-25 11:23:17 +00:00
hikerstk
ff152bfeed Save number of times a message is displayed to the config file.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8057 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-25 03:20:21 +00:00
hikerstk
ebda46f19a Removed time between consecutive scrolled test displays.
Added count of how often a message is being (fully) displayed.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8047 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-24 21:28:50 +00:00
hikerstk
f75f306737 Added horizontally scrolling to the news message, and support for multiple
news messages.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8046 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-24 21:10:36 +00:00
hikerstk
1815b6f223 Added files missing in previous commit (started adding
support for new addon list, but that's work-in-progress).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8034 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-23 12:07:16 +00:00
hikerstk
084604f9ab Added support for downloading news at a specified frequency only.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8032 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-23 05:54:12 +00:00
hikerstk
954b420446 Started to add support for downloading news from the addon server
at a specified interval only (e.g. only download every 2nd day).
Not fully working yet, might not work on linux/mac atm.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@8030 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-23 03:57:49 +00:00
hikerstk
a9f73b26be Added Stephen's patch to include a user agent setting.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7809 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-04 04:08:36 +00:00
hikerstk
34961aa0ea First updates to work with new addon webpage.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7806 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-03-04 02:27:45 +00:00
hikerstk
700093eb4d Added FIXME for addons manager.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7651 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-02-07 11:25:37 +00:00
hikerstk
ce2e997ab4 Fixed saving of which addons are installed.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7539 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-25 07:13:21 +00:00
hikerstk
e4b86ffc5d STK would hang if the user quits before the network_http object
was fully initialised (the separate thread did not test for
m_command==HC_QUIT before the cond_wait, and if the signal had
already been sent, the thread would not come back from the wait,
causing STK to hang).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7532 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-24 22:51:58 +00:00
auria
987d4ebd3f Fixed other warning
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7517 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-24 00:59:38 +00:00
auria
e1eb3ec1e7 Fixed warning
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7516 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-24 00:58:54 +00:00
hikerstk
6eddb2baf9 Added proper aborting of curl download threads.
Print warning and progress reports only with
verbosity 3 or above, all addons messages now
start with [addons].


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7503 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-23 04:24:55 +00:00
hikerstk
6278343553 Handle incorrect zip files better.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7468 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-17 06:06:54 +00:00
hikerstk
a4ee467c49 Started to add some error handling, fixed handling of zip files
with directories in them.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7467 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-17 05:44:33 +00:00
hikerstk
dbe6395c1e 1) Changed queue and addon vector to use SynchronisedVector in order
to hide more pthread calls.
2) Started to work on screen layout.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7401 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-14 00:58:11 +00:00
hikerstk
e5a5a7dc33 Fixed printing of std::string, replaced tab.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7374 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-12 02:16:34 +00:00
hikerstk
0b6981022f Fixed compiler warning.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7370 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-11 23:09:13 +00:00
hikerstk
b527abab17 Fixed compilation on linux.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7369 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-11 23:08:27 +00:00
hikerstk
9dde70687f Implemented icon caching, and updated to support the future
web page (unfortunately the web server isn't up to that
standard yet, so expect error messages, addons that don't
work etc.).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7367 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-11 22:49:55 +00:00
hikerstk
37b057a60e Removed unused m_abort variable.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7315 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-06 20:56:32 +00:00
hikerstk
e7d5b2314a Store icons in addons/icons and zip files in addons/tmp.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7314 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-06 20:50:23 +00:00
hikerstk
fcbd7a4614 Fixed incorrect case of unzipped files.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7285 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-05 23:07:07 +00:00
hikerstk
de50274e96 Fixed crash when installing a new addon.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7284 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-05 22:20:52 +00:00
hikerstk
a4db783f7e Fixed deleting installed addons.
NOTE: it is still NOT safe to use this, esp. now that there is code to remove a directory :)


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7282 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-05 21:54:12 +00:00
hikerstk
0bbcfc2361 Removed debug print.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7281 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-05 21:50:07 +00:00
xapantu
56450a708a Added error handling in the addons code to handle path error when extracting archove files.
(Feel free to remove it if you find a better way ;) )

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@7267 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2011-01-05 13:47:16 +00:00