hiker
54b32ba6b1
Merge branch 'master' into game_protocol
2017-11-05 13:03:15 +11:00
Benau
69c86930e8
Don't raycast driveable objects that are not enabled
2017-11-05 01:32:41 +08:00
Benau
8ba0fd3569
Allow exact shape to be used with tangents mesh
2017-11-05 00:55:26 +08:00
Benau
628bc7ce50
Allow light to be disabled by scripting
2017-11-04 14:01:47 +08:00
Deve
cc970c01a5
Merge pull request #3011 from qwertychouskie/patch-3
...
Prevent upgrades to 0.9.3 causing all particles to be disabled
2017-11-04 00:00:46 +01:00
Benau
fa6959251a
Fix #2949
...
Use clamp to edge sampler
2017-11-03 20:28:15 +08:00
QwertyChouskie
b13a502f50
Prevent upgrades to 0.9.3 causing all particles to be disabled
...
Older version's "false" in the config file translates to "0", which disables all particles in 0.9.3. Mitigate this by renaming the variable.
See https://forum.freegamedev.net/viewtopic.php?f=17&t=7662&sid=71b18d47f0b9d436d4bd17c2da8cbb86#p74823 for an example of this causing confusion.
2017-11-02 18:49:57 -07:00
Deve
bcb452f76b
Add missing languages to tinygettext
2017-11-02 22:17:57 +01:00
auria.mg
04c9763e77
Clarify UI in game paused dialog of story mode, fixes #3004
2017-11-01 19:29:02 -04:00
auria.mg
3760d84359
Attempt to fix #2997
2017-11-01 19:08:47 -04:00
Ben Krajancic
a94d22cce7
No option to abort grand prix on last track ( #3003 )
...
* Small clarification to prevent build errors
Building outside of this directory prevents the executable from launching, this small addition can help prevent this issue from happening.
* Initial Commit
* Code cleanup
* Fix compile error
* Fix incorrect comparison
2017-10-31 19:15:57 -04:00
Ben Krajancic
a1689efa5f
Crash sounds based on speed and direction ( #2964 )
...
* Small clarification to prevent build errors
Building outside of this directory prevents the executable from launching, this small addition can help prevent this issue from happening.
* Initial calculation and application
However this doesn't handle other karts well. Max speed both karts should differ in each direction
* Properly scale volume appropriate to speed and direction
* Improve clarity in variables and created getcurrentemitter method
* equation is awful, don't use
* Head on collision fix physics to be more accurate
* Removed debug std cout
* Cleaned up method for calculating volume, other misc fixes
Changed from m_body->getlinearvelocity() to getvelocity() to ensure that the reader doesn't mistake the functions as being different
* Fixed wrong value for min_volume
* Updated to Styling guidelines
* Fixed tabs to spaces
* fixed tab to space
* Coding conventions, fix set volume
* Last tab fix
* Make quiter sounds louder through math, whilst ensuring not imaginary numbers
2017-10-31 18:38:10 -04:00
Fantasmos
98231956fb
rename to more appropriate variable
2017-11-01 08:38:34 +11:00
Fantasmos
83c14fc0dc
Added default num karts for GP
2017-10-31 18:11:45 +11:00
Fantasmos
367eeb8c20
fix innapropriate name changes
2017-10-31 17:57:19 +11:00
Fantasmos
a094a5a3d6
Fix non newline brackets
2017-10-31 11:15:38 +11:00
Deve
57c874f703
Add a possibility to overwrite assets dir using environment variable.
...
It fixes #2982 when both SUPERTUXKART_DATADIR and SUPERTUXKART_ASSETS_DIR are set.
2017-10-29 21:02:13 +01:00
auria.mg
4f7cdbe294
Fix #2977
2017-10-29 14:07:41 -04:00
Benau
b15ab1f043
Fix #2988
2017-10-30 01:34:40 +08:00
Benau
d9d3afc36e
Fix wrong normal, vertex 2 color and memory leak of texture quad
...
Fix #2979
2017-10-29 16:19:14 +08:00
Benau
e57c2bbbd3
Remove the dead elephpant
2017-10-29 09:20:50 +08:00
Fantasmos
702d7f71c5
Replaced pair with temporary struct, to ensure POD-typing
2017-10-28 18:41:26 +11:00
Fantasmos
7fff73afa6
Clarifies the cause of compiler errors for some systems
2017-10-28 14:13:57 +11:00
Fantasmos
e50d295c87
Remvoe redundancy
2017-10-28 13:05:08 +11:00
Fantasmos
d366dd84cd
Updated to naming conventions
2017-10-28 12:59:04 +11:00
Fantasmos
cb1a2b1e25
Rename m_num_karts to be more appropriate, removed redundant variables I've made
2017-10-28 12:51:49 +11:00
Fantasmos
4a0db1926d
Highlighted issue that needs resolving
2017-10-28 12:09:23 +11:00
Fantasmos
4fbc39572b
Removed Tab, first working version!
2017-10-28 11:56:52 +11:00
Fantasmos
ca330b1ac0
Map compiles now and can be set
2017-10-28 11:35:11 +11:00
Fantasmos
f10feb77fd
Can now load a map type
2017-10-28 09:16:28 +11:00
Fantasmos
823d3112ad
Begun making template for dictionary
2017-10-27 22:31:54 +11:00
Fantasmos
af7fefee1e
note errors
2017-10-26 11:32:43 +11:00
auria.mg
256ad66e13
#2734
2017-10-25 20:20:00 -04:00
auria.mg
067db4c8ce
Fix #2734
2017-10-25 20:16:36 -04:00
Fantasmos
df69a684a3
Identified cause of compile error
2017-10-26 09:39:48 +11:00
Fantasmos
74cdd07ba7
Added string array for karts per gamemode, and references to it to replace num_karts
2017-10-26 09:11:57 +11:00
Deve
9fe805f5f8
Avoid tinygettext warning
2017-10-25 23:52:35 +02:00
Benau
0f17d7e23a
Fix #2917
2017-10-25 09:14:26 +08:00
hiker
d6251054cb
Merge branch 'master' of github.com:supertuxkart/stk-code
2017-10-23 09:45:20 +11:00
hiker
4c1874ebf8
Hopefully fix #2939 (backpedal animation flickers when stopping and
...
left/right is being pressed).
2017-10-23 08:44:17 +11:00
Benau
fc2e05c0a6
Use a trick to make skinned mesh shader branchless
2017-10-22 13:03:45 +08:00
Benau
7252a38da1
Fix skinning glitches possible in (some) cards
2017-10-22 02:17:37 +08:00
Benau
aa080db501
Fix resolution change crash
...
UpdateFlips stop working if we don't m_flips_data.clear();
2017-10-22 01:52:37 +08:00
Benau
a0991c3233
Don't use unsync map buffer
...
It causes regression in hd5670 in windows
Although we should update ubo only once per frame
2017-10-22 01:51:45 +08:00
Benau
6a79d204c1
Don't use SSBO for skinning
...
It causes trouble in hd5670 in windows
2017-10-22 01:31:15 +08:00
Deve
cf26337bd4
Fixed particles in multiplayer mode
2017-10-21 08:18:28 +02:00
hiker
7f1c460227
Merge branch 'master' of github.com:supertuxkart/stk-code
2017-10-21 01:00:44 +11:00
hiker
d7f5fb9e69
Avoid flicker when a kart with backpedal animation is stopping and
...
left/right is pressed (see #2939 ).
2017-10-21 00:58:25 +11:00
Benau
6896c44da8
Clang fix
2017-10-20 18:35:28 +08:00
Benau
42a3eb1880
Uniform vertex color for fonts in all pipelines
2017-10-20 18:21:55 +08:00
Benau
e61eb3415a
Remove hardcoded max 1024 bones for skinning
2017-10-20 17:10:08 +08:00
Benau
1b70144c80
Reserve a graphics restriction for hardware skinning
2017-10-20 14:00:38 +08:00
Benau
fd0eaf064f
Show a ghost hat for ghost kart
2017-10-20 10:05:49 +08:00
Benau
ebdde49984
Merge remote-tracking branch 'origin/master' into tbo_skinning
2017-10-20 08:36:54 +08:00
Deve
5216f8e917
Fixed jump explosion on android
2017-10-19 21:44:50 +02:00
Benau
553b2439ac
Allow using SSBO for skinning if supported
2017-10-20 01:27:44 +08:00
Benau
0d96906d54
Use texture buffer (texture2d in gles) for skinning
2017-10-19 13:31:07 +08:00
Deve
1a9cf6a46f
Set max texture size to 256 for Raspberry Pi
2017-10-18 21:13:23 +02:00
Deve
9ec06f122c
Allow to filter graphical restrictions by vendor
2017-10-18 20:51:26 +02:00
Deve
c3e772e863
Add different explosion effect for Android.
...
It gives much better performance while it still looks similar.
2017-10-17 23:34:19 +02:00
Benau
fa48d099f2
Fix the remaining msvc warnings
2017-10-17 10:51:52 +08:00
Benau
88e15147b8
Merge remote-tracking branch 'origin/win-64bit'
2017-10-17 00:55:22 +08:00
Benau
e47aa5d567
Take relative path issue into account when unloading texture
...
Now except global particle textures all textures loaded by track can be
clean properly
2017-10-16 16:09:07 +08:00
Benau
c8d13d7360
Preload the particle textures when first load
...
This prevent hangs when lazy loading texture runtime
2017-10-16 14:22:09 +08:00
Benau
7e0d706946
Don't call setLastTriggeredCheckline for check cannon
...
It will override the track check line
2017-10-16 13:47:21 +08:00
Benau
30e78fb1c0
Merge branch 'fix_2427'
2017-10-16 07:25:38 +08:00
hiker
9166e704e9
Take ball squashing into account when computing the ball height (so now
...
the basketball properly touches the ground if its height is 0).
2017-10-16 10:10:33 +11:00
Benau
c7dbe715fc
Remove duplicated and unused code
2017-10-16 00:48:08 +08:00
Benau
4573e51e98
Fix #2427
2017-10-15 19:14:07 +08:00
Benau
a7debc286a
Check flips using unordered_set
2017-10-15 15:05:49 +08:00
Benau
058f9163db
Some work to make particle shader able to render billboard
...
The lifetime in height map stimulation will always now < 1.0f
2017-10-15 13:57:01 +08:00
Benau
f646a26fbe
Clean up particle .xml
...
Remove unsupported entries, notice that particles now are auto-
faded out by lifetime
Also remove flips that are not visible at all
2017-10-15 12:47:21 +08:00
Benau
998b11ed51
Add an option to disable pre-generation for explosion particles
...
Also remove some unused code
2017-10-15 11:32:58 +08:00
Benau
b1f4ced6f0
Fix bounding boxes in legacy pipeline
2017-10-15 00:18:11 +08:00
Benau
85adab6e1e
Allow to use new STKParticle with legacy pipeline
...
Due to cull face issue the kart exhaust is still not visible
2017-10-14 15:42:10 +08:00
Benau
088d09cb64
Don't hardcode first vbo size
2017-10-14 14:42:54 +08:00
Benau
c3a22ddcf7
Pre-generate some particles if max count is small
2017-10-14 14:42:24 +08:00
Benau
a0c9ba2b8c
Pack mixed color into instanced array
...
With half-floats for lifetime and size for same stride
2017-10-14 12:33:08 +08:00
Benau
e49a7139d7
Split MiniGLM for more usage (instancing, cpu particle, network...)
2017-10-14 11:00:51 +08:00
Benau
0b9a3e1c69
Fix some issues found in first-try
2017-10-14 09:47:13 +08:00
Benau
0066722dab
Features completed cpu particle
2017-10-14 00:19:59 +08:00
Deve
928ae4e44d
Try to fix server-only compilation
2017-10-11 21:50:44 +02:00
Deve
b0cdbd94b4
Merge branch 'srgb_fb'
2017-10-11 21:46:58 +02:00
Deve
c1e17f0593
Add a fallback for intel on linux.
...
When workaround with alpha_channel=true failed, then fallback to the path with disabled srgb framebuffer.
2017-10-11 21:39:13 +02:00
Benau
9304f6fa3c
Disable the usage of all parts colorized
...
Please use colorization mask for better effect
2017-10-11 13:05:15 +08:00
Benau
839142b752
Add up-to-date restriction for hd3000 in windows
2017-10-11 11:25:28 +08:00
Deve
ae4e302741
Add a way to run STK without srgb framebuffer
2017-10-09 21:18:15 +02:00
Benau
10e3467f96
Merge remote-tracking branch 'origin/better_rescue_animation'
2017-10-09 07:44:50 +08:00
hiker
fba22def40
Merge branch 'master' of github.com:supertuxkart/stk-code
2017-10-09 10:29:24 +11:00
hiker
b97088c933
Fixed computation of new point. The previous approach was based on
...
the newly computed point. If this point should be under the track,
and the new height is not enough to offset this, the ball will be
tunnelling, which results in the ball being reset to the previous
position, i.e. the ball will not move.
2017-10-09 10:25:36 +11:00
hiker
f94b3a9120
Added more debug info, removed unused code.
2017-10-09 10:25:11 +11:00
Deve
48d94e10a7
Use separate os name for android stats
2017-10-07 21:37:59 +02:00
Benau
4f1becb20d
Add a better rescue animation
...
Also fix #2501
2017-10-06 23:42:23 +08:00
Benau
cf2a9f7089
Allow configurable exhuast particle, fixes #2878
2017-10-06 01:08:27 +08:00
Deve
27a79526b1
Allow to use particles heightmap simulation in GLES
2017-10-02 23:05:12 +02:00
Deve
843ebad9a1
Don't use GL_FRAMEBUFFER_SRGB in GLES
2017-10-01 22:25:37 +02:00
Benau
d6d1fa40c0
Use a hack to get the "real" transformation for bones
...
Sometimes the value return before was not as correct as in blender
Todo: expose it in mesh interface
2017-10-01 15:20:37 +08:00
Deve
1a250c5b74
Hopefully fixed rare crash in createVideoModeList.
...
Assume that the window was null.
2017-09-30 23:43:29 +02:00
Deve
d99b2d4b5a
Fixed a crash in overworld after kart selection screen when accelerometer is enabled
2017-09-30 23:08:17 +02:00
Deve
e2c0f83fb0
Move patform specific code from irr_driver to irrlicht devices
2017-09-27 17:37:56 +02:00
Benau
e655c5e971
Don't initInverseBoneMatrices for < version 3 karts
...
grep -rn speed-weighted-object in deveee's addon karts show nothing
(even most addons)
2017-09-20 13:27:46 +08:00
Benau
3cd2f403e0
Force re-skin when getMesh with hardware skinning on
...
Actually spm has a built in way to use mesh without bothering bind
pose
2017-09-20 01:27:52 +08:00
Benau
b09eec4bcb
Allow speed weight objects to be attached to bone
2017-09-18 11:27:21 +08:00
Benau
cef65cb98a
Use the same radius as before
2017-09-17 08:44:58 +08:00
Deve
29ba4ee543
Avoid a warning about missing texture in race result gui
2017-09-16 23:38:26 +02:00
Benau
12188c5287
Allow sharing headlight model and config its color (for gnu)
2017-09-16 14:46:21 +08:00
Benau
00660293b7
Fix #1795 , fix #2755 and fix #2886
...
Allow using bone attachment in straight-frame static mesh.
Advanced headlight rendering with light origin from center mass
of headlight model which can be bound to any bone in kart model
2017-09-15 20:08:38 +08:00
auria.mg
024b642d27
Add margin
2017-09-14 19:24:23 -04:00
auria.mg
1d2e882ffe
Merge branch 'master' into master_fhach
...
# Conflicts:
# src/guiengine/widgets/kart_stats_widget.cpp
2017-09-14 19:24:06 -04:00
Deve
04cc5bb62c
Make sure that music pointers are always null when deleted
2017-09-13 21:11:12 +02:00
Deve
be4d0e7208
Fixed a crash when starting ghost replay
2017-09-12 20:14:10 +02:00
deve
6829bb1e51
Fixed aspect ratio for icon button widget.
...
It happened when using non-hd textures. Textures with aspect ratio != 1, are scaled to MAX_TEXTURE_SIZE, for example from 512x256 to 256x256, so we can't base on scaled texture size.
Btw. such behaviour seems to not have a sense (for example 2048x256 will be scaled down to 256x256), so it may need some work in stk_texture.cpp.
2017-09-12 06:10:23 +02:00
Deve
fd00ef4d92
Fixed a crash in grand prix editor
2017-09-09 21:25:56 +02:00
deve
4610572649
Don't draw explosion particles if only important effects are selected in options.
...
It causes slowdown on some devices, i.e. from 30fps to 5fps when explosion occurs very near of the camera. So disable it for lowest graphical level.
2017-09-08 06:25:21 +02:00
Deve
f96863c421
Add a possibility to totally disable particles.
...
Particles cause a crash on some radeon devices, so people can at least disable it to make the game working.
Also tfb causes quite big slowdown on slow devices even if there is no particles displayed, so it can give few more fps.
2017-09-08 00:33:46 +02:00
QwertyChouskie
039a7d0ecc
Put screenshots in ~/.local/share/supertuxkart/screenshots ( #2932 )
...
* Put screenshots in ~/.local/share/supertuxkart/screenshots
Instead of `~/.cache/supertuxkart/screenshots`.
* whoops :(
2017-09-06 20:22:05 -04:00
auria.mg
5e8f25a1fc
Add a slight delay when triggering the falling camera, avoids triggering it too soon when the kart is not yet sure to fall
2017-09-06 19:23:58 -04:00
Benau
88972f8308
Cache all mipmap levels for compressed texture
...
Not sure if devee has super-fast loading speed like me
2017-09-06 15:14:36 +08:00
Benau
ee3d0df242
Try to fix "Cannot find container_id for texture" for models
2017-09-06 15:13:50 +08:00
hiker
416b93b0a1
Reset steering when calling reset in a kart, which results in more accurate
...
physics replays.
2017-09-04 18:08:14 +10:00
hiker
71978e2bb0
Merge branch 'master' of github.com:supertuxkart/stk-code
2017-09-04 10:43:00 +10:00
auria.mg
15ea4a8f17
Merge branch 'master' of https://github.com/supertuxkart/stk-code
2017-09-03 20:38:16 -04:00
auria.mg
b974b35a07
Code cleanup in kart audio code
2017-09-03 20:37:43 -04:00
hiker
5d51b7fcd1
Added #define to switch between AI-debugging-topview camera (high up)
...
and physics-debugging-topview camera (close to kart).
2017-09-04 08:41:21 +10:00
hiker
bd6c2d9b21
Allow setting bevel to 0, fix incorrect Y position when using bevelled
...
values for wheel positions.
2017-09-04 08:30:31 +10:00
Deve
b820a60e98
Tweak default accelerometer sensitivity.
...
Also move it to the config file.
2017-09-03 23:39:03 +02:00
auria.mg
beb10863c4
Continue optimizing OpenAL sources, see #2921
2017-09-02 22:49:36 -04:00
auria.mg
cb2295c738
Improve kart audio refactor, see #2921
2017-09-02 22:35:41 -04:00
auria.mg
663c7aacaf
Tweak kart audio code to use fewer OpenAL sources (see #2921 ). Seems to work well, though I need to take a closer look to make it thread-safe
2017-09-02 22:00:37 -04:00
Deve
1123ceeceb
Don't try to create textures for empty names.
...
It's not designed to work with empty file names, because the "existFile" function in irrlicht returns true for directories, our file manager doesn't check that it's a directory and generally strange things happen.
This solves a problem with luna track that doesn't have a screenshot and possibly with some broken add-ons, so that valgrind doesn't complain anymore.
Benau, feel free to revert it if you have better solution.
2017-09-03 00:04:29 +02:00
Deve
6710fc2a5c
Don't add absolute path if screenshot name is empty
2017-09-02 23:47:25 +02:00
Benau
f07a7062b3
Add min / max height testing for all graphs
2017-09-01 14:12:10 +08:00
hiker
f7397028ff
Merge branch 'master' of github.com:supertuxkart/stk-code
2017-08-31 23:55:33 +10:00
hiker
4759ff2490
Cancel the setAnimationEndCallback when a non-existing animation is
...
tried to be set. Fixes #2628 .
2017-08-31 23:47:39 +10:00
auria.mg
64c1e8d19c
Fix SFX leaks
2017-08-30 20:39:20 -04:00
Deve
69e26d7561
Remove unclear warning.
...
Weather node without particles is fine and it's used in Blackhill Mansion (just for lightning). The warning was suggesting that something is wrong there.
2017-08-30 21:21:43 +02:00
hiker
0dd3bbbd9b
Changed severity level so that additional information in case of a crash
...
is certain to be seen.
2017-08-30 17:54:45 +10:00
hiker
7a3448a159
Merge branch 'master' of github.com:supertuxkart/stk-code
2017-08-30 17:52:41 +10:00
hiker
c33ee321cc
Merge branch 'master' of github.com:supertuxkart/stk-code
2017-08-30 17:49:59 +10:00
hiker
4440c7e40a
Added error check for alDeleteSource.
2017-08-30 17:46:07 +10:00
deve
2de3a39e04
Make device name translatable
2017-08-30 06:46:55 +02:00
Allan Nordhøy
f08b53c1fc
Spelling: Chose, add-ons, low, command-line ( #2914 )
...
* Spelling: Chose, add-ons, low, command-line, HTTPS
* Back to http for privacy.supertuxkart.net
It auto-negotiates for https from Let's Encrypt when connected to through http, strange.
2017-08-29 19:47:07 -04:00
Deve
184ecce836
Reset multitouch buttons state when game is restarted
2017-08-29 22:00:45 +02:00
Deve
65363a2fa0
Move multitouch race gui creation.
...
It's to avoid duplicated buttons because result gui uses gui_base too.
2017-08-29 22:00:45 +02:00
Benau
ba55fc7d2e
Fix previously always true statement
...
bufferSize (Real*BOSize) was never used and set
2017-08-29 10:31:56 +08:00
hiker
ab6fbd2609
Merge remote-tracking branch 'origin/master' into fix-ball-cannon
2017-08-29 09:19:41 +10:00
hiker
cf98e049b0
Fixed sliding (i.e. not being able to drive up steep uphill sections). Fixes #2906 .
2017-08-29 08:23:06 +10:00
Deve
2fdb33990e
Tweak some touch device params.
...
Better on 5'', worse on 10''... Can be changed in options anyway.
2017-08-28 22:25:32 +02:00
Deve
704d3ea9d9
Try to make touch device a bit more comfortable
2017-08-28 22:25:32 +02:00
Benau
ea58a736d5
Fix displace fallback in non-advanced pipeline
2017-08-28 13:04:41 +08:00
Benau
7b571de395
Fix the wrong "misuse"
...
Now you can play hot.ogg
2017-08-25 16:39:34 +08:00
Deve
6465cc4569
Minor fix in graphics restrictions.
...
Some android restrictions are very basic, eg. UniformBufferObject is disabled on whole platform. So make sure that it's not used on any exotic OS.
2017-08-23 21:18:45 +02:00
Benau
850afc8620
Allow using animated texture with displace shader
...
Plus some clean-up
2017-08-23 00:55:25 +08:00
Deve
6a03f147f6
Add a possibility to use ubo on gles.
...
Disabled by default on android, because it's been tested on only one device and it's a bit slower in most cases.
2017-08-22 00:02:34 +02:00
Benau
ad369b88da
Remove .b3d usage in stk-code
2017-08-21 16:02:06 +08:00
Benau
a8e20101f8
Make SPM loader more portable (for stk-editor later)
...
Also allow calculating normal if required
2017-08-21 14:57:33 +08:00
hiker
f1f8bf0e4d
Oops - fixed unexplainable #includes ... I am sure I didn't put them in :P
2017-08-21 14:59:28 +10:00
hiker
6d61ef7fb9
Use StringUtils instead of strrchr, some code cleanup.
2017-08-21 08:47:28 +10:00
hiker
5a35bb6195
Made crash reporting work with 32- and 64-bit windows executables.
2017-08-21 08:11:03 +10:00
Deve
d698e62053
Minor fix in video settings dialog
2017-08-19 22:09:42 +02:00
Benau
1ca6a6edea
Remove the need of 2nd UVmap for displace objects
2017-08-19 08:51:09 +08:00
Benau
4c0b28a43e
Fix speed weight object looping in non-animated character
2017-08-17 15:48:21 +08:00
Benau
fd7bf80493
Fix kart selection screen animation if only 1 kart
2017-08-17 15:28:04 +08:00
Benau
a00b878919
Use transposed matrix everywhere
2017-08-17 01:26:08 +08:00
hiker
f3d56b37df
Merge branch 'master' into win-64bit
2017-08-16 17:29:57 +10:00
Benau
3031fabcf9
Add spm loader
2017-08-16 13:48:27 +08:00
hiker
01be800253
Fixed stack traces for win32 ( #2642 ).
2017-08-15 23:54:39 +10:00
hiker
5a2b92d79d
Merge branch 'master' into improve-xbox-gamepad-support
2017-08-14 10:05:26 +10:00
Deve
0bf0ca0a35
Fixed memory leak
2017-08-13 01:38:21 +02:00
Deve
1f4a9135b6
Remove useless elif
2017-08-13 01:38:21 +02:00
hiker
1cc9f503a4
DT can actually be 0 :P (e.g. in server with no graphics, and I
...
guess on really fast computers). Bad things happen with dt=0, so
set dt to at least 1 ms.
2017-08-11 17:22:25 +10:00
hiker
6edfc02ec5
Removed debug output.
2017-08-11 17:10:59 +10:00
hiker
a7a3f2b137
Fixed typo in profiler call.
2017-08-11 17:10:28 +10:00
hiker
e7f8cc7239
Added profiling events for playing network events.
2017-08-11 09:50:08 +10:00
hiker
4c0ffdb055
Added profiling events for ProtocolManager.
2017-08-11 09:48:34 +10:00
hiker
aa757637ec
Added more profiling events for rewinding.
2017-08-11 09:46:30 +10:00
hiker
3923da30bc
Use unique names for profiler events.
2017-08-11 09:41:22 +10:00
hiker
587687a614
Merge remote-tracking branch 'origin/fix-2850'
2017-08-09 21:40:44 +10:00
hiker
626f540b15
Merge branch 'Fix-2617'
2017-08-09 21:21:03 +10:00
hiker
86d5e11c13
Merge branch 'improve-xbox-gamepad-support' of github.com:supertuxkart/stk-code into improve-xbox-gamepad-support
2017-08-09 20:32:13 +10:00
hiker
8be5443f8c
Merge branch 'fix-profiler' into improve-xbox-gamepad-support
2017-08-09 17:56:40 +10:00
hiker
379a9db3c9
Merge remote-tracking branch 'origin/fix-profiler' into game_protocol
2017-08-09 17:43:14 +10:00
Benau
861e7f7ebd
Remove contradiction
2017-08-09 15:36:26 +08:00
Benau
cc8331f5cd
Fix #2897
2017-08-09 15:03:37 +08:00
Benau
79c6705bb1
Fix #2814
2017-08-09 13:00:09 +08:00
Benau
ea97258b65
Add scripting code for throwing banana monkeys
2017-08-09 12:23:37 +08:00
auria.mg
94bb657102
Ignore input sensing coming from the wrong gamepad
2017-08-08 20:44:31 -04:00
auria.mg
f589bbea04
Attempt to fix 2617
2017-08-08 20:23:22 -04:00
hiker
28890aad33
Merge branch 'master' into game_protocol
...
Some minor changes to make code easier to read.
2017-08-09 09:50:46 +10:00
hiker
c3cd7ceaa2
Merge branch 'master' into improve-xbox-gamepad-support
2017-08-08 23:08:14 +10:00
hiker
0acda38987
Add profiling events to sfx manager, but they are commented out
...
by default (using preprocessor directives), since they are typically
not useful.
2017-08-08 16:44:55 +10:00
hiker
6a0fb83209
Clear existing events when the circular buffer wraps around.
2017-08-08 16:36:54 +10:00
hiker
d29d2b831f
Only use start and end time for thread 0, since all other threads
...
might not have valid start and end times (since they can record
several identical events during one frame). Bars for all other
threads can therefore not be nested.
2017-08-08 16:09:49 +10:00
hiker
887814ea98
Fixed incorrect start and end time setting when synchronising
...
frames. Only use thread 0's start and end time to compute the
duration (since other threads might have multiple identical
events during one frame, resulting in incorrect start times).
2017-08-08 16:08:15 +10:00
hiker
6783ab26f8
Keep a list of all event names in the order in which they first
...
appear. This list allows the proper ordering of events when drawing
the bar chart to show nesting. Make sure that enabling the profiler
starts at the next synch point (to avoid incomplete event pairs).
Create a seprate output file for each thread.
2017-08-07 17:53:15 +10:00
hiker
4c55ca4da9
Merge commit 'e6a134c3479ccdbaf91bb36d46ffb64b6a3b52b9' into improve-xbox-gamepad-support
2017-08-06 22:58:49 +10:00
hiker
891e439264
Remapped XInput to be the same as DirectInput buttons, so that
...
existing configs works as expected. Hard-coded 6 axis for xbox
controller to allow for triggers to be reported as two different
axis (instead of as one axis). Updated gamepad config to use
proper names for triggers.
2017-08-06 22:56:59 +10:00
Geoffrey Mon
a73af6eb0d
Save and use usernames in replay files ( #2754 ) ( #2893 )
...
* Save and use usernames in replay files
Fixes #2754 .
* Store usernames of each racer in recorded replay files
* Display those usernames in a column of the replay selection UI
and in race result dialogs
* RaceResultGUI::getKartDisplayName functionality moved into
Controller::getName
* Move Controller::getName definition to avoid unnecessary #include
* Backwards compatibility: use kart name if username is not in replay
* Fix code style issues
2017-08-03 19:51:42 -04:00
hiker
04c775eead
Don't measure lock time, some whitespace cleanup.
2017-08-03 21:21:40 +10:00
Geoffrey Mon
802d70ca8d
Fix code style issues
2017-08-02 17:21:37 -04:00
Geoffrey Mon
9ec2ff5c4a
Backwards compatibility: use kart name if username is not in replay
2017-08-02 14:13:26 -04:00
Geoffrey Mon
ca5258a46c
Move Controller::getName definition to avoid unnecessary #include
2017-08-02 13:48:44 -04:00
Benau
ac406e1e00
Fix #2891
2017-08-03 01:34:35 +08:00
Geoffrey Mon
f3a962c391
Save and use usernames in replay files
...
Fixes #2754 .
* Store usernames of each racer in recorded replay files
* Display those usernames in a column of the replay selection UI
and in race result dialogs
* RaceResultGUI::getKartDisplayName functionality moved into
Controller::getName
2017-08-02 12:55:23 -04:00
hiker
203995262c
Exclude the time to get the lock from profile measurements.
2017-08-02 22:40:19 +10:00
hiker
d8fe700f64
Don't store data when the profiler is disabled.
2017-08-02 08:48:01 +10:00
hiker
d800a8c0bc
Made everything threadsafe.
2017-08-02 08:34:43 +10:00
hiker
ea12c8f494
Very first version of profiler that supports multiple threads
...
and handles events in branches better.
2017-07-31 22:56:47 +10:00
hiker
47d2e30c5f
Fixed compiler warnings.
2017-07-31 22:56:00 +10:00
hiker
e6a134c347
Fix 2850 by increasing the number of axis for a gamepad to include
...
D-pad.
2017-07-30 23:05:27 +10:00
hiker
65c8cb7ae1
Replaced arrays with std::vector (to get better error checking).
2017-07-30 23:03:40 +10:00
Deve
7d4fbb8d0c
Minor modification in play tutorial text. Fixes #2535
2017-07-29 00:43:17 +02:00
hiker
fdd551a730
Fixed debug compilation.
2017-07-24 23:56:34 +10:00
hiker
ea3f9f8945
Merge branch 'master' into game_protocol
2017-07-24 21:12:36 +10:00
hiker
46bc3493b4
Coding style changes to profiler. Replaced ";" as separator with " "
...
(which is gnuplot friendly), and also added column number to header
to make it easier to know which column is what field.
2017-07-24 16:54:45 +10:00
hiker
48de916f68
Added non-interpolated physics position to debug output.
2017-07-24 16:53:51 +10:00
Benau
979e1546fb
Fix #2881 , only create a camera when initializing
2017-07-21 09:27:57 +08:00
Deve
0dba3c8f67
Add a prefix to irrlicht key codes
2017-07-20 22:58:11 +02:00
Benau
10909b9556
Remove m_scale_rtts_factor == 1.0f in image quality for now
...
Because not working in advanced pipeline
2017-07-20 10:19:30 +08:00
Deve
11b2409fab
Activate accelerometer only if needed
2017-07-18 21:43:45 +02:00
Deve
d44802a482
Add a workaround for some qualcomm devices on android 4.4
2017-07-11 00:37:31 +02:00
Deve
70c481cb26
Add a possibility to set android version in graphics restrictions.
2017-07-10 22:54:38 +02:00
Benau
8653d410f8
Option 1 for fixing android 4.4
...
Reinit vertex attribute pointer each time, performance may hurt
2017-07-09 00:46:42 +08:00
QwertyChouskie
7b185ce2f1
Add new GPwin cutscene ( #2875 )
...
* Add new cutscene
* Cleanup
* Make all podiums arrive at the same time
2017-07-06 20:54:42 -04:00
Deve
6fc285b794
Show only native resolution in settings on android.
...
Changing resolution is atm. not available, so adding 1024x768 doesn't have a sense.
2017-07-06 23:18:43 +02:00
Deve
9fc1acc4c0
Allow to draw steering wheel on the right side
2017-07-05 21:21:33 +02:00
Deve
2cda14686d
Simplify touch device settings
2017-07-05 20:43:57 +02:00
Deve
09262a606b
Add missing copyright.
...
The EGL context manager has been written from scratch, so our copyright should be fine.
2017-07-04 22:55:08 +02:00
Deve
f13f69851f
Fixed black screen on some GLES 2.0 devices.
...
It affects only GLES 2.0. The GLES >= 3.0 and OpenGL allow sized internal formats.
2017-06-29 23:00:08 +02:00
Deve
8462c552d1
Add a warning for very low screen resolutions.
...
There are some android devices that are 320x240, 400x240 etc... Bare minimum to run STK is 640x480. Otherwise some important gui elements are not displayed and it may crash in guiengine.
2017-06-28 21:32:12 +02:00
hiker
721cebc325
Added timestamp to debug output.
2017-06-27 19:02:03 +10:00
Deve
68cfdfbf17
Minor fix for android progress bar that probably doesn't make any difference anyway
2017-06-24 21:41:36 +02:00
hiker
59ae3e8e63
Added documentation.
2017-06-22 17:39:56 +10:00
hiker
95016d03f4
Removed unnecessary loop.
2017-06-22 17:32:27 +10:00
hiker
60bbd4951a
Added more debug output.
2017-06-22 09:54:55 +10:00
Matthew Trescott
1d8a709e38
Fix the --cutscene=<cutscene> commandline flag ( #2861 )
...
If the menu is shown, there's this ugly purple background (the OpenGL default, I think) and the cutscene won't play.
2017-06-17 18:49:00 -04:00
Matthew Trescott
3dee6ce5dd
Add option to unlock everything (and disable that option) from the command line
...
This was a complaint of Michael Larabel from Phoronix and is why he doesn't use STK in benchmarks; because the new tracks are mostly locked from the start and unavailable even with the --track flag
2017-06-17 11:45:57 -04:00
QwertyChouskie
10e439b6a1
Clean up output ( #2856 )
2017-06-13 20:50:13 -04:00
hiker
dd9e361289
Stop startup time being accelerated in network games (which results
...
in client and server to become out of synch).
2017-06-14 08:28:06 +10:00
hiker
283f3b94d3
Fixed tiem correctoin (which was in the wrong direction).
2017-06-14 08:27:34 +10:00
QwertyChouskie
be00283b2e
Fix a few compiler warnings ( #2854 )
...
* Fix compiler warnings in gpwrap.cpp
* Fix compiler warning in skybox.cpp
2017-06-11 15:59:12 -04:00
hiker
72e7c5a4cb
Updated unit testing for latest code changes, removed old/commented
...
out code.
2017-06-08 09:29:42 +10:00
hiker
08cd8bf235
Added debug output.
2017-06-08 09:17:34 +10:00
hiker
f772c090ec
If a state from the server is received in the future (which can happen
...
if the server is forced to a rewind), make sure to still replay
the state.
2017-06-07 22:09:22 +10:00
hiker
0cc3a2d63f
Removed unnecessary call.
2017-06-07 18:57:24 +10:00
hiker
48bbdc0e07
Determine end of rewind period by reaching the latest TimeStepInfo
...
(i.e. the one that was just added for the upcoming timestep that
first needed to do the rewind) instead of comparing world time
and end time - the latter is prone to floating point differences,
causing rewinds to 'rewind' the timestep that has yet being computed.
2017-06-07 09:33:40 +10:00
hiker
a13856c6d1
Adjust DT on client (due to server requests) at time DT is computed
...
(to keep consistent DT across all further calls, esp. avoid
issues with rewinding getting different DT).
2017-06-05 09:46:34 +10:00
hiker
f32a1961e2
Minor bugfix.
2017-06-05 09:06:12 +10:00
hiker
3747427c5f
ixed handling of adding states to time step info to minimise
...
rewindw by assigning new events to existing time step info events.
2017-06-05 08:54:52 +10:00
hiker
34af963cc1
Fixed incorrect server-start-delay (caused by the start delay
...
being delivered in a different thread, so adding DT in the main
thread was not the right time step).
2017-05-29 15:08:32 +10:00
Deve
c8137fc0fa
Add a possibility to set a window class in irr device.
...
This makes one ugly #ifdef less in the irr_driver.cpp.
2017-05-25 21:26:31 +02:00
Deve
ce0a7bde84
Correct the rule for Polish plural forms.
...
It's already fixed in transifex.
2017-05-25 16:17:38 +02:00
hiker
742be06c21
Removed code duplication by using macros.
2017-05-22 12:38:21 +10:00
Deve
8968706c09
Merge branch 'wayland'
2017-05-18 21:25:53 +02:00
hiker
fb5a600787
Remove 'duplicated' input events (e.g. auto-repeat might send
...
'accelerate' events over and over). This reduces traffic to
the server and other clients (and fixed a bug caused by rewinding
those events in the wrong order).
2017-05-17 09:19:19 +10:00
hiker
54fdd2d586
Add prefix for log messages during a rewind.
2017-05-16 22:01:32 +10:00
hiker
6162be9432
Add support for a 'prefix' to be printed for all log messages.
2017-05-16 22:00:35 +10:00
Deve
1966d3f072
Use x11 functions in irr_driver only if x11 device was created
2017-05-14 00:05:36 +02:00
hiker
91bad37939
Fixed incorrect position for a rubber ball in a cannon.
2017-05-13 21:38:59 +10:00
hiker
bdbc7fd728
Reduce the height of a rubber ball in a cannon over time, so that
...
it starts closer to the ground when released after the cannon.
2017-05-12 17:52:15 +10:00
hiker
490bef516e
Fix crash: the ProjectileManager must be cleared before the CheckManager
...
(since a rubber ball will emove itself from all cannon checklines, so
a crash happens if the checklines are gone).
2017-05-12 17:39:53 +10:00
hiker
1b75ed9b4c
First fix for the basket-ball in cannon - make the ball follow
...
the cannon.
2017-05-12 17:11:46 +10:00
Deve
23c428160f
Some fixes
2017-05-12 00:57:01 +02:00
hiker
03f4b76a32
Fixed various compiler warnings.
2017-05-09 09:34:37 +10:00
hiker
3a176f818c
Merge remote-tracking branch 'origin/master'
2017-05-09 09:26:30 +10:00
auria.mg
dbd0cfa7d0
Expose the time of day to scripting, see #2315
2017-05-06 18:48:18 -04:00
auria.mg
242c8be90c
Pause the bomb during animations, fixes #2846
2017-05-06 18:46:25 -04:00
Deve
e02a8f4448
Allow to make single build with both x11 and wayland device
2017-05-06 21:53:32 +02:00
QwertyChouskie
58a170b4b7
Update string ( #2824 )
...
* Change message
* Update string in another file.
* Update addons_manager.cpp
* Update news_manager.cpp
2017-05-04 19:17:08 -04:00
auria.mg
553207fc11
Fix assertion failure if a bomb explodes while in a cannon, see #2846 (the bug is not quite fixed)
2017-05-04 19:12:17 -04:00
Deve
fc79ee50d0
Add the ping/pong events to avoid non-responding window and few other minor fixes
2017-04-28 23:04:34 +02:00
Deve
035c33f960
Merge branch 'master' into wayland
2017-04-22 21:11:10 +02:00
hiker
db71824804
Minor documentation update.
2017-04-19 23:33:31 +10:00
hiker
752b0645fb
Merge branch 'master' of github.com:supertuxkart/stk-code
2017-04-18 23:17:04 +10:00
hiker
c23873da37
Properly fix driving no physical objects to enable smoothing (e.g.
...
volcano in both directions).
2017-04-18 23:07:24 +10:00
Benau
31f9acf7ed
Update config.xml with libopenglrecorder
...
Consider use mjpeg / h264 (DIY compile) for HQ video
2017-04-18 14:08:30 +08:00
auria.mg
3fcf62a84a
Add support for multiple crah sounds, update sfx credits
2017-04-17 20:42:20 -04:00
Benau
fd07df4251
Merge remote-tracking branch 'origin/libopenglrecorder'
2017-04-17 09:49:36 +08:00
Benau
6911db0ac2
Remove duplicated code
2017-04-17 09:28:41 +08:00
auria.mg
2da86cab08
Cleanup hack that seems unecessary
2017-04-16 21:17:13 -04:00
Benau
487d007b17
Try to use progress bar to indicate the encoding progress
...
Need an updated libopenglrecorder
2017-04-15 16:30:43 +08:00
Benau
f3e0d2f9e9
Revert move capture right before glfencesync if possible
2017-04-13 15:13:47 +08:00
Benau
4de0ca83aa
Move capture right before glfencesync if possible
2017-04-13 13:59:36 +08:00
hiker
158a771363
Merge branch 'master' of github.com:supertuxkart/stk-code
2017-04-13 00:22:10 +10:00
hiker
4dce66ba6d
Worked around incorrect normal calculation if the kart was driving
...
on a physical object.
2017-04-13 00:21:35 +10:00
Benau
fe0fe828a0
Fix travis build
2017-04-12 13:41:14 +08:00
Benau
b1f9ce2dbd
Remove libwebm and recorder code
2017-04-12 11:51:59 +08:00
auria.mg
ad092f0213
Add missing language
2017-04-11 18:42:32 -04:00
hiker
efec344738
Fixed more 64-bit related compiler warnings.
2017-04-11 22:30:57 +10:00
deve
6599ceddec
Fixed server only build
2017-04-10 06:15:01 +02:00
Benau
f30962b944
Use lambda to workaround __stdcall issue
2017-04-10 10:00:34 +08:00
Benau
bcf996e291
Fix callback
2017-04-10 08:53:55 +08:00
Benau
ab10f335e9
Remove glew include in libopenrecorder
2017-04-10 01:26:52 +08:00
Benau
c69ea65ac2
Use RGBA for capture
2017-04-09 16:19:09 +08:00
Deve
c06ea3447d
Revert "Move loadSfx to the SFXManager thread"
...
This reverts commit ce426d82cc
.
2017-04-09 09:29:25 +02:00
Benau
a5759afac7
Improvements from Stragus and leyyin
2017-04-09 15:28:28 +08:00
Benau
156b799011
Remove STK headers in recorder and use c++11 thread library
2017-04-09 14:16:45 +08:00
hiker
c6109c9392
Try to fix linux compilation.
2017-04-08 23:36:41 +10:00
hiker
f2138e062d
Tried to fix all 64-bit related compiler warnings triggered from files
...
in graphics.
2017-04-08 23:25:33 +10:00
Deve
9efe8ae4fa
One more fix for mingw
2017-04-07 21:34:28 +02:00