Compare commits

...
950 Commits
Author SHA1 Message Date
Marianne Gagnon abb3465429 First attempt at animating the sun, doesn't work yet 2015-12-17 19:15:46 -05:00
Benau 12e4c76a6f Add minimap for battle mode when it has a navigation mesh
TODO: update battle island arena to use only 4 vertices per poly
2015-12-15 02:32:01 +08:00
Deve e6068923b4 Give more light in kart selection screen 2015-12-14 19:23:27 +01:00
Deve 153fabb502 Fixed a crash on start with legacy pipeline 2015-12-14 19:03:10 +01:00
Deve bddfa43da4 One more tweak.
glGetFramebufferAttachmentParameteriv function is available in OpenGL 3.0 and newer.
2015-12-14 18:56:08 +01:00
deve 5f46863a19 Display pop-up message when fatal error occured on windows.
The reason to do it is that in release mode we don't receive any message in console. This causes that the game sometimes doesn't start and you have no idea why (for example missing supertuxkart.git file etc.).
2015-12-14 12:25:04 +01:00
deve 4531b15d5c Check for sRGB workaround only if needed.
This fixes the crash for old OpenGL 2.1 drivers
2015-12-14 11:35:42 +01:00
deve e77dbf3d9f Totally remove wiiuse hack for mingw.
It breaks versions with proper header file due to redeclaration error.
You should simply use current 4.9 version or 5.0 and newer for wiimote support.
2015-12-14 10:18:08 +01:00
deve 0dbc3575a7 Fixed mingw compilation 2015-12-14 10:11:40 +01:00
Benau 9d1c9fac5a Merge remote-tracking branch 'origin/master' into i18n 2015-12-14 03:00:07 +08:00
Benau 7fccddb734 Show "Fribidized" user name and enable input for it 2015-12-14 02:56:42 +08:00
Benau f0abbad937 Fix plural forms 2015-12-14 02:56:16 +08:00
Deve 306ace7fd2 Keep consistency with log label in irr driver 2015-12-11 19:18:14 +01:00
Deve 7dd7f76e87 Check if we really need to re-create the device by checking if framebuffer is sRGB or not. 2015-12-11 19:18:14 +01:00
Deve 6d757326d2 Make sure that we start game with disabled GL_FRAMEBUFFER_SRGB 2015-12-11 19:18:14 +01:00
Deve 80d36208f1 Added ugly hack, which forces srgb-capable framebuffer creation for intel drivers on linux 2015-12-11 19:18:14 +01:00
Deve b91bcaf554 Disabl sRGB framebuffer on irrlicht side to avoid modifying current user interface colors 2015-12-11 19:18:14 +01:00
Deve 0216fd9697 Request sRGB-capable visual during creating OpenGL context.
We need it for proper working. When it's not available, then function glEnable(GL_FRAMEBUFFER_SRGB) doesn't take any effect, and then displayed image is too dark.

It doesn't solve the issue that the screen is too dark for intel graphics cards on linux, because the driver ignores this request. But still, this is the proper way to do it and it may avoid similar issues in future.

Actually we should detect that the visual is not srgb-capable, and in this case maybe make some gamma correction or filter it on our side to get similar effect.
2015-12-11 19:18:14 +01:00
Benau 93b1b11b99 Merge remote-tracking branch 'origin/master' into i18n 2015-12-11 09:27:15 +08:00
Benau 8f6a529531 Complete fix to arena selection menu (handle random arenas) 2015-12-10 15:49:47 +08:00
Benau cebefcf374 Fix some gui interface bugs:
1. Fix credits fading effect

2. Display have many no of (addons mostly) arenas are hidden due to
   missing of navigation mesh

3. Fix wrong size of kart stats bar
2015-12-10 10:25:52 +08:00
Benau ca6da8c537 Make AI smarter
1. Correct fire angle for bowling

2. When swapper is used, follow a closest kart instead.
2015-12-10 01:21:01 +08:00
Benau 11c4b41f13 More menu fix 2015-12-09 12:42:13 +08:00
Benau aac5a368b8 Avoid invaild Ai karts number during switching game modes 2015-12-09 01:27:02 +08:00
Benau 140a229f71 Fix swatter issue 2015-12-08 16:47:42 +08:00
Benau c789b1a8df Fix compile error 2015-12-08 10:46:01 +08:00
Benau 2644b0458b Merge remote-tracking branch 'origin/master' into battleAI 2015-12-08 10:09:35 +08:00
Marianne Gagnon 508dcdd7e8 Update credits 2015-12-07 19:07:10 -05:00
auriamg f0fafc2651 Merge pull request #2245 from Flakebi/kart-properties
Kart properties
2015-12-07 18:44:14 -05:00
Benau 152dddc110 Fix potential hang after end race in temple arena 2015-12-08 00:44:28 +08:00
Benau 21c38a6c0b Make swatter disappear after one hit in 3 strikes battle 2015-12-07 16:24:11 +08:00
Marianne Gagnon ae916fced6 Add warning when animated texture not found 2015-12-06 20:14:55 -05:00
Benau ba706f4476 Make swatter works better 2015-12-07 02:27:21 +08:00
Benau b92395533e Fix infinite loop 2015-12-06 14:43:07 +08:00
Benau 239412327a Fix crashes when a kart has no wheels 2015-12-06 13:51:38 +08:00
Marianne Gagnon cfc6ccf5ea Add missing copyright 2015-12-05 21:47:50 -05:00
Marianne Gagnon 27290b4ffb More work on scripting Property animator 2015-12-05 20:45:37 -05:00
Marianne Gagnon 840bc3df64 Make more properties animatable + fix build (oops, forgot files in previous commit) 2015-12-05 20:03:11 -05:00
Marianne Gagnon 2252495fdc Scripting refactor : add new property animator helper, transfer light animations to this new animator class. Can be used in the future to animate more properties 2015-12-05 19:42:06 -05:00
Benau 8a0cbea933 Merge remote-tracking branch 'origin/master' into battleAI 2015-12-05 16:27:06 +08:00
Benau ed41b7c805 Proper fix for reverse and unstuck 2015-12-05 16:21:12 +08:00
Flakebi f63c4af8be Fix crash 2015-12-04 21:19:15 +01:00
deve ea581e0909 Try to support more mingw versions for wiiuse build.
This function has been already added to the header in mingw-w64 5.1 and newer.
2015-12-04 10:47:56 +01:00
Benau 9ad438b945 Try to fix too fast reverse and unstuck issue 2015-12-04 16:32:33 +08:00
Deve 8980a32c20 Added profiler marker to keep consistency with other effects 2015-12-03 19:31:13 +01:00
Deve 9b3908cc62 Some lightning improvements:
- move OpenGL-related code to graphics directory, as it should be
- solve issue with applying effect multiple times in multiplayer mode
- remove old already disabled opengl code
2015-12-03 19:25:40 +01:00
deve 94d5c19b7f Fixed compiler warnings.
The winsock2.h header should be always included before windows.h header (or we should define WIN32_LEAN_AND_MEAN). It's because windows.h header includes also winsock.h header and there is possible conflict between winsock and winsock2.

I didn't test in on Visual Studio yet. I hope there is no WIN32_LEAN_AND_MEAN redefinition errors...
2015-12-03 14:59:54 +01:00
deve 0bd15acb93 Fixed compiler warning.
gcc complains that std::auto_ptr is deprecated.
2015-12-03 14:51:26 +01:00
deve 92248399d0 Update project version :P 2015-12-03 14:48:03 +01:00
deve cbc8d84fc4 Allow to enable wiiuse build for mingw in cmake.
Still disabled by default because it only works with mingw-w64. It won't work with other compiler versions due to some inconsistencies in header files. But at least it's possible now to enable it without modifying cmake file.
2015-12-03 14:47:08 +01:00
deve dbdf9db377 Fixed cygwin compilation.
Unfortunately it doesn't support std::to_string function, even on relatively new gcc (tested with version 4.9.2).
2015-12-03 14:38:57 +01:00
Benau ab428dc8cf Different AI intelligence per difficulties 2015-12-03 16:13:39 +08:00
Flakebi c5277edc54 Change suspension-travel that was changed in master meanwhile 2015-12-03 02:15:58 +01:00
Flakebi b3cb029087 Remove kart-type specific turn settings 2015-12-02 19:40:59 +01:00
Flakebi dbecbc3840 Assign KartProperties to a variable instead of fetching it every time 2015-12-02 19:40:28 +01:00
Benau b5d4610f45 Better navmesh handling 2015-12-02 10:41:32 +08:00
Benau 084a4ee844 Fix crashes when no navmesh
User should have no way to start with ai in battle mode,
when the arena has no navmesh.

Unless artist debug mode or more than 1 human players.
2015-12-02 10:08:03 +08:00
Benau c910c19827 Backwards firing and hard u-turn for backward node
TODO:
correct unstuck and perfect angle fire?
2015-12-01 09:27:49 +08:00
Flakebi 12a1227f20 Merge branch 'upstream/master' into kart-properties 2015-11-29 22:21:08 +01:00
Flakebi ba3bc326eb Minor refinements 2015-11-29 22:21:03 +01:00
Flakebi aea68a2c14 Remove characteristics from kart 2015-11-29 04:08:12 +01:00
Flakebi 9fbe72b3c5 Move getter from characteristics to properties 2015-11-29 04:08:12 +01:00
hiker 896d55816f Removed linux compiler warnings. 2015-11-26 09:13:57 +11:00
hiker 5c0f71ad07 Fixed names utf8ToWide and wideToUtf8; added convenience functions
taking std:;string and core::stringw as parameter (removed .c_str()
in many function calls).
2015-11-26 08:56:03 +11:00
Marianne Gagnon 8ca0fea6fa Fix audio listener positionning code crash 2015-11-23 19:05:51 -05:00
Marianne Gagnon c806c1de49 Clear status text in register screen, fixes #2361 2015-11-23 19:04:24 -05:00
Flakebi 6e36c223b9 Hold one kart properties object per player 2015-11-23 01:19:00 +01:00
Deve 8a0927f574 Fixed minor inconsistency in video settings dialog.
Regression since 9b562d31f4
2015-11-22 15:33:46 +01:00
Benau aa9220772f Merge remote-tracking branch 'origin/master' into battleAI 2015-11-22 15:01:41 +08:00
Benau e1f1461488 Fix some bugs and copyright year 2015-11-22 15:01:22 +08:00
Flakebi 79c962dd79 Remove skidding properties and use characteristics instead 2015-11-22 00:40:11 +01:00
Flakebi 2f1d08edbd Add enabled property to skid characteristics 2015-11-21 23:27:00 +01:00
Flakebi b4904b182f Fix merge 2015-11-21 23:15:54 +01:00
Flakebi ffa85d2206 Merge remote-tracking branch 'upstream/master' into kart-properties 2015-11-21 23:03:58 +01:00
Flakebi 4778460f6c Apply script 2015-11-21 23:02:16 +01:00
Flakebi 4be02becac Add skiding properties to characteristics 2015-11-21 23:02:02 +01:00
Benau 62f5be0d9d First playable version of battle AI
TODO:
backwards firing
better handling to obstacles
ai karts number selection
win/lose screen handling

Please use a better navmesh to test
2015-11-21 15:58:03 +08:00
Deve b78d4a0c3d Merge pull request #2372 from rugk/patch-1
Readme and Install.md improvments
2015-11-18 09:32:00 +01:00
Deve a69eb99094 Merge pull request #2380 from nado/clang-fix
Fixes few warnings at compilation
2015-11-17 15:23:55 +01:00
Nado d66a70b250 Fixing some -Wunused-variable 2015-11-17 11:42:28 +01:00
Nado 97de0cbc34 Fixing clang only warnings 2015-11-17 11:42:28 +01:00
Marianne Gagnon 708608177a Fix audio listener positionning issue 2015-11-16 19:13:28 -05:00
auriamg 794908681d Merge pull request #2379 from Benau/skin_color_font
Color the text base on current skin
2015-11-15 18:13:25 -05:00
Benau f4b723de82 Merge remote-tracking branch 'origin/battleAI' into battleAI 2015-11-15 12:29:01 +08:00
Benau f1982c1bee Fix coloring 2015-11-15 01:24:06 +08:00
Benau 0deb065fe9 Two new skin (Ruby and Forest)
Also fix some alignment issue when the multiplayer selection boxes.
2015-11-14 16:28:37 +08:00
Benau 2b0e3b8828 Reverse type and state 2015-11-14 10:38:14 +08:00
Benau 962fe919d2 Color the text (mainly border including title and billboard) base on current skin 2015-11-14 01:06:28 +08:00
auriamg bc712b5a44 Merge pull request #2378 from Benau/custom_font
Allow configurable fonts file names in stk-config
2015-11-12 19:59:26 -05:00
Benau 7cf4d662ee Allow configurable fonts file names in stk-config 2015-11-13 02:25:52 +08:00
hiker 8b916a7565 Fixed sfx not playing at right location (e.g. bridge in Green Valley). 2015-11-11 23:14:00 +11:00
Marianne Gagnon 6afc34c06b Try to fix audio potential issues 2015-11-10 21:31:38 -05:00
Marianne Gagnon bf14e49ea4 Create OpenAL sound sources asychronously 2015-11-09 19:22:06 -05:00
Marianne Gagnon 86d18c0c3e Merge branch '2360_fix_attempt' 2015-11-09 18:15:02 -05:00
hiker 4ea8bfd4ab Fixed typo. 2015-11-09 09:17:45 +11:00
hiker a7547dff23 Try to fix compilation by reducing number of threads. 2015-11-09 09:14:44 +11:00
hiker a6ea57d09a Used leyyins code to dynamically adjust number of threads. 2015-11-09 09:07:12 +11:00
hiker ce219f2fd4 Merge branch 'master' of github.com:supertuxkart/stk-code 2015-11-09 09:04:43 +11:00
hiker fbff4db589 Increase number of threads to 32. 2015-11-09 09:03:59 +11:00
Marianne Gagnon b1803b8dff Apply fix by Benau 2015-11-07 21:48:12 -05:00
Marianne Gagnon 35316c447d Merge remote-tracking branch 'Benau/ftcleanup#2' 2015-11-07 21:37:47 -05:00
Benau 09a6b9b502 Remove unneeded variable 2015-11-08 10:34:48 +08:00
Benau cee7cf0b37 Implement better error detection 2015-11-08 10:24:31 +08:00
auriamg 32e54d4f87 Merge pull request #2374 from Benau/ftcleanup#2
More clean up freetype-related code
2015-11-07 20:21:55 -05:00
Benau 0b5a916980 Remove unused header
Also fix some spacing
2015-11-08 01:36:40 +08:00
Benau 09101e923c More clean up freetype-related code
1. Remove useless get font properties class

2. Pre-set the face dpi

3. Make all freetype related code to have a better coding style
2015-11-07 16:24:31 +08:00
auriamg c2d863888b Merge pull request #2373 from Elderme/issue_2369
Fix issue 2369
2015-11-04 18:24:03 -05:00
Elderme 8d91ab5105 merge with master 2015-11-04 21:24:25 +01:00
Marianne Gagnon 78fd0e373f #2360 fix attempt 2015-11-03 19:15:55 -05:00
auriamg 1cfbdd7c8c Merge pull request #2371 from leyyin/clean-python
Make remove-whitespaces script more pythonic
2015-11-03 18:44:29 -05:00
rugk d1e0564f8b Merge pull request #4 from rugk/patch-2
Update INSTALL.md
2015-11-03 23:23:35 +01:00
rugk b31464042d Update INSTALL.md
* correct spaces
* proper names with a capital letter
* also use block code indentation for single-line commands to keep a consistent look (`this code style` should only be used for code/commands mentioned inside of other text)
2015-11-03 23:21:08 +01:00
rugk ed0cf4ea34 Readme improvments
* added space afer `#` headline
* corrected file names of files I could find
* linked to files

However one thing I could not fix was this sentence:
"Information about the licenses for artwork are contained in 
`data/licenses`."

The mentioned file or dir does not exist (anymore) and I could not find any other file, which would fit there.
2015-11-03 23:16:53 +01:00
Deve 795f3148dc Revert "Added default precision qualifier in fragment shaders"
This reverts commit c23da9e855.
2015-11-02 18:20:07 +01:00
Elderme b70fa22d23 Define default precision in fragment shaders after #extension 2015-11-02 18:14:01 +01:00
Daniel Butum faefad4fde Make remove-whitespace script more pythonic 2015-11-02 16:35:59 +02:00
Daniel Butum 9df91ebd8a Rename whitespace.py script to remove-whitespaces.py 2015-11-02 14:54:49 +02:00
auriamg 08e3a9ea13 Merge pull request #2367 from CruzR/memory_leaks
Fix a couple of memory leaks.
2015-11-01 20:15:16 -05:00
auriamg 9d456c5459 Merge pull request #2365 from Elderme/shader_precision
Add default precision qualifier in fragment shaders
2015-11-01 20:02:18 -05:00
Thomas Glamsch a5a9b9f6c1 Fix a memory leak in PhysicalObject::init(). 2015-11-02 01:43:54 +01:00
hiker 0d84239cd2 Merge branch 'master' of https://github.com/supertuxkart/stk-code 2015-11-01 19:46:00 +11:00
auriamg 4762658a88 Merge pull request #2364 from Benau/freetype_cleanup
Clean up freetype code
2015-10-30 20:33:51 -04:00
Deve 8a288f05ff Implement lightning effect using shaders 2015-10-31 01:00:48 +01:00
Elderme c23da9e855 Added default precision qualifier in fragment shaders 2015-10-30 22:05:08 +01:00
Benau 41bd914f7c Fix typo 2015-10-31 00:29:53 +08:00
Benau b9b2b538fa Clean up freetype code
1. Remove all ifdef of freetype

2. Require freetype in CMake

3. Clean up declaration

4. Add leak check

5. Make script language display better in title
2015-10-30 18:08:02 +08:00
Marianne Gagnon 66909086fd Scripting : allow smoothly animating lights 2015-10-27 19:08:12 -04:00
Marianne Gagnon 953c29089e Scripting : start adding features to control light objects 2015-10-27 18:33:54 -04:00
hiker d2e6a10026 Merge branch 'master' of github.com:supertuxkart/stk-code 2015-10-27 15:00:13 +11:00
hiker c5b8c3e3e9 Try to improve performance for sfx (#2154). 2015-10-27 14:59:20 +11:00
Benau 2096532d0e Make stk more-i18n friendly
Now supertuxkart can do:

Windows (fully test in win8 and win7 built with vs2015, mingw not tested):
Input characters using ime (CJK tested).
Fix crashes when try to paste unicode text into editbox in stk.

Linux:
Different keymap can be used in stk now, ie typing russian,hebrew (not bidi-aware) is now possible.
IME not supported.

Mac:
No work has been done, sorry mac fanboys/girls:( Though testing is welcome, esp when pasting words into stk.

Limitation:
No ime box is shown in fullscreen

(Windows)Only the used language in current setting of non-Unicode programs can be typed with its supported IME.
2015-10-27 02:34:46 +08:00
Marianne Gagnon af68319da7 Add profiler marker to measure material handling in Kart::update 2015-10-25 21:22:45 -04:00
Marianne Gagnon f9f9b660d3 Rename profiler marker to clarify what it measures 2015-10-25 21:21:05 -04:00
Marianne Gagnon 366a458a6b Remove a few unused files, see #2066 2015-10-22 19:13:41 -04:00
hiker b8cd9cfb81 Removed unused functions. 2015-10-22 23:41:49 +11:00
hiker e6ae208b4f Removed many unnecessary copies of NetworkString. 2015-10-22 21:43:06 +11:00
hiker c59f958c2f Removed unnecessary #include, and disabled copying of STKPeer. 2015-10-22 18:46:01 +11:00
hiker a102d97e3a Cosmetic changes, some minor refactoring. 2015-10-22 18:40:52 +11:00
hiker 1f4f2bce86 Coding style changes. 2015-10-22 16:03:11 +11:00
hiker b8837d5d59 Coding style changes. 2015-10-22 14:54:12 +11:00
hiker 9b9fc2ee35 Fixed --no-graphics option. 2015-10-22 11:53:52 +11:00
hiker 4833659085 Added --stdout= command line option to change the name of
the stdout.log file.
2015-10-22 11:51:18 +11:00
hiker 65454db0ce Merge branch 'master' of https://github.com/supertuxkart/stk-code 2015-10-22 11:04:07 +11:00
hiker 6213959f31 Cosmetic/coding style changes. 2015-10-22 11:03:41 +11:00
Deve 8bfe048f0f Remember race type in saved GP.
Continue standard race as follow the leader and vice versa doesn't have a sense.
2015-10-21 22:42:59 +02:00
Deve 4049722677 Don't crash if selection is larger than number of items in ribbon widget 2015-10-21 22:37:38 +02:00
hiker 25ca5646ff Merge branch 'master' of https://github.com/supertuxkart/stk-code 2015-10-22 00:03:11 +11:00
hiker d6e7ddf000 Avoid copying STK Events for networking. 2015-10-22 00:02:40 +11:00
hiker f297c92039 Removed more includes of event.hpp in hpp files. 2015-10-21 17:39:53 +11:00
hiker 841d9b248e Removed some unnecessary #includes. 2015-10-21 17:31:33 +11:00
hiker 1a0fb9fa4c Renamed notifyEvent to propagateEvent for the manager to avoid
'duplicated' name (notifyEvent also exists in each protocol).
2015-10-21 17:18:27 +11:00
hiker cce4793fa3 Merge branch 'master' of https://github.com/supertuxkart/stk-code 2015-10-21 08:43:32 +11:00
hiker 40629d9816 Changed Event's m_peer from STKPeer** to STKPeer *. Fixes some minor memory leaks. 2015-10-21 08:11:35 +11:00
hiker 814f248cbd Fixed linux compilation. 2015-10-21 08:09:24 +11:00
hiker 9cdf7058a7 More coding style fixes. 2015-10-21 08:07:00 +11:00
hiker 94e87796f5 Coding style fixes. 2015-10-21 07:51:53 +11:00
Deve 054d9251bb Don't sort karts after loading saved GP.
This causes issues in follow the leader races, because after sorting the leader is not leader anymore.
This sorting function is most probably not needed because the list is sorted in startNextRace function (where the leader is properly skipped).
2015-10-20 19:52:57 +02:00
Deve 4ac479cbf3 Merge pull request #2354 from hasufell/master
Fix compilation with system angelscript
2015-10-20 19:12:32 +02:00
hasufell 4e307522d1 Fix compilation with system angelscript
Upstream names the shared library angelscript_s.
In addition, add more common PATH_SUFFIXES.
2015-10-20 16:47:23 +02:00
hiker 54a0e50fe3 Try to fix linux compilation. 2015-10-21 00:18:51 +11:00
hiker 10c612a0f6 Merge branch 'master' of https://github.com/supertuxkart/stk-code 2015-10-20 22:44:26 +11:00
hiker 0dfa05227e Cosmetic changes mostly, removed unused functions. 2015-10-20 22:42:57 +11:00
Marianne Gagnon cc7f7b9b4c Use SigmarOne font for digits 2015-10-19 21:02:25 -04:00
Marianne Gagnon 9c3da791a4 Add Benau to credits, thank you :) 2015-10-19 20:56:38 -04:00
Marianne Gagnon 2dfc493adf Minor FreeType cleanup 2015-10-19 19:25:51 -04:00
hiker 6fc4b9c19d Prevent crash in case of issues creating the server. 2015-10-20 09:37:51 +11:00
hiker 46b4d275a9 Minor refactoring and coding style fixes. 2015-10-20 09:34:14 +11:00
Deve 0d58774b54 Fixed mingw compilation 2015-10-19 20:50:39 +02:00
hiker d5a9364ece Minor cosmetic changes. 2015-10-19 17:06:14 +11:00
hiker 3a544b69eb Merge branch 'freetype_lazyloadchar' of github.com:supertuxkart/stk-code into freetype_lazyloadchar 2015-10-19 13:31:39 +11:00
hiker 52b5b7c8d1 Fixed crash caused by using a char pointer to a temporary string only (which can get
overwritten/freed before the pointer is used).
2015-10-19 13:29:52 +11:00
Marianne Gagnon fcd402b538 Merge remote-tracking branch 'Benau/lazyloadchar' into freetype_lazyloadchar 2015-10-18 21:47:16 -04:00
Benau 109d6b91ce Choose the correct title font smartly 2015-10-19 09:39:57 +08:00
Marianne Gagnon 06fb6d4eb2 Delete old fonts and related code 2015-10-18 20:15:05 -04:00
Marianne Gagnon dd975de74f Remove the font tool, which is no longer necessary 2015-10-18 20:10:31 -04:00
Marianne Gagnon 6d365032f3 A few minor bugfixes, a little cleanup in TTF font code. Add Ubuntu font for latin languages since it generally looks better than Freesans for a game 2015-10-18 20:07:11 -04:00
Marianne Gagnon 1a58df0696 Fix issue in language selection screen (improper utf-8 decoding) 2015-10-18 19:53:20 -04:00
Marianne Gagnon 0571db6bef Freetpye support on OSX 2015-10-18 19:44:28 -04:00
hiker 8d0c22346d Cosmetic changes only. 2015-10-19 08:15:43 +11:00
hiker e535afc9d8 Cosmetic changes only. 2015-10-19 08:11:28 +11:00
hiker faf697ef5d Made access to the public address thread safe, and simplified setting
of the public address.
2015-10-19 08:02:44 +11:00
Benau 218f94d181 Silence warning 2015-10-18 10:10:03 +08:00
Marianne Gagnon d0d6476feb Merge remote-tracking branch 'Benau/lazyloadchar' into freetype_lazyloadchar 2015-10-17 21:41:56 -04:00
Benau fad23b148b Fix travis build 2015-10-18 09:40:37 +08:00
Marianne Gagnon cee6d9d611 Merge branch 'master' into freetype_lazyloadchar 2015-10-17 21:34:19 -04:00
Marianne Gagnon a84b04db66 Merge remote-tracking branch 'Benau/freetype' into freetype_lazyloadchar 2015-10-17 21:31:05 -04:00
Marianne Gagnon f909619413 Add translation help comment, for issue #2335 2015-10-17 20:47:19 -04:00
Marianne Gagnon fcfbd82a0e Merge branch 'TranslatableDateTime' 2015-10-17 20:44:32 -04:00
Deve e7e7e9e7d3 Make sure that we compile irrlicht only as static library.
Compiling as shared library can cause errors during linking because of GLContextDebugBit variable, which is defined in STK sources.
2015-10-17 16:02:35 +02:00
hiker 4fad614d55 Removed unnecessary copy constructor call, which makes the Synchronised
class work with NoCopy objects.
2015-10-17 09:33:05 +11:00
Ben adbaa44864 Fix typo 2015-10-17 03:03:56 +08:00
Benau d166aa620e Add lazy load char function
Now less fonts are used to prevent mismatch, also include font license file
2015-10-17 02:57:27 +08:00
Benau f557dce27e Fix some bugs in title font and clean up more code 2015-10-17 01:20:50 +08:00
hiker aeec90fa0d Removed many unnecessary copies of TransportAddress. 2015-10-16 23:55:54 +11:00
Deve 9b5e4e9201 Merge pull request #2352 from leyyin/fix-compilation
Fix linux compilation
2015-10-16 10:43:10 +02:00
Daniel Butum 8cfa2f925a Fix linux compilation 2015-10-16 11:22:20 +03:00
hiker 162bcced37 Make m_ip and m_port in TransportAddress private (adding setters and getters). 2015-10-16 16:59:42 +11:00
hiker 83811d2960 More compilation fixes :( 2015-10-16 10:37:20 +11:00
hiker 8183760cd9 Fix travis build. 2015-10-16 10:28:29 +11:00
hiker aeb4ba63d0 Fixed #2350. 2015-10-16 09:46:59 +11:00
hiker 517ba2c2df Cosmetic changes, added some convenience functions. 2015-10-16 00:52:28 +11:00
hiker 9a55da5c2c Reserve space for NetworkStrings (to reduce copying when reallocating). 2015-10-16 00:03:23 +11:00
hiker e7860e1c14 Fixed compiler warnings. 2015-10-15 21:48:17 +11:00
hiker a61506046b Updated assets version. 2015-10-15 11:22:47 +11:00
Marianne Gagnon 0af8842767 Update translations 2015-10-14 19:52:36 -04:00
Ben ee60eb9a68 Fix scoreboard display 2015-10-15 07:43:13 +08:00
samuncle d80c7136e0 Add a better firework effect ! 2015-10-14 02:34:23 +02:00
hiker beca77e94f Use NetworkString for stun response data. 2015-10-14 00:18:13 +11:00
hiker 192e2f99b5 Merge branch 'konstin-dev' 2015-10-13 22:09:11 +11:00
hiker 7356958774 Merge branch 'master' of https://github.com/supertuxkart/stk-code 2015-10-13 21:12:22 +11:00
hiker 86574e4521 Added comments and further cosmetic changes. Removed some duplicated functions. 2015-10-13 20:53:53 +11:00
Benau a756f9f90e Better title font to all languages
I tested all language, all of the them only needs 2 glyph page
to load their needed chars.
2015-10-13 08:25:25 +08:00
Marianne Gagnon a565c561e8 Scripting engine : add new getter Kart::getMaxSpeed 2015-10-12 19:59:17 -04:00
samuncle 4cf0b06d22 Merge branch 'master' of https://github.com/supertuxkart/stk-code 2015-10-13 01:25:06 +02:00
samuncle 094d78e682 Minor change in gfx 2015-10-13 01:23:24 +02:00
Deve 407f29641c Use ugly hack for compile bullet with 64-bit mingw until I will find better solution 2015-10-13 01:05:41 +02:00
Deve 375e7ea0ed More fixes for 64-bit mingw 2015-10-13 01:05:41 +02:00
Deve 91db8620f8 Some work on support 64-bit windows compilation using mingw 2015-10-13 01:05:41 +02:00
hiker 3a023776fd Minor style changes. 2015-10-13 09:19:40 +11:00
hiker 356588e09a Merge branch 'dev' of https://github.com/konstin/stk-code into konstin-dev 2015-10-12 22:42:34 +11:00
hiker 45954e5881 Minor improvement. 2015-10-12 22:03:46 +11:00
hiker c1d280eaa1 Cosmetic changes only. 2015-10-12 21:37:22 +11:00
Benau 786bc5d5b6 More detailed comments 2015-10-12 07:48:43 +08:00
Benau f20158acd1 Merge remote-tracking branch 'mime/freetype_benau' into freetype 2015-10-12 07:38:25 +08:00
Benau c7f20e549d Revert widget changes 2015-10-12 07:33:09 +08:00
hiker da73e7d9cf Merge branch 'master' of https://github.com/supertuxkart/stk-code 2015-10-12 10:07:04 +11:00
hiker c0b7fec58a Replaced another mutex with Sychronised. 2015-10-12 10:06:30 +11:00
hiker 47cb6ac2e3 Used Synchronised instead of pthread mutex. 2015-10-12 08:18:15 +11:00
hiker 124420b90a Cosmetic changes only. 2015-10-12 08:02:20 +11:00
Benau 23e1f8fb3e Default text wrapping in label widget
It should make no more text rendered out of area as stated in forum.
2015-10-12 01:48:13 +08:00
Benau 73ae81554d Better size handling to specific languages 2015-10-12 01:14:47 +08:00
hiker 4b0d4cb853 Fixed typo in comment. 2015-10-11 21:23:39 +11:00
hiker 525cf6df62 Fixed incorrect name of stkgui file. 2015-10-11 21:22:58 +11:00
Marianne Gagnon fbf158eaa4 Merge branch 'master' of https://github.com/supertuxkart/stk-code 2015-10-10 20:52:18 -04:00
Marianne Gagnon d63837260f Remove seemingly uneeded rotation, see #2345. Not sure I understand what is going on 2015-10-10 20:52:12 -04:00
Deve debb238b35 Use '3' graphical level when STK is run first time instead of custom settings.
Degraded_IBL parameter was probably accidentally set to false because option in settings means "enable IBL if true", but variable means "disable IBL if true".
2015-10-10 16:04:33 +02:00
Benau 9fe84d3dd4 More code clean up with doxygen for freetype related file 2015-10-10 16:20:33 +08:00
hiker f0c04a8bef Started to support LAN servers in the GUI (wip). 2015-10-10 12:13:32 +11:00
Marianne Gagnon e4095c03a3 Fix material manager issue 2015-10-09 19:46:53 -04:00
hiker 612ec37dbd Updated credits. 2015-10-10 10:36:50 +11:00
Benau a7b2c8838f Try to fix the edged font when changing resolution
I add a debug function to write the glyph page png(s) too.
2015-10-10 01:59:29 +08:00
hiker 73cf58d13b Merge branch 'master' of https://github.com/supertuxkart/stk-code 2015-10-10 00:19:44 +11:00
Deve 500cbe2ebf Allow to use 1280x720 resolution.
This is quite popular resolution and it is a kind of standard. Even the most of new monitors have it because it has the same porportion as 1920x1080. And it looks much better than 1024x768 expanded to 16:9 proportionos ;) I also didn't notice any issues in gui during using it.
2015-10-09 13:47:19 +02:00
hiker a66af6dc91 Cosmetic changes for coding style. 2015-10-09 16:47:18 +11:00
hiker 42ea2e5819 Merge branch 'master' of https://github.com/supertuxkart/stk-code 2015-10-09 12:53:27 +11:00
hiker 4d181d3358 Make icons visible if login status is changed. 2015-10-09 12:52:49 +11:00
Marianne Gagnon e1a6478038 Forgotten file in previous commit 2015-10-08 21:35:18 -04:00
Marianne Gagnon 7c5d6711b9 Introduce new mechanic to create keyboard shortcuts for debug functions, and start using it for FPS camera. Fixes #2341 2015-10-08 20:06:42 -04:00
hiker 92f18d03dc Removed unnecessary variable. 2015-10-09 09:43:50 +11:00
hiker d687d17bfe Added (atm not working) LAN server menu entries. 2015-10-09 09:36:08 +11:00
Benau 486495d976 More code clean up
Now all freetype related file are written in c++ class, which enable
better coding style with current stk

Windows build tested, the edge showing issue doesn't happen on Windows btw
Maybe driver problems?
2015-10-09 01:59:22 +08:00
Benau ebeca35460 First version of glyph page loading supporting for freetype stk
Performance should be good, it cleans some unused code too.

Windows build not tested.
2015-10-08 16:41:31 +08:00
hiker 917905c779 Removed unused functions. 2015-10-08 16:28:23 +11:00
hiker 00e7c35484 Match one more .stkgui and .cpp file name. 2015-10-07 16:37:42 +11:00
hiker d391727879 Match more .stkgui and .cpp file names. 2015-10-07 16:33:01 +11:00
hiker a49fdca521 Merge branch 'master' of https://github.com/supertuxkart/stk-code 2015-10-07 13:16:02 +11:00
hiker 3aadc019a3 Made more .stkgui name correspond to the c++ file name. 2015-10-07 12:33:36 +11:00
hiker 14e84ed96b Minor style changes. 2015-10-07 08:22:02 +11:00
hiker ccf8fd4e68 Renamed stkgui so that .cpp and .stkgui file names are identical. 2015-10-07 08:11:57 +11:00
Deve 2a12fa51ed Merge pull request #2337 from Elderme/fix_2328
Fix global illumination bug with intel driver #2328
2015-10-06 12:18:57 +02:00
Benau 1e7e895d7f Fix build and code clean up
Now billboard text should have a better alignment
2015-10-06 16:14:32 +08:00
Marianne Gagnon ca107bf159 Translatable DateTime (see #2335) 2015-10-05 19:36:39 -04:00
Marianne Gagnon d47faaaa89 Fix billboard text 2015-10-05 19:22:08 -04:00
Elderme 0fc3d3336e removed useless varying in rhpassthrough.geom shader 2015-10-05 21:22:22 +02:00
Deve 6318e8c8f8 Fixed compiler warnings 2015-10-04 16:54:14 +02:00
Benau 3a5ec83ae9 Basic render of text using freetype
This is a testing version of stk using freetype

It enable better arabic font display with less blurred glyph to all fonts thanks to hinting provide by freetype.

TODO: billboard text
2015-10-04 11:59:44 +08:00
Deve ec33e92ad0 Forgot about sun 2015-10-03 21:12:41 +02:00
Deve bac60ff126 Fixed crash on exit race with OpenGL 2.1 2015-10-03 21:06:32 +02:00
Flakebi abc2ae54ea Use correct cached characteristics 2015-10-03 20:14:39 +02:00
Flakebi 37ca28e868 Use cached characteristics 2015-10-03 18:15:29 +02:00
Flakebi a789f346ad Add comments 2015-10-03 17:45:25 +02:00
Flakebi cb4dd91e08 Apply script 2015-10-03 17:23:40 +02:00
Flakebi 4a9bc60e93 Try to follow coding style guidelines more 2015-10-03 17:23:40 +02:00
Deve 895579cba9 Fixed starting a race on OpenGL 2.1 2015-10-03 17:02:49 +02:00
Deve e15cd49cae Make changing to fullscreen on linux safer.
Now we are waiting until window state is already changed to fullscreen. We are getting real window size at the end of creating window function and previously it was sometimes reporting size of the window in windowed mode, which could causing issues in gui. Previously this was workarounded by forcing minimal window size to be at least in screen resolution, but window managers don't like to have non-resizeable fullscreen windows. Now this workaround is not needed anymore.
2015-10-03 16:43:22 +02:00
Flakebi 5e6e85ab79 Merge branch master into kart-properties 2015-10-03 15:20:06 +02:00
Marianne Gagnon 9e6cf8ee91 Fix buggy RTL detection, see #2320 2015-10-01 19:55:41 -04:00
samuncle 71069752ba Merge branch 'master' of https://github.com/supertuxkart/stk-code 2015-09-29 20:09:55 +02:00
samuncle 26298e9e1a Add several new particle effect and correct the bug to enable emit map & alpha testing 2015-09-29 20:08:56 +02:00
hiker 259be4c3fe Merge branch 'master' of https://github.com/supertuxkart/stk-code 2015-09-29 09:27:30 +10:00
Joerg Henrichs 4791731946 Moved update_po_authors to data/po so that we don't forget it. 2015-09-29 08:45:50 +10:00
hiker 8e3b8742df Used smaller picture for installer (the previous one was never actually used). 2015-09-29 08:01:57 +10:00
hiker 449e754849 Fixed #2327. 2015-09-29 07:58:24 +10:00
Joerg Henrichs 898e4c3fc7 Updated asset revision number used for the 0.9 and 0.9.1-rc1 releases. 2015-09-28 11:52:43 +10:00
hiker 344912ac2a Updated Asian fonts. 2015-09-28 10:14:20 +10:00
hiker 63967b8a21 Fixed typo in credits. 2015-09-28 10:00:02 +10:00
Marianne Gagnon 31875565bb Merge branch 'master' of https://github.com/supertuxkart/stk-code 2015-09-27 19:41:30 -04:00
Marianne Gagnon 27be1b9013 update translations 2015-09-27 19:40:16 -04:00
hiker 3c35c15581 Updatex changelog. 2015-09-28 09:35:47 +10:00
hiker 8d45d689b7 Updated donations. 2015-09-28 09:21:30 +10:00
hiker 0e90042a0d Fixed incorrect handling of 0x1a character in credit files
(which can happen in unicode, previously stk would stop
reading files after 0x1a).
2015-09-28 09:12:45 +10:00
hiker f543ba4f7b Merge branch 'master' of https://github.com/supertuxkart/stk-code 2015-09-28 09:11:20 +10:00
Deve 11f6084fc5 Fixed crash on exit and changing resolution with old opengl.
Regression introduced in commit 93f24f2a74.
Playing the real game is still not working.
2015-09-27 14:18:09 +02:00
hiker cfbd960129 Merge branch 'master' of https://github.com/supertuxkart/stk-code 2015-09-27 11:18:10 +10:00
Deve f351c359fd Create angelscript library in build directory instead of lib directory.
This solves issues with multiple build directories (every one should have its own angelscript lib). It was causing conflicts eg. 32-bit library with 64-bit STK.
Ideally it should be commited upstream to avoid this problem after updating library.
2015-09-26 23:02:18 +02:00
Deve 07b0ab0d78 Fixed disabling "remember window pos" button when fullscreen is enabled.
Regression since commit 9b562d31f4
2015-09-26 20:40:10 +02:00
Deve 35fa7fd272 Fixed a strange bug during changing window to fullscreen under Gnome 2015-09-26 20:32:55 +02:00
Marianne Gagnon 870a5fad3e Update credits in master too 2015-09-25 20:44:27 -04:00
hiker 642a333e5e Fixed kart getting stuck at doors of overworld (and other static
physical objects).
2015-09-26 01:08:10 +10:00
hiker e97c4858f3 Updated supertuxkart.pot to be not sorted (see pull #2319). 2015-09-26 00:21:16 +10:00
hiker 165ea3d87e Merge pull request #2319 from huftis/removestringsorting2
Don’t sort strings alphabetically (again)
2015-09-25 23:34:55 +10:00
Karl Ove Hufthammer 96cde24615 (Again) don’t sort strings alphabetically (makes the translators’ work much easier). 2015-09-25 10:51:31 +02:00
hiker fc67252e78 Fix #2300 (mostly,karts get stuck there atm, but can't drive through the door). 2015-09-25 09:15:47 +10:00
hiker b7837fd05c Fixed compiler warnings. 2015-09-21 07:44:00 +10:00
hiker 9e0a90f634 Merge branch 'master' of https://github.com/supertuxkart/stk-code 2015-09-20 20:20:16 +10:00
auriamg 5d9805b8ab Merge pull request #2317 from MiroslavR/fix-supertux-btn
Fix SuperTux difficulty button state not updating correctly
2015-09-18 18:53:07 -04:00
MiroslavR ccf9cee2ff Fix SuperTux difficulty button state not updating correctly 2015-09-18 20:48:18 +02:00
hiker 125bc1fc8f Renamed'lazy' loading in material (which is used to not load font
textures sinze they are not all needed) to 'dont_load' - so that
'lazy' can be used for lazy loading (i.e. on demand, but still
by the material, not by an external object) of textures.
2015-09-18 09:51:52 +10:00
Marianne Gagnon b3e2924df0 Fix opening wrong friend profile due to sorting, fixes #2313 2015-09-14 19:04:54 -04:00
Marianne Gagnon b9183dde21 Bugfix : no music when losing GP, see #2296 2015-09-12 19:54:40 -04:00
Marianne Gagnon 4c09d459cb Fix gamepad visualisation mode by request a legacy openGL context. Temporary fix, the proper long-term fix will be to rewrite that screen with modern OpenGL. See #2098 2015-09-12 19:44:58 -04:00
Marianne Gagnon 87ebb00d7d Tweak mathclass challenge 2015-09-12 19:42:36 -04:00
Deve 6af30b68f0 Silence angelscript warning in different way.
We can't remove project() line because it uses ${PROJECT_SOURCE_DIR} in other place.
2015-09-12 21:56:49 +02:00
Deve e47be9b283 Update .pot file 2015-09-08 20:13:29 +02:00
Deve fce90c56f6 Add context for key names translations.
At least in some languages most of key names is non-translatable. But some of these names are used (or can be used) in GUI in different places. For example "Play", "Pause", "End" etc...
At this moment probably the only one key name which is used in other places is "Help". But we will be safe in future.
2015-09-08 20:13:29 +02:00
Marianne Gagnon 9f15659a77 Tweak challenge, fixed #2156 2015-09-07 18:02:11 -04:00
auriamg 58b896d599 Merge pull request #2310 from MiroslavR/l10n
Add 'Ť', 'Ý' and 'Ľ' glyphs to the title font
2015-09-07 17:42:17 -04:00
Deve 5d660e8e23 Merge pull request #2280 from temeliak/fix_2232
Offers the possibility to look backward during the start phase. #2232
2015-09-07 18:54:57 +02:00
Deve 27a2f1bdc1 Silence warning about project version in angelscript.
I still didn't find proper solution for it...
2015-09-07 18:19:42 +02:00
Deve bfa92bc339 Don't complain about angelscript library not found in system 2015-09-07 18:14:57 +02:00
MiroslavR 517f493ca3 Add 'Ť', 'Ý' and 'Ľ' glyphs to the title font 2015-09-06 22:26:00 +02:00
Deve bd49fa4fd8 Move adding definition to other definitions 2015-09-06 21:00:50 +02:00
Deve c124f5f371 Remove unused code from cmake.
We are using now two different repositories (svn and git), and still creating the package without attached libraries doesn't have a sense.
2015-09-06 20:58:12 +02:00
Deve 4498870cb8 Merge pull request #2271 from konstin/network_cmake
Allow enabeling Network Multiplayer through CMake flags
2015-09-06 20:33:10 +02:00
auriamg b64de23b06 Merge pull request #2307 from Benau/master
Fix typo and and add quotation
2015-09-03 18:49:48 -04:00
Ben c488e843b8 Fix typo and and add quotation
The quotation added is for Chinese Simplified which I discovered usage in translation work.
2015-09-03 16:30:22 +08:00
Marianne Gagnon 65a7b5bf04 Fix lights in multiplayer, fixes #2305 2015-09-02 18:30:55 -04:00
Deve 8a42fab5f1 Declare HAVE_STRUCT_TIMESPEC also for future Visual Studio versions 2015-09-02 17:41:44 +02:00
Marianne Gagnon e2da2a36a1 Fix line endings 2015-09-01 19:39:30 -04:00
Marianne Gagnon 5c342290b0 Fix corrupted text in GP editor 2015-09-01 19:39:21 -04:00
auriamg f788ae0f3a Merge pull request #2301 from Benau/master
Fix the ugly hack for displaying Chinese in #2110, and then fix #2297
2015-09-01 19:34:03 -04:00
hiker 94d8706504 Merge branch 'master' of github.com:supertuxkart/stk-code 2015-09-01 10:28:56 +10:00
Marianne Gagnon 9a6b41d2b5 Apply offset on meshes with exact collision shape, fixes #2300 2015-08-31 19:57:55 -04:00
hiker 426987045c Merge branch 'master' of github.com:supertuxkart/stk-code 2015-09-01 09:49:04 +10:00
hiker d6319f77d5 Fix #2299 (audio issues in minigolf end): the listener position was
not set at all anymore when an end camera was used.
2015-09-01 09:43:01 +10:00
Marianne Gagnon 90b95c7fb5 Make sure there is music when winning a GP, fixes #2296 2015-08-31 19:33:05 -04:00
hiker da848a4c72 Accept --difficulty as well as --mode. 2015-08-31 17:09:51 +10:00
Benau 0a7a0d7c98 Fix the ugly hack for displaying Chinese in #2110, and then fix #2297 2015-08-30 02:35:17 +08:00
Marianne Gagnon 0a1053b3e4 Update translations, remove unused GUI file that generated unused strings 2015-08-28 20:09:06 -04:00
hiker 267e6963c2 Fixed #2294 (crash when kart is off road and not on material). 2015-08-26 17:15:59 +10:00
Marianne Gagnon 77098c9e7c Tweak subsea challenge 2015-08-25 21:28:49 -04:00
Marianne Gagnon 63ab79ff8d Fix string on GP result screen, fixes #2295 2015-08-25 21:28:09 -04:00
Marianne Gagnon 0cce586c87 Fix animated physics-only objects. Fixes #2292 2015-08-25 19:14:10 -04:00
Marianne Gagnon 64b4b7a2f2 Don't try to navigate to another screen when a dialog is open, fixes #2265 2015-08-24 18:56:50 -04:00
hiker e6ad28cc81 Fixed #2097 (allow friends to be sorted). 2015-08-24 08:09:32 +10:00
hiker 64af720833 Fix #2157 (FTL challenge in overworld showed number of laps). 2015-08-23 01:15:04 +10:00
hiker 1aa229287b Merge branch 'master' of github.com:supertuxkart/stk-code 2015-08-22 11:40:00 +10:00
hiker ee33c46797 Fixed #2183 (bomb hands moving backwards). 2015-08-22 11:36:40 +10:00
Marianne Gagnon ca384dc870 More font improvements for #2121 2015-08-21 19:39:01 -04:00
Marianne Gagnon 82ad06052d Add missing font char, see #2121 2015-08-21 19:35:14 -04:00
hiker 309097b0db Fixed #2151 (by disabling 800x600 resolution, except in artist debug mode). 2015-08-20 11:03:46 +10:00
Flakebi 586724c855 Merge branch 'master' into kart-properties
Conflicts:
	src/karts/kart.cpp
2015-08-19 12:03:43 +02:00
hiker aff41a25b5 Disabled AI debug, which was left enabled by mistake - sorry :) 2015-08-19 13:07:13 +10:00
hiker 6139d689d7 Fix #2176 - rank jump on Northern Resort: this was fixed by not
adjusting the distance a kart has travelled on the road if the
kart is flying and over a reset texture (previously stk would fine
a quad way ahead of the kart, and a much greater distance along
track, which caused the kart to be ahead for a few frames, before
it was rescued and reset to its original position).
2015-08-19 13:05:01 +10:00
Marianne Gagnon 35b15a9e7a Fixed corrupted text introduce with recent change of how translations are handled 2015-08-18 19:08:23 -04:00
Marianne Gagnon b92a479ac1 Merge remote-tracking branch 'temeliak/fix_2182' 2015-08-18 18:40:05 -04:00
hiker 8aeb16221a Fixed displaying of debug spheres in GLSL pipeline. 2015-08-18 23:50:55 +10:00
hiker f8f0c4e4e4 Fixed compiler warning. 2015-08-18 16:54:55 +10:00
hiker 2330624ccb Merge branch 'master' of github.com:supertuxkart/stk-code 2015-08-18 16:37:49 +10:00
hiker cf464f1ed8 Fixed various crashes when enabling AI debug (e.g. missing textures,
heap corruption because the hpp file did not know about AI_DEBUG
and so did not declare some variables).
2015-08-18 10:30:42 +10:00
auriamg 6a26010bc8 Merge pull request #2106 from Flakebi/test
Simplify StringUtils::insertValues
2015-08-16 19:48:05 -04:00
Flakebi 65c15fc19a Add a check to split for non-wide strings too 2015-08-17 01:32:13 +02:00
Flakebi eef55b04f8 Fix the merge 2015-08-17 00:31:55 +02:00
Flakebi 80a649fc2d Merge branch 'master' into test
Conflicts:
	src/utils/string_utils.hpp
	src/utils/translation.cpp
2015-08-17 00:22:02 +02:00
Flakebi 97891f25f7 Fix something 2015-08-17 00:03:29 +02:00
Flakebi c07f806afb Use a map instead of a vbector 2015-08-16 22:24:07 +02:00
Flakebi 8c09228b39 Remove underscores and add a comment 2015-08-16 21:05:52 +02:00
Flakebi b51eadae28 Merge branch 'master' into kart-properties 2015-08-16 16:45:47 +02:00
Flakebi 1c29ce7636 Fix little issues and remove wheel position from characteristics 2015-08-16 16:23:06 +02:00
Flakebi acbc629610 Add a script that automates the code replacements
Various other things:
 - Try to use newer c++ features
 - Rename travelcm
 - Remove wheel radius
2015-08-16 15:54:05 +02:00
konstin c78abbddf7 try to fix travis CI compilation 2015-08-15 15:10:30 +02:00
konstin 1eb3b6f74e More small improvements 2015-08-15 15:04:31 +02:00
konstin d9697cbbe0 order functions chronologically 2015-08-15 15:04:31 +02:00
konstin a4fa65673e huge amount of small improvements, most thanks to leyyin 2015-08-15 15:04:31 +02:00
konstin 1ce3be98ee Move the STUN request creating and sending from GetPublicAddress::asynchronousUpdate() into its own function 2015-08-15 15:04:30 +02:00
konstin 5ec9fa38ab Implement a consistent error managing for GetPublicAddress::asynchronousUpdate() by moving the STUN response parsing into its own function 2015-08-15 15:04:30 +02:00
konstin ee06cd3ba2 Improve readability and add documentation for GetPublicAddress::asynchronousUpdate() 2015-08-15 15:04:29 +02:00
hiker e97b0a9955 Avoid crash when using --check-debug (still wip). 2015-08-14 23:14:19 +10:00
hiker fa1ed0240f Fix #2270 (crash on startup). 2015-08-14 16:50:37 +10:00
hiker ce17da98bf Merge branch 'Elderme-Fix_particles' 2015-08-14 13:51:53 +10:00
Elderme 392a7c3203 Merge branch 'master' into Fix_particles 2015-08-13 18:25:18 +02:00
Elderme 0b748634ae Removed calls to resizeBox for nitro emitter 2015-08-13 18:15:34 +02:00
Elderme 01c8b25cb6 When the particles position is computed, the position of the emitter in both current and previous frames is now taken into account. There is no more visual artifact when the particles velocity and emitter velocity are not aligned (for example with nitro particles when a kart is skidding) 2015-08-13 14:53:45 +02:00
hiker 3a0f2e7ce5 Merge branch 'master' of github.com:supertuxkart/stk-code 2015-08-13 13:49:31 +10:00
hiker 567d08d360 Visualise invisible physics-only meshes when --physics-debug is
specified (helps debugging invisible walls).
2015-08-13 09:51:45 +10:00
auriamg 00ef94b2b9 Merge pull request #2284 from torso/master
Check size of window; don't assume it equals requested size
2015-08-12 18:03:32 -04:00
Torbjörn Söderstedt bc4e532510 Use actual screen size when fading cutscenes. 2015-08-12 22:54:42 +02:00
Deve 63249309c3 Fixed compiler warning.
Previously address of local variable was returned.
2015-08-12 19:23:38 +02:00
Deve 7a4112e89c Fixed compiler warning.
Based on fread specification, it returns number of elements which has been read.
Here is declared one element with size of whole file (len), so returned value should be always equal to 1.
2015-08-12 18:37:31 +02:00
temeliak eb2b5c400f Adding spaces to improve readability 2015-08-12 12:03:07 +01:00
temeliak 5616e791cb Adding space in if statements to make them more readable. 2015-08-12 11:55:51 +01:00
Marianne Gagnon 7b8da0ef34 Bugfix : objects with a physics collision from a library should rotate and scale according to the parent library object 2015-08-11 20:55:04 -04:00
temeliak a07029a365 Added SFX to nitro 2015-08-12 00:50:35 +01:00
Marianne Gagnon ea9520863d Try to correct string encoding issue in scripting. Fixes #2278 2015-08-11 19:30:20 -04:00
temeliak 0b60d4e9f6 Offer the possibility to look backward during the start phase. 2015-08-11 02:39:25 +01:00
Marianne Gagnon 70799539a6 Add graphical level preset between 4 and 5, the difference between the 2 was a little too steep 2015-08-10 19:04:35 -04:00
Marianne Gagnon 6529381acd Fix rescue code in tutorial mode, fixes #2279 2015-08-10 19:01:58 -04:00
Marianne Gagnon bc67f4f503 Merge branch 'master' of https://github.com/supertuxkart/stk-code 2015-08-09 21:40:05 -04:00
Marianne Gagnon d488c043d1 Continue work on scripting, fixing #2268. Use this as an opportunity to clean up a lot of old hardcoded overworld code, and replace it with cleaner scripting. Make sure to update SVN and the exporter (other commits in SVN coming soon) 2015-08-09 21:38:01 -04:00
Deve fe1222c5cc Don't add tracks in reversed mode when it's not available.
This fixes #2158.
2015-08-09 20:52:12 +02:00
Deve 78cd8efdd4 Reset screensaver counter on linux when joystick event was received 2015-08-09 18:54:59 +02:00
Deve 7ae541e638 Reload selected GP after changing the name.
This fixes #2159
2015-08-09 13:12:20 +02:00
konstin 25082f2fbc Add description 2015-08-08 14:31:32 +02:00
konstin c79c51e6c7 allow enabeling Network Multiplayer through CMake flags 2015-08-08 14:29:14 +02:00
Marianne Gagnon 43d5dbeb3e Implement setEnabled method for sound track objects, fixes warnings on terminal and fixes hiding objects containing sounds from scripting 2015-08-07 18:26:37 -04:00
Elderme 5b353a8921 Cleaned code in irr_driver.hpp 2015-08-07 15:32:13 +02:00
Elderme ae5f71e50e Merge branch 'master' into skybox_refactoring 2015-08-07 15:12:56 +02:00
Elderme 87b493aaa2 Cleaned code 2015-08-07 15:11:32 +02:00
Elderme f583fafd97 Fixed bug (SH textures were not taken into account) 2015-08-07 14:26:38 +02:00
Elderme 30ecf34b37 Spherical harmonics coefficients are no longer recomputed when the ambient light do not change 2015-08-07 13:50:44 +02:00
Marianne Gagnon 518a55d1e3 Fix quad requirements issue causing rescues to wrong quad 2015-08-06 20:24:20 -04:00
Marianne Gagnon fac5d6550b Fix use-after-free bug in profile management 2015-08-06 19:40:41 -04:00
Deve a3abb57480 Build wiiuse on VS2015 2015-08-06 19:57:22 +02:00
Elderme 351be306e1 Fixed memory leak: skybox textures are now freed in VRAM when deleting Skybox 2015-08-06 14:58:45 +02:00
Elderme 9ea3d4958a Improved coding style and added doxygen comments in ShericalHarmonics class 2015-08-06 14:47:38 +02:00
deve b5c15275de Fixed compiler warning.
This is already fixed upstream in commit r2174:
"Fixed compiler warnings in asGetTypeTraits on gnuc 5.1"
2015-08-06 14:35:26 +02:00
deve 5458792b79 Disable deprecated and unused irrlicht function to avoid compiler warnings 2015-08-06 13:54:40 +02:00
deve e1f61040e5 Use unique_ptr instead of auto_ptr 2015-08-06 13:54:29 +02:00
deve 75c1f02615 Restore using unique_ptr instead of auto_ptr in tinygettext.
It fixes compiler warnings on gcc 5.1 due to auto_ptr deprecation. It also makes our tinygettext fork closer to the upstream sources. And we use c++11 in other places anyway.
2015-08-06 13:54:11 +02:00
deve 2e1045f717 Merge branch 'master' of https://github.com/supertuxkart/stk-code 2015-08-06 10:03:07 +02:00
deve a0e54bb0b8 Avoid timespec structure redeclaration on VS2015.
Still seems to be a bit messy, because in newer pthread header (gcc 5.1) I see _TIMESPEC_DEFINED instead of HAVE_STRUCT_TIMESPEC. But it should work with our dependencies files.

And still wiiuse library needs to be recompiled to make it working with VS2015.
2015-08-06 10:00:08 +02:00
hiker 52e8df44fd Fixed compiler warning. 2015-08-06 16:47:41 +10:00
hiker a19119a2f2 Merge remote-tracking branch 'origin/master' into lensdust 2015-08-06 16:40:00 +10:00
hiker 43c12c1a1e Fixed slightly outdated documentation. 2015-08-05 20:57:27 +10:00
Elderme 0b479a8bb0 Moved spherical harmonics things from IBL.cpp to ShericalHarmonics class 2015-08-05 11:13:25 +02:00
hiker 41f744baf3 Merge branch 'master' of github.com:supertuxkart/stk-code 2015-08-05 17:02:55 +10:00
hiker b44f0605dc Try to bring karts quicker back on the ground when the kart is
on its side, without overcompensating (and therefore shaking)
when the kart is only slightly non-parallel to the ground
when flying.
2015-08-05 17:00:40 +10:00
Marianne Gagnon c2feb458af When restoring ribbon selection, consider that maybe the ribbon does not anymore contain as many items as previously. Fixes #2260 2015-08-04 19:31:38 -04:00
Marianne Gagnon bd85f51779 Improve memory management in GP manager, fixes #2261 2015-08-04 19:26:12 -04:00
hiker f36672c104 Merge branch 'master' of github.com:supertuxkart/stk-code 2015-08-05 08:16:10 +10:00
hiker 9e75d28eeb Write the reverse flag into history files. 2015-08-05 08:15:31 +10:00
hiker 93a5a91628 Fix #2152 (star effect not showing in graphics level 1). 2015-08-05 08:07:58 +10:00
hiker ba07515b4f Merge pull request #2259 from konstin/master
remove patch file
2015-08-04 19:37:37 +10:00
konstin cdfa571855 remove patch file 2015-08-04 11:15:29 +02:00
Elderme c3f77a3b72 Fixed kart selection screen rendering (ambient light was broken) 2015-08-04 10:49:39 +02:00
hiker 4f4a1c0373 Added support for reverse mode in history files. 2015-08-04 17:14:36 +10:00
hiker 2a56cc6241 Fix 2192 (key names like "Left" are not translatable). 2015-08-04 09:45:38 +10:00
hiker 340dec329c Support to mirror a texture around U or V axis if a track is driven
in reverse.
2015-08-03 23:25:11 +10:00
hiker 6f11156c04 Fixed crash if a player kart in a saved GP is deleted. 2015-08-03 22:02:13 +10:00
Elderme 53b6ab0a48 Moved specular probe computations from IBL files to Skybox class 2015-08-03 11:35:51 +02:00
hiker 8d0cad3cb8 Use proper call instead of hard coded constant. 2015-08-03 15:44:44 +10:00
hiker a852cf94fb Don't save random GPs (which can not be continued anyway), and allow only
one saved data set (for each GP and difficulty). Previously saved 'random'
GPs (which can't be continued anyway) are deleted now, cleaning up the
config.xml file.
2015-08-03 15:10:36 +10:00
hiker 085627364c Fix #2162 (switch kart when loading a GP). 2015-08-03 07:53:21 +10:00
Elderme 6fc28b5d7c Removed render_skybox.cpp file 2015-08-02 23:07:05 +02:00
Elderme 3a50a4d5d2 Moved remaining spherical harmonic things from render_skybox.cpp to SphericalHarmonic class 2015-08-02 23:01:52 +02:00
Elderme 2817fda910 Merge branch 'master' into skybox_refactoring 2015-08-02 00:09:10 +02:00
Elderme a8b16bb1d4 Fixed bug in tracks without skybox 2015-08-01 23:45:46 +02:00
hiker 2f902f769d Fixed minor memory leak. 2015-08-01 22:02:00 +10:00
hiker 78c592e4e5 Added a file with a 'unique filename' with version number which is used by STK
to detect that stk is reading the right data files (and therefore avoids #2073,
in which stk finds the wrong data directory).
2015-07-31 22:06:21 +10:00
hiker b6165ce5f5 Merge branch 'master' of github.com:supertuxkart/stk-code 2015-07-31 16:51:27 +10:00
hiker a81366c414 Removed rescue-code duplication in battle mode and soccer mode. 2015-07-31 16:27:52 +10:00
hiker 431853b451 Removed some unused code, added better error message in case
stk_config.xml could not be found.
2015-07-31 15:45:25 +10:00
auriamg 7fbfad664a Merge pull request #2228 from tobbi/misc_coverity
Fix a couple of deref after NULL check in states_screens
2015-07-30 19:21:46 -04:00
hiker 9557ad9be9 Merge branch 'master' of github.com:supertuxkart/stk-code 2015-07-31 07:51:23 +10:00
hiker 25c1880c18 Fixed rescue in soccer mode (which would previously used World's
moveKartAfterRescue, not its own custom function).
2015-07-31 07:49:54 +10:00
Tobias Markus a9761e30da Fix various issues reported by coverity 2015-07-30 18:46:01 +02:00
Elderme 8642e14bc3 Removed m_diffuse_coefficients_calculated attribute in RTT (diffuse coefficients are now managed in SphericalHarmonic class) 2015-07-30 17:51:42 +02:00
hiker bf858dd3ff Fixed compiler warning. 2015-07-30 17:14:18 +10:00
hiker 7799e9835d Added a getStartTransform function to World. Use this to change
the start position of the non-leader karts in a FTL race, so that
those karts now start at the end of all start positions, and not
directly behind the leader.
2015-07-30 17:12:48 +10:00
Elderme 133f8d5966 solved conflicts 2015-07-30 08:29:28 +02:00
Elderme 39d1c87b11 Fixed incorrect rendering when there is no spherical harmonic textures 2015-07-30 08:14:57 +02:00
Elderme 97ed8b2dbf splitted skybox class in Skybox and SphericalHarmonic classes 2015-07-30 08:14:57 +02:00
Elderme 3640e4a69a Move skybox things from irr_driver to Skybox class. 2015-07-30 08:14:57 +02:00
Elderme cf40c402ba Add a Skybox class 2015-07-30 08:14:57 +02:00
Marianne Gagnon 738e7bc780 Fix inverted if condition in input options screen, fixes #2255 2015-07-29 18:55:40 -04:00
Marianne Gagnon 3687eb79d6 Apply modified version of patch from Benau to fix chinese word wrapping. See #2110 2015-07-29 18:51:03 -04:00
Flakebi ec3083827d Add some documenation and try to get some backwards compatibility 2015-07-29 23:02:16 +02:00
hiker 75b49b4d4f Merge branch 'master' of github.com:supertuxkart/stk-code 2015-07-29 17:29:45 +10:00
hiker b18d0275fd Display a finish (survival) time in FTL result screen. 2015-07-29 17:27:43 +10:00
Flakebi 5d36b95c95 Merge remote-tracking branch 'upstream/master' into kart-properties
Conflicts:
	data/stk_config.xml
	sources.cmake
	src/karts/kart.cpp
	src/karts/kart.hpp
	src/karts/kart_properties.cpp
	src/karts/kart_properties.hpp
	src/tracks/track.cpp
2015-07-29 02:48:43 +02:00
Flakebi 37e78e85a6 Forgot to convert string to char* 2015-07-29 02:25:32 +02:00
Marianne Gagnon 280ddf967d Add missing character to the font, fixes #2226 2015-07-28 19:17:37 -04:00
hiker d27ba5f6fe Fix #2249 (show points and points increasing in a FTL GP). 2015-07-29 08:58:42 +10:00
hiker 6ada5a0666 Revert "Properly ignore the leader in the ftl scoreboard"
(this patch only fixed the problem that happens when a non-leader
is number one. By now the code has fixed that it is guaranteed
that the leader is always number one, so this patch is not
necessary anymore, and it complicates the loop).

This reverts commit e9d78326fb.

Conflicts:

	src/states_screens/race_result_gui.cpp
2015-07-29 08:12:23 +10:00
hiker 3f468b254c Removed unused/duplicated code, use World::setKartPosition instead
of Kart::setPosition (since this will keep an index array up-to-date).
2015-07-29 07:59:46 +10:00
hiker 8dbaea6456 Merge branch 'master' of github.com:supertuxkart/stk-code 2015-07-28 09:40:27 +10:00
hiker 5efb44a430 Fixed scores in FTL GPs. All score handling is now done by the World,
not race manager (which removes if tests).
2015-07-28 09:39:00 +10:00
hiker 5c66273712 Fixed compiler warning. 2015-07-27 16:41:46 +10:00
samuncle 9087d0f837 Increase the strenght of the lens dust 2015-07-27 02:00:34 +02:00
hiker 95b86ea914 Fixed #2247. 2015-07-27 09:56:58 +10:00
auriamg 35949b198a Merge pull request #2252 from tobbi/fix_story_mode_crash
Fix crash when loading story mode
2015-07-26 19:06:20 -04:00
Marianne Gagnon 51fe38f76e Use <cmath> instead of <math.h>, apparently fixes OSX compilation. Closes #2253 2015-07-26 19:05:05 -04:00
auriamg df1bb8b3dd Merge pull request #1956 from Flakebi/feature
Use camera position for LoD instead of the kart position, fixes #1742
2015-07-26 18:54:22 -04:00
Tobias Markus fcc3e75a99 Fix crash when loading story mode 2015-07-26 16:41:36 +02:00
samuncle 1ca6339589 Add color to the lens dust 2015-07-26 05:30:29 +02:00
samuncle 51bd87d303 ground work for lens dust 2015-07-26 04:48:29 +02:00
Marianne Gagnon 4356dfde0c Document missing command-line option, fixes #2095 2015-07-25 20:06:42 -04:00
Marianne Gagnon a268354ac9 Merge branch 'master' of https://github.com/supertuxkart/stk-code 2015-07-25 19:55:55 -04:00
Marianne Gagnon e0dd736a7c Main menu : prevent text on mouse over from overflowing the bounds of the screen. FIxes #2163 2015-07-25 19:55:17 -04:00
samuncle d95f9d844d put into comment the blue lens flare if we need in the future 2015-07-26 01:51:28 +02:00
samuncle 1ec0c18d5a Change the fov (hiker you can still tweak or make an option 2015-07-26 01:49:29 +02:00
samuncle 33a60ae8d5 Merge branch 'master' of https://github.com/supertuxkart/stk-code 2015-07-26 01:46:50 +02:00
samuncle 12b1ea5a6c Turn on color for lens flare 2015-07-26 01:46:19 +02:00
hiker d9e806f610 Changed unsigned int to int (dest_pos can become negative, and
while de-facto it still works with unsigned, it's just bad style :) ).
2015-07-26 00:32:11 +10:00
hiker a9aa37ea97 Minor code style fixes. 2015-07-26 00:31:15 +10:00
hiker c8909b9197 Fixed missing display of points for non-winners in a FTL GP (partly fix
for #2249).
2015-07-26 00:30:09 +10:00
hiker cd256061e1 Fix #2248 (crash when taking screenshot). The assert was not appropriate
(avoiding the call to clearAllMessages would have been quite ugly).
2015-07-26 00:26:43 +10:00
hiker 76a779fc1c Merge branch 'ftl-scoreboard' of https://github.com/Flakebi/stk-code into Flakebi-ftl-scoreboard 2015-07-25 12:17:02 +10:00
hiker 622d0821cf Fixed rescue (which my previous commit broke). 2015-07-24 21:38:35 +10:00
hiker 6345272727 Removed unnecessary #include in kart.hpp. 2015-07-24 16:51:03 +10:00
hiker ac779d0652 Merge branch 'master' of github.com:supertuxkart/stk-code 2015-07-24 16:40:37 +10:00
hiker a2c4160ce0 Added TerrainInfo raycast to debug view. 2015-07-24 16:37:13 +10:00
hiker cefce3152c Fixed #2246. 2015-07-24 16:36:55 +10:00
hiker 672314fbe2 Added camera-at-side-of-kart debug mode. 2015-07-24 11:00:13 +10:00
hiker c10bd01703 Merge branch 'Flakebi-fixes' 2015-07-24 10:24:05 +10:00
hiker 8bc398a1c1 Merge remote-tracking branch 'origin/master' into Flakebi-fixes 2015-07-24 10:23:47 +10:00
Flakebi 324a93cd65 Fix karts without a type 2015-07-24 02:10:23 +02:00
Marianne Gagnon aacf1293da Eliminated karts in GPs get 0 points. Fixes #2177 2015-07-23 20:01:54 -04:00
Marianne Gagnon 5c27769ceb Fix uninitialized variable use, fixes #2179 2015-07-23 19:52:30 -04:00
Marianne Gagnon 52313c1468 Draw achievements a bit later so that they are on top. FIxes #2237 2015-07-23 19:21:43 -04:00
Elderme cf80dde333 Move skybox things from irr_driver to Skybox class. 2015-07-23 14:21:47 +02:00
Elderme 94d6d2efd6 Add a Skybox class 2015-07-23 14:21:47 +02:00
auriamg 5164a55472 Merge pull request #2244 from Flakebi/addons-rtl
Fix reversed rtl string part
2015-07-22 18:35:22 -04:00
hiker 2f51406e3d Made field-of-view configurable in the config file. 2015-07-22 08:12:44 +10:00
Flakebi 2eb0f151b7 Fix reversed rtl string part 2015-07-21 11:52:23 +02:00
hiker bb058deea5 Avoid that the kart is 'shaking' backwards/forwards when flying. 2015-07-21 16:56:51 +10:00
hiker cd8fd7fb16 Merge remote-tracking branch 'origin/master' into Flakebi-fixes 2015-07-20 09:10:05 +10:00
hiker 8be383015c Simplified shadow interface. 2015-07-19 13:44:05 +10:00
hiker 91c40e27c2 Reduced number of parameters for Shadow. 2015-07-18 23:41:27 +10:00
hiker dc68f5f122 Fixed crash when real shadows are used. 2015-07-18 12:26:18 +10:00
hiker 802d4897fe Removed unused kart properties settings. 2015-07-18 12:24:56 +10:00
hiker 0f09649aa8 Force rerun of cmake. 2015-07-18 11:59:52 +10:00
hiker e755a7eda8 Merge remote-tracking branch 'origin/master' into graphical_chassis_to_physical_chassis 2015-07-18 11:53:49 +10:00
hiker ffb3c2ce4c Moved visual slightly higher (hopefully as much as in the previous implementation),
to avoid that the visual chassis disappears into the ground.
2015-07-18 11:42:33 +10:00
hiker d94f6ffe66 Added documentation about the visual chassis and wheel positioniong.
Removed unused/old coda, and moved kart at exactly the same position
as they are in blender.
2015-07-18 10:21:01 +10:00
Marianne Gagnon 675b0b9458 Improve scripting error handling, more work on different shapes for collision triggers 2015-07-17 19:18:12 -04:00
Marianne Gagnon 3cb57358a3 Fix #2242 2015-07-16 19:38:34 -04:00
hiker 68cea42648 Fixed visual position of chassis, wheels and shadow. 2015-07-15 16:35:09 +10:00
Marianne Gagnon 84e78e0d40 Some cleanup to check structures, start adding new cylinder check structure (WIP) 2015-07-14 19:00:00 -04:00
hiker 8c842fb2e8 Fixed incorrect uage of radians. 2015-07-14 22:32:09 +10:00
hiker 210e4fb4ec Removed optional setting for random-wheel rotation. 2015-07-14 17:36:03 +10:00
hiker 9f687fd6cf Removed unnecessary computation (now that physics does not include
wheel rotation).
2015-07-14 17:27:06 +10:00
Marianne Gagnon 77fac34e41 More cleanup to remove hardcoded things in favor of scripting, and start work to allow for more action trigger shapes (work in progress) 2015-07-13 20:27:16 -04:00
Flakebi 2620a77dc1 Adjust and remove properties 2015-07-13 00:23:05 +02:00
Flakebi a61ad88ee6 Move more properties 2015-07-13 00:08:35 +02:00
Flakebi ffca848a33 Remove more outdated variables 2015-07-12 01:29:17 +02:00
Flakebi 1317714ba1 Adjust the speed and power values 2015-07-12 01:09:01 +02:00
Flakebi 5bfb1a2c6b Fix some bugs 2015-07-12 00:39:38 +02:00
Flakebi db13a1fae6 Remove data from stk_config.xml 2015-07-11 19:33:13 +02:00
Flakebi 9fc6f84545 Switch from properties to characteristics 2015-07-11 19:22:27 +02:00
Flakebi 1ceab872b1 Remove PlayerDifficulty class 2015-07-11 16:16:40 +02:00
Flakebi eb19bf571e Load and combine characteristics 2015-07-11 15:38:52 +02:00
Flakebi 0ecc76090b Add kart types 2015-07-10 01:14:08 +02:00
Flakebi a305b357a3 Change characteristics to characteristic and add player characteristics 2015-07-10 00:36:50 +02:00
hiker 93282f8abf Completely removed the usage of a physical wheel radius in the physics, it was
never really necessary, the phsyics are basically the same). Wheel rotation is
was refactored to be completely done in KartModel now.
2015-07-09 23:59:53 +10:00
hiker 0345565ea8 Fixed handling of tall karts (accidentally committed debug version). 2015-07-09 16:39:40 +10:00
hiker 5d573832e1 Oops - forgot to change the actual value of 'travel' from cm to m. 2015-07-09 09:15:34 +10:00
Flakebi cb797c3145 Remove unnecessary move and add a bit documentation 2015-07-08 22:07:46 +02:00
Flakebi 2272002d5c Implement processFloat 2015-07-08 16:55:11 +02:00
Flakebi c22d5c8e6e Add more to xml reading 2015-07-08 16:55:11 +02:00
Flakebi cedd816ca1 Extend InterpolationArray 2015-07-08 16:55:11 +02:00
Flakebi 35aeeea6c6 Add getName for enum 2015-07-08 16:55:10 +02:00
Flakebi 17b775959c Change reference to pointer 2015-07-08 16:55:10 +02:00
Flakebi c1ed8790ef Add xml reading 2015-07-08 16:55:10 +02:00
Flakebi ddb850b149 Add new files 2015-07-08 16:55:10 +02:00
Flakebi 2b9a7a2016 More work 2015-07-08 16:55:10 +02:00
Flakebi 78b4634363 Work 2015-07-08 16:55:10 +02:00
Flakebi a3f94f6b67 Update abstract characteristics with script generated content 2015-07-08 16:55:10 +02:00
Flakebi 3414f7cb91 Add script to create characteristics file 2015-07-08 16:55:10 +02:00
Flakebi 483993d2d8 Start with getters 2015-07-08 16:55:10 +02:00
Flakebi 5dec3c4602 Add characteristics 2015-07-08 16:55:10 +02:00
Flakebi fc8a726156 Add config file for kart characteristics 2015-07-08 16:54:35 +02:00
hiker 3b9e85af0b Converted bullet's TravelCM (i.e. in cm) into Travel (i.e. in m). 2015-07-09 00:06:19 +10:00
hiker aa7bf607bf Minor cosmetic changes. 2015-07-08 16:38:01 +10:00
hiker 7b11e51f2b Coding style fixes. 2015-07-08 08:31:32 +10:00
hiker a28ea76b90 Fix wheel position for karts that are too high. 2015-07-08 08:25:10 +10:00
hiker 9eab818d53 Added fused speed-position commands to the commands to be dropped
when the sfx queue is too full.
2015-07-08 08:23:55 +10:00
hiker 43f9cf39bc Fix shadow to be always on the ground, even when a skid-jump is done. 2015-07-08 08:23:25 +10:00
hiker 62e2f05607 Fixed shadow position, improved wheel position. 2015-07-07 17:02:09 +10:00
hiker 12f942c258 Moved debug camera a bit further back. 2015-07-07 17:00:24 +10:00
Flakebi 84e3b9dbe9 Remove SKID_OLD code 2015-07-03 15:38:20 +02:00
Flakebi d2ca7d11d7 Remove unused/commented out code 2015-07-03 15:36:45 +02:00
Flakebi fbf26df23d Merge branch 'master' into fixes
Conflicts:
	src/graphics/2dutils.cpp
	src/graphics/graphics_restrictions.cpp
	src/graphics/render_skybox.cpp
	src/graphics/rtts.hpp
2015-07-03 15:29:53 +02:00
hiker 70da00de7d Merge branch 'master' into graphical_chassis_to_physical_chassis 2015-07-03 16:39:20 +10:00
hiker 9b562d31f4 Replaced Widget's set(De)Activated functions with one setActive(bool)
function, which simplifies code for various screen a lot.
2015-07-03 16:19:28 +10:00
hiker 8059544b21 Try to fix advanced pipeline. 2015-07-03 08:22:39 +10:00
hiker f3dee7241f Merge branch 'master' into graphical_chassis_to_physical_chassis 2015-07-03 08:15:08 +10:00
hiker ad3a5ac730 Merge branch 'master' of github.com:supertuxkart/stk-code 2015-07-03 08:13:39 +10:00
hiker 747aa39bdf Disable artificial shadow if shader-based shadows are available. 2015-07-03 08:12:55 +10:00
hiker 97499759ec Revert "Remove shadow blob"
This reverts commit 33c0dfe7c2.
2015-07-03 07:55:50 +10:00
hiker 0631d10f91 Move graphical chassis and wheels to be at the same location as the physical ones. 2015-07-03 07:49:27 +10:00
hiker 369ed86380 Added 'behind kart' camera which helps debugging graphical
vs physical chassis position issues.
2015-07-02 16:39:13 +10:00
hiker 34d22a32c7 Improved distance calculation (so that the same distance to the rear
of each kart is reached).
2015-07-02 16:35:51 +10:00
hiker 799b4cdf7e Minor code cleanup. 2015-07-02 08:04:37 +10:00
hiker 04c84fd23d Moved skidding lights from Kart into KartGFX. 2015-07-01 18:57:44 +10:00
Marianne Gagnon 92974fc4b3 Fix scripting crash 2015-06-30 21:35:17 -04:00
hiker 8aabb30687 Fixed memory leak. 2015-07-01 08:58:15 +10:00
hiker 576270bb17 Coding style changes, removed dead code and unused variables. 2015-07-01 08:57:40 +10:00
hiker 4ec423ff35 Coding style improvements. 2015-07-01 08:22:43 +10:00
hiker f82bb996ea Fixed memory leaks of lights. 2015-07-01 08:04:10 +10:00
hiker b41035a008 Moved nitro_light from Kart into KartGFX. 2015-06-30 21:49:20 +10:00
hiker 42114c163c Minor refactoring to move more code into KartGFX. 2015-06-30 16:59:48 +10:00
hiker 1bafdf528f Fix wheel-view camera. 2015-06-29 16:17:14 +10:00
Marianne Gagnon 1ceb05c2cb More scripting functions to control particles 2015-06-28 19:10:43 -04:00
Marianne Gagnon eda00e12f9 Expose length method in scripting vector3 2015-06-28 19:03:09 -04:00
Marianne Gagnon 68eb4eb359 Start work to control particle emitters from scripts, and allow getting kart velocity from script 2015-06-28 19:00:25 -04:00
hiker 08529e167f Fixed memory leak. 2015-06-29 08:41:46 +10:00
hiker a9958a60a8 Minor cosmetical changes. 2015-06-29 08:41:20 +10:00
hiker 0dc2e66039 Fixed compiler warnings. 2015-06-29 08:24:31 +10:00
hiker 11a213fa8d Significantly reduced number of audio sfx commands: instead of sending
7 commands for each kart (when only engine is actually playing),
now there is only one command being sent: positions of sfx that are
not playing are not sent anymore, a duplication engine position was
removed, and speed and position are combined into one event.
2015-06-29 08:09:42 +10:00
Marianne Gagnon f992b864e1 More work on moving track objects via scripting 2015-06-25 19:33:28 -04:00
auriamg 4070933364 Merge pull request #2212 from Flakebi/remove-icc
Strip ICC headers from png files to silence warning
2015-06-23 21:15:14 -04:00
Marianne Gagnon be81a7fd11 Increase size of popup, text was truncated at least in french 2015-06-23 18:46:36 -04:00
Marianne Gagnon 64adbb4238 Remove anchor as weapon from help menu, fixes #2173 2015-06-23 18:32:38 -04:00
Marianne Gagnon 74f19f0cbc Start working on scripting API to move objects 2015-06-22 19:36:30 -04:00
Marianne Gagnon 0fdc7a2d98 Use plural form for resolution change message, fixes #2219. ALso fix crash in tinygettext code handling plural forms 2015-06-22 19:26:20 -04:00
Marianne Gagnon ae18901bb2 Try fixing travis build 2015-06-21 19:57:06 -04:00
Marianne Gagnon b73469caf1 Extend scripting API with random and timeout functions 2015-06-21 19:44:22 -04:00
Marianne Gagnon 9119f5f291 Fixes for scripting documentation 2015-06-21 18:43:31 -04:00
Marianne Gagnon 90cf3176d1 Start adding an audio scripting API, and also fix a deadlock in sfx_manager due to improper release of locks 2015-06-21 18:31:16 -04:00
Marianne Gagnon 789384a7bf Fix loading scripts in local library nodes 2015-06-18 19:24:39 -04:00
Marianne Gagnon 8119b59af0 More fixes on intially hidden objects 2015-06-18 19:09:13 -04:00
Marianne Gagnon 403d61e754 Allow creating initially hidden objects, that can later be shown through scripting 2015-06-17 19:33:53 -04:00
Marianne Gagnon b3cc5f9f0d Try to fix Travis build 2015-06-15 20:09:22 -04:00
Marianne Gagnon 01b9ee2a63 RTT: calculate diffuse coefficients only once 2015-06-15 19:47:52 -04:00
Marianne Gagnon fa027c11da Work on hiding/showing library nodes (especially when they contain movable children, which are a special case) 2015-06-15 19:44:31 -04:00
Marianne Gagnon db55c35ed1 Disable bloom / depth-of-field when using physics debug modes, makes lines easier to see 2015-06-15 19:38:12 -04:00
Marianne Gagnon 97100db507 RTT: avoid computing diffuse coefficients every frame 2015-06-15 19:21:34 -04:00
Marianne Gagnon f651321ceb Using system angelscript must now be explicitely requested through an option, shouldn't be enabled by default as this will mostly lead to build errors due to finding a different version 2015-06-15 18:46:06 -04:00
hiker edbb6892e0 Added comments. 2015-06-13 12:34:33 +10:00
Marianne Gagnon e35d5a07b4 Little hack : make the kart selection screen seem faster by moving the cursor immediately, and loading the kart model only on next frame. See #2216 2015-06-11 20:22:30 -04:00
samuncle da6133d72e Merge pull request #2215 from tobbi/fix_2214
Fix flags on GetModule call. Thanks to seebi for the fix
2015-06-12 00:48:29 +02:00
Tobias Markus b32fff8dad Fix flags on GetModule call 2015-06-12 00:28:55 +02:00
hiker d95bdc2ea9 Merge branch 'master' of github.com:supertuxkart/stk-code 2015-06-10 23:18:48 +10:00
hiker 09227fa19d Finally fully fixed #2213. 2015-06-10 23:18:06 +10:00
hiker 860135376d Start to fix resolution change by properly freeing data. 2015-06-10 10:33:47 +10:00
hiker 0162407ff3 Added proper ref-counting. 2015-06-10 10:33:06 +10:00
Marianne Gagnon 32edaa25fe Adjust load and cleanup sequence for scripts, enabling scripts in library objects 2015-06-09 20:24:17 -04:00
Marianne Gagnon cb510840ae Work on scripting, namely improving interaction with library objects 2015-06-05 19:34:46 -04:00
Flakebi 41002fc262 Strip ICC headers from png files to silence warning 2015-06-05 03:32:26 +02:00
Marianne Gagnon 238578c921 More work towards handling library nodes in scripting 2015-06-04 20:12:03 -04:00
hiker 9531f0b3a4 Merge remote-tracking branch 'origin/master' into refactor_shaders 2015-06-05 09:13:27 +10:00
Marianne Gagnon bd006c875e Let track objects know what library object they are part of, paving the way for scripting to interact with library objects 2015-06-03 20:34:58 -04:00
hiker 9a1cba3ac8 Merge remote-tracking branch 'origin/master' into refactor_shaders 2015-06-03 15:11:27 +10:00
hiker 9094cbd31a Added NoCopy to FrameBuffer objects (copying a frame buffer e.g.
as a parameter to a function can lead to incorrect results, likely
because on exit of the function, data in the (copied) frame buffer
object is freed, and then not available for OpenGL anymore.
2015-06-03 15:10:11 +10:00
hiker f59d277f3e Improve handling of sudden steeper uphill section by increasing the
suspension force, which makes it less likely for the kart to hit
the terrain.
2015-06-03 09:03:40 +10:00
hiker d4f3fc88d6 Merged pull requests #2191. 2015-06-02 14:50:32 +10:00
hiker 2cf4341916 Merge remote-tracking branch 'origin/master' into refactor_shaders 2015-06-02 14:49:50 +10:00
hiker 1dabb39ed4 Fixed warnings most likely caused by copying a frame buffer object
(missing &), added several const to frame buffer references.
2015-06-02 14:19:15 +10:00
hiker 8fd0b9186a Merge pull request #2198 from nado/Fix-#2164
Fix #2164 : Resized max length of mail address up to 254 chars
2015-06-02 13:47:54 +10:00
hiker 0f5a44ea1f Merge pull request #2209 from AMDmi3/errno
Include cerrno for errno; fixes clang compilation error
2015-06-02 13:46:51 +10:00
Dmitry Marakasov cfbec1f470 Include cerrno for errno; fixes clang compilation error 2015-06-02 04:36:30 +03:00
hiker a51d56a6e5 Merge remote-tracking branch 'origin/master' into refactor_shaders
Conflicts:
	src/tracks/track_object_presentation.cpp
2015-06-01 09:28:23 +10:00
Marianne Gagnon b3d97241d7 Scripting : cleanup, add poweruptype enum 2015-05-31 18:39:40 -04:00
Marianne Gagnon 501dd14bb6 More scripting work on item-object collisions 2015-05-31 18:20:52 -04:00
hiker 9b2994c975 Added documentation to shader base classes. 2015-06-01 08:19:31 +10:00
hiker 2f287fbee6 Removed unused clean-shader functionality (which is now done by
shader.?pp), removed global shader name variable.
2015-06-01 08:14:56 +10:00
Marianne Gagnon 8ef16c146e Scripting work : improve flyable vs object collision callbacks. More work to do still. 2015-05-31 18:09:51 -04:00
hiker 51fb693455 Remove all kill functions for shader reloading after all shaders
have been deleted.
2015-05-30 12:37:39 +10:00
hiker 642216da83 Minor coding style change. 2015-05-30 12:16:38 +10:00
hiker e5a7f27f19 Renamed files to follow our coding style. 2015-05-30 12:16:11 +10:00
hiker 48235a5d77 Turned ShadowMatrices into a stand-alone proper class. 2015-05-30 11:29:08 +10:00
Marianne Gagnon 40ea7f94f0 Scripting work : improve object-kart collision callbacks 2015-05-28 19:57:36 -04:00
Marianne Gagnon 1ada542fa5 Continue porting overworld to scripting 2015-05-24 19:15:50 -04:00
Marianne Gagnon 4c02204eff Start porting the overworld to scripting 2015-05-24 18:34:01 -04:00
hiker 855c59db09 Removed global variable shadowSplit (missing in previous commit). 2015-05-22 16:45:09 +10:00
hiker 0b2c44ed71 Removed unused function, minor coding style cleanup. 2015-05-22 16:44:22 +10:00
hiker 5ba3dee122 Moved global variable at least into a class. 2015-05-22 16:37:54 +10:00
hiker ced9e55639 Moved shared shaders into Shaders class. 2015-05-22 16:26:30 +10:00
hiker cbd5670764 DIE global function - rest in peace, push up the daisies, kick the bucket. 2015-05-22 11:09:51 +10:00
Marianne Gagnon 0a3daf9484 Scripting work : the tutorial is now completely scripting-powered, nothing hardcoded anymore 2015-05-21 20:26:28 -04:00
Marianne Gagnon 17cfc130d0 Merge remote-tracking branch 'ignatenkobrain/ubundle_angelscript'
Conflicts:
	src/scriptengine/scriptarray.cpp
2015-05-21 20:20:03 -04:00
hiker e4f29d4dea Removed one more reference to global functions. 2015-05-22 10:00:26 +10:00
hiker 30fa3345e4 Removed more references to global function. 2015-05-22 09:57:28 +10:00
hiker 0f8d36889f Remved references to global function. 2015-05-22 09:51:09 +10:00
hiker 813d80a792 Removed two more references to global function. 2015-05-22 09:45:48 +10:00
hiker c21f6abeb7 Removed one more reference to global function. 2015-05-22 09:42:42 +10:00
hiker 8577f0d185 Removed one more reference to global function. 2015-05-22 09:40:46 +10:00
hiker 9048b6ffcd Removed one more reference to global function. 2015-05-22 09:37:34 +10:00
hiker cc9163ca77 Removed one more reference to global function, renamed functions
Bind and BindLayer to bind and bindLayer.
2015-05-22 09:29:42 +10:00
Marianne Gagnon 722cd0e181 Merge branch 'Scripting' 2015-05-21 19:29:01 -04:00
hiker 3a64d2c70e Removed one more reference to global function. 2015-05-22 09:18:21 +10:00
hiker d2a7e21632 Removed one more reference to global function. 2015-05-21 17:16:03 +10:00
hiker 18179bd18d Removed one more reference. 2015-05-21 17:12:59 +10:00
hiker 2c68bd194c Move more code into shader, removed one more reference to global function. 2015-05-21 17:09:53 +10:00
hiker 6f84a4dca1 Moved functionality into shader. 2015-05-21 16:59:40 +10:00
hiker 959d17ccb5 Moved one more reference to global function, minor coding style adjustments. 2015-05-21 16:46:46 +10:00
hiker abbd54ffa0 Replaced another global function reference. 2015-05-21 16:43:41 +10:00
hiker 4d6a9726b6 Renamed shader. 2015-05-21 16:37:59 +10:00
hiker dc8361b941 Fixed spelling of shader. 2015-05-21 11:19:40 +10:00
Marianne Gagnon 8113ea128b Minor scripting work 2015-05-20 20:17:00 -04:00
hiker 101fcf5df7 Removed more references to global function. 2015-05-21 10:09:43 +10:00
hiker e9c2f0ecf1 One less DrawFullScreenEffect function. 2015-05-20 17:18:55 +10:00
hiker d437ffa3bf Removed more accesses to global DrawFulLScreenEffect function. 2015-05-20 17:11:06 +10:00
hiker 8e6d9d2f41 Removed more references to global DrawFullScreenEffect function. 2015-05-20 16:53:30 +10:00
hiker dec62d63ea Fixed linux compilation. 2015-05-20 10:08:38 +10:00
hiker 063fb6b65f Try to fix linux compilation. 2015-05-20 09:19:59 +10:00
hiker 4ef85d692c Replaced one more call to DrawFulLScreenEffect. 2015-05-20 09:09:34 +10:00
hiker e241f167a7 Started to remove global DrawFullScreenEffect template. 2015-05-20 08:41:03 +10:00
hiker d64428db34 Moved more shaders, cleaned up unused code and other left-over bits. 2015-05-19 23:01:36 +10:00
hiker e0b1e876f0 Moved more shaders. 2015-05-19 21:10:49 +10:00
hiker ab4f77e80e Moved more shaders. 2015-05-19 18:55:32 +10:00
hiker 0c2e6c1640 Moved more shaders. 2015-05-19 18:51:26 +10:00
hiker 553a0a8b58 Moved more shaders. 2015-05-19 16:40:47 +10:00
hiker 52017e31ea Removed unused shader. 2015-05-19 16:36:24 +10:00
hiker a401096487 Moved more shaders, minor cleanup of coding style in irr_driver.hpp. 2015-05-19 16:34:07 +10:00
hiker e94c3e5d3f Removed unused global variables. 2015-05-19 16:11:54 +10:00
hiker 6d8d78be73 Moved more shaders, moved createVAO into Shader. 2015-05-19 16:07:24 +10:00
hiker 2224f4ebfa Removed unused shader. 2015-05-19 09:39:04 +10:00
hiker 283a7c58b9 Moved more shaders. 2015-05-19 09:36:28 +10:00
hiker b40f84e89d Moved more shaders. 2015-05-19 09:20:29 +10:00
Igor Gnatenko 7005f3b069 build: allow to use system angelscript
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2015-05-18 17:23:28 +03:00
Igor Gnatenko 65c25065ee angelscript: don't use deprecated GetParamTypeId
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2015-05-18 17:17:19 +03:00
hiker 8e4ee298e0 Moved shaders into render_lighting, fixed coding style for
render_lighting.
2015-05-18 21:33:26 +10:00
Nado 2b36759ba3 Resized max length of mail address up to 254 chars 2015-05-18 09:33:21 +02:00
hiker 6def0c752c Moved more shaders. 2015-05-18 16:52:42 +10:00
hiker 90d7fac6c4 Fixed coding style. 2015-05-18 16:43:30 +10:00
Marianne Gagnon e290e9003d Tweak for scripting documentation 2015-05-17 20:12:39 -04:00
Marianne Gagnon db4c6f4799 Work on scripting console 2015-05-17 20:03:53 -04:00
Marianne Gagnon 080936f144 Work on scripting 2015-05-17 19:27:25 -04:00
hiker 78220d5ed7 Moved more shaders. 2015-05-18 08:49:41 +10:00
hiker 3cb0c6f4c2 Fixed coding style in stkmesh. 2015-05-18 08:22:52 +10:00
hiker 37d787ff38 Fixed linux compilation. 2015-05-17 10:28:37 +10:00
hiker a50d11df36 Try a different linux fix. 2015-05-17 10:04:01 +10:00
hiker f0f230b042 Try to fix linux compilation. 2015-05-17 00:56:42 +10:00
hiker 1a09a09dd9 Removed now unnecessary parameter for assignSamplerNames. 2015-05-17 00:22:14 +10:00
hiker e0ef910137 Renamed TextureRead to TextureShader. 2015-05-17 00:04:19 +10:00
hiker 329a4ac047 Removed multiple inheritance, instead made TextureRead inherit from
Shader. work in progress!
2015-05-16 10:39:33 +10:00
Marianne Gagnon e23f854845 Scripting work 2015-05-14 19:27:32 -04:00
hiker dc211f2000 Improved coding style. 2015-05-15 08:16:23 +10:00
hiker 488f506932 Moved more shaders into PostProcessing. 2015-05-14 16:43:32 +10:00
hiker f0d0e7e601 Moved SharedObjects into separate file shared_gpu_object.
This also fixes the missing loading screen (likely caused by
not initialising all objects, or not in the right order).
2015-05-14 16:27:32 +10:00
auriamg 0ca0b21327 Merge pull request #2188 from huftis/removestringsorting
Don’t sort strings alphabetically (makes the translators’ work much easier)
2015-05-12 21:01:05 -04:00
auriamg dd80daa5d9 Merge pull request #2189 from huftis/addmissingglyph
Add ‘Æ’ glyph to the title font
2015-05-12 21:00:07 -04:00
hiker 3b682ff084 Moved more shaders into PostProcessing. 2015-05-13 09:57:53 +10:00
Marianne Gagnon 7d66dfec0e Make scripting work on OS X, hoping this doesn't break windows or linux 2015-05-12 19:49:14 -04:00
hiker 56bc14ff31 Moved more shaders into PostProcessing. 2015-05-13 08:55:59 +10:00
Marianne Gagnon 0ea991adee More work for scripting compatibility on Linux/GCC 2015-05-12 18:31:08 -04:00
hiker ea69eb3178 Minor style changes. 2015-05-13 08:22:58 +10:00
hiker 26d63ce844 Fixed linux compilation, and some more coding style issues. 2015-05-13 08:14:39 +10:00
Karl Ove Hufthammer 6106ed3ec6 Don’t sort strings alphabetically (makes the translators’ work much easier). 2015-05-12 18:20:11 +02:00
Karl Ove Hufthammer 465130a4a2 Added ‘Æ’ glyph to the title font
The glyph was created by combining the existing
‘A’ glyph and ‘E’ glyph, and then retouching the
result to make it look good (both the glyph heights
and the gradients differed for the two letters).
2015-05-12 18:17:20 +02:00
hiker 827b9adce2 Moved more shaders into 2dutils. 2015-05-12 16:48:12 +10:00
hiker 320dd6d1df Moved more shaders into 2dutils. 2015-05-12 16:43:03 +10:00
hiker fbad97a4a7 Moved Primitive2DList into 2dutils, fixed coding style of 2dutils. 2015-05-12 16:24:40 +10:00
Marianne Gagnon 6ccebd09b6 Improve scripting compatibility with Linux/GCC 2015-05-11 21:49:13 -04:00
hiker ee26611759 Moved billboard shader into stkbillboard, cleaned up coding style somewhat. 2015-05-12 10:01:24 +10:00
hiker f4cf41e466 Moved more shaders into render_gemoetry. 2015-05-12 09:50:18 +10:00
Marianne Gagnon c48037984d Update to latest angelscript 2015-05-11 19:40:43 -04:00
hiker ac3984b403 Fixed linux compilation. 2015-05-11 21:08:52 +10:00
hiker e337b72789 Moved *Detailed* shader into render_geometry, renamed all detailled
to detailed.
2015-05-11 17:17:08 +10:00
hiker 77bfa84609 Moved more render-geometry specific shader into render geometry. 2015-05-11 17:07:31 +10:00
Marianne Gagnon f269b44208 SCripting branch fix 2015-05-10 20:04:44 -04:00
Marianne Gagnon a29fa5c4a3 More work on scripting 2015-05-10 19:19:35 -04:00
hiker f3f30a8057 Moved GrassPass1Shader into render_geometry; fixed up coding style
somewhat.
2015-05-11 09:14:43 +10:00
hiker 400f9c612b Moved SpecularIBLGenerator-shader into IBL.cpp, and ColoredLine
shader into Shaders. Fixed codying style of IBL somewhat.
2015-05-11 08:09:09 +10:00
Marianne Gagnon 78f9500b1d Work on scripting 2015-05-09 21:29:37 -04:00
hiker 93f24f2a74 Removed Shaders instance out of irr-driver, and use a class
with static members instead.
2015-05-08 23:46:52 +10:00
Deve 199cda80b1 Merge pull request #2101 from konstin/fix_2095
add --log to --help message; fixes 2095
2015-05-08 10:32:05 +02:00
hiker 824b6906c1 Fixed compiler warning. 2015-05-08 13:59:19 +10:00
hiker 7453853c6d Fixed linux build. 2015-05-08 13:45:43 +10:00
hiker ba957ca0dc Merge branch 'refactor_shaders' of github.com:supertuxkart/stk-code into refactor_shaders 2015-05-08 13:21:54 +10:00
hiker 3607cadf62 Merge branch 'origin/refactor_shaders' into refactor_shaders 2015-05-08 13:21:13 +10:00
hiker 310a58541d Cleanup, part 1 - shaders_util is gone :) 2015-05-08 13:21:08 +10:00
hiker a16bbf71a4 Converted remaining shaders. 2015-05-08 08:30:51 +10:00
hiker 5070531ad7 Converted more shaders. 2015-05-08 08:02:56 +10:00
hiker 38a1deeff5 Converted more shaders. 2015-05-07 19:18:24 +10:00
hiker b441dba764 More shaders converted. 2015-05-07 16:40:38 +10:00
hiker 4338fe6144 Migrated more TextureReads to the new shader infrastructure. 2015-05-07 09:54:29 +10:00
auriamg 43add89cc2 Merge pull request #2181 from Flakebi/rtl-fix
Fix Random Grand Prix being reversed in RTL languages
2015-05-06 19:07:18 -04:00
hiker 8b9e5acd1a Converted more shaders to use the new template. 2015-05-07 07:41:51 +10:00
Flakebi a311281aa7 Fix Random Grand Prix being reversed 2015-05-06 20:39:40 +02:00
hiker 08ea768e16 Moved create*Sampler functions into TextureRead. 2015-05-06 22:33:15 +10:00
hiker a6b8783d46 Moved bind functions into TextureRead class. 2015-05-06 22:08:03 +10:00
hiker dfe4f09ed5 Start to re-implement TextureRead without variadic templates for
BindTexture and CreateSampler. VERY MESSY ATM, work in progress.
2015-05-06 16:51:54 +10:00
deve f019f8622c Make sure that window size is larger than 0 2015-05-04 11:09:53 +02:00
hiker 0ace0aeb5b Added comments. 2015-05-04 16:51:50 +10:00
Deve 6082a4502b Merge pull request #2172 from Flakebi/fix-font_tool
Fix Font tool build failure with CMake 3.2
2015-05-03 08:53:15 +02:00
Flakebi eea9069265 Fix #2171 - Font tool build failure with CMake 3.2 2015-05-03 02:52:15 +02:00
Marianne Gagnon d98c1044e6 More work on scripting 2015-04-30 20:36:54 -04:00
Marianne Gagnon 1559d03ea1 More work on scripting, test ways to pass arguments to script functions 2015-04-30 20:24:02 -04:00
Marianne Gagnon 585d1c5016 Scripting cleanup, remove hardcoded stuff in favor of more generic approaches 2015-04-30 19:37:11 -04:00
Marianne Gagnon 85cf5b181e Support extracting translations from scripts 2015-04-30 19:03:54 -04:00
hiker d32a76cd16 Rearranged order of functions in header to have the dependent/recursive
functions closer to each other. Removed unnecessary assignTextureUnit
function (with one argument).
2015-04-29 16:36:48 +10:00
hiker c91f9655d8 Unlock all karts in multiplayer mode. 2015-04-29 08:18:52 +10:00
hiker 75b24c96ad Unlock all tracks and GPs in split screen mode. 2015-04-29 08:07:06 +10:00
hiker aaf20dc919 Fixed #2118. 2015-04-27 17:14:23 +10:00
hiker 0b7c03b34c Fixed linux compilation. 2015-04-27 09:40:12 +10:00
auriamg 38e4e4e03c Merge pull request #2133 from Flakebi/translation-fixes
Fix some translation and bidi issues
2015-04-26 19:29:02 -04:00
Marianne Gagnon dfcaf44058 Scripting work 2015-04-26 19:06:51 -04:00
hiker eacd599b93 Removed version number warning for Radeon cards on osx (since they
have completely different version numbers).
2015-04-27 09:04:16 +10:00
hiker b14acf2a67 Moved TextureRead into a new file, fixed coding style. 2015-04-27 09:03:33 +10:00
Flakebi d19112760f Include algorithm in translation.cpp 2015-04-27 00:14:52 +02:00
Flakebi 5462a62c75 Fix TEST_BIDI in multiplayer KartSelection 2015-04-27 00:13:23 +02:00
Flakebi af88b4a16f Fix translation issues with grand-prixs 2015-04-26 23:31:57 +02:00
Flakebi 0b9876c53e Use isRTLText in the BubbleWidget 2015-04-26 22:55:28 +02:00
Flakebi fae12f3714 Fix RTL texts with multiple lines 2015-04-26 22:34:17 +02:00
Flakebi 56aecdb692 Fix achievements RTL display 2015-04-25 16:10:54 +02:00
Flakebi 6e0b96c21f Fix TEST_BIDI option 2015-04-25 16:01:50 +02:00
hiker e1ef2aa305 Removed TexUnit data structure. 2015-04-25 18:49:18 +10:00
auriamg f97db81ce3 Merge pull request #2103 from nado/fix_NoFribidi_compilation
Fix compilation with -DUSE_FRIBIDI=0
2015-04-24 21:07:12 -04:00
auriamg e769f995ec Merge pull request #2104 from nado/fix_#2102
Fix #2102.
2015-04-24 21:06:43 -04:00
auriamg a4559fc09d Merge pull request #2107 from Flakebi/fribidi
Mark text as RTL when at least one character is RTL
2015-04-24 21:04:46 -04:00
Marianne Gagnon 9f883db6f7 Start work to enable scripting 2015-04-24 20:59:32 -04:00
Flakebi e795729538 Cache fribidized strings in a map 2015-04-25 02:58:53 +02:00
Marianne Gagnon fc942433e2 Tweak over previous commit 2015-04-24 20:17:55 -04:00
Marianne Gagnon 30431adc69 Add forgotten credit to Divvy81 2015-04-24 20:17:22 -04:00
hiker 45d6c863b3 Moved AssignTextureUnit to new Shader base class. 2015-04-25 00:57:53 +10:00
hiker 118233fb24 Removed now duplicated code. 2015-04-24 14:57:36 +10:00
hiker 865760ffa4 Fixed reloadShader functionality. 2015-04-24 12:36:25 +10:00
Flakebi 819156106d Mark text as RTL when at least one character is RTL 2015-04-24 03:45:05 +02:00
hiker 5d098488e6 Use new Shader baseclass for all shaders. 2015-04-24 10:31:37 +10:00
Flakebi 7f80e0e4a3 Remove unused function 2015-04-24 02:02:57 +02:00
Flakebi 4b55526525 Clean more stuff for the new insertValues 2015-04-24 01:58:19 +02:00
Flakebi 59b4e2c97e Clean some string code 2015-04-24 01:27:04 +02:00
Flakebi 53164e5cbe Simplify string code 2015-04-24 01:27:04 +02:00
Marianne Gagnon 1cc3a0f0b8 Tweak times of scotland challenge 2015-04-23 19:20:42 -04:00
hiker bbaf061ae9 Added printFileList to Shader, renamed old global function. 2015-04-24 08:38:04 +10:00
hiker 1a96ed6249 Made SimpleParticleRender based on the new shader base class. 2015-04-24 08:26:17 +10:00
Nado 1a395efbfd Fix #2102.
Moving output modifier and early exit options (--help, --version,
--log, etc) earlier in the execution so nothing useless is printed.
2015-04-23 20:13:37 +02:00
Nado 76270ce0ec Fix compilation with -DUSE_FRIBIDI=0 2015-04-23 19:55:12 +02:00
konstin adceb35812 add --log to --help message 2015-04-23 17:40:20 +02:00
hiker a51225ec36 Added bypassUBO method to new shader base class. 2015-04-23 17:11:19 +10:00
hiker 262fc0c373 Started refactoring of shaders to follow our coding style.
One transform feedback buffer shader in particles is done.
2015-04-23 16:44:26 +10:00
hiker 959c86d816 Merge branch 'use_log_in_tinygettext' 2015-04-20 17:36:08 +10:00
hiker b6a10b7603 Use stk font to display menu - which is at least a readable size ;)
Hacked the GUI to be a bit easier to scale, but it's still hacky.
Changed default to be what is typically used in stk.
2015-04-20 17:34:51 +10:00
hiker 63406b40f1 Fixed line ending style. 2015-04-17 16:13:57 +10:00
hiker 55079289da List all GSoC students. 2015-04-17 09:48:45 +10:00
hiker 50ff2e6e35 Fixed donations, udpated samuncle's credits. 2015-04-17 09:40:28 +10:00
hiker 513df96c53 Fixed font tool (by requesting an old opengl context), increased size
and added some constants to change the size easier.
2015-04-17 09:24:12 +10:00
hiker 543bb8d303 Updated donations. 2015-04-17 08:29:40 +10:00
hiker 52f77f7d43 Fixed duplicated translator-credits strings. 2015-04-17 08:19:49 +10:00
hiker fbac4d791c Updated Asian fonts. 2015-04-16 16:59:12 +10:00
hiker 4ea1145af1 Updated translations credits by running update_po_authors.py script. 2015-04-16 15:29:38 +10:00
hiker 00782180f7 Fixed crash when using translation debugging (only happens if
DEBUG_TRANSLATIONS is defined).
2015-04-16 15:28:49 +10:00
hiker 418ccf284e Remove unnecessary \n after "Launchpad Contributions" (which caused
an empty line to be shown in stk); ignore "FIRST AUTHOR" as author.
2015-04-16 15:11:25 +10:00
Marianne Gagnon 4b956ebfce Update translations 2015-04-15 18:45:29 -04:00
hiker ad2ca0f394 Merge branch 'fix_2073' 2015-04-16 08:17:36 +10:00
hiker d4c33b294d Fixed compiler warning. 2015-04-16 08:15:20 +10:00
hiker 50acbea315 Fix crash in case of invalid kart types (e.g. 'default', which the
exporter actually writes if 'default' is selected).
2015-04-16 07:56:41 +10:00
hiker e8b8bbdd3b Added display of normals at the vertices of the triangles the kart is driving on
to the debug display, which is useful to find why interpolated normals are wrong.
2015-04-15 07:44:50 +10:00
hiker 8f090525fb Added more skidding particle debug code. 2015-04-14 16:40:50 +10:00
hiker fb9d422f9b Made interpolated normals white to make them easier to distinguish. 2015-04-14 16:39:28 +10:00
hiker ecdf32c01e Fixed size of shader parameter (though de-facto doesn't matter much). 2015-04-14 16:37:54 +10:00
hiker 0627bd85f3 Added some (commented out) debug features for gpu particles. 2015-04-14 16:35:05 +10:00
hiker 2c44bd1201 Removed unnecessary copy, precompue area of triangle to reduce
work when smoothing normals.
2015-04-14 16:21:43 +10:00
hiker a4264cc063 Visualise the (interpolated) normal at the points where the wheels touch the ground. 2015-04-14 09:33:55 +10:00
Marianne Gagnon cdde932908 Tentative fix for #2079 2015-04-09 19:58:07 -04:00
Marianne Gagnon 9a905cb579 Merge remote-tracking branch 'Flakebi/bidi-updown' 2015-04-08 20:09:15 -04:00
Flakebi effe131e4a Dynamically test if text is rtl or not 2015-04-09 01:57:33 +02:00
Flakebi 66dd089902 Move rtl debug option to a more general method 2015-04-09 01:26:55 +02:00
Flakebi dffd431f3c Add isRTLText function 2015-04-09 01:14:56 +02:00
Deve a4536d7752 Disable texture compression for mesa. 2015-04-08 22:20:04 +02:00
Marianne Gagnon 66db970564 Add context to help translators 2015-04-07 19:32:55 -04:00
Marianne Gagnon d746ea8aa1 Fix #2068 2015-04-07 19:11:59 -04:00
hiker 67d5e41d2c Try an improvement for #2073 (stk does not start if /data
exists).
2015-04-05 22:14:48 +10:00
hiker ddcd6f9ca3 Removed empty files. 2015-04-03 00:05:47 +11:00
hiker fb58e4b3b3 Use STK's log function in tinyugettext (so all errors/warnings
are logged to stdout.log).
2015-04-02 23:59:55 +11:00
hiker 4135ed4be2 Merge branch 'master' of github.com:supertuxkart/stk-code 2015-04-02 10:50:22 +11:00
hiker 3f76b0c68d Used better icon for achievements in tabs. 2015-04-02 10:46:30 +11:00
auriamg 6af71fe582 Merge pull request #2053 from tobbi/fix_redefinition_warning
Fix glVertexAttribDivisor redefinition warning
2015-04-01 19:07:34 -04:00
hiker d8a918758d Merge branch 'master' of github.com:supertuxkart/stk-code 2015-04-02 10:03:36 +11:00
hiker cbd45c26a2 Merge and sort old and new translation credits. Fixed handling of "
and some other minor fixes.
2015-04-01 22:24:02 +11:00
samuncle 4b735861cd Add a particle system 2015-04-01 04:30:17 +02:00
hiker 09a70b8aac Merge branch 'master' of github.com:supertuxkart/stk-code 2015-04-01 09:44:23 +11:00
hiker 414522e823 First version of a simple script that adds the transifex authors
to the list of launchpad authors in the translator-credits string.
The latter is used to display the appropriate in-game credits.
2015-04-01 09:41:37 +11:00
Deve 5e56f8904a MinGW: Allow to compile wiiuse.
Still disabled by default because it requires mingw-w64 and it may not work with other versions.
2015-03-31 19:27:07 +02:00
hiker c7e785b59c Fixed translator credits display (translators were repeated before).
Added #undef'ed debug mode to only see translations.
2015-03-31 16:16:30 +11:00
Deve cd67daf4a3 MinGW: Don't show console window in release mode.
Removed unused cmake option.
2015-03-30 20:12:25 +02:00
hiker 9cb862f708 Fix travis build. 2015-03-30 11:50:47 +11:00
hiker 8d07d26c25 Updated (c) year to include 2015. 2015-03-30 11:42:50 +11:00
hiker bcd9654a86 Added missing GPL license. 2015-03-30 11:42:28 +11:00
Marianne Gagnon 2d2624f71c Merge remote-tracking branch 'Flakebi/fribidi-text' 2015-03-29 20:06:21 -04:00
Marianne Gagnon 3a6fd75f10 Merge remote-tracking branch 'Flakebi/motionblur-fix' 2015-03-29 19:52:16 -04:00
hiker c579eba6db Removed empty file. 2015-03-30 09:58:28 +11:00
hiker 1971254a7f Fixed compiler warning. 2015-03-30 09:43:58 +11:00
Flakebi e9d78326fb Properly ignore the leader in the ftl scoreboard 2015-03-29 04:16:24 +02:00
Marianne Gagnon c08b898742 Merge branch 'Fix_2055' 2015-03-28 21:14:42 -04:00
Marianne Gagnon e1eec44d1a Tweak challenges 2015-03-28 20:16:45 -04:00
Marianne Gagnon dda3bb0f31 Tweak more challenges 2015-03-28 19:21:48 -04:00
Marianne Gagnon 8deac178d0 Attempt fix for 2055. Committed in a branch for now until we can test it better. 2015-03-28 18:20:28 -04:00
Marianne Gagnon f2d0b4d7e0 Some challenge tweaks, more coming. See #2052 2015-03-28 18:19:27 -04:00
Flakebi 7c697e76e5 Fix motion blur in multiplayer 2015-03-28 22:30:10 +01:00
Tobias Markus cedb7e7123 Fix glVertexAttribDivisor redefinition warning 2015-03-28 16:56:51 +01:00
Marianne Gagnon e65b3414b9 Tweak cocoa challenge. Further testing welcome 2015-03-28 00:14:10 -04:00
Flakebi 58957a3fbb Use camera position for LoD instead of the kart position 2015-03-10 19:04:32 +01:00
Flakebi e5abf4cec3 Merge branch 'origin/master' into fixes 2015-03-08 01:16:51 +01:00
Flakebi f386f05749 Silence even more warnings 2015-02-05 20:13:33 +01:00
Flakebi d8efe01d02 Fix clang build, freeing memory too early 2015-02-05 02:49:58 +01:00
Flakebi 366f8a26bb Fix more clang warnings 2015-02-05 02:44:06 +01:00
Flakebi 19ce806563 Fix warnings about shift size 2015-02-04 18:33:26 +01:00
Flakebi 32a044e292 Fix some clang warnings and bugs 2015-02-04 18:30:27 +01:00
Flakebi 0051254f03 Merge branch 'origin/master' into fixes
Conflicts:
	src/graphics/graphics_restrictions.cpp
2015-02-04 12:28:39 +01:00
Flakebi 595cacfeb6 Someone uses that variable now... 2015-01-23 00:29:33 +01:00
Flakebi d6fee72295 Merge branch 'origin/master' into fixes
Conflicts:
	src/graphics/graphics_restrictions.cpp
2015-01-23 00:15:40 +01:00
Flakebi 8e4bb4c22c Add notice about currently unused code 2015-01-20 21:22:46 +01:00
Flakebi aafe86147a Remove unused method 2015-01-18 23:44:34 +01:00
Flakebi 59534cda86 Fix #1822 2015-01-18 23:40:56 +01:00
Flakebi 9c6dd1c1b5 Fix some compiler warnings 2015-01-18 23:28:53 +01:00
Flakebi a3489fe834 Fix #1824 2015-01-18 14:40:29 +01:00
nixt 8e9d518aa2 Increase curve radius to reduce braking when kart is close. 2014-03-07 07:41:55 +05:30
nixt 28b089592d Merge remote-tracking branch 'upstream/master' 2014-03-07 05:17:59 +05:30
nixt a840e3a81f Enable item collection and reduce item search radius. 2014-03-07 05:14:10 +05:30
nixt c192d5e53d Fix nested namespace error and some warnings 2014-03-06 06:15:09 +05:30
nixt c3bd527b8c Merge remote-tracking branch 'upstream/master'
Conflicts:
	data/shaders/ssao.frag
2014-03-06 04:25:17 +05:30
nixt 1c13034a21 Turn off item collection for the moment 2014-03-06 04:18:42 +05:30
nixt 39c3aff8ae Add basic item collection 2014-03-06 03:51:02 +05:30
nixt 28309e0afd Add more documentation. 2014-02-20 19:42:45 +05:30
nixt c13b263ba0 Add lots of comments. 2014-02-16 02:52:03 +05:30
nixt d8a1949160 Merged from main repo 2014-02-14 22:26:10 +05:30
nixt 7b8629232f Implemented the funnel algorithm for pathfinding. 2014-02-14 21:47:32 +05:30
nixt 39ef5f1655 Merge remote-tracking branch 'origin/master' into battleAI 2014-02-09 00:37:48 +05:30
nixt d1d83459d0 Merged from master 2014-02-07 23:40:09 +05:30
nixt 5e64f02685 Add a comment to three_strikes_battle.cpp 2014-02-07 23:13:51 +05:30
nixt e6ba8c3b1d Fix some errors due to merge 2014-01-23 04:05:29 +05:30
nixt cc78233258 Merged from master 2014-01-23 03:17:32 +05:30
nixt 9e3b338965 Implemented portal extraction for string-pulling (funnel algorithm). Implemented braking but its untested.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/battleAI@14898 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2014-01-04 00:13:09 +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
nixt a72175b3b7 Adding more missing files, fourth installment.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/battleAI@14708 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-12-11 05:09:36 +00:00
nixt 50e746eccc Add/update missing files from trunk, third installment.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/battleAI@14707 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-12-11 05:05:28 +00:00
nixt cd20059fc0 Adding missing files from trunk, in second installment, because SVN simply hates me.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/battleAI@14706 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-12-11 04:53:42 +00:00
nixt 8d7c867c59 Added missing files from trunk.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/battleAI@14705 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-12-11 04:46:09 +00:00
hikerstk a01c98302e On nixt's requests I removed the online subdirectory so that he can try
to fix his inconsistent/broken svn checkout.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/battleAI@14704 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-12-11 03:53:38 +00:00
hikerstk 7aee2035ea Fixed crash.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/battleAI@14703 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-12-11 02:50:39 +00:00
nixt ba4e573797 Merge from trunk, some files were left out.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/battleAI@14690 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-12-09 19:23:17 +00:00
nixt 7de27d234a Add missing shaders to my branch.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/battleAI@14689 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-12-09 14:12:18 +00:00
nixt eaacb20c90 fix nested template arguments angle bracket spacing for gcc.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/battleAI@14685 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-12-09 12:48:30 +00:00
nixt 13ddb2bfbe Fixed redeclaration of m_debug_sphere. Improved AI turning while reversing.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/battleAI@14684 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-12-09 12:38:34 +00:00
nixt 420e73d102 Improved kart reverse when stuck. Fixed a bug in ThreeStrikesBattle::updateKartNodes().
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/battleAI@14673 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-12-09 00:02:15 +00:00
nixt 04a5d17de3 Merge from trunk recent changes.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/battleAI@14671 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-12-08 21:15:01 +00:00
nixt acd7a64802 Huge merge from trunk, part 2.3 (splitting commits because they keep failing)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/battleAI@14669 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-12-08 20:47:10 +00:00
nixt 09a966b2d7 Huge merge from trunk, part 2.2 (splitting commits because they keep failing)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/battleAI@14668 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-12-08 20:33:54 +00:00
nixt 65a7bd0d84 Huge merge from trunk, part 2.1 (splitting commits into small parts because they keep failing for some reason)
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/battleAI@14667 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-12-08 20:25:11 +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
nixt 1c8dfb72e6 Last commit failed due to permission error. Testing to see if this commit succeeds.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/battleAI@14658 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-12-08 03:35:17 +00:00
nixt a49a990a99 Improved kart localization on the nav map. The old location is mainted when a kart moves out of the nav map and cannot be found on it.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/battleAI@14654 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-12-08 00:11:40 +00:00
nixt 20d30bc09d BattleAI: Karts can now get un-stuck. They will reverse while turning in the opposite direction.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/battleAI@14653 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-12-08 00:00:20 +00:00
nixt 96d5666a08 Code refactoring: Moved AIBaseLapController::crashed()and its associated vars to AIBaseController::crashed(). Created update() and reset() in AIBaseController which are now called from AIBaseLapController's respective update/reset. Hopefully I didn't break the skidding AI.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/battleAI@14646 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-12-06 17:16:35 +00:00
nixt c23f962119 Reimplemented the Floyd-Warshall path reconstruction to fix a bug where the next poly returned would actually be a poly close to the destination instead of being close to source polygon. This ensures AI follows right path and gets stuck less often.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/battleAI@14630 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-12-04 13:33:36 +00:00
nixt 1f6e23ead9 Implemented another debug feature: Debug spheres (red) that show where the AI kart is aiming. http://postimg.org/image/mwhbys39p/
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/battleAI@14624 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-12-04 00:13:48 +00:00
nixt fab8829cf8 Declared m_ai_debug at wrong location. fixed.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/battleAI@14623 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-12-04 00:07:09 +00:00
nixt c6cbf487c9 A new unified function ThreeStrikesBattle::updateKartNodes() that localizes all karts (AI and player) on the polygon map.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/battleAI@14618 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-12-03 16:43:07 +00:00
nixt 41fa68f948 Applied a pending merge.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/battleAI@14617 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-12-03 16:28:57 +00:00
nixt a31c314cb4 Major update to Battle AI. AI can localize itself on the navigation mesh. Battle graph is now stored as adjacency matrix instead of adjacency list.
Implemented pathfinding (Floyd-Warshall), AI can now find a path from one sector to another. As a proof of concept: AI can almost follow a player kart. Some code refactoring is in order before further development.

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/battleAI@14340 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-10-29 05:47:11 +00:00
nixt 1c75270912 merged updates from trunk to branch
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/battleAI@14308 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-10-25 14:21:04 +00:00
nixt a1ee115963 Split AIBaseController to AIBaseController and AIBaseLapController. Moved the functions independent of QuadGraph to AIBaseController. Added AIBaseController as friend of AIProperties. New class for BattleAI which inherits from AIBaseController. Its messy, need hiker.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/battleAI@14294 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-10-23 01:14:08 +00:00
nixt 3f9bf2ec47 Merged changes from trunk.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/battleAI@14293 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-10-23 01:09:18 +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
hikerstk 5b98a8bcf0 Fixed unnecessary type cast (since definition of IMeshSceneNode was
missing), fixed compiler warning.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/battleAI@14185 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-10-02 04:15:42 +00:00
nixt 6cc28c01de Forgot to clean up debug mesh and navmesh. Also moved debug camera a bit closer to the kart.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/battleAI@14184 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-10-02 04:03:22 +00:00
hikerstk 442ceee836 Fixed compilation issues on linux.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/battleAI@14183 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-10-02 03:51:42 +00:00
hikerstk c06e49e37e Updated cmake build script.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/battleAI@14182 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-10-02 03:34:33 +00:00
nixt 479464ede4 fixed minor error and removed a redundant function.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/battleAI@14177 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-10-01 22:11:31 +00:00
nixt fa3846e169 Fixed coloring in debug mesh. Each polygon distinctly visible in funky colors.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/battleAI@14176 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-10-01 22:00:10 +00:00
nixt e0994932bf Added preliminary class for holding the battle mode navigation graph. The navigation mesh can now be viewed in game for battleisland ( start with --track-debug --camera-debug ) , the colors are bit messed up though.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/battleAI@14175 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-10-01 21:30:58 +00:00
nixt c5e1b1a182 minor update to last commit
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/battleAI@14167 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-09-28 11:13:24 +00:00
nixt f4fe56dd31 Two new classes for holding the navigation mesh for battle maps.
note: proper comments will be added soon

git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/battleAI@14166 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-09-28 10:20:57 +00:00
nixt 5a85e11d70 Reverted previous commit that broke some things.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/battleAI@14144 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-09-24 00:11:40 +00:00
nixt 167f25734c git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/battleAI@14137 178a84e3-b1eb-0310-8ba1-8eac791a3b58 2013-09-23 00:13:30 +00:00
hikerstk 3c503226d7 Created branch for nixt's work on a battle AI.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/battleAI@14136 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-09-23 00:00:51 +00:00
1189 changed files with 284287 additions and 205914 deletions
+1
View File
@@ -9,6 +9,7 @@ stk-editor/
.config/
supertuxkart-64
make*.bat
__pycache__
data/editor
data/karts
+10 -2
View File
@@ -21,19 +21,27 @@ before_install:
- sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 3B4FE6ACC0B21F32
- sudo apt-get update -qq
- sudo apt-get install libgl1-mesa-dev libglu1-mesa-dev libglew-dev cmake
before_script:
- export THREADS=`nproc`
# Unfortunately using all threads crashes g++: "g++: internal compiler error: Killed (program cc1plus)"
- export THREADS=4
- echo "THREADS = $THREADS"
script:
# First a debug build:
- mkdir build-debug
- cd build-debug
- cmake .. -DCMAKE_BUILD_TYPE=Debug -DCHECK_ASSETS=off
- make VERBOSE=1 -j 4
- make VERBOSE=1 -j $THREADS
# Then a release build:
- cd ..
- mkdir build-release
- cd build-release
- cmake .. -DCMAKE_BUILD_TYPE=Release -DCHECK_ASSETS=off
- make VERBOSE=1 -j 4
- make VERBOSE=1 -j $THREADS
notifications:
irc:
+13
View File
@@ -1,3 +1,16 @@
## SupertTuxKart 0.9.1
* Many bug fixes
* Started to use scripting in tracks
* Significant audio performance improvements
* Smaller tweaks and improvements to several tracks including
** Math class
** XR591
** Fort Magma
** Gran Paradiso
** Subsea
* Tweak to challenges
* Better support for driving tracks in reverse
## SupertTuxKart 0.9 (April 2015)
* Fully shader-based rendering engine
* New tracks Cocoa Temple and Gran Paradiso
+49 -41
View File
@@ -1,6 +1,6 @@
# root CMakeLists for the SuperTuxKart project
project(SuperTuxKart)
set(PROJECT_VERSION "0.8.1")
set(PROJECT_VERSION "0.9.1")
cmake_minimum_required(VERSION 2.8.4)
if(NOT (CMAKE_MAJOR_VERSION VERSION_LESS 3))
@@ -15,14 +15,12 @@ if (NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE "STKRelease")
endif()
option(USE_WIIUSE "Support for wiimote input devices" ON)
option(USE_FRIBIDI "Support for right-to-left languages" ON)
option(CHECK_ASSETS "Check if assets are installed in ../stk-assets" ON)
option(USE_SYSTEM_ANGELSCRIPT "Use system angelscript instead of built-in angelscript. If you enable this option, make sure to use a compatible version." OFF)
option(ENABLE_NETWORK_MULTIPLAYER "Enable network multiplayer. This will replace the online profile GUI in the main menu with the network multiplayer GUI" OFF)
if(UNIX OR MINGW)
option(USE_CPP2011 "Activate C++ 2011 mode (GCC only)" OFF)
endif()
if(MSVC OR MINGW)
if(MSVC AND (MSVC_VERSION LESS 1900))
# Normally hide the option to build wiiuse on VS, since it depends
# on the installation of the Windows DDK (Driver Developer Kit),
# which also needs an absolute path :(
@@ -33,7 +31,9 @@ else()
endif()
if(MINGW OR CYGWIN)
set(USE_WIIUSE OFF)
option(USE_WIIUSE "Support for wiimote input devices" OFF)
else()
option(USE_WIIUSE "Support for wiimote input devices" ON)
endif()
if(UNIX AND NOT APPLE)
@@ -124,9 +124,21 @@ elseif(MSVC)
endif()
# Build the angelscript library
add_subdirectory("${PROJECT_SOURCE_DIR}/lib/angelscript/projects/cmake")
include_directories("${PROJECT_SOURCE_DIR}/lib/angelscript/include")
# Build the angelscript library if not in system
if(USE_SYSTEM_ANGELSCRIPT)
find_package(Angelscript)
if(ANGELSCRIPT_FOUND)
include_directories(${Angelscript_INCLUDE_DIRS})
else()
message(FATAL_ERROR "Angelscript not found. "
"Either install angelscript or use built-in version using "
"-DUSE_SYSTEM_ANGELSCRIPT=0")
endif()
else()
add_subdirectory("${PROJECT_SOURCE_DIR}/lib/angelscript/projects/cmake")
include_directories("${PROJECT_SOURCE_DIR}/lib/angelscript/include")
set(Angelscript_LIBRARIES angelscript)
endif()
# OpenAL
if(APPLE)
@@ -153,6 +165,15 @@ else()
include_directories(${OGGVORBIS_INCLUDE_DIRS})
endif()
# Freetype
find_package(Freetype)
if(FREETYPE_FOUND)
include_directories(${FREETYPE_INCLUDE_DIRS})
else()
message(FATAL_ERROR "Freetype not found. "
"Freetype is required to display characters in SuperTuxKart. ")
endif()
# Fribidi
if(USE_FRIBIDI)
find_package(Fribidi)
@@ -172,13 +193,6 @@ if (OPENMP_FOUND)
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}")
endif()
if(UNIX OR MINGW)
# if(USE_CPP2011)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++0x")
# endif()
endif()
# OpenGL
find_package(OpenGL REQUIRED)
include_directories(${OPENGL_INCLUDE_DIR})
@@ -198,18 +212,32 @@ if(UNIX AND NOT APPLE)
endif()
endif()
# Set some compiler options
if(UNIX OR MINGW)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++0x")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall")
endif()
if(MINGW AND CMAKE_BUILD_TYPE MATCHES Release)
SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,--subsystem,windows")
endif()
# Netwowk Multiplayer
if(ENABLE_NETWORK_MULTIPLAYER)
add_definitions(-DENABLE_NETWORK_MULTIPLAYER_SCREEN)
endif()
if(WIN32)
# By default windows.h has macros defined for min and max that screw up everything
add_definitions(-DNOMINMAX)
# And shut up about unsafe stuff
add_definitions(-D_CRT_SECURE_NO_WARNINGS)
# Avoid timespec structure redeclaration on Visual Studio 2015
if (NOT (MSVC_VERSION LESS 1900))
add_definitions(-DHAVE_STRUCT_TIMESPEC)
endif()
endif()
if(MSVC)
@@ -316,11 +344,12 @@ target_link_libraries(supertuxkart
enet
glew
stkirrlicht
angelscript
${Angelscript_LIBRARIES}
${CURL_LIBRARIES}
${OGGVORBIS_LIBRARIES}
${OPENAL_LIBRARY}
${OPENGL_LIBRARIES}
${FREETYPE_LIBRARIES}
)
if(UNIX AND NOT APPLE)
@@ -380,7 +409,7 @@ if(MSVC OR MINGW)
endif()
if(MINGW)
find_library(LIBGCC NAMES "libgcc_s_dw2-1.dll" "libgcc_s_sjlj-1.dll" PATHS ${CMAKE_FIND_ROOT_PATH})
find_library(LIBGCC NAMES "libgcc_s_dw2-1.dll" "libgcc_s_sjlj-1.dll" "libgcc_s_seh-1.dll" PATHS ${CMAKE_FIND_ROOT_PATH})
if(LIBGCC)
file(COPY ${LIBGCC} DESTINATION ${CMAKE_BINARY_DIR}/bin/)
endif()
@@ -398,27 +427,6 @@ if(MINGW)
endif()
endif()
# Optional tools
add_subdirectory(tools/font_tool)
# ==== Make dist target ====
if(MSVC OR MINGW)
# Don't create a dist target for VS
else()
add_custom_target(dist
COMMAND rm -rf ${CMAKE_BINARY_DIR}/SuperTuxKart-${PROJECT_VERSION} && rm -f ${CMAKE_BINARY_DIR}/SuperTuxKart-${PROJECT_VERSION}.tar.bz2
&& echo "Exporting..."
&& svn export ${PROJECT_SOURCE_DIR} ${CMAKE_BINARY_DIR}/SuperTuxKart-${PROJECT_VERSION}
&& echo "Compressing..."
&& cd ${CMAKE_BINARY_DIR}
&& tar -cjf ${CMAKE_BINARY_DIR}/SuperTuxKart-${PROJECT_VERSION}.tar.bz2 ./SuperTuxKart-${PROJECT_VERSION}
&& echo "Done, cleaning up"
&& rm -rf ${CMAKE_BINARY_DIR}/SuperTuxKart-${PROJECT_VERSION}
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
)
endif()
# ==== Checking if data folder exists ====
if(NOT IS_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/data)
+11 -7
View File
@@ -1,6 +1,6 @@
#SuperTuxKart Installation Instructions
# SuperTuxKart Installation Instructions
Note : If you obtained this source code from github, you also need to download the game assets from sourceforge using SVN.
Note: If you obtained this source code from Github, you also need to download the game assets from Sourceforge using SVN.
`svn checkout https://svn.code.sf.net/p/supertuxkart/code/stk-assets stk-assets`
@@ -8,7 +8,7 @@ Place the `stk-assets` folder next to the source root `stk-code` folder.
See <http://supertuxkart.sourceforge.net/Source_control> for more information
##Building STK on Linux
## Building STK on Linux
First, make sure that you have the following packages installed:
@@ -50,14 +50,18 @@ make VERBOSE=1 -j2
To create a debug version of STK, use:
`cmake .. -DCMAKE_BUILD_TYPE=Debug`
```
cmake .. -DCMAKE_BUILD_TYPE=Debug
```
To test the compilation, supertuxkart can be run from the build
directory by ./bin/supertuxkart
To install the file, as root execute:
`make install`
```
make install
```
The default install location is `/usr/local`, i.e. the data files will
be written to `/usr/local/share/games/supertuxkart`, the executable
@@ -66,9 +70,9 @@ location, specify `CMAKE_INSTALL_PREFIX` when running cmake, e.g.:
`cmake .. -DCMAKE_INSTALL_PREFIX=/opt/stk`
##Building STK on OS X
## Building STK on OS X
See <http://supertuxkart.sourceforge.net/Building_and_packaging_on_OSX>
##Building STK on Windows
## Building STK on Windows
See <http://supertuxkart.sourceforge.net/How_to_build_the_Windows_version>
+10 -10
View File
@@ -1,4 +1,4 @@
#SuperTuxKart
# SuperTuxKart
[![Build Status](https://travis-ci.org/supertuxkart/stk-code.png?branch=master)](https://travis-ci.org/supertuxkart/stk-code)
SuperTuxKart is a free kart racing game. It is focusing on fun and
@@ -15,7 +15,7 @@ Hope you enjoy the game.
-- The SuperTuxKart development team.
##Hardware Requirements
## Hardware Requirements
* You need a 3D graphics card. (NVIDIA GeForce 8xxx and higher, ATI Radeon HD 4xxx and higher or Intel HD 3000 and higher)
* You should have a CPU that's running at 1GHz or better.
* You'll need at least 512 MB of free VRAM (video memory).
@@ -23,9 +23,9 @@ Hope you enjoy the game.
* Ideally, you want a joystick with at least 6 buttons.
##Compiling SuperTuxKart
## Compiling SuperTuxKart
###Windows
### Windows
1. Install VS 2013 (or later). The free express versions work fine.
2. Download and install a source package - either a released package or from our [git/svn repositories](http://supertuxkart.sourceforge.net/Source_control)
3. Download the latest dependency package depdendencies_for_0.8.2.zip from [here](https://sourceforge.net/projects/supertuxkart/files/SuperTuxKart%20Dependencies/Windows/). Unzip it in the root directory, so that the dependencies directory is next to the src and data directory (if you are updating from a previous dependency package, you can delete the .dll files in the root directory, they are not needed anymore).
@@ -38,24 +38,24 @@ Hope you enjoy the game.
Compilation with cygwin is not officially supported, but
this has been done (check with the forum for details).
###Mac OS X
### Mac OS X
The latest information about compilation on Mac are on our wiki:
<http://supertuxkart.sourceforge.net/Building_and_packaging_on_OSX>
The Xcode project file is in `/src/ide/Xcode/`, but it still
requires that all dependencies are installed as explained on the wiki.
###UNIX
See `INSTALL` for details.
### UNIX
See [`INSTALL.md`](INSTALL.md) for details.
##License
## License
This software is released under the GNU General Public License (GPL) which
can be found in the file `LICENSE` in the same directory as this file.
can be found in the file [`COPYING`](/COPYING) in the same directory as this file.
Information about the licenses for artwork are contained in
`data/licenses`.
##3D coordinates
## 3D coordinates
A reminder for those looking at the code and 3d models:
STK : X right, Y up, Z forwards
+33
View File
@@ -0,0 +1,33 @@
# - Try to find angelscript
# Once done this will define
#
# ANGELSCRIPT_FOUND - system has angelscript
# Angelscript_INCLUDE_DIRS - the angelscript include directory
# Angelscript_LIBRARIES - the libraries needed to use angelscript
#
FIND_PATH(Angelscript_INCLUDE_DIRS angelscript.h
PATHS
/usr/local
/usr
PATH_SUFFIXES include
)
FIND_LIBRARY(Angelscript_LIBRARY
NAMES angelscript angelscript_s
PATHS
/usr/local
/usr
PATH_SUFFIXES lib lib64 lib32
)
# handle the QUIETLY and REQUIRED arguments and set ANGELSCRIPT_FOUND to TRUE if
# all listed variables are TRUE
INCLUDE(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(Angelscript DEFAULT_MSG Angelscript_LIBRARY Angelscript_INCLUDE_DIRS)
IF (ANGELSCRIPT_FOUND)
SET(Angelscript_LIBRARIES ${Angelscript_LIBRARY})
ENDIF (ANGELSCRIPT_FOUND)
MARK_AS_ADVANCED(Angelscript_LIBRARY Angelscript_LIBRARIES Angelscript_INCLUDE_DIRS)
+29
View File
@@ -0,0 +1,29 @@
# - Find Freetype
# Find the Freetype includes and libraries
#
# Following variables are provided:
# FREETYPE_FOUND
# True if Freetype has been found
# FREETYPE_INCLUDE_DIRS
# The include directories of Freetype
# FREETYPE_LIBRARIES
# Freetype library list
if(WIN32)
find_path(FREETYPE_INCLUDE_DIRS NAMES freetype/freetype.h PATHS "${PROJECT_SOURCE_DIR}/dependencies/include")
find_library(FREETYPE_LIBRARY NAMES freetype PATHS "${PROJECT_SOURCE_DIR}/dependencies/lib")
set(FREETYPE_FOUND 1)
set(FREETYPE_LIBRARIES ${FREETYPE_LIBRARY})
elseif(APPLE)
find_path(FREETYPE_INCLUDE_DIRS NAMES freetype/freetype.h PATHS "/Library/Frameworks/FreeType.Framework/Versions/2.4/unix/include")
find_library(FREETYPE_LIBRARY NAMES freetype PATHS "/Library/Frameworks/FreeType.Framework/Versions/2.4/")
include_directories(/Library/Frameworks/FreeType.Framework/Versions/2.4/unix/include)
set(FREETYPE_FOUND 1)
set(FREETYPE_LIBRARIES ${FREETYPE_LIBRARY})
elseif(UNIX)
include(FindPkgConfig)
pkg_check_modules(FREETYPE freetype2)
else()
set(FREETYPE_FOUND 0)
endif()
+20
View File
@@ -0,0 +1,20 @@
# Usage:
# cmake .. -DCMAKE_TOOLCHAIN_FILE=../cmake/Toolchain-mingw-64bit.cmake
# the name of the target operating system
SET(CMAKE_SYSTEM_NAME Windows)
# which compilers to use for C and C++
SET(CMAKE_C_COMPILER x86_64-w64-mingw32-gcc-posix)
SET(CMAKE_CXX_COMPILER x86_64-w64-mingw32-g++-posix)
SET(CMAKE_RC_COMPILER x86_64-w64-mingw32-windres)
# here is the target environment located
SET(CMAKE_FIND_ROOT_PATH /usr/x86_64-w64-mingw32 /usr/lib/gcc/x86_64-w64-mingw32/4.9-posix ${PROJECT_SOURCE_DIR}/dependencies)
# adjust the default behaviour of the FIND_XXX() commands:
# search headers and libraries in the target environment, search
# programs in the host environment
set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ALWAYS)
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
+3
View File
@@ -1,3 +1,6 @@
# Usage:
# cmake .. -DCMAKE_TOOLCHAIN_FILE=../cmake/Toolchain-mingw.cmake
# the name of the target operating system
SET(CMAKE_SYSTEM_NAME Windows)
Regular → Executable
BIN
View File
Binary file not shown.
+1 -1
View File
@@ -40,7 +40,7 @@
<skidding goal="5"/>
</achievement>
<achievement id="6" check-type="all-at-least" reset-type="never"
name="Gold driver" description="Win in all single player modes, against at least 3 opponents.">
name="Gold driver" description="Win against at least 3 opponents in all single player modes.">
<standard goal="1"/>
<std_timetrial goal="1"/>
<follow_leader goal="1"/>
+1 -1
View File
@@ -10,7 +10,7 @@
</hard>
<medium>
<karts number="4"/>
<requirements time="190"/>
<requirements time="185"/>
</medium>
<easy>
<karts number="4"/>
+2 -2
View File
@@ -10,11 +10,11 @@
</hard>
<medium>
<karts number="4"/>
<requirements position="2"/>
<requirements position="1"/>
</medium>
<easy>
<karts number="3"/>
<requirements position="3"/>
<requirements position="1"/>
</easy>
</challenge>
+3 -3
View File
@@ -6,14 +6,14 @@
<hard>
<karts number="5"/>
<requirements position="1" time="161"/>
<requirements position="1" time="170"/>
</hard>
<medium>
<karts number="4"/>
<requirements time="177"/>
<requirements time="210"/>
</medium>
<easy>
<karts number="4"/>
<requirements time="240"/>
<requirements time="300"/>
</easy>
</challenge>
+2 -2
View File
@@ -10,11 +10,11 @@
</hard>
<medium>
<karts number="4"/>
<requirements time="125"/>
<requirements time="145" position="1"/>
</medium>
<easy>
<karts number="3"/>
<requirements time="145"/>
<requirements time="185"/>
</easy>
</challenge>
+1 -1
View File
@@ -10,7 +10,7 @@
</hard>
<medium>
<karts number="4"/>
<requirements time="145"/>
<requirements time="130"/>
</medium>
<easy>
<karts number="4"/>
+1 -1
View File
@@ -14,6 +14,6 @@
</medium>
<easy>
<karts number="4"/>
<requirements time="215"/>
<requirements time="255"/>
</easy>
</challenge>
+3 -3
View File
@@ -6,15 +6,15 @@
<hard>
<karts number="5"/>
<requirements position="1" time="50"/>
<requirements position="1" time="65"/>
</hard>
<medium>
<karts number="5"/>
<requirements position="1" time="65"/>
<requirements position="1" time="85"/>
</medium>
<easy>
<karts number="5"/>
<requirements position="1" time="80"/>
<requirements position="1" time="105"/>
</easy>
</challenge>
+2 -2
View File
@@ -10,10 +10,10 @@
</hard>
<medium>
<karts number="1"/>
<requirements energy="15" time="185"/>
<requirements energy="15" time="195"/>
</medium>
<easy>
<karts number="1"/>
<requirements energy="10" time="220"/>
<requirements energy="10" time="260"/>
</easy>
</challenge>
+2 -2
View File
@@ -10,10 +10,10 @@
</hard>
<medium>
<karts number="4"/>
<requirements time="175"/>
<requirements time="185"/>
</medium>
<easy>
<karts number="4"/>
<requirements time="225"/>
<requirements time="270"/>
</easy>
</challenge>
+2 -2
View File
@@ -10,10 +10,10 @@
</hard>
<medium>
<karts number="4"/>
<requirements time="175"/>
<requirements time="187"/>
</medium>
<easy>
<karts number="4"/>
<requirements time="220"/>
<requirements time="250"/>
</easy>
</challenge>
+1 -1
View File
@@ -10,7 +10,7 @@
</hard>
<medium>
<karts number="4"/>
<requirements time="175"/>
<requirements time="170"/>
</medium>
<easy>
<karts number="4"/>
+1 -1
View File
@@ -6,7 +6,7 @@
<hard>
<karts number="5"/>
<requirements position="1" time="200"/>
<requirements position="1" time="205"/>
</hard>
<medium>
<karts number="4"/>
+3 -3
View File
@@ -6,15 +6,15 @@
<hard>
<karts number="1"/>
<requirements energy="18" time="135"/>
<requirements energy="18" time="120"/>
</hard>
<medium>
<karts number="1"/>
<requirements energy="15" time="155"/>
<requirements energy="15" time="135"/>
</medium>
<easy>
<karts number="1"/>
<requirements energy="12" time="170"/>
<requirements energy="12" time="180"/>
</easy>
</challenge>
Binary file not shown.

Before

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.
Binary file not shown.

Before

Width:  |  Height:  |  Size: 43 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 47 KiB

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.3 KiB

-22
View File
@@ -1,22 +0,0 @@
<?xml version="1.0"?>
<materials>
<!-- Fonts -->
<material name="title_font.png" shader="unlit" lazy-load="Y"/>
<material name="title_font_2.png" shader="unlit" lazy-load="Y"/>
<material name="sigmar0.png" shader="unlit" lazy-load="Y"/>
<material name="comix.png" shader="unlit" lazy-load="Y"/>
<material name="LayneHansom0.png" shader="unlit" lazy-load="Y"/>
<material name="Mplus2p_JP0.png" shader="unlit" lazy-load="Y"/>
<material name="rasheeq0.png" shader="unlit" lazy-load="Y"/>
<material name="rasheeq3.png" shader="unlit" lazy-load="Y"/>
<material name="rasheeq4.png" shader="unlit" lazy-load="Y"/>
<material name="wqyMicroHei0.png" shader="unlit" lazy-load="Y"/>
<material name="wqyMicroHei1.png" shader="unlit" lazy-load="Y"/>
<material name="wqyMicroHei2.png" shader="unlit" lazy-load="Y"/>
<material name="wqyMicroHei3.png" shader="unlit" lazy-load="Y"/>
<material name="wqyMicroHei4.png" shader="unlit" lazy-load="Y"/>
<material name="wqyMicroHei5.png" shader="unlit" lazy-load="Y"/>
<material name="AR_PL_SungtiL_GB0.png" shader="unlit" lazy-load="Y"/>
<material name="LayneHansomBigDigits.png" shader="unlit" lazy-load="Y"/>
</materials>
Binary file not shown.
Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 174 KiB

Binary file not shown.
Binary file not shown.

Before

Width:  |  Height:  |  Size: 161 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 61 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 71 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 78 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 82 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 75 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 56 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 41 KiB

+9 -7
View File
@@ -4,25 +4,27 @@
<spreading angle="10" />
<velocity x="0.0"
y="0.002"
y="0.003"
z="0.0" />
<material file="smoke_black.png" />
<!-- Amount of particles emitted per second -->
<rate min="25"
max="50" />
<rate min="7"
max="12" />
<!-- Minimal and maximal lifetime of a particle, in milliseconds. -->
<lifetime min="2500"
max="5000" />
<!-- Size of the particles -->
<size min="0.6"
max="1.5" />
<size min="1.6"
max="2.5"
x-increase-factor="2.6"
y-increase-factor="2.6" />
<color min="255 255 255"
max="255 255 255" />
<color min="50 50 50"
max="100 100 100" />
<!-- How much time in milliseconds before the particle is fully faded out -->
<fadeout time="1000" />
+35
View File
@@ -0,0 +1,35 @@
<?xml version="1.0"?>
<!-- For sky particles, the size of the box is ignored -->
<particles emitter="box" randomize-initial-y="true" box_x="100.0" box_y="100" box_z="120.0">
<spreading angle="3" />
<velocity x="-0.00"
y="-0.005"
z="-0.00" />
<material file="confetti.png" clampu="Y" clampv="Y" />
<!-- Amount of particles emitted per second -->
<rate min="500"
max="1000" />
<!-- Minimal and maximal lifetime of a particle, in milliseconds. -->
<lifetime min="8500"
max="9500" />
<!-- Size of the particles -->
<size min="0.10"
max="0.30" />
<color min="40 40 255"
max="255 255 255" />
<!-- How much time in milliseconds before the particle is fully faded out -->
<fadeout time="100" />
<wind speed="0.16"
flips="Y" />
</particles>
+35
View File
@@ -0,0 +1,35 @@
<?xml version="1.0"?>
<!-- For sky particles, the size of the box is ignored -->
<particles emitter="box" randomize-initial-y="true" box_x="100.0" box_y="100" box_z="120.0">
<spreading angle="3" />
<velocity x="-0.00"
y="-0.005"
z="-0.00" />
<material file="snowflake.png" clampu="Y" clampv="Y" />
<!-- Amount of particles emitted per second -->
<rate min="500"
max="1000" />
<!-- Minimal and maximal lifetime of a particle, in milliseconds. -->
<lifetime min="8500"
max="9500" />
<!-- Size of the particles -->
<size min="0.10"
max="0.30" />
<color min="40 40 255"
max="255 255 255" />
<!-- How much time in milliseconds before the particle is fully faded out -->
<fadeout time="100" />
<wind speed="0.16"
flips="Y" />
</particles>
+32
View File
@@ -0,0 +1,32 @@
<?xml version="1.0"?>
<particles emitter="sphere" radius="20.5">
<spreading angle="120" />
<velocity x="0.002"
y="0.000"
z="0.000" />
<material file="stktex_nebulaCloud_a.png" />
<!-- Amount of particles emitted per second -->
<rate min="1"
max="2" />
<!-- Minimal and maximal lifetime of a particle, in milliseconds. -->
<lifetime min="20000"
max="30000" />
<!-- Size of the particles -->
<size min="20.5"
max="45.0"
x-increase-factor="1.6"
y-increase-factor="1.6" />
<color min="0 0 0"
max="255 255 255" />
<fadeout time="5000" />
</particles>
+32
View File
@@ -0,0 +1,32 @@
<?xml version="1.0"?>
<particles emitter="box" box_x="0.5" box_y="0.5" box_z="0.5">
<spreading angle="45" />
<velocity x="0.000"
y="0.005"
z="0.000" />
<material file="gfx_bubble_a.png" />
<!-- Amount of particles emitted per second -->
<rate min="8"
max="15" />
<!-- Minimal and maximal lifetime of a particle, in milliseconds. -->
<lifetime min="2000"
max="3000" />
<!-- Size of the particles -->
<size min="0.5"
max="0.8"
x-increase-factor="1.6"
y-increase-factor="1.6" />
<color min="0 0 0"
max="255 255 255" />
<fadeout time="2000" />
</particles>
+33
View File
@@ -0,0 +1,33 @@
<?xml version="1.0"?>
<particles emitter="sphere" radius="0.5">
<spreading angle="180" />
<velocity x="0.003"
y="0.0003"
z="0.003" />
<material file="gfx_sparkFire_a.png" />
<!-- Amount of particles emitted per second -->
<rate min="65"
max="100" />
<!-- Minimal and maximal lifetime of a particle, in milliseconds. -->
<lifetime min="1700"
max="1700" />
<!-- Size of the particles -->
<size min="0.7"
max="1.1"
x-increase-factor="1.3"
y-increase-factor="1.3"
/>
<color min="255 255 255"
max="255 0 0" />
<!-- How much time in milliseconds before the particle is fully faded out -->
<fadeout time="50" />
</particles>
+33
View File
@@ -0,0 +1,33 @@
<?xml version="1.0"?>
<particles emitter="sphere" radius="0.5">
<spreading angle="180" />
<velocity x="0.03"
y="0.003"
z="0.03" />
<material file="gfx_sparkGreen_a.png" />
<!-- Amount of particles emitted per second -->
<rate min="65"
max="100" />
<!-- Minimal and maximal lifetime of a particle, in milliseconds. -->
<lifetime min="2700"
max="2700" />
<!-- Size of the particles -->
<size min="0.5"
max="0.8"
x-increase-factor="1.1"
y-increase-factor="1.3"
/>
<color min="255 255 255"
max="255 0 0" />
<!-- How much time in milliseconds before the particle is fully faded out -->
<fadeout time="50" />
</particles>
+32
View File
@@ -0,0 +1,32 @@
<?xml version="1.0"?>
<particles emitter="sphere" radius="0.5">
<spreading angle="90" />
<velocity x="0.000"
y="0.003"
z="0.000" />
<material file="gfx_earthJetblast_a.png" />
<!-- Amount of particles emitted per second -->
<rate min="900"
max="1000" />
<!-- Minimal and maximal lifetime of a particle, in milliseconds. -->
<lifetime min="300"
max="1000" />
<!-- Size of the particles -->
<size min="0.3"
max="0.7"
x-increase-factor="1.2"
y-increase-factor="1.2" />
<color min="0 0 0"
max="255 255 255" />
<fadeout time="500" />
</particles>
+32
View File
@@ -0,0 +1,32 @@
<?xml version="1.0"?>
<particles emitter="sphere" radius="0.1">
<spreading angle="12" />
<velocity x="0.000"
y="0.000"
z="0.005" />
<material file="particle_water.png" />
<!-- Amount of particles emitted per second -->
<rate min="30"
max="50" />
<!-- Minimal and maximal lifetime of a particle, in milliseconds. -->
<lifetime min="500"
max="1000" />
<!-- Size of the particles -->
<size min="0.1"
max="0.2"
x-increase-factor="1.3"
y-increase-factor="1.3" />
<color min="255 255 255"
max="255 255 255" />
<fadeout time="3000" />
</particles>
+37
View File
@@ -0,0 +1,37 @@
<?xml version="1.0"?>
<!-- For sky particles, the size of the box is ignored -->
<particles emitter="sphere" radius="0.2">
<spreading angle="10" />
<velocity x="-0.000"
y="0.003"
z="-0.000" />
<material file="gfx_sparkBlue_a.png" clampu="Y" clampv="Y" />
<!-- Amount of particles emitted per second -->
<rate min="20"
max="50" />
<!-- Minimal and maximal lifetime of a particle, in milliseconds. -->
<lifetime min="1000"
max="1500" />
<!-- Size of the particles -->
<size min="0.08"
max="0.15"
x-increase-factor="1.2"
y-increase-factor="1.3" />
<color min="40 40 255"
max="255 255 255" />
<!-- How much time in milliseconds before the particle is fully faded out -->
<fadeout time="100" />
<wind speed="0.16"
flips="Y" />
</particles>
+7 -1
View File
@@ -4,6 +4,7 @@
<card is="Intel(R) HD Graphics 3000" os="windows" disable="AdvancedPipeline"/>
<card is="Intel(R) HD Graphics 3000" os="windows" disable="FramebufferSRGBWorking"/>
<card contains="Intel" os="osx" disable="GI"/>
<card contains="Intel" os="linux" version="<12.0" disable="FramebufferSRGBCapable"/>
<card contains="Intel" disable="TextureCompressionS3TC"/>
<card contains="Intel" os="windows" disable="HighDefinitionTextures"/>
<card contains="NVIDIA" os="windows" version="<344.65" disable="BufferStorage"/>
@@ -12,9 +13,14 @@
<card contains="Mesa" os="linux" version="<10.3" disable="BufferStorage"/>
<card contains="Mesa" os="linux" version="<10.3" disable="DriverRecentEnough"/>
<card contains="Mesa" os="linux" version="<10.6" disable="GeometryShader4"/>
<card contains="Mesa" os="linux" disable="TextureCompressionS3TC"/>
<card contains="Gallium" os="linux" version="<10.3" disable="BufferStorage"/>
<card contains="Gallium" os="linux" version="<10.3" disable="DriverRecentEnough"/>
<card contains="Gallium" os="linux" version="<10.6" disable="GeometryShader4"/>
<card contains="Radeon" version="<14.300" disable="DriverRecentEnough"/>
<card contains="Gallium" os="linux" disable="TextureCompressionS3TC"/>
<!-- On osx radeon appears to have different version numbers, e.g.
1.32.20 -->
<card contains="Radeon" os="linux" version="<14.300" disable="DriverRecentEnough"/>
<card contains="Radeon" os="windows" version="<14.300" disable="DriverRecentEnough"/>
</graphical-restrictions>
-20
View File
@@ -1,20 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<stkgui>
<icon-button id="back" x="0" y="0" height="8%" icon="gui/back.png"/>
<div x="5%" y="2%" width="90%" height="96%" layout="vertical-row" >
<header I18N="Title for challenges screen" text="Challenges : Trophy Room" text_align="center" align="center" width="80%" />
<spacer height="5" width="100%"/>
<box width="100%" proportion="5" layout="vertical-row">
<ribbon_grid id="challenges" proportion="8" width="100%"
label_location="bottom" align="center" child_width="128" child_height="128" />
<spacer proportion="1" width="100%"/>
</box>
</div>
</stkgui>
-21
View File
@@ -1,21 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<stkgui>
<div x="2%" y="10%" width="96%" height="80%" layout="vertical-row" >
<label id="title" width="100%" text_align="center" word_wrap="true"
I18N="In the 'add new player' dialog" text="Enter the new player's name" proportion="1" />
<spacer height="25" width="10" />
<textbox id="textfield" width="75%" I18N="In the 'add new player' dialog" align="center"/>
<spacer height="20" width="20" />
<buttonbar proportion="1" id="options" width="100%" height="100%">
<button id="ok" I18N="In the 'add new player' dialog" text="OK" align="center"/>
<button id="cancel" I18N="In the 'add new player' dialog" text="Cancel" align="center"/>
</buttonbar>
<spacer height="15" width="20" />
</div>
</stkgui>
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -39,31 +39,31 @@
<spacer width="10" height="10" />
<buttonbar id="menu_bottomrow" x="0" y="0" width="38%" height="100%" align="center">
<icon-button id="test_gpwin" width="64" height="64" icon="gui/main_options.png" extend_label="50"
<icon-button id="test_gpwin" width="64" height="64" icon="gui/main_options.png"
raw_text="TEST: GPWin" label_location="hover"/>
<icon-button id="test_gplose" width="64" height="64" icon="gui/main_options.png" extend_label="50"
<icon-button id="test_gplose" width="64" height="64" icon="gui/main_options.png"
raw_text="TEST: GPLose" label_location="hover"/>
<icon-button id="test_unlocked" width="64" height="64" icon="gui/main_options.png" extend_label="50"
<icon-button id="test_unlocked" width="64" height="64" icon="gui/main_options.png"
raw_text="TEST: Unlocked" label_location="hover"/>
<icon-button id="test_unlocked2" width="64" height="64" icon="gui/main_options.png" extend_label="50"
<icon-button id="test_unlocked2" width="64" height="64" icon="gui/main_options.png"
raw_text="TEST: Unlocked 2" label_location="hover"/>
<icon-button id="test_intro" width="64" height="64" icon="gui/main_options.png" extend_label="50"
<icon-button id="test_intro" width="64" height="64" icon="gui/main_options.png"
raw_text="TEST: Intro" label_location="hover"/>
<icon-button id="test_outro" width="64" height="64" icon="gui/main_options.png" extend_label="50"
<icon-button id="test_outro" width="64" height="64" icon="gui/main_options.png"
raw_text="TEST: Outro" label_location="hover"/>
<icon-button id="options" width="64" height="64" icon="gui/main_options.png" extend_label="50"
<icon-button id="options" width="64" height="64" icon="gui/main_options.png"
I18N="In the main screen" text="Options" label_location="hover"/>
<icon-button id="help" width="64" height="64" icon="gui/main_help.png" extend_label="50"
<icon-button id="help" width="64" height="64" icon="gui/main_help.png"
I18N="In the main screen" text="Help" label_location="hover"/>
<icon-button id="startTutorial" width="64" height="64" icon="gui/tutorial.png" extend_label="150"
<icon-button id="startTutorial" width="64" height="64" icon="gui/tutorial.png"
I18N="In the main screen" text="Tutorial" label_location="hover"/>
<icon-button id="achievements" width="64" height="64" icon="gui/gp_copy.png" extend_label="150"
<icon-button id="achievements" width="64" height="64" icon="gui/gp_copy.png"
I18N="In the main screen" text="Achievements" label_location="hover"/>
<icon-button id="gpEditor" width="64" height="64" icon="gui/gpeditor.png" extend_label="150"
<icon-button id="gpEditor" width="64" height="64" icon="gui/gpeditor.png"
I18N="In the main screen" text="Grand Prix Editor" label_location="hover"/>
<icon-button id="about" width="64" height="64" icon="gui/main_about.png" extend_label="50"
<icon-button id="about" width="64" height="64" icon="gui/main_about.png"
I18N="In the main screen" text="About" label_location="hover"/>
<icon-button id="quit" width="64" height="64" icon="gui/main_quit.png" extend_label="50"
<icon-button id="quit" width="64" height="64" icon="gui/main_quit.png"
I18N="In the main screen" text="Quit" label_location="hover"/>
</buttonbar>
</bottombar>
+1 -1
View File
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<stkgui>
<div x="0" y="0" width="100%" height="100%" layout="vertical-row" >
<header text_align="center" width="80%" align="center" I18N="In the server creation screen" text="Server Creation"/>
<header id="title" text_align="center" width="80%" align="center" I18N="In the server creation screen" text="Server Creation"/>
<spacer height="15" width="10"/>
<box proportion="4" width="90%" layout="vertical-row" align="center">
<div width="90%" align="center" layout="vertical-row" y="2%" height="96%">
-46
View File
@@ -1,46 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<stkgui>
<div x="0" y="0" width="100%" height="100%" layout="vertical-row" >
<header text_align="center" width="80%" align="center" I18N="In the online multiplayer screen" text="Online Multiplayer"/>
<spacer height="15" width="10"/>
<box proportion="4" width="90%" layout="vertical-row" align="center">
<div x="2%" y="2%" width="96%" height="96%" layout="vertical-row" id="outer_box" >
<!-- TODO: Here will come some information.. or statistics.. or whatever. Yet to be filled in! It will change depending on state. And I'd also like a close button at the right top. -->
<label I18N="In the online multiplayer screen" proportion="4"
word_wrap="true" text="" align="center"/>
</div>
</box>
<buttonbar id="menu_toprow" proportion="3" width="90%" align="center">
<icon-button id="quick_play" width="128" height="128"
icon="gui/online/menu_quick_play.png" focus_icon="gui/online/menu_quick_play_hover.png"
I18N="In the online multiplayer screen" text="Quick Play"/>
<icon-button id="find_server" width="128" height="128"
icon="gui/online/menu_find_server.png" focus_icon="gui/online/menu_find_server_hover.png"
I18N="In the online multiplayer screen" text="Find Server"/>
<icon-button id="create_server" width="128" height="128"
icon="gui/online/menu_create_server.png" focus_icon="gui/online/menu_create_server_hover.png"
I18N="In the online multiplayer screen" text="Create Server"/>
</buttonbar>
<spacer width="10" height="7%"/>
<bottombar x="2%" width="96%" height="10%" layout="horizontal-row">
<label text_align="left" align="center" height="100%" id="online_status" proportion="1" text=""/>
<spacer width="10" height="10" />
<buttonbar id="menu_bottomrow" x="0" y="0" width="12%" height="100%" align="center">
<icon-button id="profile" width="64" height="64" icon="gui/green_check.png" extend_label="50"
I18N="In the online multiplayer screen" text="Profile" label_location="hover"/>
<icon-button id="sign_out" width="64" height="64" icon="gui/main_quit.png" extend_label="70"
I18N="In the online multiplayer screen" text="Log Out" label_location="hover"/>
</buttonbar>
</bottombar>
</div>
<icon-button id="back" x="0" y="0" height="8%" icon="gui/back.png"/>
</stkgui>
@@ -7,7 +7,7 @@
<div width="100%" proportion="2" layout="horizontal-row">
<box id="info" proportion="2" height="100%" layout="vertical-row">
<div width="100%" height="fit" layout="horizontal-row" >
<label proportion="1" text_align="left" I18N="In the networking lobby" text="Server name :"/>
<label proportion="1" text_align="left" I18N="In the networking lobby" text="Server name:"/>
<label proportion="2" text_align="left" id="server_name" text=""/>
</div>
</box>
+63
View File
@@ -0,0 +1,63 @@
<?xml version="1.0" encoding="UTF-8"?>
<stkgui>
<div x="0" y="0" width="100%" height="fit" layout="vertical-row">
<button id="user-id" width="20%" height="fit" align="right"/>
</div>
<div x="2%" y="2%" width="96%" height="96%" layout="vertical-row" >
<header text_align="center" width="80%" align="center" I18N="In the online multiplayer screen" text="Online Multiplayer"/>
<spacer height="5%" width="25"/>
<box width="100%" height="38%" padding="10" layout="vertical-row">
<bright width="100%" text="Local Networking" align="center" text_align="left" />
<buttonbar id="lan" proportion="2" width="90%" align="center">
<icon-button id="find_lan_server" width="128" height="128"
icon="gui/online/menu_find_server.png" focus_icon="gui/online/menu_find_server_hover.png"
I18N="In the online multiplayer screen" text="Find Server"/>
<icon-button id="create_lan_server" width="128" height="128"
icon="gui/online/menu_create_server.png" focus_icon="gui/online/menu_create_server_hover.png"
I18N="In the online multiplayer screen" text="Create Server"/>
<icon-button id="manage_user" width="128" height="128"
icon="gui/options_players.png"
I18N="In the online multiplayer screen" text="Users"/>
</buttonbar>
</box>
<spacer height="5%" width="25"/>
<box width="100%" height="38%" padding="10" layout="vertical-row">
<bright width="100%" text="Global Networking" align="center" text_align="left" />
<buttonbar id="menu_top_row" proportion="2" width="90%" align="center">
<icon-button id="find_wan_server" width="128" height="128"
icon="gui/online/menu_find_server.png" focus_icon="gui/online/menu_find_server_hover.png"
I18N="In the online multiplayer screen" text="Find Server"/>
<icon-button id="create_wan_server" width="128" height="128"
icon="gui/online/menu_create_server.png" focus_icon="gui/online/menu_create_server_hover.png"
I18N="In the online multiplayer screen" text="Create Server"/>
<icon-button id="quick_wan_play" width="128" height="128"
icon="gui/online/menu_quick_play.png" focus_icon="gui/online/menu_quick_play_hover.png"
I18N="In the online multiplayer screen" text="Quick Play"/>
</buttonbar>
</box>
<bottombar x="2%" width="96%" height="10%" layout="horizontal-row">
<label text_align="left" align="center" height="100%" id="online_status" proportion="1" text=""/>
<spacer width="10" height="10" />
<buttonbar id="menu_bottomrow" x="0" y="0" width="12%" height="100%" align="center">
<icon-button id="profile" width="64" height="64" icon="gui/green_check.png" extend_label="50"
I18N="In the online multiplayer screen" text="Profile" label_location="hover"/>
<icon-button id="sign_out" width="64" height="64" icon="gui/main_quit.png" extend_label="70"
I18N="In the online multiplayer screen" text="Log Out" label_location="hover"/>
</buttonbar>
</bottombar>
</div>
<icon-button id="back" x="0" y="0" height="8%" icon="gui/back.png"/>
</stkgui>
@@ -9,7 +9,7 @@
<spacer height="25" width="10"/>
<tabs id="profile_tabs" height="10%" max_height="110" x="2%" width="98%" align="center">
<icon-button id="tab_achievements" width="128" height="128" icon="gui/options_players.png"
<icon-button id="tab_achievements" width="128" height="128" icon="gui/gp_copy.png"
I18N="Section in the profile screen" text="Achievements"/>
<icon-button id="tab_friends" width="128" height="128" icon="gui/options_players.png"/>
<icon-button id="tab_settings" width="128" height="128" icon="gui/main_options.png"/>
+1 -1
View File
@@ -9,7 +9,7 @@
<spacer height="25" width="10"/>
<tabs id="profile_tabs" height="10%" max_height="110" x="2%" width="98%" align="center">
<icon-button id="tab_achievements" width="128" height="128" icon="gui/options_players.png"/>
<icon-button id="tab_achievements" width="128" height="128" icon="gui/gp_copy.png"/>
<icon-button id="tab_friends" width="128" height="128" icon="gui/options_players.png"
I18N="Section in the profile screen" text="Friends"/>
<icon-button id="tab_settings" width="128" height="128" icon="gui/main_options.png"/>
+1 -1
View File
@@ -12,7 +12,7 @@
<icon-button id="tab_overview" width="128" height="128" icon="gui/options_ui.png"
I18N="Section in the profile screen" text="Overview"/>
<icon-button id="tab_friends" width="128" height="128" icon="gui/options_players.png" />
<icon-button id="tab_achievements" width="128" height="128" icon="gui/options_players.png"/>
<icon-button id="tab_achievements" width="128" height="128" icon="gui/gp_copy.png"/>
<icon-button id="tab_settings" width="128" height="128" icon="gui/main_options.png"/>
</tabs>
+2 -2
View File
@@ -8,7 +8,7 @@
<spacer height="25" width="10"/>
<tabs id="profile_tabs" height="10%" max_height="110" x="2%" width="98%" align="center">
<icon-button id="tab_achievements" width="128" height="128" icon="gui/options_players.png"/>
<icon-button id="tab_achievements" width="128" height="128" icon="gui/gp_copy.png"/>
<icon-button id="tab_friends" width="128" height="128" icon="gui/options_players.png" />
<icon-button id="tab_settings" width="128" height="128" icon="gui/main_options.png"
I18N="Section in the profile screen" text="Account Settings"/>
@@ -17,7 +17,7 @@
<box proportion="1" width="100%" layout="vertical-row">
<div x="1%" y="2%" width="98%" height="96%" layout="vertical-row" >
<div width="fit" height="fit" layout="horizontal-row" >
<label proportion="1" height="fit" text_align="left" I18N="In the online account settings screen" text="Password :"/>
<label proportion="1" height="fit" text_align="left" I18N="In the online account settings screen" text="Password:"/>
<spacer width="20" height="1"/>
<button id="change_password_button" height="100%" width="fit" text="Change" />
</div>
+1 -1
View File
@@ -30,7 +30,7 @@
<button id="add_device" I18N="In the input configuration screen" text="Add a device" align="center"/>
<label text="* Which config to use will be inferred from which 'Select' key is pressed to join the game."
<label I18N="In the input configuration screen" text="* Which config to use will be inferred from which 'Select' key is pressed to join the game."
proportion="2" word_wrap="true"/>
</box>
</div>
+17
View File
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<stkgui>
<div x="2%" y="10%" width="96%" height="80%" layout="vertical-row" >
<label raw_text="Run script"/>
<textbox id="textfield" width="75%" I18N="In the 'add new grand prix' dialog" align="center"/>
<spacer height="20" width="20" />
<div align="center" height="fit" width="100%" layout="horizontal-row">
<button id="run" raw_text="Run" align="center" proportion="1"/>
<spacer height="20" width="20" />
<button id="close" raw_text="Close" align="center" proportion="1"/>
</div>
</div>
</stkgui>
+1 -1
View File
@@ -7,7 +7,7 @@
<spacer height="2%" width="1"/>
<div width="100%" layout="horizontal-row" height="fit">
<label id="race_type" text="Type :" I18N="Type of race, in a challenge"/>
<label id="race_type" text="Type:" I18N="Type of race, in a challenge"/>
<spacer width="5" height="1"/>
<label id="race_type_val" proportion="1"/>
</div>
-19
View File
@@ -1,19 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<stkgui>
<icon-button id="back" x="0" y="0" height="8%" icon="gui/back.png"/>
<div x="5%" y="2%" width="90%" height="96%" layout="vertical-row" >
<header I18N="Title for tutorials screen" text="Tutorial : Selection Room" text_align="center" width="100%" />
<spacer proportion="1" width="100%"/>
<list id="tutorials" proportion="5" width="75%" align="center"/>
<spacer proportion="1" width="100%"/>
<spacer width="100%" height="45"/>
</div>
<button id="play" x="-200" y="-40" height="35" align="right" text="Play all"/>
</stkgui>
+404
View File
@@ -0,0 +1,404 @@
<?xml version="1.0"?>
<!-- Format
It is possible to give relative values (factors and more) for each property.
The format as a regex is: ([+-*/](%d+|x))*
An empty value means no change, a value without sign or with a '-' replaces
the previous value. If an operator prefixes the string, e.g. *1.5 (- doesn't
work because it's a sign). x will get replaced by the previous value which
means *1.5 is equal to x*1.5. It's also possible to combine operations:
+1.5*20 means "add 1.5 to the previous value and then multiply by 20".
Note that it's computed sequentially from left to right and there is no
operator precedence. Also whitespaces aren't allowed because they are used
to split arrays.
If you want to return the square of something use x*x or only *x.
ATTENTION: '-' is a special case if it is the first character of a number-
string. It means that the number is negative and NOT that the following
float will be substracted from the base value. So if x = 10 and the string
"-5" is processed, the result will be -5 and not the same as "x-5", which
would result in 10 - 5 = 5.
-->
<characteristics>
<!-- The default values that can be modified by the difficulty, karts, etc.
The values here should also be the values of the maximum difficulty. -->
<characteristic name="base">
<!-- ********** Physics ********** -->
<!-- Suspension
stiffness: kart's suspension stiffness.
rest: Length of suspension when at rest.
travel-cm: maximum movement of suspension - in cm!!
exp-string-response: dampen the suspension spring reaction
exponentially. See
http://bulletphysics.org/Bullet/phpBB3/viewtopic.php?f=9&t=7369\&p=25236&hilit=vehicle#p25236
for details.
max-force: Maximum suspension force -->
<suspension stiffness="140" rest="0.3" travel="0.29"
exp-spring-response="false" max-force="12000" />
<!-- Values related to stability of the chassis: damping, and reduced
impact of roll.
downward-impulse-factor: A speed proportional impulse applied each
frame that pushes the vehicle onto the ground.
track-connection-accel: An artificial force that pulls a wheel to
the ground if its off ground. Reduces the affect if a kart loses
contact with the ground (i.e. it then can't steer or accelerate
anymore).
smooth-flying-impulse: apply a torque impulse to flying kart to keep
them parallel to the ground. -->
<stability roll-influence="0.3"
chassis-linear-damping="0.2"
chassis-angular-damping="0"
downward-impulse-factor="5"
track-connection-accel="2"
smooth-flying-impulse="250" />
<!-- Turning
radius: The turn radius of the kart at
a given speed. The actual steering angle is dependent on the
wheel base of the kart: radius = wheel_base/sin(steering_angle).
The values below define that at speed 0 the turn radius is 2, at
speed 10 the radius is 7.5 etc.
The actual turn radius is piece-wise linearly interpolated. This
allows for tighter turning at lower speeds, and also avoids that
the kart becomes too hard to control at high speed (speeds of
higher than 23 can only be reached with powerups).
time-full-steer: This is the amount of change in steering depending
on current steering. So if the steering is between 0 and 0.5,
the time-for-steering-change is 0.15. If the current steering is
between 0.5 and 1.0, the time-for-steering-change is 0.25.
The speed is used as dt/time-for-steering-change.
In short: steering at less than halfway is somewhat faster,
which should avoid oversteering (by pressing the key for too long),
but slower when you want to steer more. Overwall with the current
settings the expected time-to-full-steer is:
0.5 * 0.25 + 0.5 * 0.15 = 0.2 ... which is overall the same
time we had previously. -->
<turn radius="0:2.0 10:7.5 25:15 45:30"
time-full-steer="0:0.17 0.5:0.17 0.5:0.28 1.0:0.28"
time-reset-steer="0.1" />
<!-- Speed and acceleration
power: The power of the kart
max-speed: The base maximum speed of the kart in m/s
brake-factor: Value used when braking.
brake-time-increase: The brake force is multiplied by
(1 + brake_time) * brake_time_increase - i.e. the longer the
brake was pressed, the harder the kart will brake.
max-speed-reverse-ratio is the percentage of max speed for reverse
gear.
-->
<engine power="875" max-speed="25" brake-factor="15"
brake-time-increase="6" max-speed-reverse-ratio="0.65" />
<!-- Simulated gears
switch-ratio defines at what ratio of the maximum
speed what gear is selected, e.g. 0.25 means that if the speed is
bigger or equal to 0.25 * maxSpeed then use gear 1, 0.5 means if
the speed is bigger or equal to 0.5 x maxSpeed then gear 2.
gear-power-increase contains the increase in max power (to simulate
different gears), e.g. 2.5 as first entry means: 2.5 * maxPower in gear 1
| first | second | third | . -->
<gear switch-ratio="0.25 0.7 1.0" power-increase="2.2 1.7 1.3" />
<!-- Mass of a kart -->
<mass value="350" />
<!-- Wheels
damping-relaxation/compression: for bullet
damping parameters
Radius and width of wheel
front-right, front-left, rear-right and rear-left give the
position of the physics raycast wheels relative to the center of
gravity. Default is to use the corners of the chassis to attach
the wheels to. -->
<wheels damping-relaxation="35" damping-compression="5">
<front-right position="0.38 0 0.6" />
<front-left position="-0.38 0 0.6" />
<rear-right position="0.38 0 -0.6" />
<rear-left position="-0.38 0 -0.6" />
</wheels>
<!-- ********** Visuals ********** -->
<!-- Skidding
increase: multiplicative increase of skidding factor in each frame.
decrease: multiplicative decrease of skidding factor in each frame.
max: maximum skidding factor = maximum increase of steering angle.
time-till-max: Time till maximum skidding is reached.
visual: Additional graphical rotation of kart. The graphical rotation
of the kart also determines the direction the kart is driving to
when skidding is stopped.
visual-time: How long it takes for the visual skid to reach maximum.
revert-visual-time: how long it takes when stopping a skid to revert
the visual skid and bring visuals and physics in sync again.
angular-velocity: Angular velocity to be used for the kart when skidding.
min-speed: Minimum speed a kart must have before it can skid. Must be
>0, otherwise the kart can skid at the start of the race.
time-till-bonus: How long a kart needs to skid in order to get a bonus.
bonus-force: A speedup applied to the kart whick skidded for a while.
bonus-time: How long the bonus-force is applied.
bonus-force: Additional engine force (this is used to offset the fact
that turning after skidding (e.g. to correct direction) often uses
up the skid bonus).
post-skid-rotate-factor: a factor to be used to determine how much
the chassis of a kart should rotate to match the graphical view.
A factor of 1 is identical, a smaller factor will rotate the kart
less (which might feel better).
physical-jump-time: Time for a physical jump at the beginning of a skid.
graphical-jump-time: Time for a graphics-only jump at the beginning
of a skid.
reduce-turn-min/max: The steering done by the controller (which is in
[-1,1]) is mapped to [reduce-turn-min, reduce-turn-max] when skidding
is active (for left turn, right turn will use [-max, -min]). The
effect is that while you skid (say left) you can adjust the direction
of the turn the kart is doing somewhat by steering to the left and right,
but you will always keep on doing a left turn, just more or less. -->
<skid increase="1.05" decrease="0.95" max="2.5" time-till-max="0.5"
visual="1.25" visual-time="0.7" revert-visual-time="0.7"
min-speed="10" time-till-bonus="1.0 3.0"
bonus-speed="4.5 6.5" bonus-time="3.0 4.0"
bonus-force="250 350"
physical-jump-time="0" graphical-jump-time="0.4"
post-skid-rotate-factor="1"
reduce-turn-min="0.2" reduce-turn-max="0.8" enabled="true" />
<!-- Camera
Distance between kart and camera.
forward-up-angle: Angle between camera and plane of kart (pitch)
when the camera is pointing forward
backward-up-angle: Angle between camera and plane of kart (pitch)
when the camera is pointing backwards. This is usually
larger than the forward-up-angle, since the kart itself
otherwise obstricts too much of the view. -->
<camera distance="1.0" forward-up-angle="15"
backward-up-angle="5" />
<!-- Jump animation
animation-time: only if the estimated time for a jump is larger
than this value will the jump animation being
shown. -->
<jump animation-time="0.5" />
<!-- Leaning related parameters, i.e. slightly leaning the karts when
driving a fast curve.
max: maximum leaning (i.e. when steering as much as possible at highest
speed), in degrees.
speed: Speed with which the leaning changes (in degree/second). -->
<lean max="8.6" speed="5.0" />
<!-- ********** Items ********** -->
<!-- Anvil
weight: The additional weight an anvil adds to a kart.
speed-factor: The additional slowdown caused by the anvil.
duration: The time an anvil is active. -->
<anvil duration="2.0" weight="150" speed-factor="0.2" />
<!-- Parachute
friction: The friction increase when a parachute is attached.
duration: The time an attached parachute is active
duration-other: The time a parachute attached from other kart works
lbound-fraction: The lower bound fraction of speed when lost will
detach parachute. E.g. at nearly 0 speed, only 5% of speed
need to be lost.
ubound-fraction: The upper bound fraction of speed when lost will
detach parachute. E.g. at max-speed 30% of speed must be lost.
max-speed: A factor that decides the impact of rate of speed
(distance between bounds) -->
<parachute friction="2.0" duration="4.0" duration-other="8.0"
lbound-fraction="0.95" ubound-fraction="0.7" max-speed="23" />
<!-- Bubblegum
duration: How long the bubblegum lasts.
speed-fraction: To what fraction of top-speed the speed is reduced.
torque: To rotate the kart somewhat.
fade-in-time: How quick the slowdown takes effect.
shield-duration: How long the bubblegum shield lasts -->
<bubblegum duration="1" speed-fraction="0.3" torque="500" fade-in-time="0.01"
shield-duration="10.0" />
<!-- Zipper
duration: Time a zipper is active.
force: Additional zipper force.
speed-gain: One time additional speed.
max-speed-increase: Additional speed allowed on top of the
kart-specific maximum kart speed.
fade-out-time: determines how long it takes for a zipper
to fade out (after 'time'). -->
<zipper duration="3.5" force="250.0" speed-gain="4.5" max-speed-increase="15"
fade-out-time="1.0" />
<!-- Swatter
duration: How long can the swatter be active.
distance: How close a kart or an item must be before it can be hit.
This is the square of the real distance to accelerate the
compution.
squash-duration: How long a kart will remain squashed.
squash-slowdown: Percentage of max speed that a kart is
restricted to. -->
<swatter duration="10" distance="9" squash-duration="5"
squash-slowdown="0.5" />
<!-- Plunger and rubber band handling
band-max-length: The maximum length of rubber band before it snaps.
band-force: The force a plunger/rubber band applies to the kart(s).
band-duration: The duration a rubber band acts.
in-face-time determines how long it takes before a plunger
in your face is removed. -->
<plunger band-max-length="50" band-force="1500" band-duration="1"
band-speed-increase="7" band-fade-out-time="3"
in-face-time="4.5" />
<!-- ********** Miscellaneous ********** -->
<!-- Startup
If a kart starts within the specified time after 'go',
it receives the corresponding bonus from 'boost'. Those
fields must have the same size, and must be sorted by
increasing times. -->
<startup time="0.3 0.5"
boost="6 3" />
<!-- Rescue
duration: How long it takes the kart to be raised.
height: how height the kart will be raised before it is
dropped back onto the track.
vert rescue offset: used to raise karts a bit higher before
releasing them on the ground after a rescue. Used to avoid
resetting karts into the track. Not sure if this is still
necessary. -->
<rescue vert-offset="0.0" duration="1.2" height="2" />
<!-- Explosion
duration: how long it takes before the kart can drive again (this
determines how height the kart is being thrown).
invulnerability-time: how long a kart will be invulnerable
after being hit by an explosion.
radius: Kart closer to this value will be affected by
an explosion as well. -->
<explosion duration="2" radius="5"
invulnerability-time="6" />
<!-- Nitro
engine-force: additional engine power
consumption: nitro consumption - heavier characters can be set
to need more nitro than lighter character.
small-container: how much energy a small container gives.
big-container: how much energy a big container gives.
max-speed-increase: How much the speed of a kart might exceed
its maximum speed (in m/s).
duration: How long the increased speed will be valid after
the kart stops using nitro (and the fade-out-time starts).
fade-out-time: Duration during which the increased maximum
speed due to nitro fades out.
max: How much nitro a kart can store. -->
<nitro engine-force="600" consumption="1" small-container="1" big-container="3"
max-speed-increase="5" duration="1" fade-out-time="2" max="20" />
<!-- Slipstream
length: How far behind a kart slipstream works
width: how wide slipstream works furthest away from the kart.
collect-time: How many seconds of sstream give maximum benefit
use-time: How long the benefit will last.
add-power: Additional power due to sstreaming. 1 = +100%
min-speed: Minimum speed necessary for slipstream to take effect.
max-speed-increase: How much the speed of the kart might exceed
its normal maximum speed.
duration: How long the higher speed lasts after slipstream stopped
working.
fade-out-time: How long the slip stream speed increase will
gradually be reduced. -->
<slipstream length="10" width="2" collect-time="2" use-time="5"
add-power="3" min-speed="10" max-speed-increase="5"
duration="1" fade-out-time="2" />
</characteristic>
<!-- The different difficulties (like easy, medium, hard) -->
<difficulties>
<characteristic name="easy">
<engine power="*0.66" max-speed="*0.6" />
<plunger in-face-time="3" />
</characteristic>
<characteristic name="medium">
<engine power="*0.77" max-speed="*0.8" />
<plunger in-face-time="4" />
</characteristic>
<characteristic name="hard">
<engine power="*0.89" max-speed="*0.92" />
</characteristic>
<!-- This doesn't need to be changed because the most fast/heavy/extreme
values should also be the default ones. -->
<characteristic name="best" />
</difficulties>
<!-- The different kart types, that can be specified in the kart.xml file -->
<kart-types>
<characteristic name="light">
<engine power="*0.46" max-speed="*0.92" brake-factor="*1"
max-speed-reverse-ratio="*0.77" />
<gear switch-ratio="0.20 0.55 1" power-increase="5 4 3" />
<mass value="*0.56" />
<startup time="0.3 0.5"
boost="8.5 4.5" />
<explosion time="2.1" radius="5.5"
invulnerability-time="7" />
<nitro engine-force="350" max-speed-increase="4.5" duration="1.5"
fade-out-time="2.5" />
<slipstream length="11" collect-time="1.5" use-time="2.5" add-power="3.2"
min-speed="9" max-speed-increase="4" duration="1.2"
fade-out-time="2.3" />
</characteristic>
<characteristic name="medium">
<engine power="*0.63" max-speed="*1" brake-factor="*0.73"
max-speed-reverse-ratio="*0.62" />
<gear switch-ratio="0.30 0.7 1.0" power-increase="2.2 2.2 2.5" />
<mass value="*0.71" />
<startup time="0.3 0.5"
boost="4.2 2.6" />
<explosion time="1.8" radius="5"
invulnerability-time="6" />
<nitro engine-force="425" consumption="1.4" duration="1" />
<slipstream use-time="3.3" add-power="2.8" duration="0.9"
fade-out-time="1.6" />
</characteristic>
<characteristic name="heavy">
<engine power="*1" max-speed="*1" brake-factor="*0.66"
max-speed-reverse-ratio="*1" />
<gear switch-ratio="0.45 0.70 1" power-increase="1.5 1.7 2.5" />
<mass value="*1" />
<swatter duration="10" distance="3" squash-duration="5"
squash-slowdown="0.5" />
<startup time="0.3 0.5"
boost="3.8 2" />
<explosion time="1.5" radius="4"
invulnerability-time="6" />
<nitro engine-force="600" consumption="2" max-speed-increase="8"
duration="0.7" fade-out-time="1.3" />
<slipstream length="8.5" use-time="4" add-power="2.7" min-speed="10.5"
max-speed-increase="8" duration="0.7" fade-out-time="1" />
</characteristic>
</kart-types>
<!-- Per-player settings/handicaps (or boosts) -->
<player-characteristics>
<characteristic name="normal" />
<characteristic name="handicap">
<engine brake-factor="*0.8" brake-time-increase="*0.85" max-speed-reverse-ratio="*0.8" />
<bubblegum duration="*1.5" speed-fraction="*1.5" torque="*1.5" />
<zipper duration="*0.8" force="*0.8" speed-gain="*0.8" max-speed-increase="*0.8" />
<swatter duration="*0.8" squash-duration="*1.5" squash-slowdown="*1.8" />
<plunger band-max-length="*0.8" band-speed-increase="*0.8" in-face-time="*1.3" />
<startup time="*0.8 0.8" boost="*0.8 0.8" />
<rescue duration="*1.5" />
<explosion duration="*1.3" invulnerability-time="*0.7" />
<nitro engine-force="*0.8" consumption="*1.1" max-speed-increase="*0.9" max="*0.8" />
<slipstream length="*0.8" width="*0.8" collect-time="*1.5" use-time="*0.8"
add-power="*0.8" min-speed="*0.8" max-speed-increase="*0.9" duration="*0.8" />
</characteristic>
</player-characteristics>
</characteristics>
+27 -5
View File
@@ -20,8 +20,9 @@ jpegtran=true
advdef=true
advzip=true
optipng=true
convert=true
#WARNING! SETTING TO TRUE MAY POSSIBLY INCREASE LOAD TIMES ON A SLOW CPU (UNTESTED) OR LEAD TO FILE NOT FOUND ERRORS WHEN RUNNING SUPERTUXKART!
#WARNING! SETTING TO TRUE MAY POSSIBLY INCREASE LOAD TIMES ON A SLOW CPU (UNTESTED) OR LEAD TO FILE NOT FOUND ERRORS WHEN RUNNING SUPERTUXKART!
compress_b3d=false
@@ -58,10 +59,17 @@ then
sleep 2
fi
#check for convert
if [ ! $(which convert) ]
then
echo "convert is not installed, therefore it will not be used."; convert=false
sleep 2
fi
#check for optipng
if [ ! $(which optipng) ]
then
echo "optipng is not installed, therefore it will not be used."; optipng=false
echo "optipng is not installed, therefore it will not be used."; optipng=false
sleep 2
fi
@@ -83,10 +91,18 @@ BEFORE=`du -sk | awk '{print $1}'`
#functions for xargs multithreading, used instead of GNU parallel for cross-compatibility
#TODO: let next set of optimization scripts run if one set is stuck on a single file at the end to decrease total runtime
#strip ICC information off PNG's
strippng () {
for arg; do
convert "$arg" -strip "$arg"
done
}
export -f strippng
#optimize PNG's
optimpng () {
for arg; do
optipng -quiet -o3 "$arg"
optipng -quiet -o3 "$arg"
#level 3 = 16 trials, which according to http://optipng.sourceforge.net/pngtech/optipng.html (retrieved October 2014) should be satisfactory for all users
done
}
@@ -96,7 +112,7 @@ export -f optimpng
#compress PNG in-stream data
comprpng () {
for arg; do
advdef -z4 "$arg"
advdef -z4 "$arg"
done
}
export -f comprpng
@@ -121,6 +137,12 @@ done
export -f recomprb3dz
#END MULTITHREADING FUNCTIONS
#strip png icc information
if [ "$convert" = true ]; then
find . -path .svn -prune -o -name "*.png" -print0 | xargs -0 -n 1 -P "$threads" bash -c 'strippng "$@"' -- #multithread the png stripping
else echo "convert not installed. Ignoring commands using convert..."; sleep 1
fi
#lossless png image optimization
if [ "$optipng" = true ]; then
find . -path .svn -prune -o -name "*.png" -print0 | xargs -0 -n 1 -P "$threads" bash -c 'optimpng "$@"' -- #multithread the png optimization
@@ -142,7 +164,7 @@ else echo "jpegtran not installed. Ignoring commands using jpegtran..."; sleep 1
fi
#b3dz to b3dz compression
#b3dz to b3dz compression
#WARNING: BETA, MAY CAUSE MISSING FILE WARNINGS!
if [ "$compress_b3d" = true ]; then
for xmls in $(find . -name "*.xml"); do
+1
View File
@@ -0,0 +1 @@
*.sh -crlf
+2 -1
View File
@@ -1,2 +1,3 @@
transifex
tx.exe
tx.exe
gui_strings.h
+3429 -3000
View File
File diff suppressed because it is too large Load Diff
+3801
View File
File diff suppressed because it is too large Load Diff
+3403 -2980
View File
File diff suppressed because it is too large Load Diff
+3431 -3008
View File
File diff suppressed because it is too large Load Diff
+3506 -3082
View File
File diff suppressed because it is too large Load Diff
+3424 -3000
View File
File diff suppressed because it is too large Load Diff
+3508 -3085
View File
File diff suppressed because it is too large Load Diff
+3494 -3066
View File
File diff suppressed because it is too large Load Diff
+3511 -3087
View File
File diff suppressed because it is too large Load Diff
+3513 -3086
View File
File diff suppressed because it is too large Load Diff
+3486 -3062
View File
File diff suppressed because it is too large Load Diff
+3420 -2997
View File
File diff suppressed because it is too large Load Diff
+3420 -2997
View File
File diff suppressed because it is too large Load Diff

Some files were not shown because too many files have changed in this diff Show More