7940 Commits
0.9.1 ... 1.4

Author SHA1 Message Date
Benau
bea5b530a5 Create 1.4 release 2022-10-31 15:27:59 +08:00
Benau
9b866b901c Update replay files version 2022-10-31 15:26:56 +08:00
Benau
1d5613072c Update translation and AppData 2022-10-31 15:24:08 +08:00
Benau
5e841110f3 Update changelog 2022-10-31 15:15:41 +08:00
Benau
5e86dafe73 Update credits 2022-10-31 14:07:44 +08:00
Benau
412f30d2c1 Fix incorrect color emoji position after resizing window 2022-10-31 13:18:54 +08:00
Benau
4ad30fa2bf Update to latest noto color emoji 2022-10-31 12:26:37 +08:00
Benau
b69fd92524 Disable bitcode building for Xcode 14
From Apple:

Starting with Xcode 14, bitcode is no longer required for watchOS and
tvOS applications, and the App Store no longer accepts bitcode
submissions from Xcode 14.

Xcode no longer builds bitcode by default and generates a warning message
if a project explicitly enables bitcode: “Building with bitcode is
deprecated. Please update your project and/or target settings to disable
bitcode.” The capability to build with bitcode will be removed in a future
Xcode release. IPAs that contain bitcode will have the bitcode stripped
before being submitted to the App Store. Debug symbols for past bitcode
submissions remain available for download. (86118779)
2022-10-31 11:59:27 +08:00
Denis Kim
0546c1c91a Avoid triggering other goal lines when the goal is already scored (#4802) 2022-10-31 11:38:05 +08:00
Jörn Eichler
538e03c514 fix parachute powerup (#4738)
only deshield karts ahead of the kart firing the parachute
2022-10-31 11:37:54 +08:00
Benau
54973d0174 Fix missing news text in main menu if loading is too fast 2022-10-31 10:39:54 +08:00
Benau
61bd2a6e70 Fix legacy device in switch homebrew
Allow setting it from config.xml
2022-10-31 09:31:44 +08:00
Benau
cab25432c2 Update download assets size 2022-10-30 16:50:27 +08:00
Benau
440def908b Fix missing stk.nro 2022-10-30 15:29:11 +08:00
Licaon_Kter
3f08e4cbf4 make.sh - specify interpreter directly (#4807)
Run directly it fails with: `./make.sh: 203: Syntax error: "(" unexpected`

A scan on https://www.shellcheck.net/ shows too many issues, this needs to be redesigned a lot to be clean of bashisms
2022-10-30 13:10:06 +08:00
Benau
2707234ada Add armv7 and aarch64 detection in run_game.bat, see #4805 2022-10-28 13:39:06 +08:00
Benau
d2a1144cf4 Fix possible division by zero 2022-10-27 09:16:43 +08:00
Benau
b2d1f94adc Fix hovering ghost kart since 2696ef2 2022-10-26 12:55:03 +08:00
Benau
5beafdce8e Fix #4808 2022-10-25 09:48:22 +08:00
Benau
683f5ece7f Fix thunderbird traffic light in legacy video drivers 2022-10-24 13:39:01 +08:00
Benau
7109729010 Add slipstream meshes to irrlicht mesh cache
This enables instancing of them in vulkan engine
2022-10-23 10:02:54 +08:00
Benau
8358b7be0a Allow SMesh to be used in irrlicht mesh cache 2022-10-22 15:40:27 +08:00
Benau
9cd217acfe Add convertIrrlichtMeshToSPM 2022-10-21 08:40:23 +08:00
Benau
243f7f7008 Add slipstream rendering for all video drivers 2022-10-20 12:42:36 +08:00
Benau
0e142e645c Handle vertex color in render info for COGLES2FixedPipelineRenderer 2022-10-19 09:29:06 +08:00
Benau
58a00f7627 Store and render custom vertex color in GERenderInfo 2022-10-18 15:07:11 +08:00
Benau
1b604666c3 Fix sky particles rendering in modern gl3 too, see #2779 2022-10-17 09:33:51 +08:00
Benau
5ecdc11ffd Fix sky particles rendering in vulkan
Align them with the vertical axis
2022-10-16 12:08:02 +08:00
Benau
cfb10dbb1f Make sure sky particles always fall vertically 2022-10-15 14:31:07 +08:00
Benau
1fc460ff4e Add flips particle rendering for vulkan 2022-10-14 10:17:58 +08:00
Benau
46f44b5d59 Add getBulletQuaternion for MiniGLM 2022-10-13 12:12:07 +08:00
Benau
6cdc554d21 Avoid updating data descriptor sets every frame 2022-10-12 15:30:31 +08:00
Benau
26f96b0986 Allow GEVulkanDynamicBuffer to use a specific frame 2022-10-11 12:05:47 +08:00
Benau
f85f631c4b Return true if buffer resized 2022-10-10 10:26:05 +08:00
Benau
e9be8d91ef Avoid using VMA_MEMORY_USAGE_AUTO if possible 2022-10-09 09:37:18 +08:00
Benau
542ece64f9 Use triple buffer to avoid memcpy after fence 2022-10-08 13:04:22 +08:00
Benau
982a5b2be8 Reduce usage of local buffer in GEVulkanDrawCall 2022-10-07 11:48:39 +08:00
Benau
91dea5f50d Use VMA_MEMORY_USAGE_AUTO_PREFER_HOST for host buffer
This improves performance when particles are used
2022-10-06 16:12:44 +08:00
Benau
51a1396313 Allow creating different buffer sizes in GEVulkanDynamicBuffer 2022-10-05 11:08:52 +08:00
Benau
e5318d8ea9 Fix crash when minimizing in windows 2022-10-04 13:55:51 +08:00
Benau
d69f83c7cc Fix WRITE_AFTER_WRITE error:
vkCmdBeginRenderPass: Hazard WRITE_AFTER_WRITE vs. layout transition in
subpass 0 for attachment 1 aspect depth during load with loadOp
VK_ATTACHMENT_LOAD_OP_CLEAR.
2022-10-03 10:05:33 +08:00
Benau
b2404aadd2 Reduce instance data size
MoltenVK has no DrawIndex support yet
2022-10-02 16:41:09 +08:00
Benau
e1f8294008 Use dedicated buffer for sbo 2022-10-01 12:20:35 +08:00
Benau
421293b8e9 Add shader draw parameters detection 2022-09-30 14:42:06 +08:00
Benau
86c349e5f2 Properly check and enable vulkan extensions 2022-09-29 16:01:27 +08:00
Benau
51496cf5ef Fix moltenvk without binding all mesh textures 2022-09-28 08:56:15 +08:00
Benau
5424d4fe77 Fix typo in ge shaders 2022-09-27 15:21:08 +08:00
Benau
11a168b4bf Avoid error when particle size is zero 2022-09-26 10:36:01 +08:00
Benau
82218afc40 Reset video driver in GE when vulkan creation fails 2022-09-25 09:55:32 +08:00
Benau
3b5a1d6c74 Notarize macOS release build 2022-09-23 21:44:09 +08:00
Benau
dd9808fd05 Fix uninitialized m_current_ai 2022-09-22 16:32:54 +08:00
Benau
e4515e7454 Add AI number detection in server screen 2022-09-22 10:46:19 +08:00
Benau
cfd7fa662b Show a dialog and revert if device is not vulkan capable 2022-09-21 10:33:54 +08:00
Dmitry Marakasov
dd511638db Initialize vulkan handles properly 2022-09-20 23:47:45 +03:00
Benau
40f218e6c8 Update translation source 2022-09-20 11:30:44 +08:00
Benau
fdc4a19e1a Copy debug symbols for android build 2022-09-19 11:28:44 +08:00
Benau
4f0b9644a8 Update download assets size 2022-09-19 11:23:44 +08:00
Benau
0b405a8642 Update translation and AppData file 2022-09-19 10:35:12 +08:00
Benau
bf0db0497b Don't throw when missing texture during ondemand loading
It can happen when the texture is deleted later
2022-09-19 10:24:55 +08:00
Benau
25540fc6a7 Add CMAKE_BUILD_TYPE=Release when building shaderc 2022-09-19 09:51:00 +08:00
Benau
7a1706834f Default to opengl render for arm64 windows
The opengl compatibility pack is pre-installed on
arm64 windows according to a user
2022-09-19 00:12:51 +08:00
Benau
dd6768911d Build for armv7 windows
No installer as armv7 windows has no x86 emulation
2022-09-18 23:54:44 +08:00
Benau
f270b4acf8 Add particle rendering in vulkan 2022-09-18 11:31:06 +08:00
Benau
4d79ccdea5 Add different texture per draw call for billboard 2022-09-18 10:54:22 +08:00
Benau
50c22a5837 Use real transparent shader first in vulkan draw call 2022-09-18 08:18:47 +08:00
Benau
7199409de4 Fix vulkan projection matrix 2022-09-17 16:26:10 +08:00
Benau
53351257fc Use vertex color alpha to draw translucently 2022-09-16 11:15:36 +08:00
Benau
a36276811e Fix missing vertex color in gles2 driver
Also make sure all vertex colors are applied after colorization is done
2022-09-16 10:58:17 +08:00
Benau
b77160527c Fix texture matrix for gles2 driver 2022-09-15 09:01:55 +08:00
Benau
16173207ee Add colorization support for gles2 driver 2022-09-15 08:30:24 +08:00
Benau
9947c87fe1 Fix #4795 2022-09-15 01:11:14 +08:00
Benau
787d157933 Add billboard rendering in vulkan 2022-09-14 16:19:38 +08:00
Benau
b1fa45437f Add dedicated skybox textures folder 2022-09-13 14:23:04 +08:00
Benau
9804416a82 Fix transparent shader drawing order
Use the same order like current engine
2022-09-12 13:38:01 +08:00
Benau
bf8a411f01 Always use GESPMBuffer for GEVulkanDrawCall::m_materials key 2022-09-12 13:14:05 +08:00
Benau
23470bbde2 Add custom vertex color to instance data 2022-09-12 11:07:22 +08:00
Benau
48730d1db4 Add billboard text rendering in vulkan 2022-09-12 10:56:39 +08:00
Benau
7cc238e101 Remove friend class in GE::GESPMBuffer 2022-09-11 15:04:38 +08:00
Benau
76c39afd8b Add colorization for vulkan 2022-09-11 11:05:33 +08:00
Benau
d3ddcd884d Fix broken splitscreen network when no track selection screen 2022-09-11 09:16:19 +08:00
Benau
8eb8c6392e Don't spam logging about missing rewinder 2022-09-11 00:47:34 +08:00
Benau
f1fdc98779 Always send (empty if applicable) kart data to ensure forward compatibility 2022-09-11 00:41:21 +08:00
Benau
ebd380c0bc Allow using real addon karts in networking 2022-09-10 15:49:21 +08:00
Benau
39e3c189da Make it possible to enable kart exhaust in legacy device 2022-09-09 10:25:33 +08:00
Benau
e52a9dce59 Fix particle xml after code change 2022-09-09 10:08:54 +08:00
Benau
dcad21b830 Use uniform rendering code for particle rendering
1. Remove pow in shader and do srgb conversion in code

2. Fix setGreen and setBlue order

3. Multiply particle color first like vertex color in the other shaders

4. Fix incorrect smoothstep
2022-09-09 09:41:32 +08:00
Benau
155b73d452 Remove unneeded pow in transparent.frag
It's only used in 2d rendering so no srgb sampling is needed
2022-09-08 15:24:40 +08:00
Benau
efcdd79d42 Fix missing snowflake in icy soccer field
It used to work in 1.2 because the top of the invisible wall was
not covered, which will affect height map calculation. Now we
ignore physics only objects when doing the height map calculation.
2022-09-07 13:53:08 +08:00
Benau
4207714352 Use GE::GERenderInfo to draw ghost kart and ctf flag in vulkan 2022-09-06 15:46:05 +08:00
Benau
885e08c559 Fix ghost kart missing for non-colorizable kart 2022-09-06 09:54:07 +08:00
Benau
2d0c945dd8 Move RenderInfo class to GE 2022-09-05 16:22:04 +08:00
Benau
647988ad30 Load colorization data for vulkan 2022-09-05 13:39:02 +08:00
Benau
5252c78a05 Fix crash when getActiveCamera is used after rendering scene 2022-09-05 09:54:42 +08:00
Benau
4335d95215 Preload icon materials to avoid hang when firstly insert item 2022-09-04 11:37:09 +08:00
Benau
9a7e2f6c39 Simplify m_icon_node handling in item class
Item::handleNewMesh already creates new m_icon_node everytime
2022-09-04 11:12:07 +08:00
Benau
79bf026c74 Don't check for descriptor indexing properties on non-apple devices
Some drivers (like ivybridge on linux) report incorrect values and
make graphics pipeline creation crash later
2022-09-04 09:05:00 +08:00
Benau
90453e6128 Update AppData file game screenshots url 2022-09-04 08:35:32 +08:00
Benau
d93b5d3b8d Fix hang when switching kart in selection screen for vulkan 2022-09-03 12:04:44 +08:00
Benau
784b77723c Add missing vkCmdBindDescriptorSets for supportsBindMeshTexturesAtOnce 2022-09-03 10:30:54 +08:00
Benau
b0b9f44aeb Always use stable_sort to avoid flickering with alpha blending 2022-09-03 09:27:06 +08:00
Benau
d55eb56d78 Fix logic error in GEVulkanTexture::getTextureData 2022-09-02 19:37:37 +08:00
Benau
1eb19e5e13 Allow changing texture compression setting without restarting stk 2022-09-02 10:04:10 +08:00
Benau
caf9fb448b Take BPTC into account for texture compression support 2022-09-02 09:12:05 +08:00
Benau
0b4bf178d7 Add texture matrix support in vulkan 2022-09-02 09:07:43 +08:00
Benau
7a5f14cb37 Don't call KartPropertiesManager::onDemandLoadKartTextures on child process 2022-09-01 16:04:47 +08:00
Benau
ad8ba4d417 Mirror UV if needed in vulkan 2022-09-01 10:54:33 +08:00
Benau
089dd025f1 Implement GEVulkanTexture::getTextureSize correctly 2022-08-31 13:09:41 +08:00
Benau
3db036d67f Fix data race when deleting GEVulkanTexture 2022-08-31 12:36:55 +08:00
Benau
4ceec85edc Fix infinite GEVulkanTexture::waitImageView if createImageView failed 2022-08-31 11:20:04 +08:00
Benau
38b995bf61 Avoid hangs if reloading textures too much 2022-08-31 11:08:48 +08:00
Benau
c929002eba Fix crash when recreating irrlicht device 2022-08-30 09:44:31 +08:00
Benau
1703e829eb Keep fullscreen checkbox focus when toggling it 2022-08-30 09:27:54 +08:00
Deve
7a9300b56a Update linux builder 2022-08-29 20:12:48 +02:00
Benau
4f3dbb43a2 Fix bad gui after toggling fullscreen ingame 2022-08-29 14:55:02 +08:00
Benau
1f53895a25 Attempt to restore vulkan device after out focus in gnome fullscreen 2022-08-29 12:30:18 +08:00
Benau
97bc2696db Fix broken IrrDriver::cancelResChange 2022-08-29 11:06:12 +08:00
Benau
3d9828b6e3 Don't check for larger window size if fullscreen is used 2022-08-29 10:48:39 +08:00
Benau
d322720147 Add option to use original fullscreen code for vulkan 2022-08-29 10:30:31 +08:00
Benau
bba636263e Use fullscreen desktop for vulkan 2022-08-28 10:55:06 +08:00
Benau
e6f8dcfdb0 Make render scale configurable in ui for vulkan 2022-08-28 09:27:08 +08:00
Benau
8f061c6367 Remove depth attachement if rtt is used 2022-08-27 13:04:22 +08:00
Benau
d31281cb6f Add render scale support in vulkan 2022-08-27 12:49:17 +08:00
Benau
97e5064535 Use location, rotation and scale instead of model matrix in vulkan 2022-08-26 09:36:30 +08:00
Benau
514e3a50ad Fix uninitialized m_compressed_data 2022-08-25 15:20:04 +08:00
Benau
57c5446e55 Add GECompressorBPTCBC7 2022-08-25 15:13:23 +08:00
Benau
3e2de9419e Update download assets size 2022-08-24 12:00:07 +08:00
Benau
adedc7e80f Update translation, AppData and Desktop file 2022-08-24 11:56:49 +08:00
Benau
fefb3c1949 Mark skybox textures to be loaded on demand 2022-08-23 08:54:27 +08:00
Benau
5699ede148 Draw skybox before transparent objects 2022-08-22 10:53:07 +08:00
Benau
4f9d40f3b2 Add GEVulkanSkyBoxRenderer 2022-08-21 14:09:56 +08:00
Benau
5aa70333ce Add GEVulkanArrayTexture 2022-08-20 15:44:38 +08:00
Benau
694c1b6c29 Fix xcode build 2022-08-19 23:28:54 +08:00
Benau
5c26ac73df Fix bottom skybox uv and revert custom irrlicht change 2022-08-19 11:26:07 +08:00
Benau
058aa45894 Increase sampler size for max 20 karts in game 2022-08-18 14:56:44 +08:00
Benau
2d1c7385c6 Fix unlocked screen track screeshot display for vulkan 2022-08-17 15:49:10 +08:00
Benau
c2ab58148f Fix missing continue button in next cutscene part 2022-08-16 14:11:37 +08:00
Benau
7aff7f9ba9 Fix broken continue button in cutscene if long loading time 2022-08-15 09:44:12 +08:00
Benau
8fead715da Add onDemandLoadTrackScreenshots for all tracks 2022-08-14 15:21:37 +08:00
Benau
f777e01a21 Make kart textures loading ondemand if needed 2022-08-13 11:44:06 +08:00
Benau
e0636495f0 Add ondemand texture loading for vulkan 2022-08-12 13:07:53 +08:00
Benau
eace871c66 Add getImageSize for all image loaders 2022-08-11 14:46:00 +08:00
Benau
c698d4a601 Wait for GEVulkanCommandLoader to finish task before deleting textures 2022-08-10 11:07:54 +08:00
Benau
ed4dcc24c6 Fix CImageLoaderJPG::isALoadableFileFormat according to upstream 2022-08-09 10:20:04 +08:00
Benau
1b42688cbf Enable vulkan texture compression in ui 2022-08-09 10:03:56 +08:00
Benau
bed0acda7a Build shaderc in android without debug symbols 2022-08-09 09:26:05 +08:00
Benau
c6dafd4b80 Make isTextureCompressionEnabled return false for MOBILE_STK 2022-08-08 11:40:26 +08:00
Benau
1b671c932a Build libsquish and astc-encoder for android 2022-08-08 11:32:01 +08:00
Benau
d7390a1824 Add GECompressorASTC4x4 2022-08-07 15:33:54 +08:00
Benau
93dc6ed770 Fix GEVulkanTexture::getTextureData for compressed internal format 2022-08-06 11:01:54 +08:00
Benau
b4b0ddc620 Add GECompressorS3TCBC3 2022-08-06 09:48:11 +08:00
QwertyChouskie
4f32435ef2 Tweaks to crash report dialog (#4789)
* Use error icon in crash report dialog

Found this change when going through old folders, looks like it never made it in.

* Update crash error message

Improve grammar; avoid reports for one-off errors; link to proper subforum (id 17 is STK General)
2022-08-05 18:08:20 +08:00
Benau
118fc7fa96 Add GEMipmapGenerator 2022-08-05 12:15:08 +08:00
Benau
211c901335 Add checking for compute in main queue 2022-08-04 10:56:29 +08:00
Benau
c96881208a Use vkResetCommandPool for every frame commands 2022-08-03 13:44:59 +08:00
Benau
00e7b04f13 Add code to render vbo and ibo individually for some devices 2022-08-02 10:21:07 +08:00
Benau
0ad22efcf7 Re-order the buffer to use less memory 2022-08-02 00:56:11 +08:00
Benau
403f748b4a Add dynamic descriptor code for some devices 2022-08-02 00:25:36 +08:00
Benau
72b177c354 Fix incorrect vertex attribute 2022-08-01 09:13:20 +08:00
Benau
331ae9a30f Fix crash when GEVulkanTexture::getTextureData failed 2022-08-01 00:59:43 +08:00
Benau
83595d55a7 Add missing dstAccessMask for indirect command 2022-07-31 10:43:11 +08:00
Benau
2696ef2567 Add shader to render ghost kart 2022-07-30 09:03:56 +08:00
Benau
1a953b8a6c Add grass shader 2022-07-29 10:51:14 +08:00
Benau
c2c8468fa8 Sort drawing based on nodes surface area 2022-07-28 15:48:06 +08:00
Benau
e9d3152c1a Add more shaders 2022-07-28 13:37:09 +08:00
Benau
3f99e63a3c Don't use sampler array for non-single texture descriptor
Devices like Apple A8 don't support it
2022-07-27 13:54:22 +08:00
Benau
6d74e84609 Reduce vram usage by removing bones data in static spm 2022-07-27 11:45:09 +08:00
Benau
d37a3b8c7e Sort materials if needed 2022-07-26 13:21:07 +08:00
Benau
d4b2b03174 Add animated mesh rendering 2022-07-26 12:47:31 +08:00
Benau
8e1de345fb Add animation support in GEVulkanAnimatedMeshSceneNode 2022-07-26 00:12:35 +08:00
Benau
b75dec1fbc Move struct Armature to GE 2022-07-25 10:54:27 +08:00
Benau
61b87d3b31 Convert irrlicht mesh for addSphere 2022-07-25 10:05:46 +08:00
Benau
819b3ad27f Add minimap rendering 2022-07-25 09:41:35 +08:00
Benau
a2228adef1 Fix padding size calculation 2022-07-24 14:32:37 +08:00
Benau
593f78a230 Move MiniGLM to graphics engine folder 2022-07-24 12:22:06 +08:00
Benau
da0cce6cd6 Add render to texture support in GEVulkanDriver 2022-07-24 11:38:02 +08:00
Benau
99d565f961 Allow using custom command buffer for draw call 2022-07-24 08:54:47 +08:00
Benau
9f25652455 Fix one possible crash 2022-07-23 15:10:45 +08:00
Benau
d325e33fc0 Use multi-draw indirect if supported 2022-07-23 14:02:37 +08:00
Benau
7f31ffa552 Add anisotropic samplers 2022-07-23 10:58:37 +08:00
Benau
e991e06640 Implement high dpi support in sdl2 properly 2022-07-22 21:10:51 +08:00
Benau
ea69c36cb3 Fix splitscreen lod (mainly for karts) 2022-07-22 11:05:30 +08:00
Benau
bf77863c53 Simplify OnRegisterSceneNode of vulkan mesh nodes 2022-07-22 08:18:18 +08:00
Benau
3d0d666e09 Add texture mapping 2022-07-21 12:26:06 +08:00
Benau
fec21afc8e Add FileIncluder to shaderc compiler 2022-07-20 13:40:55 +08:00
Benau
e9924357cd Add polycount display in GEVulkanDriver 2022-07-20 10:37:09 +08:00
Benau
f768badee0 Add initial 3d rendering 2022-07-19 15:56:08 +08:00
Benau
44b2468003 Add GEVulkanDrawCall 2022-07-18 13:28:07 +08:00
Benau
5853d618a6 Add GEVulkanMeshSceneNode and GEVulkanAnimatedMeshSceneNode 2022-07-17 16:06:52 +08:00
Benau
fc7413800c Use GEVulkanTextureDescriptor on GEVulkan2dRenderer 2022-07-16 09:54:40 +08:00
Benau
713ab53272 Add GEVulkanTextureDescriptor to avoid refilling every frame 2022-07-15 14:09:57 +08:00
Benau
3769c18288 Remove hardcoded shader names 2022-07-14 15:25:16 +08:00
Benau
15eec8a8d2 Combine vbo and ibo buffers 2022-07-14 10:44:28 +08:00
Benau
c864b9bd60 Use vma in GEVulkanMeshCache 2022-07-13 12:09:45 +08:00
Benau
cf8bafaab3 Use vma in GEVulkanDynamicBuffer 2022-07-13 11:23:08 +08:00
Benau
b0f91ff33d Use vma in GEVulkanTexture 2022-07-12 15:46:33 +08:00
Benau
0f4a21ab6e Add Vulkan Memory Allocator 2022-07-11 12:58:03 +08:00
Benau
0b4ebc35b9 Add performance validation layer code 2022-07-10 15:36:27 +08:00
Benau
27b5770ea9 Add GEVulkanDepthTexture 2022-07-10 14:48:07 +08:00
Benau
7d94bf1f6f Update vk_mvk_moltenvk.h to latest version 2022-07-09 09:01:06 +08:00
Benau
90794c2c8f Only update bounding box of lod node every frame if needed 2022-07-08 23:20:57 +08:00
Benau
d0a177c3cc Fix hang when resizing window with vsync on 2022-07-08 11:46:17 +08:00
Benau
fa72ef7246 Fix matrix in GEVulkanCameraSceneNode::render 2022-07-07 13:08:44 +08:00
Benau
8ab63edd30 Save viewport in GEVulkanCameraSceneNode 2022-07-06 10:53:26 +08:00
Benau
4351926137 Fix possible crash if throw early 2022-07-06 10:06:28 +08:00
Benau
cc6914631a Don't upload if size is empty 2022-07-05 08:54:06 +08:00
Benau
defd58a465 Add getRealSize to GEVulkanDynamicBuffer 2022-07-04 14:51:59 +08:00
Benau
0875db0db6 Add buildCommandBuffers in GEVulkanDriver 2022-07-03 11:48:07 +08:00
Benau
dfd6a1820d Fix crash when closing in RTT screen 2022-07-02 10:52:20 +08:00
Benau
dc168e1b13 Better error handling when GEVulkanDriver construction fails 2022-07-01 12:52:07 +08:00
Benau
34ae56d33a Use matrix4 directly after the removal of sse 2022-06-30 16:49:51 +08:00
Benau
8fb0005020 Remove useless sse code in matrix4 2022-06-29 15:45:08 +08:00
Benau
3a64cc9f6a Fix uninitialized values in btKart 2022-06-28 10:08:33 +08:00
Benau
21d9b4bc70 Fix lod node after updateAbsolutePosition optimization 2022-06-27 13:22:07 +08:00
Benau
11fb04bd95 Fix sp mesh node after updateAbsolutePosition optimization 2022-06-26 09:46:08 +08:00
Benau
f63ce6917b Only updateAbsolutePosition if transformation changed 2022-06-25 11:54:06 +08:00
Benau
e599a7fff8 Disable minimap in vulkan driver for now 2022-06-24 13:23:01 +08:00
Benau
648c7c84d4 Clean up and optimize lod node 2022-06-23 16:00:08 +08:00
Benau
b8cb96b81f Add GEVulkanCameraSceneNode 2022-06-16 12:00:15 +08:00
Benau
4b17d2133a Try to allow cake and plunger to have collision callbacks 2022-06-13 16:16:26 +08:00
Benau
8ea38a6103 Fix memory leak 2022-06-09 15:18:20 +08:00
Benau
d85c1e3ee7 Use class inheritance for GEVulkanMeshCache 2022-06-08 13:38:24 +08:00
Benau
b0cddc462a Add GEVulkanSceneManager 2022-06-07 10:34:08 +08:00
Benau
ca1f61b898 Add GEVulkanMeshCache 2022-05-29 12:33:06 +08:00
Benau
95d9277046 Regenerate plural forms from po files 2022-05-28 15:44:18 +08:00
Benau
8affae4861 Update translation, add Macedonian 2022-05-28 15:38:22 +08:00
Benau
2b80513a8f Add getMonoTimeMs to GE 2022-05-27 09:41:34 +08:00
Benau
ac5351ae5e Add irrlicht device pointer to vulkan driver 2022-05-26 17:22:39 +08:00
Deve
78f871d7f2 Use OpenGL ES by default for RISC-V 2022-05-26 10:06:46 +02:00
Benau
364e380dfd Update translation source, AppData and Desktop file 2022-05-25 09:03:57 +08:00
Benau
090d2e8038 Add new things to Appdata generation script 2022-05-25 09:01:04 +08:00
Benau
4c97bcbae5 Update translation file from transifex 2022-05-25 08:58:54 +08:00
Benau
1bdeffc7ed Convert b3d to GE spm 2022-05-24 10:24:15 +08:00
Benau
92accb352e Convert spm to GE spm 2022-05-23 13:46:03 +08:00
David CARLIER
096b408b9c BSD build warning little fixes, implicit cast. 2022-05-22 11:20:38 +01:00
Benau
e666e08f2d Add GE spm code 2022-05-22 11:53:02 +08:00
Benau
350773d316 Add temporary code for GE spm 2022-05-21 08:55:59 +08:00
Benau
3b0df18167 Fix crash when rubber band hits its owner 2022-05-20 08:17:15 +08:00
Benau
f61dcb2ec3 Allow reading spm vertices in physics 2022-05-19 15:53:05 +08:00
David Carlier
db8fdb9ccf illumos/solaris build fix 2022-05-14 11:31:51 +01:00
Benau
b50e977cfe Add llvm mingw building instructions 2022-05-10 13:16:30 +08:00
Benau
c004588654 Allow llvm mingw toolchain to be used in windows 2022-05-10 10:05:01 +08:00
Benau
9c9f69856f Enable maximum parallelization by making vkWaitForFences closer 2022-05-05 09:30:29 +08:00
Benau
d2da2e22e1 Avoid address sanitizer error 2022-05-04 10:42:16 +08:00
Benau
281ddb1b17 Fix #4772 2022-05-03 09:32:14 +08:00
Benau
c739aeb758 Disable mipmap generation for too small textures 2022-05-02 10:42:32 +08:00
Benau
db4329cebf Remove unwanted architectures in apk properly 2022-05-01 09:55:06 +08:00
Benau
ac140c9cf2 Fix #4770 2022-05-01 08:36:56 +08:00
Benau
63e1afb835 Fix camera rotation angle for all platforms 2022-04-30 12:29:25 +08:00
Benau
ed14ab5091 Fix possible exit crash 2022-04-30 11:55:47 +08:00
Benau
ae2cfb4162 Fix gyroscope on walldriving surface properly 2022-04-30 10:45:33 +08:00
Benau
98eb912a76 Use simde on graphics_utils 2022-04-29 11:28:47 +08:00
Benau
383bd93261 Add simde 2022-04-29 11:02:25 +08:00
Benau
0f2b3da37e Fix sometimes missing overworld background music 2022-04-28 14:30:53 +08:00
Benau
ed6d7578a5 Avoid queue size race condition 2022-04-27 11:01:53 +08:00
Benau
96cd140c62 Avoid getListenerPos race condition 2022-04-26 12:42:11 +08:00
Benau
68240b5d2d Avoid getWorld race condition 2022-04-26 12:26:29 +08:00
Benau
fddc19225c Use array list for scene nodes 2022-04-26 10:55:24 +08:00
Deve
98763a10eb Use new build options for freetype in linux build script 2022-04-24 08:54:02 +02:00
Benau
972c719392 Add triangle fan 2d drawing for vulkan driver 2022-04-20 08:19:53 +08:00
Benau
1b92e99cfe Use a new sampler for 2d rendering 2022-04-19 13:18:59 +08:00
Benau
26bd8a5b8b Add mipmap generation for GEVulkanTexture 2022-04-19 12:49:05 +08:00
Benau
b0421569d0 Fix validation warnings when running vkDeviceWaitIdle 2022-04-18 13:46:59 +08:00
Benau
5d23d8d790 Add multithreading GEVulkanTexture loading 2022-04-18 12:16:27 +08:00
Benau
059fc9ebfd Add GE::getResizedImage using IReadFile 2022-04-18 10:46:23 +08:00
Markus Reitboeck
2876032630 Fix logical error in libraqm implementation
the first two conditions made the whole if condition
always true

I've copied the fix from the current implementation in
libraqm
https://raw.githubusercontent.com/HOST-Oman/libraqm/master/src/raqm.c
2022-04-17 14:23:52 +02:00
Benau
3d6c86d04e Clean up properly in case constructor throws 2022-04-17 14:42:36 +08:00
Benau
22f658239f Use GEVulkanCommandLoader for all 2022-04-17 14:37:52 +08:00
Benau
da665fc4fd Add GEVulkanCommandLoader with multithreading support 2022-04-17 14:08:29 +08:00
Benau
993073b7dc Update download assets size 2022-04-16 13:16:44 +08:00
Benau
5f9db20b4f Add IFileSystem::existFileOnly (not including directory) 2022-04-16 12:08:57 +08:00
Benau
57a9a8a2aa Add getTextureData for GEVulkanTexture 2022-04-16 11:31:09 +08:00
Benau
0dbbf1a6e6 Fix bluetooth mouse in iOS
See 19c129faba
2022-04-15 17:37:08 +08:00
Benau
99f1a2e03f Add moltenvk argument buffers support 2022-04-15 17:05:38 +08:00
Benau
a469d501f9 Fix gyroscope behaviour on walldriving surface, see #4750 2022-04-15 12:48:09 +08:00
Benau
b359c9548c Update build scripts for curl 7.81 and later 2022-04-14 10:29:05 +08:00
Benau
ae8df366fc Fix convertBGRA order in GEVulkanTexture::reloadInternal
Image manipulator should work on original color data
2022-04-13 10:04:28 +08:00
Benau
3fe53751c4 Move BGRA conversion out of upload in GEVulkanTexture 2022-04-12 15:16:26 +08:00
Benau
661a57b5fc Add a way to acquire file archives mutex 2022-04-11 14:32:36 +08:00
Benau
8df6bdf7c8 Move file system mutex to irrlicht 2022-04-11 13:57:06 +08:00
Benau
efe1070be7 Fix validation warning when using VK_SHARING_MODE_CONCURRENT 2022-04-10 10:56:04 +08:00
Benau
de09566b4a Avoid configurations xml lost if having disk space issue, see #4709 2022-04-09 14:59:57 +08:00
Benau
d6a3e48d03 Fix compiler warnings in MinGW 2022-04-09 12:53:20 +08:00
Benau
8bbb142394 Fix #4745 2022-04-09 10:43:30 +08:00
Markus Reitboeck
2c7cb7fa67 ReplayRecorder: write correct number of transformation into "size"
fixes #4758
2022-04-08 22:22:24 +02:00
Benau
d60a3a7c0c Add loadingFailed function for ITexture 2022-04-08 14:56:24 +08:00
Benau
d6db020bfe Add thread-safe existFile in IFileSystem 2022-04-08 14:35:04 +08:00
Mary Strodl
878f064ecf CImageLoaderSVG: don't rescale on server 2022-04-07 14:21:00 -04:00
Benau
4c4daf9698 Move screen height detection inside CImageLoaderSVG::loadImage 2022-04-07 08:51:25 +08:00
Benau
1655c243b7 Batch upload image command buffer 2022-04-06 11:35:22 +08:00
Benau
159cdcd06b Save max texture size before calling image manipulator 2022-04-06 10:17:49 +08:00
Benau
e6684040ba Fallback to VK_SURFACE_TRANSFORM_IDENTITY_BIT_KHR if needed 2022-04-05 10:43:23 +08:00
Benau
fb9d8f21ce Deactivate unusable settings in non-gl3 renderers 2022-04-04 08:50:46 +08:00
Benau
f2cc51a602 Fix mismatched max size for background.jpg when reloading 2022-04-03 10:54:27 +08:00
Benau
b6b565aabb Fix validation warning when reloading textures 2022-04-03 10:21:48 +08:00
Benau
24a9c99e03 Fix one validation warning 2022-04-03 09:55:17 +08:00
Benau
a98a470ea8 Implement live updating swap interval value for vulkan 2022-04-02 14:17:27 +08:00
Benau
3994ce5666 Add workaround for https://gitlab.freedesktop.org/mesa/mesa/-/issues/5516 2022-04-02 13:41:52 +08:00
Benau
067ac4fe01 Implement resume behaviour for mobile stk 2022-04-02 13:33:08 +08:00
Benau
4d2c65ade9 Add render driver switch in lobby command 2022-04-01 12:19:21 +08:00
Benau
6c7e4f25ea Quit the app if vkQueueSubmit with fence fails
It prevents infinitive vkWaitForFences later
2022-04-01 10:16:28 +08:00
Benau
601511e7f4 Split device polling out of renderLoading 2022-04-01 09:59:46 +08:00
Benau
1c99ba2562 Fix clang warnings 2022-03-31 11:55:23 +08:00
Benau
9c7fb99e53 Fix one validation warning 2022-03-31 11:34:47 +08:00
David Carlier
4f4fb01ed7 upstreaming change for settings paths for haiku.
original author @threedeyes slighty adapted.
2022-03-29 22:28:23 +00:00
Benau
cd9e2f0adf Remove always exiting behaviour when pausing vulkan enabled stk 2022-03-28 15:30:42 +08:00
Panagiotis "Ivory" Vasilopoulos
0c147c0a0b Fix URLs on Haiku
My general strategy of getting ports to work on Haiku is to just take advantage
of whatever makes things work on FreeBSD by adding an additional condition and
then fixing up things later once it compiles successfully. This generally
works, as Haiku contains FreeBSD headers for compatibility and code that
takes other operating systems into account other than Windows, Linux and OS X
and has a higher degree of POSIX compatibility tends to work on FreeBSD and
Haiku. This strategy is not perfect, and this commit proves it.

Haiku is the successor of BeOS, which, in turn, shows similarities to macOS
every now and then, as the company almost acquired Be, Inc., but later chose to
acquired NeXT, Inc. instead.

`xdg-open` is not available on Haiku by default the same way it is on
FreeBSD and Linux. With that in mind, this should fix URLs, which do
not not work properly on Haiku. Actually, nevermind, I forgot that there
is actually a package available that adds support for them. But still.
The less dependencies, the better, probably. This is also how other
packages with ports available on Haiku solve this problem.
2022-03-27 21:22:48 +02:00
David Carlier
37a57d0011 Fix build for Haiku and a handful of other oses with the spirv-tools dependency. 2022-03-26 15:05:08 +00:00
Benau
bed91e67a0 Handle device orientation with vulkan pre-rotation 2022-03-26 00:19:09 +08:00
Benau
3d92730a82 Fix incorrect android screen rotation with vulkan 2022-03-25 09:04:08 +08:00
Benau
68eb70e7e6 Use dynamic viewport for GEVulkan2dRenderer 2022-03-24 16:37:34 +08:00
Benau
23cd67f45c Implement draw2DRectangle for GEVulkanDriver 2022-03-23 10:53:00 +08:00
Benau
9e50c8a71f Remove unneeded files, fix #4751 2022-03-22 07:51:45 +08:00
Benau
3e2ff91654 Add dynamic scissor support 2022-03-21 11:54:28 +08:00
Benau
ea1733ed08 Add drawing code for devices with low sampler images 2022-03-20 13:35:22 +08:00
Benau
bb6551fdf6 Add drawing code for devices without descriptor indexing 2022-03-19 16:09:32 +08:00
Benau
1cf2c0c5bf Add initial 2D vulkan rendering 2022-03-19 15:14:55 +08:00
Benau
cb607a16ff Add GEVulkanShaderManager 2022-03-18 16:24:33 +08:00
Benau
89afd214e8 Require shaderSampledImageArrayDynamicIndexing for vulkan 2022-03-18 09:24:55 +08:00
Benau
1d0d2ebb75 Fix windows xp support 2022-03-17 15:12:08 +08:00
Benau
5128fc3a88 Add link to download python for windows 2022-03-17 14:30:21 +08:00
Benau
77ca4625c1 Add shaderc for android 2022-03-17 14:25:11 +08:00
Benau
9ea2f3ff8c Fix cctools build 2022-03-17 14:06:27 +08:00
Benau
38a553513c Fix switch build 2022-03-17 13:52:46 +08:00
Benau
f01959de8b Disable documentation generation for shaderc 2022-03-17 13:36:27 +08:00
Benau
2bc31f1518 Disable shared libraries manually for shaderc 2022-03-17 13:12:55 +08:00
Benau
bc1d885bd1 Add shaderc v2022.1 for GLSL to SPIR-V shaders
Ran ./utils/git-sync-deps already, removed some unneeded files
2022-03-17 12:21:20 +08:00
Benau
c19327aaeb Fix vsync disabled 2022-03-16 15:43:26 +08:00
Benau
a7994c02d8 Fix command buffers size 2022-03-16 12:37:18 +08:00
Benau
d6265f3bf7 Handle possible error from createTextureImage 2022-03-15 14:04:36 +08:00
Benau
4b28f5b9af Wait queue to become idle before deleting texture 2022-03-15 12:42:31 +08:00
Benau
ea275ae798 Use a correct layout during updateTexture 2022-03-14 09:43:22 +08:00
Benau
f35f402edf Fix VkDeviceQueueCreateInfo warning 2022-03-13 10:54:35 +08:00
Benau
4a93bea962 Fix MSVC 2015 build 2022-03-12 16:43:32 +08:00
David Carlier
9fb568eaa7 widening a bit smart pointers usage considering xml data. 2022-03-12 07:43:13 +00:00
David Carlier
18018a5cc1 scoped deref mem utils intro proposal.
trying out in two cases for now.
2022-03-06 19:02:15 +00:00
Benau
854c31be9d Update CREDITS 2022-03-05 08:57:39 +08:00
Benau
d2b2e80faa Fix #4737 2022-03-03 14:39:45 +08:00
Benau
8a5ecc458f Fix apple build 2022-03-01 16:25:25 +08:00
Benau
7bccb0b779 Remove build cache for msvc 2022-03-01 16:06:48 +08:00
Benau
17a899aa2c Fix exit crash 2022-03-01 15:59:48 +08:00
Benau
8b68f52e57 Add GEVulkanTexture 2022-03-01 13:22:20 +08:00
David Carlier
fcf7cf953f http curl client favoured new progress api if supported.
suppress openssl warning with openssl 3.0
2022-02-26 11:49:44 +00:00
Benau
c63faf395f Remove unneeded character saving, we always get it from translated string if needed
It causes undefined behavior in C++20, see #4735
2022-02-25 11:20:52 +08:00
Benau
dcdc66b8f5 Fix undefined behavior in C++20, see #4735 2022-02-25 11:13:27 +08:00
Benau
09e7a38c52 Update for windows-latest 2022-02-18 15:04:00 +08:00
luffah
bd1b20ad35 Minimap and powerup icon settings in user settings
- add size and display settings for powerup icon in user settings
 - move minimap display settings in user settings
 - fix some comments in stk_config.xml
2022-02-13 22:36:20 +01:00
tippfehlr
9a3c51815a Add DisplayVersion to Windows registry on install (+typo) (#4730)
Winget relies on this value to get the version of a program.
If it's missing winget will just download the newest version even if the program is up to date.
See https://github.com/microsoft/winget-cli/issues/1255
2022-02-13 11:30:56 +08:00
David CARLIER
1f0ea77f80 illumos port. (#4732)
overcoming sun constant defined in this platform.
forcing 64 bits build as angelscript assembly is incorrect for 32 bits.
2022-02-13 00:31:14 +08:00
Michael Cochez
eb7a5b2ee6 m_gravity was set on the line above, so the condition will always be false. 2022-02-12 00:39:45 +01:00
Benau
c3b2eaf3e2 Allow adding players when using enter server dialog 2022-02-04 13:47:41 +08:00
Benau
b411f8c60d Remove unneeded sprintf 2022-02-03 10:51:15 +08:00
Kuba
65afb72c98 Fix assertion failed introduced in #4723 (#4728) 2022-01-28 09:56:00 +08:00
Benau
6e347ae517 Fix #4726 2022-01-27 07:18:45 +08:00
Semphris
fa442aacce Ignore clangd files 2022-01-26 11:57:46 -05:00
mrkubax10
b80df76116 Fix wrong lap count in GP result 2022-01-26 12:37:13 +01:00
Semphriss
01a78ba594 Improved code quality in item.cpp (#4722)
Fixes bug where a bubblegum shield popping/bursting will leave an invisible gum object behind
2022-01-26 09:13:51 +08:00
Lois Doyenard
3d4cb58af5 Accept emails with format e.email (from #4718) 2022-01-25 10:48:38 +01:00
Lois Doyenard
b66e0d0d0d More precise error message for online unsername (2 & 3 from #3599) 2022-01-25 10:04:44 +01:00
Semphriss
96c0d167bf Items animation (#4713) 2022-01-25 13:07:04 +08:00
Benau
3ccdfaf70d Add createSamplers for GEVulkanDriver 2022-01-23 16:43:33 +08:00
Benau
8e64c69c5d Add command creation for GEVulkanDriver 2022-01-22 00:41:24 +08:00
Benau
2f4093516a Add createSyncObjects for GEVulkanDriver 2022-01-22 00:18:42 +08:00
Benau
9e321d804e Fix #4711 2022-01-11 09:24:01 +08:00
Semphris
9b6347d62d Added animation to stars 2022-01-09 23:49:24 -05:00
Deve
5999ff94ab Use more cores for package compression 2022-01-05 23:50:12 +01:00
Deve
364d387aa1 Remove rpath after compilation 2022-01-05 23:34:13 +01:00
ldoyenard
886783db31 Add left side ghost replay difficulties (#4707) 2022-01-05 10:16:23 +08:00
Benau
d4ed01b467 Disable accelerometer or gyroscope control if gamepad events trigger, fixed #4705 2022-01-04 09:37:59 +08:00
Benau
76a08d9f30 Remove hardcoded android build settings and update to latest gradle 2022-01-03 11:04:55 +08:00
Benau
f0f498d53f Add createSwapChain for GEVulkanDriver 2021-12-28 13:51:03 +08:00
Benau
3f99d279a7 Update for SDL 2.0.18 2021-12-24 10:57:13 +08:00
Benau
baeafd9f7d Fix missing ime candidate window using SDL2 hint 2021-12-24 09:43:06 +08:00
Benau
7dc8f3e958 Fix order of ghost replay difficulties depending on race result 2021-12-23 00:47:57 +08:00
STK-Waldlaubsaengernest
c09305b236 Fix #4698 2021-12-22 12:14:33 +01:00
Stanislas Dolcini
0a99c667ef Request AMD GPU on Enduro Devices
It seems AMD provides an equivalent to `NvOptimusEnablement` called `AmdPowerXpressRequestHighPerformance`

See https://gpuopen.com/learn/amdpowerxpressrequesthighperformance/
2021-12-12 22:35:57 +01:00
Benau
ccf6ff2686 Fix possible incorrect difficulty shown in result screen when watching single replay 2021-12-09 12:39:57 +08:00
Lois Doyenard
be16d24170 Fix #3849 2021-12-08 11:28:28 +01:00
Benau
087892e183 Fix compiler warnings 2021-12-07 09:33:26 +08:00
STK-Waldlaubsaengernest
a0cc6c95c2 Update player list if state changes to WAITING_FOR_START_GAME (#4685) 2021-12-06 23:21:50 +01:00
STK-Waldlaubsaengernest
97eb45b93b Make limit of players in game configurable (#4685) 2021-12-05 16:46:49 +01:00
Benau
d8af4bc17e Fix #4675 2021-12-03 14:06:40 +08:00
Benau
75a5f81578 Fix valgrind errors 2021-12-03 13:41:02 +08:00
Benau
4a72a79582 Fix #3849 2021-12-03 11:04:43 +08:00
Benau
b286ee9195 Fix #4687 2021-12-03 10:23:31 +08:00
Benau
d1c0acac83 Fix #4653 2021-12-03 10:16:30 +08:00
Benau
ea5aabde0d Fix server name missing in title when leaving live join kart selection screen 2021-11-29 00:59:56 +08:00
Benau
b4411b11fe Fix #4677 2021-11-26 18:29:22 +08:00
Varro33
6b022368cf Fix irrlicht error indent (#4676) 2021-11-22 21:49:15 +08:00
Benau
38425305a5 Remove useless translation po files 2021-11-15 11:16:53 +08:00
Benau
571366a461 Add missing country code to language selection 2021-11-15 11:05:44 +08:00
Benau
33e6110737 Update localized language names and use tsv file for them 2021-11-15 10:58:48 +08:00
Benau
d064f8d96e Update translation source 2021-11-14 16:20:08 +08:00
Benau
844d97ed52 Improve description for lap trial mode 2021-11-14 16:17:02 +08:00
Benau
dfd1912c33 Add track searching to network track screen 2021-11-14 16:11:21 +08:00
Benau
c26b3c989b Fix #4671 2021-11-14 15:31:41 +08:00
이경로
1a11da01bc Revised email issue and some kr translation (#4673) 2021-11-14 15:20:15 +08:00
Benau
7582a00b91 Update target SDK to 30 due to google play requirement 2021-11-12 12:24:42 +08:00
Benau
712822a5f5 Update download assets size 2021-11-12 10:23:41 +08:00
Benau
4d08ea2335 Update Noto Emoji to support Unicode 14 2021-11-11 17:07:51 +08:00
Bryan Quigley
bee1c222af Always AS_MAX_PORTABILITY on AArch 2021-11-07 23:43:05 -08:00
Bryan Quigley
b710fab5c8 STK modifications to angelscript to let Windows/Apple builds
(and 3 forgotten source files)
2021-11-06 10:12:01 -07:00
Bryan Quigley
73c94f571d Update Angelscript from 2.32.0 to 2.35.1
Didn't require any changes except dos2unix.
2021-11-04 17:59:10 -07:00
Kuba
0d8b01b08b Lap Trial improvements (#4664) 2021-11-03 09:39:22 +08:00
Kuba
3623fa8f5f Add Lap Trial mode (#4663) 2021-11-02 03:02:16 +08:00
QwertyChouskie
8b5b68585c Allow specifying a base skin
Anything not provided or defined by a skin will be used from the defined base skin, if specified.

For example, if a skin provides a base_theme of "cartoon", any icons/buttons/etc. not provided by the skin will be pulled from "cartoon".
2021-11-01 00:11:31 +08:00
QwertyChouskie
aee11c6de6 Use getThemedIcon instead of duplicated code 2021-11-01 00:11:31 +08:00
QwertyChouskie
14c1f7b344 Remove dead code block
The way this code was written, it would never be triggered in any real scenario (confirmed by running STK with a Log::fatal before the return)
2021-11-01 00:11:31 +08:00
QwertyChouskie
9ca2c2eddc Remove ugly font/skin loading hack
font_manager->loadFonts() needs data from the GUI skin.  Move this initialization to after we naturally have the data, instead of doing an extra dummy initialization just to get this data.
2021-11-01 00:11:31 +08:00
Benau
1470eb3939 Fix possible crash in discord rpc 2021-10-30 10:04:17 +08:00
lokpro
1fd18c8d88 add UserConfigParams: m_gp_reverse, random-gp-num-tracks for GPInfoScreen (#4656) 2021-10-28 10:15:26 +08:00
QwertyChouskie
ce19c9396e Delete implementation.txt
I didn't realize this file still existed, looks like all this is from the TuxKart days (2000-2004) and has no relevancy anymore.
2021-10-27 12:37:11 -07:00
fmesnier
8f79b24f49 correction of the implementation.txt file (#4655) 2021-10-28 00:58:26 +08:00
Heuchi
e110948eb5 add configuration for item return times in stk_config.xml 2021-10-24 10:02:05 +02:00
lokpro
550458bebd fix 1734d74c6b - only use ranks in GP, else use row number. 2021-10-23 00:03:54 +08:00
lokpro
1734d74c6b fix race_result_gui's GP ranks after RR_RESORT_TABLE 2021-10-22 01:22:25 +08:00
Benau
6809c9585d Add don't show again button to driver dialogs, fix #4645 2021-10-10 16:43:49 +08:00
Benau
786dc6b08f Fix broken recording saving with unicode path in windows 2021-10-08 15:49:53 +08:00
Benau
1c983f7090 Remove 1.3-rc1 in AppData
Also update translation source
2021-10-08 11:36:05 +08:00
Mary
b2e9033998 SDLController: Drop support for SDL 1.x (#4644) 2021-10-08 11:19:42 +08:00
Benau
1cce43b2fa Fix MIPS compilation 2021-10-07 16:30:32 +08:00
Kalev Lember
164c51cb2e Always build tinygettext as a static library
Explicitly pass STATIC to tinygettext add_library() call to make sure
it's always built as static, even when distro's cmake is configured to
build libs shared by default.
2021-10-07 00:52:32 +02:00
Benau
501d8b55ab Fix some typos 2021-10-06 15:22:32 +08:00
Benau
e8074fa392 Update debian build instruction 2021-10-06 13:54:11 +08:00
Mary
fe7dd8af14 Allow setting auto-center property for racing wheels (closes #4636) (#4641) 2021-10-06 13:24:27 +08:00
Benau
013b065f2c Allow disabling loading of addon karts or tracks, fix #4637 2021-10-05 11:58:23 +08:00
Benau
39f7e6441a Fix random player position in FTL 2021-10-05 11:34:51 +08:00
Benau
6f7c8c3dd8 Exit if make_deps.sh failed in android_builder.sh 2021-10-05 10:00:38 +08:00
Benau
835154bde2 Handle SDL_RENDER_DEVICE_RESET event 2021-10-04 21:16:26 +08:00
Benau
9b25557e6e Remove restriction for android screen keyboard after using SDL2 2021-10-04 20:17:27 +08:00
Benau
b518d73417 Synchronize AndroidManifest.xml with upstream SDL2 2021-10-04 20:16:05 +08:00
Benau
3d575a50a7 Get rid of the exit(0) at the end of android_main() function
After NDK r22 it longer crashes after dlclose, see:
https://github.com/android/ndk/issues/1200

Fix #3000
2021-10-04 20:10:41 +08:00
Benau
75db65d43a Build with NDK r22, disable NEON on 32-bit ARM to support more devices 2021-10-04 18:15:21 +08:00
Benau
17329a1b29 Register native functions in SDL_main 2021-10-04 13:01:00 +08:00
Benau
4db68a3f10 Build SDL2 and hidapi as shared library 2021-10-04 11:41:04 +08:00
Benau
db03304cf1 Sign MacOS bundle with Ad Hoc (required by arm64) 2021-10-04 00:32:43 +08:00
Benau
9bf537ab35 Update cacert.pem and remove expired DST Root CA X3 certificate 2021-10-03 01:39:50 +08:00
Benau
87fd3f221a Make /installaddon possible to upgrade addon 2021-10-01 14:23:47 +08:00
Benau
fa1ddbd839 Remove compiler warning 2021-10-01 12:57:07 +08:00
Benau
93ab5a75c1 Only handle enter key after buttons are shown in race result screen 2021-10-01 12:54:54 +08:00
Kuba
ca04106253 Fix wrong win message in races only with 1 kart (#4632) 2021-10-01 01:57:45 +08:00
Richard Qian
d5f8496abc Enable grand prix races in high score dialog (#4626) 2021-09-30 09:57:59 +08:00
iwoithe
95de01a8fb Add a user config option to randomize the player position at the start (#4627) 2021-09-29 11:40:14 +08:00
Benau
d0f4c8ffee Update download assets size 2021-09-28 15:48:26 +08:00
Benau
e59f1c316f Update mrkubax10 name 2021-09-28 15:47:08 +08:00
Benau
fd7564d508 Update translation and AppData 2021-09-28 15:04:56 +08:00
Benau
2d1f8d5698 Update changelog 2021-09-28 14:34:22 +08:00
Benau
73064a341a Fix missing dSYMs in Xcode archive 2021-09-28 13:49:46 +08:00
Benau
31ce998cda Fix error during Xcode archive 2021-09-28 13:00:25 +08:00
BryanQuigley
781273b472 Add releases bit to appstream xml. (#4624)
Noticed this was added to the flatpak here: https://github.com/flathub/net.supertuxkart.SuperTuxKart/blob/master/fix-AppData-file.patch
2021-09-27 10:11:34 +08:00
Benau
1afffee635 Update android_builder.sh for latest changes 2021-09-25 16:20:09 +08:00
Benau
78c00723af Build apk and aab with gradle 2021-09-25 15:19:21 +08:00
Benau
42cc2ab239 Allow make.sh to compile multiple architectures apk file 2021-09-25 14:57:03 +08:00
Benau
731ed0b16e Add make_deps.sh to build android deps for all architectures 2021-09-25 14:38:11 +08:00
Alayan-stk-2
e4ffc949ac Partial 1.3 changelog update
Changes from August onwards are still to review
2021-09-25 03:19:23 +02:00
Benau
48cc830372 Add command to check addon revision 2021-09-24 12:46:10 +08:00
Benau
daf1dcfb6b Make AI / grand prix option in create server screen configurable 2021-09-24 11:29:41 +08:00
Benau
2257b50aef Make sure pointer is not NULL 2021-09-23 16:43:17 +08:00
Benau
031c798d8e Make continue button in GP result screen appear quicker 2021-09-23 16:26:22 +08:00
Benau
7c9a58c844 Proper fix for #4604
Take allowing to get a lower-tier cup in GPs when not first into
account
2021-09-23 16:13:05 +08:00
Benau
de52f2ae92 Fix uninitialized reverse type 2021-09-23 16:08:06 +08:00
Benau
70070b3077 Wait for user input in GP before scrapping the race results
Fix #2775
2021-09-22 15:52:01 +08:00
Benau
9b05ac6252 Revert "Fix #4610"
This reverts commit 789885c546.
2021-09-22 09:09:28 +08:00
Benau
dab4486465 Implement proper fix for #2776
Doing computeGPRanks in race result screen will make sorting
animation disappear
2021-09-21 16:32:53 +08:00
Kuba
6ee1b398e9 Save minor mode in GP highscores (#4620) 2021-09-21 10:06:09 +08:00
Benau
61f513e200 Display hour in high score dialog if needed 2021-09-19 09:10:30 +08:00
Benau
94cffbeb73 Fix swap interval mismatch when changing activity 2021-09-19 08:44:47 +08:00
Benau
bc7e6de55b Fix uninitialized track pointer 2021-09-19 08:13:25 +08:00
Benau
b773c009cb Fix memory leak if deleting kart with swatter on 2021-09-19 07:55:06 +08:00
mrkubax10
26db54c90f Don't save highscore when player skipped track 2021-09-18 11:21:04 +02:00
Benau
789885c546 Fix #4610 2021-09-17 12:18:28 +08:00
Benau
45cf40e493 Fix #4604 2021-09-17 12:02:36 +08:00
Daniel Garcia
1fff48ea61 Fix incorrect comment in grand_prix_manager.hpp 2021-09-16 11:04:20 -05:00
Kuba
0b5eda8ef9 Save more detailed informations about reverse mode in GP highscores (#4616) 2021-09-14 16:22:29 +08:00
Benau
c4fdf9c8ac Fix memory leak 2021-09-14 13:01:33 +08:00
Benau
216ac8b988 Fix missing text if it starts with newline 2021-09-14 10:21:49 +08:00
Benau
a96763cd1d Make sure starting position is valid for spare tire karts
Fix #4615
2021-09-13 16:54:29 +08:00
Benau
4470eabeb2 Split findGround function for more usage later 2021-09-13 15:09:00 +08:00
Benau
9221d39e6e Don't show kart rank in free for all battle, fix #4607 2021-09-12 08:24:01 +08:00
Kuba
0d54c3d60b Only save GP highscores for normal race and time trial (#4613) 2021-09-11 21:16:51 +08:00
Robin Pesl
7aeb0b0edf Fix missing argument in warning
Add tag name to log message.
2021-09-11 02:25:28 +02:00
Benau
df97d76bd7 Fix #4601 2021-09-10 17:11:15 +08:00
Benau
e74c198301 Fix uninitialized m_curr_time 2021-09-10 15:56:10 +08:00
Benau
b1670b7a34 Update ncipollo/release-action to its latest version 2021-09-10 12:03:50 +08:00
Benau
b3c3b4c729 Remove unused code 2021-09-10 11:19:24 +08:00
Benau
0fc1bd961f Fix OS string in Switch Homebrew 2021-09-10 10:46:21 +08:00
Alayan
79965ef462 Fix & Improve the remaining-time alert
- Fix a bug that prevented the alert sound from playing in timed Story Mode challenges.
- Extend the visual alert (colored time) to the last 15 seconds (previously 5). The sound alert remains limited to the last 5 seconds.
- Switch from yellow to orange for the timer when 5 seconds are left and the sound alert starts playing.
- Significant code simplification (tested for non-regression in soccer, FFA, story mode timed challenge)
2021-09-09 21:06:02 +02:00
Benau
9a4fe66dc7 Fix strings 2021-09-10 01:10:30 +08:00
Alayan-stk-2
394c2c9e82 Partial changelog update for 1.3 2021-09-09 17:15:39 +02:00
Benau
5902a146a6 Dont re-highlight if addon name starts with http link 2021-09-09 16:52:16 +08:00
Benau
c9f1c0c866 Cancel download if uninstalling during updating addon 2021-09-09 15:52:39 +08:00
Benau
e51f68d764 Don't open link on shrinked text in bubble widget 2021-09-09 15:42:23 +08:00
Benau
307791beda Highlight URLs or addon names from /installaddon in lobby 2021-09-09 09:57:35 +08:00
Benau
4e770cdd61 Remove URL highlighting on music description 2021-09-08 23:31:18 +08:00
Alayan
f80d499982 Tweak the highscore info dialog to display more without scrolling with large fonts. 2021-09-08 15:42:46 +02:00
Benau
38cfd912bd Add extractURLFromGlyphLayouts which handles RTL layout properly 2021-09-08 14:58:35 +08:00
Benau
a4015beb29 Update URLs to allow clicking 2021-09-08 13:48:20 +08:00
Benau
e85b82001f Fix invalid URL in line breaking 2021-09-08 13:27:09 +08:00
Benau
0c20dda1da Remove SF_DISABLE_URL_HIGHLIGHT flag to avoid conflicts with cache
Manually remove the URL highlighting if needed
2021-09-08 09:38:30 +08:00
Alayan-stk-2
03d1aa1916 Fix #4598 2021-09-08 01:06:45 +02:00
Benau
88d8799498 Fix incorrect getChecklineTriggering on CheckCannon after using 3D check planes 2021-09-07 11:04:33 +08:00
Heuchi
a699982bfa Keep showing arrow on addons widget in main menu
when there are updates for installed addons.
2021-09-06 16:00:11 +02:00
Benau
8c3bacf769 Only save original string in GlyphLayout if needed 2021-09-06 14:51:45 +08:00
Benau
5d5292787e Disable URL highlight on some widgets and screens 2021-09-06 14:33:23 +08:00
Benau
ae98b0cf9b Use LinkHelper::openURL on highlighted URL 2021-09-06 14:19:39 +08:00
Benau
f5f821c925 Use SDL_OpenURL when possible 2021-09-06 11:13:46 +08:00
Benau
280d8fc114 Highlight URL with skin marked text color 2021-09-06 11:05:24 +08:00
Benau
8f41b721ed Share FontWithFace render code with getCluster for more functionality 2021-09-05 08:41:46 +08:00
Benau
4deeac7dc8 Move getCluster code to a dedicated function for later usage 2021-09-05 00:54:52 +08:00
Benau
fe5b49e63a Remove more from server name as seen in server.cpp:247 2021-09-04 13:27:34 +08:00
Benau
3f2e011f11 Skip specific control characters like in the past 2021-09-04 13:13:19 +08:00
Benau
e2118c89c3 Save scrollbar position when opening server info dialog 2021-09-03 22:02:54 +08:00
Benau
b6ca771a0e Fix AI headless instance crash 2021-09-03 20:08:17 +08:00
Benau
5a585b85fb Add basic text handling to lobby chat
Allow opening addons downloading dialog when click url / addon id
after /installaddon and copying text
2021-09-03 19:47:23 +08:00
Benau
c76d41c903 Add callback to IGUIStaticText to allow text handling 2021-09-03 18:25:47 +08:00
Benau
33a4369a71 Store shared original string to glyph layouts directly 2021-09-03 13:09:42 +08:00
Benau
474e2e025a Make glyph clusters follow input text 2021-09-03 11:24:41 +08:00
Benau
9f62ca8802 Move server name to lobby header, scroll it if too long 2021-09-02 16:18:24 +08:00
Benau
1a9090c52c Allow saving multiple rtt dump files 2021-09-01 11:25:02 +08:00
Benau
e3a88c71e2 Allow using shift-f11 in kart selection screen 2021-09-01 11:17:07 +08:00
Benau
f9fa9a764b Update CREDITS 2021-08-30 16:53:37 +08:00
Benau
1a40afc9c5 Update Changelog 2021-08-30 16:50:15 +08:00
QwertyChouskie
efbd8eb75e Screen-space refection: many fixes + optimization (#4575) 2021-08-30 16:34:02 +08:00
Benau
25301f9cc6 Update translation source 2021-08-30 16:10:01 +08:00
Benau
48fa33ef58 Fix building with latest freetype 2021-08-30 16:06:34 +08:00
Benau
da881ac459 Update download assets size 2021-08-30 16:06:19 +08:00
Benau
6d763a1e26 Update mojoAL 2021-08-26 09:23:53 +08:00
Benau
bd3fd0957a Update translation and AppData 2021-08-26 01:22:22 +08:00
Benau
f1f5a47bcf Update download assets size 2021-08-25 15:18:15 +08:00
Benau
4d5d33d1cb Try to fix crash found in google play console 2021-08-25 15:17:47 +08:00
PoorPockets McNewHold
e487990fac Update Solus dependencies.
I had previously suggested a pull request for it. However, the main issue with my original pull request was that it didn’t contain some packages I already had installed. So, I’ve corrected on misspelled package name, and added the remaining ones.
2021-08-25 09:07:21 +02:00
riso
2251663c1e Tooltip background for Coal skin (#4584)
* small file size of tooltip.png
2021-08-24 12:04:01 +08:00
riso
26bb43dadd load speedfore.png and speedback.png based on skin 2021-08-20 23:17:17 -05:00
Benau
e66110ae17 Make sure camera is reset if on ground, see #2916 2021-08-20 13:48:40 +08:00
riso
93612e6039 use skin color for tooltip text 2021-08-19 17:21:21 -05:00
riso
a5f0c71a34 put gaugefill_rainbow in the correct place 2021-08-19 17:14:19 -05:00
Benau
037efe60fb Try to fix missing music after switching
m_current_music assignment should be done in sfx thread if music is on
2021-08-19 09:50:23 +08:00
Benau
7a07b716b8 Don't call startMusic every frame on race result screen
It breaks pausing music when going background in android
2021-08-19 09:28:04 +08:00
Benau
a1c099cc1c Fix clearCurrentMusic so it really stops current music 2021-08-19 09:15:43 +08:00
Benau
6d29bb21ba Remove unneeded ranking display in FFA 2021-08-16 10:20:36 +08:00
Benau
bbbd14ccf7 Use a larger addons loading dialog for more buttons now 2021-08-16 10:00:27 +08:00
riso
b1980bc461 color slider for Cartoon 2021-08-15 11:26:52 -05:00
riso
7045f8dbf7 use a rainbow kart color slider 2021-08-13 21:09:24 -05:00
Benau
11ccdda699 Update translation source 2021-08-11 10:52:55 +08:00
Benau
2dffb78679 Implement background download for addons pack 2021-08-11 10:50:27 +08:00
Benau
e823852a21 Add cancel button in downloading addons and assets dialog 2021-08-11 09:28:06 +08:00
Benau
5ec99947e9 Make some flyable sfx lower volume in splitscreen multiplayer 2021-08-10 08:46:45 +08:00
Benau
ad531ba556 Fix crash if missing particle file 2021-08-10 08:20:40 +08:00
Richard Qian
7913457e63 Prevent locked tracks from being played in the high score info dialog 2021-08-09 14:13:11 -05:00
Richard Qian
35ddf4c4d9 See grand prix high scores in the GUI high score manager (#4573) 2021-08-10 01:49:49 +08:00
Benau
639eadaa2d Fix broken cert reading if located in unicode named folder 2021-08-08 14:10:39 +08:00
Benau
b89dd89dad Initialize glyph layouts if text exists to fix #4557 2021-08-06 12:49:38 +08:00
Benau
bc43eee98c Fix broken user creation since PR #4563 2021-08-06 12:46:45 +08:00
Benau
bc667d3b36 Update translation source 2021-08-06 09:36:00 +08:00
Benau
91e2217eba Fix typo 2021-08-06 09:21:42 +08:00
Benau
dfd932caf5 Fix crash in networking grand prix 2021-08-04 09:56:33 +08:00
Kuba
0b45ac9fd9 Add grandprix highscore (#4566) 2021-08-02 11:38:07 +08:00
mrkubax10
0db347739e Fix actions due to change from master to main 2021-07-31 20:12:35 +02:00
PoorPockets McNewHold
9c80415d6b Added Solus dependencies commands
https://getsol.us https://distrowatch.com/table.php?distribution=solus
The package's name are generally the one stated in the README.md already, but they’re a couple of differences. Not that difficult to compensate searching for, but I did it anyway for others.
2021-07-31 08:01:09 +02:00
Benau
608f75e0af Fix GLES2 build 2021-07-29 12:39:00 +08:00
Benau
508eef4b81 Fix exit crash on some AMD driver 2021-07-29 10:44:21 +08:00
mrkubax10
8758795791 Fix logout when changing local name 2021-07-26 15:17:15 +02:00
Kuba
2264ca6faa Fix tracks not showing in grandprix info (#4561)
Tell user grandprix is not available if it includes locked tracks in singleplayer
2021-07-25 01:26:56 +08:00
Benau
6673e3cc48 Update icons licenses 2021-07-23 23:01:19 +08:00
courbe
39006f9889 Rank by greatest time if points equality in Follow the leader for GP (#4562) 2021-07-22 01:58:14 +08:00
Mary
feb0118b94 Fix Switch OpenAL (#4560) 2021-07-21 00:39:36 +08:00
QwertyChouskie
8a7413b3e7 License documentation work (#4556)
* Properly document licenses of files in icons/android folder

* Fix documentation of two files in Cartoon skin
2021-07-19 18:11:56 +08:00
Benau
840a023aa6 Fix invalid memory access when closing window during cutscene 2021-07-19 13:02:49 +08:00
Benau
ced813a483 Fix memory leak 2021-07-19 12:24:47 +08:00
Benau
a92e021625 Fix compilation with old SDL2, fix #4554 2021-07-19 12:22:45 +08:00
Benau
d988f502a4 Add Mbed TLS 3.0 support 2021-07-19 12:07:40 +08:00
CodingJellyfish
b23246fdcf Add goal to race result 2021-07-19 11:44:05 +08:00
Benau
6e8ede289c Update translation and credits 2021-07-17 13:30:16 +08:00
Benau
c351f1bd01 Fix icon size not reset when playing different mode 2021-07-17 13:03:21 +08:00
Benau
24f96ccfc9 Avoid network incompatibility if players add or remove official karts 2021-07-17 11:07:34 +08:00
Benau
a62c355e91 Add code to generate official karts list 2021-07-17 10:59:13 +08:00
Mary Strodl
abdad11a71 switch: mojoal on switch by default 2021-07-15 17:55:36 -04:00
Kuba
feb8ba51ab Show kart rank in race result screen (#4551) 2021-07-15 01:19:55 +08:00
Benau
808dc0e8e4 Use mojoal for switch until openal build is fixed 2021-07-14 12:15:36 +08:00
Benau
dc7eb1e76c Update translation source 2021-07-14 10:49:17 +08:00
Benau
5ec426b275 Don't clear password if downloading error, fix #4549 2021-07-14 10:47:14 +08:00
Benau
f22f4a52ef Remove server bookmarks based on inactive days 2021-07-14 10:44:15 +08:00
Benau
8711265877 Fix sometimes non-clickable server bookmark button 2021-07-14 10:40:30 +08:00
Benau
f490b1039a Remove unneeded characters from server bookmark key 2021-07-14 10:38:59 +08:00
Benau
63cee25884 Hide bookmarks icon when showing lan server 2021-07-14 10:36:25 +08:00
Benau
b465729304 Implement server bookmarks for global networking 2021-07-12 16:50:16 +08:00
Benau
6f7a196c70 Fix crash when pressing close window button in GP result screen 2021-06-29 13:02:16 +08:00
Benau
d2df7c6de9 Fix temple arena broken rescue in graphical server 2021-06-25 19:35:37 +08:00
Benau
26b5d413e4 Update cv2pdb.exe download location 2021-06-25 18:21:01 +08:00
Benau
5b0c9763b4 Fix crash when using check debug with ghost replay and server 2021-06-25 13:09:16 +08:00
Benau
05f029abc0 Upgrade checkline by using two triangles testing 2021-06-25 12:46:29 +08:00
Heuchi
49910c4cea speed up computeChecklineRequirements() 2021-06-22 12:16:54 +02:00
Benau
097ed56626 Update translation and source 2021-06-20 12:50:57 +08:00
Benau
d20d487649 Fix cancel ranked race exploit 2021-06-20 01:19:54 +08:00
mrkubax10
c6c76790dc Show survive time in three strikes battle 2021-06-18 17:36:29 +02:00
Benau
e22946b7f5 Make sure a user exists for server
Lan headless STK can be missing it
2021-06-15 13:01:37 +08:00
Deve
f8836ea4eb Avoid linking with libmvec and try to use static libgcc/libstdc++ libs 2021-06-13 23:53:23 +02:00
Deve
4767b5d48d Update linux build script for new dependencies 2021-06-12 08:21:59 +02:00
Benau
17d26338f8 Add MoltenVK support
SDL_Vulkan_LoadLibrary is used for macOS to keep 10.9 compatibility
2021-06-10 13:21:11 +08:00
Benau
d5c848c4c2 Add basic vulkan driver 2021-06-10 01:02:24 +08:00
Benau
40949a03d2 Fix uninitialized variable in race result screen 2021-06-06 01:08:22 +08:00
Jörn Eichler
87e3e74692 Show kart color on icon list (#4537) 2021-06-06 00:59:39 +08:00
Benau
724386bfcd Fix MSVC x86_64 build 2021-06-05 18:28:48 +08:00
Benau
4a5202f40f Allow setting logger level 2021-06-04 07:22:51 +08:00
Kuba
8f15575eef Added e-mail change dialog (#4536) 2021-06-02 10:21:38 +08:00
Benau
5fed067b9c Update STK irc link to libera.chat 2021-06-02 10:12:50 +08:00
Benau
e347c72f12 Fix uninitialized m_focus_on_cancel 2021-06-02 10:07:34 +08:00
Benau
6c2c5131b0 Add apple.yml and rename main.yml to linux.yml 2021-05-25 09:30:14 +08:00
Heuchi
d4ad37e6c6 Automatically update list when search string is changed in addons_screen 2021-05-22 13:05:01 +02:00
Benau
2f98a011d4 Fix crash when pausing during grand prix 2021-05-22 11:50:34 +08:00
Benau
8124079d6c Fix button state not reset 2021-05-22 11:00:59 +08:00
Benau
d407bb08e2 Fix option device screen for small screen with long text 2021-05-22 09:06:24 +08:00
Benau
04a2306c4c Add ingame option to toggle force feedback of joysticks 2021-05-22 08:12:56 +08:00
Mary
7bf9a0a4a8 Rumble on collisions (#4532) 2021-05-21 23:45:35 +08:00
Benau
10da6285fc Allow disabling tips if empty (or no) tips.xml 2021-05-21 23:33:47 +08:00
Benau
a3e1732ac7 Update translation and AppData file 2021-05-21 23:17:09 +08:00
Benau
38bcb92d53 Fix #4533 2021-05-21 23:13:55 +08:00
Benau
fa03bc4461 Fix compiler warning 2021-05-21 22:04:31 +08:00
Benau
ba2265d2ec Bring back compatibility code of materials for addons 2021-05-21 21:14:26 +08:00
Benau
e992bb9cef Fix simulator missing in Xcode project 2021-05-21 17:47:40 +08:00
Benau
ae32b8fc61 Fix max FPS order for iOS STK 2021-05-21 16:21:06 +08:00
Benau
fd10286f9d Update INSTALL.md for MacOSX 2021-05-21 13:31:00 +08:00
Pino Toscano
cf80fbfca7 Stop installing app icon in pixmaps location (#4534)
The /usr/share/pixmaps location is considered a legacy location for
application icons; since the application icons are already installed in
the global XDG hicolor theme, then simply stop installing the 512px one
in the legacy pixmaps location.
2021-05-20 16:52:27 +08:00
Benau
dad40e59de Fix never ending bell when network game ends 2021-05-20 15:21:50 +08:00
Benau
3ee940b242 Fix possbile null buffer 2021-05-20 15:13:29 +08:00
Benau
ed268331f1 Disable macos-latest in main.yml for now 2021-05-20 11:48:47 +08:00
Benau
35b57a7dbb Add cctools CMake toolchain for cross-compiling all Apple targets 2021-05-20 11:27:18 +08:00
Benau
7109f38725 Update CMake toolchain for iOS Xcode 2021-05-19 11:34:34 +08:00
Benau
e85ef1b879 Fix iOS compilation 2021-05-19 11:32:14 +08:00
Benau
33459e852c Use libsamplerate to handle pitch for MojoAL 2021-05-19 11:29:48 +08:00
Benau
be7b46f7d9 Fix missing initialization of some sound buffer 2021-05-15 00:03:06 +08:00
Benau
8e885d15ac Calculate duration from the original buffer size
MojoAL use SDL_AudioCVT internally which doubles the size
2021-05-14 23:58:59 +08:00
Benau
ec02331c73 Use MojoAL instead of OpenAL for Apple
Because OpenAL in iOS is broken at the moment
2021-05-14 23:51:24 +08:00
Dave Murphy
f938ef38b1 Fix switch hacks (#4530) 2021-05-14 23:45:52 +08:00
Benau
08a97f7ae5 Update download assets size 2021-05-08 11:20:28 +08:00
Benau
32e489b88e Update translation source, AppData and Desktop file 2021-05-08 11:13:41 +08:00
Benau
97994d66ed Fix download assets instruction for Android TV 2021-05-08 11:12:52 +08:00
Kuba
2cc16b4edb Fixed issue #4243 (#4527) 2021-05-08 10:24:36 +08:00
Benau
fc387fa30d Fix broken accelerometer with iOS
After some iOS version it gets reversed for orientation handling
2021-05-07 22:18:16 +08:00
Kuba
8add6fba2f Added last entered IP addresses list (#4525) 2021-05-07 01:01:24 +08:00
Benau
1e38cba76c Update Toolchain-ios-xcode.cmake for new dependencies 2021-05-06 01:17:18 +08:00
Benau
9a20cda1e7 Use weak_framework for CoreHaptics 2021-05-05 13:57:55 +08:00
Benau
ab7ad6058f Update android build instruction with new dependencies download location 2021-05-04 10:40:50 +08:00
Benau
75f14740ad Add a way to print message to stk gui from java 2021-05-04 09:03:38 +08:00
Benau
008884bd72 Update translation 2021-05-02 14:10:04 +08:00
Benau
557ba52ec7 Try to remove screen padding by moving the setting to style file 2021-05-02 14:01:29 +08:00
Benau
98ad55ed4e Fix missing sound with latest OpenAL
And linking error with FreeType
2021-05-02 13:59:18 +08:00
Benau
f909d12749 Use CMake instead of Autoconf tools in Android build script
And replace OpenSSL with MbedTLS
2021-05-02 12:28:42 +08:00
Benau
261932e7b1 Make sure no kart animation exists during goal reset 2021-05-02 00:37:35 +08:00
Benau
4081efbcaa Use initial orientation for device rotation instead of hardcoded values 2021-05-01 16:39:06 +08:00
Benau
3480a5da9b Update MinGW toolchain for new dependencies 2021-05-01 01:29:58 +08:00
Kuba
6e83c825ca Added sound when time is less than 5 s in time based challenges (#4523) 2021-05-01 01:27:18 +08:00
Benau
0d84350ab7 Create Windows installer with GitHub Actions for tagged build 2021-05-01 01:06:11 +08:00
Benau
6bcad633ef Remove built binaries for less cache size 2021-04-30 09:10:59 +08:00
Benau
a2004e53fb Fix GitHub Actions cache not saved 2021-04-30 01:08:07 +08:00
Benau
74010b74b9 Update GitHub Actions build status badges 2021-04-29 12:30:00 +08:00
Benau
4d5dc9f77e Update workflow script for tag changes 2021-04-29 12:24:22 +08:00
Benau
836de13a91 Update Windows building instruction 2021-04-29 12:17:37 +08:00
Benau
b56a042cd3 Fix compiler warnings 2021-04-29 01:13:26 +08:00
Benau
a51b7c4ed4 Remove unused AppVeyor file 2021-04-29 00:54:32 +08:00
Benau
ce1ff8f853 Add Windows GitHub Actions workflow file to upload STK binary 2021-04-29 00:51:23 +08:00
Benau
2a50137966 Disable Wiiuse for MSVC build
We have too many reports about WinHID not found, and it's broken
at the moment for ARM64
2021-04-27 16:26:00 +08:00
Benau
0e9d45665b Update LLVM MinGW toolchain and CMake scripts for ARM64 Windows support 2021-04-27 16:19:17 +08:00
Benau
92f6158ffd Default to DirectX 9 driver for ARM64 Windows 2021-04-27 16:13:47 +08:00
Benau
6e26a0ad80 Add crash reporting support for ARM64 Windows and fix typo for x86_64 2021-04-27 16:07:12 +08:00
Benau
f2845034a0 Remove unused field 2021-04-23 21:29:58 +08:00
Benau
47011140a5 Add code to switch render driver at runtime 2021-04-23 21:21:39 +08:00
Benau
6a24b5cb0e Correct the order of begin / end scene
It fixes DirectX 9 driver warnings
2021-04-23 15:36:16 +08:00
Benau
eb59d5645b Flatten the minimap for DirectX 9 driver
Otherwise some vertices too far from camera will not be rendered
2021-04-23 11:19:49 +08:00
Benau
a5f29bc560 Add GEDX9Texture 2021-04-23 10:58:19 +08:00
Benau
18690fad3a Add scissor test for CD3D9Driver 2021-04-21 16:39:45 +08:00
Benau
b9b5ac2fec Add DirectX 9 driver 2021-04-21 16:33:52 +08:00
Benau
b6d58f55c4 Remove some GL code in race gui 2021-04-21 12:17:45 +08:00
Benau
c58de0a91f Make GEGLTexture texture locking read only 2021-04-21 11:43:01 +08:00
Benau
7367610c1f Fix broken billboard text in legacy gl driver 2021-04-21 10:24:29 +08:00
Benau
8cae79b604 Fix memory leak in legacy device 2021-04-21 09:18:11 +08:00
Benau
a1606f04d7 Fix alpha mask for legacy device 2021-04-21 09:04:39 +08:00
Benau
f3d8b96149 Move scissor test reverse code to gl drivers 2021-04-21 07:56:37 +08:00
Benau
62bf288530 Fix recreate device crash 2021-04-20 16:04:29 +08:00
Benau
b21c620fea Make SDL device handle non-gl drivers 2021-04-20 00:51:42 +08:00
Benau
f95d73c041 Allow starting STK with non-gl drivers 2021-04-19 12:58:46 +08:00
Benau
23ec5ba379 Don't crash if null image 2021-04-19 12:43:35 +08:00
Benau
af7d6cf391 Move scissor test to IVideoDriver 2021-04-19 12:17:10 +08:00
Benau
2c3922f64f Move RGBA conversion to GEGLTexture 2021-04-19 11:41:22 +08:00
Benau
b3aa499cd4 Fix mingw build 2021-04-18 09:46:44 +08:00
Benau
8e01db0bc5 Remove unused code 2021-04-18 00:51:50 +08:00
Benau
64c5762eeb Implement updateTexture for GEGLTexture 2021-04-18 00:50:12 +08:00
Benau
4f9471dcff Add createFontTexture 2021-04-17 15:32:33 +08:00
Benau
b90d4b2d8a Add image manipulator for srgb texture 2021-04-17 13:54:50 +08:00
Benau
f3497a9b3b Remove some reference to STKTexture 2021-04-17 13:26:37 +08:00
Benau
2ef63f997e Allow texture console reloading GEGLTexture 2021-04-17 13:16:27 +08:00
Benau
c4cae7d622 Add GEGLTexture 2021-04-17 12:44:25 +08:00
Benau
85843433c0 Add server dummy texture 2021-04-14 12:09:14 +08:00
Benau
964bb95445 Clear up function parameters 2021-04-14 11:12:54 +08:00
Benau
7496609bfa Use dedicated function to handle sky textures 2021-04-14 09:34:59 +08:00
Benau
c5bbefd476 Use 64bit texture handler for pointer later 2021-04-14 01:05:44 +08:00
Mary
65faa029ca Fix switch github actions cache (#4519) 2021-04-14 01:01:09 +08:00
Benau
16e232091d Fix release location 2021-04-09 11:24:38 +08:00
Mary
7f3de8ff5a Add Switch to Github actions (#4514) 2021-04-09 10:36:49 +08:00
panos
4f55f11000 Revert "Haiku graphics mode scheduler low latency rather power saving for" (#4515)
This reverts commit 087ad350d7.
2021-04-07 17:42:34 +08:00
David Carlier
087ad350d7 Haiku graphics mode scheduler low latency rather power saving for
insuring best performance.
2021-04-01 17:10:08 +00:00
Benau
a738fa66e3 Avoid crashing if broken LOD level
It doesn't matter now because we have auto LOD computing
2021-03-29 11:22:37 +08:00
Deve
0889362f27 Add arm builds to the build script 2021-03-25 23:22:49 +01:00
Benau
5d3e4e97da Allow uploading OSX build to github release page for each commit 2021-03-25 08:55:10 +08:00
Timo Schwarzer
4266f02559 Mark servers as password protected on RR_INCORRECT_PASSWORD 2021-03-23 23:30:32 +01:00
Benau
8819e633f8 Update translation 2021-03-22 08:14:53 +08:00
Benau
c0ffdc78f4 Improve appearance of dialog with display cutout 2021-03-22 07:58:20 +08:00
Benau
4ec4fda91b Implement display cutout support for android 2021-03-22 07:04:21 +08:00
Benau
c7e337f96f Simplify discord rich presence code 2021-03-21 10:03:28 +08:00
Benau
9a0b72a282 Simplify json sanitizing 2021-03-21 09:57:41 +08:00
Benau
4bc85a6179 Allow translating in UTF8 2021-03-20 11:22:06 +08:00
Deve
3a6038fc67 Simplify linux build script a bit 2021-03-20 00:35:40 +01:00
Mary
6631dbdfb9 RichPresence: support addon tracks and karts (#4506)
* RichPresence: support addon tracks and karts

* RichPresence: use 'Story Mode' for internal tracks

* RichPresence: only cache is assets has data

* RichPresence: update RPC after asset list retrieved

* RichPresence: move AssetRequest processing to main thread
2021-03-19 23:37:06 +08:00
Benau
dd5fcfce47 Remove assertion for discord rich presence 2021-03-18 11:03:16 +08:00
Benau
b59c65e989 Fix addon karts display of online games 2021-03-18 10:58:06 +08:00
Benau
7763d851be Add spectate icon in discord rich presence 2021-03-18 10:38:29 +08:00
Benau
cf6bbfae05 Update translation and AppData 2021-03-13 00:52:30 +08:00
Benau
723b13e9c7 Update translation source 2021-03-13 00:52:15 +08:00
Benau
9767f73da6 Don't make debug message translatable 2021-03-13 00:50:54 +08:00
Benau
2dde385cf5 Use dns c library if enabled 2021-03-12 09:32:40 +08:00
Mary Strodl
67af723087 Fix switch compilation 2021-03-11 20:13:27 -05:00
Benau
f1aa29634b Add dns c library 2021-03-12 09:07:14 +08:00
Mary Strodl
9d57deb35b RichPresence: return on doConnect even when disabled 2021-03-11 07:42:51 -05:00
Benau
da05d1e905 Make discord code more thread safe 2021-03-11 10:44:24 +08:00
Benau
f2cc6559e6 Fix coding style and use Log::error instead 2021-03-10 16:49:20 +08:00
Benau
d1092349f7 Fix compiler warnings 2021-03-10 10:57:03 +08:00
Mary
0dd3c62a43 Discord rich presence (#4500)
* WIP RPC support

* Might have windows support now, don't peek

* Windows support

* RichPresence: __SWITCH__ => DISABLE_RPC (for MOBILE_STK support)

* RichPresence: Handle JSON strings according to spec, support for addons icon

* RichPresence: use translated difficulty name

* RichPresence: disable when client_id=-1

* RichPresence: thread connection, show server name on RPC

* RichPresence: destroy on close

* RichPresence: don't compile methods at all if DISABLE_RPC

* RichPresence: fix windows compile (untested)

* RichPresence: fix for mac

* RichPresence: Linux needs MSG_NOSIGNAL still

* RichPresence: fix memory leaks, don't spam update while not connected

* RichPresence: free thread on terminate

* RichPresence: handle initial registration

* RichPresence: fix compiler warning
2021-03-10 10:47:33 +08:00
Mary
8daf149895 Switch fixes (rest of cherry pick) (#4504)
* InputManager: support split joycons, fix mappings

* CFileSystem: getAbsoluteFilename() - replace double slashes

* CFileSystem: typo in macro

* debug: use touch handler for debug (strange behaviour on switch SDL)

* InputManager: don't need SDL_HINT_GAMECONTROLLER_USE_BUTTON_LABELS

* CFileSystem: getAbsoluteFilename() - replace double slashes

* MaterialManager: hack to make material properties apply properly
2021-03-10 09:59:48 +08:00
Mary
cc125c5f68 Switch fixes (#4503)
* InputManager: support split joycons, fix mappings

* CFileSystem: getAbsoluteFilename() - replace double slashes

* CFileSystem: typo in macro

* debug: use touch handler for debug (strange behaviour on switch SDL)

* InputManager: don't need SDL_HINT_GAMECONTROLLER_USE_BUTTON_LABELS
2021-03-09 23:42:48 +08:00
Benau
cee737e405 Fix incorrect shortcut help 2021-03-09 15:08:08 +08:00
Benau
61d7aec726 Fix missing engine sound after changeKart 2021-03-09 15:05:11 +08:00
Benau
48b73520f0 Allow custom skid sound for newly exported karts 2021-03-09 15:02:54 +08:00
Benau
0a97efc37c Add scripting function to instantly change kart 2021-03-09 13:19:38 +08:00
Richard Qian
f269b4db91 Make demo mode use less hard-coded items
The player kart, difficulty, game mode, and reverse are no longer static values

Also ensure that there is a value pressed when exiting demo via a keypress
2021-03-08 21:27:39 -06:00
Richard Qian
969de9e751 Improved artist debug mode (#4501)
* Add more functionality to the debug menu

Includes:
* Front of kart view
* Inverse side of kart view
* Change to kart #9 or #10
* Attachments for AI karts

* Fix enumeration value not handled in switch for debug camera

* More enhancements to the debug menu, part 2

Includes:
* Restore access to the anchor/anvil powerup
* Clear the current powerup or attachment
* Change to kart #11 or #12
* Flatten karts as if they were hit by a swatter
* Block most of the view with plungers

* Enable executing some keypress actions from the debug menu in a new sub-menu

Includes:
* Rescuing karts from menu
* Pausing the game from menu (but keypresses will cause the game to crash)
* Moved "To next kart" menu entry to be right below "To previous kart" for easier reach

* Change print kart positions to info level, better labeling of side kart views

* Prevent crashes when trying to use 'Behind wheel view' on a ghost kart

* Add close button to the debug slider dialog, and a function to enable/disable spinners

* Make it easier to read and select kart camera targets from the debug menu

* Add another dialog (reusing the debug slider code) to allow the user to select
from a slider the kart number to change to

* The 11th and 12th target slots have been removed to make the submenu cleaner,
but the 9th and 10th slots have been left in place

* The predefined slots (1st place to 10th place) actually use numbers

* Improve the appearance of the FPS (frames per second) counter

* Shift the position closer to the center, so that in-race kart icons are not obscured
* The box and text position adapt based on the screen resolution
* Use a thin black border for the font, and make the font white-colored
* Decrease the font scaling to 0.7, so that other UI elements can be seen more easily

* Improve debug keyboard shortcuts handling, rearrange some shortcuts

Most shortcuts are now handled by Debug instead of InputManager directly
Other changes include:
* Fix moving right in 1st-person view not working
* Change the 1st-person view shortcuts to work more like in Blender
* Add more keyboard shortcuts for quickly seeing the top and sides of a kart
* The key to show player list in soccer mode no longer needs to be held down
* Rearrange some shortcuts to flow more naturally

New list of debug keyboard shortcuts:
* F1 - Normal view
* F2 - Top view
* F3 - Right side of kart view
* F4 - Left side of kart view
* F5 - 1st-person view
* F6 - Reload SP textures
* F7 - Next kart
* F8 - Previous kart
* F9 - Show player list in soccer mode
* Q - Move 1st-person view camera down
* E - Move 1st-person view camera up
* R - Rotate 1st-person view camera right
* F - Rotate 1st-person view camera left

* Exit demo mode when there also are no dialogs active; fixes related crashes

* Improve the debug menu, various fixes to some menu items, and mouse-accessible actions

Includes:
* Debug menu opens at the cursor position, but not at off-screen places
* Ensure that the debug menu stays (almost) within the actual window
* Middle mouse button can also be used to access the debug menu
* Move all items into submenus, rearrange most submenus to keep a compact size
* Add ability to set powerup and nitro amount by debug slider dialog
* Label the some commands with the new keyboard shortcuts
* Screenshots can now be saved via the debug menu
* Texture reloading can now be done via the debug menu

* Add more debug shortcut keys, change many of the existing ones

The full shortcuts list will be explained later

Includes:
* Use Control and Shift keys to fit more shortcuts onto fewer keys
* Label the debug menu items with the keys that can be used to activate them
* Fix more debug menu items causing game crashes in certain situations
* Add help message dialog to tell users the list of static/debug shortcuts; incomplete
* Slightly alter the free margins that the debug menu can appear in
* Render target textures (RTT) can now be dumped via the debug menu
* Replace the 10th kart camera target with the last kart camera target
* Switch the shortcuts used for activating history save and manual replay saving

* Finish labelling the remaining debug actions, complete the debug keys help dialog

Unfortunately, the now unused tutorial message dialog has been repurposed for this use,
and the font sizes greater than 'Large' will cause some text to draw outside the dialog

* Document the remaining command-line parameters, clean up some of them

This adds another method that will print out the previously undocumented debug options

Rename --gamepad-visuali[s,z]ation to --gamepad-visuals

Also fix some comments related to the user config, including the game mode numbers

* The AI cannot handle the anvil powerup anymore, but it won't spam logs anymore
2021-03-08 11:23:28 +08:00
Richard Qian
142c9ccf22 Use the last used input device when launching the tutorial from the help menu 2021-03-07 12:16:23 -06:00
Richard Qian
68e6e93f2e Use a button bar for the keypress dialog that appears during controller configuration 2021-03-07 12:13:32 -06:00
Richard Qian
33b75eae96 Use a button bar for the confirm resolution dialog, and make it slightly smaller 2021-03-07 12:09:47 -06:00
Benau
1d65cd9ffc Move premultiplied alpha to shader 2021-03-07 15:41:00 +08:00
Benau
db98783f09 Make switch broadcast detection ipv6 aware (even unused for now) 2021-03-05 09:47:20 +08:00
Mary Strodl
b93a24a184 Clock up CPU while loading 2021-03-04 09:57:02 -05:00
Mary
7509e1bc0a Support broadcast address on switch (and better service calls) (#4498)
* Support broadcast address on switch. Also use R_SUCCEEDED for service calls

* servers_manager: fallback to default broadcast address
2021-03-04 11:23:03 +08:00
Mary
d9b8b7acad Support for Nintendo Switch (#4491)
* WIP support for Nintendo Switch

* OpenAL is usable

* Remove some debug code, add manual crash when DEBUG_NXLINK is on

* Remove more debug logs

* Support touch, account name detection, language detection. Remove resolution settings

* Stylistic changes

* SFXManager: update on main thread

* Add build script, remove crypto.hpp changes, disable opengl recorder on switch

* make: use sudo where needed, libs=>lib, portlib=>portlibs

* make: build harfbuzz with freetype

* main: remove DEBUG_NXLINK

* socket_address: this comment is no longer relevant

* Fix indentation in SDL, remove extra debug logs from InputManager

* InputManager: make log debug, not info

* CMakeLists: add mbedtls include dirs on switch

* main: deinitialize stuff

* main_loop: fix format
2021-03-04 09:23:23 +08:00
Benau
d1e73f550d Update desktop and AppData files 2021-02-26 16:23:20 +08:00
Benau
460c95fb66 Generate desktop and AppData files with python script 2021-02-26 16:08:15 +08:00
Benau
16c52a693e Warn inappropriate network console usage 2021-02-26 12:01:23 +08:00
Benau
3e0a651e01 Fix possible infinite when broken navmesh with separated nodes 2021-02-26 11:55:16 +08:00
Benau
b05452a9c9 Fix possible crash for mbedtls 2021-02-25 12:15:26 +08:00
Benau
fe6d38b9e2 Fix untranslated non-ready fps string 2021-02-25 11:07:54 +08:00
Benau
073c6bcee9 Update country names 2021-02-22 11:25:11 +08:00
Benau
2947ba42a8 Update translation 2021-02-22 11:19:02 +08:00
Benau
035a761b30 Fix text overlapped with long translation 2021-02-22 10:14:06 +08:00
Semphris
d6967050ab Repaired GitHub actions workflow 2021-02-21 00:40:06 -05:00
Benau
d753393f4d Use MbedTLS instead of Nettle 2021-02-21 01:06:22 +08:00
Benau
39c42c3f0c Fix 1st time infinite start after server creation failure 2021-02-19 10:25:46 +08:00
Benau
b6fd98675a Update translation source 2021-02-16 09:27:52 +08:00
QwertyChouskie
559a72aab5 Fix english
Minor fix.
2021-02-15 15:38:48 -08:00
Benau
262c8f2f07 Fix #4488 2021-02-13 10:33:26 +08:00
Benau
cde382bcff Update translation source, appdata and desktop file 2021-02-12 12:47:57 +08:00
samuncle
5cb36e38cf Feature/enable lod autocompute (#3970)
* Enable LoD autocompute

* bring back the autocompute lod function

* Add the area as main function to compute the lod level

* Bring back the area based auto lod computation

Co-authored-by: samuncle <samuncle06@gmail.com>
2021-02-12 11:16:38 +08:00
Richard Qian
f136c6fe36 In-game high scores management (#4483)
* Add in-game high score selection screens, based on the ghost replay screens

Its functionality is basic for now, mainly to let players have a central place to view
their high scores

Other things to improve:
* Allow sorting the high score entries by criteria
* Allow deleting high score nodes and possibly entries
* Use better icons

* The string for the high scores title in the track info screen can now be translated

* Refine in-game high score selection screens

Includes:
* High score info dialog now shows track and setup information
* A race can be started with the displayed setup, using the current player and kart
* Icon to access the screen now placed between the tutorial and achievements buttons
* It is possible to delete a specific high score group or all of the high score groups
* Change the order of some columns to make them easier to hide for non-linear modes
* The list will now filter out enpty high score groups

* Replace bomb icon (as used in the help menu) with the full object version from STK 0.8

It has been edited to remove most of the transparency in the object itself

* Implement column clicking in the high score selection screen, and minor GUI fixes

Note that high score entry sorting is not yet working properly

Includes:
* Top right buttons replaced by button bar containing them; fixes unreliable clicking
* High score manager has some one-line functions moved into its header file
* High scores can be sorted by some criteria
* Sorting is done before every time high scores are saved

* Fix header define names for the high score info dialog

* Fix high score sorting, reorganize its associated code

* More refinements to the high score selection screen

Includes:
* Clearing high scores no longer causes memory leaks
* The manual refresh button has been removed, as it has been deemed useless

* Remove unused header files for the high scores information dialog header

* The high scores box in the track information screen no longer has '='

* Fix pressing escape key in the high score information dialog crashing the game

Also remove unused widget variables and unnecessary function overrides

* Do not write high scores for races that have 0 laps and/or have no real karts

* Allow passing a parameter to prevent high scores from temporarily being written

This setting lasts only as long as the game runs; it is useful during track and
kart animation testing, where unwanted high score entries should not be written

* Force update sources.cmake, as new source files are being added for high scores screens

* Fix memory leak and strings

Co-authored-by: Benau <Benau@users.noreply.github.com>
2021-02-12 11:12:43 +08:00
Richard Qian
ee91cf31e2 Fix missing space in fatal error for non-parent armature bone detection 2021-02-11 12:11:25 -06:00
Richard Qian
9fdec3067e Fix a minor issue for the comment with difficulty not showing SuperTux mode 2021-02-11 12:06:33 -06:00
Richard Qian
a3b34e6823 Several UI fixes (#4484)
* Open the confirm dialog if exiting the grand prix editor with changes by escape key

* When launching the tutorial, use the last used device instead of the first keyboard

* When launching story mode, use the last used device instead of the first keyboard

* Make the kart color selection dialog more consistent with other dialogs

Includes:
* Add an icon button bar with containing actions to apply changes or to cancel them
* The kart only shows its straight frame, without animation; it is slightly smaller
* Adjust the vertical space between widgets, to try keeping the kart size larger

* Use a button bar for the video settings and custom camera settings dialog
2021-02-12 02:01:11 +08:00
samuncle
b43b5c6201 Merge pull request #4478 from supertuxkart/feature/remove-old-code
A lot of old options for materials.xml format where flagged as deprecated. They are now removed. Addons will not break but might have a few visual artifacts. They should be upgraded by artists to the new structure.

The blender exporter was also cleaned.
2021-02-08 23:30:30 +01:00
Benau
4aecc8988d Fix iOS build 2021-02-09 01:41:03 +08:00
Benau
1b062279c6 Update translation 2021-02-08 10:42:28 +08:00
Benau
85cea43077 Allow starting offline CTF from command line 2021-02-08 10:32:10 +08:00
Benau
41bbe3df20 Fix #4477 2021-02-08 08:54:28 +08:00
Benau
d2b98456a7 Fix #4475 2021-02-08 08:25:48 +08:00
jean
89acc4e6a0 Removing sky dome (not used anywhere + deprecated even in irrlicht) 2021-02-07 21:56:58 +01:00
jean
cee3cb79a5 Removed clouds feature. Should be done with custom shaders now. Could be in the future part of weather 2021-02-07 21:31:22 +01:00
jean
ab2e35579f Remove old unused properties 2021-02-07 20:33:29 +01:00
jean
6e64ce70df Remove compositing from supported features (it is replaced by shaders now and was deprecated anyway) 2021-02-07 19:29:30 +01:00
jean
91980a2fdd compositing=coverage was not used and blend was replaced by shader 2021-02-07 19:20:19 +01:00
jean
60d3e6cc1c Port material to newest format 2021-02-07 19:12:13 +01:00
jean
279cfe2754 This removes transparency=yes a xml property not used with the newest exporter 2021-02-07 19:07:33 +01:00
Benau
6e3744157d Add /mute, /unmute and /listmute to mute certain player chat message 2021-02-07 01:33:37 +08:00
Benau
03a684e62e Update translation source 2021-02-06 10:00:28 +08:00
Benau
5d5f01b4b5 Add backward distance in camera setting gui 2021-02-06 09:13:36 +08:00
Benau
d9d665f45f Fix the icon size in vertical split screen 2021-02-06 08:59:08 +08:00
Benau
a97e65d068 Add smooth transition for soccer goal animation 2021-02-05 20:49:44 +08:00
Benau
5ccbb97046 Fix #4353 2021-02-05 14:58:19 +08:00
Benau
fa4318b6ad Implement smooth frame transition for animated mesh 2021-02-05 14:41:39 +08:00
Benau
01de29670a Fix overworld trophy points not being displayed in mobile STK 2021-02-03 09:46:28 +08:00
Benau
06500e18ca Make init android dialog header more visible 2021-02-03 01:24:58 +08:00
Benau
64b58e5790 Fix #4473 2021-01-30 11:01:46 +08:00
Benau
08f402c825 Replace travis with github action 2021-01-29 09:47:33 +08:00
Benau
63ee2baf48 Add new fonts for Malayalam translation 2021-01-29 09:38:12 +08:00
Benau
9448f95475 Update translation 2021-01-29 09:36:34 +08:00
Semphriss
d5ae0f60d4 GitHub Actions workflow can now be triggered manually (#4474)
Co-authored-by: Semphris <semphris@protonmail.com>
2021-01-29 01:38:37 +08:00
Benau
feb0b0a68c Add warning when low battery level for joysticks 2021-01-28 12:23:21 +08:00
Benau
e05c0b095d Update translation 2021-01-28 11:32:16 +08:00
Semphriss
7d366acd42 Added GitHub actions worlkflow file for Linux (#4472)
* Added GitHub actions worlkflow file for Linux

Also includes content needed for macOS, but macOS builds are disabled because harfbuzz can't seem to install properly

* Change license of GitHub Actions workflow file to CC0

Co-authored-by: Semphris <semphris@protonmail.com>
2021-01-27 23:59:19 +08:00
Benau
d1c2688510 Fix outdated new addon arrow if stk is killed in background 2021-01-26 16:33:19 +08:00
Benau
65f23987f1 Fix inconsistent kart size with server 2021-01-26 14:52:22 +08:00
David CARLIER
eb5bb253f3 debugging current thread id on apple too 2021-01-22 20:44:57 +00:00
Joshua Samenfink
011b2cecf2 Change Ubuntu to Debian-based Distributions (#4468)
Ubuntu is based on Debian :)
2021-01-22 17:05:31 +08:00
Deve
b064c38f09 Disable light scattering on android by default 2021-01-21 23:04:36 +01:00
Deve
3b02643db3 Try to enable advanced lighting on newer android phones.
We can see what is the feedback if it's fast enough for users. It still looks much better than without advanced lighting even when resolution is lower.
2021-01-20 00:12:12 +01:00
Deve
a7a1c8abca Some work with scale rtts.
IMO auto scale doesn't have much sense on desktop computers, because advanced lighting was enabled by default for a long time and graphics level 3 should be fast enough as it is. And still now rtts scale it's easily configurable in options.

I fixed deactivated "render resolution" spinner when you enter graphics options when advanced lighting is disabled.

I also added a function that reads dpi on android and it sets rtts scale based on this value. SDL is not initialized yet in this place, so getDisplayDPI() is not possible.
2021-01-19 23:58:51 +01:00
QwertyChouskie
6d3ee0ce31 Add Render resolution (scale_rtts) slider with auto-mode
Auto mode adjusts based on your display's DPI in order to hit a target DPI.  Currently it will default to Always Full for render resolution, but High Quality or even Quality might make a good default, community testing is needed.
2021-01-19 00:12:20 +01:00
David CARLIER
2899cf8977 Mac M1 build fix proposal avoiding mixing up with homwbrew for Rosetta
as well.
2021-01-09 22:33:42 +00:00
Omer I.S
b77bd9816d Update Noto Sans Hebrew (#4462)
* Delete NotoSansHebrew-Regular.ttf

* Update Noto Sans Hebrew

* Delete NotoSansHebrew-Black.ttf

* Update Noto Sans Hebrew
2021-01-06 00:47:09 +08:00
Julian Schönbächler
c799fedf45 Fixing minor ambient lighting bug
Spherical harmonics: if no ambient map assigned, use specified color (but correctly)
2021-01-03 02:07:43 +01:00
riso
3a2632dd62 Small fix of icon size on race result ui and space size on race gui (#4455)
* fix team icon size on race result UI (scale based on text size)

* solve issue of too large space between score and score limit for monospace font
2020-12-27 10:23:43 +08:00
riso
ad5ffc4900 small fix of kart color slider and kart icon in result screen (#4454)
* use default kart color instead of 100 in kart color slider

* scale kart icon in race results

* prevent using font->getDimension
2020-12-26 15:45:28 +08:00
riso
5f6eb5e440 Few improvements of spinner and option UI (#4453)
* few improvements of option UI

* small fix

* show the correct spinner text when not activated

* camera name for translation

* clean the code (loop camera spinner)
2020-12-26 03:29:56 +08:00
David Carlier
edcf9cb624 OpenBSD utility build update. 2020-12-24 16:17:51 +00:00
riso
0d10f11a7f reset camera settings 2020-12-23 23:23:27 -06:00
riso
ce13648721 camera settings 2020-12-23 21:39:30 -06:00
Richard Qian
0db8d50359 More configurable music (loop end support, different race result music) (#4445)
* Allow setting [again] track reverse mode via command line

* Make composer field in music information files optional

* Add support for loop end of music

* Remove print statements used for checking current music play time

* Support playing different music on race results screen

Also make them configurable in stk_config.xml

* Allow configuring grand prix win/lose and feature unlocked music in stk_config.xml

* Fix coding indentation style

* Fix warning when scrolling track screenshots in grand prix results

* Display the rank a player kart finishes in if not in 1st place
2020-12-21 02:14:52 +01:00
Benau
82b7ab0d17 Update translation 2020-12-08 09:27:54 +08:00
Benau
922296f5eb Use correct calling method for jni functions 2020-12-08 09:03:47 +08:00
Benau
0e1732c45d Implement auto acceleration for steering wheel from mobile control 2020-12-08 08:51:30 +08:00
Benau
7f9f4dc182 Fix compilation with latest sdl2 2020-12-05 14:22:59 +08:00
Nathan Mills
ff2d4a950e Fix access out of bounds warning with Cppcheck 2.2 (#4438) 2020-12-05 14:15:44 +08:00
Benau
9f1ae2b761 Try to fix missing translation for korean 2020-12-04 13:53:46 +08:00
Benau
847e9ed417 Update translation, desktop file and appdata 2020-12-04 13:53:07 +08:00
Benau
5596a800f1 Add link to preview release binaries 2020-12-04 12:04:43 +08:00
Benau
dbee027949 Remove references to unused library dependencies 2020-12-04 12:02:27 +08:00
Benau
5500b4dcc9 Avoid making filenames lower case in windows
It breaks fallback translation (zh_TW to zh_tw) which tinygettext
uses zh_TW to detect
2020-12-04 11:08:20 +08:00
Benau
ad7751f952 Allow android 4.1 build 2020-12-04 10:04:44 +08:00
Benau
3f0eb215f7 Replace glew with glad with vulkan support 2020-12-04 09:39:06 +08:00
Benau
85984d143a Only count approved addons for indicator 2020-12-01 16:17:47 +08:00
Benau
61833c9c26 Fix compilation with latest SDL 2020-11-29 12:42:11 +08:00
Benau
273c157b93 Add badge to indicate new addons for downloading 2020-11-28 00:57:40 +08:00
Benau
ae077290bb Update translation source 2020-11-19 14:27:18 +08:00
Benau
60cb0a1ccd Remove duplicated strings 2020-11-19 14:26:45 +08:00
Benau
8eb318675d Allow saving custom camera settings 2020-11-19 12:17:01 +08:00
Benau
0a273d8882 Display race gui in 1 more spectating mode 2020-11-17 01:19:19 +08:00
dulsi
e2d4936056 Add gamerzilla support to achievements. (#4386)
* Add gamerzilla support to achievements.

* Move all gamerzilla code into one file. Should we want to support another achievement system like Steam, it can be isolated to the WebAchievementsStatus class.

* Add WebAchievementsStatus files.

* Add version number to achievements file. Update graphics. Generate achievement list from internal system.
2020-10-31 11:32:40 +08:00
David Carlier
a27737ef85 xdg-open NetBSD supports it too. 2020-10-24 23:01:10 +01:00
Deve
801675603c Some fixes for android build script 2020-10-24 23:46:45 +02:00
MrIceblock
af4cb91f47 Fix some more typos (#4414)
* Some more grammar fixes.

* Fix a typo.
2020-10-25 01:04:54 +08:00
MrIceblock
9d7c63803e Typo (#4413) 2020-10-24 16:33:07 +08:00
Benau
9dbb8e2c8f Fix #4406 2020-10-24 10:11:44 +08:00
Benau
89256f6e30 Update translation 2020-10-24 09:25:49 +08:00
Benau
ccd3f8144c Update first time internet dialog string for removed hardware stats 2020-10-24 09:25:24 +08:00
RedstonekPL
e7557128dd Fixed a typo in camera.cpp
There was a minor typo on line 71.
2020-10-23 20:05:30 +02:00
Newbyte
f5d4475efc Fix build when SDL2 is built with DirectFB support 2020-10-23 12:23:43 +02:00
David Carlier
eace0982a2 DragonFlyBSD support, mainly FreeBSD codepath. 2020-10-10 14:14:49 +01:00
Benau
23e4960fef Don't show kart team completely when spectate 1 in lobby 2020-10-06 07:00:57 +08:00
Dmitry Marakasov
4d97c5156c Fix include path order for all bundled libraries
...to avoid picking system includes when bundled libraries are used

Issue: #4372
2020-10-02 13:05:36 +02:00
riso
0274cd7bd8 Support theming for kart icons (#4395) 2020-10-01 19:11:11 +02:00
QwertyChouskie
4b47cf3f24 Remove separate menu FPS throttling
We should let VSync/m_max_fps (which defaults to 120) do their job.  If a monitor has a refresh rate even slightly higher than 60FPS (e.g. 60.0007FPS), throttling will introduce stutters, even more so at modern high refresh rates (75, 90, 120, etc.)

This also cleans up the code, e.g. the var name `m_throttle_fps` was also being used in the main loop for a different function, despite having the same var name.
2020-09-27 17:10:17 -07:00
QwertyChouskie
1e90c734a3 Condense checkboxes in video options
With the font size set to "Very Large" and the theme set to "Cartoon", the Apply button went slightly outside of the main box.  This fixes that by putting the two checkboxes on the same row, which saves a bit of valuable horizontal space.
2020-09-25 20:35:58 -07:00
Benau
e97d33d6f5 Improve english in AppData 2020-09-21 09:33:35 +08:00
Benau
2fc992ded9 Fix possible crash 2020-09-21 00:49:23 +08:00
Benau
94f4a6f644 Fix typo 2020-09-14 10:30:49 +08:00
Ben Hoff
2474b7496a fix spelling error 2020-09-12 14:31:32 -04:00
Benau
ac832caaeb Fix #4380 2020-09-11 10:14:38 +08:00
Benau
7eb896fe7f Fix #4379 2020-09-11 01:09:32 +08:00
Benau
736209abbe Make chat message mixed with RTL name and LTR text look better 2020-09-10 16:32:04 +08:00
Adnan1091
995fdf8c81 Optimize images 2020-09-09 19:47:37 +03:00
Benau
3bb0f76726 Update translation, AppData and desktop file 2020-09-09 14:49:07 +08:00
Benau
fd4be023d5 Make tinygettext use stk logging 2020-09-09 14:46:29 +08:00
Benau
f1fb30250b Generate plural forms in tinygettext using python script 2020-09-09 13:43:26 +08:00
Benau
1a8b5cd2e1 Fix windows build of tinygettext 2020-09-09 13:36:21 +08:00
Benau
c51d464839 Add new languages to tinygettext 2020-09-09 13:32:53 +08:00
Benau
767ba27598 Add get_all_used_chars to tinygettext 2020-09-09 13:31:37 +08:00
Benau
22fb981fca Disable iconv in tinygettext 2020-09-09 13:29:17 +08:00
Benau
842278ffd9 Update bundled tinygettext
Remove unneeded files like gitignore and test and keep a simplified CMakeLists.txt
2020-09-09 13:27:10 +08:00
Benau
b84f8dcbd3 Generate translation percentage in AppData 2020-09-07 13:01:48 +08:00
Benau
761876d685 Add script to auto update all google play store listings 2020-09-07 11:29:13 +08:00
Benau
6600d16790 Allow generating message for google play beta 2020-09-07 00:45:36 +08:00
Benau
9533cb9d2f Update script to extract message for google play 2020-09-07 00:08:44 +08:00
Benau
6b496f1892 Make AppData translatable and fix #2314 2020-09-04 21:54:02 +08:00
Benau
4ed6c3ce7a Add missing whitespace 2020-09-04 21:46:35 +08:00
Alayan
073e5a4314 Improve the GP editor's track picker layout and behavior
This improves things for #4378 but is not a comprehensive solution. It also includes unrelated improvements to this screen.

- Switch from 2 track rows to 3 track rows. This allows to show more tracks at once. Nonetheless amount of white space between track pictures is still significant. Showing the track name below each track is part of the issue, as it needs space on the bottom and margins on the side to avoid track names overflowing onto each other. Word-wrap for track title would incur a small vertical cost while gaining a lot of horizontal space. Alternatively, the track names could be hidden and only shown on hover (like the game's main track selection screeen).
- Select the standard set of tracks by default instead of all.
- Reduce the amount of vertical spacing for the buttons below the track picker.
- Group laps/reverse and ok/cancel vertically instead of horizontally. This creates clear visual blocks, as the reduced vertical spacing didn't work out well otherwise.
- Add a new selected track picture. The selected track's name is always shown as title, but some users may miss it or not know track names well enough. Now, which track is going to be added to the GP when clicking ok is obvious.
- When selecting a different track, change the lap number to the track's default.
2020-09-03 21:14:11 +02:00
Benau
a36c68542e Make supertuxkart.desktop translatable 2020-09-03 16:43:30 +08:00
Benau
e072122939 Correct the timeout value 2020-09-03 13:35:46 +08:00
Benau
618eb87df0 Use TCP stun for more reliable IP type detection 2020-09-03 13:24:49 +08:00
Andreas Hellquist
6e17d51802 Fixed bug where thunder sounds would continue playing after pausing the game 2020-09-01 20:21:53 +02:00
Dmitry Marakasov
ef911d8401 Fix include path order
...to avoid picking includes from system angelscript when bundled one is used

Fixes #4372
2020-09-01 17:46:16 +03:00
Benau
13fa56d951 Fix #4368 2020-08-31 08:46:02 +08:00
Benau
09319c6c73 Fix #4367 2020-08-31 08:20:50 +08:00
Benau
2e990ac7b3 Fix #4360 2020-08-30 00:44:12 +08:00
Benau
698b6561ba Add default-ip-type info to server_config.xml 2020-08-29 11:47:37 +08:00
Érico Rolim
fe82f77786 network_config: use ns_name_uncompress 2020-08-28 19:30:38 -03:00
Benau
04e538a839 Change release binaries location to GitHub 2020-08-28 23:56:16 +08:00
Alayan-stk-2
fc29cf5fda Switch public ratings to a compound of raw score and RD
The raw score remain used in the core of the formula for expected scores computations.

Also improve the handling of disconnects on rating, with new RD floors
(and so public rating penalty) for recurring disconnects (>= 3 in the last 64 races).
The raw score is less penalized than before, as it's not needed and
make expected score computations more reliable.
2020-08-27 21:43:16 +02:00
Benau
90013b089e Update changelog and credits 2020-08-28 01:42:13 +08:00
Benau
4e6fbd2787 Update android build script to support aab file 2020-08-27 16:28:13 +08:00
Benau
4ee72fde50 Update for latest freetype in android dependencies 2020-08-27 13:06:13 +08:00
Benau
4a4da3c96c Add splash screen to hide black screen in android during launching 2020-08-27 12:52:58 +08:00
Alayan-stk-2
c9fc04720c Add Kiki and Puffy updates to the changelog 2020-08-27 05:35:39 +02:00
Alayan-stk-2
f886eef7ab Final changelog update for the 1.2 release 2020-08-26 20:22:33 +02:00
Benau
96b065cadf Rename Modern skin to Cartoon to fix #4344 2020-08-27 01:21:42 +08:00
Benau
7f8ca9d4ac Proper fix for rubber band effect during resume in mobile STK 2020-08-27 01:04:09 +08:00
Benau
875c2b8eb8 Prevent undefined behaviour if too many players joined battle or soccer 2020-08-27 00:58:09 +08:00
Alayan
f99e13cb78 Fix #4219 2020-08-26 18:26:01 +02:00
Benau
3c6127daab Update donors 2020-08-26 01:29:39 +08:00
Benau
4b9a84eeba Show error message from stk addons server if failing to join server
Translation is thread-safe now so it no longer needs constructor setup
2020-08-26 00:38:19 +08:00
Benau
5348876205 Fix #4327 2020-08-25 23:11:29 +08:00
Benau
067feb70f5 Bring back maximum scores obtained stats for compatibility 2020-08-25 16:40:40 +08:00
Alayan-stk-2
5a7099da02 Add an improved player ranking system 2020-08-24 18:44:28 +02:00
Benau
138dbc7dc4 Update countries translation using tsv file 2020-08-24 22:44:28 +08:00
Benau
96541a2837 Update translation 2020-08-24 10:33:40 +08:00
Benau
60797aa828 Convert deprecated language code (found in Android) 2020-08-24 10:22:44 +08:00
Benau
029af89d36 Fix mcpp library reference in CMakeLists.txt 2020-08-24 01:09:47 +08:00
Benau
7b4d1dca6b Fix valgrind warnings 2020-08-24 00:58:11 +08:00
Benau
dc0a5a9c66 Remove unneeded FriBidi and libraqm files 2020-08-24 00:58:07 +08:00
Benau
369c346857 Use SheenBidi instead of FriBidi and libraqm 2020-08-24 00:55:10 +08:00
Benau
13db1b83c1 Add SheenBidi library for better unicode support 2020-08-24 00:53:04 +08:00
Benau
bdbf961e76 Allow showing online addon kart as tux when live join is on 2020-08-23 16:38:59 +08:00
Alayan-stk-2
40c3f1a290 Update changelog in preparation for the 1.2 release (part 2) 2020-08-22 02:42:28 +02:00
Alayan-stk-2
63703f96f3 Add a minimap indicator for basket-balls
Fix #3246
2020-08-21 19:43:17 +02:00
Benau
37527baf51 Remove unused functions to avoid deprecated sysctl 2020-08-18 12:16:03 +08:00
Benau
18d66db516 Update SuperTuxKart icon files 2020-08-16 14:42:17 +08:00
Benau
30996c5051 Use travis-ci.com instead 2020-08-16 14:39:21 +08:00
Benau
c091574c64 Update default stun list 2020-08-16 14:16:26 +08:00
Maosen the Jellyfish
f7bc0dfd90 Add two new title font presets
Fix #3577
2020-08-13 17:09:15 +02:00
Benau
a8572a7582 Update to emoji 13.0 2020-08-12 00:53:33 +08:00
Benau
34b5b40d4e Don't exit if failed to init sensors
wine supertuxkart.exe at the moment doesn't support sensors
2020-08-11 13:32:32 +08:00
Alayan-stk-2
ceb72a0606 Update changelog in preparation for the 1.2 release (part 1) 2020-08-07 20:23:11 +02:00
risostk
eeb2d36204 fix a small bug 2020-08-05 22:39:35 -05:00
Benau
46649e6b7d Fix always self-moving object in offline game 2020-08-05 12:10:17 +08:00
Benau
2e12eeaa83 Add install addon button in lobby for missing current track 2020-07-29 01:30:47 +08:00
Benau
82e884f3ca Fix freetype detection in osx 2020-07-28 13:10:15 +08:00
Benau
8fc6d6ea49 Fix #4335 2020-07-28 10:52:40 +08:00
Benau
8b61197e21 Fix #4337 2020-07-28 09:48:39 +08:00
Benau
f3640d4896 Remove goal message during live join which can't be dismissed 2020-07-26 12:39:09 +08:00
Benau
78b13eeedf Fix possible empty icon in result screen for addon kart online 2020-07-26 12:36:42 +08:00
Benau
fc0b818430 Allow saving current RTT to png file 2020-07-26 12:33:31 +08:00
Benau
b8ab802f2d Don't focus name textbox first in register screen
Because it will open screen keybord in mobile stk
2020-07-26 01:07:36 +08:00
Benau
5b427d76c6 Remember language selection position after changed 2020-07-26 01:05:38 +08:00
David Carlier
d4a9f1c5b5 online helper enabled on haiku 2020-07-25 13:52:59 +00:00
Benau
833781cf52 Update mobile STK full assets download size 2020-07-22 09:51:05 +08:00
Benau
9599117c28 Add high dpi support to supported platforms 2020-07-22 09:41:15 +08:00
Benau
5dc955114e Add more changes to changelog 2020-07-22 09:33:49 +08:00
Benau
88e189fb89 Update windows installer 2020-07-22 09:31:08 +08:00
Benau
14c904d51a Update changelog 2020-07-21 01:03:28 +08:00
Benau
4c9617139f Allow real addon kart hitbox if live-spectate disabled 2020-07-21 00:58:14 +08:00
QwertyChouskie
4270533f07 Fix button spacing in grand_prix_win.stkgui 2020-07-20 00:57:16 -07:00
QwertyChouskie
247d1162ee Fix button spacing in grand_prix_lose.stkgui
On HiDPI these buttons were too small.
2020-07-20 00:56:26 -07:00
QwertyChouskie
519708ad0c Fix "Custom" button padding in UI Options screen
Also simplify the surrounding code a bit.
2020-07-19 13:19:36 -07:00
Benau
912e3037c0 Update translation 2020-07-19 14:25:13 +08:00
Benau
a3b0c4d240 Make android game data extraction ui translatable 2020-07-19 14:21:14 +08:00
Benau
6aab8857cc Add ChromeOS identity in android 2020-07-18 10:34:15 +08:00
Benau
ab2bd2aa02 Hide possible non-official kart from distro in online 2020-07-18 10:17:52 +08:00
Benau
32cc160630 Allow any addon karts in online with tux hitbox in physics
Live join and spectate are now possible too
2020-07-18 10:04:07 +08:00
Benau
846b77541f Show actual powerup number instead of + in mobile stk 2020-07-17 21:10:37 +08:00
Benau
ca42d0826e Add more spectator camera to mobile stk 2020-07-17 20:57:27 +08:00
Benau
12167aeafb Fix missing general text field dialog enter callback in android 2020-07-17 19:12:00 +08:00
Benau
f2b774d63a Fix possible undismissed screen keyboard in iOS 2020-07-17 19:10:53 +08:00
Benau
31c1003912 Fix iOS screen keyboard misplaced in the beginning 2020-07-17 08:58:18 +08:00
Benau
da589263b8 Fix gamepad only navigation 2020-07-17 07:46:49 +08:00
Benau
df25707873 Focus on close button to prevent enter game state if enter pressed 2020-07-17 01:33:04 +08:00
Benau
73735a079a Use outline font for goal message 2020-07-16 01:26:07 +08:00
Benau
3a62d5179e Fix in game chat dialog crash 2020-07-15 15:56:53 +08:00
Benau
dc8e4ba0dc Add missing key map 2020-07-15 14:49:46 +08:00
Benau
fa943c70e3 Fix missing joystick if device is reinitialized 2020-07-15 14:16:19 +08:00
Benau
2cf5e29272 Remove android tv DPad handling because tv remote exists 2020-07-15 01:02:41 +08:00
Benau
fe8a6fb6a9 Update default value of screen keyboard status after SDL2 is used 2020-07-15 00:21:38 +08:00
Benau
1cc47fae5c Dismiss text input if out focus in non touchscreen android 2020-07-14 16:31:53 +08:00
Benau
33fb8d3f5b Update code for android tv 2020-07-14 15:22:25 +08:00
Benau
ffbf5149cd Determine android STK platform specifically for lobby icon 2020-07-14 09:10:51 +08:00
Benau
da64f5eeab Fix goal message crash and display bug 2020-07-13 16:03:32 +08:00
Benau
097359fcf4 Use native android progress bar for extraction 2020-07-13 11:04:36 +08:00
Benau
d8beb5bdb6 Allow main menu auto resize if missed a resize event 2020-07-12 12:14:46 +08:00
Benau
cef6eb0558 Remove EGL linking dependency 2020-07-12 11:00:53 +08:00
Benau
f202bcd48c Remove unused code 2020-07-12 10:26:37 +08:00
Benau
8ede6dcaa7 Allow resizable activity in android 2020-07-12 10:15:21 +08:00
Benau
90a6dc6023 Allow using emoji keyboard with android screen keyboard together 2020-07-12 08:46:38 +08:00
Benau
4d7fd73543 Fix screen keyboard always open first in create server screen 2020-07-12 08:42:53 +08:00
Benau
f4233977e5 Port moved height to android STK 2020-07-12 08:34:59 +08:00
Benau
8cc4dd3383 Initial work to make android STK use SDL2 completely 2020-07-12 08:25:06 +08:00
Deve
ddd4b8b9c9 Avoid libatomic dependency in linux package 2020-07-11 23:51:52 +02:00
David Carlier
8025571338 util/debug thread naming for haiku. 2020-07-11 10:29:00 +00:00
Benau
296b38ea51 Allow track screen searching with name 2020-07-10 22:12:45 +08:00
Benau
04cd0208e2 Fix delayed handleTextUpdated 2020-07-10 22:08:13 +08:00
Benau
51b50a27cd Add some guidelines for LAN and WAN server 2020-07-10 19:55:28 +08:00
Benau
bd897e390c Fix #4244 2020-07-10 19:28:39 +08:00
Benau
e54bb44e44 Fix #4300 2020-07-10 18:34:57 +08:00
Deve
6b033c840e Merge branch 'master' of https://github.com/supertuxkart/stk-code 2020-07-10 06:10:06 +02:00
Benau
e848713ed4 Improve english source 2020-07-10 13:07:27 +08:00
Benau
c487ad0166 Update translation source 2020-07-10 12:13:12 +08:00
Deve
1fafe910cb Fixed cygwin compilation 2020-07-10 06:09:38 +02:00
Benau
83995cf9d4 Update create_kart_properties.py and include 2020-07-10 12:07:52 +08:00
Luffah
0a6a487b29 add camera settings in option screen (#4273)
* add camera settings in option screen

* Remove camera settings (distance, backward/forward angles, smoothing) from kart characteristics

Co-authored-by: luffah <luffah@runbox.com>
2020-07-10 11:39:19 +08:00
luffah
039a4ac233 update CREDITS 2020-07-09 15:30:58 +02:00
Benau
7f7815efb7 Add missing alt key mapping 2020-07-09 14:18:05 +08:00
Deve
b028c38dd3 Tweak mkdir permissions.
It will use system umask for safety anyway. And ignore user's decision is evil.
2020-07-05 23:27:32 +02:00
Benau
67332bc991 Use gui race message for goal text to avoid confusing with in game chat 2020-07-05 09:50:30 +08:00
Benau
b5f25ef057 Fix assertion when resizing screen in result gui 2020-07-05 09:20:58 +08:00
Benau
453b834f85 Fix missing key binding 2020-07-05 08:39:36 +08:00
Deve
4e57642d7a Remove some DriverRecentEnough from graphical restrictions.
The graphics engine changed a lot since this warning was added and it's
quite possible that it works now. Also that warning causes issues for newer
drivers that have eg. version 4.3.xxx.
2020-07-03 23:41:02 +02:00
Deve
3634649c05 Allow to build linux package on debian jessie for better compatibility 2020-06-27 02:10:32 +02:00
Sebastian Krzyszkowiak
b74dce3887 file_manager: Emit a compiler error when no asset dir is defined for mobile platform
This may save some $HOMEs from being rm -rf'd.
2020-06-25 07:16:38 +02:00
David Carlier
a4b9900aee Haiku glew build fix and update. 2020-06-21 08:11:02 +00:00
David CARLIER
485a346198 Add memory total for NVIDIA cards in the logs (#4315)
* Add memory total for NVIDIA cards in the logs

* define the GL request ID
2020-06-21 02:44:13 +08:00
risostk
0b66f84755 Use skin color for the kart name label on kart selection screen 2020-06-19 17:55:06 -05:00
Deve
4ab33fec8c Small fix for build-tools directories without numbers 2020-06-18 23:28:05 +02:00
risostk
88f2624624 use skin color for player list 2020-06-17 22:00:25 -05:00
Benau
65b13cfeb2 Only rebuild device list when there is difference in gamepad count 2020-06-17 14:42:53 +08:00
Benau
1055dd8932 Remove unused gamepad android config 2020-06-17 11:12:09 +08:00
Benau
11a7cdfe9d Fix server only build 2020-06-17 10:05:10 +08:00
Benau
571cca90d6 Update translation 2020-06-16 14:24:04 +08:00
Benau
5feed3186a Hide the anonymous hardware statistics button because server is down 2020-06-16 14:07:49 +08:00
Benau
451bbd1a4a Allow downloading addon icons on demand, fixed #2844 2020-06-16 14:02:55 +08:00
Benau
2171bd7bf3 Update SDL2 with screen keyboard height functions for iOS 2020-06-16 12:07:13 +08:00
Benau
945565790c Fix crash in OSX
Resizing of screen can only be done in main thread
2020-06-16 09:59:02 +08:00
Benau
d1ab5f8aaf Allow remembering network splitscreen option when opening STK 2020-06-16 09:46:56 +08:00
Benau
07f6282142 Remove hasHardwareKeyboard because it's not reliable in iOS 2020-06-16 08:04:46 +08:00
Benau
89a57e6e19 Allow configure event callback for widgets based on input type
This will allow for example touch screen tapping to not triggering kart
selection in mobile STK
2020-06-16 00:44:11 +08:00
Benau
2b0b941219 Add window position to creation parameters 2020-06-15 16:35:33 +08:00
Benau
964a13368c Fix branch new initialization of iOS STK 2020-06-15 12:02:16 +08:00
risostk
22987062d2 make red team color also configurable 2020-06-14 22:00:58 -05:00
Panagiotis Vasilopoulos
cdb33f18fa Added user agent for Haiku 2020-06-14 22:03:50 +03:00
Panagiotis Vasilopoulos
6e4c4a757d Improved socket code
* Removed assertion
* Fixes networking/compiling on the Haiku operating system

Co-authored-by: Benau <Benau@users.noreply.github.com>
2020-06-14 22:03:50 +03:00
Panagiotis Vasilopoulos
d8709fde8f Added support for Haiku operating system
* OpenGL and SDL2 are used
* Added Haiku platform in Irrlicht configurations
* Added support for Haiku in AngelScript
* Fixed multiple assertions
2020-06-14 22:03:37 +03:00
riso
4694223c03 SVG support (#4306)
* first version of svg support

* merge some nanosvg pr

* look for svg icons first

* bug fix

* scale svg depends on screen size

* use irrlicht headers to get screen size

* finish isALoadableFileFormat for svg

* delete dynamically allocated memory

* fix wrong delete

* only rescale icons, due to size settings in stkskin.xml depends on the size of the image file

* check svg in FileManager::getAsset

* fix large icon in list
2020-06-14 15:15:47 +08:00
Benau
fa8665a360 Add server only irrlicht device 2020-06-14 15:07:15 +08:00
Benau
128ef93abf Fix crashes if resize event exists unexpectedly 2020-06-13 16:36:28 +08:00
Benau
d2474f79aa Update strings for iOS STK 2020-06-13 16:16:27 +08:00
Benau
5ca51fd2a9 Add support for adaptive vsync 2020-06-13 16:10:27 +08:00
Benau
a2675497e0 Fix strings for mobile STK 2020-06-13 15:45:03 +08:00
Benau
84cf6b1ea0 Add pause main loop for mobile STK 2020-06-13 15:38:22 +08:00
Benau
ae3497a31d Save keyboard and gamepad availability result in kart selection screen
Calling hasHardwareKeyboard maybe expensive in iOS
2020-06-12 20:43:00 +08:00
Benau
b054c3b4a0 Add sensors handling to SDL2 2020-06-12 19:38:59 +08:00
Benau
2f094f4a29 Update iOS toolchain 2020-06-12 16:46:07 +08:00
Benau
a201507763 Clean up irrlicht linking 2020-06-12 12:23:43 +08:00
Benau
784d641ebc Add screen keyboard handling for iOS 2020-06-11 13:53:47 +08:00
Benau
05a75dcbce Add touch event to SDL2 2020-06-11 12:00:14 +08:00
Benau
ea0380ae16 Use SDL2 to create iOS device 2020-06-11 11:40:25 +08:00
Benau
23a26648d8 Improve in game resizing handling 2020-06-09 11:56:05 +08:00
Benau
0a7f9cd314 Add race gui resizing 2020-06-09 11:05:56 +08:00
Benau
83a49068e4 Add text billboard resizing 2020-06-09 10:56:19 +08:00
Benau
81def6cb65 Add in game screen resizing 2020-06-07 16:03:16 +08:00
Benau
d4cd6d6fc9 Add minimum window size 2020-06-06 01:02:01 +08:00
Benau
2f1acc8139 Enable screen resizing in some places 2020-06-04 15:51:54 +08:00
Benau
da1d41bf85 Add resizing of GUIEngine (only works with some screen) 2020-06-04 15:49:34 +08:00
Benau
d7695cb0a7 Fix crash when render loading polling joystick event 2020-06-02 15:14:09 +08:00
Benau
7d16f2456a Add unicode text input with SDL2 2020-06-02 10:58:39 +08:00
Benau
cc13d32951 Use SDL2 clipboard for edit box 2020-06-02 10:46:20 +08:00
Benau
2eaca2091e Use SDL2 to handle window creation 2020-06-02 10:36:06 +08:00
Deve
4298e686d0 Add missing directories in clean command 2020-06-01 00:57:31 +02:00
Deve
880aaa8121 Add stk-editor to the build script 2020-06-01 00:56:01 +02:00
Benau
9c0c7f62c9 Update translation source 2020-05-31 12:04:26 +08:00
Benau
3c80892b86 Allow specifying python version in update_pot.sh 2020-05-31 12:01:47 +08:00
Benau
03fd9f1639 Fix broken translation generation 2020-05-31 12:00:21 +08:00
Deve
12ec0621a1 Add linux build script 2020-05-31 00:05:34 +02:00
riso
661688db2d Show a message once a goal is made in soccer (#4304)
* log the goal on server once a player scored in soccer

* show a message once a player made a goal in soccer

* bug fix, add comments

* remove server log
2020-05-30 13:28:27 +08:00
Benau
7829cb3928 Avoid possible crash 2020-05-24 23:59:41 +08:00
riso
b22c09e345 Os emoji in lobby (#4298)
* first version, not work with old version server

* fix bug of sending extra byte

* delete the extra line
2020-05-24 23:56:25 +08:00
Benau
f316a83c63 Limit max user name length for offline account in server 2020-05-23 13:35:05 +08:00
Benau
92b40a986f Remove duplicated code 2020-05-23 13:12:10 +08:00
Benau
cbb3863180 Use std::unique_ptr for message queue memory management 2020-05-23 13:02:04 +08:00
Benau
acf862903d Allow message queue changing size with font 2020-05-23 12:52:00 +08:00
Benau
30e39b5a7a Fix crash during encoding when exiting race 2020-05-23 12:13:09 +08:00
3risian
712854b33a Expose getDifficulty() to scripting 2020-05-23 11:40:58 +10:00
Benau
68aa1c3346 Update translation 2020-05-18 00:01:43 +08:00
Benau
4a8306fca5 Initialize global variables in android device before android_app->running 2020-05-14 10:49:49 +08:00
Benau
6c5a33fa5c Fix frozen STK when connecting USB hidapi gamepad 2020-05-14 10:48:03 +08:00
Benau
6d30bb8f05 Update android with latest libjpeg, libpng and zlib and remove bundled libraries 2020-05-14 10:13:57 +08:00
Benau
52cf0f16d1 Fix compilation with latest SDL2 2020-05-14 10:07:35 +08:00
Benau
1795495bde Allow picking tracks from addon category now 2020-05-14 09:40:28 +08:00
Benau
ed32329eb3 Update localized language name 2020-05-13 16:33:28 +08:00
Benau
6b43af33fa Add Silesian language support to tinygettext 2020-05-13 15:47:22 +08:00
Benau
54aac69f5e Update translation source 2020-05-13 15:18:39 +08:00
Benau
53bf93f2df Allow always spectating with /spectate [0 or 1] 2020-05-13 11:27:27 +08:00
Benau
b122572a0c Handle invisibility of team chat button depends on settings 2020-05-13 08:53:02 +08:00
Benau
8f40f49506 Fix missing initialization of variables 2020-05-13 08:48:50 +08:00
Benau
e802b21d15 Fix missing country names translation when system language is used 2020-05-13 08:44:28 +08:00
Benau
5d3ccb54b0 Move server refresh list storage to class user
This fixes possible duplicated servers when refreshing too quickly
2020-05-09 13:24:07 +08:00
Benau
0fc9e8dba8 Use std::stable_sort to avoid destroying order when toggling IPv6 2020-05-08 10:13:28 +08:00
Benau
3d74dfea34 Add team chat for online team game 2020-05-08 09:21:37 +08:00
QwertyChouskie
a776650986 Modern skin (#4265)
* Modern skin
The culmination of years worth of work!  Thanks to all who helped make this as amazing as possible!
PNGs were ran through `pngquant` then `optimize_data.sh` for maximum smallness

* Shrink a multitude of icons
Ran through `optipng` then `optimize_data.sh`
2020-05-08 01:16:55 +08:00
Benau
c77a695f35 Add back the default stun servers list to user config
Now we can remove stun server in c8d9383d6a
2020-05-07 15:23:12 +08:00
Benau
c8d9383d6a Allow erasing stun server by using zero weight in dns record 2020-05-07 09:19:41 +08:00
Benau
80d1ba6b10 Revert "Allow music title to be translatable, fix #4281"
Some translator and stk fans think it is confusing
2020-05-06 14:28:46 +08:00
Benau
0db86f6d52 Update translation source 2020-05-05 10:47:22 +08:00
Benau
70a9aaf5a5 Rename Exit Race to Quit Server to avoid confusion 2020-05-05 10:40:31 +08:00
Benau
d03a821e53 Allow music title to be translatable, fix #4281 2020-05-05 10:22:21 +08:00
QwertyChouskie
28b9d3aea8 Add PrefersNonDefaultGPU=true to .desktop
See http://www.hadess.net/2020/05/dual-gpu-support-launch-on-discrete-gpu.html for details.
2020-05-04 17:56:43 -07:00
Karl Ove Hufthammer
1d9e6f8135 Make formatting of song title translatable
Different languages use different quotation marks and spacing
(e.g., « Song title » in French), so the formatting needs
to be translatable.
2020-05-02 13:32:57 +02:00
QwertyChouskie
3359862b2b Update shoulder-less controller mapping
Although there's not much we can do about accel on the shoulder-less config, we can at least make the menu keys and pause/rescue consistent with the shouldered config.
2020-05-01 20:39:01 -07:00
Benau
69b2f5fce7 Fix #4278 2020-05-02 11:08:18 +08:00
Benau
980bc0903a Use a better english source for clearer translation 2020-05-01 12:21:32 +08:00
Benau
cf24157358 Fix #2438 with SDL2 gamecontroller mapping 2020-05-01 12:17:14 +08:00
Benau
3bb910099d Update buttons translation 2020-05-01 11:40:21 +08:00
Benau
9f217ccf62 Add some text drawing batching in race gui 2020-05-01 09:55:29 +08:00
Benau
e892b43d0e Remove unneeded setShadow because black border is always used 2020-05-01 09:51:24 +08:00
Benau
5c77e641e9 Add batch drawing for list box widget 2020-05-01 09:45:22 +08:00
Benau
4d72b118e3 Batch glyph for quicker text rendering 2020-05-01 09:34:04 +08:00
Benau
719af8c54b Add the missing checking for wrong password 2020-05-01 08:36:53 +08:00
Benau
7154af2278 Fix SDL2 include directory in iOS toolchain 2020-05-01 00:40:55 +08:00
Benau
a1b592beb1 Fixed incorrect Ubuntu SDL2 dependency name 2020-04-30 23:46:16 +08:00
Benau
b1bcfd94a1 Fix crash when widget is cleared and old spinner widget received callback 2020-04-30 16:34:44 +08:00
Benau
10af6f7a80 Allow updating kart color when slider moves with mouse 2020-04-30 16:10:41 +08:00
Benau
cc9980f2a4 Allow re-enter password instantly for failed private server joining 2020-04-30 07:43:14 +08:00
Benau
1bd34e338e Allow showing or hiding soccer player list with F7 in artist debug mode 2020-04-29 01:09:33 +08:00
Benau
5dffc8cfa1 Allow exit splitscreen multiplayer with gamepad only 2020-04-28 12:37:40 +08:00
Benau
ea6115273d Update translation source 2020-04-28 10:34:42 +08:00
Benau
11757a557a Update gui strings and hide some button for mobile stk (with gamepad) 2020-04-28 10:20:24 +08:00
Benau
e7e702ad39 Fix crashes if broken mesh is loaded (found in google play) 2020-04-28 09:27:25 +08:00
Benau
720ed698ce Use bitset for easier code and fix more than 1 possible hat 2020-04-28 01:12:05 +08:00
Benau
cd8848ad53 Use timer only for analog axis 2020-04-27 01:12:06 +08:00
Benau
957fe41f3d Remove unneeded axis checking after SDL2 is used 2020-04-21 20:05:50 +08:00
Benau
0e023cae78 Use sdl mapping to determine if axes are analog 2020-04-21 19:57:04 +08:00
Benau
32e3e4a504 Make gamepad visualization work with SDL2 2020-04-21 19:40:30 +08:00
Benau
6a875e04b6 Remove user id from XInput devices name to allow hotplugging with same config 2020-04-21 18:47:16 +08:00
Benau
96ec4d9c3d Try to fix duplicated event produced by button 2020-04-21 18:33:56 +08:00
Benau
8c412ee840 Push desktop kart selection depends on device available in mobile STK 2020-04-21 18:26:45 +08:00
Benau
abfb9e535c Allow gamepad without mapped buttons to use scan code directly in android 2020-04-21 18:07:43 +08:00
Benau
5faa856b0e Fix keyboard arrow binding bug 2020-04-21 16:33:34 +08:00
Benau
8f9fc8f7fe Handle all input events in java 2020-04-21 15:47:04 +08:00
Benau
bae2262bd9 Add SDL2 to android 2020-04-21 15:28:02 +08:00
Benau
5eb7b023b3 Add SDL2 to iOS 2020-04-21 10:11:41 +08:00
Benau
6db8906adb Add default mapping from sdl controller
Also adjust default non-sdl mapping, maybe now 4 actions in 1 stick
works better...
2020-04-21 09:46:00 +08:00
Benau
2405a3a00c Add sdl controller mapping parser 2020-04-21 09:07:29 +08:00
Benau
d3f45e84a3 Add default setting for binding which STICKBUTTON uses 2020-04-21 00:54:20 +08:00
Benau
130be12a64 Fix input sensing with SDL2 2020-04-21 00:30:03 +08:00
Benau
189938e179 Make gamepad auto added or removed in option screen 2020-04-21 00:19:51 +08:00
Benau
00cb6c2d48 Use SDL2 for better gamepad support and hotplug 2020-04-21 00:14:32 +08:00
luffah
cd7aa2c90c replace split screen horizontal checkbox by a spinner vertical/horizontal 2020-04-19 15:56:49 +02:00
Deve
88035779a1 Update run_server.sh 2020-04-19 00:27:00 +02:00
Deve
e6464fff9e Don't spam in server logs 2020-04-16 22:38:47 +02:00
luffah
914f1a6a77 add user option (config.xml) to substitute look back camera by a camera that follows the ball in soccer mode 2020-04-16 18:50:35 +02:00
luffah
2ca815ace4 add top view for spectator mode & remove gui item view for this camera mode 2020-04-16 16:24:56 +02:00
Benau
aec3790a19 Use a better type for replacement of ssize_t 2020-04-14 12:48:50 +08:00
Benau
8aca832441 Fix msvc build 2020-04-14 11:53:03 +08:00
Benau
93cf4bab52 Fix crash in case system doesn't support IPv4 or IPv6 2020-04-14 11:35:43 +08:00
Benau
8e64433c3a Add inet_pton for Windows XP support 2020-04-14 11:00:59 +08:00
Benau
c1a28c6459 Update for new curl with IPv6 support 2020-04-14 10:56:07 +08:00
Benau
359e2ff84f Add llvm mingw for pdb generation
It uses visual studio dependencies
2020-04-11 16:25:58 +08:00
Benau
9157fb43f0 Use std::thread, std::mutex and std::condition_variable everywhere 2020-04-11 11:01:18 +08:00
Benau
b6e9fcd801 Use std::thread for wiimote manager 2020-04-11 00:48:11 +08:00
Benau
f6be14d157 Add proper cleaning of thread for news manager 2020-04-11 00:33:29 +08:00
Benau
ccc4bc793d Fix possbile conflict with SearchPathW 2020-04-10 10:02:53 +08:00
Benau
5aafb42b28 Use thread local for thread id mapping in profiler 2020-04-10 09:58:45 +08:00
wb9688
b7342a9774 Use smoothed position for kart sounds (#4264)
* Use smoothed position for kart sounds

* Don't use smoothed position for explosion

Co-authored-by: wb9688 <wb9688@users.noreply.github.com>
2020-04-10 00:14:10 +08:00
QwertyChouskie
c840b2b2c9 Use better icon for adding friend 2020-04-08 18:17:07 -07:00
QwertyChouskie
694d169ef4 Fix more textures paths 2020-04-08 18:14:10 -07:00
QwertyChouskie
e614f9f384 Remove old code
It's never reached as it's impossible to build STK with stock Irrlicht
2020-04-08 17:44:15 -07:00
QwertyChouskie
7c287676a5 Fix display of anchor icon 2020-04-08 17:41:36 -07:00
Benau
a0e4835602 Fix wrong prediction of powerup in online soccer 2020-04-06 15:00:47 +08:00
Benau
f55331cf65 Fix duplicated event for joining in splitscreen screen 2020-04-06 10:24:10 +08:00
David Carlier
12afc23e4e NetBSD build few updates. 2020-04-05 16:10:34 +01:00
Benau
bffca4f812 Fix sticking of pause button in spectate mode 2020-04-04 01:10:16 +08:00
Benau
211249211b Update translation 2020-04-03 14:29:57 +08:00
Benau
ec93746513 Fix #4257 2020-04-03 14:28:21 +08:00
Benau
84d38cd221 Sort kart with position for soccer spectate with icons code updated 2020-04-03 14:19:20 +08:00
Benau
0d0da15a62 Use std::vector for ai profiles so the order is preserved 2020-04-03 14:10:52 +08:00
Benau
22ff215d15 Allow using pause action in spectate for gamepad only controlling 2020-04-03 13:35:47 +08:00
Benau
b7adc72cb9 Fix missing icon swap-icon.png 2020-04-03 13:32:03 +08:00
QwertyChouskie
ea4d3c03a9 Allow theming of powerup/attachment icons (#4258)
* Allow theming of powerup/attachment icons
Icons were optimized with `pngquant` then `optimize_data.sh`

* Change help screens to use icons from icons folder rather than `models`
2020-04-03 13:18:50 +08:00
Benau
f9f5d3ebb1 Fix broken IPv4 direct connection after LAN server creation 2020-03-29 11:41:11 +08:00
Benau
76c78b82d8 Fix broken backward spectate camera after switching to soccer one 2020-03-29 10:34:06 +08:00
Benau
da4b985b8f Fix broken map fire to select which lead to duplicated events 2020-03-29 09:32:01 +08:00
QwertyChouskie
da5cbee577 Fix missing track icon on track info screen not being themed
Also fixes the aspect ratio and increases the resolution.
2020-03-28 18:19:51 -07:00
Benau
6991305b71 Remove unused field in class 2020-03-27 12:46:23 +08:00
Benau
20bcd1ae05 Use the same order as team side for drawing soccer kart list 2020-03-27 12:41:34 +08:00
Benau
2f4f0ea560 Fix missing control when gamepad has no axis at all 2020-03-27 12:29:25 +08:00
Benau
b8e9ada499 Allow jni attach and detach thread only once
For the other jni usage at the moment they are not in main thread
2020-03-25 00:38:54 +08:00
Benau
b2c741a4b5 Fixed wrong icon frame with arrow used in kart list 2020-03-24 01:02:19 +08:00
Benau
f47b410d92 Add soccer support to show karts held powerups 2020-03-24 00:46:20 +08:00
QwertyChouskie
3c627170ee Increase size of Loading icon
Also center the whole icon+text to the center of screen, rather than
centering the icon and putting the text below
2020-03-20 12:10:35 -07:00
Benau
4170628d23 Rewrite some code for updated kart characteristics 2020-03-16 11:48:02 +08:00
Benau
a589ab4a10 Update kart characteristics with python script 2020-03-16 11:27:21 +08:00
luffah
8449bf2714 add camera parameter forward-smoothing (bool to set smoothing) and implement forward-up-angle in smoothing case 2020-03-15 19:32:15 +01:00
Benau
bb3e54fd88 Update translation source 2020-03-15 15:56:56 +08:00
Benau
1e5e91dabf Try to fix broken gyroscope control in iOS 2020-03-15 15:06:32 +08:00
Benau
1b3cc83235 Avoid using android robot icon 2020-03-15 14:05:41 +08:00
Benau
932f0f888e Avoid updating editbox if hardware keyboard connected which discards all input 2020-03-15 13:58:51 +08:00
Benau
7174bcb741 Change help for touch device 2020-03-15 13:55:40 +08:00
Benau
840a8cbb2d Add tablet icon for touch device icon 2020-03-15 13:54:28 +08:00
Benau
89685bd101 Update translation 2020-03-15 10:33:50 +08:00
Benau
2cf36570c4 Fix missing initialization of confirmed item ticks in child server 2020-03-15 10:14:29 +08:00
Benau
846ee94247 Try to fix STKPeer destructor crash 2020-03-15 10:13:21 +08:00
Benau
a1fa1749d1 Make sure the correct socket type is used 2020-03-15 10:10:59 +08:00
Benau
9860191409 Rename IPv6 server option to allow old config to use as default 2020-03-15 10:10:05 +08:00
Benau
364936e37b Allow getting stun server list using SRV records 2020-03-15 10:05:13 +08:00
Benau
7598dc7b37 Use minidns for android to fix starting crash 2020-03-13 21:31:33 +08:00
Luffah
cf6225e3ae add a camera mode to spectate soccer in large isometric view (switchable with accel/brake keys) (#4245)
Co-authored-by: luffah <luffah@runbox.com>
2020-03-13 13:08:40 +08:00
Benau
490bb88cb0 Fix wrong size of accelerator icon in init dialog 2020-03-13 00:20:27 +08:00
Benau
fbb1889faa Pause request in iOS STK to avoid crash when pressing home button 2020-03-12 23:48:29 +08:00
Benau
8b197b4a15 Fix linking error in x86 android 2020-03-11 16:41:31 +08:00
Benau
dccbe675fc Quick fix for weird "triangle selection" in touch screen for dynamic ribbon widget 2020-03-11 15:45:28 +08:00
Benau
80dd4732f3 Disable unsupported setter from kart for network ai 2020-03-11 15:44:59 +08:00
Benau
65cd28f767 Always enable crash checking for network ai 2020-03-11 15:44:45 +08:00
Benau
fd4cac7c9d Fix non-updating slip stream texture after kart finished race 2020-03-11 15:42:14 +08:00
Benau
afa60c4537 Disable scripting engine in child process 2020-03-11 15:35:02 +08:00
riso
1d855ccfd7 allow 0 player number if there is AI (#4240)
* allow 0 player number if there is AI

* space
2020-03-11 12:05:29 +08:00
Benau
da561b7081 Update child process addons newly installed in lobby 2020-03-09 23:44:36 +08:00
Benau
d4c9b16c28 Don't kick in game GUI server host so he can idle in game
Fixed #4237
2020-03-09 16:19:54 +08:00
Benau
07e471c8ba Avoid calling gui and music related functions in child process 2020-03-09 16:14:12 +08:00
Benau
10e7ac603f Fix possible bullet crash 2020-03-09 16:12:49 +08:00
Benau
1ea75b5f0e Update translation string 2020-03-07 11:53:43 +08:00
Benau
c542feaf4d Include all tracks by default using android app bundle 2020-03-06 10:37:01 +08:00
QwertyChouskie
487fbfdbba Tweaks to tips (#4193)
Mainly just grammar fixes and re-wording here.
2020-03-04 11:56:10 +08:00
Benau
122d2cf737 Fix string grammar 2020-03-01 10:18:34 +08:00
Benau
bd513646ac Show a better change team text for multitouch device 2020-03-01 10:17:00 +08:00
Benau
f9a85f9c72 Update translation 2020-03-01 01:21:04 +08:00
Benau
ed0a2b49e7 Add soccer tips set 2020-03-01 01:16:37 +08:00
Benau
8b8f03ad75 Tell the main process network type 2020-03-01 00:40:29 +08:00
Benau
e584bced0e Enable iOS server creation 2020-02-29 01:26:01 +08:00
Benau
6630f21295 Allow building with latest ndk 2020-02-29 01:18:09 +08:00
Benau
8b119201dc Use request manager to handle server recovery and registration 2020-02-29 01:16:20 +08:00
Benau
e31bd30f1f Avoid exit hang in wan server for GUI server 2020-02-28 22:49:21 +08:00
Benau
ee22c0f714 Stop STKHost if cannot register public address 2020-02-28 22:49:06 +08:00
Benau
eff00140f1 Remove unneeded previous unjoin because request is executed one by one 2020-02-28 20:27:26 +08:00
Benau
9a7dcf8d8b Fix global variable of rubber ball id 2020-02-28 19:53:18 +08:00
Benau
e6deaabcf1 Use std::atomic enum for SFXStatus 2020-02-28 19:53:13 +08:00
Benau
a2f72a0d13 Avoid including sfx_manager.hpp inside kart properties header 2020-02-28 19:53:08 +08:00
Benau
f590280431 Fix mobile STK server logging 2020-02-28 19:53:01 +08:00
Benau
f37a5ee5d3 Only use sound and music in main process 2020-02-28 19:52:54 +08:00
Benau
885aec8020 Add 3d animation ipo copying to child track objects 2020-02-28 19:52:23 +08:00
Benau
607c6932f0 Add track object copying to child process 2020-02-28 19:52:17 +08:00
Benau
f3b5938b8e Use a new way to identify server owner in graphical server 2020-02-28 19:52:12 +08:00
Benau
4322f47413 Reset graphical client server if its owner quited the game 2020-02-28 19:52:07 +08:00
Benau
97ad138763 Fix child process invalid usage at different places 2020-02-28 19:52:00 +08:00
Benau
d41594ea5b Initial working of starting game if no physical object exists 2020-02-28 19:51:40 +08:00
Benau
6b08a873a2 Allow world to have 2 process instances
Also add specific process type handling to world
2020-02-28 09:43:25 +08:00
Benau
1958e5940c Allow rewind manager to have 2 process instances 2020-02-28 09:43:19 +08:00
Benau
ca0749cf6b Allow game protocol to have 2 process instances 2020-02-28 09:43:13 +08:00
Benau
6a635e1a56 Turn physics into a singleton get for 2 processes 2020-02-28 09:43:05 +08:00
Benau
63bad92765 Turn race event manager into a singleton get for 2 processes 2020-02-28 09:43:00 +08:00
Benau
ccdca532b5 Turn projectile manager into a singleton get for 2 processes 2020-02-28 09:42:52 +08:00
Benau
6a3e606c2d Turn race manager into a singleton get for 2 processes 2020-02-28 09:42:44 +08:00
Benau
c8ea01d264 Initial work on client server within same process 2020-02-28 09:41:07 +08:00
Benau
b7f2a9614d Add tool for server creation in the same process
For iOS or Android App Bundle (or other platform) where create process
or fork is not possible or can not be easily done
2020-02-28 09:35:25 +08:00
Benau
d63c68af78 Add thread safe log prefix assignment 2020-02-28 09:35:11 +08:00
Benau
56fb1b9cba Add header helper for thread local storage 2020-02-28 09:35:07 +08:00
Benau
015530e1eb Don't dismiss dialog in no graphics world of STK 2020-02-28 09:32:22 +08:00
Benau
d7003ab9c3 Remove global variable in btQuantizedBvh 2020-02-28 09:32:11 +08:00
Benau
eed95e7c92 Remove global variable in btCollisionDispatcher 2020-02-28 09:31:11 +08:00
Benau
8008753aa5 Remove global variables in btOverlappingPairCache 2020-02-28 09:31:07 +08:00
Benau
1cb966d04d Remove global variable in btSequentialImpulseConstraintSolver 2020-02-28 09:31:02 +08:00
Benau
a58c443247 Remove global variables in btGjkPairDetector 2020-02-28 09:30:56 +08:00
Benau
05ed086d28 Remove global variables in btAlignedAllocator 2020-02-28 09:30:52 +08:00
Benau
336883e2e7 Remove global variables in btRigidBody 2020-02-28 09:30:47 +08:00
Benau
ef1d74b961 Move C and CXX flags earlier to allow libraries of STK to use sanitizer 2020-02-28 09:30:00 +08:00
Benau
fa0da462fb Update ENetAddress to use 5 uint32_t to store IP
ENetAddress ea = {} will allow to listen to any IPv4 or IPv6 address
when using system or bundled enet

The last uint32_t is for IPv6 scope id (required for IPv6 only lan
servers)
2020-02-28 00:59:37 +08:00
Benau
8995491eb6 Update enet to 1.3.14 (remove all IPv6 changes first) 2020-02-28 00:55:10 +08:00
Benau
6d85a03423 Remove unneeded checking of client lobby peer connection 2020-02-27 11:02:15 +08:00
Benau
2ddc26ef9c Move disconnected peer checking to STKHost loop to avoid race condition 2020-02-27 11:00:41 +08:00
Benau
f935c68d20 Don't discard static message in no graphics STK 2020-02-25 12:22:35 +08:00
Benau
a418302d9f Add thread safe function for server time logging prefix 2020-02-25 12:17:27 +08:00
Benau
40c57e8115 Don't check dialog for enterGameState in no graphics STK 2020-02-25 09:55:59 +08:00
Benau
c9dc68e578 Move item manager to track to allow copying easier later 2020-02-24 11:10:06 +08:00
Benau
f325a0fa14 Add code for copying check structures 2020-02-24 10:58:17 +08:00
Benau
3d13686af7 Move check manager to track to allow copying easier later 2020-02-24 10:57:57 +08:00
Benau
306eb1b531 Disable built-in bullet profiler which uses global variables
It breaks client and server in same process later
2020-02-24 09:26:22 +08:00
Deve
11cac8f631 Fixed bad accelerometer icon proportion 2020-02-23 18:24:41 +01:00
Deve
e32f032e68 Generate assets for fdroid in android builder 2020-02-23 00:41:59 +01:00
Deve
bf5ebef481 Allow to set input/output dir for generate assets script 2020-02-23 00:41:59 +01:00
Benau
325cc243c5 Remove more hit effects for no graphics STK 2020-02-23 01:26:59 +08:00
Benau
68ecc980c7 Allow compiling STK with thread sanitizer 2020-02-23 01:14:41 +08:00
Benau
2872706317 Use separated fixed body for multiple physics instances later 2020-02-23 01:14:20 +08:00
Benau
5e32ab8d07 Remove hit effect in physics for no graphics STK 2020-02-23 01:13:59 +08:00
Benau
96541cf8af Remove irrlicht item node in no graphics STK 2020-02-20 11:00:49 +08:00
Benau
c0a350fe6e Don't create hit effect for no graphics STK 2020-02-20 10:09:29 +08:00
Benau
3bbca7849d Remove irrlicht node for flyable in no graphics STK 2020-02-20 09:46:34 +08:00
Benau
13df4ee83a Don't create collision particles in no graphics STK 2020-02-20 08:57:29 +08:00
Benau
e01381c508 Don't create irrlicht kart node in no graphics STK 2020-02-20 08:52:33 +08:00
Benau
beba4fd4c3 Don't create stars in no graphics 2020-02-20 08:22:35 +08:00
Benau
b799d6454b Don't create particle node with no graphics for kart gfx 2020-02-20 08:07:44 +08:00
Benau
373562bb3c Remove irrlicht node usage from world with no graphics STK 2020-02-19 16:38:28 +08:00
Benau
970fa4a0b5 Allow reverting default configuration name with empty input 2020-02-19 01:42:07 +08:00
Benau
09cc3a47f0 Avoid handling of camera in no graphics STK 2020-02-19 01:31:53 +08:00
GuillaumeBft
2ff79baf26 Add rename config option (#4233)
* Add rename config option

* xmlDe/Encode to deal with " character

* m_config_name string -> stringw

* wcslen() -> empty() , remove useless c_str()
2020-02-19 00:37:26 +08:00
riso
740d57a2c4 Show kart direction by an arrow in soccer (#4230)
* Show kart direction by an arrow in soccer

* bug fix

* bug fix

* correct grammar
2020-02-16 16:31:30 +08:00
Benau
3df7feb654 Fix android compilation 2020-02-15 16:41:20 +08:00
Benau
4a9135c8c0 Avoid pushing and using screen in no graphics 2020-02-15 16:38:49 +08:00
marjorieB
840771d189 Migration Python2 towards Python3 (#4232)
The modified code stays compatible with Python2.
2020-02-15 14:33:25 +08:00
Benau
88bbdbdc92 Move no graphics setting to guiengine which is a better place 2020-02-15 14:00:48 +08:00
Benau
0912ca041b Don't create race gui for no graphics 2020-02-14 13:23:32 +08:00
riso
cf83e4c86c add xcode_build in .gitignore 2020-02-12 23:44:54 +01:00
Benau
45825918d9 Some changes for server in same process 2020-02-12 15:47:30 +08:00
Benau
acdf77baf9 Fix local game crash 2020-02-11 12:58:12 +08:00
Benau
e0f494abcd Allow server AI starting in a same process with client 2020-02-10 16:39:47 +08:00
Benau
92a11c075a Rename NetworkAITester to NetworkAIInstance for a proper name 2020-02-10 09:38:23 +08:00
David Carlier
c9c4149139 slighty less C code proposal 2020-02-08 16:59:25 +00:00
Benau
2cdd6cf754 Fix iOS compiler warning 2020-02-07 13:04:34 +08:00
Benau
ccc2ee1ea3 Add Xcode iOS cmake toolchain
It allows switching run target (iOS device or simulator) inside
Xcode without re-running cmake or changing dependencies files

App Icons can also be specified now
2020-02-07 13:02:07 +08:00
David Carlier
5e3881117d FreeBSD thread name support. 2020-02-06 19:00:02 +00:00
David Carlier
f464b95afb Build fix on *BSD.
dns resolution belongs to the libc on those systems.
2020-02-05 18:05:12 +00:00
Benau
43cf39bdef Allow getting server port with DNS txt record (stk-server-port=) 2020-02-06 00:46:38 +08:00
David Carlier
21cf075e41 FreeBSD build fix proposal. 2020-02-05 15:16:12 +00:00
Benau
99a5675abe Add UserDefinedServer class to allow saving the server name easier 2020-02-05 14:06:51 +08:00
Benau
54e09dbbf3 Enable logging in iOS default with a correct encoding 2020-02-05 12:23:21 +08:00
Benau
746f09a6d0 Use single tap in mobile STK for list widget 2020-02-05 12:12:24 +08:00
Benau
56fa8156d2 Clear NAT64 prefix in better places 2020-02-05 12:07:42 +08:00
Benau
d73022b3ad Set IP type manually in LAN refresh request
We don't need NAT64 address in LAN broadcast anyway
2020-02-05 11:37:05 +08:00
Benau
7c3b8adfc9 Fix convertForIPv6Socket regression since last commit 2020-02-05 11:16:25 +08:00
Benau
e9828b8ab3 Fix wrong IP detection in apple devices 2020-02-05 01:05:18 +08:00
jpenguin
4343dad28d Update NETWORKING.md
Updated CentOS release file
2020-02-03 15:55:46 -08:00
Benau
f8bce05dd6 Fix crash caused by pop sorting with deleted message 2020-02-04 01:26:26 +08:00
Benau
d147291e2a Clean temp files when starting STK instead of exiting 2020-02-03 16:52:45 +08:00
Benau
5683ff7494 Fix sticking quit menu of kart selection screen 2020-02-03 16:40:08 +08:00
Benau
7ba8dfd0a0 Adjust size for some language 2020-02-03 16:11:09 +08:00
Benau
b816f94269 Add a continue button for multitouch device in kart selection 2020-02-03 15:31:25 +08:00
Benau
db95d2f88f Clean temp files manually in mobile STK 2020-02-03 09:39:43 +08:00
Benau
00c7bf561e Fix news manager assert error when exit too early 2020-02-03 01:27:17 +08:00
Benau
35463a12da Avoid possible infinite loop 2020-02-03 00:48:16 +08:00
Benau
0134e9c664 Update translation source 2020-02-02 16:46:05 +08:00
Benau
a079019bb2 Fix possible too long translation 2020-02-02 16:38:26 +08:00
Benau
26dbf67d53 Ask if user want to play tutorial when new profile is created 2020-02-02 16:32:57 +08:00
Benau
906dca1a94 Fix possible address family mismatch (found in android) 2020-02-02 10:52:19 +08:00
Benau
ecb31ad217 Use ipv4only.arpa to detect NAT64 prefix (RFC 7050) 2020-02-02 00:13:25 +08:00
Benau
4ad7e585f8 Remove duplicated code of getaddrinfo 2020-02-01 15:34:41 +08:00
Benau
ae2406d193 Don't print error message for IP detection in case of domain error 2020-02-01 14:48:58 +08:00
Benau
58f4579062 Use getMonoTimeMs() to avoid rand() return the same value in Windows 2020-02-01 14:15:44 +08:00
Benau
10a158db70 Use correct encoding for error message from getaddrinfo in Windows 2020-02-01 14:05:52 +08:00
Benau
33d228bb6d Clean up header files and remove unused class 2020-02-01 10:45:15 +08:00
Benau
23ad6f09a6 Clean up direct connection code with full IPv6 support 2020-02-01 09:30:40 +08:00
Benau
1e9dab821c Allow pre-set IP type in config.xml 2020-01-31 13:20:11 +08:00
Benau
ab315fab4e Remove firewall restriction for IPv6 in server documentation 2020-01-31 00:44:26 +08:00
Benau
17bf24c6d1 Avoid player score being reset if connection to stk addons is broken 2020-01-30 16:55:40 +08:00
Benau
652bf5480a Move port detection to Network class 2020-01-30 16:47:19 +08:00
Benau
e1188c5532 Fix non random client port (NetworkConfig initialized too early) 2020-01-30 11:30:54 +08:00
Benau
964757193b Avoid using IPv6 socket address in IPv4 socket
Also make reload the lan broadcast addresses each time to catch network change
2020-01-30 11:25:03 +08:00
Benau
86dae991e6 Fix SandboxViolation in iOS for IPv6 socket 2020-01-29 11:04:02 +08:00
Benau
0cb62803b2 Port stun address resolve to use SocketAddress 2020-01-29 01:24:38 +08:00
Benau
2c78625ef6 Allow print NAT64 address in IPv4 form for better debugging 2020-01-28 15:15:20 +08:00
Benau
40b0a6371e Allow port specified inside str for SocketAddress 2020-01-28 13:03:37 +08:00
Benau
61109f4aad Remove TransportAddress in most server code 2020-01-28 11:47:08 +08:00
Benau
05732c2e7d Only register server with a valid address 2020-01-28 01:26:12 +08:00
Benau
3d0ef44014 Fix android crash for inet_ntop 2020-01-27 15:48:49 +08:00
Benau
055ed23e10 Remove TransportAddress in STKPeer 2020-01-27 14:32:18 +08:00
Benau
e18bcd62e6 Add IPv6 LAN server discovery
Broadcasting to windows doesn't work as the windows firewall seems
to block all IPv6 multicast
2020-01-27 13:48:57 +08:00
Benau
9132fba714 Add firewall penetration for IPv6 client 2020-01-27 12:07:28 +08:00
Benau
6abd3bbf69 Add socket address to support both IPv4 and IPv6 2020-01-27 11:50:15 +08:00
David Carlier
a79a2a7fab mcpp dependency possible leak fix proposal 2020-01-26 18:52:14 +00:00
David Carlier
ba150e8659 bullet build warning fix replacing by C++ casting 2020-01-25 21:53:12 +00:00
Benau
9928cf726f Add auto handling of IPv6 only server depends on network type 2020-01-26 00:41:03 +08:00
Benau
d2f2c6cf1f Allow setting a zero address as long as there is an IPv6 address 2020-01-25 11:15:34 +08:00
Benau
6d2e060bf2 Disable IPv6 socket in server for IPv4 only network 2020-01-24 10:28:23 +08:00
Benau
58a2010d0f Fix intercept callback for IPv6 2020-01-24 10:26:44 +08:00
Benau
8d94f973cc Allow NAT64 client to connect to firewalled IPv4 server 2020-01-23 16:50:47 +08:00
Benau
63c7c711d5 Fix IPv4 only server in dual stack network 2020-01-23 16:43:46 +08:00
Benau
8486b11da6 Allow setting public address for IPv6 client 2020-01-23 01:16:02 +08:00
Benau
aed64dfd1f Rename function to make it clearer 2020-01-22 15:56:47 +08:00
Benau
2ca1c5555c Allow connect to IPv4 only server with NAT64 for all platforms 2020-01-20 16:49:27 +08:00
Benau
4172a2d765 Add iOS toolchain for cross compiling 2020-01-20 15:31:45 +08:00
Benau
50944bb8c3 Add debug logging for iOS device 2020-01-20 14:58:03 +08:00
David Carlier
b3e76e082e FreeBSD online linker URL support 2020-01-19 12:15:16 +00:00
Benau
f83f74598d Fix valgrind warning 2020-01-19 11:46:03 +08:00
Benau
1e53f67354 Fix no graphics crashing 2020-01-19 10:50:12 +08:00
Benau
726a40ae2d Use IP detect code in server screen for more info to user 2020-01-19 10:20:25 +08:00
Benau
fcdec55bc1 Add tools for advanced IPv4 and IPv6 detection 2020-01-19 10:13:17 +08:00
Benau
7b3559ba69 Add IPv4 only stun for later usage 2020-01-19 01:00:48 +08:00
David Carlier
d97a1ce1ef removing compilation warning explicitly showing enum origin
to avoid confusions even though they have same values.
FreeBSD recognised as os in stats point of view.
2020-01-18 13:32:50 +00:00
Benau
9085658653 Add ipv6 geolocation table 2020-01-16 11:28:52 +08:00
Benau
0ef632114b Use another source of ip mapping with ipv6 support 2020-01-16 10:57:56 +08:00
QwertyChouskie
a68e652fa6 Skin padding implementation (#4195)
* Implement box model spacing for skin elements

* Account for padding when spacing out on-screen keyboard

* Fix padding for Tutorial button on Help screen

* Reduce spacing between tabs
(Also removed a couple duplicated files.)

* Change verticalTab margin as per Benau's request
Uses `vborder_out_portion`, which is how it was done before.

* Remove duplicate files

* Adjust spacings after PNGs were adjusted in a previous commit

* Improve spacing of verticalTabs

* Slightly increase the tabbar width in the Options screens

* Slightly increase the tabbar width in the help screens
2020-01-13 13:02:50 +08:00
David Carlier
7951d1a92d Reducing significantly build warning on MacOS
OpenGL deprecated APIs, gl/gl3 inclusion, OpenAL deprecated API.
Implementing process path for the crash reporter.
2020-01-12 07:28:15 +00:00
Benau
5ce95ba5e7 Fix clang warning 2020-01-12 12:59:02 +08:00
David Carlier
a6aa0aa9eb crash reporter, getting process path in native way on FreeBSD. 2020-01-11 21:23:45 +00:00
Benau
1e4b0ccb4e Add resetGlobalVariables for message queue 2020-01-11 00:21:22 +08:00
CodedOre
13fca9a0eb Adapting MessageQueue for Tutorial (#4204)
* Make Script-Message more adaptable

* Highly WIP-TriggerMessage

This is commited for discussion, so it is far away from complete or good or anything else.

* One Place for the static Message!

* Fixing that clear() dont clear the static message.

* Discard Static Messages when Race is closed.

In Order to not leave StaticMessages if an Race is quit, now closing the race discard StaticMessages.

* Allow for co-existence of static and normal message

* Fix indentation and Enum Order

* Clean up used StaticMessages.

* Clean StaticMessages up Round 2
2020-01-11 00:12:56 +08:00
Benau
c7c5a54083 Update contributor name based on request 2020-01-10 08:20:52 +08:00
Fouks0
cb236e9674 Always show times in ms (#4177)
* Always have the time(r)s showing milliseconds
* Format time in mm:ss.mmm in the Ghosts List/Dialog
2020-01-09 17:12:38 +01:00
Bilka
8ce0def43d Removed StringUtils::notEmpty (#4208) 2020-01-09 17:06:39 +01:00
Andrey Karepin
08d1a2df4a fix openSUSE name
Please, see https://en.opensuse.org/Help:Style#openSUSE_spelling
2020-01-08 15:22:16 +03:00
Benau
b09aec6b3f Remove Dmitry Marakasov changes for his disagreement 2020-01-07 00:08:09 +08:00
Reiner Herrmann
2f44e5ea1f Man page fixes (#4202)
* Fix syntax of comments in man page

* Move man page to correct section (6 = games)

* Update version in man page
2020-01-06 08:26:04 +08:00
CodedOre
4ce88158c8 Enabling MessageQueue for Scripting (#4201)
As @Benau suggested to use MessageQueue for *making the Game Flow of the Tutorial smoother* (#4187), this Pull Request enable MessageQueue for Track-Scripts.

For me it works well with MessageQueue, however i think we could make the Font of a Message a little bit bigger, since it is quite small, especially on mobile.
2020-01-06 01:11:46 +08:00
David Carlier
ea948fd5d5 Mac OS little update propsal.
Silencing deprecated OpenDL api warnings in recent MacOS releases.
Needed to set openssl for curl.
2020-01-04 21:22:43 +00:00
David Carlier
331fe8b5b6 Missing header for network struct, vital for FreeBSD. 2020-01-04 11:42:35 +00:00
Benau
c8d0361837 Fix valgrind warning 2020-01-04 01:38:57 +08:00
Benau
6b032d6a2c Update translation 2020-01-03 23:10:39 +08:00
Benau
9499a75676 Update software used and donors 2020-01-03 22:54:37 +08:00
Benau
b121bdb426 Update changelog 2020-01-03 22:50:00 +08:00
Benau
7b3a543ae5 Use utf8 encoding for mcpp 2020-01-03 22:22:14 +08:00
Benau
8e5e50662a Use PROJECT_VERSION in plist to avoid editing each release 2020-01-03 20:47:37 +08:00
Benau
7e129b3895 Fix iOS compilation 2020-01-03 20:45:24 +08:00
Benau
82ed737b34 Expose STK version conversion utils to scripting 2020-01-03 13:53:14 +08:00
Benau
792a86da60 Use mcpp to preprocessing scripting (for now STK_VERSION) 2020-01-03 13:43:26 +08:00
Benau
39821e9ad3 Allow compiling mcpp with android 2020-01-03 13:25:26 +08:00
Benau
d729c543f9 Fix compiler warnings 2020-01-03 13:16:16 +08:00
Benau
e401a3c865 Apply patches from debian libmcpp 2020-01-03 12:57:16 +08:00
Benau
b928ecf24c Remove CPU preprocessing which is unneeded for STK 2020-01-03 12:54:16 +08:00
Benau
db5d1420f9 Add mcpp from github.com/ned14/mcpp 2020-01-03 12:46:35 +08:00
Deve
40af912312 Add a possibility to use auto acceleration on android 2019-12-30 03:47:34 +01:00
Deve
487647df85 Don't show touch controls icon in spectator mode 2019-12-29 21:03:25 +01:00
Bart Ribbers
8cd8b7c26e Define VALIST as va_list rather than char* on non-glibc systems (#4185) 2019-12-29 12:29:09 +08:00
Benau
44d2127800 Always use default name Player in mobile STK 2019-12-29 10:44:13 +08:00
Deve
8e19e96a9e Add easier way to change touch controls type 2019-12-29 00:04:45 +01:00
Benau
f89933bb46 Exit the loop earlier if protocol manager is exiting 2019-12-28 12:46:17 +08:00
Benau
3944d81cfc Fix writing of server id file for unicode folder 2019-12-28 12:45:56 +08:00
Benau
10c0515c88 Fix create process with executable with space in path 2019-12-28 12:42:40 +08:00
QwertyChouskie
27fce1d1a4 Update Wiiuse to 0.15.5
Updates Wiiuse, while keeping (and labeling) STK-specific patches.
2019-12-27 18:13:32 -08:00
Deve
8df28b07b1 Restore function for hardware keyboard on android 2019-12-27 23:49:29 +01:00
Benau
cecf5cffac Fix missing checking if 3 arguments 2019-12-28 02:12:59 +08:00
Benau
3708d81815 Require at least 3 characters for search addon in server
This will prevent sending too many data if server has all addons
2019-12-26 15:18:31 +08:00
Bart Ribbers
f6ee1ebab1 Include linux/sysctl.h rather than sys/sysctl.h on non-glibc systems (#4174) 2019-12-26 11:52:46 +08:00
riso
d00ffe72b9 make /liststkaddon, /listlocaladdon, /listserveraddon more friendly (#4181)
* make /liststkaddon, /listlocaladdon, /listserveraddon more friendly

* remove debug code
2019-12-26 11:14:09 +08:00
Jeff
de33244ae7 Expose getKartType(int kartId) to scripting
This change attempts to expose the KartType (local player, networked player, AI, etc.) to scripting.
This is useful if a track creator wants an action to only occur if triggered by a real player, or only if triggered by a non-networked player (e.g. alternate route music in Frozen Drive unofficial add-on).

I have rushed this in to try and get it added in STK 1.1 and I have not yet been able to configure and build STK from source, so this change is currently untested!

I have placed this in the Track section because it uses the race manager. Please let me know if the Kart section is more appropriate.
2019-12-25 21:49:00 +11:00
Benau
7f32842e76 Use Tip: %s in translation instead 2019-12-25 15:22:45 +08:00
Benau
f5f647c7ce Save players.xml to avoid achievements gone when pressing home button in mobile stk 2019-12-25 14:38:00 +08:00
Benau
82cbf3b09f Fix not enough space for uninstall full game assets button 2019-12-25 13:29:56 +08:00
Benau
fb6bedc101 Enable word wrap in screens where text could be too long 2019-12-25 12:21:27 +08:00
Benau
b2dd555117 Fix screen keyboard with iPhone padding 2019-12-25 12:20:18 +08:00
QwertyChouskie
594cfefeed Fix CMD flags in main.cpp (#4180)
Came across these when working in my branch.
2019-12-25 10:44:28 +08:00
Benau
a46f82420f Bigger confirm internet dialog size for small iPhone screen 2019-12-23 09:15:01 +08:00
Benau
8c5759821e Allow RES_CHANGE_SAME without recreating device 2019-12-22 16:31:59 +08:00
Benau
29c79abc22 Fix possible exit crash 2019-12-22 11:13:18 +08:00
Benau
01c57fa483 Add link helper for iOS 2019-12-21 01:30:01 +08:00
Benau
fa249efac1 Fix device orientation unknown in the first time 2019-12-21 01:04:08 +08:00
Benau
31562ba067 Add padding to some gui elements for iPhone X 2019-12-20 14:08:01 +08:00
Benau
be77b5f294 Add code to handle screen padding in new iPhone 2019-12-20 13:10:58 +08:00
Benau
84f91d58db Hide home indicator in iPhone X default 2019-12-20 10:59:01 +08:00
Benau
fe0cb90769 Make sure icon handling of addons is thread safe 2019-12-20 09:55:12 +08:00
Benau
dce9bf1e63 Save addons xml when going into background for mobile stk
So the icons don't need to be redownloaded again after it's killed
by OS in the background
2019-12-20 08:59:02 +08:00
Benau
93e95a0c39 Update translation 2019-12-20 08:05:07 +08:00
Benau
801aa12743 Update full assets size for mobile stk 2019-12-19 01:46:06 +08:00
Benau
82986bdeaa Add pumpkin park to android 2019-12-19 01:44:06 +08:00
Benau
13bfb902db Improve showing of tips
1. Disable in track loading as for most tracks it too short to be seen

2. Show race tips only when human loses
2019-12-19 00:33:22 +08:00
Benau
22665023f7 Add mingw nsis installer (used in mxe makensis) 2019-12-18 16:10:08 +08:00
Benau
16736c94bc Allow compiling wiiuse with mingw 2019-12-18 14:40:54 +08:00
Benau
5f3b2ffc25 Update translation source 2019-12-18 14:34:47 +08:00
Benau
1e99d8cbbb Improve addons screen layout 2019-12-18 14:29:27 +08:00
Benau
f1e0548d0e Update tips for new translation 2019-12-18 14:28:51 +08:00
Benau
b79bfa46cc Fix missing last character from replacing xml characters 2019-12-18 14:25:10 +08:00
Benau
c1be829f0e Allow extract translation from tips.xml 2019-12-18 13:49:36 +08:00
Benau
8b50536aae Show tips in result screen only for local games 2019-12-18 12:54:34 +08:00
Benau
4d0952c716 Clear up tips manager 2019-12-18 12:52:45 +08:00
Alayan
ad8ef2df11 Fix #3376
The UI layout should be improved, but functionality and translatable strings are there as needed.
2019-12-18 04:25:18 +01:00
Alayan-stk-2
354410dbd2 Improve tips formulations, and add some 2019-12-18 03:37:57 +01:00
杜茂森
1ade00462d Simple tips manager (#4146) 2019-12-18 02:23:06 +01:00
Alayan-stk-2
82f83ea1ec Changelog update, part 4 2019-12-18 01:51:42 +01:00
Benau
e9b2f40d04 Fix server only build 2019-12-17 09:18:29 +08:00
Benau
96cae14b09 Update translation source 2019-12-17 07:47:26 +08:00
Benau
344079deda Remove previous addon directory after uninstall 2019-12-17 07:37:50 +08:00
Benau
4a2def8df1 Fix crash when using addon command in dialog 2019-12-17 01:38:22 +08:00
Benau
5989221305 Improve error logging 2019-12-17 01:32:53 +08:00
Benau
7d60855a7f Don't show install addon command for invalid addon id 2019-12-17 01:01:11 +08:00
Benau
74cd74f869 Avoid android java crash when opening url 2019-12-16 09:29:24 +08:00
Benau
29e4500ce6 Prevent soccer ai crash if 1 team has no player 2019-12-16 09:22:57 +08:00
Benau
49651cca4f Allow connect to server with domain in IPv4, fixed #3969 2019-12-14 09:52:04 +08:00
DoggoOfSpeed
5273dac899 Fix #4149 (#4171) 2019-12-14 08:48:50 +08:00
Benau
b9af85442b Take parent library into account for animator checking 2019-12-14 00:21:47 +08:00
Benau
1ee2f01fbc Allow moving library object with physical body 2019-12-13 23:52:39 +08:00
Benau
725d587566 Add configurable chat consecutive interval value 2019-12-13 18:24:17 +08:00
GuillaumeBft
5d399f1203 add message freguency limit in chat (#4168) 2019-12-13 17:52:40 +08:00
Benau
e40ab453a6 Fix possible NAN on some extreme tracks 2019-12-12 09:16:10 +08:00
GuillaumeBft
edfd638cc4 fix #4123 (#4161)
* fix #4123

* Formatting
2019-12-10 21:54:08 +01:00
Benau
0c10389333 Fix overflowed list in addons screen 2019-12-11 01:13:16 +08:00
GuillaumeBft
1115118a13 Show only possessed checkbox in addons screen #3376 (#4162)
* Show only possessed checkbox in addons screen

* add var w_show_possessed

* Update addons_screen.stkgui
2019-12-11 00:12:45 +08:00
Benau
0b480e7a71 Restore linear and angular velocities of 3d animation physical objects 2019-12-10 13:35:43 +08:00
Benau
c09585eaf7 Remove old addon folder before install new addon 2019-12-10 09:44:52 +08:00
Fábio Maia
0f7137d43a Remove duplicate dependency for GUI-less binary build 2019-12-09 20:23:48 +00:00
Benau
5e5026ea68 Adjust soccer result screen for new data 2019-12-09 14:05:50 +08:00
Benau
2cbd18ef7e Add country code and handicap to scorer data 2019-12-09 13:57:13 +08:00
Benau
891fd57053 Move message queue when on screen keyboard opened 2019-12-09 12:40:39 +08:00
Benau
5e016e88df Display the addon command explicitly 2019-12-09 11:35:24 +08:00
Benau
32cccb358b Refactor AddonsPack::uninstall to allow remove addon by name later
Also save addons installed xml when necessary
2019-12-09 10:51:47 +08:00
Benau
1a23580648 Try to fix track object loading empty lod node crash 2019-12-07 13:48:36 +08:00
Benau
b095438681 Extract addons zip file recursively (for canyon42 in the future) 2019-12-06 22:11:35 +08:00
Benau
0728722f37 Stop download too if dismiss dialog
This can happen if other place calls dismiss dialog
For example screen pushing by network protocols
2019-12-06 20:53:43 +08:00
Benau
a45d4fe9f2 Show download size for addons pack 2019-12-06 19:34:26 +08:00
Benau
1a423e11e7 Add sha256 for string in scripting 2019-12-06 15:49:47 +08:00
Benau
b29a42719c Expose item manager random seed (synchronized in online too) in scripting 2019-12-06 14:10:45 +08:00
Benau
06b11056c8 Add kick player command 2019-12-06 12:35:45 +08:00
Benau
2cbf6b732e Make the live join ticks more correct 2019-12-06 12:11:28 +08:00
Benau
d60b087c25 Exit server stk process if STKHost no longer exists 2019-12-06 12:03:18 +08:00
Benau
11b9897f88 Add non-blocking thread network console for linux 2019-12-06 11:58:51 +08:00
Alayan-stk-2
d71012f452 Changelog update, part 3 2019-12-05 12:48:28 +01:00
Alayan-stk-2
5b9ad89abb Fix #4157 2019-12-05 12:10:37 +01:00
Quipyowert2
46b833f11d Use unsigned int with %x format string 2019-12-04 21:23:15 -08:00
Benau
5aad3f1775 Don't assume command line values are always ascii
In case someone put unicode folder inside addons
2019-12-04 09:10:01 +08:00
Benau
d6654637bc Fix typo 2019-12-04 08:51:33 +08:00
Benau
5dd208fdca Show addon identity for live installation 2019-12-04 00:47:54 +08:00
Benau
0726f01808 Update translation 2019-12-04 00:37:02 +08:00
Benau
97be595725 Add player addons scores info 2019-12-03 16:40:48 +08:00
Benau
01ec6e3c4d Add server addon checker 2019-12-03 16:02:51 +08:00
Benau
f470ab7f44 Add player addon checker 2019-12-03 15:32:06 +08:00
Benau
ddbdf2d244 Add function to find STKPeer by player name 2019-12-03 14:10:38 +08:00
Benau
a3c6c63be8 Rename listclientaddon to listlocaladdon 2019-12-03 14:04:33 +08:00
Benau
1c82f5fd7e Rewrite addon loading in ServerLobby for addons directory
So as long as they are in addons/karts or addons/tracks, they can be
used no matter what group they belong
2019-12-03 13:46:30 +08:00
Benau
9ea77528ef Allow listing client installed addon 2019-12-03 13:24:34 +08:00
Benau
7c83a4f9f3 Reserve language info for translation 2019-12-03 12:55:41 +08:00
Benau
a9684f31e6 Allow reload skin list for addon (un)installation 2019-12-03 12:50:25 +08:00
Benau
e2505d0416 Allow remove unofficial addon (including skin) 2019-12-03 12:21:06 +08:00
Benau
6951a5e088 Add result for addon (un)installation 2019-12-03 11:35:39 +08:00
Benau
6062d3f169 Allow listing STK addons (available online officially) 2019-12-03 10:38:05 +08:00
Benau
6d3bb566be Allow listing server addons 2019-12-03 10:26:01 +08:00
Benau
68d549e697 Add music volume command control in lobby 2019-12-03 01:57:58 +08:00
Benau
fe34619652 Rewrite RankingCallback for std::shared_ptr Request 2019-12-01 01:53:44 +08:00
Benau
4cb3383c4a Remove the unneeded manage memory option in request 2019-12-01 01:19:51 +08:00
Benau
89d35f09fa Replace observeExistence with std::weak_ptr of Request 2019-11-30 16:25:21 +08:00
Benau
13975cc5db Use std::shared_ptr for Request to avoid leaking 2019-11-30 16:01:31 +08:00
Benau
77d563d082 Print unzip files only when debug printing 2019-11-30 13:54:35 +08:00
Benau
e450968bef Fix race condition when user installs addons live in lobby 2019-11-30 13:10:33 +08:00
Benau
b2d496798f Always clear the downloaded (part) files 2019-11-30 02:19:52 +08:00
Benau
a962954c5e Allow install addons live in lobby 2019-11-30 02:03:56 +08:00
Benau
19d008d0f8 Add support for installing addons pack 2019-11-30 00:36:35 +08:00
Benau
07a43e0ca3 Fix download request leak if it failed 2019-11-29 22:31:53 +08:00
Benau
9103a66651 Allow remove directory recursively if it's inside addons folder 2019-11-29 21:25:25 +08:00
Benau
45e4175ba6 Add moveDirectoryInto function 2019-11-29 19:49:00 +08:00
Benau
81ca14d549 Fix #4148 2019-11-29 10:26:23 +08:00
Deve
771f37138c Fixed speedrun timer checkbox visibility.
Using both setActive() and setVisible() together doesn't have much sense.
Especially that in init function the checkbox was made invisible, but in
eventCallback it was only made active, but still kept invisible.
2019-11-28 22:16:28 +01:00
Benau
a07ca7f365 Fix valgrind warning 2019-11-29 02:09:38 +08:00
Benau
04e552994d Remove empty texture warning 2019-11-29 01:54:43 +08:00
Benau
8799369066 Rename config name which is not compatible with 1.0 2019-11-28 16:44:01 +08:00
杜茂森
340ec706b0 UI fix bundle XIII (#4138)
* UI fixes && Icon support for powerups

* Better loading icon size

* Fix #4145

* Fix a small bug

* Add alternative icon support & avoid duplicating icons
2019-11-28 16:13:00 +08:00
Benau
10a125c407 Fix string after icon name update 2019-11-27 12:23:47 +08:00
Benau
13da9bb9c7 Load database with full path for installed stk 2019-11-26 12:01:11 +08:00
Deve
f60583542e Fixed plural forms in most languages 2019-11-24 22:23:51 +01:00
Benau
520f1c7d3a Fix broken kart animation for countdown timer in result screen 2019-11-24 12:14:29 +08:00
Benau
fe028b4534 Fix skidding ai crash 2019-11-24 11:37:02 +08:00
Benau
8c223cd2c2 Hide error message for hole drop arena 2019-11-24 11:08:08 +08:00
Deve
426be8f3c1 Add continue button to cutscenes 2019-11-24 00:55:57 +01:00
Benau
1a2beedb68 Use a smaller default wheel size for iPad 2019-11-23 13:18:06 +08:00
Benau
20ea7fe2ff Improve rubber banding effects of rewinders when going back to phone 2019-11-23 12:52:38 +08:00
Benau
84a7c282ee Fix android network ai crash 2019-11-23 12:49:00 +08:00
Benau
dd9c91be0c Fix #4141 2019-11-23 12:31:55 +08:00
Benau
2c22dadddf Apply deve fix for story mode timer 2019-11-23 11:41:53 +08:00
Benau
af2e609fff Disable story mode timer for old profile 2019-11-23 08:58:32 +08:00
Deve
f0dd933ef6 Fixed a crash when starting cutscene using debug menu 2019-11-22 21:01:54 +01:00
Deve
8a26ae009e Add adaptive icon for newer android versions 2019-11-21 22:21:03 +01:00
Benau
65bb31b56f Fix missing handicapped player names in soccer screen result 2019-11-21 01:36:45 +08:00
Deve
4b817e6e90 Include xxxhdpi icon for android 2019-11-17 22:18:50 +01:00
Alistair Findlay
10b2713093 Some small fixes (#4140)
* Some small fixes

* Some small fixes

added more fixes

* more wording improvements

* Fixed compilation failure

* More grammar and spelling
2019-11-17 01:33:15 +08:00
Alistair Findlay
c990296cf6 Fixed some spelling mistakes (#4139)
* Fixed some spelling mistakes

shorcut to shortcut (Also, I can not understand what the sentence on line 4 means, it could be reworded.)
proeminent to prominent
featue to feature

* fix spelling mistake

hearby to hereby
2019-11-16 00:27:37 +08:00
Benau
05f634228e Fix invalid read of boolean after dialog dismissed 2019-11-15 16:32:49 +08:00
Alayan
c2e599f91e Fix the reload button carrying over to the continue GP option 2019-11-10 23:23:03 +01:00
Alayan
325f19d30b Improve the layout of the GP info screen 2019-11-10 23:17:50 +01:00
Deve
fb4ecf6a00 Better fix for icon button alignment 2019-11-10 10:25:19 +01:00
Benau
60d5233782 Fix #4133 2019-11-09 00:52:19 +08:00
杜茂森
69729e3e83 Fix #4011 (#4130)
Support setting the flip direction of tabs explicitly.
2019-11-08 16:31:49 +01:00
Benau
f4da9718c5 Fix gui warnings 2019-11-08 16:24:58 +08:00
Benau
bbbfe43120 Save number of ai karts per game mode when leaving track screen 2019-11-08 15:01:38 +08:00
Benau
6a466293ac Update translation source 2019-11-08 14:04:54 +08:00
Benau
1eec3bdfde Fix valgrind warning 2019-11-08 13:57:11 +08:00
Benau
949752451c Revert layout manager changes as it breaks addon screen 2019-11-08 13:27:50 +08:00
Benau
8582258cae Fix several crashes after add or remove tracks from various places 2019-11-08 12:48:04 +08:00
Deve
435e8c3747 Revert "Allow to use "extremely large" font size."
This reverts commit 4f9070ee53.
2019-11-07 22:57:13 +01:00
Alayan
f693e32bd6 Improve the general option screens with large font size 2019-11-07 22:44:27 +01:00
Alayan
658345c9ff Improve in-race chat
* Limit in-race chat to 3 lines instead of 5
* Add an option to disable in-race chat (while keeping lobby chat)
2019-11-07 22:25:04 +01:00
Alayan
9647dea346 Fix #3714 2019-11-07 22:24:13 +01:00
Deve
4f9070ee53 Allow to use "extremely large" font size.
It looks fine in most places.
2019-11-07 22:01:25 +01:00
Deve
b5f3fafaac Slightly increase button size for android 2019-11-07 21:33:58 +01:00
杜茂森
f169ed82a3 UI fix bundle XII (#4114)
* Change arena addon icon

* Categorize UI

* Give small margin

* Better icon size in help

* Several screen fix

* Fix bug

* Better GP line size

* Give more space to texts

* Better size
2019-11-07 19:01:28 +01:00
Benau
42d341a925 Split stk version and os string to 2 columns for better statistic purpose 2019-11-08 01:17:27 +08:00
Benau
4b23552ea8 Add function to extract stk version and OS from user agent 2019-11-08 01:02:53 +08:00
Benau
9d75b706d5 Remove warnings 2019-11-07 14:40:10 +08:00
Benau
0f9688f5da Disable possible blocking writing to log and console for starting timer 2019-11-07 12:20:37 +08:00
Benau
148dc49817 Don't poll irrlicht device without graphics
It fixed crashes for joystick event which does XResetScreenSaver
2019-11-07 09:40:52 +08:00
Benau
310caebc34 Disable smoothing network body for local kart
This should improve collision handling and remove into ground kart
2019-11-07 01:48:05 +08:00
Benau
1d384961dd Implement keyboard sorting list widget 2019-11-04 16:41:23 +08:00
Benau
5f32b81ab8 Fix stk server crash 2019-11-03 02:43:31 +08:00
Palash Bansal
efa3bfff12 updated install instructions for windows 2019-11-02 22:11:32 +05:30
Benau
2650ec2f3e Disable showing story mode timer if starting stk with old players.xml 2019-11-02 00:38:30 +08:00
Benau
5c9df8d9a2 Fix profiling mode of stk 2019-11-02 00:07:10 +08:00
Benau
2700162d1f Use getMonoTimeMs to avoid system clock changes 2019-11-01 22:52:11 +08:00
Alayan-stk-2
770d02b19b Compute and display a story mode timer (#4121)
This is the result of my previous work, with a port of the timer version that was developed for a 1.0 mod. It has been used by several players so no major issue should exist, though UI and other elements may require adjustment to smooth some rough edges.

It features both a casual story mode timer storing the total time to complete the story mode (on by default) and a "speedrun" timer (off by default). The casual timer is paused whenever the player exits story mode, and supports play over multiple sessions. It is only displayed in the overworld and during challenges ; while the speedrun timer is permanently displayed.

Fix #2907
2019-11-01 13:25:27 +01:00
Benau
48f4088894 Clear all widgets pointer when unloading track screen
This fixed crash after changing resolution and then spectate the game,
which m_timer is previous value
2019-11-01 19:16:23 +08:00
Benau
033933d3a2 Hide ipv6 button in LAN server selection 2019-11-01 10:49:31 +08:00
Benau
e5de8f764c Fix #3902 2019-11-01 08:13:41 +08:00
Benau
2837f54688 Reset high digit font scale to 1.0f after drawing 2019-11-01 01:34:00 +08:00
Benau
7c54eb48cb Update translation 2019-10-31 12:56:26 +08:00
Benau
63cb55acb6 Clear previous assets version to free space 2019-10-31 12:53:55 +08:00
Benau
a8fdd98a0e Add a high ping workaround in server
This will allow around ping with 400ms to have a playable game with
the default values of max-ping and jitter-tolerance, as long as the
internet connection is stable (no packet loss)
2019-10-31 11:36:03 +08:00
Alayan-stk-2
2f93ef9c6d Changelog update, part 2 2019-10-31 00:58:57 +01:00
Alayan
41880fe815 Fix #4051
This solution is hackish, but it's more resilient and easier than trying to get the update order right.
2019-10-31 00:28:48 +01:00
Du maosen
6dd5800701 Fix#4117 (#4119)
* Fix #4117
2019-10-29 16:14:12 +01:00
Du maosen
9d80d7e71a Various skin fixes (#4111)
Fix #3953;
Fix #3752;
2019-10-29 13:39:34 +01:00
Benau
7caa24859c Update translation strings 2019-10-29 12:43:50 +08:00
Alayan
0d44b8e7dd Fix #4097 2019-10-28 19:51:41 +01:00
Benau
ac7310602e Hide donation button until there is a gift package 2019-10-28 16:58:44 +08:00
Benau
ab3d8ef415 Implement link helper for android 2019-10-28 16:47:05 +08:00
Benau
aa647cce67 Update translation source
Add tutorial for mobile stk, fixed #2971
2019-10-28 11:19:36 +08:00
AsciiWolf
c3f32f5f5a Add OARS metadata (#4115)
See https://hughsie.github.io/oars/
2019-10-27 19:41:12 +01:00
Benau
8cd095bf34 Add scripting functions to know current race gui type 2019-10-28 01:51:16 +08:00
Benau
1904e37ff1 Add mean packet loss info of peers to database 2019-10-27 23:43:51 +08:00
Benau
e9b5fb2c81 Fix server config help strings 2019-10-27 13:11:25 +08:00
Benau
249f715c87 Fix unselected ruby skin 2019-10-27 12:50:17 +08:00
Benau
adaaeb0e8e Fix #3432 2019-10-27 12:39:49 +08:00
Du maosen
84d99ac690 Bigger kart stat (#4113) 2019-10-26 18:21:42 +02:00
Alayan
50988c6c60 Fix #3687 2019-10-26 02:28:42 +02:00
Alayan-stk-2
79c32a5906 Partial credits update
I moved around some parts of the credits for more consistency, and updated some elements.

Some recent minor contributors are probably missing, while contributors for things that are not anymore in STK should be (re)moved.
2019-10-26 00:53:15 +02:00
Alayan
fc769c48a7 Fix #4110 and some clean-up 2019-10-25 22:02:41 +02:00
Alayan
ff2ccdbde3 Minor mode checks clean-up 2019-10-25 20:26:18 +02:00
Benau
4f388b2c87 Fix #3097 2019-10-26 01:15:39 +08:00
Alayan
39363291a4 Fix #4109 2019-10-25 16:51:21 +02:00
Benau
ed6d657d90 Remove glFinish in OSX
From http://irrlicht.sourceforge.net/forum/viewtopic.php?f=7&t=49052

It should not exist in any case
2019-10-25 15:39:35 +08:00
Benau
04dd5a8bfb Add IPv6 ban table 2019-10-25 12:44:50 +08:00
Benau
0217eaf173 Add sqlite function for ipv6 cidr testing 2019-10-25 09:20:36 +08:00
Deve
4be93daa83 Add small left margin to all back buttons 2019-10-24 22:25:49 +02:00
Deve
b5b3ca7be0 Fixed icon button position when using x="value" or left/right align 2019-10-24 22:25:49 +02:00
Alayan
d6ed40d3d3 Fix #4105 2019-10-24 20:06:32 +02:00
Alayan
ae8b6a0252 Minor simplifications 2019-10-24 16:54:26 +02:00
Alayan
102498f130 Separate DoF and motion blur from the main graphics preset 2019-10-24 15:56:42 +02:00
Alayan
c7df5114e7 Track info screen partial clean-up 2019-10-23 23:52:17 +02:00
Alayan
2e41f675cc Fix #4106 2019-10-23 21:42:04 +02:00
Benau
958868526f Allow live kicking from ban list 2019-10-23 14:42:22 +08:00
Benau
6c22a3b210 Ignore error message for network ai 2019-10-23 13:37:27 +08:00
Benau
a5e5b20a19 Fix #3875 2019-10-23 13:34:52 +08:00
Benau
914621251c Try to fix a crash when searching friend 2019-10-23 09:47:53 +08:00
Alayan
a3a7b5f8fd Fix #3596 2019-10-23 00:30:43 +02:00
Benau
349fe30747 Move spectate checking code to race gui 2019-10-23 02:43:29 +08:00
Alayan
f3a59b5649 More kart.cpp clean up 2019-10-22 19:49:01 +02:00
Alayan
b4fe68b53d Improve leaning 2019-10-22 18:31:09 +02:00
Alayan
be0df77be9 Improve kart.cpp/hpp code organization.
No functional change
2019-10-22 16:09:04 +02:00
Alayan
80c2bb1eaa Make old green valley and blackhill mansion replays playable if the addons are there 2019-10-22 13:45:00 +02:00
Alayan-stk-2
330318fa2a Remove mac from travis tests for now
The amount of "timeouts" errors where a mac build job stalls for no clear reason at all (the script isn't even started, and it's inconsistent) is unacceptable.
2019-10-22 12:29:13 +02:00
Alayan
b4b346e7a6 Fix #4103 2019-10-21 22:49:54 +02:00
Deve
2adeb7334e Make widget glow size proportional to resolution 2019-10-21 22:00:34 +02:00
Alayan
d7053ca2e5 Fix #3876 2019-10-21 21:59:01 +02:00
kxxvii
816cd3f3bf Additional trivial type/word fixes for man page and '-h' (#4102)
* Command-line help typo, fix
	modified:   src/main.cpp

* Typo fix, GNU/Linux manual
	new file:   doc/supertuxkart.1
	modified:   src/main.cpp

* More word and typo fixes in man/'-h'
	modified:   doc/supertuxkart.1
	modified:   src/main.cpp
2019-10-22 01:54:54 +08:00
Benau
62d8a17152 Allow setting default config value inside stk-code
Share the restore code with android and iOS
2019-10-22 01:43:09 +08:00
Alayan
17305a6cd8 Improve kart stats code readability 2019-10-21 18:46:43 +02:00
kxxvii
f55a206271 GNU/Linux manual page. (#4100)
* Command-line help typo, fix
	modified:   src/main.cpp

* Typo fix, GNU/Linux manual
	new file:   doc/supertuxkart.1
	modified:   src/main.cpp
2019-10-21 16:26:40 +08:00
Benau
c577383573 Fix #2536 2019-10-20 00:54:12 +08:00
Benau
a616664af2 Add menu command-q shortcut to quit STK in OSX 2019-10-19 13:00:28 +08:00
Deve
9dde7aee95 Use default height for spinners in gui options.
Also move them to the left side to give more space for labels.
2019-10-18 18:12:03 +02:00
Deve
ade98f730b Move vsync spinner above "custom" button 2019-10-18 18:10:28 +02:00
Deve
45cff64d91 Change download assets size after generating full assets 2019-10-18 18:10:28 +02:00
Benau
88846f5d36 Add launch screen from iOS dependencies 2019-10-18 23:01:07 +08:00
Benau
42d9e8967f Add default config for iOS devices 2019-10-18 22:22:32 +08:00
Benau
5bb9cd6492 Update translation 2019-10-18 22:14:38 +08:00
Benau
3437fa5edf Fix iOS crashing when going to background 2019-10-18 19:08:21 +08:00
Benau
34b2e074bb Fix #4096 2019-10-18 12:51:42 +08:00
Benau
1a7a8bdc14 Make karts powerup in gui an option 2019-10-18 12:03:36 +08:00
Alayan-stk-2
d1487a9801 Changelog update, part 1 2019-10-18 01:55:38 +02:00
Fouks0
6beefb829c Show everyone's items with the left characters icons (#4027) 2019-10-17 21:07:52 +02:00
Luffah
aa9b2e7008 Add an option to put the minimap on the center of screen. (#4087)
* Add an option to put the minimap in the center of screen.
2019-10-17 21:03:46 +02:00
chozo
d4d34498ad Command-line help typo, fix
modified:   src/main.cpp
2019-10-17 20:29:10 +02:00
Benau
1625d55de5 Reset AI peer for empty server 2019-10-17 12:18:11 +08:00
Benau
f4e7ccccfd Implement half sync in iOS manually 2019-10-16 16:46:40 +08:00
Benau
3a007fd8af Fix iOS build 2019-10-16 16:38:03 +08:00
Benau
fccd34dc87 Add required key for distribution to app store 2019-10-16 16:15:13 +08:00
Benau
b639efd8ed Use lower frequency for network ai 2019-10-16 11:48:58 +08:00
Benau
3b75740163 Check peer first to avoid crash 2019-10-16 10:43:36 +08:00
Benau
11897da80c Don't kick ai peer for idling 2019-10-16 01:16:45 +08:00
Benau
843ca083d5 Fix empty player count when resetting server 2019-10-15 19:15:22 +08:00
Benau
cb70036cb1 Fix bot name in server only build 2019-10-15 16:44:56 +08:00
Benau
63878e9693 Update NETWORKING.md for ai handling 2019-10-15 16:30:27 +08:00
Benau
cf412c947c Show player count with AI in server browser 2019-10-15 16:28:48 +08:00
Benau
1614868b5d Add AI handling for online racing games 2019-10-15 16:19:30 +08:00
Deve
170e4be0ca Merge branch 'master' of https://github.com/supertuxkart/stk-code 2019-10-15 06:13:08 +02:00
Deve
377dd80a05 Fixed cygwin build 2019-10-15 06:12:50 +02:00
Deve
030bc38516 Generate full assets in android builder 2019-10-15 01:04:56 +02:00
Alexander Mennborg
fc9aff80dd Randomizing spawn points for battle mode #3620 (#4093)
* Changed to randomize spawns for battle modes

* Changed to randomize spawns for battle modes

* Randomizing spawns only considers offline play

* Code cleanup, removed unused spawn_id from RemoteKartInfo

* Changed to shuffle the start transforms instead of randomizing spawn ids

* Removed unused function randomizeSpawn()

* Updated offline check for shuffle start transforms

* Cleanup removed newlines in race_manager.cpp
2019-10-15 01:19:31 +08:00
Benau
76871a3f24 Fix crash when fresh stk lan game with AI 2019-10-14 16:34:28 +08:00
Deve
48a027e276 Update translations 2019-10-13 21:28:20 +02:00
riso
31d4f05552 fix linking order: libpng before libz 2019-10-13 09:47:45 +02:00
Deve
6b26737cd2 Fixed AI in lan multiplayer on android 2019-10-12 22:52:47 +02:00
Deve
c2a20e1526 Avoid a crash when global android app is null in separate process 2019-10-12 22:07:56 +02:00
Deve
1e3313068f Delete libchildprocess_ai when updating apk 2019-10-12 00:49:25 +02:00
Deve
674cfff070 Remove/extract new data only if apk has assets 2019-10-12 00:22:55 +02:00
Benau
6d7d580fa3 Save players.xml when closing kart color slider dialog 2019-10-11 23:08:11 +08:00
Benau
3927c2d78c Save network permission configuration when leaving dialog 2019-10-11 23:05:08 +08:00
Benau
bb27cb17fb Fix missing auto login for saved session
setWasOnlineLastTime(true) before saving, before it was run in
BaseUserScreen::loginSuccessful which is after writing players.xml
2019-10-11 22:55:14 +08:00
Benau
ed376d329c Try to fix a rare crash 2019-10-11 22:44:08 +08:00
Benau
f56cf03b6a Fix AL_INVALID_NAME when exit pause menu with fast music on 2019-10-11 21:40:00 +08:00
Benau
a1e4bbc3c1 Fix fading in and out when switching to fast music 2019-10-11 19:21:58 +08:00
riso
3c4479b63a Rescale the time font if icon is small (solve issue #4089) (#4090)
* rescale the time font if icon is small

* no need for equal
2019-10-11 13:30:45 +08:00
Benau
edb338da88 Fix #4088 2019-10-10 15:56:18 +08:00
Benau
57bd4d9a91 Add timeout and error message for server login handling 2019-10-10 10:15:58 +08:00
Benau
5b3380a43b Add server password for server AI if exists 2019-10-09 15:51:44 +08:00
Benau
21a32b196d Update translation source 2019-10-09 15:37:26 +08:00
Benau
e93bc64ef3 Use Splitscreen Multiplayer to avoid lan game confusion 2019-10-09 15:29:52 +08:00
Benau
396e55a39d Show android robot icon for bots in lobby 2019-10-09 15:28:09 +08:00
Benau
2a40606be7 Allow auto end if all players finished with AI in network race 2019-10-09 14:36:49 +08:00
Benau
a26f67bf16 Allow using AI in lan racing game 2019-10-09 14:08:22 +08:00
Deve
c801191d80 Merge pull request #4085 from dos1/wayland-cursor
IrrDeviceWayland: Don't try to use non-existent wl_pointer object
2019-10-08 08:31:45 +02:00
Sebastian Krzyszkowiak
2aef80864a IrrDeviceWayland: Don't try to use non-existent wl_pointer object 2019-10-08 06:41:00 +02:00
Benau
9e0da6a283 Update translation source 2019-10-08 09:15:01 +08:00
Benau
4a3631ded3 Fix #3858 2019-10-08 09:06:02 +08:00
Benau
cf2454466f Replace similar emoji with thinking face (more popular) 2019-10-07 16:39:34 +08:00
Benau
b472639da0 Fix left / right toggle in race result gui 2019-10-07 16:30:09 +08:00
Deve
70469dafb5 Use shorter name for user interface tab 2019-10-06 23:20:30 +02:00
Deve
72e364a38d Some GUI tweaks 2019-10-05 23:48:44 +02:00
Deve
755b8a2f1b Slightly increase back button size and more consistent header pos/size 2019-10-05 23:44:14 +02:00
riso
657e02efe4 Clean icon name (Improve PR#4073) (#4081)
* fix icon names

* add file mode_weapon.png
2019-10-06 01:14:09 +08:00
Benau
4a3dfd975f Make text translatable 2019-10-05 10:11:57 +08:00
Deve
6ba5cc888f Tweak previous commit 2019-10-05 01:20:06 +02:00
Deve
564601fafe Open debug menu more easily on high resolution android device 2019-10-05 00:08:48 +02:00
Benson Muite
adc6b2a176 Update INSTALL.md
Update Fedora dependencies
2019-10-04 10:58:46 +03:00
Benson Muite
6604765890 Update INSTALL.md
Replace Nettle with Openssl for Fedora
2019-10-04 10:48:39 +03:00
123survesh
94ef5124d0 Fix for #3444: Changing the title text for key bindings dialog box 2019-10-04 12:14:16 +05:30
MiM
1de0693402 resolution issue #4070 (#4073) 2019-10-03 13:40:43 +08:00
Du maosen
71fec6780c Icon button for race result (#4071)
* Icons for race result

* Fix bugs && improvements

* Tabs to spaces

* Fix bugs && improvements
2019-09-30 15:33:07 +08:00
Deve
98d8aca91a Add half vsync to gui 2019-09-28 22:19:03 +02:00
Deve
fc8f6a218e Add possibility to use half vsync 2019-09-28 01:43:26 +02:00
Benau
d205d80ad2 Update translation source 2019-09-26 10:24:08 +08:00
Du maosen
8316d91469 Some improvements for soccer AI spinner (#4069)
* Improve code

* Bigger space in track info

* Bug fix && improvements

* Bug fix && improvements

* Bug fix && improvements
2019-09-26 10:12:24 +08:00
riso
351a6ed6c0 forgot to fix this bug in previous pr4063 2019-09-23 20:10:58 -05:00
riso
0547e1e469 Add options to control the number of red/blue AI in soccer mode (#4063)
* Add options to control the number of red/blue AI in soccer mode (offline)

* fix a bug related to the upper bound when AI num=0 and trying to lower the number

* forgot to fix this

* remove the Balanced/Custom spinner

* improve the AI number spinner's behavior at lower bound

* Hide blue ai number setting if not soccer

* move getting red/blue players number to function TrackInfoScreen::getRedBluePlayerNumber()

* Tab to Space

* rename local variable m_xxx to num_xxx

* bug fix

* improve the default AI number: try the previously used one, if cannot use the previous, recalculate the AI number using balanced
2019-09-23 21:59:17 +08:00
Benau
1553d7b70f Use copyTo for same size glyph 2019-09-22 09:00:26 +08:00
Benau
9154aeda58 Add support for CPAL / COLR tables color emoji
Require freetype 2.10, emoji can be Windows 10 Segoe UI Emoji for
example
2019-09-21 16:08:12 +08:00
Benau
3601e97d3b Update color emoji for android 10.0 2019-09-21 13:23:25 +08:00
Benau
f4cf63572d Clear some global variables for android 2019-09-21 13:05:42 +08:00
Benau
380f300d74 Add documentation for advanced theming 2019-09-21 12:16:42 +08:00
Benau
25aca4328b Add font configuration to skin 2019-09-21 11:48:22 +08:00
Benau
1d74efcd08 Clear message queue when destroying GUIEngine
So it won't call font which could already been reset
2019-09-21 11:42:35 +08:00
Benau
660a35a468 Allow changing font size live 2019-09-21 11:41:21 +08:00
Benau
d7a66f72e8 Allow changing icon theme live 2019-09-21 11:36:12 +08:00
Benau
48ba0aaf27 Rearrange skin structure for usage in addons folder 2019-09-21 11:33:11 +08:00
Benau
e6801e1599 Initial work on icon theme 2019-09-21 11:25:13 +08:00
Deve
95a74a9917 Allow reset object in script 2019-09-21 02:04:37 +02:00
Deve
2056cd3e91 Add better teleport function 2019-09-18 23:56:51 +02:00
Reiner Herrmann
63b23d9e65 Link against libatomic if required
On some architectures it is required to explicitely link against
libatomic to use e.g. 8 byte atomics.
Check during configuration if it compiles without libatomic. If not,
add it to target_link_libraries.

Noticed on Debian build servers: https://bugs.debian.org/934799
2019-09-15 18:26:22 +02:00
Deve
4895cd27a4 Avoid minimap on left side when spectating with touch gui 2019-09-08 22:12:33 +02:00
Deve
137e9dd99e Merge pull request #4056 from risostk/clean_IPV4_typo
Clean IPV4/ipv4 to IPv4, IPV6/ipv6 to IPv6
2019-09-03 21:43:45 +02:00
riso
0e4f875443 Clean IPV4/ipv4 to IPv4, IPV6/ipv6 to IPv6 2019-09-03 14:24:03 -05:00
Roger
84b8fe0b27 Fix format of INSTALL.md (#4054) 2019-09-03 00:33:46 +08:00
Benau
58ad947443 Add IPV6 support to stats database 2019-08-23 11:01:00 +08:00
Benau
f7da3c94f9 Update translation 2019-08-21 23:58:24 +08:00
Benau
69f3c72101 Use new code for iOS IPV6 only server connection 2019-08-21 16:10:41 +08:00
Benau
c705b8fe80 Enable IPV6 in android 2019-08-21 14:59:13 +08:00
Benau
99d7f54bd9 Update translation source 2019-08-21 14:51:06 +08:00
Benau
850d270260 Allow choosing IPV6 connection in server selection screen 2019-08-21 12:00:50 +08:00
Benau
7becfb311d Use more real address in server 2019-08-21 10:46:04 +08:00
Benau
02f8f6fadd Allow windows using IPV6 2019-08-21 09:19:05 +08:00
Benau
1053c582fa Add --connect-now6 for ipv6 connection 2019-08-21 00:21:54 +08:00
Benau
ab56a4fa8b Add ipv6 info to game server 2019-08-21 00:17:31 +08:00
Benau
a92b9abf54 Remove expired mapped address using last activity 2019-08-20 13:10:18 +08:00
Benau
5cacd486da Add ipv6 server configuration 2019-08-20 10:45:33 +08:00
Benau
3f0db672d6 Allow getting public IPV6 address with STUN for server 2019-08-20 00:54:13 +08:00
Benau
0c5166ac39 Add getaddrinfo_compat for workaround of an iOS 9 bug 2019-08-19 14:38:26 +08:00
Benau
285e4e7be5 Remove stun servers not supporting ipv6 2019-08-19 00:12:28 +08:00
Benau
c2c5c20d92 Initial work on IPV6 game server 2019-08-19 00:05:34 +08:00
Benau
1551bdaaaa Add gyroscope icon and use it in init android dialog 2019-08-17 00:47:56 +08:00
Benau
ce2c442402 Add accelerator with handle icons 2019-08-17 00:13:57 +08:00
Benau
41a74817f7 Allow steering wheel following touchscreen control with acceleration indicator 2019-08-16 21:56:21 +08:00
Benau
f787832772 Add 2d drawing shader with custom alpha 2019-08-16 11:48:10 +08:00
Benau
ce1c188b1a Add rotation uniform to 2d drawing shader 2019-08-16 10:31:24 +08:00
Benau
e20f6e3209 Update supertuxkart build id for iOS 2019-08-15 15:51:44 +08:00
Benau
4a12d6aba2 Allow buttons to be used in a linked way 2019-08-15 15:35:58 +08:00
Benau
96ebdcce46 Remove unused stkgui 2019-08-13 01:11:01 +08:00
Benau
fb928792e4 Update translation 2019-08-12 15:49:03 +08:00
Benau
c8e3d5b512 Reload addons and grand prix info after downloading assets 2019-08-12 10:21:57 +08:00
Benau
819fa6537b Correct active state for assets download when internet option changes 2019-08-12 10:02:57 +08:00
Benau
173e390755 Use openssl default after its relicensing to apache 2.0 2019-08-11 02:19:38 +08:00
Benau
88adfbc8df Limit chat to 1000 characters 2019-08-11 02:11:48 +08:00
Benau
1397f3834f Add max length to string16 en/decoding 2019-08-11 01:59:31 +08:00
Benau
d78b57ad9b Optimize large string conversion 2019-08-11 01:30:26 +08:00
Benau
f786c6fde8 Fix missing channel count in network creation 2019-08-11 01:27:32 +08:00
Benau
892a122563 Add link to latest release binaries download 2019-08-09 09:14:55 +08:00
Benau
6669a5b073 Fix track reloading memory leak 2019-08-09 01:15:22 +08:00
Benau
96fb6f057a Update translation source 2019-08-08 16:45:08 +08:00
Benau
4200f0ca59 Allow install full game assets from stk server 2019-08-08 16:38:53 +08:00
Benau
a1d0783f7a Add a pull request template for licensing stuff 2019-08-08 11:38:41 +08:00
Benau
bdf8c589de Allow using external full stk-assets 2019-08-08 09:39:01 +08:00
Benau
c9656d4410 Allow IPV6 only in iOS to connect to game server not behind a firewall 2019-07-27 15:48:21 +08:00
Benau
0b1da5a1d0 Checking for IPV6 only before connecting to game server in iOS 2019-07-27 02:12:35 +08:00
Benau
87b515ee75 Avoid hanging if exit connecting to server 2019-07-26 18:25:39 +08:00
Benau
504e2b8cbf Hide quit button in main menu for iOS 2019-07-26 15:43:09 +08:00
Deve
05684c92dc Update target sdk version 2019-07-25 23:23:14 +02:00
Deve
61f6e354a8 Add a possibility to change generate assets options using environment variables 2019-07-25 22:09:41 +02:00
Deve
75afb5e90b Fixed continue without a loop in generate assets script 2019-07-25 21:56:16 +02:00
Benau
afa26ccf97 Show download size for each option of game assets 2019-07-26 01:19:34 +08:00
Benau
722f18a587 Update translation 2019-07-25 00:45:01 +08:00
Benau
cb30e391a0 Update translation source 2019-07-24 15:49:01 +08:00
Benau
4d761f3958 Use a detailed error message 2019-07-24 15:46:50 +08:00
Benau
d0e65b0a1e Update translation source 2019-07-24 01:45:40 +08:00
dumaosen
bee235a65c UI fix bundle XI (#4018)
* Prettier server conf

* Better icon size for race result

* Delete useless min value
2019-07-24 01:44:53 +08:00
MiroslavR
7e1af5d87c Make achievement goal string consistent (#4019) 2019-07-24 01:44:17 +08:00
Benau
82557ff032 Fix crashes when leaving lobby in iOS 2019-07-24 01:38:41 +08:00
Benau
9d2f0c9548 Fix resolution change crash in iOS 2019-07-24 01:37:12 +08:00
Benau
857232fb52 Get system language for iOS 2019-07-24 01:36:21 +08:00
Benau
ef68f8377a Move creation of music information after downloading assets 2019-07-24 01:35:40 +08:00
Benau
3293196707 Move loading of SP shaders after downloading assets 2019-07-24 01:35:15 +08:00
Benau
d24e253435 Re-initialize file archives after downloading assets 2019-07-24 01:34:31 +08:00
Benau
5cc5780f28 Add download assets screen for mobile stk 2019-07-24 01:33:12 +08:00
Benau
ed011bed4c Allow extract_zip to work recursively 2019-07-21 16:37:11 +08:00
Benau
35168d2ecb Hide status bar in iPad 2019-07-19 23:40:16 +08:00
Benau
cac5ee38b5 Fix gles 2.0 in iOS simulator 2019-07-19 22:09:31 +08:00
Benau
5d2b3efe12 Add graphics restrictions for iOS simulator 2019-07-19 17:14:31 +08:00
Benau
58e69ce8df Try to fix OSX travis build 2019-07-19 17:06:07 +08:00
Deve
fd3a2099bc Tell system that it should use nvidia on optimus devices 2019-07-19 09:25:48 +02:00
Benau
c6d23205bd Fix missing archive generation in xcode 2019-07-19 01:59:02 +08:00
Benau
577d37ced3 Fix accelerometer conversion in iOS 2019-07-19 01:25:57 +08:00
Benau
f1cd119465 Use vaules from settings to determine buttons
In iOS seems that the sensors do not immediately update after you
activate them
2019-07-18 16:16:25 +08:00
Benau
834f8bb659 Update translation 2019-07-18 15:53:14 +08:00
Benau
d77fd2e69e Revert "Replace xml.dom.minidom.parse which is known to be vulnerable to XML attacks. (#3933)"
This reverts commit 74f227590e.

Expat doesn't like  ./data/achievements.xml ! Error= <type 'exceptions.NameError'>
( ("name 'defusedxml' is not defined",) )
2019-07-18 15:52:03 +08:00
Benau
3e51fadc09 Improve english 2019-07-18 15:47:47 +08:00
Alayan
40a8411090 Restore replay list density, and keep a consistent tab size 2019-07-17 20:12:10 +02:00
Benau
dbb14a2861 Fix default windows size and height in iOS 2019-07-17 16:55:09 +08:00
Benau
e722d4a0e5 Update supertuxkart iOS info plist
Need to copy icons from dependencies manually
2019-07-17 14:50:49 +08:00
Alayan-stk-2
b95c3233d6 Remove a useless and confusing test
If min_sector could be anything but UNKNOWN_SECTOR out of the loop, the "return 0" would be wrong.
2019-07-16 12:04:03 +02:00
Nathan Mills
5e9b3d2c4e Limit sscanf %s fields to prevent possible crash. (#4006)
The crash could happen if the input replay files are corrupted.
2019-07-16 11:46:11 +02:00
Benau
3c252ac4c2 Fix missing loading icons in iOS 2019-07-16 14:03:56 +08:00
Benau
b1ed88476c Use traditional chinese for Hong Kong 2019-07-16 13:51:00 +08:00
Benau
009bac7802 Share more ifdef with android and iOS 2019-07-16 13:48:25 +08:00
Benau
5537959b19 Update hardware stats for iOS 2019-07-16 13:42:16 +08:00
Benau
610d7f1fef Hide server creation buttons in iOS 2019-07-16 13:41:30 +08:00
Benau
1b0bae6954 Add version info for iOS 2019-07-16 10:39:14 +08:00
Benau
3e912900fb Use 16bit depth format (we don't use stencil in default framebuffer) 2019-07-16 01:43:47 +08:00
Benau
48fedb48c7 Add accelerometer and gyroscope to iOS 2019-07-16 01:03:37 +08:00
Benau
05486943b7 Handle quit button in STK menu
App store may not like the quit button
2019-07-16 00:56:38 +08:00
Benau
9a62b97a67 Fix multitouch in iOS 2019-07-16 00:55:25 +08:00
Benau
cf966308f6 Use GLKView to handle framebuffer directly 2019-07-15 14:21:38 +08:00
Benau
5a60cb4cdb Don't assume default framebuffer is always zero (not true in iOS) 2019-07-15 11:40:40 +08:00
MiroslavR
c671ea8f83 Fix pull_from_transifex.sh due to Transifex changes (#4002)
- Use HTTPS and new Transifex domain.
- Skip manual interactive mapping configuration.
2019-07-14 18:52:54 +08:00
Benau
d74bc17c8b Disable iOS hardware keyboard for now 2019-07-14 16:44:42 +08:00
Benau
78ff49ced5 Fix screen scaling of iOS 2019-07-14 16:42:45 +08:00
Benau
1f826b5ba7 Share the simulateMouse with android and iOS 2019-07-14 00:43:38 +08:00
Benau
f9c2e40f13 Create GLES 3 context if not legacy device 2019-07-13 14:28:58 +08:00
Benau
8c00a1e857 Share the override default params with android 2019-07-13 14:22:22 +08:00
Benau
b9d00dba6d Add MobileCursorControl to share with iOS and android STK 2019-07-13 13:56:42 +08:00
Benau
e9a6882bc3 Fix data path discovery in iOS 2019-07-13 13:46:20 +08:00
Benau
8510ebfb27 Add iOSDevice and EAGLManager 2019-07-13 13:44:03 +08:00
Benau
c7308b82b0 Add iOS flags handling in cmake 2019-07-12 14:53:55 +08:00
Deve
b185544518 Tabs to spaces 2019-07-12 08:44:55 +02:00
Deve
9415c61d75 Merge pull request #4000 from mstoeckl/wayland-conn-close
Close program when Wayland connection hangs up
2019-07-12 08:43:06 +02:00
Benau
1c79f046cb Use old progress bar image 2019-07-12 11:55:53 +08:00
Benau
05e7c64e0e Update translations 2019-07-12 11:19:53 +08:00
QwertyChouskie
c34a68896d Fix display of high-res background images 2019-07-11 19:34:52 -07:00
QwertyChouskie
62f5aa8e82 Scrollbar: Improve appearance 2019-07-11 19:34:52 -07:00
QwertyChouskie
a238dc27e5 Scrollbar: Support Advanced Stretching for background and thumb 2019-07-11 19:34:52 -07:00
QwertyChouskie
1bcb41a267 Skins: Use standard XML declaration
Otherwise Thunar thinks they are webpages
2019-07-11 19:34:52 -07:00
QwertyChouskie
f4c02a4237 Scrollbar: Increase size from 14 to 24 2019-07-11 19:34:52 -07:00
Manuel Stoeckl
1686a9e45b Close program when Wayland connection hangs up
This change ensures that SuperTuxKart will not keep running in the
background when the compositor crashes and doesn't close the STK
main window.
2019-07-11 19:36:18 -04:00
myfreeweb
ac99ace874 Fix AngelScript build on FreeBSD non-x86 2019-07-11 12:49:35 +03:00
Benau
963c6de4cd Fix #3991 2019-07-08 11:44:10 +08:00
Benau
6c096bb63b Fix #3989 2019-07-08 10:57:59 +08:00
Benau
6cab3b07c9 Avoid crashing in TrackSector if findOutOfRoadSector failed 2019-07-08 10:18:50 +08:00
Benau
400c1e5347 Fix #3597 2019-07-08 01:45:36 +08:00
Benau
dc8bbfc603 Allow saving kart color to KartStatus 2019-07-08 01:29:11 +08:00
Benau
f79f115b58 Fix country flag in CTF result screen 2019-07-08 01:08:46 +08:00
Benau
5ac5932d3a Allow specifying database waiting timeout 2019-07-08 00:26:11 +08:00
Benau
effe4a401c Update issue template for new version 2019-07-07 10:27:50 +08:00
Benau
57a37d9094 Hide supertuxkart in dock if null device for osx 2019-07-07 01:28:10 +08:00
Benau
3350d6c106 Add server only define to osx device 2019-07-07 01:12:10 +08:00
Benau
9e6e31cfb2 Allow osx app bundle running inside unicode directory 2019-07-06 16:33:55 +08:00
dumaosen
2818a1870e Delete nobest (#3987)
* Delete nobest

* Make supertux locked
2019-07-06 09:58:20 +08:00
Deve
0f415a3745 Disable system screen keyboard for android api <19 2019-07-05 22:39:28 +02:00
Deve
98f7b45a21 Add a possibility to disable system screen keyboard 2019-07-05 22:39:28 +02:00
Benau
5e2f75a078 Fix possible null current screen in overworld 2019-07-06 01:40:05 +08:00
Benau
1bcb16bafb Use utf8 to handling copy and paste in osx 2019-07-06 00:46:03 +08:00
Benau
185b468cb4 Improve azerty handling in osx
TODO: fix "~" typing
2019-07-06 00:31:33 +08:00
Benau
280152479d Skip libpng as it is already installed with freetype 2019-07-05 17:56:46 +08:00
Benau
0de1a41c5a Fix compilation in xcode 2019-07-05 17:22:18 +08:00
Benau
f9af8d3654 Use x86_64 only for libsquish in xcode 2019-07-05 16:39:06 +08:00
Benau
d1e2f87cc2 Use libpng and libjpeg from homebrew 2019-07-05 16:34:40 +08:00
Benau
a3cf8e1e4f Update gitignore for osx 2019-07-05 16:33:24 +08:00
Benau
2fe99efee0 Fix #3982 2019-07-03 07:58:27 +08:00
Benau
6dfc8dd52c Add text shaping rule for variation selector-16 2019-07-01 14:53:44 +08:00
Benau
7c4c7b6f63 Use quicker ways to stop ingame protocol after finishing game 2019-07-01 14:20:24 +08:00
Benau
3573f64ae1 Allow start and terminate protocol directly 2019-07-01 10:49:41 +08:00
Deve
242f1ecfe2 Change to spectator mode after race end in multitouch gui.
Tested only on desktop, but should work on android too.
2019-06-30 23:19:59 +02:00
Benau
c5452cda64 Allow karts with custom engine sfx 2019-07-01 01:50:29 +08:00
Benau
1aca4a9ff5 Fix artifacts in the begining of race by raytracer reflexion 2019-06-30 15:42:22 +08:00
Benau
8fa3c79be7 Clear only data from network to fix #3980 2019-06-30 10:05:56 +08:00
Benau
0253384bf9 Fix valgrind warning 2019-06-30 09:41:32 +08:00
Benau
c710057db1 Allow compling crash reporting with mingw with unicode support 2019-06-29 14:50:33 +08:00
Benau
cc671dd710 Allow showing supertuxkart icon in header bar 2019-06-29 14:38:44 +08:00
Benau
29d1dcd196 Remove console window in non-debug mingw build 2019-06-29 14:08:28 +08:00
Benau
a37b300530 Fix possible crashes in null device 2019-06-29 12:41:56 +08:00
Benau
c321490a8a Handle exception in unicode conversion other than exiting STK immediately 2019-06-29 12:17:43 +08:00
Benau
4f1361b71f Fix encoding for default username 2019-06-29 09:38:36 +08:00
Deve
23c3736bd5 Optimize png files to make apk < 100MB 2019-06-29 00:07:47 +02:00
Deve
4df28023b5 Fixed race results that were drawn too early.
It fixes #3978
2019-06-28 22:18:22 +02:00
Benau
08d686f156 Use already set unicode exe name in separate process 2019-06-29 02:02:28 +08:00
Benau
35c70a16b5 Avoid crashing if color emoji failed to load 2019-06-29 01:38:23 +08:00
Benau
b3200937da Allow getting unicode environment variables in windows 2019-06-29 00:31:30 +08:00
Benau
bc555ac514 Make all ifstream creation utf8 path aware 2019-06-28 23:39:18 +08:00
Benau
cbf55b6ecf Make all ofstream creation utf8 path aware 2019-06-28 22:54:02 +08:00
Benau
12a9237016 Make all rename utf8 path aware 2019-06-28 21:06:27 +08:00
Benau
31caa7e056 Make all fopen utf8 path aware 2019-06-28 21:05:50 +08:00
Benau
ea8896bc17 Add unicode filepath support to replay class 2019-06-28 20:59:44 +08:00
Benau
324d2817f5 Allow starting stk inside unicode filepath 2019-06-28 20:53:46 +08:00
Benau
1cd725586f Add functions to handle file in utf8 encoded name 2019-06-28 20:49:33 +08:00
ghostslayer989
74f227590e Replace xml.dom.minidom.parse which is known to be vulnerable to XML attacks. (#3933)
This code is only run during the development process when updating translations base and the source XML files are trusted data. There doesn't seem to be a downside to the change, however.
2019-06-28 12:36:08 +02:00
Alayan
fb99661d5d Display hours between 1h and 2h too in GPs 2019-06-28 12:25:17 +02:00
Deve
d9941e1be2 Merge pull request #3974 from dumaosen/master
UI fix bundle IX
2019-06-27 21:42:14 +02:00
Benau
12f08c410d Fix non-networked race with AIs country flag handling 2019-06-27 10:21:03 +08:00
dumaosen
5d676387bc Add a spacer under title 2019-06-27 06:32:03 +08:00
dumaosen
deba0b41ef Bigger icons 2019-06-26 22:19:12 +08:00
dumaosen
da84b8598b Smarter space 2019-06-26 22:06:23 +08:00
dumaosen
9ebca51c1a Revert height and width 2019-06-26 22:03:20 +08:00
dumaosen
e9522743f4 Make icons biger 2019-06-26 22:00:11 +08:00
dumaosen
53f6235125 Make widgets center 2019-06-26 21:58:02 +08:00
dumaosen
ad9a8c9c26 Make more space 2019-06-26 21:51:03 +08:00
dumaosen
85e46c06db Make title center 2019-06-26 21:46:53 +08:00
dumaosen
49e4a35b3e Add a space between icons and box 2019-06-26 21:45:31 +08:00
Benau
24c4f4c8de Fix GLES shader 2019-06-26 16:25:13 +08:00
Benau
461310dfba Fix android build 2019-06-26 16:12:22 +08:00
Benau
1620cbdbd8 Add minimum composition text support in IME 2019-06-26 15:44:55 +08:00
Benau
7184119409 Clean up input method code in windows with better unicode handling 2019-06-26 13:14:52 +08:00
Benau
c337976413 Use unicode windows build with enabling directinput support in mingw 2019-06-26 11:32:18 +08:00
samuncle
000fe8cf4e Merge pull request #3804 from supertuxkart/feature/raytracer-reflexion
Enable Space Screen Raytracer for real time reflections
2019-06-25 20:44:21 +02:00
samuncle
dfed11c6a8 Bring back the legacy gloss computation (to disable once a proper fallback is done) 2019-06-25 20:42:29 +02:00
samuncle
26a387ea36 Update the reflection 2019-06-24 23:33:03 +02:00
samuncle
10eb549012 soften the degraded ibl to make preview less dark 2019-06-24 23:33:03 +02:00
samuncle
187623b6a8 Update raytracer reflection to mitigate surface which are too glossy 2019-06-24 23:33:03 +02:00
samuncle
b787c09705 Remove useless code 2019-06-24 23:33:03 +02:00
samuncle
104de39a04 Disable completly space screen reflexion for opengl-es (probably too slow for android 2019-06-24 23:33:03 +02:00
samuncle
3291e23ca6 Reset the shader to fix the minimap 2019-06-24 23:33:03 +02:00
samuncle
674a449c10 Reset the shader to fix the minimap 2019-06-24 23:33:03 +02:00
samuncle
3cbac8e6ea Reset the shader to fix the minimap 2019-06-24 23:33:03 +02:00
samuncle
5633d217a6 Reset the shader to fix the minimap 2019-06-24 23:33:03 +02:00
samuncle
bc49620b23 A few minor changes 2019-06-24 23:33:03 +02:00
samuncle
be577df2ec Update with more probable values 2019-06-24 23:33:03 +02:00
samuncle
476b73375a Experimental raytracer with multisampling (todo: implement this properly) 2019-06-24 23:33:03 +02:00
samuncle
11562a541c Experimental blur test 2019-06-24 23:33:03 +02:00
samuncle
a5e40f9a8a Add color buffer to compute proper space screen reflexion 2019-06-24 23:33:03 +02:00
samuncle
13d121e45d remove dead code 2019-06-24 23:33:03 +02:00
samuncle
cb8f9ecf43 Minor changes 2019-06-24 23:33:03 +02:00
samuncle
025001993d Add space screen reflexion shader 2019-06-24 23:33:03 +02:00
Benau
074039d2c5 Use a better image resize code
The box filter from irrlicht produces wrong brightness when using with
different size
2019-06-23 01:02:05 +08:00
Deve
b8fbc79306 Merge pull request #3968 from ldm0/master
Typo fix
2019-06-22 07:57:51 +02:00
Donough Liu
1ce37e3bea Function name typo fix 2019-06-22 09:51:32 +08:00
Donough Liu
25926b0aec Typo fix 2019-06-22 09:37:24 +08:00
Benau
b58b93ac98 Reserve enough space for each line in profiler
And use drawQuick to avoid text shaping
2019-06-20 16:29:07 +08:00
Benau
13b6a6b25c Fix inherited script font selection 2019-06-20 15:37:53 +08:00
Benau
d0fac726d3 Allow to use emoji ingame 2019-06-20 10:34:47 +08:00
Benau
d6aa111f16 Rename country_flag capability to color_emoji for more usage 2019-06-20 01:33:46 +08:00
Benau
7165449da8 Add emoji keyboard 2019-06-20 01:24:55 +08:00
Benau
1389d55e35 Use last cluster to determine linebreaking so ligatures is handled 2019-06-19 12:49:47 +08:00
Benau
c969e40fbf Update country names for thai 2019-06-19 12:08:50 +08:00
Benau
59ccef98fb Add thai dictionary from ICU for linebreaking 2019-06-19 11:08:41 +08:00
Benau
e344a94946 Allow game protocols self-terminated if world is gone 2019-06-18 00:42:44 +08:00
Benau
0ce185e42c Allow breaking with zero-width space 2019-06-17 16:09:27 +08:00
Benau
d666a350f6 Rewrite message queue with GlyphLayout and fix #3922 2019-06-17 15:48:15 +08:00
Benau
2ff899e23e Fix android server creation exit crash 2019-06-17 11:32:08 +08:00
Benau
7d1afc99fe Fix missing achievements translation 2019-06-17 11:01:04 +08:00
Benau
d44275a1f6 Fix FPS drawing if there it's translated 2019-06-17 10:37:32 +08:00
Deve
5853ffc15d Add a possibility to move the window on wayland compositors that don't support decorations 2019-06-16 22:48:06 +02:00
Deve
4bd94f8ea6 Check hardware keyboard availability on wayland for better touch screen support 2019-06-16 22:48:06 +02:00
Benau
a0e182b142 Fix RTL top text missing 2019-06-17 01:31:51 +08:00
Benau
bb63a85d6f Remove unneeded RTL settings 2019-06-17 01:22:34 +08:00
Benau
8995342b94 Clear cached glyph layouts if too many 2019-06-17 01:12:54 +08:00
Benau
ae3fb4b004 Fix missing server infos if back from live join kart selection 2019-06-17 01:07:28 +08:00
Benau
275dbe3631 Show country flag in soccer if client supports 2019-06-16 15:25:53 +08:00
Benau
970061358b Show country flag in result screen 2019-06-16 14:07:16 +08:00
Benau
6c74d4a287 Show country flag in race gui 2019-06-16 13:56:37 +08:00
Benau
6a05325c75 Show country flag in lobby 2019-06-16 13:34:56 +08:00
Deve
09c0731392 Fixed compilation.
sstream uses _C internally, so it must be included before our #undef _C.
2019-06-15 21:48:28 +02:00
Benau
9f953fab0e Show country flag in server screen 2019-06-16 01:40:31 +08:00
Benau
8df24aedab Add tool in StringUtils to make country flag 2019-06-16 01:40:06 +08:00
Benau
c57a6a3d0d Update translation source 2019-06-16 01:02:10 +08:00
Benau
a7b096ab9b Add translation help for select challenge dialog 2019-06-16 00:58:09 +08:00
Benau
44095088ee Avoid using extreme size in non-artist debug mode if going back from it 2019-06-16 00:47:35 +08:00
dumaosen
4f6e3793b8 fix #3923 && replace fonts size to font size (#3960)
* Replace fonts size into font size

* replace fonts size to font size

* Replace fonts size into font size

* #3923 && replace fonts size to font size

* delete min & max

* add font size spinner in loadedfromfile

* Delete wrap around

* Fix a bug

* Wider range in artist debug mode

* Better word
2019-06-16 00:33:57 +08:00
Benau
fb31ddc81f Fix cursor positioning with emoji in android 2019-06-15 16:26:57 +08:00
Benau
784c6715ad Fix composing text color 2019-06-15 15:00:03 +08:00
Benau
2b33917b91 Remove unneeded RTL handling in widgets and translation 2019-06-15 14:41:23 +08:00
Benau
8d1923acfd Remove unneeded translation.hpp in header files 2019-06-15 14:28:35 +08:00
Benau
20864d3c53 Return a copy of stringw in translation to remove the mutex lock 2019-06-15 14:26:13 +08:00
Benau
9a7210614b Remove fribidize in translation class 2019-06-15 14:11:14 +08:00
Benau
b5e5d44808 Remove no longer needed fribidize 2019-06-15 14:04:55 +08:00
Benau
fc143276fe Allow to use stringw directly when setText 2019-06-15 13:56:36 +08:00
Benau
a56343b7e3 Clean up headers
Remove special RTL handling as it will be done when texting shaping
2019-06-15 13:52:28 +08:00
Benau
caa0554127 Reserve enough space for newline text 2019-06-15 11:09:31 +08:00
Benau
64b8fc4466 Round next line offset to integer to avoid blurring effect 2019-06-15 11:08:11 +08:00
Deve
b892836e94 Fixed credits screen 2019-06-14 21:47:52 +02:00
Benau
64a28f5650 Move check_error after make to check correctly 2019-06-14 22:46:35 +08:00
Benau
70a17007b6 Use separate info in server dialog 2019-06-14 21:57:56 +08:00
Benau
fdf92e108d Improve spacing in track info screen 2019-06-14 20:50:24 +08:00
Benau
c2339dc83b Make too long broken text draw as fit as possible 2019-06-14 20:39:30 +08:00
Benau
2eca3164b8 Improve cursor positioning for RTL text 2019-06-14 19:27:18 +08:00
Benau
69f71e4959 Fix post race info out of border when using big font 2019-06-14 15:33:43 +08:00
Benau
5589003a80 Fix RTL text missing in race result gui
We need to always specify the lower corner to allow auto RTL text
alignment working
2019-06-14 14:14:31 +08:00
Benau
1edb0b152e Use 4 spaces instead of tab for separation 2019-06-14 13:44:43 +08:00
Benau
e969a5a352 Reserve enough space for general textfield dialog for RTL text alignment 2019-06-14 13:26:33 +08:00
Benau
d51f7f4448 Avoid substr exception when using on-screen keyboard 2019-06-14 11:32:47 +08:00
Benau
c3a719cd4b Change some on-screen keyboard characters after FreeSans is removed 2019-06-14 11:03:51 +08:00
Benau
acc05bfcef Only toggleOnScreenKeyboard false if using it 2019-06-14 10:40:54 +08:00
dumaosen
b7dc5dd6f2 New interface of challenge selection (#3957)
* New interface

* New interface

* New interface

* Replace tabs into 4 spaces && fix a bug

* Change the solution

* Fix a bug
2019-06-13 20:49:25 +02:00
Benau
84fa4ecac8 Fix text display with RTL 2019-06-14 01:45:21 +08:00
Deve
ec97bc8316 Always call drawTooltips.
If tooltips list is empty, then it does nothing and at least the list is cleared each frame.

It fixes a crash for #3957
2019-06-13 19:21:31 +02:00
Deve
8c4ace6c17 Call onUpdate before drawing is started.
No idea why it's in render() function, especially that some dialogs are self-destroyed in onUpdate.

It may need some testing if everything is ok.
2019-06-13 19:17:25 +02:00
Deve
c8099cd11d Fixed android compilation 2019-06-12 10:00:17 +02:00
Benau
392d3cfe86 Fix memory read error by moving destruction of dialog to onUpdate 2019-06-12 12:07:58 +08:00
Benau
effc0a27dc Always use thin border for fallback font (emoji)
Which avoids the scaling issue of border
2019-06-12 09:06:54 +08:00
Benau
f07110ed26 Fix #3936 2019-06-12 08:44:39 +08:00
Benau
65a54cbd8b Fix color emoji scaled wrongly with overbright color 2019-06-12 01:18:36 +08:00
Benau
c398ba4484 Fix server only build 2019-06-12 00:34:32 +08:00
Benau
d7cd98f636 Use a smaller ratio to waste less space 2019-06-11 16:30:06 +08:00
Benau
1707ac7e1e Use GlyphLayout to draw list widget 2019-06-11 16:29:35 +08:00
Benau
44796bc8c0 Use a better way to erase top text 2019-06-11 15:05:46 +08:00
Benau
0fdbe5d34f Fix utf16 conversion
Follow the rules in:
https://github.com/brofield/simpleini/blob/master/ConvertUTF.c
2019-06-11 08:29:48 +08:00
Benau
5af761b841 Make xmlEncode/Decode working in windows 2019-06-11 01:07:42 +08:00
Benau
591bd0c3af Use utf16 for java string to stringw conversion 2019-06-10 16:09:07 +08:00
Benau
c0faf69a42 Add utf32 / wchar_t handling in network string 2019-06-10 15:31:49 +08:00
Benau
c5f3f3aecf Update android build script for new libraries 2019-06-10 13:54:10 +08:00
Benau
28cc2838a8 Add color emoji 2019-06-10 10:35:42 +08:00
Benau
89e3bcd11b Update stk edit box to be more i18n friendly 2019-06-10 00:43:31 +08:00
Benau
acb9054dcb Use libraqm for text layout 2019-06-09 11:26:00 +08:00
Benau
43d322c634 Add libraries for emoji and complex text 2019-06-09 10:06:50 +08:00
dumaosen
6cc75a106b UI fix bundle VII (#3949)
* Smarter size

* Better size

* Smarter row size

* Smarter size

* Fix #3792

* Bigger title && use 4 spaces

* Fix #3792

* Better credits

* Smarter size

* Less lines to preserve space

* Smarter icon size

* Better size

* Completely fix #3792

Using buttonbar in every line can avoid scaling problems

* Completely fix #3792

* Completely fix #3792

* Add space under the screen

* Make space smaller

* Smarter ratingbar size

* Better size

* More reasonable size for powerup texts

* Better spacer under the screen

* Sparter space under buttons

* Smarter space under buttons

* Smarter space

* Smaeter space under icons

* Smarter space under buttons

* Smarter space

* Smarter space under butons

* Smarter space

* Smarter space under buttons

* Smarter space

* Smarter space under buttons

* Smarter space

* Smarter stars size

* Fix an extra line

* change buttonbar back into ribbon

* dont declare the width of the buttons

It may cause some characters partly showed or hidden in some lang
2019-06-08 22:01:54 +02:00
Deve
08c61bfb91 Disable changing font size during race 2019-06-05 23:31:24 +02:00
Deve
4c4b6eda3a Merge branch 'gradlew' 2019-06-05 23:02:44 +02:00
Deve
7f42b84432 Allow to modify multitouch settings during the race 2019-06-05 22:59:47 +02:00
Benau
75be2b16c9 Update translation with thai font 2019-06-05 10:18:29 +08:00
Reiner Herrmann
07b6a16000 Fix several spelling/grammar errors (#3951)
found by lintian
2019-06-04 19:04:18 -04:00
Deve
c5d681dcc7 Remove ant support 2019-06-04 22:28:24 +02:00
Deve
7129e36901 Use gradle wrapper to avoid compilation errors on some systems 2019-06-04 22:23:07 +02:00
Benau
a429410340 Update fonts to allow use the minimum size
Remove too incomplete translation to load less, and it should be
possible to load CJK font in /system/fonts on android to reduce
apk size
2019-05-31 19:12:35 +08:00
Benau
867cecc01e Refactor FaceTTF for later better usage 2019-05-30 10:34:47 +08:00
dumaosen
dd9d5c89e1 Use icons in general_text_field (#3944)
* Use icons in general_text_field

* Use icons for general_text_field

* Add </buttonbar>

* Use 4 spaces
2019-05-29 01:14:01 +08:00
Benau
d487a2e72e Clear text when closing keyboard if onEnterPressed returns true 2019-05-28 15:21:06 +08:00
Benau
391b61be95 Fix highlighting of composing text in the middle of sentence 2019-05-28 14:24:45 +08:00
Benau
240546ac00 Fix waiting message for big font size 2019-05-28 11:37:50 +08:00
Benau
4413c06a82 Allow login with next button in native android keyboard 2019-05-28 09:52:20 +08:00
Benau
1d3dfc3110 Only do android callback for soft keyboard 2019-05-28 01:55:10 +08:00
Benau
6216d003b6 Code clean up 2019-05-28 01:47:41 +08:00
Benau
677d984267 Fix navigation with hacker keyboard arrows 2019-05-28 01:43:42 +08:00
Benau
2744a24951 Don't set input type if it's the same as old one
It breaks Gboard word correction if you change cursor in screen
2019-05-28 00:53:53 +08:00
Benau
1d5e80c131 Add cap sentences for chat
Can be disabled in per keyboard setting in system configuration
2019-05-28 00:43:08 +08:00
Benau
e3ce7d0a19 Use email keyboard if possible 2019-05-27 21:11:35 +08:00
Benau
336300b997 Allow showing different soft keyboard in android 2019-05-27 16:34:16 +08:00
Benau
420c51955e Handle action next with STK properly 2019-05-27 15:51:36 +08:00
Benau
e24f95eefa Make sure STKEdit focus is gone when not needed 2019-05-27 14:25:08 +08:00
Benau
72c61e412a Fix compiler warnings 2019-05-27 13:13:51 +08:00
Benau
d3ef05b37c Remove unused functions 2019-05-27 12:41:28 +08:00
Benau
f61241f745 Add onTextUpdated for android soft keyboard input 2019-05-27 12:32:23 +08:00
Benau
a96071f9d3 Make android callback thread safe 2019-05-27 12:17:08 +08:00
Benau
febad27342 Prevent copying text to non focused widget in STK.
It can happen if user uses the arrows in hacker keyboard to change
widget focus
2019-05-27 11:09:28 +08:00
Benau
9b94437cac Make it possible to show missing texture file name 2019-05-27 08:44:57 +08:00
Benau
678d3cdf81 Fix Gboard selection 2019-05-27 00:39:00 +08:00
Benau
baa2feab14 Use utf32 for conversion 2019-05-26 01:18:51 +08:00
David CARLIER
a4f962ce57 Silent build warning, exception as ref. instead (#3940) 2019-05-26 00:36:54 +08:00
Benau
34e680bfbd Allow copying from STK edit box to android edit text 2019-05-25 22:19:15 +08:00
Benau
e1a7901c4c Add callback before hiding the soft keyboard 2019-05-25 13:34:36 +08:00
Benau
e6d5346e5e Allow copying java EditText to STK editbox 2019-05-25 00:40:37 +08:00
Benau
27f0f8c961 Move hideNavBar to java for native android keyboard 2019-05-21 16:31:59 +08:00
Benau
1814472214 Improve screen keyboard handling for android (tv)
And remove some android ifdef for wayland on screen keyboard later
2019-05-21 12:43:20 +08:00
Deve
f14d8fd921 Update android builder script 2019-05-20 22:30:49 +02:00
Deve
21f148bea2 Update gradle plugin version to avoid error in release build.
Now it needs gradle >= 4.4
2019-05-20 22:30:17 +02:00
Benau
d5246e5291 Move the screen and touchscreen events horizontally for screen keyboard 2019-05-21 01:46:14 +08:00
dumaosen
18dc77c8f9 UI fix bundle VI (#3926)
* Fix skill bars bug in local multiplayer

* Fix skill bars bug in local multiplayer

* Smaller height

* Better multiplayer spinner
2019-05-19 22:42:46 +02:00
Benau
766c971339 Try to save keyboard height for moving screen with it later 2019-05-19 17:41:51 +08:00
Benau
ede56a3cf8 Move show and hide keyboard to java memeber function 2019-05-18 15:35:25 +08:00
Benau
0e1c0d1541 Allow handling ACTION_MULTIPLE for unicode and voice message 2019-05-18 09:15:58 +08:00
dumaosen
2d3ae6aefc UI fix bundle V (#3921)
* Use font height

* Smarter space

* Smarter space

* Better space to avoid bad looking ui

* Smarter space

* Use font height

* Better height

* Better skill bar look

* Better skill bars look
2019-05-17 21:42:45 +02:00
Deve
ec485bae4c Add font size to options 2019-05-16 22:16:36 +02:00
dumaosen
86a0d06f99 IV for better row size (#3920)
* Smaller rows

* Bigger row

* Smaller row
2019-05-16 21:21:56 +02:00
Deve
80be3a936a Some gui fixes 2019-05-15 22:54:39 +02:00
Deve
10a580ebd3 Give slightly more space for options in tracks screen 2019-05-15 22:37:56 +02:00
Deve
5b133c21c9 Make hiscores list scrollable 2019-05-15 22:27:29 +02:00
dumaosen
dff77dd808 GenIII for scaling issues fix (#3917)
* Use foont height

* Use font height

* Bigger size

* Use font height

* Use font height

* Use font height

* Use font height

* Better height

* Use font height

* Use font height

* Bigger size
2019-05-15 12:13:50 +02:00
Benau
6bd92e41a6 Update translations 2019-05-15 16:34:29 +08:00
Benau
30ab026101 Update translation string 2019-05-14 15:21:28 +08:00
Benau
206a3d8aec Add server location to dialog 2019-05-14 15:16:21 +08:00
Benau
b9f82ebdf0 Rename network user dialog to network player dialog 2019-05-14 14:44:58 +08:00
Benau
8ccf57f100 Merge pull request #3916 from chewi/system-squish
CMake: Add option to use system Squish library
2019-05-14 10:08:12 +08:00
Benau
b79151c760 Enable live join only when no game protocols 2019-05-14 09:05:46 +08:00
Benau
45cafe9984 Replace tab with 4 spaces 2019-05-14 08:34:36 +08:00
James Le Cuirot
e1601b1ae0 CMake: Add option to use system Squish library
The system version was preferred before but it wasn't possible to
explicitly disable it, making its use automagic, which is bad for
packaging.
2019-05-13 22:52:33 +01:00
Deve
e972c7d40f Draw user button over logo to avoid hover conflict 2019-05-13 23:48:11 +02:00
Deve
4883e4a585 Use floating point value for font scale 2019-05-13 23:46:28 +02:00
dumaosen
da4ac0a976 A better solution for those scaling issues in high or creepy resolutions gen II (#3910)
* Fix scaling issues

* Fonts size adjustion support

* Add fonts size support && Fix scaling issue

* Use fonts height

* Fix scaling issues

* Add my name onto CREDITS

* Fix scaling issues

* Fix scaling issues

* Use space instead of tab

* Use space instead of tab

* Fix bad scale

* Use font height
2019-05-13 23:39:43 +02:00
Benau
86bc8bd877 Add country code info to submit ranking 2019-05-14 01:04:20 +08:00
Benau
07e490c038 Make sure protocol only started once 2019-05-14 00:25:01 +08:00
Benau
8027df6373 Fix possible enet packet leaking 2019-05-14 00:07:40 +08:00
Benau
7ee774118b Move validation checking to sendPacketToAllPeersWith 2019-05-13 15:41:15 +08:00
Benau
bb65ba927e Always discard unknown synchronous message instead of keeping it
Synchronous message can only be EVENT_TYPE_MESSAGE anyway
2019-05-13 14:02:04 +08:00
Benau
fff6c1d51f Add success status to player who reports 2019-05-13 13:25:43 +08:00
Benau
5b6b38346c Clean up protocol manager 2019-05-13 12:02:21 +08:00
Benau
0912758d0e Get a copied list of protocols to prevent long time locking 2019-05-12 15:43:11 +08:00
Benau
b0695b08a5 Use mono time for event arrival time 2019-05-12 14:33:48 +08:00
Benau
d7bffa4ade Check again for max players if it's pending connection
Should fix #3874
2019-05-12 13:39:16 +08:00
Benau
4fe2fc5f58 Add last session player info if sqlite supports window functions 2019-05-12 13:04:43 +08:00
Benau
21322fdf9e Allow showing full country info in views 2019-05-11 10:16:38 +08:00
Benau
d47cdac279 Fix server only build 2019-05-11 08:27:24 +08:00
Benau
b3bbe934d4 Sort full stats with connected_time
So newest connection come first in sql viewer
2019-05-11 07:53:38 +08:00
Benau
480ce07ae0 Show player location if available from server 2019-05-11 01:47:45 +08:00
Benau
1b5c0fbabe Add localized country name handling 2019-05-11 01:11:48 +08:00
Benau
b2ad140a78 Add tools to generate localized country name 2019-05-11 01:06:48 +08:00
Benau
81dafa44d2 Use sqlite3_busy_handler to allow writing lock waiting 2019-05-10 20:14:36 +08:00
Benau
b10b2948c3 Fix copy and paste typo 2019-05-10 16:49:38 +08:00
Benau
f54af02b45 Use sqlite3_open_v2 with SQLITE_OPEN_SHAREDCACHE 2019-05-10 16:16:09 +08:00
Benau
66c34c7443 Always call sqlite3_finalize to avoid deadlock 2019-05-10 15:35:02 +08:00
Benau
21a23dc9e6 Add optional ip geolocation table support 2019-05-10 11:35:04 +08:00
Benau
005418d611 Use sqlite3_bind_text to allow special characters in text 2019-05-10 09:30:02 +08:00
Benau
ef9b80e5af Add server uid to player reports table 2019-05-10 01:31:38 +08:00
Benau
44618c2a52 Rename to country code for a better name 2019-05-10 00:43:21 +08:00
Benau
a569d1f823 Clear expired player reports if necessary 2019-05-09 16:23:07 +08:00
Benau
bf3466d4d1 Write report info to table 2019-05-09 15:45:02 +08:00
Benau
65e53f19e5 Add framework for reporting player 2019-05-09 14:36:47 +08:00
Benau
fce5827c7d Allow using empty ban table name to disable its functionality 2019-05-09 13:09:50 +08:00
Benau
c90d32e35d Add easySQLQuery for simple sql query 2019-05-09 12:29:29 +08:00
Benau
c38278fbc1 Add report_player network capabilities 2019-05-09 11:22:19 +08:00
Benau
bb3566ac81 Add report player function in dialog 2019-05-09 10:04:19 +08:00
Benau
e97e84f194 Fix #3907 2019-05-08 14:19:49 +08:00
Benau
7113c4bcec Fix typo 2019-05-08 13:04:12 +08:00
Benau
a2b951d769 Add per minute database cleanup 2019-05-08 12:51:50 +08:00
Benau
569042afa4 Fix powerup zipper fire missing in remote karts 2019-05-07 16:17:28 +08:00
auria.mg
e0d7e58bda Add credit for donator who wishes to be listed in the credits 2019-05-06 19:43:38 -04:00
Alayan
83d5c07046 Cleaner sorting code for 3SB kart rank 2019-05-06 20:56:19 +02:00
Benau
6f8d0892a2 Fix sign of time with mono clock 2019-05-06 16:41:29 +08:00
Benau
ebf95ee958 Use monotonic clock to avoid system time changes 2019-05-06 15:17:19 +08:00
Benau
2bfa7dd5f8 Add first and last played time to player stats view 2019-05-06 14:45:11 +08:00
Benau
ab9e8b7dcf Add some useful default view from stats table 2019-05-06 12:52:29 +08:00
Benau
f34e0e9dc0 Hide rewind queue warnings if not connection debug 2019-05-06 12:26:11 +08:00
Benau
9e06fe9b6f Add current query to error log message 2019-05-06 01:16:27 +08:00
Benau
932b17a7e5 Don't show verbose player info in log if database management 2019-05-06 00:52:11 +08:00
Benau
f6e8ff2936 Add server stats table and writing handling 2019-05-06 00:46:29 +08:00
Benau
f397064850 Remove old ban list 2019-05-06 00:20:30 +08:00
Benau
bcc3aef4c8 Add sqlite3 for ip / online id ban table 2019-05-06 00:19:58 +08:00
Benau
7d19ccaad8 Make controller events conditional wait to avoid being stalled 2019-05-05 15:46:59 +08:00
Alayan
fb7c82786a Simplify selection of the most appropriate set of egg in egg hunts 2019-05-05 00:15:07 +02:00
Alayan
f27a51f680 Fix #3904 (less harsh finish times in networked races, because of auto-end) 2019-05-04 22:30:31 +02:00
Alayan
78b07e5c54 Simplify number of AI in teams computations 2019-05-04 21:24:38 +02:00
Alayan
4e1d91bcaf Fix #3459 2019-05-04 19:27:22 +02:00
Alayan
bc17caa3d0 Add special text for nitro challenges 2019-05-04 18:44:29 +02:00
Alayan
fbb0f48101 Replace lap number indicator by challenge type indicator 2019-05-04 18:24:31 +02:00
Mario
bbfc4dce82 Clear separation between information for readers/players and contributors (#3860) 2019-05-04 16:39:53 +02:00
Benau
a9d9d1a121 Ignore player finished result screen event during reset 2019-05-04 15:08:54 +08:00
Benau
626309d027 Move resetServer to async thread to avoid mutex locking 2019-05-04 00:52:21 +08:00
Alayan
141f870ad8 Fix #3899 2019-05-03 00:04:05 +02:00
Alayan
d6c0847b66 Remove some useless code 2019-05-02 23:53:52 +02:00
Benau
0d72de7094 Merge pull request #3891 from devnexen/register_kw_obsolete
register keyword removal
2019-05-01 17:54:59 +08:00
David Carlier
3b699034f9 register keyword removal 2019-04-30 21:20:08 +01:00
Alayan
5206f22a9c Remove useless code from the overworld UI 2019-04-29 23:40:30 +02:00
Alayan
e60cf7fcc3 Fix #3856 2019-04-29 21:52:24 +02:00
Alayan-stk-2
b4a3214c46 Improve the english for some networking log messages 2019-04-29 21:32:18 +02:00
Benau
d88522768e Add basic checking to prevent fake ranked servers 2019-04-29 16:22:56 +08:00
Alayan
03b7ca4ae4 Fix #3883 2019-04-28 03:37:03 +02:00
Alayan
82d6d220d4 Replace hardcoded ticks value by time2ticks calls 2019-04-28 03:32:09 +02:00
Deve
a742d17fd1 Fixed build with gradle 4.4 2019-04-26 00:11:49 +02:00
Benau
1f32066248 Update CHANGELOG.md 2019-04-20 14:11:09 +08:00
Daniel Butum
647c4bad6c Fix #3842 by always using https links (#3854) 2019-04-19 19:31:26 +02:00
hiker
74dbf55da3 Updated donors. 2019-04-19 17:06:56 +10:00
Alayan
d7aeae95f0 Update credits and changelog 2019-04-18 20:28:56 +02:00
Alayan
e7ab8c4823 Merge branch 'master' of https://github.com/supertuxkart/stk-code 2019-04-18 19:42:20 +02:00
Alayan
321404db9e Fix #3852, several other improvements to the server info dialog 2019-04-18 19:40:55 +02:00
Benau
48a2b82801 Update translation 2019-04-19 01:03:41 +08:00
Alayan
5ec783db3d Fix #3491 2019-04-18 18:04:34 +02:00
Deve
ab18b6cba8 Fixed server only build 2019-04-18 06:57:08 +02:00
Benau
60520dc6c3 Fix #3843 2019-04-18 08:29:23 +08:00
Deve
a6635ecad7 Don't recreate device for legacy pipeline when video options are changed 2019-04-17 23:30:20 +02:00
Deve
f7e25b14b1 Avoid a crash when exception is thrown during changing resolution or turning advanced lighting on/off.
It will close STK anyway, but at least won't delete already deleted object.
2019-04-17 22:37:20 +02:00
Alayan
ea0e0d5e4f Update Black Forest standard replay 2019-04-17 19:43:45 +02:00
Alayan
b05911fdbd Quick fix for kart being shown unlocked again when completing a challenge at higher difficulty 2019-04-17 18:46:22 +02:00
Alayan
81c4d3ed6f Add comment 2019-04-17 17:33:51 +02:00
Alayan
eba9dfcb25 Fix regression 2019-04-17 17:25:18 +02:00
Alayan
201db403f9 Merge branch 'master' of https://github.com/supertuxkart/stk-code 2019-04-17 17:09:46 +02:00
Alayan
a8217eb334 Shrink some challenge management code 2019-04-17 17:05:34 +02:00
Benau
892b9b3f39 Re-enable server config file version checking 2019-04-17 11:13:19 +08:00
Benau
1b6ab86ab0 Fix crashing in MSVC 2019 2019-04-17 08:20:14 +08:00
Benau
6c0e06dda8 Fix supertux oilvermath replay finish time for new kiki 2019-04-17 08:17:57 +08:00
Alayan
67775fc1ea Remove useless story mode unlock code 2019-04-16 17:25:11 +02:00
Alayan
e7a9219f1f Add replay file name next to replay error messages 2019-04-16 16:42:24 +02:00
Benau
e2b694f47f Prevent hangs in networking game if system clock running backwards 2019-04-16 19:16:55 +08:00
Benau
62e3f3fdbe Fix kart color copying 2019-04-16 15:40:02 +08:00
Benau
4db16ce701 Allow resynchronize players list for battle mode before starting 2019-04-16 14:32:32 +08:00
Benau
54375ab682 Split decode and encode players list for later usage 2019-04-16 10:29:46 +08:00
Alayan
78eb83b989 Fix #3831 2019-04-15 23:00:06 +02:00
Alayan
2779487d0b Fix #3823 2019-04-15 17:55:48 +02:00
Benau
aecee4c781 Fix possible division by zero 2019-04-15 11:20:25 +08:00
Benau
49e6bda418 Make collision shape more like a circle if it's large 2019-04-14 12:12:53 +08:00
Benau
dc11040312 Use a special variable to save confirmed finish ticks 2019-04-13 13:12:02 +08:00
Benau
ce03cca29c Disable music phase in no graphics mode
So players can go back to lobby eariler
2019-04-13 01:14:42 +08:00
Benau
5f1ef72014 Add thread safe checking when resetting server 2019-04-13 01:14:30 +08:00
Deve
61cb274313 Don't recreate device when legacy context is already created 2019-04-11 18:22:05 +02:00
Benau
0cbb8e4385 Use a prettier tag for recommended servers 2019-04-11 14:09:14 +08:00
David CARLIER
c905447a4b Enable a bit more stats for BSD systems. (#3833) 2019-04-10 19:01:35 -04:00
Benau
3c8c5eb3c4 Don't set count up ticks for setTime/Ticks
This fix follow the leader broken kart animation
2019-04-10 15:47:13 +08:00
Benau
9f122e0277 Take server distance into account for quick play 2019-04-10 15:21:42 +08:00
Benau
f9ad901403 Update changelog 2019-04-10 10:32:57 +08:00
Benau
cc1b0806c9 Handle if server has different graph node list 2019-04-10 10:16:23 +08:00
Deve
19b0bc7fa9 Restore selection after votes list update.
It allows to choose vote from list even if someone is spamming with random track button.
2019-04-09 21:18:38 +02:00
Benau
a0b3bdd4c2 Use a better check for lobby ready so server info won't be erased 2019-04-09 16:29:12 +08:00
Benau
744ce6bc1a Fix #3820 2019-04-09 15:16:05 +08:00
Benau
34f262b05b Use the old method to create graphical attachment effects
See #3820
2019-04-09 14:23:39 +08:00
Benau
de1cd8e982 Don't replay goo sound during rewind 2019-04-09 09:14:23 +08:00
Alayan-stk-2
6305e9d1fc Edit finish time to match the result of the new Kiki kart model 2019-04-09 00:20:45 +02:00
Deve
9ba4f023a1 Avoid incorrect kart positions in gpwin cutscene for very high dt 2019-04-08 21:09:44 +02:00
Benau
44fdd1ec85 Try to fix cutscene timing issues 2019-04-09 02:06:59 +08:00
Deve
74c09756a8 Fixed compilation 2019-04-07 22:11:32 +02:00
Rémi Verschelde
54890a0c0d CMake: Add option to use system WiiUse (#3817)
Adapted from Fedora patch by @ignatenkobrain:
be85787d34/f/0002-Unbundle-WiiUse.patch
2019-04-07 22:10:33 +02:00
Benau
bd7ff6cf3c Update strings 2019-04-07 10:24:08 +08:00
Benau
3de23aba0f Update for ingame chat 2019-04-07 10:22:35 +08:00
Benau
398b173eec Use special message for kicking high ping and starting game 2019-04-07 10:22:02 +08:00
Deve
157dc89cd2 Disable sse2 in libsquish for some known unsupported architectures 2019-04-05 21:43:34 +02:00
Benau
230d8f56fa Don't update setText each frame 2019-04-05 17:48:45 +08:00
Benau
fb03b74285 Fix compiler warning 2019-04-05 17:35:59 +08:00
QwertyChouskie
0673ee07e8 Description part 3 (#3796)
* Description part 3

:)

* an -> a
2019-04-04 18:38:26 -04:00
Deve
d9550fbb28 Stop accepting events when we are waiting for destroy event on android.
This is to make sure that there is no eg. multiple events in single loop, so that user could open another screen before window is actually closed.
2019-04-04 22:24:14 +02:00
Deve
0dcaaa871a Don't convert kart textures to jpg on android.
Some karts look much better and there is enough space in apk.
2019-04-04 22:06:59 +02:00
Benau
b03af63ab7 Fix android exit crash 2019-04-04 07:59:32 +08:00
jpenguin
d8a9accba3 Added documtation for CentOS/RHEL/Mageia/OpenSUSE (#3813)
* Added 2 more distro's to dependencies

* Addedd CemtOS/RHEL commands

I am not sure if this is the best file for them

* Update INSTALL.md
2019-04-03 23:13:38 +02:00
Deve
f25bdc5653 Revert "Always use current window size."
This reverts commit f974c9200c.
2019-04-03 23:06:13 +02:00
Benau
53f4863e43 Revert "Fix bug with PBR roughness (was working in metal but not plastic materials"
This reverts commit ddd80c1715.
2019-04-04 01:15:05 +08:00
Benau
9c127096dc Update NETWORKING.md for new options 2019-04-03 14:57:16 +08:00
Benau
091e9e0f1e Add the possibility to disable track voting in server 2019-04-03 14:30:46 +08:00
Benau
e0de1318d2 Allow disable chat in server side 2019-04-03 12:38:40 +08:00
Benau
05fad217e3 Make a better class for kart animation creation exception 2019-04-03 10:25:38 +08:00
Benau
d990bcb2a1 Remove hacks for lod completely which breaks legacy pipeline
We will do the proper lod optimization after this release
2019-04-02 08:50:07 +08:00
Benau
625a192cda Add the possibility to disable texture compression for material 2019-04-02 01:59:22 +08:00
Benau
ecc0007b29 Fix crash if top screen is networking lobby --connect-now 2019-03-29 14:38:38 +08:00
hiker
1994fba62b Implemented the work around for #3671 (GP aborted if an unlock screen
is shown between races).
2019-03-29 08:23:05 +11:00
Benau
d245676441 Update NETWORKING.md for new server 2019-03-27 00:38:58 +08:00
Benau
9148c5f768 Rename config directory name to config-0.10 2019-03-26 15:28:53 +08:00
Benau
0fe162a54a Update server version 2019-03-26 02:51:45 +08:00
Benau
7aa025e13c Merge remote-tracking branch 'origin/master' into network 2019-03-26 02:48:14 +08:00
Benau
d8edde34da Add document for compressed network values 2019-03-26 02:44:52 +08:00
Benau
194d7d6419 Update document for check trigger 2019-03-26 01:55:43 +08:00
Benau
66d6785dda Add document for joinToMainTrack 2019-03-26 01:38:15 +08:00
Benau
7719cd1d81 Don't reset spectate camera in network
So look back camera won't be reset when explosion animation ends
2019-03-26 01:25:10 +08:00
Benau
420ac45ba1 Remove unneeded static_cast 2019-03-26 00:25:06 +08:00
Benau
220f5e6e4c Use hex values for 24bit compression 2019-03-25 23:46:18 +08:00
Benau
4670c9a5e9 Avoid sqrt of length() 2019-03-25 21:13:48 +08:00
Benau
8a00d1e1ab Move referee frame setting to its own class 2019-03-25 16:37:44 +08:00
Benau
3a90e828a4 Remove kart animation when goal phase
This will make sure all karts will be back to own goal at the same
time without animation playing
2019-03-25 16:19:29 +08:00
Benau
16507510a3 Compress current rotation in cannon animation 2019-03-25 12:17:40 +08:00
Benau
84a2b8af84 Reserve code for extra spectators 2019-03-25 11:22:45 +08:00
Benau
042af60417 Clean up icon handling, split spectate icon out of waiting 2019-03-25 01:53:48 +08:00
Benau
366ee5caad Determine live join by server 2019-03-24 16:44:03 +08:00
Benau
6e97c976f5 Undo lean angle applied by parent using matrix instead of setting height
This fixes adiumy rear wheel leaving ground when turning
2019-03-23 11:47:15 +08:00
Benau
2aede6fa25 Make check cannon rewind-friendly without using previous position 2019-03-17 12:35:42 +08:00
Benau
5b4ae2a59f Reset m_state after timeout is reset in setup 2019-03-17 01:27:07 +08:00
Deve
ee1fede8d8 Add ravenbridge mansion to the apk 2019-03-15 22:06:35 +01:00
Deve
7b58c439fc Fixed a crash on nvidia when recreating egl context 2019-03-14 22:56:38 +01:00
Deve
4e7526a712 Replace dot/comma position in screen keyboard 2019-03-14 21:18:30 +01:00
samuncle
f506e8659e Merge pull request #3808 from supertuxkart/bugfix/fix-PBR-computation
Fix bug with PBR roughness (was working in metal but not plastic mate…
2019-03-14 20:52:01 +01:00
samuncle
ddd80c1715 Fix bug with PBR roughness (was working in metal but not plastic materials 2019-03-14 19:57:28 +01:00
Benau
92ffcb22bc Fix compiler warnings 2019-03-14 14:03:41 +08:00
Benau
96d4ffb1f3 Handle server owner status in player list update 2019-03-14 11:48:47 +08:00
Benau
324d72cc6f Make the iv send in network order 2019-03-14 11:38:58 +08:00
Benau
8446ce9a5c Reserve 1 channel for game replay transfer 2019-03-14 10:39:01 +08:00
Benau
b3ca809da4 Remove unneeded objs at once after the for loop 2019-03-13 16:40:21 +08:00
Benau
9cbd2abe5d Make flag deactivated time configurable 2019-03-13 15:42:59 +08:00
Alayan
5868087eef Add a standard black forest replay 2019-03-13 04:35:26 +01:00
Alayan
a1c1ea7eb7 Use black forest instead of green valley in the 4th GP 2019-03-13 03:54:42 +01:00
Alayan
a38bb754e7 Switch the green valley challenge to Black Forest 2019-03-13 03:53:47 +01:00
Alayan
0085151bc4 Fix #3750 2019-03-13 03:35:42 +01:00
Deve
bd51bb1633 Fixed compiler warnings 2019-03-12 21:40:17 +01:00
Deve
b16c8138cd Update translations 2019-03-12 21:00:57 +01:00
auria.mg
fef068138b Update transations 2019-03-11 20:02:29 -04:00
samuncle
2619162ba9 remove stupid code 2019-03-12 00:47:04 +01:00
samuncle
73149481ef disable lod smooth. Need to be fixed for multiplayer, after release 2019-03-12 00:43:15 +01:00
samuncle
1acc6ecea0 Display the version of the engine 2019-03-11 23:26:44 +01:00
Benau
92460d8823 Clear old events in server 2019-03-11 09:27:43 +08:00
QwertyChouskie
2f1151edbe Disable internet-dependent checkboxes rather than hiding them (#3798)
This feels much more natural.
2019-03-09 20:58:13 +01:00
Benau
809e15031c Allow telling client the banned reason for the future 2019-03-09 15:56:34 +08:00
Benau
4c2fe75cb4 Add network capabilities to handle same server version changes 2019-03-09 15:14:13 +08:00
Benau
cb8525492a Preload more particles xml to avoid ingame hang 2019-03-08 20:46:31 +08:00
Benau
b04a00b9d1 Clamp m_fraction_of_line -1 and 1 correctly 2019-03-08 15:23:17 +08:00
Benau
e848835d19 Fix stutter bomb animation 2019-03-07 16:07:09 +08:00
Benau
4821b66520 Save 1 less digit for compressed origin from btTransform 2019-03-07 15:53:56 +08:00
Benau
ffca0c0d36 Improve goal when live join is happening 2019-03-07 15:40:25 +08:00
Deve
3c7673ccfc Revert waiting for mapped window before reading dimensions.
It causes issues on some systems.
2019-03-06 21:05:48 +01:00
Benau
09a62747f6 Further improve kart state saving 2019-03-06 14:03:39 +08:00
Deve
0a4211af82 Fixed compilation 2019-03-06 06:26:18 +01:00
Benau
0af220538a Remove physics only invisible objects after joining 2019-03-06 06:26:18 +01:00
Benau
7fb3aa7570 Combine static physical objects with irrlicht GeometryCreator 2019-03-06 06:26:18 +01:00
Alayan-stk-2
4496dc305b Restore the description changes after "spaceship" 2019-03-06 01:41:52 +01:00
QwertyChouskie
a2d1778e56 Update description part 2 (#3794) 2019-03-05 19:27:29 -05:00
samuncle
c543c02b21 Smooth the transition to avoid a gap 2019-03-05 22:24:37 +01:00
Deve
b193592ccf Better font height on very high resolutions 2019-03-05 22:00:00 +01:00
Deve
c1f49c3d07 Fixed rank number on high resolutions 2019-03-05 22:00:00 +01:00
samuncle
bb42d72bc5 Remove commented code + disable autolodcompute for RC 2019-03-05 20:59:39 +01:00
Benau
2e007d7883 Fix #3737 2019-03-05 15:38:35 +08:00
samuncle
7ff6f291d2 Merge pull request #3789 from supertuxkart/feature/auto-LoD-computation
Feature/auto LoD computation
2019-03-05 00:28:06 +01:00
samuncle
187b28613b Decrease the amount of time we compute the culling distance for lod + add the complexity factor of the map into account 2019-03-05 00:23:55 +01:00
samuncle
cb2719e1fb Rename volume to area (to reflect the change in the algo 2019-03-04 21:29:54 +01:00
Benau
38568484fb Restore physical object moved by 3d animation even the first rewind ticks 2019-03-04 09:54:22 +08:00
QwertyChouskie
95b3527c83 Update description in supertuxkart.appdata.xml (#3778)
* Update supertuxkart.appdata.xml

Update description, using parts from https://supertuxkart.net/Discover

* Update references to tracks to mention better ones
2019-03-04 02:52:38 +01:00
samuncle
37475e8d2f Cosmetic update to the debug view 2019-03-04 00:36:18 +01:00
samuncle
a5ec4f5026 Add complexity option 2019-03-04 00:25:02 +01:00
samuncle
00042ac82e Update to add scale into account to compute the LoD level 2019-03-03 17:43:59 +01:00
Benau
475cfa4cdb Try to use CompressNetworkBody for karts 2019-03-04 00:03:43 +08:00
Benau
891abf6360 Fix swatter crash 2019-03-03 16:38:02 +08:00
Benau
45a55a4c9b Reserve code for country from players 2019-03-03 16:37:35 +08:00
Benau
bb84677e35 Use utf32 for unicode emoji later 2019-03-03 15:10:34 +08:00
Benau
e01393bff7 Reserve code for future auto checkline correction 2019-03-03 14:11:29 +08:00
Benau
3cee39aff7 Remove physics only invisible objects after joining 2019-03-03 01:54:43 +08:00
Benau
1193c588b4 Try to fix parachute flicking by saving initial speed in state 2019-03-03 01:38:50 +08:00
Benau
9b8b0b7c1e Redo swatter for network 2019-03-02 16:41:32 +08:00
Alayan
a8aab2e180 Update upscaled Zen Garden SuperTux time requirement 2019-03-02 02:59:39 +01:00
samuncle
03452d2d13 Minor change which improve performances in some scenarios (+4 FPS) 2019-03-01 21:45:28 +01:00
samuncle
eead6f6005 Experimental changes 2019-03-01 21:39:55 +01:00
Benau
17fd68e662 Handle graphical models of attachment in updateGraphics 2019-03-01 18:46:46 +08:00
Alayan
dcb341a210 Fix #3765 2019-03-01 00:00:21 +01:00
samuncle
837a9ee3ea Fun test with size 2019-02-28 23:25:41 +01:00
samuncle
99901516e9 Update the LoD with a small offset to try to minimize the impact of popping. The solution would be a fade in/out but it will come in the future 2019-02-28 22:24:47 +01:00
Alayan
ad554f0d11 Update standard replays in modified tracks 2019-02-28 17:27:17 +01:00
Benau
c57af03b62 Handle graphical effects if different attachment is set in updateGraphics 2019-02-28 16:19:15 +08:00
Benau
a9ac35e1d5 Update xyz of basketball before calling getXYZ 2019-02-28 13:56:25 +08:00
Benau
22fd9a18a3 Allow restoring gravity for bowling 2019-02-28 12:28:42 +08:00
Alayan-stk-2
b51b8dc58d Add several android changes and recent changes 2019-02-28 03:05:41 +01:00
samuncle
171ccf2adc remove useless print 2019-02-28 01:35:14 +01:00
samuncle
d284b52368 Update the auto lod level generator 2019-02-28 01:01:44 +01:00
samuncle
bf6e81b97d Add base to compute lod level automatically 2019-02-28 00:23:27 +01:00
Benau
f57572ea15 Set gravity from newly updated material first 2019-02-28 01:18:54 +08:00
Benau
eb8544b785 Use rewinder with binary uid 2019-02-27 11:31:49 +08:00
Benau
9b4b283c4c Add check trigger to replace item trigger 2019-02-27 11:31:19 +08:00
Benau
fe4a9c5406 Allow clients to get list of initial items from server 2019-02-27 11:07:08 +08:00
Benau
224c694dfd Combine static physical objects with irrlicht GeometryCreator 2019-02-27 11:06:18 +08:00
Benau
813934bdba Improve kart state saving 2019-02-27 11:05:47 +08:00
Benau
c00cf66b26 Add compression for max speed 2019-02-27 11:05:22 +08:00
Benau
cb1769acea Use btTransform and normal compression if possible 2019-02-27 11:04:49 +08:00
Benau
733794bb3e Clean up compressing for network body 2019-02-27 10:43:42 +08:00
Deve
0b6e153111 Avoid a crash in ribbon widget 2019-02-26 22:25:37 +01:00
Deve
cdff36f840 Update active widgets on resolutions list when ribbon widget is scrolled 2019-02-26 22:10:20 +01:00
Deve
ebde419566 Avoid using invalid resolutions in fullscreen mode 2019-02-26 16:56:07 +01:00
Alayan
48c1cf880d Fix inconsistency between comment and code 2019-02-26 16:09:52 +01:00
Alayan
bf1d8241e3 Improve AI nitro usage 2019-02-26 16:05:08 +01:00
Benau
d00472f868 Add cannon for flyable in network 2019-02-26 16:07:22 +08:00
Benau
cfbbc7c6dd Clean up the firing of flyables in network 2019-02-26 15:55:24 +08:00
Deve
88c2ce7ee5 Use system LD_LIBRARY_PATH when opening web browser 2019-02-25 22:07:38 +01:00
Benau
ca0636ed03 Update translation pot file 2019-02-25 10:30:34 +08:00
QwertyChouskie
1892b827d9 Improve warning (#3770)
* Improve warning

It's more clear now that this is non-fatal.

* Update main.cpp
2019-02-24 21:25:15 -05:00
Benau
eaddd9c1a3 Fix #3718 2019-02-21 10:11:34 +08:00
Mrxx99
b55ec5cfb8 FFA for offline play (#3708)
* added widget to track info screen to select between Free-For-All and Three Strikes Battle

* setting AI to zero and setting time target to 2 minutes for testing

* setting also hitcapture limit to prevent immediate race end

* setting m_count_down_reached_zero to false in ffa reset to allow starting a new race after the previous ended through time limit

* integrated necessary adjustments and made possible to set time target

* removed unused spinner variable

* use translations

* centralized is_soccer and show_ffa_spinner variables

* setting target value spinner visible/invisible depending on ffa game type

* using no hittarget and fix for this in free for all mode

* set use_highscores to false for FFA

* disabling AI for FFA

* disable hit limit icon for FFA if no hit limit is set ( = 0 )

* changed icon and name of three strikes battle to only battle in race setup screen

* set AI to Battle AI if mode is FFA

* added config parameters for FFA

* added define which can be used to enable FFA AI

* resolved merge conflict

* moved ffa options higher

* fix for setting ai karts

* improved m_show_ffa_spinner and m_is_soccer

* removed code for disabling widgets for FFA AI

* implemented requested changes
2019-02-20 19:18:02 -05:00
Alayan
6e18dce622 Update story mode to use ravenbridge mansion, reorder challenges 2019-02-18 18:52:30 +01:00
Alayan
4da2b1f75f Replace blackhill mansion by ravenbridge mansion in story mode 2019-02-18 16:26:11 +01:00
Alayan-stk-2
2033c923f8 Improve english for the startup boost help 2019-02-18 16:11:47 +01:00
Deve
56743e002c Explain startup boost in help 2019-02-15 21:59:05 +01:00
Benau
1ac4a5b93d Redo all kart animation classes for network
Disable cannon for flyable for now
2019-02-15 17:29:19 +08:00
Deve
c35c0af590 Merge remote-tracking branch 'origin/fix-xbox360-stick-buttons' 2019-02-14 22:15:45 +01:00
Deve
5aaae1d0ad Use larger left margin for stretchable images in coal skin 2019-02-14 10:50:33 +01:00
Deve
e0835c8e5f Fixed missing transparency in notification images 2019-02-14 10:08:57 +01:00
Benau
64442e5ac9 Allow place item and rescue on driveable objects 2019-02-14 13:19:53 +08:00
Deve
ade94465b3 Use power of two dimensions for notification textures 2019-02-13 23:53:18 +01:00
Alayan-stk-2
a44ed43d71 Add some of the changes since the last update, sort changes into categories
@deveee @Benau I'm mainly aware of what I've done myself and I miss some things when looking at the commit list, so don't hesitate to update the changelog yourself to add missing important changes.
2019-02-13 23:13:25 +01:00
Deve
69cea1eabf Minor fix for previous commit 2019-02-13 21:46:46 +01:00
Deve
415bfb491e Allow to change cursor position in text box when screen keyboard is active 2019-02-13 21:34:31 +01:00
Deve
71c5c3988c Show cursor in edit box when screen keyboard is opened 2019-02-13 21:00:17 +01:00
Benau
05b1dcb803 Use utf-8 server name in create request after stk-addons change 2019-02-12 11:54:03 +08:00
Benau
6fb8dd512b Add translation comments for trusted word 2019-02-12 11:52:25 +08:00
Benau
1855d4262b Revert "Use xmlEncode for proper unicode handling"
This reverts commit c5cf87071c.

We can remove utf8_encode in stk_addons api so it will handle
utf8 characters in db correctly, as utf8_encode is only needed for
a string encoded in ISO-8859-1.

Fix #3670
2019-02-12 11:26:20 +08:00
hiker
ca23678ac9 Fixed comment. 2019-02-11 17:08:22 +11:00
Benau
912cc5184d Update translation source 2019-02-11 09:20:31 +08:00
Alayan
a9d81d2aa5 Fix #3740 and #3172 2019-02-10 17:28:28 +01:00
Benau
9ad2823f4d Don't crash if login without --init-user 2019-02-10 14:20:42 +08:00
Benau
061d4becc5 Don't load world twice when clicking spectate button quick 2019-02-10 11:06:12 +08:00
Alayan-stk-2
f42fdc7cb8 Update to reflect change from "official" to "trusted" servers 2019-02-10 02:34:38 +01:00
Alayan-stk-2
73925364f3 Update to reflect change from "official" to "trusted" 2019-02-10 02:32:01 +01:00
QwertyChouskie
1872ef86b4 Use Nettle for macOS build, tweaks (#3749) 2019-02-09 18:52:09 -05:00
hiker
8ebb0b2e9a For now rename 'official' servers to 'trusted' (#3745)
* For now rename 'official' servers to 'truster', to make it more
obvious what the STK team does not operate those servers.

* Removed left-over-unfinished-duplicated comment :)
2019-02-09 14:50:42 +08:00
Deve
548a946de8 Clear message that chat is disabled when user enabled it in options 2019-02-09 01:38:23 +01:00
Deve
7062245d88 Change order of the internet options, so that there is no ugly space when internet connection is disabled 2019-02-09 01:10:43 +01:00
hiker
94d6a6f785 Fixed incorrect message about where to find internet option. 2019-02-09 01:05:08 +01:00
hiker
968e0be3e4 Make sure that HW reports stays disabled when internet is being
enabled in the options (GDPR compliance - opt-in required from
user to send data). Made chat-message visible/invisible same
as hw-statistics.
2019-02-09 01:05:08 +01:00
hiker
507d5d89e9 Fix display of 'hw stats' when internet gets enabled in the option:
it was actually showing the state of the 'chat', not 'hw-stats'.
2019-02-09 01:05:08 +01:00
hiker
f387d95627 Don't default to 'opt-in' for hardware statistics (GDPR requirement).
This means atm that even connection to internet is disabled as default :(
2019-02-09 01:05:08 +01:00
Deve
f974c9200c Always use current window size.
It's used by irrlicht and in some other places in STK anyway. And if window size was changed for some reason, then ugly but functional window is better than non-functional at all.
2019-02-09 00:27:57 +01:00
Benau
6cb64a558e Fix #3531
Which missed update new instance data size for transformation as
changed in 4464d4cd55
2019-02-07 13:22:36 +08:00
Deve
9b17500da7 Some improvements for the online splitscreen player dialog 2019-02-07 00:08:32 +01:00
Deve
f69b1e7cf7 Add missing ifdef 2019-02-06 21:53:42 +01:00
Deve
6060e57d43 Sleep some time after changing resolution, so that window manager will be notified before we read window size 2019-02-06 21:53:42 +01:00
Deve
d0d036c372 Make sure that window is mapped before reading dimensions 2019-02-06 21:53:42 +01:00
Benau
60c9d97d27 Fix #3744 2019-02-06 15:50:40 +08:00
Benau
37f622ac0e Fix #3650 2019-02-06 01:04:09 +08:00
Benau
0bc4201bf9 Fix message queue progress bar for floating point changed 2019-02-05 16:01:51 +08:00
Deve
f86b2657c1 Don't use margins for screen keyboard, because it's easy to misclick space 2019-02-04 23:42:48 +01:00
Deve
388594270f Use common function for changing spectator target 2019-02-04 23:01:20 +01:00
Deve
12dd137185 Disable error check in the script that is not needed anymore to avoid unnecessary server restarts 2019-02-04 22:03:26 +01:00
Deve
9429271535 Allow to use run_server script as a symlink 2019-02-04 22:03:26 +01:00
Benau
5bc8002caa Close debug menu whenever screen is changed 2019-02-04 16:13:14 +08:00
QwertyChouskie
538911b25f Fix versioning for master branch (#3738) 2019-02-03 12:02:55 +01:00
Benau
7b186c2b04 Allow left right switch for CTF which has position rank 2019-02-03 16:10:57 +08:00
Benau
2eed6254f4 Don't show chosen team color for spectator 2019-02-03 15:39:48 +08:00
Benau
f048e19bb1 Make spectator helper message to show when server is ready 2019-02-03 15:27:01 +08:00
Benau
9757209da6 Hide lap messages when live-joining happening 2019-02-03 15:19:02 +08:00
Benau
2bd2dc19ca Remove spectate helper message if finishing the race last 2019-02-03 13:45:51 +08:00
Benau
11dafe470c Update possible invalid camera again 2019-02-03 11:21:33 +08:00
Benau
18c9ef6adc Use kart position for left right switching 2019-02-03 01:46:27 +08:00
Benau
52cddf6208 Hightlight current spectating kart in race gui 2019-02-02 16:06:41 +08:00
Benau
0cb12ea124 Allow changing spectate target with analog input 2019-02-02 01:20:52 +08:00
Benau
75bc25d2ff Fix spectator if network splitscreen is enabled 2019-02-01 22:12:53 +08:00
Benau
df2731bc2c Fix possible crash 2019-02-01 19:02:50 +08:00
Benau
6ac98c0324 Only synchronize one kart each time for check line
This remove the duplicated new lap message
2019-02-01 17:50:09 +08:00
Benau
52ad702d13 Add fast forward in rewind to avoid android hangs 2019-02-01 17:22:41 +08:00
Deve
ae92d63492 Add 2px margin to screen keyboard buttons to fix navigation with gamepad 2019-01-31 22:16:06 +01:00
Deve
575f44a043 Fixed a crash after closing screen keyboard when dialog window is active.
Also fixed using screen keyboard with gamepad when it's used in dialog window.
2019-01-31 22:00:39 +01:00
Benau
a05889fa6a Show spectator icon for player list 2019-01-31 11:05:44 +08:00
Benau
1669368176 Fix 00:00:00 finished time in network caused by disconnection 2019-01-29 14:08:57 +08:00
Benau
552179180e Show disconnected message when result screen is showing 2019-01-29 13:06:17 +08:00
Deve
16fb7cefb4 Document some environment variables 2019-01-28 22:46:35 +01:00
Deve
cb8ee53edc Add environment variable to force legacy fullscreen on linux 2019-01-28 21:52:35 +01:00
Alayan
0a40861be7 Improve spectating info message 2019-01-27 19:11:41 +01:00
Benau
efb6b9e2cf Allow changing camera target after finishing network race 2019-01-28 01:17:26 +08:00
Benau
a0c6bc41a2 Add spectate helper message 2019-01-27 15:28:02 +08:00
Benau
8545d47d1e Move change spectate target to client lobby 2019-01-27 14:42:48 +08:00
Benau
b491ab0e82 Reset smooth network body when moving kart 2019-01-27 13:13:02 +08:00
Daniel Butum
6f4d48f5bd Use stats.supertuxkart.net as the hardware stats server (#3724) 2019-01-26 21:19:34 -05:00
Benau
eb14366157 Update translation source 2019-01-27 01:41:59 +08:00
Benau
e869fbfd9e Merge remote-tracking branch 'origin/for_alayan' 2019-01-26 16:18:47 +08:00
Benau
4e830d7df7 Reset server manager when entering the selection screen
So any previous servers (lan / wan) are fully cleared
2019-01-26 16:16:11 +08:00
Benau
2e08fe3b15 Add current date and time to log for server 2019-01-26 14:56:08 +08:00
Benau
4f25b709a7 Kick high ping peer when it's not in game 2019-01-26 14:16:12 +08:00
Deve
b68f6c1382 Better line wrap for non-breakable characters 2019-01-25 22:20:41 +01:00
Benau
66fa81c6c9 Synchronize check lines and lap status from server 2019-01-26 02:05:03 +08:00
Benau
664129e448 Handle copying ItemState to Item properly (esp in live join) 2019-01-24 14:01:04 +08:00
hiker
9ea6e85205 Fix thumb-stick buttons on xbox controller. 2019-01-22 21:25:51 +11:00
hiker
9059789ee8 Fix #3716: poor wording of achievement. 2019-01-22 08:45:56 +11:00
Benau
6ecd606e3f Don't focus if clicking on an empty part of the list 2019-01-22 01:56:36 +08:00
Benau
bf05035904 Add 1st user name to kick log 2019-01-22 00:22:56 +08:00
hiker
040725ae87 Merge branch 'master' of github.com:supertuxkart/stk-code 2019-01-21 22:40:48 +11:00
Daniel Butum
edd1280dbc Update config to use the new online servers & remove hardcoded certificate (#3703)
* Update config to use the new online servers. Remove hardcoded certificate as we will use Let's encrypt from now on

* Fix new server SSL curl certificate by shipping CA bundle from https://curl.haxx.se/docs/caextract.html

* Remove debug log for curl host

* Move server config to stk_config.xml and Update news.xml redirects
2019-01-19 17:49:11 -05:00
hiker
7d688b241c Merge branch 'fix-wiiuse-uninstallation' 2019-01-20 01:45:31 +11:00
Deve
2d219f29cc Improve screen keyboard layout 2019-01-17 00:15:12 +01:00
Benau
9078438b23 Save players and live join info in ClientLobby 2019-01-16 16:45:27 +08:00
Benau
4e2b843f71 Allow going back to lobby in selecting karts or tracks phase
It allows player to be spectator later
2019-01-16 13:43:26 +08:00
Deve
0355922116 Make more visible difference between skid1 and skid2.
Adjust particle size, because textures had large unused transparent space before.
2019-01-15 22:34:13 +01:00
Benau
f9cd0256ad Fix hit limit game progress 2019-01-16 02:10:48 +08:00
Benau
b0d1bf6cce Use fixed value of battle hit, capture and time limit 2019-01-16 01:54:25 +08:00
Benau
8951ef0cbf Make live-players default on if not written in default server_config.xml 2019-01-16 00:59:50 +08:00
hiker
aea2739e9d Changed default library mode for wiiuse back to be static, not shared. 2019-01-15 18:23:21 +11:00
hiker
8370833994 Updated redistributable. 2019-01-15 18:22:29 +11:00
hiker
e7024cf2d9 Properly remove wiiuse files installed when wiiuse is a dynamic library. 2019-01-15 18:21:31 +11:00
Deve
d1fc7732c3 Don't open debug menu if there is dialog window.
The modal dialog eats gui close event, which is quite annoying.
Also return event block as long as debug menu is opened.
2019-01-14 23:27:36 +01:00
Deve
7bb8cc2706 Close screen keyboard when clicked outside of it 2019-01-14 22:00:43 +01:00
Benau
fd32b530df Focus on chat default if not android 2019-01-15 02:10:27 +08:00
Benau
639071f959 Update last activity so that the peer is not kicked for chat 2019-01-15 01:53:32 +08:00
Benau
6f823f9c9b Dismiss screen keyboard if opened 2019-01-15 01:31:48 +08:00
Deve
104afbd5f0 Don't break early when finding best monitor mode 2019-01-13 22:11:46 +01:00
Benau
16d7f7e398 Fix possible getifaddrs crash 2019-01-14 02:26:30 +08:00
Benau
60da1fa6c7 Allow using AI with ffa 2019-01-14 00:49:10 +08:00
Benau
2bfa0f54dc Add network ingame dialog with chat function 2019-01-13 16:59:26 +08:00
Deve
9d42b70dda Show powerups and nitro in spectator mode on android 2019-01-12 21:51:02 +01:00
Deve
43885eacf2 Center icon in cell only if there is no text 2019-01-11 22:51:24 +01:00
Benau
e1e0b43f88 Remove previous entries to avoid reserved kart in network being displayed 2019-01-12 00:45:56 +08:00
deve
046f94394d Fixed server only build 2019-01-11 06:30:43 +01:00
hiker
5cf79f66fe Revert "Fix #3697", since this was not included in any
of the binaries built. It is already on master.

This reverts commit eecfc5d797.
2019-01-10 23:11:25 +11:00
Benau
58e0dce2d0 Fix #3697 2019-01-10 10:11:35 +08:00
Benau
eecfc5d797 Fix #3697 2019-01-10 10:08:58 +08:00
Kevin Zheng
23706f4795 Fix build on FreeBSD 2019-01-10 00:07:05 +01:00
Deve
737e4b3d99 Merge branch 'wayland_multitouch' 2019-01-10 00:01:47 +01:00
Deve
a40b6e3758 Turn off multitouch race gui on non-android devices 2019-01-09 22:29:37 +01:00
Deve
15ffc98369 Detect if there is touch device available 2019-01-09 22:04:50 +01:00
Sebastian Krzyszkowiak
20310f9dbc IrrDeviceWayland: set pointer position on touch down 2019-01-09 20:43:14 +01:00
deve
d961aa9521 Simulate mouse for single touch events on wayland 2019-01-09 10:57:39 +01:00
Sebastian Krzyszkowiak
51ca86b416 IrrDeviceWayland: initialize m_touch variable 2019-01-09 10:05:24 +01:00
Alayan
47cc127902 Fix error message 2019-01-09 04:09:06 +01:00
Alayan
4e340ebe92 Update version and profile folder for the beta 2019-01-09 04:01:41 +01:00
auria.mg
8209a813f7 Merge branch 'master' into 0.10-beta 2019-01-08 21:13:13 -05:00
hiker
7fec380398 Fixed unit test (accessing world which does not exist during
unit tests, when delaying cakes at start of race).
2019-01-09 12:55:06 +11:00
hiker
20882b9e29 Addresses issues raised by Auria's review - thanks! Mostly
renaming of variables, though I also simplified code a bit.
2019-01-09 12:52:38 +11:00
Deve
b611b0dd80 Make touch device always enabled for testing 2019-01-08 22:44:17 +01:00
Deve
8257d9eeee Handle touch events on wayland device 2019-01-08 22:31:37 +01:00
hiker
55cf0b66c6 Support more version numbers: -alphaX, -betaX, and -rcX
now all work, and result in properly sorted integer
version numbers. Added tests.
2019-01-09 00:28:26 +11:00
auria.mg
e4168e7a28 Revert "Update config to use the new online servers. Remove hardcoded certificate as we will use Let's encrypt from now on (#3690)"
This reverts commit b2c11c120b.
2019-01-07 20:01:00 -05:00
auria.mg
355aaaa658 Revert "Update config to use the new online servers. Remove hardcoded certificate as we will use Let's encrypt from now on (#3690)"
This reverts commit ed225a21f2.
2019-01-07 20:00:38 -05:00
Daniel Butum
ed225a21f2 Update config to use the new online servers. Remove hardcoded certificate as we will use Let's encrypt from now on (#3690) 2019-01-07 19:43:30 -05:00
Kevin Zheng
75076106b9 Implement getCurrentExecutableLocation() on FreeBSD (#3688) 2019-01-07 19:43:18 -05:00
Daniel Butum
b2c11c120b Update config to use the new online servers. Remove hardcoded certificate as we will use Let's encrypt from now on (#3690) 2019-01-07 19:42:30 -05:00
Kevin Zheng
f40ac02242 Implement getCurrentExecutableLocation() on FreeBSD (#3688) 2019-01-07 19:31:15 -05:00
Alayan
bec1c319f6 Add light scattering to the graphical options and disable it on graphics 3 2019-01-08 01:18:46 +01:00
Deve
ec91f9d8db Make resolutions list proportional to screen height 2019-01-07 23:58:34 +01:00
Deve
d95a1ab27e Use the same size for back arrow in pause dialog as for other icons 2019-01-07 23:42:40 +01:00
Deve
df0377b0fc Use higher sensitivity only on tablets 2019-01-07 22:37:02 +01:00
Deve
8d92fa2394 Use look back instead of top view in spectator mode on android 2019-01-07 21:32:26 +01:00
Benau
dbe5c22622 Try to restore CheckStructure status for spectating 2019-01-08 04:12:10 +08:00
Benau
10dbac9149 Handle m_last_confirmed_item_ticks live in a thread safe way 2019-01-08 02:17:35 +08:00
Benau
f6fefba343 Allow look back in spectating 2019-01-07 15:25:35 +08:00
Benau
1224fc1735 Update chinese translation 2019-01-07 14:53:06 +08:00
Benau
307194e482 Update network documentation 2019-01-07 14:46:34 +08:00
Benau
9d612455b3 Add kart name to disconnected linear race player 2019-01-07 14:07:08 +08:00
Benau
918d762893 Fix ranked server going back to lobby 2019-01-07 14:04:44 +08:00
Benau
4ce5678fd6 Allow team choosing in ownerless server if live players is true 2019-01-07 12:41:00 +08:00
Benau
07c973f35a Fix initial on road saving 2019-01-07 11:44:22 +08:00
hiker
e08d10c540 Merge branch 'master' of github.com:supertuxkart/stk-code 2019-01-07 11:29:56 +11:00
hiker
61336d4333 Updated translations. 2019-01-07 11:28:53 +11:00
Alayan
df087d44c4 Improve consistency across challenges 2019-01-07 01:04:35 +01:00
Alayan
7dba81ec3d Make the expert Cocoa Temple challenge a bit easier 2019-01-07 00:05:14 +01:00
Deve
15e741fa04 Fixed compilation 2019-01-06 21:35:46 +01:00
Alayan
b67c70bad7 Add hypen to breakable characters 2019-01-06 18:46:57 +01:00
Alayan
7715c1c505 Take handicap into account for rankings 2019-01-06 18:15:20 +01:00
Benau
b555851f57 Don't use getActiveCamera which is not initialized yet 2019-01-07 00:37:45 +08:00
Mrxx99
e57f9ad6dd Fix #3685 (#3686)
* Fix #3685

* use is_soccer from race_manager
2019-01-06 17:32:12 +01:00
Benau
b46bd60a53 Use setXYZ so front xyz of kart is updated too 2019-01-07 00:19:22 +08:00
Mrxx99
6a361db994 fix comparison (#3684) 2019-01-06 16:25:20 +01:00
Mrxx99
9fb90d0c31 Show the name of who made the fastest lap (#3683)
* implemented showing the name who made the fastest lap in race result screen (only for offline play yet)

* also support online races, using english and added translation note

* added comment

* Fix typo
2019-01-06 15:17:48 +01:00
Benau
cbb26b73d9 Always reset server with back to lobby function added 2019-01-06 14:18:21 +08:00
Benau
d049ffa1d5 Adjust addWaitingPlayersToGame for live joining or spectate 2019-01-06 13:58:04 +08:00
Benau
961c3957e2 Allow spectating linear race 2019-01-06 13:43:19 +08:00
Alayan
aeeb4afd63 Several improvements to the ranking formula 2019-01-06 02:35:01 +01:00
Benau
e2d5e350cf Update translation 2019-01-06 01:37:10 +08:00
Benau
ef6f9041f5 Update translation source 2019-01-06 01:25:29 +08:00
Benau
bb31d6b226 Allow player going back to lobby without disconnecting the server 2019-01-06 00:21:51 +08:00
Benau
641b16e1c7 Add a thread safe way to clear game protocols when deleting world 2019-01-05 14:20:30 +08:00
Benau
37e5ea6806 Don't count spectator as players in game for testing reset 2019-01-05 14:10:56 +08:00
Benau
9747f59e00 Update lobby button with pre-translated string 2019-01-05 11:40:27 +08:00
Deve
7f3d895f70 Allow to switch karts in spectator mode on android 2019-01-05 00:53:17 +01:00
Benau
a59898c4ba Fix compiler warning 2019-01-05 03:21:06 +08:00
Benau
5668b9c7bd Update network document 2019-01-05 03:06:48 +08:00
Benau
4066557c8a Update translation 2019-01-05 02:56:55 +08:00
Benau
2e6a61d9d0 Update translation source string 2019-01-05 02:43:20 +08:00
Benau
c7449d0a7f Use better english by alayan 2019-01-05 02:39:51 +08:00
Alayan
94a0988a71 Simplify code 2019-01-04 19:20:33 +01:00
Alayan
4d6be5934e Skip eliminated karts when switching camera target in spectating mode 2019-01-04 19:19:26 +01:00
Benau
f4a932271f Remove addons karts in server if live players is on 2019-01-05 01:31:04 +08:00
Benau
6a7ec37462 Merge remote-tracking branch 'origin/master' into live_join 2019-01-05 01:24:06 +08:00
Benau
6a1a1740c0 Make live join or spectate a server option 2019-01-05 01:20:25 +08:00
Benau
214272468d Add left or right player action to change spectating target 2019-01-05 00:42:00 +08:00
Benau
66794781fe Handle reserved player ranking correctly in ffa 2019-01-05 00:10:02 +08:00
Benau
ca34b64ba4 Only hover the kart during active race phase or complete live join world 2019-01-05 00:02:20 +08:00
Benau
2950238d2b Add live join and spectate button to lobby 2019-01-04 23:56:50 +08:00
Benau
582ec771c0 Fix splitscreen kart id checking 2019-01-04 22:10:21 +08:00
Benau
c16727302a Add arena ai to test live join 2019-01-04 22:07:15 +08:00
Benau
7c34818c04 Send go back to lobby message to all peers in server 2019-01-04 21:16:10 +08:00
Benau
e3a006c151 Move startListening to main thread to avoid race condition for accessing lobby 2019-01-04 21:01:53 +08:00
Benau
72db382c76 Add current track info to server screen 2019-01-04 18:53:45 +08:00
Benau
4b22465836 Add current playing info to lobby 2019-01-04 17:40:25 +08:00
Benau
38043de27c Don't start engine sound for reserved karts 2019-01-04 15:25:32 +08:00
Benau
7a112ee6ef Draw music description properly in network 2019-01-04 14:54:00 +08:00
Benau
62ce61d980 Add save and restore complete state for soccer world 2019-01-04 14:01:31 +08:00
auria.mg
54ef7542eb Update translations 2019-01-03 19:52:19 -05:00
hiker
856a75cfbb Merge pull request #3612 from qwertychouskie/patch-4
Fix issues with COPYING (see desc.)
2019-01-04 09:06:44 +11:00
hiker
893bb38c5a Merge branch 'master' of github.com:supertuxkart/stk-code 2019-01-04 09:01:54 +11:00
hiker
4e8fae6e73 Applied most of qwertychouskie's patch #3520. 2019-01-04 09:00:40 +11:00
Deve
d46f0aeddb Some tweaks in soccer setup screen 2019-01-03 21:44:15 +01:00
Deve
b0ff15873e Fixed cmake warning 2019-01-03 20:53:08 +01:00
Mrxx99
fbb44a7a34 fix in setCollapsed (#3676) 2019-01-03 20:41:09 +01:00
Benau
78b4799b82 Fix #3675 which tracks screen is used in ghost race 2019-01-04 01:24:23 +08:00
Benau
17ecbe69af Don't show disconnected players in result screen for ffa and ctf 2019-01-03 16:35:16 +08:00
Benau
ab353dd632 Save and restore complete world status for ffa and ctf 2019-01-03 16:27:16 +08:00
Benau
b2ac7489d9 Change the definition of reserved network profile
So player name doesn't go away if disconnection happens
2019-01-03 16:00:11 +08:00
hiker
09b07713f0 Merge branch 'qwertychouskie-patch-2' 2019-01-03 17:45:57 +11:00
hiker
40559d7cdb Merge branch 'patch-2' of git://github.com/qwertychouskie/stk-code into qwertychouskie-patch-2 2019-01-03 17:40:18 +11:00
hiker
96235f3068 Merge branch 'STK-helper-wiiuse-update' 2019-01-03 17:38:03 +11:00
hiker
082d64c3d8 Merge branch 'wiiuse-update' of git://github.com/STK-helper/stk-code into STK-helper-wiiuse-update 2019-01-03 17:30:44 +11:00
hiker
c37aebff94 Fixed compiler warnings. 2019-01-03 17:30:00 +11:00
Benau
c680181c9c Fix compiler warning 2019-01-03 14:20:22 +08:00
Benau
40e3ec1e56 Show server days since starting 2019-01-03 14:19:15 +08:00
Benau
27f08661b2 Don't update cursor if no graphics
It hangs when reseting screen in windows with server creation in gui
2019-01-03 13:08:47 +08:00
Mrxx99
c959836e34 Move soccer options to track info screen (#3638)
* moved soccer race options to track info screen

* using one spinner for both target mode values

* merged pointamount-spinner with lap-spinner and renamed it to target-value-spinner

* fixed identation

* small fix in track_info screen

* storing target value when value was changed

* making sure tartet spinners are invisible when not needed; small adjustments

* some test with solving space issues on small resolutions

* Revert "some test with solving space issues on small resolutions"

This reverts commit f6b6526681.

* test with collapsing widgets

* removed deleting childs of widgets in track_info_screen

* readded deleted spacer

* collapsing target type widgets is now working

* made target type spinner wider to have enough space for text in it on small resolutions

* re-added setting target value to invisible/visible

* using new collapsing widget function in track info screen for target type widgets
2019-01-02 20:29:53 -05:00
hiker
e142f04487 Merge branch 'Partmedia-master' 2019-01-03 09:30:35 +11:00
hiker
696a0c778c Merge branch 'master' of git://github.com/Partmedia/stk-code into Partmedia-master 2019-01-03 09:17:10 +11:00
Benau
1483b2b703 Use unicode check mark and ballot x for Y/N 2019-01-03 01:37:57 +08:00
Benau
aa49f4ae8c Reset all smooth network body of rewinders during firstly live join 2019-01-02 16:16:59 +08:00
Benau
eb342b2707 Always update current physical object if there was live join 2019-01-02 15:30:56 +08:00
Benau
314c37ce0b Don't check for successful animation creation for eliminated karts 2019-01-02 14:57:39 +08:00
Benau
8332e0471e Save and restore NetworkItemManager completely for live join 2019-01-02 14:02:51 +08:00
Benau
0e4424b3ea Show message for back to lobby if needed 2019-01-02 12:44:18 +08:00
Benau
55430a31a2 Add invulnerability depends on kart for live join 2019-01-02 11:37:28 +08:00
Benau
52a4bbeac7 Add player name and team arrows for live join kart 2019-01-02 10:34:23 +08:00
Benau
a849229f27 Hide live joining karts util finish live join 2019-01-02 01:50:47 +08:00
Benau
ec123df108 Remove player list when leaving the lobby screen to avoid crash 2019-01-02 01:19:35 +08:00
Mrxx99
f64a1e19b2 Using a default music if specified music of track was not found (#3667)
* added default music to stk_config and using it for not found music files

* only using default music if no music was found for a track
2019-01-01 09:54:15 -05:00
Benau
81776cb4df Let other players know the newly joined player 2019-01-01 16:32:37 +08:00
Benau
2f8da236e3 Add initial live join handling for the one who does it 2019-01-01 15:46:45 +08:00
Benau
0431344886 Add copyFrom for RemoteKartInfo 2019-01-01 13:12:28 +08:00
Benau
564ed41ed3 Add live join world and kart handling 2019-01-01 01:01:49 +08:00
Mrxx99
8cba880ef9 small improvements regarding widget collapsing (#3666)
* small improvements regarding widget collapsing

* moved variables initialization to widget.cpp constructor
2018-12-31 12:12:08 +01:00
Benau
220a628f47 Add atomic for team and handicap in NetworkPlayerProfile 2018-12-31 14:56:28 +08:00
Benau
5410a34f9e Make kart selection screen usable with live join 2018-12-31 14:40:00 +08:00
Benau
2ceeabf882 Split kart assignment for live join 2018-12-31 14:05:21 +08:00
Benau
a4a60ae6f6 Separate load world message creation 2018-12-31 13:15:08 +08:00
Benau
7a60c4a35a Add shouldSaveSate with ticks for checking 2018-12-31 10:41:44 +08:00
Deve
17b83ac321 Don't crash when calling popMenu() with empty stack.
Maybe quit button in main menu gets two click events while it's waiting for app destroy event.
2018-12-31 00:06:42 +01:00
Benau
5458fcea4e Simplify waiting players joining 2018-12-31 01:21:17 +08:00
Benau
d9f1d18d9b Use placeholder tux for reserved players 2018-12-30 16:37:13 +08:00
Benau
414380e85a Fix memory leak of server only build network console exit 2018-12-30 13:03:57 +08:00
Benau
bd6264b3b0 Remove old method in GameSetup 2018-12-30 11:53:28 +08:00
Benau
50aa334912 Use new method to start game 2018-12-30 11:13:18 +08:00
Benau
b7da5b243d Fix compilation error 2018-12-30 10:56:08 +08:00
Mrxx99
2546c1280a Collapsing widget function (#3664)
* added function to collapse a widget more easily

* improved setCollapsed and added overload to specify the uncollapsed height

* used new collapse functions in online track_screen
2018-12-29 18:24:58 -05:00
Benau
9a4013843e Kick idling peers in server with new method 2018-12-29 16:10:41 +08:00
Benau
346f763cef Save grand prix scores in server with new method 2018-12-29 15:53:12 +08:00
Benau
c6b3fba304 Use player name from RemoteKartInfo 2018-12-29 14:05:28 +08:00
Benau
9068483d56 Implement live change kart model of kart 2018-12-29 13:14:07 +08:00
Benau
43761e4d9e Use ServerConfig::m_max_ping for delaying server if supports live join
So any players having ping below that value can play the game smooth
2018-12-26 16:22:15 +08:00
Deve
4a546f6802 Tweak touch device sensitivity after recent smooth turning 2018-12-26 01:20:10 +01:00
Deve
a78602a2b5 Restore selected track when changing tracks group in voting screen 2018-12-26 00:48:10 +01:00
Deve
92cf59f63d Keep information about item badge when scrolling ribbon widget 2018-12-26 00:29:39 +01:00
Benau
7306d9e650 Fix max speed increase duration handling 2018-12-26 01:34:40 +08:00
Deve
8c029e834d Update translations 2018-12-25 10:14:33 +01:00
Benau
11bca593fd Update changelog and server documentation 2018-12-25 16:18:56 +08:00
Benau
e7ef80720a Don't draw more laps than max laps in network race 2018-12-25 13:31:08 +08:00
Benau
b08dd1c410 Use 16bit signed integer for ticks in MaxSpeed 2018-12-25 13:13:37 +08:00
Benau
be089ae9bd Save only the minimum for basketball rewind 2018-12-25 12:08:28 +08:00
Benau
ddeab51917 Send new scores as a whole and optimize 2018-12-25 11:31:20 +08:00
Benau
bff2a5f9f2 Use Y/N for voting screen 2018-12-25 10:50:44 +08:00
Benau
c98c20e6a5 Disable smoothing body for network when animation is playing 2018-12-25 10:02:19 +08:00
Deve
dba4d05852 Use shorter name for unnamed player 2018-12-25 01:18:17 +01:00
Deve
e6081e64b2 Use xdg decoration for server-side decorations 2018-12-25 01:18:17 +01:00
Benau
b69216f242 Add document for uid of rewinder 2018-12-25 01:24:14 +08:00
Benau
f8f571e40e Remove the unneeded disconnected elimination event
It can be implictly told by server state if Kx rewinder is missing
2018-12-25 00:51:31 +08:00
Benau
d6946198c5 Make flag a rewinder
It remove the capturing delay and allow ctf in local splitscreen
2018-12-24 16:01:21 +08:00
Deve
14389925fe Minor optimization in pointlight scatter.
Compute some values before loop.
2018-12-23 23:31:22 +01:00
Kevin Zheng
9cec9c5cea Add option to disable light scattering (#3662)
* Fix typo

* Match name in irr_driver

* Add option to disable light scattering
2018-12-23 21:26:22 +01:00
Kevin Zheng
85fc39c356 Use floating trigonometric functions 2018-12-22 22:43:06 -06:00
Benau
2bc01f5f98 Fix no plunger replay with local state 2018-12-23 12:04:31 +08:00
Kevin Zheng
95564c4d74 Fix build with joystick on FreeBSD (#3660) 2018-12-22 21:49:15 -05:00
Kevin Zheng
ca419f8d59 Fix build without _IRR_COMPILE_WITH_JOYSTICK_EVENTS_ (#3659) 2018-12-22 21:13:03 +01:00
Benau
c42c5b7d82 Fix android compilation 2018-12-22 11:28:32 +08:00
Benau
44ce4f1f37 Update translation source 2018-12-22 11:20:26 +08:00
Benau
12a67d6e6b Merge remote-tracking branch 'origin/network' into voting_gui 2018-12-22 10:48:12 +08:00
Benau
86198881f4 Merge remote-tracking branch 'origin/master' into voting_gui 2018-12-22 10:35:09 +08:00
Benau
31e14b14c6 Make explosive items timeout configurable in stk_config 2018-12-22 10:33:01 +08:00
Benau
3292c8f0c3 Merge remote-tracking branch 'fouks/prevent-early-explosive-items' into voting_gui 2018-12-22 10:06:47 +08:00
Benau
64acb295a8 Change default voting timeout 2018-12-22 09:56:59 +08:00
Benau
f3bb19125c Add network debugging info with speed stats 2018-12-22 09:12:24 +08:00
Benau
e38edaae2c Move state frequency to ServerConfig which clients can adapt 2018-12-22 01:03:15 +08:00
Benau
c46a5eafdb Use a fixed 10 packets per second for ping packet 2018-12-21 22:53:28 +08:00
Benau
86957c9d5e Rewrite the remaining documentation in STKHost 2018-12-21 22:11:18 +08:00
Benau
a85dbcc0f7 Add the possibility to correct invalid reverse at server side 2018-12-21 21:55:55 +08:00
Benau
2eba8c179f Disable highlight until render gui during loading is bug free 2018-12-21 19:52:27 +08:00
Benau
e4e03e6209 Highlight selected vote by player
Animation is disabled atm because not working very well
2018-12-21 19:40:52 +08:00
Benau
9029621b59 Use majority agreement for voting 2018-12-21 18:12:58 +08:00
Benau
0e17839136 Show remaining time in progress bar 2018-12-21 12:52:51 +08:00
Benau
1799fe834f Remove auto voting with auto connect
This is not needed anymore with current setup
2018-12-20 16:16:03 +08:00
Benau
7954b118a8 Use only official tracks for default vote
So network AI won't have trouble finishing some bad wip / addons tracks
2018-12-20 15:42:10 +08:00
Benau
57765c98bf Fix possible crash when unloaded 2018-12-20 14:55:06 +08:00
Benau
6342e04fea Remove or adjust more invalid vote settings 2018-12-20 12:45:27 +08:00
Deve
f3ef25d525 Always smooth turning.
It fixes turning for non-analog gamepads and gives more consistency for online gaming, because you can't turn fully left/rigtht immediately with analog controllers. Should be better for android too, because it's kinda less sensitive.
2018-12-19 22:49:15 +01:00
Benau
d54a5028d2 Allow voting to agree with someone by selection id of list 2018-12-19 16:47:44 +08:00
Benau
e91c9aa95a Add plop sound effect for 1st vote if this screen is on 2018-12-19 14:07:10 +08:00
Benau
cfdd66f770 Center icon for ffa / ctf 2018-12-19 13:43:17 +08:00
Deve
95e2aec95a There is 3 pixels margin which is not wanted when icon is centered.
Minor thing, but it matters for very low resolutions with very short column width.
2018-12-19 00:05:40 +01:00
Deve
9a304b8483 Some minor improvements in online tracks screen 2018-12-18 23:05:36 +01:00
Deve
6543bdd932 Allow to draw centered icons in list box 2018-12-18 22:38:52 +01:00
Deve
2acc4ce966 Some fixes when computing cells width in list box 2018-12-18 22:34:30 +01:00
Deve
028c999a3e Take target icon size into account when computing positions in sprite bank 2018-12-18 22:15:31 +01:00
Benau
13f0276aac Update player votes with icon 2018-12-18 01:57:04 +08:00
Benau
f53060e0df Add icon header to the list 2018-12-17 16:38:38 +08:00
Benau
4eff620ee6 Allow progress bar widget to be set invisible 2018-12-17 15:52:28 +08:00
Benau
a3a36e33a6 Clean up tracks screen and lobbies 2018-12-17 15:23:19 +08:00
Benau
a98baf847f Allow using icon in list header 2018-12-17 13:00:15 +08:00
Deve
efd502c808 Use larger list for android in two more places 2018-12-17 00:36:12 +01:00
Deve
3dffb6c480 Avoid skidding in wrong direction.
It was possible when kart speed was near getSkidMinSpeed() when you left up left/right key, because skidding key was autorepeating.
2018-12-16 22:05:09 +01:00
Deve
3fa4fa0e54 Revert "Fix #3168"
This reverts commit 59f29ca975.
2018-12-16 22:04:57 +01:00
Deve
093f815d2c Restore larger row height for android 2018-12-16 21:57:19 +01:00
Deve
1a12f65c87 Revert "Avoid skidding in wrong direction."
This reverts commit 24926bcb1d.
2018-12-15 23:57:49 +01:00
Deve
19c853949c Revert "Revert "Fix #3168""
This reverts commit 769d40e3c5.
2018-12-15 23:57:37 +01:00
Deve
24926bcb1d Avoid skidding in wrong direction.
It was possible when kart speed was near getSkidMinSpeed() when you left up left/right key, because skidding key was autorepeating.
2018-12-15 23:04:08 +01:00
Deve
769d40e3c5 Revert "Fix #3168"
This reverts commit 59f29ca975.
2018-12-15 22:50:00 +01:00
hiker
0eca431627 Tried to fix compilation problems due to merging. 2018-12-16 02:36:16 +11:00
hiker
4269ac6294 Merge remote-tracking branch 'origin/master' into voting_gui 2018-12-16 02:06:50 +11:00
hiker
8ae6942442 Work around: all GUIs are being removed when the race starts, but
the TracksScreen should stay (to show the random vote result animation
later). For now the screen is re-added, long term should have a better
solution.
2018-12-16 01:37:42 +11:00
hiker
10bca0f334 End of voting now only is triggered when the voting time ends,
not when all votes have been received.
2018-12-16 01:36:52 +11:00
hiker
ca0cc215db Fixed compiler warning. 2018-12-16 01:36:33 +11:00
hiker
4bd57b9f67 Remved VoteOverview screen, and migrated voting related code
to TracksScreen. No display of votes yet.
2018-12-16 01:34:51 +11:00
Alayan
8f55f24984 Make the addons list slightly more compact 2018-12-15 10:24:23 +01:00
Alayan
5d9bb7e385 Add alternating background darkness to two more lists 2018-12-15 08:21:53 +01:00
Alayan
19b0c1a465 Several improvements to the server selection screen 2018-12-15 08:05:37 +01:00
Alayan
830c85a262 Make list line height and alternate darkness .stkgui options 2018-12-15 08:04:08 +01:00
Benau
e34e08253e Fix server only build 2018-12-15 11:30:51 +08:00
Benau
81efd3fce4 Fix #3646 2018-12-15 11:27:48 +08:00
Deve
ac809f429c Use a context for column names translations in server selection screen.
It allows to use shorter text while not breaking translations in other places.
2018-12-14 21:53:34 +01:00
Alayan-stk-2
b0055f2089 Improve english 2018-12-14 15:30:42 +01:00
Benau
aa27958675 Fix #3647 2018-12-14 22:06:59 +08:00
Benau
176af22c8d Add the framework for displaying estimated game started info 2018-12-14 19:22:59 +08:00
Benau
8f5ee309a8 Add live changing handicap 2018-12-13 16:36:16 +08:00
Benau
d1d4ba4422 Don't assume STKPeer exists with NetworkPlayerProfile
This is not true when disconnect happens at the same time
2018-12-13 14:14:33 +08:00
hiker
c4e5a24059 Made the window responsive. 2018-12-13 09:40:45 +11:00
hiker
89ad9fe602 Increased protocol version number. 2018-12-13 09:22:03 +11:00
hiker
a041832f36 Commented out more debug output. 2018-12-13 09:16:57 +11:00
Benau
2b4bd417c9 Catch possible thrown xml creation found by google play console 2018-12-13 01:26:37 +08:00
Benau
7e7c07a116 Move reset active players to main thread 2018-12-12 16:41:40 +08:00
Benau
faeaed1117 Use graphical type directly for mesh handling 2018-12-12 15:23:13 +08:00
Benau
6a8305edab Don't set previous owner when collected an item
This is used for bubble gum and nolok detection only
2018-12-12 15:11:57 +08:00
Alayan
4b459b6988 Fix #3642 2018-12-12 05:02:54 +01:00
hiker
92754e09fd Removed debug output, applied work-around for minimap, and reduce
rendernig frequency.
2018-12-11 11:39:32 +11:00
hiker
b2238a4c18 Improved layout. 2018-12-11 01:27:14 +11:00
hiker
89cc549ebc Support floating point values for the progress bar. 2018-12-10 22:13:13 +11:00
hiker
386dc279fd Make all unused boxes in the voting GUI invisible. 2018-12-10 18:26:18 +11:00
Alayan
5472248d95 Add standard replay for Hacienda 2018-12-10 03:12:52 +01:00
hiker
4b74c673fe Fix crash for player with last vote (which means VoteOverview
is articially pushed).
2018-12-10 11:07:14 +11:00
hiker
f6398f3661 Fixed compiler warnings. 2018-12-10 10:51:54 +11:00
hiker
282e178468 Fix compilation problem (apparently forgot to save when I comitted
the file).
2018-12-10 10:51:01 +11:00
hiker
8b387241ad Avoid crash if a player selects 'submit' before selecting a track. 2018-12-10 10:23:22 +11:00
hiker
f01465fc93 Re-enable end of voting as soon as s vote from each player is received. 2018-12-10 09:14:52 +11:00
Deve
7ab4edf8d4 Set activity launch mode as single task 2018-12-09 22:50:20 +01:00
hiker
b413cc7328 Only sent vote when submit is clicked (otherwise voting could ended
by a player clicking on a track, without the opportunity to select
2018-12-10 08:26:30 +11:00
hiker
c37b735bb9 Reset 'left over' highlights from previous voting screen. 2018-12-10 08:24:57 +11:00
hiker
ed29c280b3 Added initial voting animation while loading the track. 2018-12-10 00:29:14 +11:00
Deve
f85f345bdf Fixed a crash when opening user screen after changing advanced lighting 2018-12-08 21:33:39 +01:00
Deve
998900cc8e Give slightly more space between buttons 2018-12-07 22:29:43 +01:00
Deve
6f706eb436 Avoid unnecessarily long button name.
It was sometimes using smaller text because of too little space.
2018-12-07 22:22:12 +01:00
Alayan
3a307b4d9f Fix icon size in the server configuration dialog 2018-12-07 02:50:05 +01:00
Benau
76406db939 Update documentation 2018-12-07 01:37:16 +08:00
Benau
8a11fae026 Update translation 2018-12-07 01:27:47 +08:00
Benau
7df81bcb7c Set m_server_configurable flag in correct place for GUI server 2018-12-07 01:23:42 +08:00
Benau
083e1180fb Add the GUI to update server config in lobby 2018-12-07 00:54:48 +08:00
Benau
66f7aea3bb Add online request to live update server config 2018-12-07 00:52:44 +08:00
Benau
7fa92366ed Make possible to remove disconnected player vote 2018-12-07 00:28:49 +08:00
Benau
2127105985 Merge remote-tracking branch 'origin/LessGlobalItems' 2018-12-07 00:27:42 +08:00
hiker
c0816995ac Code cleanup. 2018-12-06 18:39:59 +11:00
Benau
a69db65c71 Reset extra server info each game for live changing 2018-12-06 14:52:28 +08:00
Alayan
b4a1cf9a99 Tone down global items 2018-12-06 01:27:08 +01:00
hiker
f6e758a9d6 Added a phase and optional iteration index/max-iteration to
renderGUI to allow for smooth display of progress bar.
2018-12-06 09:58:29 +11:00
Benau
6be39f7ef8 Enable kick-idle-player-seconds only for WAN server 2018-12-06 01:14:01 +08:00
Benau
3d64340137 Add the framework in server lobby for live update config 2018-12-05 14:19:01 +08:00
Benau
b341ec8e8c Don't resend enet event if for a disconnected peer 2018-12-05 13:17:19 +08:00
Benau
72f1dc66cc Kick idle player which has no network activity to server 2018-12-05 11:12:44 +08:00
hiker
0582c4018d Fixed crash when using higher graphical details. 2018-12-05 12:52:49 +11:00
Benau
a7311238cf Warn high ping user earlier 2018-12-05 08:35:11 +08:00
hiker
edad214001 Allow the gui to be updates while loading a track, and use this
to show a simple (and still stuttering) animation while loading
a track,
2018-12-05 09:51:41 +11:00
hiker
62e029a523 Fixed compiler warnings. 2018-12-05 09:40:16 +11:00
hiker
7dd86da55c Added 'select' state for skins, which will be used in the voting overview gui. 2018-12-05 08:36:59 +11:00
Deve
241e0ae772 Fixed focus chat using keyboard in lobby screen 2018-12-04 21:00:10 +01:00
Deve
a85746ca83 Make sure that we don't use screen widget when dialog window is opened.
It fixes #3639
2018-12-03 22:02:20 +01:00
hiker
b0cc2eb441 Added an 'ok' badge to the selected track. 2018-12-04 00:27:12 +11:00
Benau
68a837607e Fix non-reset ignore height for flyable 2018-12-03 15:26:04 +08:00
Benau
9ae13052cc Use full path for default SP material if possible 2018-12-01 15:15:44 +08:00
Benau
546cd94f39 Use a separate max texture size for SP 2018-12-01 14:21:05 +08:00
Deve
ddbe42680d Add experimental support for system screen keyboard on android.
Disabled by default, needs screen_keyboard = 3 in config.xml
2018-12-01 00:43:17 +01:00
hiker
da7a77963e And another compiler fix. 2018-12-01 10:16:07 +11:00
hiker
585e346b75 More compiler fixes - gee, why is VS accepting all of this?? 2018-12-01 10:11:36 +11:00
hiker
31f55f14ae Another compiler fix. 2018-12-01 10:08:18 +11:00
hiker
890107da71 More compiler error fixes. 2018-12-01 10:05:03 +11:00
hiker
094aef0ccd Try to fix compilation with older compilers. 2018-12-01 09:54:54 +11:00
hiker
d6d879d2ed Show votes in vote overview screen. This is NOT fully working,
and contains debug output.
2018-12-01 09:32:21 +11:00
Deve
bf76a2a1e2 Move send button to the same line as edit box to avoid too big space between them on some resolutions 2018-11-30 21:42:15 +01:00
Benau
b3e41db14b Add EMT_STK_GRASS for GLES2 to draw grass material without vertex color
Now EMT_TRANSPARENT_ALPHA_CHANNEL_REF in GLES2 can be used with vertex
color
2018-11-30 23:33:30 +08:00
Benau
874895ba11 Use STKTextBillboard for legacy pipeline for correct glyph metrics 2018-11-30 23:01:43 +08:00
Benau
a906e607df Fix rectangle face culling 2018-11-30 19:00:05 +08:00
Benau
8b825bf7df Fix meter missing in race gui for GLES 2 2018-11-30 18:47:15 +08:00
QwertyChouskie
5031e7a47f Fix compilation
As per https://github.com/supertuxkart/stk-code/pull/3626#issuecomment-443023563
2018-11-29 17:11:45 -08:00
Alayan-stk-2
5c7133699e Fix #3248 2018-11-30 00:03:21 +01:00
Deve
8d94dfa2d7 Give slightly more space for timeout message in networking lobby.
Make start button proportional to resolution.
2018-11-29 23:39:19 +01:00
Benau
8bf4f36259 Fix missing bubblegum dropping before state 2018-11-29 14:57:24 +08:00
Deve
443919b6b7 Update chat and counter even if there is dialog window opened 2018-11-28 23:55:29 +01:00
QwertyChouskie
2253dc9db9 Update to 0.15.4, with fix for Windows compilation 2018-11-28 11:18:32 -08:00
Benau
72b36e1512 Revert "Tone down global items frequency after feedback"
This reverts commit 9f4a4f94ac.

Until next android beta apk or real beta
2018-11-29 02:44:24 +08:00
Alayan
9f4a4f94ac Tone down global items frequency after feedback 2018-11-28 08:48:40 +01:00
Alayan
7d67137420 Fix #3634 2018-11-28 08:06:57 +01:00
Fouks0
1a1775e5cc Fix a bug that allowed to fire powerups before start, don't penalize anymore if honking before start (#3632)
Signed-off-by: Fouks <42526046+Fouks0@users.noreply.github.com>
2018-11-27 19:45:39 -05:00
Fouks
dc9513ec8d Prevents cakes and rubber balls to appear early by replacing them by bowling balls
Signed-off-by: Fouks <42526046+Fouks0@users.noreply.github.com>
2018-11-27 23:57:34 +01:00
hiker
e20d6a437a Removed debug code. 2018-11-28 08:17:21 +11:00
hiker
bd0641f12a Store voting data in lobby protocol so it is available on client
and server. Voting behaviour is now to start the race as soon as
all votes are in.
2018-11-28 08:13:59 +11:00
Deve
88a1dcc724 Add more tracks to the apk 2018-11-27 21:57:44 +01:00
Benau
068f5cd6e3 Update translation 2018-11-28 01:47:35 +08:00
Alayan
20756fcbe7 Reduce the duration of explosions to make them less frustrating 2018-11-27 10:32:55 +01:00
Alayan
faf4b709e0 Remove expert challenge time requirements, make some SuperTux challenges harder 2018-11-27 09:20:38 +01:00
Benau
7d1e7df010 Merge remote-tracking branch 'origin/master' 2018-11-27 15:17:48 +08:00
Alayan-stk-2
507e360a3d Make SuperTux challenge slightly easier (2,3s) after feedback 2018-11-27 08:14:13 +01:00
Benau
e5c601b35e Fix #3619 2018-11-27 14:45:23 +08:00
Alayan-stk-2
786cc1edc6 Update the changelog for next release
It is still incomplete (especially for networking). I separated user interface changes to avoid the list being too disorganized, further separations may be useful.
2018-11-26 22:08:01 +01:00
QwertyChouskie
0c5d728c48 Update Wiiuse library to 0.15.3, fixes support for newer Wiimotes on Linux 2018-11-26 09:58:53 -08:00
Benau
9e066706aa Prevent clients removing too many official assets 2018-11-26 16:38:11 +08:00
Benau
9ed9787b6f Fix compiler warning 2018-11-26 11:56:04 +08:00
Benau
dba713f72e Fix #3589 2018-11-26 11:55:43 +08:00
Deve
a59cbdffe5 Fixed spinner widgets focus in kart selection 2018-11-25 22:21:48 +01:00
Benau
950695769c std::shuffle players list for randomized starting position 2018-11-25 16:12:39 +08:00
Benau
4c534dc28c Handle first-team assignment better when joining in the middle of game 2018-11-25 15:49:04 +08:00
Benau
1f1734e5a7 Fix #3621 2018-11-25 15:10:03 +08:00
Benau
940170cf61 Fix #3617 2018-11-25 13:20:17 +08:00
Alayan
073708c97e Implement dynamic basket ball speed, fix #2783 2018-11-25 02:29:19 +01:00
Deve
2ac739bde3 Explicitly check nettle/version.h, because it's not available in older versions.
NETTLE_INCLUDE_DIRS is not empty when at least one file is found, so it didn't guarantee that verion.h exists.
2018-11-24 23:20:27 +01:00
Alayan-stk-2
26b660531a Fix outdated information about the location of the internet option 2018-11-24 19:21:46 +01:00
Benau
6f50c234a3 Fix #3452 2018-11-25 02:00:33 +08:00
Alayan-stk-2
459119075a Fix another incorrect GP lap number 2018-11-24 02:03:34 +01:00
Alayan-stk-2
9f84283af7 Fix incorrect lap number 2018-11-24 02:02:41 +01:00
auria.mg
8998f095f3 Merge branch 'DisableInternetConnection' 2018-11-23 19:26:46 -05:00
auria.mg
2781f5e8a5 Amend previous fix 2018-11-23 19:12:05 -05:00
auria.mg
562fe8a4c8 Fix STK hanging on shutdown when networking disabled 2018-11-23 19:07:58 -05:00
auria.mg
9d51713300 Fix logout when disabling internet 2018-11-23 18:52:17 -05:00
Deve
88906c7530 Don't show change resolution button on android 2018-11-23 22:37:44 +01:00
QwertyChouskie
06952bfd52 Fix issues with COPYING (see desc.)
See https://softwareengineering.stackexchange.com/questions/281949/how-to-properly-apply-a-license for why the the "How to Apply These Terms to Your New Programs" part was added.

The GPL was copy-pasted from https://www.gnu.org/licenses/gpl-3.0-standalone.html, but with some formatting changed to be like https://www.gnu.org/licenses/gpl.txt (only ASCII characters, etc.)

The top line is based on https://github.com/supertuxkart/stk-code/blob/master/src/main.cpp#L7
2018-11-23 13:31:03 -08:00
Alayan
3ce1867e74 Coding style improvements 2018-11-23 22:08:51 +01:00
Benau
313ca1d902 Fix #3595 2018-11-24 02:39:32 +08:00
Benau
6886e1952e Fix isBattleMode for easter mode 2018-11-24 02:28:51 +08:00
Benau
689376dd0f Make FFA and CTF minor mode 2018-11-24 01:41:36 +08:00
Benau
17075082e6 Update documentation on STKHost 2018-11-24 00:26:29 +08:00
Alayan
1e178cdcf9 Merge branch 'master' of https://github.com/supertuxkart/stk-code 2018-11-23 17:20:33 +01:00
Alayan
0eb1a916d3 Make some minor modes misc, fix #3564 2018-11-23 17:19:37 +01:00
Alayan
5ea5b69200 Fix the possibility to get 1 lap/race achievements in battle/soccer/egg hunt 2018-11-23 16:57:19 +01:00
Benau
4313fad196 Update translation 2018-11-23 23:48:06 +08:00
Benau
e47a7b26a0 Add variation for tie vote instead of always from "less" one 2018-11-23 22:17:21 +08:00
auria.mg
3ff0724cb4 Fix cases where stk connects to the internet while the user forbid it, see #3319 2018-11-22 20:32:38 -05:00
Alayan
8995027d42 Fix typos 2018-11-23 00:44:24 +01:00
Alayan
05e27df214 Fix #3513 2018-11-23 00:42:09 +01:00
Deve
503dc25106 Fixed a crash when loading localized names 2018-11-22 23:24:38 +01:00
Deve
8f90b5f9ab Make sure that files are flushed before exit 2018-11-22 22:34:10 +01:00
Deve
cdb3d2cae5 Fixed a crash when opening broken xml file 2018-11-22 22:09:05 +01:00
Deve
7a2ae14d7c Always restore assign mode when closing the screen 2018-11-22 20:16:49 +01:00
Alayan
329918f7aa Replace rubber ball by basket ball in log messages 2018-11-22 04:51:10 +01:00
Alayan
f2a9ddaa75 Fix #3604 2018-11-22 04:29:29 +01:00
auria.mg
faf5c440c2 Reduce kart name tags in multiplayer when using shaders, since they were too large 2018-11-21 21:30:59 -05:00
auriamg
3c60ec16d3 Update INSTALL.md
Clarify build instructions a little
2018-11-21 20:59:22 -05:00
hiker
fa7d3eef73 Added 'voting result' screen, though it does not have any functionality atm. 2018-11-22 09:17:58 +11:00
Deve
8771f0b9d7 Fixed possible crash when using splitscreen with network multiplayer 2018-11-21 22:12:02 +01:00
Deve
3a3953f38c Fix for system glew 2018-11-21 21:07:55 +01:00
Benau
3e2a8bc56f Update network document 2018-11-22 03:13:16 +08:00
Benau
d73e0d9413 Fix compiler warning 2018-11-22 02:46:42 +08:00
Benau
c0e8924c0f Clean up ConnectToServer 2018-11-22 02:43:11 +08:00
Benau
f14daeca26 Push to lobby for enter server ip address dialog too 2018-11-22 02:42:37 +08:00
Benau
cd1b401cc8 Push to lobby for --connect-now 2018-11-22 02:41:37 +08:00
Ryan
271b032ef3 Achievement sorting (#3533)
The comparison for goals and progress still has to be changed from alphanumerical to a progress status.
2018-11-21 15:33:26 +01:00
Alayan-stk-2
e2337d3d9c Fix replay game version 2018-11-21 15:27:59 +01:00
lightonflux
fb3a1452ca Add nettle dependency for Linux distros & macOS (#3605)
A few days ago stk stopped compiling because nettle was added as a dependency.
So i added it.

Works on Debian based distros. Fedora and macOS package name taken from the web.
2018-11-20 18:21:37 -05:00
River Marks
665c8a8cec Fix for when attempting to input a server IP address on the num pad (#3603)
The decimal key was not registering on the number pad as the decimal
key, it was deleting the numbers of the IP address making it impossible
to use the num pad solely for entering an IP.

Fixes #3602
2018-11-20 11:37:18 +01:00
Alayan
39049eff93 Add some reverse standard replays and a egg hunt replay 2018-11-20 05:26:58 +01:00
Alayan
17c66d3263 Update the Cocoa Temple challenge replays 2018-11-20 05:21:30 +01:00
Alayan-stk-2
0692d45611 Don't change the bomb timer when passing it to another kart 2018-11-20 04:08:21 +01:00
hiker
772e2fb3f5 Fixed ghost-recording, which uses the network track screen. 2018-11-20 09:46:35 +11:00
hiker
0e2beceb9d Added progress bar (showing remaining time) to kart selection screen. 2018-11-20 09:32:31 +11:00
Deve
95ecd55ce8 Remove early return that causes wrong spinner widget behavior. 2018-11-19 21:57:55 +01:00
Deve
70e82142d1 Get default widget from modal dialog when it's active 2018-11-19 21:57:55 +01:00
Alayan
e6893aa58c Set 0.10.0 as version for the new standard replays 2018-11-19 20:43:41 +01:00
Alayan
3b16390268 New standard replays for tracks expected to not change before release 2018-11-19 20:38:19 +01:00
Alayan
40e967ae4e Remove old standard replays 2018-11-19 18:41:02 +01:00
Benau
d80691fb7b Allow network ai to auto go back lobby quickly 2018-11-19 12:22:23 +08:00
Deve
337e577d6f Assume that there are always 2 text lines in touch gui.
It fixes overlapping text in CTF/Soccer.
2018-11-18 21:42:42 +01:00
Benau
45a1190374 Optimize plunger state saving 2018-11-19 01:38:13 +08:00
Benau
f1c164ca6e Merge remote-tracking branch 'origin/master' into dev 2018-11-19 00:38:18 +08:00
Alayan-stk-2
cc1f2f63b9 Fix behavior when no acceleration/braking above the "stop" speed limit
The kart accelerating when going backwards was a sign issue (missing fabsf) and was already fixed in bb1aac3857

Setting the engine force to 0 in all cases causes issues when not accelerating/braking at higher speeds.
2018-11-18 03:40:46 +01:00
Alayan-stk-2
853a08d398 Don't save highscores for eliminated karts, fix #3560 2018-11-18 03:25:38 +01:00
Alayan-stk-2
3363782407 Fix #3586 2018-11-18 01:10:16 +01:00
Deve
9ca7e2b424 Fixed spinner widgets in modal dialogs 2018-11-18 00:29:49 +01:00
Deve
0c57d55a9d Allow to change player name in kart selection with keyboard or gamepad.
Currently spinner widgets use select button instead of left/right buttons to change values, so that we can't handle player confirmation when spinner is hovered.
2018-11-18 00:03:08 +01:00
Deve
060855c710 Check wayland version in cmake.
Fixed #3579.
2018-11-17 21:56:23 +01:00
hiker
65dc27a3c8 Removed earlier end of voting when majority agrees, but instead
start immediately when all votes are in.
2018-11-17 23:26:22 +11:00
Alayan-stk-2
c576c45edc Remove time requirement for expert, tighten it for SuperTux 2018-11-17 13:15:41 +01:00
hiker
f4b02c096a Merge branch 'dev' of github.com:supertuxkart/stk-code into dev 2018-11-17 22:55:28 +11:00
hiker
0787d7c8e3 Fixed kart accelerating when rolling (without acceleration) backwards,
and karts not being able to stop properly.
2018-11-17 22:54:46 +11:00
Benau
9c3bae5a87 Use actualy screen size instead of frame size for font scaling 2018-11-17 13:50:50 +08:00
Benau
e6dadeb980 Use a larger radius for CTF 2018-11-17 12:43:03 +08:00
Benau
7f6c479a80 Merge remote-tracking branch 'origin/dev_item_normal' into dev 2018-11-17 11:52:57 +08:00
Alayan-stk-2
93ae275927 Fix #3542 2018-11-17 02:07:06 +01:00
Alayan-stk-2
1b7d77e92e Increase challenge in SuperTux 2018-11-16 22:49:34 +01:00
Alayan-stk-2
8025e9a4a3 Improve SuperTux challenge balance
A AI with an heavy kart did 144,56 with the new kart characteristics. The first AI will be between 150 and 155 in most cases. The 165s time limit wasn't adapted.
2018-11-16 21:37:46 +01:00
Alayan-stk-2
bb1aac3857 Fix the kart accelerating instead of slowing down when going backwards 2018-11-16 20:56:43 +01:00
Alayan-stk-2
c82b307353 Improve SuperTux challenge balance in OMC
The AI itself often could go below 95s, even sometimes 90s.
2018-11-16 18:46:37 +01:00
Benau
22999c1e2b Fix #3581 2018-11-17 01:40:51 +08:00
Benau
99eefa3797 Add missing isNetworking 2018-11-17 01:07:06 +08:00
Benau
e77eb2ccf6 Allow server owner to force soccer time / goal limits 2018-11-17 00:48:48 +08:00
Benau
eb6b930b6a Show kart name next to icon after finishing a race 2018-11-16 23:34:05 +08:00
Benau
092cd7f3bf Fix #3583 2018-11-16 23:12:05 +08:00
Benau
eb0000f8e0 Move arena / soccer scores (limit) to have their own place 2018-11-16 22:58:27 +08:00
Benau
f94e226e22 Add ready status to player icon 2018-11-16 20:56:21 +08:00
hiker
0221e2f6d1 Merge branch 'master' of github.com:supertuxkart/stk-code 2018-11-16 23:48:47 +11:00
Benau
eb8b68dcb6 Allow text box widget to process left / right events 2018-11-16 19:46:48 +08:00
hiker
0da03e14ca Use a central timeout controller (in LobbyProtocol) to be used by
both client and server. Voting time now starts from the moment the
kart screen is shown (not on first player having finished voting).
Improved coding style.
2018-11-16 16:57:23 +11:00
Benau
264b79ef0d Replace exit button with server configuration for future usage 2018-11-16 12:48:53 +08:00
Alayan
d8c9fd7fb6 Split UI options into general options (new default tab) and UI options 2018-11-16 03:20:39 +01:00
hiker
cf52ff16b7 Fixed compiler warnings. 2018-11-16 09:36:26 +11:00
Deve
d59f2fdca6 Small clarification in android readme 2018-11-15 21:44:33 +01:00
Benau
2da8808592 Remove unneeded mask 2018-11-16 01:38:46 +08:00
Benau
ec7216361d Merge remote-tracking branch 'origin/dev_item_normal' into dev 2018-11-15 12:43:09 +08:00
hiker
c2481ba68c Fixed compilatione error. 2018-11-15 11:59:06 +11:00
hiker
b215bf4d22 Fixed compiler warnings. 2018-11-15 09:39:48 +11:00
hiker
12c3a30385 Also transfer the normal for an item from server to client. 2018-11-15 09:06:41 +11:00
Deve
2b696d08ff Give more space for translations 2018-11-14 22:41:20 +01:00
Deve
7cc4c92b31 Fixed compilation with current mesa.
It fixes #3557.
2018-11-14 20:59:00 +01:00
Benau
b91e018a18 Use only y-axis for timed rotation 2018-11-14 16:07:02 +08:00
Benau
7b4a4e3727 Fix connect to server message overshoot in text box 2018-11-14 16:02:12 +08:00
Benau
5e711088bf Use better english as alayan suggested 2018-11-14 16:01:36 +08:00
Benau
721270c5a9 Fix #3566 2018-11-14 15:03:33 +08:00
Alayan
acd749d75f Fix #3518 2018-11-13 22:21:44 +01:00
Deve
814916a2a6 Try to fix some crashes when closing android activity 2018-11-13 21:53:55 +01:00
Alayan
cef9d81e9a Make default sound level less loud, fix #3553 2018-11-13 21:37:07 +01:00
Alayan
ef73b76238 Merge branch 'master' of https://github.com/supertuxkart/stk-code 2018-11-13 19:34:49 +01:00
Alayan
6e981064f7 Tune more challenge time requirements with the new kart characteristics 2018-11-13 19:34:19 +01:00
Benau
0d1f760aba Try a lower value of min-adjust-length 2018-11-14 01:00:59 +08:00
Alayan
e56a9bdf58 Fix #3549 2018-11-13 16:11:28 +01:00
Alayan
5db7358921 Fix #3559 2018-11-13 15:50:24 +01:00
hiker
4a4bc7248c Merge remote-tracking branch 'origin/lossless_compression' into dev 2018-11-13 23:04:38 +11:00
hiker
f1b97cdd44 Merge branch 'Characteristics' of git://github.com/STK-helper/stk-code into dev 2018-11-13 22:52:44 +11:00
hiker
81d706191a Merge branch 'fix_cushioning' into dev 2018-11-13 22:24:00 +11:00
hiker
463301091b Merge branch 'master' of github.com:supertuxkart/stk-code 2018-11-13 22:22:20 +11:00
Benau
15a6e20852 Add description for smoothing network body options in stk_config 2018-11-13 16:22:20 +08:00
Benau
dff63b87db Fix broken logic 2018-11-13 16:04:31 +08:00
hiker
266dc02a44 Removed support for cushioning falls, instead increase max suspensiom
force and damping compression to allow karts to fall without colliding
with the terrain. Needs an increase in network protocol version.
2018-11-13 18:35:41 +11:00
hiker
5c14ce86d7 Merge branch 'master' of github.com:supertuxkart/stk-code 2018-11-13 17:55:56 +11:00
Benau
1cb1923239 Fix #3554 2018-11-13 14:15:34 +08:00
Benau
9de7376b0a Make a lossless compression for btKart state saving 2018-11-13 12:56:40 +08:00
Alayan
b4df116661 Fix #3556 2018-11-13 02:14:23 +01:00
Alayan
00a5fe9a36 Make a color choice spinner bigger so translations fit 2018-11-13 01:52:50 +01:00
Alayan-stk-2
7139fefcf1 Fix #3548
There are 25 challenges total, including Fort Magma. So only 24 can be completed before it.
2018-11-13 01:01:59 +01:00
Alayan-stk-2
978b3b59a2 Merge pull request #41 from supertuxkart/master
Sync branches
2018-11-13 00:58:24 +01:00
QwertyChouskie
23cf84590d Fix message (#3552)
* Fix message

* Tweak
2018-11-12 18:39:59 -05:00
Benau
ac02df76aa Reverse addons date sort order for the arrow 2018-11-13 00:33:51 +08:00
Benau
967c61a361 Reverse the arrow as tester reported 2018-11-13 00:26:32 +08:00
Benau
34953ad55a Increase adjust length threshold to make it smoother for high ping 2018-11-12 15:59:07 +08:00
Benau
022e0777bd Move smoothing variable to stk_config 2018-11-12 15:58:23 +08:00
Benau
ff71592d49 Make adjust length threshold configurable 2018-11-12 15:39:01 +08:00
Benau
fe805abc09 Fix #3546 2018-11-12 12:11:08 +08:00
Benau
7b3540e4ee Fix #3545 2018-11-12 11:37:34 +08:00
Benau
2a9c7c5b21 Update german translation patched by Wuzzy 2018-11-12 10:18:21 +08:00
Deve
0128a729a0 Don't tell about unlocked karts/tracks when they are unlocked globally 2018-11-12 00:44:05 +01:00
Deve
be92acf0ab Update german translation 2018-11-11 22:18:48 +01:00
Benau
f696881208 Update chinese taiwan translation 2018-11-12 01:47:10 +08:00
Benau
383012dcfc Update translation 2018-11-12 01:36:14 +08:00
Benau
c5ce0e4a19 Update translation source 2018-11-12 01:20:11 +08:00
Benau
afa2da927f Add translation tip for dialog 2018-11-12 00:38:02 +08:00
Benau
a38c447b60 Set position first for correct end kart animation 2018-11-12 00:25:19 +08:00
Deve
90fb3f2c55 Make sure that achievements depth is never greater than 2.
Current GUI doesn't allow it and it has no sense anyway.
2018-11-11 01:41:49 +01:00
Deve
bf26e4add3 Some fixes for achievements screen.
Give a bit more space for text, use separate table for main goal, avoid overlapped text in main goal table etc.
2018-11-11 01:38:27 +01:00
Benau
87ce3931e5 Add maximum number of moveable objects in networking games 2018-11-09 21:17:38 +08:00
Benau
9061d527df Fix #3543 2018-11-09 09:51:05 +08:00
Benau
b810fca0b0 Update translation strings 2018-11-09 01:32:34 +08:00
Benau
7d2fa96b5d Fix #3497 2018-11-09 01:30:46 +08:00
Benau
19c06ebed6 Remove an unneeded if 2018-11-09 01:06:23 +08:00
Benau
84840cfab9 Make translation thread safe 2018-11-08 16:36:00 +08:00
Benau
0f2bf9e899 Fix compiler warning 2018-11-08 15:41:08 +08:00
Alayan-stk-2
c724585bfc Fix #3536
The more accurate finish time stored as a variable wasn't reset between races.
2018-11-07 19:01:27 +01:00
Benau
189b90b2c5 Convert more getRealTime to getRealTimeMs 2018-11-08 01:37:21 +08:00
Benau
866df61527 Make isPlaying of music thread safe 2018-11-08 01:00:17 +08:00
Alayan-stk-2
01c79c746f Simplify getTexture calls 2018-11-07 15:12:39 +01:00
Mrxx99
998d27dc5f added lap icon to the the kart icons in RaceUI that have finished the race already (#3538)
* added lap icon to the the kart icons in RaceUI that have finished the race already

* fixed identation

* implemented Aurias feedback
2018-11-05 18:22:59 -05:00
Deve
6ae89331c0 Fixed word wrap in achievements description and make close button slightly bigger. 2018-11-03 23:25:50 +01:00
Benau
1c8f2afd28 Don't show thunderbird when waiting for others 2018-11-03 16:31:51 +08:00
Benau
8507a08c5c Move skidding particles to updateGraphics to avoid rewinding issue 2018-11-03 16:19:52 +08:00
Deve
b7856d4991 Make sensitivity independent of deadzone for touch device 2018-11-03 00:06:17 +01:00
Deve
f05172b93f Use higher sensitivity for y axis on touch device 2018-11-02 22:10:41 +01:00
Benau
a7bbe54ea6 Fix stuttering of item rotation for big nitro switched by bubblegum 2018-11-02 15:59:32 +08:00
Deve
832c1abc9b Fixed some spinners that didn't work on very high resolutions 2018-11-01 23:40:27 +01:00
Benau
a13af6bfc8 Fix dropping big nitro with switch on 2018-11-02 01:41:43 +08:00
Benau
90daf4ce87 Fix item model no update if missing the switch event 2018-11-01 15:48:27 +08:00
Deve
e4eb1513fc Some fixes for tracks screen.
Now it works better with very big resolutions. Previously label height was used as a kind of margin for columns. But in extreme case it could be even bigger than child height.
2018-10-31 23:21:56 +01:00
hiker
724a5d94ba Merge branch 'master' of github.com:supertuxkart/stk-code 2018-10-31 23:20:53 +11:00
Benau
2c86355013 Fix #3370 2018-10-31 14:12:53 +08:00
Benau
c25c12e7a5 Disable jpg logging to make it thread safe 2018-10-31 13:26:34 +08:00
Benau
0b2a691b24 Fix compiler warning 2018-10-31 12:47:26 +08:00
Benau
c1ed846e1e Remove X11 header usage if server only 2018-10-31 12:28:49 +08:00
Benau
8fb4f4886e Fix server only build 2018-10-31 02:31:39 +08:00
Benau
a65eb2f774 Fix nitro bar missing in non glsl 2018-10-31 01:59:37 +08:00
Benau
9e2084b63c Hide kart color slider button if not GLSL 2018-10-31 01:24:05 +08:00
Benau
cc580cec8b Focus on cancel button to avoid bad misclick result 2018-10-30 14:01:04 +08:00
Benau
5b38f73b27 Allow displaying new friend requests without restart 2018-10-30 13:19:42 +08:00
Benau
5ec4865008 Fix possible crash 2018-10-30 13:14:39 +08:00
Benau
b5ba68ae71 Show disabled chat message in the lobby chat box 2018-10-30 01:06:13 +08:00
Deve
0313a308d8 Always use real dt for cutscenes.
It fixes #3213
2018-10-28 23:21:55 +01:00
Deve
4ece4a6c00 Change param name to avoid conflict 2018-10-28 22:27:34 +01:00
Deve
a3eecaedc1 Give a little sense for story mode on android.
At least close big door until all available challenges are completed.
2018-10-28 21:55:48 +01:00
Benau
8c8a0f8452 Fix timer paused if user dialog opened 2018-10-29 01:48:58 +08:00
Benau
59f29ca975 Fix #3168 2018-10-28 12:59:23 +08:00
Benau
a77b897cd5 Add lock for calling fileExists from other thread in addons manager 2018-10-27 15:55:17 +08:00
Benau
6ce42d19b1 Update NETWORKING.md for new config 2018-10-27 00:36:53 +08:00
Benau
bdd2b53ec1 Adjust some default values for server config based on play test
You need to remove old server_config.xml to have effect
2018-10-27 00:07:51 +08:00
Benau
feb11fa223 Split strict-players from ranked for more usage 2018-10-26 23:55:18 +08:00
Benau
d8d0e870b1 Clean star effects if explosion animation failed to create 2018-10-26 22:11:03 +08:00
Benau
e6b8163579 Don't add deleting flyable to state 2018-10-26 20:32:19 +08:00
Benau
8257f71a60 End plunger animation early if has none told by state 2018-10-26 17:48:58 +08:00
Benau
89aea95b00 Bring back the quit button for continuing grand prix 2018-10-26 15:22:14 +08:00
Deve
be137155af Fix for opening screen keyboard with gamepad on login screen 2018-10-25 22:42:45 +02:00
Deve
571d3d3ba0 Minor optimization for assets extraction 2018-10-25 22:17:35 +02:00
Benau
7902431abe Show bad team message only to server owner 2018-10-25 15:12:18 +08:00
Benau
d731a658d8 Add notification sound when new player joins lobby 2018-10-25 15:12:06 +08:00
Benau
20ea6d4a5f Show network tips only once per game 2018-10-25 14:24:35 +08:00
Benau
610c976ce2 Fix #3530 2018-10-25 14:15:33 +08:00
Benau
378c5c18e7 Simplify squash graphics 2018-10-25 10:39:36 +08:00
Deve
8737b91cb9 Set focus on button when screen keyboard is opened 2018-10-24 21:52:01 +02:00
Deve
a05fa23bf3 Revert "Fix close inputs being throttled, and speed up scrolling when a key is held (#3515)"
This reverts commit 614d4ac2f7.
2018-10-24 21:16:18 +02:00
Benau
5918a6025e Update translation 2018-10-25 02:02:27 +08:00
Benau
5326dacb5a Don't treat as quitted players if disconnect after finished the race 2018-10-25 00:51:27 +08:00
Benau
fb13eb105e Fix ranking messed up in network when finishing race 2018-10-25 00:36:47 +08:00
Benau
e78dbe2cce Don't start demo world wrongly when isNetworking is true in menu
Fix the weird abyss screenshot with tux in android
2018-10-24 14:37:51 +08:00
Benau
ce8125b03a Dismiss the on screen keyboard too when shutdown 2018-10-24 14:32:01 +08:00
Benau
d3db5d8808 Split slipstream instant speed update for better rewind 2018-10-24 14:29:44 +08:00
Deve
2a4c5ad557 Make sure that at least one backspace action is triggered when backspace key was used on screen keyboard.
This makes it working for gamepads.
2018-10-24 00:24:52 +02:00
Deve
e585c26833 Allow to activate screen keyboard using gamepad 2018-10-24 00:24:52 +02:00
Deve
91074705fd Merge pull request #3529 from pelya/gyro-camera-angle-fix
Fix for gyroscope camera using world coordinates instead of camera orientation
2018-10-23 21:54:43 +02:00
Sergii Pylypenko
0629aa07dd Fix for gyroscope camera using world coordinates instead of camera orientation 2018-10-23 20:56:04 +03:00
Deve
b4524e1db6 Fixed missing columns in edit gp screen 2018-10-23 00:55:43 +02:00
Deve
5b1a016b13 Avoid ugly empty space in addons screen.
It's not used for anything and simple to restore if needed.
2018-10-23 00:27:34 +02:00
Deve
6722f57b06 Fixed possible crash on 64-bit mingw build 2018-10-21 21:52:15 +02:00
Benau
0c9ea5ab11 Fix crash if exiting quick race too early 2018-10-21 14:29:57 +08:00
Deve
dae5bb221f Make minimap bigger for arenas on android 2018-10-20 21:53:18 +02:00
Deve
2ef3980009 Update tracks list after recent typo fix 2018-10-20 11:23:03 +02:00
Benau
5ff7db155d Fix broken network kart selection screen if no addon karts available 2018-10-20 16:22:51 +08:00
Benau
1a951b76b9 Update complete russian translation 2018-10-20 16:00:09 +08:00
Benau
f49f2912c7 Update translations 2018-10-20 15:52:40 +08:00
Benau
768d52b1c8 Fix disconnected players removing the flag in CTF 2018-10-20 15:22:07 +08:00
Benau
67105fc915 Update supertuxkart.pot 2018-10-20 14:40:26 +08:00
Benau
45f4cb2f58 Fix compiler warning 2018-10-20 07:58:30 +08:00
Ryan
dbda816d73 Update font size in updateItemDislpay() instead of buildInternalStructure to prevent a bug where text overlapped (#3523) 2018-10-19 18:33:05 -04:00
Deve
5bed082b86 Add more arenas to the apk 2018-10-19 23:24:16 +02:00
Deve
e4b8c9eac2 Avoid a crash in friends list.
Not my fault, but indeed it was crashing when you enabled sorting and then opened friends list in your friend profile.
2018-10-19 22:44:53 +02:00
Deve
acc920c14f Merge pull request #3522 from pelya/gyroscope
Gyroscope support for Android
2018-10-19 21:27:31 +02:00
Benau
7075dd5a47 Add kartHit in physics for ctf candela 2018-10-20 01:31:34 +08:00
Benau
f377f53452 Fix clang warning 2018-10-20 00:10:07 +08:00
Benau
2bbe2d5b79 Fix duplicated setsquash explosion animation creation 2018-10-19 23:47:55 +08:00
Benau
8058b74603 Remove unused min speed in state 2018-10-19 23:08:16 +08:00
Benau
876defbc29 Fix valgrind warning 2018-10-19 23:06:36 +08:00
Sergii Pylypenko
0e7fbfd6ef Revert "Dynamic noise filter for gyroscope values"
This reverts commit d538cdaa2b459249818426167325906834083899.
2018-10-19 16:41:38 +03:00
Sergii Pylypenko
ee07b8737c Dynamic noise filter for gyroscope values 2018-10-19 16:41:38 +03:00
Sergii Pylypenko
2114c18ab7 Roll the camera when gyroscope is used, for visual representation of steering 2018-10-19 16:41:38 +03:00
Sergii Pylypenko
714e5a75a2 Added doxygen comments to gyroscope functions 2018-10-19 16:41:38 +03:00
Sergii Pylypenko
572132be46 Implemented gyroscope controls, no camera rotation and no filtering algorithm yet 2018-10-19 16:41:38 +03:00
Sergii Pylypenko
64e0c6312e Added MULTITOUCH_CONTROLS_... enum for m_multitouch_controls config option 2018-10-19 16:41:38 +03:00
Sergii Pylypenko
9f923fdfaa Gyroscope option in config dialogs 2018-10-19 16:41:38 +03:00
hiker
964d7bf8de Added timing output for physics loop when using --physics-debug. 2018-10-20 00:39:03 +11:00
hiker
8bb75803ab Applied Benau's bugfix - thanks! 2018-10-19 23:28:56 +11:00
hiker
c2c6652dd7 Merge remote-tracking branch 'origin/master' into network-item-debugging 2018-10-19 23:26:39 +11:00
hiker
df4a371789 Reset bubblegum torque. While this has no effect on behaviour,
it avoids false positives when debugging network code.
2018-10-19 23:25:18 +11:00
hiker
6b273f926a Fix crash that is triggered when a client on rewind does not get
a valid raycast for the item position. Current solution is a bit
of a work-around (creating the item potentially higher than the
ground with incorrect orientation).
2018-10-19 23:23:33 +11:00
Alayan-stk-2
ab0a0da716 Update the number of ranked races before using it in the rank computations 2018-10-19 01:46:24 +02:00
auria.mg
1d5e4de91d Revert "GP Editor Word Wrap (#3519)"
This reverts commit abd522d937.
2018-10-18 19:20:35 -04:00
hiker
dff64f5878 Try to fix network item crash, caused by one item being collected
at the same time by two different karts.
2018-10-19 00:28:43 +11:00
hiker
036f00b55a Added --network-item-debugging option to log item related events. 2018-10-19 00:27:53 +11:00
Benau
10956a9517 Use dialog for login reminder 2018-10-18 09:06:17 +08:00
Ryan
abd522d937 GP Editor Word Wrap (#3519)
* Always call buildInternalStructure when updating items to prevent font size issues

* Added word wrap for DynamicRibbonWidgets and enabled on the GP editor.
2018-10-17 20:14:33 -04:00
Deve
d9abe219ef Use less aggressive touch device scale on small devices.
After some tests both 4.3" phone and 6.4" phone return the same screen size, so we can't really base that much on it.
2018-10-17 21:13:43 +02:00
Benau
22f1111dbe Fix rare end race in network crash reported 2018-10-18 00:51:51 +08:00
Benau
c1f10d79cb Use resetMaxSpeed now that the material and physics update order are correct 2018-10-17 16:24:03 +08:00
Benau
76602ac65a Move updatePhysics after material raycast updated 2018-10-17 14:26:22 +08:00
Benau
d87cd364db Fix clang warning 2018-10-17 11:39:47 +08:00
QwertyChouskie
533fb39ab6 Improve issue template
Inspired by https://github.com/OpenRCT2/OpenRCT2/blob/develop/.github/ISSUE_TEMPLATE.md
2018-10-16 12:45:13 -07:00
Deve
2dd8c0f55b Always update remember-user checkbox when user was selected 2018-10-16 21:41:26 +02:00
Ryan
614d4ac2f7 Fix close inputs being throttled, and speed up scrolling when a key is held (#3515)
* Fix close inputs being throttled, and speed up scrolling when a key is held.

* Fix tabs
2018-10-16 18:13:01 +02:00
Alayan
bf7f734b69 Fix list cell update regression 2018-10-16 17:17:00 +02:00
Alayan-stk-2
5368b57147 Remove a few credits line for tracks/karts no longer in the main game
I suspect that some kart credits are also for old versions of karts which have been redone since then, but if the new version is based on the old, entirely removing credit may not be appropriate either.
2018-10-16 03:01:15 +02:00
Deve
1d8bcf02d8 Improve sorting friends by status.
Sort in order New Request -> Pending -> Online -> Offline
2018-10-15 23:34:49 +02:00
Alayan
7dbd64e48d Add a fast but hard way to unlock the SuperTux difficulty 2018-10-15 18:17:41 +02:00
Deve
90f30a6ce0 Don't use virtualbox devices as gamepads 2018-10-14 22:25:07 +02:00
Deve
9cbf15c1a2 Update to stable xdg shell 2018-10-14 22:11:30 +02:00
Alayan
04c9ab2290 Merge branch 'master' of https://github.com/supertuxkart/stk-code 2018-10-14 18:49:35 +02:00
Alayan
dad837511b Allow word wrap for list items in the achievement info dialog 2018-10-14 18:49:25 +02:00
Alayan
b0dd73552e Compute the correct width to fit the broken text in the list cell 2018-10-14 18:18:20 +02:00
Alayan
fec0216492 Add RTL support to breakText 2018-10-14 18:14:05 +02:00
Alayan
de2d24a571 Handle gracefully break requests of an empty string 2018-10-14 17:44:37 +02:00
Alayan
893ac9d994 Vertically center multi-lines list cell text 2018-10-14 17:24:07 +02:00
Alayan
df5ccc2472 Fix missing last char in a line 2018-10-14 17:17:45 +02:00
Alayan
ec657a16e3 Only break text once rather than on each frame 2018-10-14 17:14:45 +02:00
Alayan
8ec4da69f0 Fix a typo which caused an infinite loop 2018-10-14 04:56:37 +02:00
Alayan
ec7386a27e Fix linker error 2018-10-14 04:25:45 +02:00
Benau
8f6ed10a8e Fix ctf time limit formula 2018-10-14 10:07:09 +08:00
Alayan
bf7354a7d8 Add most of the logic to word wrap list items 2018-10-14 04:04:37 +02:00
Alayan
f33a9c1a18 Remove more code duplication 2018-10-13 23:14:44 +02:00
Alayan
4722ca680d Reduce code duplication 2018-10-13 23:05:32 +02:00
Alayan
f32b6059e6 Display different message when the player win a grand prix 2018-10-13 20:59:14 +02:00
Alayan
78b1d5c672 Fix #3449 2018-10-13 20:28:35 +02:00
Benau
f813fbe562 Fix #3511 2018-10-14 01:08:13 +08:00
hiker
51acb8f822 Made item handling simpler, removed isPredicted state from items. 2018-10-14 01:15:06 +11:00
auria.mg
457594379c Merge branch 'Fix3462' 2018-10-12 19:24:24 -04:00
Deve
ad21bc0886 Make spinner widgets in track info slightly bigger 2018-10-12 22:51:06 +02:00
Alayan
19f396f983 Document one of the basket ball config parameters 2018-10-12 22:16:52 +02:00
Deve
14b04ebc18 Update friends list only when it's already fetched 2018-10-12 21:43:27 +02:00
Alayan
7eeae8b6e1 Use a tighter steering delta for better ghost replay smoothness 2018-10-12 21:31:13 +02:00
Alayan
6ef5f66ef2 Fix windows compilation 2018-10-12 20:48:54 +02:00
Alayan
c84db6a571 Add skin-specific color emphasis for list items 2018-10-12 20:44:38 +02:00
Alayan
1f1d87e838 Merge branch 'master' of https://github.com/supertuxkart/stk-code 2018-10-12 19:11:37 +02:00
Alayan
4734e50a68 Also increase the FTL countdown when the leader is rescued 2018-10-12 19:10:46 +02:00
Alayan
a4142c13c1 Make the FTL countdown addition work for all type of explosion affecting the leader 2018-10-12 19:05:07 +02:00
Benau
724ca795f0 Add the required code for advanced meta library animation handling 2018-10-13 00:43:59 +08:00
Alayan
089f6d108e Add 5s to the FTL countdown when the leader is hit by a flyable 2018-10-12 18:18:23 +02:00
Alayan
2e6b7fd8ac Fix #3435 with a warning for too small resolutions 2018-10-12 15:17:34 +02:00
Alayan
52c0ddd718 Add comment to clarify why the checkline check is done that way 2018-10-12 05:01:53 +02:00
Alayan
5db620eb0f Fix #3313 2018-10-12 04:30:15 +02:00
Alayan
4af04b0123 Make multiplayer selection focus colored by the theme 2018-10-12 03:12:44 +02:00
Deve
ad144c6fb7 Fixed missing music in cutscenes.
Fixes #3503
2018-10-11 23:03:05 +02:00
hiker
eb5045987e Fixed crash in networking when driving over a bananas when a
shield is active.
2018-10-12 07:32:22 +11:00
Deve
53e232144f Add missing header 2018-10-11 21:48:28 +02:00
Deve
35f6e465bc Don't flood with wrong way message.
It fixes #3427.
2018-10-11 21:36:09 +02:00
Benau
3725013135 Discard ThreeDAnimation with no IPO 2018-10-12 01:20:57 +08:00
Benau
359c468604 Split track animation with physical or graphical objects 2018-10-12 00:55:37 +08:00
hiker
17ab076858 Fixed various compiler warnings for 64-bit windows compilation. 2018-10-11 23:27:08 +11:00
hiker
b28d11cbcc Force rebuild due to new files. 2018-10-11 21:01:35 +11:00
Benau
510d221fbc Add updateGraphics for track object presentation 2018-10-11 16:23:20 +08:00
Alayan
19e2baed74 Fix #3085 2018-10-11 04:53:26 +02:00
Alayan
d4363f3604 Use black outlines and the special digit font for trophies/points numbers in the overworld UI 2018-10-11 04:18:34 +02:00
Alayan
2461e8a032 Reduce code duplication 2018-10-11 03:49:39 +02:00
Alayan
cc36aa9e7f Make the lap N message more legible, minor tweaks 2018-10-11 02:48:41 +02:00
auria.mg
98503a7ff6 Lapline fix, tweak values and add explanations 2018-10-10 20:06:07 -04:00
auria.mg
d8f85267ad Another attempt to fix #3462, this one works much better 2018-10-10 19:53:07 -04:00
Alayan
21af25ef9b Partial fix to distances frozen in cannons 2018-10-10 19:41:02 -04:00
Alayan
02859b673e Fix distances when off-road, keep rescue to last on-road node 2018-10-10 19:41:02 -04:00
Alayan
ce4e005447 Improve the clarity/precision of the skidding help 2018-10-10 23:47:43 +02:00
Alayan
fb38f1f389 Fix inconsistency in the achievement dialog 2018-10-10 23:30:55 +02:00
Alayan
ed1ba448a8 Fix #3502 2018-10-10 23:00:34 +02:00
Alayan
7471d215db Check and remember if a challenge's supertux requirement (esp. time) have been met at a lower difficulty 2018-10-10 22:50:27 +02:00
Alayan
ef62e48e89 Fix #3500 2018-10-10 02:27:53 +02:00
Alayan-stk-2
15132c9ef6 Fix a spelling error 2018-10-10 02:11:27 +02:00
Deve
7cde4bcd36 Fixed wrong comment 2018-10-10 00:29:21 +02:00
Deve
b5cde81b48 Some fixes for player icons in touch gui 2018-10-10 00:26:40 +02:00
Deve
b70bd83d9c Fixed compiler warnings 2018-10-09 22:27:39 +02:00
Deve
ba1da58f0b Don't change current working directory.
It causes issues with multithreading.
Fixes #3498
2018-10-09 21:42:16 +02:00
auria.mg
8cf997d9cf WIP fix for #3462 . Not merged yet since this has side-effects, can cause issues on tracks like lighthouse where you can drive around the lapline 2018-10-08 20:55:17 -04:00
Alayan
b4cb7321d6 Add a thin outline for lap time/battle lives 2018-10-08 16:18:13 +02:00
Alayan
027705f9b1 Avoid important messages blocking view 2018-10-08 15:20:36 +02:00
Alayan
57d225dd68 Make final lap message more legible 2018-10-08 15:06:30 +02:00
auria.mg
0cb89e1a4f Fix crash in karts sorting caused by inconsistent comparison predicate 2018-10-07 20:48:18 -04:00
Deve
efe68fef94 Disable billboard text rendering in GLES legacy pipeline 2018-10-07 23:27:19 +02:00
Deve
2888f6ee2d Get correct track groups for soccer/battle mode 2018-10-07 21:45:48 +02:00
Alayan
0766df61f2 Block the final challenge being accessed earlier than intended 2018-10-07 19:12:13 +02:00
Alayan
ff7b94652a Switch STK Enterprise and Lighthouse in challenges and GP 2018-10-07 17:59:57 +02:00
Alayan
c1aa114909 Make STK's enterprise's challenge use time-trial 2018-10-07 17:30:22 +02:00
Alayan
4e5b7a80da Switch base mode for nitro challenges to time-trial 2018-10-07 17:11:35 +02:00
Alayan
9b6156279c Fix potential segfault 2018-10-07 16:29:18 +02:00
Alayan
767b613389 Fix an achievement's progress being displayed as -1 2018-10-07 16:09:47 +02:00
Alayan
18c2aa207f Fix an achievement save issue 2018-10-07 15:56:16 +02:00
Alayan
2dfecdb85f Fix #3488 2018-10-07 15:36:25 +02:00
Benau
aec3fb9e17 Update string 2018-10-07 13:14:59 +08:00
Benau
15c41ceaaf Fix clang warning 2018-10-07 12:14:22 +08:00
Benau
0297859eca Swap only the labels 2018-10-07 11:46:11 +08:00
Benau
38d13adc07 Use a custom dialog to show the details of an achievement's progress 2018-10-07 11:33:38 +08:00
Benau
a8b1c54092 Don't assume socket creation is always succeed (not when using torsocks) 2018-10-07 10:15:58 +08:00
Benau
fdfaa62a09 Swap label to make it compatible with stk-addons 2018-10-07 10:08:24 +08:00
Alayan
cd3bf122e6 Display the number of goals fullfiled, and if only one goal, its value progress 2018-10-06 18:26:57 -04:00
Alayan
ff5bb8792e Minor fixes 2018-10-06 18:26:57 -04:00
Alayan
9e6bc5d5ba Set achievements progress on load based on data counters 2018-10-06 18:26:57 -04:00
Alayan
a4d81beda4 Store achievements in a goal tree ; update achievements progress entirely depending on config 2018-10-06 18:26:57 -04:00
Alayan
3eab9b11b6 Remove unused code, prepare transition to dynamic progress update 2018-10-06 18:26:57 -04:00
Alayan
b3b9f20592 Add game mode counters, document existing counters, and some fixes 2018-10-06 18:26:57 -04:00
Alayan
358c15b7f9 Make Arch Enemy use a generic counter, fix some wrong enum names 2018-10-06 18:26:57 -04:00
Alayan
2b49f0da20 Simplify achievement data enum names 2018-10-06 18:26:57 -04:00
Alayan
a90890d0b3 Move end-race achievement counter updates to a dedicated function 2018-10-06 18:26:57 -04:00
Alayan
43dd2f2f82 Make Marathoner use generic counters. Fix #3176 2018-10-06 18:26:57 -04:00
Alayan
bdbd66dbb7 Make Mosquito Hunter use a generic counter 2018-10-06 18:26:57 -04:00
Alayan
5144984fd5 Remove leftover include 2018-10-06 18:26:57 -04:00
Alayan
05df0d6297 Make Strike use a generic counter 2018-10-06 18:26:57 -04:00
Alayan
d008da5548 Keep track of how many time each difficulty is used in linear races 2018-10-06 18:26:57 -04:00
Alayan
edc683f720 Use a parametrizable function instead of multiple functions ; track more values 2018-10-06 18:26:57 -04:00
Alayan
19d594b465 Make Christoffel Columbus use per-track generic counters 2018-10-06 18:26:57 -04:00
Alayan
5405933e2e Make Skid-Row use a generic counter 2018-10-06 18:26:57 -04:00
Alayan
09f5376312 Make Banana Lover use a generic counter 2018-10-06 18:26:57 -04:00
Alayan
3427d21939 Fix #3483 2018-10-06 18:26:57 -04:00
Alayan
a32834e518 Make Powerup Love use a generic counter 2018-10-06 18:26:57 -04:00
Alayan
69ee99c495 Add a new Beyond Luck achievement ; make Unstoppable more challenging. 2018-10-06 18:26:57 -04:00
Alayan
70eb11de4f Reimplement Gold Driver and Unstoppable by gathering data in general counters. Also fix #3487 2018-10-06 18:26:57 -04:00
Deve
41ea4b1997 Draw local players icons above AI/remote players on the minimap. 2018-10-06 22:31:37 +02:00
Alayan
3c98c35439 Merge branch 'master' of https://github.com/supertuxkart/stk-code 2018-10-06 15:58:38 +02:00
Alayan
bf4dd67562 Improve a formulation 2018-10-06 15:58:02 +02:00
hiker
0b3d343585 Removed unnecessary code. 2018-10-06 12:30:35 +10:00
hiker
796ff5b361 Fixed item collection in networking. 2018-10-06 12:26:55 +10:00
hiker
df4ad4ab63 Added missing 'virtual'. 2018-10-06 12:26:10 +10:00
Deve
055a14bbaf Use team color to highlight karts on minimap in soccer/ctf 2018-10-05 23:42:26 +02:00
Alayan
b7b2a60eff Allow to set custom colored border through ScalableFonts 2018-10-05 20:21:57 +02:00
Alayan
1b17879313 Add functions and variables to allow custom-colored text outlines 2018-10-05 20:08:47 +02:00
Alayan
1202a34a59 Add black borders to most text in the race UI 2018-10-05 19:47:44 +02:00
Benau
697af6b08c Fix server only build 2018-10-06 01:12:39 +08:00
Alayan
68916b0adf Add the possibility to exclude owned projectiles from the nearby projectiles count 2018-10-05 17:50:43 +02:00
Alayan
6445fb059d Split DrawGlobalPlayerIcons 2018-10-05 17:42:54 +02:00
Deve
0c5b1a3999 Always show current reolution in options 2018-10-04 21:55:00 +02:00
Deve
dc428b94cf Add a script that allows to build all android packages with single command 2018-10-04 20:48:42 +02:00
Benau
1bb0be6a8c Fix crash for deve's soccer arena without navmesh 2018-10-05 00:58:46 +08:00
Deve
fedf93c928 Tweak range of touch device gui scale 2018-10-03 21:13:01 +02:00
Benau
693a3bc954 Allow flag to be placed on driveable object (for ctf temple) 2018-10-04 01:06:58 +08:00
hiker
d98419a5f8 Oops - forgot to update server version number as well. 2018-10-03 17:55:58 +10:00
hiker
4c4c7889a0 Increase server protocol version to avoid crashes with old server. 2018-10-03 16:53:27 +10:00
hiker
44706a5066 Re-enable bubble gum and switch in network games. 2018-10-03 12:20:11 +10:00
hiker
438a2dd6a3 Fixed release build. 2018-10-03 12:07:21 +10:00
hiker
35deb3970b Merge remote-tracking branch 'origin/master' into network-item-debugging 2018-10-03 10:54:14 +10:00
hiker
465df8dcac Merge branch 'network-item-debugging' of github.com:supertuxkart/stk-code into network-item-debugging 2018-10-03 10:43:40 +10:00
hiker
5143ae97ea Fixed crash in AI caused by missing virtual declarations. 2018-10-03 09:10:08 +10:00
hiker
76dc8c8763 Hopefully fixed switch in networking mode. 2018-10-03 08:51:19 +10:00
Deve
b26d8f3454 Avoid a crash when using close button in kart selection screen 2018-10-02 22:28:12 +02:00
Deve
da4f6cf8cf Fixed memory leak 2018-10-02 22:16:37 +02:00
hiker
c2d0ac4a61 Converted ItemManager to use a vector of *ItemState (instead of
*Item) for its item handling. This allows us later to use
the switch functions to work on either the current items
or on the confirmed item state (i.e. code reusage for rewind).
2018-10-02 09:05:32 +10:00
Deve
be1fab75b8 Add a margin for screenshot in better way 2018-10-01 23:27:03 +02:00
Deve
2084121405 Give more space for translations in ghost replay screen 2018-10-01 22:04:49 +02:00
Deve
53b6c0c80b Fixed checkbox in ghost replay dialog and other minor tweaks 2018-10-01 20:52:53 +02:00
Benau
a2d4763201 Hide minimap when hide all for artist debug mode 2018-09-30 16:30:27 +08:00
Benau
c8db9e2490 Restore swatter discard now in arena or soccer in network properly 2018-09-30 16:10:58 +08:00
Benau
ab94fdfceb Allow more than 1 player winning in FFA if a tie 2018-09-30 14:38:18 +08:00
Benau
6478a0714d Fix multiplayer sound keep playing 2018-09-30 14:06:40 +08:00
Benau
cb9a17563e Don't call SP::SPTextureManager::get() if not GLSL to avoid leaking 2018-09-30 13:00:24 +08:00
Benau
05e1d629ee Fix exit STK requests leak 2018-09-30 12:42:17 +08:00
Benau
6809984928 Fix #2813 2018-09-30 11:08:54 +08:00
Benau
767651124a Always specify --server-password so that empty password can disable private server 2018-09-30 01:08:46 +08:00
Deve
93298023b4 Don't display powerup count indicator after finish online race 2018-09-29 08:14:55 +02:00
Benau
a4c9a8826c Don't crash if user opened paused dialog in network when ending race 2018-09-29 14:00:54 +08:00
Deve
51c67aa1e4 Add a fallback lib path for server creation 2018-09-28 23:15:16 +02:00
Benau
e5a66cf5af Fix mingw build 2018-09-29 01:03:54 +08:00
Benau
e55ee508f8 Disable switch and bubblegum for now in network again 2018-09-29 00:24:54 +08:00
Benau
5041c6585d Allow recreation of kart animation from state if the required creation event missed 2018-09-29 00:21:25 +08:00
Benau
addcb84802 Undo to before kart animation position for item collection 2018-09-29 00:15:35 +08:00
Benau
2fafe495dd Make it consistent with attachment rewind when eating banana with bomb 2018-09-29 00:11:26 +08:00
Benau
51f8884881 Fix missing no graphics option for lan server 2018-09-29 00:03:32 +08:00
Benau
abd3a79526 Merge remote-tracking branch 'origin/network-item-debugging' 2018-09-28 23:39:04 +08:00
Benau
e7aa03f1bf Try an up-to-date current frame bone-child attachment in legacy pipeline 2018-09-28 23:33:51 +08:00
Benau
d61b74fdd4 Fix parachute rewind 2018-09-28 22:52:18 +08:00
Benau
97e5e63e7c Split plunger drawing in race GUI to update graphics
Avoid overwriting the values by rewind
2018-09-28 19:27:05 +08:00
Benau
759a1d5a33 Fix missing lookback firing for network ai 2018-09-28 18:07:54 +08:00
Benau
8efd422125 Update server version
At the moment ignore server config before final release
2018-09-28 17:41:45 +08:00
Benau
ae4ed9e2e7 Restore rubber band with hit kart and reserve mode included 2018-09-28 17:05:17 +08:00
Benau
689fab6bc8 Default lobby chat on 2018-09-28 16:04:18 +08:00
Benau
dd9bb640d1 Use the same item index for server and client
TrackObjectPresentationSound will create item trigger, when network
split screen is used it will be diverged.
2018-09-28 16:01:08 +08:00
Benau
8950354e62 Avoid using deleted end controller when rewind 2018-09-28 14:40:37 +08:00
Benau
136b649716 Fix error log encoding 2018-09-28 09:59:40 +08:00
Alayan-stk-2
60cb10e14c Make the kart classes differences in turn radius bigger
Now that the turn radius bug is fixed, these differences are more meaningful. The reference turn radius is close to the tighter numbers observed before, so this isn't actually a +15/30% to turn radius compared to previous effective numbers.

A turn radius of 19.5 at 25 of speed is still very manageable.

This doesn't preclude further tweaks in the future, once largely playtested in the beta.
2018-09-27 19:41:46 +02:00
Alayan-stk-2
f174bb63cb Merge branch 'master' into Characteristics 2018-09-27 19:31:13 +02:00
hiker
7720ab45f5 Merge pull request #3467 from supertuxkart/ConstantTurnRadius
Fix the turn radius bug
2018-09-28 01:35:38 +10:00
auria.mg
1fe8e36c97 Improve questionable text 2018-09-26 18:57:38 -04:00
Deve
c360209676 Avoid memory leaks when window is closed during the race 2018-09-26 22:34:23 +02:00
Benau
e16aa9f1ed Update string 2018-09-26 14:52:19 +08:00
Alayan
871ee40053 Merge branch 'master' of https://github.com/supertuxkart/stk-code 2018-09-25 23:50:10 +02:00
Alayan
f0d862f472 Fix lap time difference being displayed for only a few ticks 2018-09-25 23:49:58 +02:00
Alayan
091d9bf130 Fix display overlap between live difference and lap indicator at some resolutions 2018-09-25 23:10:31 +02:00
Deve
4c6af1d381 Fixed more memory leaks when closing stk server 2018-09-25 22:39:02 +02:00
Alayan
8d40a69842 Remove call to removed function 2018-09-25 20:02:23 +02:00
Alayan
69ee902327 Make hiker happy 2018-09-25 19:46:28 +02:00
Alayan
4a39813f07 Make the Cocoa Temple challenge a ghost replay challenge available from the start 2018-09-24 21:39:57 +02:00
Alayan
aa3afa7048 Add replays for a story mode replay challenge 2018-09-24 20:42:47 +02:00
Alayan
6196782420 Remove debug prints 2018-09-24 19:33:14 +02:00
Alayan
a08866f96d Fix #3271 : a kart's turn radius is independent of its length 2018-09-24 19:31:52 +02:00
Alayan
791a490e58 Fix display of very long track author names 2018-09-24 13:28:26 +02:00
Alayan
50f87e3f0f Fix even more incorrect flying 2018-09-24 13:08:55 +02:00
Alayan-stk-2
1c6890f77e Race UI improvements (#3465)
* Add a flag icon next to the lap counter

* Fix flag icon scaling across resolutions

* Add an option controlling minimap display

* Allow to display all the karts in the icon list if the minimap is hidden/on the right

* Remove useless scaling

* Fix minimap issues in splitscreen

* Align the spinners in the UI options

* Check for touch settings instead of a compile-time Android check

* Fix server-only compilation

* Make UI options checkboxes have the same size than checkboxes elsewhere

* Add translation cues for minimap options

* Don't look up icon paths every frame
2018-09-23 21:15:51 -04:00
Benau
0c3691cf18 Fix alayan crash 2018-09-24 08:38:25 +08:00
hiker
e467789e3a Fixed unused parameter. 2018-09-24 08:37:38 +10:00
Deve
2ac0e5fd07 Avoid a crash when path is empty.
Happened for me few times, but reason unknown.
2018-09-23 22:53:11 +02:00
Deve
36d1376567 Probably fixed broken music and some crashes after server close on android 2018-09-23 22:53:11 +02:00
Benau
56e9be326e Fix #3463 2018-09-23 15:26:24 +08:00
Alayan
896768ebbe Make boosted AI karts be less hindered by rubber-banding 2018-09-22 23:22:37 +02:00
Alayan
5bd37e1e2e Merge branch 'master' of https://github.com/supertuxkart/stk-code 2018-09-22 23:14:53 +02:00
Deve
0dca414e02 Fixed some memory leaks when a server is closed 2018-09-22 22:06:27 +02:00
Alayan
46c2c88461 Give a boosted AI to some AI karts in races and GP 2018-09-22 22:02:11 +02:00
Deve
c8305012f8 Make sure that m_flying is initialized when reset function is called first time during initialization. 2018-09-22 20:54:43 +02:00
Deve
8bdc45f7a3 Increase hiscore file version.
Hiscores with more than 3 entries are incompatible with older STK versions and cause a crash on startup.
2018-09-22 20:50:05 +02:00
Deve
eed9d200d3 Revert "Revert "Fixed android compilation""
This reverts commit 8f6daefc73.
2018-09-22 20:43:05 +02:00
Alayan
f60dc3ce4c Fix #3399 2018-09-22 19:15:33 +02:00
Alayan
0b7e2d35fb Fix another instance of kart flying incorrectly 2018-09-22 16:28:51 +02:00
Alayan
63a377cf0b Tell the AI to not gift free nitro cans when a switch is active 2018-09-22 16:22:52 +02:00
Alayan
c7ea40df6c Correctly wait before using a gum shield against a bomb for best AI 2018-09-22 16:06:11 +02:00
Alayan
e11f327519 Fix a crash with ghost replays 2018-09-22 15:50:05 +02:00
Alayan
4a18ac2725 Merge branch 'master' of https://github.com/supertuxkart/stk-code 2018-09-22 03:31:51 +02:00
Alayan
902e64c7f5 Redesign track info screen to work with 5 highscores, battle mode and hi-dpi 2018-09-22 03:31:07 +02:00
Alayan
82408aab2f Restore 5 highscores 2018-09-22 01:55:28 +02:00
Benau
553747237e Check for possible null m_confirmed_state 2018-09-22 00:54:37 +08:00
Benau
5f463f7f80 Enable auto server recovery for wan servers only 2018-09-21 20:37:45 +08:00
Benau
b1a535b21f Save ticks till return for eating banana with bomb 2018-09-21 20:06:47 +08:00
Benau
aa2d944813 Use setTicksForRewind for count down game timer 2018-09-21 16:13:19 +08:00
Benau
2f2a128e06 Fix missing initialized values 2018-09-21 16:12:04 +08:00
Alayan
13b3b3c2bd Remove redundancy between kart constructor and reset, reset a few more variables 2018-09-21 02:44:51 +02:00
Alayan
6dedbff1a8 Fix all known instances of kart flying due to cushioning 2018-09-20 23:56:53 +02:00
Alayan
0da04805b4 Merge branch 'master' of https://github.com/supertuxkart/stk-code 2018-09-20 22:22:56 +02:00
Alayan
961c4af662 Fix cushioning when landing on a slope, reduce needed data size 2018-09-20 22:22:23 +02:00
hiker
7cabefc8e9 Fixed incorrect bubble gum rotation prediction (because wrong time
was used when rewinding).
2018-09-20 19:30:52 +10:00
Benau
6232140689 Implement auto server recovery if connection to stk-addons is lost 2018-09-20 16:43:34 +08:00
Benau
f975e37dea Use a uniform material loading for non-glsl (for server) 2018-09-20 14:20:38 +08:00
Deve
bc675ffd81 Revert "Disconnect android player from wan race when the window is not active anymore"
This reverts commit e80e0555e1.
2018-09-19 22:06:41 +02:00
Deve
2c79b02088 Make pause button working when watching ghost replay 2018-09-19 22:06:24 +02:00
Alayan
9f3bc471d8 Specify reverse status for existing challenges 2018-09-19 18:17:36 +02:00
Alayan
6af8f70b48 Add support for challenges in reverse mode 2018-09-19 18:13:42 +02:00
Deve
63ba99457e Add a check for null when unset squash 2018-09-19 07:07:40 +02:00
Benau
951c48292a Fix #3446 2018-09-19 09:19:34 +08:00
auria.mg
afe2b6f2f4 Fix crash when searching for users fails. Does not fix the search, only fixes STK crashing when errors occur 2018-09-18 19:20:19 -04:00
Alayan
52f5562be8 Fix crash with ghost replays 2018-09-19 01:04:19 +02:00
hiker
23a82aab54 Merge remote-tracking branch 'origin/master' into network-item-debugging 2018-09-19 08:33:42 +10:00
Deve
402cbea3d6 Restore wheels size when game is restarted.
Fixes #3455
2018-09-19 00:14:53 +02:00
Deve
e80e0555e1 Disconnect android player from wan race when the window is not active anymore 2018-09-18 23:05:54 +02:00
Deve
18c108c99a Add some commandline params 2018-09-18 23:05:54 +02:00
Alayan
eb274e01d4 Adjust value to cushion most small jumps 2018-09-18 20:32:13 +02:00
Alayan
6145aff895 Use height data to cushion only close to the ground and adjust impulse strength 2018-09-18 20:01:59 +02:00
Alayan
6af07fac77 Don't assume number of physics ticks per second 2018-09-18 15:56:09 +02:00
Alayan-stk-2
6b4ebc2148 Minor style fixes 2018-09-18 13:52:08 +02:00
Alayan
d39b2a0620 Move special bomb steering in handleSteering 2018-09-18 13:19:14 +02:00
Alayan
ab1e86d796 Move handleNitroAndZipper in handleAcceleration 2018-09-18 12:40:29 +02:00
Alayan
1f514727d5 Change handleAcceleration into handleAccelerationAndBraking 2018-09-18 12:00:02 +02:00
Benau
07ad8977dd Use separate nettle aes context for encryption and decryption
So it can be used and validated by different threads at the same time
2018-09-18 14:25:55 +08:00
Benau
0cd8c03bcd Fix uninitialized value 2018-09-18 10:03:46 +08:00
Alayan
f0807f9c0e Move handleBraking next to handleAcceleration for easier maintenance 2018-09-18 03:40:08 +02:00
Alayan
488e53d669 Remove hardcoded number assuming tick duration 2018-09-18 03:30:31 +02:00
Alayan
c032bfe941 Remove unused findNonCrashingPointFixed 2018-09-18 03:13:55 +02:00
Deve
c2b2a57c87 Minor fix for run_server script.
Restart if known error happened and also update datetime to avoid overwriting log files.
2018-09-17 22:15:14 +02:00
Alayan
fb95e9736b Disable rubber-banding for FTL leader 2018-09-17 21:25:27 +02:00
Alayan
8271213756 Fix incorrect braking before starting line 2018-09-17 21:17:19 +02:00
Alayan
2486e72c25 Tell the FTL AI to not build up a nitro reserve for use in lap 99999 2018-09-17 20:38:48 +02:00
Alayan
1e9f175f43 Fix some identation 2018-09-17 20:26:28 +02:00
Alayan
3aa2a04197 Make the FTL leader use a boosted AI 2018-09-17 20:19:21 +02:00
Alayan
21e88698d2 Make AI kart slowdown before having finished overtaking the leader in FTL 2018-09-17 20:09:58 +02:00
Alayan-stk-2
0c353f4b49 Increase difficulty for the SuperTux challenge 2018-09-17 17:36:20 +02:00
Alayan-stk-2
7bda2d097d Clear last overworld position when switching profile 2018-09-17 17:01:59 +02:00
Alayan-stk-2
2e559aa391 Improve scotland challenge balance in expert/supertux 2018-09-17 15:48:22 +02:00
Alayan
025c60033d Reset min nitro time when no nitro and fix #3180 2018-09-17 14:40:23 +02:00
Alayan
75127fc044 Merge branch 'LockSTG' 2018-09-17 12:42:50 +02:00
Alayan
4d9407653a Fix #3383 2018-09-17 12:40:51 +02:00
hiker
23acbf5260 Fixed shaking after collecting bubble gum (caused by restoring item state
after restorint kart state - during item state restoration items can
be 'collected', which overwrites kart states values that just had been
restored).
2018-09-17 18:19:23 +10:00
Benau
dc059aa8f7 Fix attachment with swatter removing bomb animation rewind 2018-09-17 16:15:15 +08:00
Alayan
02a3de4dd8 Fix #3439 2018-09-17 03:46:20 +02:00
Alayan-stk-2
e269c5a72d Fix #3442 2018-09-17 02:32:46 +02:00
Alayan
b98024f11e Use skin-specific credit color. Fix #3433 2018-09-17 01:53:07 +02:00
Alayan
96c5293021 Add credits color to the skins 2018-09-17 01:46:22 +02:00
Alayan
137a7e671f Move online screns to their own folders to reduce clutter 2018-09-16 23:55:40 +02:00
Alayan
4d68d324a2 Move options screns to their own folder to reduce clutter 2018-09-16 23:35:40 +02:00
Deve
2cb9f1e714 Fixed compilation 2018-09-16 23:11:20 +02:00
Deve
fc04eeade7 Merge remote-tracking branch 'Alayan/DisableKeyboardConfig' 2018-09-16 23:06:54 +02:00
Alayan-stk-2
073f337415 Allow word wrap for ghost replay dialog buttons 2018-09-16 17:29:55 +02:00
Benau
7c53a5556c Single CPU core usage as shown in top 2018-09-16 23:23:23 +08:00
Alayan
152c695a37 Remove unused GUI files 2018-09-16 17:02:38 +02:00
Alayan
085e3f8eae Merge branch 'master' of https://github.com/supertuxkart/stk-code into GUI_Folders 2018-09-16 16:44:31 +02:00
Alayan
03839b7cfe Move GUI files to categorized folders and update all references 2018-09-16 16:37:42 +02:00
Benau
d663bb2caf Update german translation by Wuzzy 2018-09-16 22:01:08 +08:00
Benau
68d6326348 Update NETWORKING.md for network AI tester 2018-09-16 20:48:51 +08:00
Benau
f1057726ad Log peer address who formed bad message 2018-09-16 19:48:27 +08:00
Benau
8cb5e43bad Allow using --auto-connect with network ai tester 2018-09-16 19:19:42 +08:00
Benau
b3bffacb40 Add network ai tester for linear race 2018-09-16 17:58:00 +08:00
Benau
2c35b0f03c Allow using --connect-now with wan server with server-id 2018-09-16 12:26:34 +08:00
Alayan-stk-2
07e681e927 Minor improvement to the help text 2018-09-16 05:42:39 +02:00
Alayan-stk-2
21857327d4 Improvement for #3441 2018-09-16 04:53:39 +02:00
Alayan-stk-2
1fc58ef445 Fix #3434 2018-09-16 03:37:26 +02:00
Alayan-stk-2
4bbc494de4 Fix #3445 2018-09-16 01:50:39 +02:00
Alayan-stk-2
c22403f080 Fix #3448 2018-09-16 01:36:43 +02:00
Alayan-stk-2
ccdf0098a6 Fix #3447 2018-09-16 00:41:11 +02:00
Deve
35cc6930ab Make button labels in user screen a bit shorter 2018-09-15 23:50:27 +02:00
Deve
2026eb6a69 Ghost replay tables are quite complex, so give them a context for more flexible translations 2018-09-15 23:45:27 +02:00
Deve
e84ac0da7c Avoid a crash when node is null 2018-09-15 23:31:22 +02:00
Alayan-stk-2
02732e78be Make minigolf expert/supertux challenge easier
The grass texture slowdown working again makes this challenge several seconds slower than in 0.9.3 ; and the previous balancing change for supertux ended up overshooting.

The additional AI karts also make it more challenging than in 0.9.3, as it's frequent to be hit by something in the 1st lap.
2018-09-15 21:09:14 +02:00
Alayan-stk-2
9a82e168de Make sure there is always one enabled keyboard config 2018-09-15 19:33:29 +02:00
Alayan-stk-2
15bc188aa3 Add getActiveKeyboardAmount function 2018-09-15 19:31:56 +02:00
Benau
32d192460e Update translation from transifex 2018-09-16 01:24:22 +08:00
Alayan-stk-2
3c89e20733 Add support for disabled keyboard config icon 2018-09-15 18:58:22 +02:00
Alayan-stk-2
d6fd2df8f5 Add new icon for disabled keyboard configs 2018-09-15 18:57:29 +02:00
Alayan-stk-2
88d0313230 Fix comment 2018-09-15 18:30:01 +02:00
Benau
b400d56585 Don't use static in unicode conversion due to multiple threads usage now 2018-09-16 00:29:59 +08:00
Alayan-stk-2
19ba899afd Allow to disable a keyboard configuration without deleting it 2018-09-15 18:28:31 +02:00
Alayan-stk-2
78e592bfbf Add disable button 2018-09-15 18:27:49 +02:00
Benau
0c7475c6cf Handle linebreaking from motd if needed 2018-09-15 23:06:28 +08:00
Benau
28511c597e Remove compiler warning 2018-09-15 22:43:35 +08:00
Benau
211def77a6 Make sure no IV is duplicated and allow using 32bit counter completely 2018-09-15 16:36:01 +08:00
Benau
bbb618fe6b Write to a dummy blocks instead of out of bounds pointer for AES 2018-09-15 16:09:49 +08:00
Benau
4cf9542be1 Add user version in string to connection request 2018-09-15 15:57:27 +08:00
Benau
57d4017cc6 Fix documentation 2018-09-15 15:23:06 +08:00
Benau
e5f5a1c04d Use a more server owner friendly value instead of threshold 2018-09-15 15:10:03 +08:00
Benau
4c6d535f00 Compress kart control action 2018-09-15 14:25:38 +08:00
Benau
01b95d873e Header clean up 2018-09-15 11:18:30 +08:00
Benau
f547753aaa Add seamless endcontroller transition in network 2018-09-15 09:43:37 +08:00
Alayan-stk-2
505a67a372 More improvements for #3430
Now that the list is wider, time and version can fit with a smaller place, leaving more for the rest.
2018-09-15 03:32:51 +02:00
Alayan-stk-2
4c8d1b6b67 Move the track screenshot down to help with #3430 2018-09-15 03:04:35 +02:00
Benau
c10b40fb7d Use a special detail map shader for normal map (later) 2018-09-14 22:51:44 +08:00
Benau
b613c2c989 Make new startup boost and penalty working in network 2018-09-14 22:23:37 +08:00
Benau
641998be69 Move startup boost and penalty handling to set phase for local games 2018-09-14 22:03:02 +08:00
Benau
83a456e835 Add kart id checking so that only peer with correct kart can control 2018-09-14 21:42:35 +08:00
Benau
a53307cc14 Reset only physical objects in onGo 2018-09-14 13:43:44 +08:00
Benau
ea3215aad6 Use "and" search for server 2018-09-14 09:06:03 +08:00
Deve
99a4fac85e Fixed a crash when server was created in GUI.
Regression since 7d561de3fb
2018-09-13 21:07:19 +02:00
Alayan-stk-2
0fd62c1ca7 Add Super Tux time requirements for challenges lacking it
The AI is not yet good enough to be the sole factor ; the time requirement is necessary to not have these Super Tux challenges much easier than others.
2018-09-13 16:27:17 +02:00
Alayan-stk-2
d7b6e4c339 More consistent balance in time requirements
Time-trial records give a good idea of the relative length of different tracks. I tried to keep a similar balance to the one reached in Cornfield Crossing's challenge.
2018-09-13 16:17:35 +02:00
Alayan-stk-2
0b5d390c48 Switch to position requirements for intermediate/novice difficulties
Finishing first should always result in challenge success in low difficulties, and the AI balancing should be more effective than per-challenge tweaking in achieving consistent difficulty across challenges.
2018-09-13 16:03:20 +02:00
Alayan-stk-2
3616e93201 Switch to position requirement for low difficulties
The AI is slower than the required times in this challenge, so it makes it easier.

The previous times were, without nitro/skidding, as hard if not harder than the expert challenge.
2018-09-13 15:51:33 +02:00
Alayan-stk-2
3d14ae5bf1 Move repeated code to a function 2018-09-13 15:14:56 +02:00
Alayan-stk-2
b413d9ef24 Remove useless time requirements
Even with max rubberbanding effect (staying purposefully way behind), the first AI kart finishes around or under the required time.
2018-09-13 15:06:07 +02:00
Benau
803fae5320 Use a correct way to decrypt GCM with openssl
From http://patches.opendataplane.org/patch/7237/, use the correct
order (set tag, than update, and than final)
2018-09-13 16:36:35 +08:00
Benau
c8d56cc2b9 Use absolute path of cert location 2018-09-13 16:29:50 +08:00
Benau
f0a4b707ef Print incorrect packet 2018-09-13 10:46:54 +08:00
Benau
3b070cdaad Fix ranked server player reconnection handling 2018-09-13 10:46:37 +08:00
hiker
1291d2c0d3 Fix crash in case of multiple item collection and different
item ids on client and server.
2018-09-13 11:29:40 +10:00
Alayan-stk-2
323af45fbd Change profile folder to avoid compatibilities issues
As discussed on IRC with Auria.

This removes the several issues already noticed when switching between 0.9.3 and git versions (forgotten challenges and settings ; and more recently a crash with highscores).

Reminder for git users : you can migrate your data by copying it from the previous folder to the new one, so you won't have to redo your settings/profiles.
2018-09-13 02:19:00 +02:00
Alayan-stk-2
8bad74bfc8 Merge branch 'master' into Characteristics 2018-09-13 01:55:06 +02:00
QwertyChouskie
6dab3b4e03 Fix centering in race paused dialog (#3429) 2018-09-13 01:31:30 +02:00
Deve
0ff4d3d286 Update pot file to fix a typo 2018-09-12 22:58:06 +02:00
Deve
127c91d825 Minor fix for update_pot.
The "supertuxkart-assets" is supported everywhere else.
2018-09-12 22:53:58 +02:00
Deve
b911a31bf2 Quick fix for run_server script 2018-09-12 22:08:38 +02:00
Benau
60157a33c4 Avoid allocating large memory for m_gpu_times in no graphics 2018-09-13 01:33:29 +08:00
Benau
7d561de3fb Disable freetype in no graphics 2018-09-13 01:11:17 +08:00
Benau
930115a449 Disable addons and news manager in no graphics 2018-09-13 00:58:45 +08:00
Benau
e5aa172d00 Clear player chosen kart each race if not grand prix 2018-09-13 00:40:55 +08:00
Benau
114dca1733 Fix typo 2018-09-13 00:12:32 +08:00
Benau
1b0f5be495 Pre-upload powerup spm to prevent hangs when using item 2018-09-12 16:34:38 +08:00
Benau
f39946347f Try to free vertex buffer memory if possible 2018-09-12 16:29:41 +08:00
Benau
37cf5ac459 Add delete vertex buffer to save memory for no graphics 2018-09-12 15:30:57 +08:00
Benau
930c2c004d Always disable network console in child process server 2018-09-12 10:28:02 +08:00
Benau
f5ba14fc54 Fix typo 2018-09-12 10:07:15 +08:00
Benau
a51c88febe Update translation which is completed 2018-09-12 09:42:42 +08:00
Benau
e64fd7a47d Show help in lobby only if connection accepted 2018-09-12 09:30:43 +08:00
Deve
31d425795c Bubblegum may be used up only if switch was not used 2018-09-11 22:29:55 +02:00
Deve
3ebc68ff10 Fixed glow when switch is used 2018-09-11 22:02:06 +02:00
Benau
29a7be5531 Add server hosting documentation 2018-09-12 02:07:34 +08:00
Benau
6203b415e2 Set log filename with server config without .xml suffix + .log 2018-09-12 00:55:34 +08:00
Benau
8f8d5f8814 Use time-played from database 2018-09-11 23:15:08 +08:00
Benau
8ad3cbdff9 Save server config when exit server lobby 2018-09-11 21:08:18 +08:00
Benau
c778a22a3a Use a correct xml syntax for map config 2018-09-11 20:57:19 +08:00
Benau
300cdff07f Disable showing dialog in server for news 2018-09-11 16:04:10 +08:00
Benau
3337f41529 Fix ServerConfig and STKConfig dependencies 2018-09-11 15:35:24 +08:00
Benau
1c94cd6880 Avoid spamming with connect to peer message with localhost 2018-09-11 15:23:45 +08:00
Benau
ade3551c16 Disable message queue in no graphics too 2018-09-11 14:35:07 +08:00
Benau
8bb2eeb629 Always disable online user polling for wan server
With d6955f03fcbc21cb4cd9332d0d528063ad9a0f60 in stk-addons it is no
longer necessary
2018-09-11 14:31:43 +08:00
Benau
612e8bdaf6 Keep http header of curl_slist* until the exit of stk to prevent memory leak 2018-09-11 14:24:59 +08:00
Benau
dd15947aa1 Use ServerConfig for setup server 2018-09-11 14:06:30 +08:00
Benau
0d93fe427e Initial work on server_config.xml 2018-09-11 10:13:33 +08:00
Deve
4262418532 Don't report stats for server_only/no-graphics.
It may cause a crash on some devices eg. when glGetString returns NULL.
2018-09-09 23:58:26 +02:00
Benau
ba37513f7a Fix detail map on normal map with skinned mesh shader 2018-09-09 00:52:00 +08:00
samuncle
ed47b78d26 Merge branch 'master' of https://github.com/supertuxkart/stk-code 2018-09-08 08:50:22 +02:00
Benau
81f2a9e99d Implement CIDR banning with online id split 2018-09-07 23:55:01 +08:00
Benau
3729f27de0 Update stun servers list with not working one removed 2018-09-07 11:39:16 +08:00
Deve
9cf42302a6 Fixed compilation with older nettle versions 2018-09-07 00:26:18 +02:00
Deve
8e29c189c4 Don't segfault if null device creation failed 2018-09-06 22:56:55 +02:00
Deve
e3b3a369d0 Allow to choose monitor with environment variable 2018-09-06 22:06:40 +02:00
Benau
88e1733d50 Simplify STUN and LAN connection
Using enet intercept directly
2018-09-07 01:40:32 +08:00
Benau
3cdc1b6ddd Fix crash if server lobby is NULL 2018-09-06 08:41:13 +08:00
Benau
a5c9bbd3ef Get private port and server id from file 2018-09-06 08:33:11 +08:00
Deve
a60a84b05a Make sure that dialog window and screen keyboard are deleted before changing screen in lobby 2018-09-05 23:06:29 +02:00
Benau
d0b24487eb Allow search with unicode characters and space 2018-09-05 13:37:30 +08:00
Benau
30028cc330 Implement text searcher in server selection 2018-09-05 12:19:11 +08:00
Benau
1577c1e61b Update strings 2018-09-05 08:24:38 +08:00
Deve
4ec7f45e56 Avoid a crash when hiscore has too many entries 2018-09-04 23:48:49 +02:00
Deve
bcb7e48fb1 Some tweaks in track info screen.
Use the same layout for gp info screen.
2018-09-04 23:24:47 +02:00
Deve
0f1f876874 Revert "Change highscore limit from 3 to 5 (#3417)"
This reverts commit 84359ad7da.

It broke "Max players supported" text in arena info screen. It also doesn't work well for hidpi_enabled property that is used on android. Additionally it causes incompatibility with older STK versions (STK 0.9.3 crashes when there is more than 3 entries in hiscore.xml).

Fixes #3424
Fixes #3425
2018-09-04 21:31:27 +02:00
Deve
8f6daefc73 Revert "Fixed android compilation"
This reverts commit 399b89730d.
2018-09-04 21:31:27 +02:00
Benau
c59a11c85c Skip waiting players in network item manager 2018-09-05 01:59:40 +08:00
Benau
0b19ee77fa Use xmlDecode for server name 2018-09-05 01:52:51 +08:00
Benau
bb61c3425a Show current players on server in server info dialog 2018-09-05 01:32:44 +08:00
hiker
9211b26251 Fixed bubble gum collection in networking (at least the problem
that you would on the client collect the gum you just dropped).
2018-09-04 18:32:10 +10:00
Benau
24b3e09429 Disable message queue in server only 2018-09-04 14:45:39 +08:00
Benau
c8a42fd355 Show friends currently joined servers when polling user profile 2018-09-04 14:36:48 +08:00
Benau
83d49389d6 Use new syntax for server xml 2018-09-04 07:37:21 +08:00
Benau
a9ecebfbc8 Merge remote-tracking branch 'origin/master' into network_next 2018-09-04 07:26:02 +08:00
Deve
cdeb70dbf4 Some fixes for soccer setup screen 2018-09-04 00:33:34 +02:00
Deve
674397e648 Minor fixes for low resolutions 2018-09-04 00:33:34 +02:00
Deve
6bd5b5276a Make GP editor GUI working better on different resolutions 2018-09-04 00:33:34 +02:00
hiker
5955166931 Try to fix that a client collects its own bubble gum in case of
a rewind.
2018-09-03 18:21:03 +10:00
Benau
65d2c0fc28 Fix memory leak 2018-09-03 14:21:44 +08:00
hiker
3d34c2893b Merge branch 'master' of github.com:supertuxkart/stk-code 2018-09-03 10:13:01 +10:00
hiker
03c003b68d First fix for bubble bum support in networking (and some documentation
updates).
2018-09-03 10:08:33 +10:00
Deve
5a82c6b537 Slightly increase a size of some gui elements. 2018-09-02 22:53:06 +02:00
Benau
e2eed9de88 Allow to keep the server connection for clients when polling 2018-09-03 00:48:00 +08:00
Deve
a9793a10a0 Better fix for legacy pipeline 2018-09-01 23:15:05 +02:00
Benau
0878e59794 Fix #3421 with settings in user config (default off) 2018-09-01 14:57:38 +08:00
Benau
45e20e5a9a Fix compiler warning 2018-09-01 09:39:30 +08:00
Benau
823b2a6f05 Update string 2018-09-01 09:39:16 +08:00
Benau
478f9a42a9 Use better english 2018-09-01 09:32:33 +08:00
Deve
26d9de4262 Fixed legacy pipeline 2018-08-31 22:33:55 +02:00
Deve
3a6cc08596 Make items in server selection list slightly bigger 2018-08-31 21:47:03 +02:00
Benau
b4d9b43a52 Use Nettle in linux if found 2018-09-01 01:05:22 +08:00
Benau
8873013911 Move base/decode64 to crypto class 2018-08-31 19:30:25 +08:00
Benau
7fe6023e4f Use current team info to determine next player team 2018-08-31 19:00:14 +08:00
Benau
15853c4e32 Fix #3418 2018-08-31 17:40:26 +08:00
Benau
2199679ac2 Add support for joining server with ongoing game 2018-08-31 16:27:32 +08:00
Deve
8a579d9542 Ignore mouse clicks that were made directly on ribbon toolbar instead of child elements 2018-08-31 01:29:17 +02:00
Deve
399b89730d Fixed android compilation 2018-08-31 00:50:44 +02:00
Alayan-stk-2
46064d5c52 Give more space for button labels 2018-08-30 19:54:43 +02:00
Liam Middlebrook
0c4852b05c Add CLI option for setting random seed (#3419)
This will allow for deterministic runs with the profiling options.
2018-08-30 14:04:21 +02:00
Alayan-stk-2
ad68f5c5ac Fix #3415 2018-08-30 05:37:07 +02:00
Alayan-stk-2
84359ad7da Change highscore limit from 3 to 5 (#3417)
* Update to support 5 highscores

* Support 5 highscores in the UI

* Save up to 5 highscores instead of 3
2018-08-29 20:32:24 -04:00
Alayan-stk-2
fb43b173d6 Don't count ghost karts for highscores (#3416)
* Add function to get the number of non-ghost karts

* remove print

* Update function call to not count ghosts

* Don't count ghost karts for highscores
2018-08-29 19:50:38 -04:00
Alayan-stk-2
8249266338 Don't remove a level 2 skid bonus when getting a level 1 (#3410) 2018-08-29 18:33:37 -04:00
Alayan-stk-2
80555f4905 Display soccer timer after a goal (#3411)
* Use shouldDrawTimer overrides for tutorial and soccer worlds

* Add isActiveRacePhase

* Update shouldDrawTimer

* Remove duplicate check

It also allows displaying time in soccer after a goal
2018-08-29 18:33:01 -04:00
Benau
279e15f894 Fix attachment for ghost karts 2018-08-30 01:42:19 +08:00
Alayan-stk-2
fe4c918f3a Fix #3403 2018-08-29 18:26:41 +02:00
Benau
4a29e46817 Remove warning for skinned mesh shader fallback
The shader will be unused anyway if there is no armature
2018-08-29 09:32:34 +08:00
Alayan-stk-2
03700acd53 Improve option text 2018-08-29 02:37:08 +02:00
Benau
809cce0c26 Fallback to default shader in case any shader is missing 2018-08-29 08:04:36 +08:00
Benau
8fc2bdcc3f Show game started info in server screen with icon 2018-08-28 14:43:48 +08:00
Benau
ca9f66a8a8 Add explanation for smooth network body class 2018-08-28 10:17:59 +08:00
Alayan-stk-2
ea25d6b7d4 Fix #3404 2018-08-28 03:18:49 +02:00
Alayan-stk-2
740786c3f4 Multiple AI levels when view is hidden by a plunger (#3407)
* Disable AI item avoidance when blocked by a plunger

* Differentiate steering under plunger by item AI level

* Variable AI slowdown under plunger
2018-08-27 20:50:47 -04:00
Alayan-stk-2
8e17965465 Add default 1280x720 resolution in case irrlicht don't report it (#3405) 2018-08-27 19:31:21 -04:00
Alayan-stk-2
ed8b1fc185 Fix egg hunt finish time (#3402)
* Fix #3264

* Fix the fix
2018-08-27 18:44:40 -04:00
scootergrisen
d94383e307 Change multiplayer race to multiplayer (#3401)
I think its called multiplayer in the main menu without race.
2018-08-27 18:42:07 -04:00
Alayan-stk-2
658e091ea3 Fix list headers not being aligned with cells (#3400) 2018-08-27 18:41:36 -04:00
Benau
54bac1bf83 Fix compiler warnings 2018-08-28 01:54:25 +08:00
Benau
61e37bc60f Use zero for unused values in vote for FFA and CTF 2018-08-27 15:41:15 +08:00
Benau
cbaa06d952 Discard resend packet due to packet loss and adjust tolerance 2018-08-27 14:32:05 +08:00
Benau
732fd7a4c9 Don't show timer warning if voting timeout is not default 2018-08-27 13:49:52 +08:00
Benau
0f39add432 Convert time-related code in network to 64bit to avoid overflow 2018-08-27 13:49:11 +08:00
Benau
e5925a53b7 Use the network timer synchronizer to start game 2018-08-27 09:16:35 +08:00
auria.mg
817b576399 Fix crash when leaving ghost replay screen 2018-08-26 21:07:56 -04:00
auria.mg
418901b0de Fix List widget rendering glitch 2018-08-26 21:07:02 -04:00
hiker
b3af6a0473 Fixed compiler warnings. 2018-08-27 08:53:58 +10:00
Deve
94400b12d6 Set multitouch device scale depending on actual screen size 2018-08-25 23:42:05 +02:00
Alayan-stk-2
4484bd961a Add kart icons to the ghost replay list (#3392)
* Add a hide multiplayer replays checkbox

* Hide player number column ; add kart icon column

Enabling the icon display creates issues in the list widget layout, however.

* Fix formatting issue when an icon is displayed in only some cells

* Display "?" icon when kart model is unknown

This can happen with uninstalled addons, old replays with removed official karts, etc

* Add helper functions for icons in replay info dialog

* Add kart icons to replay info dialog

* Delete m_icon_bank in tearDown
2018-08-24 19:34:42 -04:00
Deve
38ed061d71 Fixed up/down button for inverted buttons 2018-08-25 00:45:37 +02:00
Deve
2beca69f25 Use slightly bigger buttons for multitouch gui by default 2018-08-25 00:21:46 +02:00
Deve
9d3c9f8f0d Use smaller margin for up/down button 2018-08-25 00:11:05 +02:00
Deve
19ad3df8fa Revert a workaround for 32bit angelscript compilation.
It's unclear which gcc versions are affected.
2018-08-24 23:25:59 +02:00
Deve
7738eb7899 Fixed compilation with older gcc 2018-08-24 22:59:46 +02:00
Deve
8b2a40e914 Fixed compilation 2018-08-24 03:27:13 +02:00
Deve
ad8b30b5d3 Recreate libchildprocess after apk upgrade also when device has non-typical internal data dir 2018-08-23 23:08:27 +02:00
Benau
35b167a824 Add network timer synchronizer 2018-08-23 16:11:05 +08:00
Benau
7b646dd2cb Add timer synchronization to config and adjust for CTF 2018-08-23 15:07:40 +08:00
Benau
1992177205 Add network timer in main loop 2018-08-23 14:40:17 +08:00
Benau
9e500751a1 Add 64bit unsigned integer handling in network string 2018-08-23 14:35:18 +08:00
Benau
abc93beedf Add c++11 chrono timer handling 2018-08-23 14:34:56 +08:00
Deve
7e7a23854f Use standard data dir location if possible 2018-08-23 07:16:16 +02:00
Benau
8363dd42d3 Fix server owner name sorting 2018-08-23 09:01:11 +08:00
Benau
fc68532f38 Update supertuxkart.pot 2018-08-23 07:50:39 +08:00
Benau
bc83e181ff Remove more space before ? 2018-08-23 07:48:45 +08:00
Alayan-stk-2
024e17aa97 Display time-trial and egg hunt times up to the ms (#3391)
* Add function to get time display precision for current race mode

* Display time-trials times and highscores up to the ms

* Add comment
2018-08-22 19:36:21 -04:00
Deve
2ac8387761 Read data path from ApplicationInfo structure instead of hardcoded /data/data/... 2018-08-23 00:21:20 +02:00
Deve
9908b83f05 Fixed random kart in overworld 2018-08-22 21:10:28 +02:00
Deve
4515038302 Fixed compilation.
Now it's added as IRR_KEY_OEM_*
2018-08-21 22:27:20 +02:00
Deve
66548d68a9 Add some missing key names 2018-08-21 22:01:17 +02:00
Deve
54c9fb97fa Use higher values as a fallback for unknown keycodes on android 2018-08-21 21:36:39 +02:00
Deve
ba6bbd4133 More key codes for keyboard on android 2018-08-21 21:18:35 +02:00
Benau
c67290a262 Sort code files too according to name, fix some spaces before ! 2018-08-21 13:34:27 +08:00
Benau
70e393c93a Update supertuxkart.pot 2018-08-21 09:53:32 +08:00
Benau
d984409c6b Remove --online and clarify global networking 2018-08-21 09:52:54 +08:00
Benau
1610158405 Use sort -n to maintain a constant file order 2018-08-21 09:50:28 +08:00
Alayan-stk-2
dc43e3d5b2 Assign kart type to karts not having a valid one (#3385)
* Fix #3375

* Remove debug print

* Don't clear the list of kart types when changing resolution
2018-08-20 20:52:10 -04:00
Alayan-stk-2
8039a18aec Fix #2776 (#3386) 2018-08-20 20:51:04 -04:00
Deve
07fd42ee3c Add support for unicode characters for hardware keyboard on android 2018-08-20 23:34:51 +02:00
Benau
11bb2f3b0a Always call kartHit
CTF map can be used without arena, and linear race mode will
override kartHit to do nothing anyway
2018-08-21 01:49:59 +08:00
Benau
73ac4f165b Add indication for collected flags in GUI and map 2018-08-21 01:31:49 +08:00
Benau
1becb50cf8 Use reset function from powerup 2018-08-21 00:17:30 +08:00
Benau
7ad349a7ed Implement auto flag returning after some timeout 2018-08-20 16:19:32 +08:00
Benau
f48491c279 Make sure all karts has the same position before go phase 2018-08-20 15:40:29 +08:00
Benau
2fa233179c Remember num laps only in race mode 2018-08-20 15:14:08 +08:00
Benau
58c55a3b30 Don't recreate animation if exists already 2018-08-20 14:34:17 +08:00
Benau
552028e791 Put the kart back to its own flag base like rescue if direct hit in CTF 2018-08-20 14:33:17 +08:00
Benau
d885a87600 Remove unused code 2018-08-20 13:17:04 +08:00
Benau
124324a133 Clear powerups when rescue or direct hit in CTF 2018-08-20 13:03:20 +08:00
Benau
eca9ffb508 Scale the timer according to m_end_ticks told by server if necessary 2018-08-20 11:39:31 +08:00
Deve
1e0a4dc1aa Delete old libchildprocess after apk upgrade 2018-08-19 21:51:15 +02:00
Magne Djupvik
9cf59a4dd0 Removed IRC announcements for AppVeyor and Travis since we now have our own bot to do the announcements. 2018-08-19 14:40:21 +02:00
Benau
2307005159 Add end ticks handling to kart animation 2018-08-19 16:27:42 +08:00
Benau
7970d138e5 Fix flag returning 2018-08-19 14:30:00 +08:00
Alayan-stk-2
da2294d8ac Fix #3306 (#3384) 2018-08-18 21:32:05 -04:00
Alayan-stk-2
926ad522ce Don't trigger eventCallback when moving to the other arrow of a spinner (#3380) 2018-08-18 18:48:23 -04:00
Alayan-stk-2
dac94fad57 Changelog additions (#3377)
* Remove a duplicate mention of deveee ; add Fantasmos and QwertyChouskie

Fantasmos has contributed :
- Illimited splitscreen multiplayer (involves also race UI improvements in local multiplayer)
- Flashing bubble gum before expriation
- Crash sounds changing depending on speed/direction
- Better rescue
- Misc fixes

QwertyChouskie has contributed :
- New skidding particles
- Misc. fixes and improvements

* Add most of the significant changes (for finished features) since 0.9.3 to the changelog

* Include two more changes for the 0.9.3 version

* Add a few items, clearly separate track/modelling changes

Also, each new track get one line of changelog. Putting two on the same line vastly underestimate the importance of such a change. This also make it easier to mention removed/replaced tracks.

The changelog should not be shortened at all costs ; rather, it should be reasonably complete and not shy from using more lines as a visual cue when appropriate.

* Add kart and tracks subsection, improve changelog organization for 0.7.x versions

* More sorting for 0.6.x releases

* Improve info on track changes in 0.4/0.5

* Add android input improvements to the changelog

* Fix typo

* Remove incomplete name change info
2018-08-18 18:47:30 -04:00
Deve
dd7380f569 Fixed server_only compilation 2018-08-19 00:19:31 +02:00
Deve
3fe2340628 Use --no-sound for created server 2018-08-18 23:34:54 +02:00
Deve
9b9785e8ec Add a possibility to disable sound in commandline 2018-08-18 23:34:54 +02:00
Benau
db36ee6df6 Handle controller the last to avoid slow PC sending actions too late 2018-08-18 12:49:31 +08:00
Benau
8b3772470a End CTF early if no red / blue players connected 2018-08-18 12:08:12 +08:00
Deve
15a3be2dc1 Avoid invalid memory access in child process on Android 2018-08-17 23:40:39 +02:00
Deve
474a243890 Enable server creation on Android 2018-08-17 22:36:56 +02:00
Deve
d04ff88a5e Fixed one more bug with SeparateProcess on Android 2018-08-17 22:36:39 +02:00
Benau
df69e7f6b6 Implement capture and return of flags 2018-08-18 01:05:00 +08:00
Benau
f54c1eb2b6 Merge remote-tracking branch 'origin/network-debugging' 2018-08-17 18:19:44 +08:00
Benau
8e9d42baf1 Fix end controller crash if using CTF with DriveGraph 2018-08-17 17:10:27 +08:00
Benau
afe5bc2a16 Fix isRaceOver in CTF 2018-08-17 16:46:56 +08:00
hiker
942718a442 Fixed physics differences based on setting the restitution in
case of a rewind based on the wrong (old) speed.
2018-08-17 17:46:27 +10:00
Benau
5104ffe0eb Remove unneeded . for fetching ranking message 2018-08-17 14:08:42 +08:00
Benau
4831caac77 Tell user that player name is clickable in lobby 2018-08-17 13:45:38 +08:00
Benau
9905ebe09d Add the required GUI code for CTF 2018-08-17 12:54:38 +08:00
Deve
acce57cf31 Add a script for easier managing STK servers 2018-08-16 22:30:15 +02:00
Deve
d2a28f18f7 Fixed a crash with --no-graphics 2018-08-16 22:30:15 +02:00
Deve
80fd62c7d8 More fixes for global_android_app 2018-08-16 22:30:15 +02:00
Benau
a2af7127e7 Reset the font scale after drawing with it 2018-08-16 15:25:58 +08:00
Benau
1d87f9a104 Add red and blue flag svg icon in gui 2018-08-16 14:55:41 +08:00
Deve
ecc5aaf869 Fixed some crashes 2018-08-15 23:53:14 +02:00
Deve
b5e4275f87 Don't crash if separate process creation failed 2018-08-15 22:11:59 +02:00
Deve
c43975c03a Don't kill everything if fork failed 2018-08-15 22:10:00 +02:00
Benau
73c264df94 Add support for CTF map 2018-08-16 02:09:44 +08:00
Benau
03728708cd Rename soccer team to kart team for CTF 2018-08-15 15:13:55 +08:00
Deve
19038b4600 Make SeparateProcess working on Android 2018-08-14 00:14:34 +02:00
samuncle
b8ce2da3f3 Add more utilities to default shader function + make the road shader more optimized 2018-08-13 18:46:00 +02:00
Benau
2efe3afa9f Don't undo swatter destruction which is not necessary with local event 2018-08-13 13:05:29 +08:00
hiker
da11c0266d Round the kart sizes to work around a bug that client and
server get (slightly) different kart sizes (which then affects
the physics).
2018-08-13 12:22:58 +10:00
hiker
543993a614 Merge remote-tracking branch 'origin/master' 2018-08-13 12:22:43 +10:00
hiker
514a169f5b Round the kart sizes to work around a bug that client and
server get (slightly) different kart sizes (which then affects
the physics).
2018-08-13 12:19:19 +10:00
Benau
8aab1c0a69 Use Free-For-All for name instead 2018-08-13 09:00:37 +08:00
Alayan-stk-2
41a3a1056e Improved spinner (#3374)
* Add spinner arrow focus with keyboard

* Improve keyboard navigation for spinners

* Only display active arrow if spinner is focused
2018-08-12 18:00:42 -04:00
Benau
64595a7b18 Initial work on FFA in network 2018-08-13 00:59:20 +08:00
Benau
c8c0e599db Try to remember server creation option 2018-08-12 12:46:45 +08:00
Benau
6bdec3d01a Add initial framework for FFA and CTF in network 2018-08-12 10:57:37 +08:00
Benau
b755d4d00b Replay slipstream speed increase event locally in network 2018-08-10 18:26:13 +08:00
Benau
0b0a3641f2 Update some translation for testing 2018-08-10 16:39:29 +08:00
Benau
3e95feeb0b Translate network message in main thread 2018-08-10 16:38:38 +08:00
Benau
95f3dfc01a End network game early if there is no red or blue team player 2018-08-10 15:08:19 +08:00
Alayan-stk-2
00c0fecb27 Clearer spinner arrows (#3373)
* Clearer focus on coal spinner

* Clearer focus on ocean spinner

* Clearer focus on ruby spinner
2018-08-09 19:47:55 -04:00
Benau
b4d16799e8 Fix bubblegum torque rewind in network 2018-08-08 13:20:37 +08:00
Benau
e9945a5d16 Improve undo destruction for flyable 2018-08-08 11:50:45 +08:00
Alayan-stk-2
83ff426c53 Fix default sorting 2018-08-08 03:15:47 +02:00
Alayan-stk-2
1bce7af4a1 Merge branch 'master' into Characteristics 2018-08-08 01:41:24 +02:00
Deve
3211403276 Don't use progress bar for server-only on android 2018-08-07 23:36:05 +02:00
Benau
7d17601f8a Fix 32bit random number overflow 2018-08-07 10:56:23 +08:00
Alayan-stk-2
61b56e7352 Improvements to kart selection stats bars (#3371)
* Compute acceleration efficiency instead of raw engine power

* Improve kart stats display

* Fix conflict resolution error

* Fix conflict resolution error
2018-08-06 20:50:07 -04:00
auria.mg
f1bd14c5b5 Add tooltip support on IconButtonWidget 2018-08-06 20:03:22 -04:00
Arthur-D
ae64d563e0 Update INSTALL.md (#3358)
* Update INSTALL.md

* Update INSTALL.md

Moved Git and SVN installation instructions to the wiki, and a few other small changes.
2018-08-06 19:43:52 -04:00
Deve
0f4023a39c Add a path to zlib when building curl for android 2018-08-06 23:04:40 +02:00
Benau
eef888d2b7 Fix falling effect of rescue animation in network 2018-08-07 02:36:38 +08:00
Benau
8ab2368e2d Add confirmation of kart animation for network 2018-08-07 02:26:34 +08:00
Benau
b4783d82f6 Redo the same physicial properties in server 2018-08-06 15:49:01 +08:00
Benau
93aeeda12b Fix rewind issue of rubber ball 2018-08-06 14:37:55 +08:00
Alayan-stk-2
f5a308f94b Fix list sorting (#3368)
* Manage if the sort should be default, ascending or descending from the base widget

* Update all list sorting to be in sync with the list widget sort buttons
2018-08-05 18:03:37 -04:00
Alayan-stk-2
c62828d8a7 Make parachute duration longer after feedback 2018-08-05 15:20:11 +02:00
Alayan-stk-2
053ceabb6e Fix braking with a parachute 2018-08-05 15:16:28 +02:00
Benau
c58ac1b111 Use hardcoded values for m_max_frames
Some compiler fails to load default values of UserConfigParams
during static initialization
2018-08-05 13:14:22 +08:00
Alayan-stk-2
e711f20edb Fix #3234 (#3367) 2018-08-04 21:17:38 -04:00
Alayan-stk-2
3b3990a196 Use a stable sort for replay list sorting (#3364)
* Use a stable sort for replay list sorting

* Add default multi-criteria sorting for ghost replays list
2018-08-04 20:37:29 -04:00
Benau
37f1dea312 Invert the order of saving to keep state small 2018-08-05 01:29:43 +08:00
Benau
79d1178626 Improve kart animation handling in network 2018-08-04 16:29:49 +08:00
Benau
a892988b00 Clarify password in create server screen 2018-08-04 00:32:40 +08:00
Benau
9e6ebe6097 Try to fix speedy end controller in network race 2018-08-04 00:02:52 +08:00
Benau
ce58014cab Fix compiler warning 2018-08-03 20:26:16 +08:00
Benau
4d2e79da4c Implement auto-kick high ping player (default off) 2018-08-03 19:50:49 +08:00
Benau
14475762b8 Flush all command before delete world 2018-08-03 18:36:35 +08:00
Benau
9d78173ec6 Use 32bit for server version 2018-08-03 14:01:36 +08:00
auria.mg
90073bc954 Fix karts spawning over the start line, esp. in reverse 2018-08-02 21:02:52 -04:00
Benau
8b07ec755a Disable switch and bubblegum for now in network 2018-08-03 01:28:20 +08:00
Benau
0a95900283 Clean all pending rewind event functions when exit 2018-08-03 01:26:42 +08:00
Benau
9a8d5fc667 Improve swatter in network by locally add a swat event 2018-08-02 16:37:56 +08:00
hiker
fc151bb262 Added Alayans scaled weight factors (sums now 1000 instead of 200),
which makes it easier to visualise the values.
2018-08-02 18:06:45 +10:00
hiker
b164a35d91 Fixed item distribution (signed numbers made the random number
negative, causing incorrect distribution of items).
2018-08-02 18:03:42 +10:00
hiker
0fa25db181 Removed runbber ball's time-between-ticks setting, which is not
necessary anymore after alayan's changes to item distribution.
2018-08-02 09:34:03 +10:00
hiker
46706fb109 Applied a simpler version of Alayan's change to selecting the
a random item: the computed 'random' number is now sent through
a PRNG once to avoid long sequences of picking the same item.
2018-08-01 09:55:08 +10:00
hiker
9b7f63b4ca Applied alayan's bugfix - thanks! 2018-08-01 09:55:00 +10:00
hiker
8ea8562ee6 Fixed profile mode. 2018-08-01 09:54:43 +10:00
Benau
2bb52df3c8 Split random ports (default off for server) configuration 2018-07-31 10:46:41 +08:00
Alayan-stk-2
8acd13542e Fix #3351 (#3354) 2018-07-30 20:29:31 -04:00
Benau
d203239aa2 Improve kart kart collision in network 2018-07-31 01:14:02 +08:00
Benau
4ec8a33f8c Use a correct queue to save network state 2018-07-30 19:38:10 +08:00
Benau
f49a092603 Optimize network state saving 2018-07-30 16:26:28 +08:00
Benau
a8434624a1 Optimize saving of max speed state in network 2018-07-30 15:36:16 +08:00
Benau
782e966fa5 Optimize saving of skidding state in network 2018-07-30 15:35:59 +08:00
Benau
59ebc48fe1 Don't recreate locally destroyed projectile 2018-07-30 01:56:14 +08:00
Benau
982220daf8 Fix rubber ball in network 2018-07-29 15:59:34 +08:00
Benau
3f27a04bd1 Fix plunger in network 2018-07-28 16:02:46 +08:00
Deve
fa4c640dae Merge branch 'hide-navbar' 2018-07-27 20:56:36 +02:00
Deve
52d6e93bdc Hide navbar only for android >= 4.4. 2018-07-27 20:55:31 +02:00
Deve
bd5d2f1c2a Use theme that works better with hidden navbar 2018-07-27 20:43:32 +02:00
Benau
5f90a61c3d Improve item firing sound in network 2018-07-28 01:00:41 +08:00
Benau
b0f20ca5a5 Add the remaining unreliable fragment flags 2018-07-27 22:40:28 +08:00
Benau
5d3304b1c0 Fix compiler warnings 2018-07-27 22:40:03 +08:00
Benau
d9cebc3991 Try unreliable state in network 2018-07-27 21:47:07 +08:00
hiker
4e35fe8fb8 Merge branch 'physics-tweaks' 2018-07-27 21:24:28 +10:00
Benau
f0b46d08b2 Fix swatter in network 2018-07-27 13:32:19 +08:00
Deve
ef27fdaba8 Fixed a crash on exit 2018-07-27 00:05:39 +02:00
Deve
b7a11e68ad Hide navigation bar for more comfortable playing and more screen space 2018-07-26 22:34:56 +02:00
Deve
5d9614295e Allow to handle window state events directly in main thread 2018-07-26 22:21:41 +02:00
Deve
a08cccceaa Use our copy of native app glue 2018-07-26 22:20:53 +02:00
hiker
f8acc1ad49 Added the cushioning time to the network state (to be decided later
if local state might be good enough).
2018-07-26 21:47:05 +10:00
hiker
b12205332c Changed default value of m_network_steering_reduction to -1 to make
sure we test if this value is specified in stk_config.xml.
2018-07-26 17:52:29 +10:00
hiker
84c21c4af2 Merge remote-tracking branch 'origin/master' into physics-tweaks 2018-07-26 17:47:25 +10:00
Benau
05f5663888 Save the uncompressed physics values to objects in server 2018-07-26 13:32:41 +08:00
Benau
7538f36bed Remove compiler warnings 2018-07-26 08:54:38 +08:00
hiker
007f611c10 Bugfix - NetworkPlayerController are also created on the server. 2018-07-26 10:48:06 +10:00
hiker
7ff7e049ea Merge branch 'master' of github.com:supertuxkart/stk-code 2018-07-26 10:18:30 +10:00
Benau
c69bf2b96f Split squashed timer and squashed status 2018-07-26 01:47:49 +08:00
Benau
f88ad497e9 Fix ticks time mixed up 2018-07-26 01:02:41 +08:00
Benau
c261735c2b Try to fix osx build 2018-07-25 21:42:36 +08:00
Benau
d4ca53b34e Detect incompatible binary during restore state 2018-07-25 16:15:26 +08:00
hiker
7cca534273 Added option to reduce steering of remote karts automatically each frame.
This can help in case of high latency connections and quick steering changes:
because of the high latency the steering is applied too long locally,
reducing in the other kart driving left/right way too much.
It's disabled for now (i.e. steering is multiplied by 1.0), but can be
enabled in stk_config.
2018-07-25 18:09:05 +10:00
hiker
deb6d76504 Fixed compiler warning. 2018-07-25 17:52:38 +10:00
Benau
1e53349f52 Rewind bowling and cake in network game 2018-07-25 15:33:49 +08:00
Benau
c8a50d2f49 Temporarily fix rewind queue for undo 2018-07-24 15:44:31 +08:00
Benau
4a9a0fba0f Make flyable to work with shared_ptr 2018-07-24 15:43:31 +08:00
Benau
60bfc1840b Port rewinders to use shared_ptr 2018-07-24 14:22:20 +08:00
Benau
bbf5c54f87 Use rewinder with shared_ptr for easier item destroy handling 2018-07-24 14:21:42 +08:00
Benau
6369256022 Reset rewinding manager at each online or offline game 2018-07-24 14:18:43 +08:00
Marianne Gagnon
973b29980d Fix #3347 2018-07-23 19:58:15 -04:00
hiker
1a9f0163e0 Try to fix odd behaviour of soccer ball. 2018-07-23 17:52:12 +10:00
hiker
a1ba27bc45 Try again to fix our build environment in server only mode. 2018-07-23 15:40:25 +10:00
Benau
b6c893b03e Try to fix server only build in linux 2018-07-23 13:27:14 +08:00
hiker
bda6c546d0 Merge branch 'fix-serveronly-build' 2018-07-23 13:53:10 +10:00
hiker
d18e963ea6 Added Benau's new version. 2018-07-23 12:51:59 +10:00
Benau
56b71e97ad Remove unused class 2018-07-23 08:41:59 +08:00
Benau
00a22a727a Check minimap invert for all players (required in network) 2018-07-23 08:29:37 +08:00
hiker
39e218b2dc Try to fix server-only build ... now non-server build is broken :( 2018-07-23 09:28:12 +10:00
Deve
ea13d97f6b Allow to specify minimum number of players in command line 2018-07-22 22:48:45 +02:00
Benau
a22fde85ec Correct ghost kart starting position before start 2018-07-20 19:49:06 +08:00
Benau
82b23b6c26 Fix ghost replay crashes 2018-07-20 19:23:18 +08:00
Benau
d4f7d6baaa Don't show the polling log if currently server 2018-07-20 15:46:07 +08:00
Benau
0e1a5ea285 Properly check for soccer team of players 2018-07-20 14:44:53 +08:00
Benau
2b4d062911 Try to fix the remaining ipo issues 2018-07-20 14:09:27 +08:00
auria.mg
a3a5befe63 Keep working on #3345, not there yet 2018-07-19 21:09:33 -04:00
auria.mg
f4dced8172 A few steps forward for issue #3345, more issues remain 2018-07-19 20:56:46 -04:00
Benau
c4ae3dff69 Set the min max values for each mode properly 2018-07-20 01:42:31 +08:00
Benau
1f7f64f3b5 Prevent rescuing in soccer mode to go back to self goal immediately 2018-07-20 01:36:02 +08:00
Benau
487227630f Invert x-z of position for soccer blue team player 2018-07-20 01:06:11 +08:00
hiker
b4a4de74bb Merge remote-tracking branch 'origin/master' into physics-tweaks 2018-07-19 18:39:55 +10:00
Benau
f124bd9df3 Don't allow the game to start if all players joined red or blue team 2018-07-19 15:50:01 +08:00
Benau
639883ca48 Display the number of players required to start a game for owner-less server 2018-07-19 15:26:15 +08:00
Benau
4ccb405cd1 Add exception handling in handlePendingConnection 2018-07-19 14:48:50 +08:00
Benau
7ebd1fabd9 Add exception handling to prevent player hacking network string 2018-07-19 14:23:35 +08:00
Benau
00712c5c6d Fallback to goal target if not specified in command line 2018-07-19 09:24:13 +08:00
hiker
6bf1a59579 Fixed compiler warning. 2018-07-19 09:56:15 +10:00
hiker
53d2bc3b8e Made restitution configurable (depending on speed of kart). 2018-07-19 09:55:24 +10:00
Deve
285b4701d6 Revert "Revert "Fixed multitouch device after some modifications in player controller""
This reverts commit d14916dec2.
2018-07-18 21:32:36 +02:00
Benau
1ba361ae23 Reset track objects during onGo when race start for network 2018-07-19 01:55:05 +08:00
Benau
1d7a9e9465 Prevent negative time in network soccer when finishing 2018-07-19 01:17:52 +08:00
Benau
6423925718 Hide the low-level extra server info from command line 2018-07-19 01:08:26 +08:00
Benau
b7569635a0 Load LOD models required by phyiscal moveable objects for server only 2018-07-19 00:51:04 +08:00
Benau
5e7ec89002 Fix more override warnings 2018-07-19 00:35:56 +08:00
Benau
d14916dec2 Revert "Fixed multitouch device after some modifications in player controller"
This reverts commit b359a3387f.

The original controller handling is brought back
2018-07-19 00:26:29 +08:00
Benau
252505a59f Merge remote-tracking branch 'origin/master' into local_state 2018-07-19 00:25:00 +08:00
Benau
1be9e4fdc4 Remove unsuitable tracks for each game mode during setup 2018-07-19 00:03:09 +08:00
Benau
c5cdfcebfe Finish soccer mode in network 2018-07-18 16:37:09 +08:00
Benau
d5168691e1 Dont't send item event confirmation if empty state 2018-07-18 13:33:37 +08:00
Benau
59f1fdf250 Take controller event into account for connection debug 2018-07-18 13:31:38 +08:00
Benau
f5230e30aa Use the original way to save controller event
And save more locally for network state
2018-07-18 13:10:44 +08:00
hiker
fcc1ab3abe Test to change restitution based on speed, to avoid huge push-into-air
after certain high speed collisions.
2018-07-18 09:39:19 +10:00
hiker
c01622a5d7 Avoid cushioning a kart more than once per second. This helps
avoiding the hovering effect (a kart is cushioned, moves forwards
on a downward slope, cushioned again, ...).
2018-07-17 09:31:14 +10:00
Benau
5c6de6d0fa Increase quaternion compressed precision
After dropping the largest value, the rest 3 are guaranteed not
larger than 1 / sqrtf(2), given normalized quaternion
2018-07-16 12:13:31 +08:00
Benau
fc563cc678 Add useLocalEvent in rewind manager 2018-07-16 01:00:13 +08:00
Benau
511d8dd7a8 Port kart animation rewind to RewindInfoEventFunction 2018-07-16 00:35:33 +08:00
Benau
f2d5b32fa6 Add RewindInfoEventFunction for functional rewind 2018-07-16 00:32:58 +08:00
Benau
e0ada8d6d1 Fix soccer ai stats 2018-07-15 15:20:55 +08:00
Benau
30ceb7dd4a Make smoothing variable configurable 2018-07-15 12:49:07 +08:00
Benau
b979d0db71 Fix change team icon path 2018-07-14 15:55:03 +08:00
Benau
06bcb13590 Allow changing soccer team in lan or private servers 2018-07-14 15:16:54 +08:00
Benau
c72db7099d Synchronized random arena item in network game 2018-07-14 08:11:35 +08:00
Deve
a1168d49db Minor fix for more consistency in android make script 2018-07-14 00:03:09 +02:00
Deve
b359a3387f Fixed multitouch device after some modifications in player controller 2018-07-13 23:50:40 +02:00
Benau
9fbfe0588f Make network tracks screen usable for all game modes 2018-07-14 00:40:53 +08:00
Benau
49d7a2fbbc Use count up ticks on rewinding for time limit in soccer game 2018-07-13 23:34:50 +08:00
Benau
724828b031 Don't adjust vertical offset for phyiscial objects 2018-07-13 22:06:13 +08:00
Benau
23e5dace40 Allow starting soccer mode in network with goals limit 2018-07-13 21:29:26 +08:00
Benau
0cee131b9f Add positional smoothing for physical objects in network 2018-07-13 20:27:37 +08:00
Benau
1333fe2d19 Use minimum size for uid of rewinder 2018-07-13 15:05:07 +08:00
Benau
ef65d70f77 Compress physical object state 2018-07-13 13:46:15 +08:00
Benau
5330951842 Improve compress quaternion by only dropping the largest value out of 4 2018-07-13 12:56:55 +08:00
Benau
565dfcef96 Only send state for moving track object 2018-07-13 10:47:30 +08:00
Benau
ab528e2840 Add a unique identity to each rewinder 2018-07-12 12:41:06 +08:00
Benau
99659e8021 Initial work on dynamic physics object rewind 2018-07-12 09:05:26 +08:00
Benau
7e2d25d4a9 Disable in game menu to avoid timer desync if not racing in network game 2018-07-12 07:16:37 +08:00
Benau
11d9090039 Add initial kart local state saving with correct attachment rewind 2018-07-12 07:08:02 +08:00
Deve
ec25a9d368 Enable screen keyboard on android even if there is no touch device.
It may be still useful for gamepad.
2018-07-11 22:41:22 +02:00
Deve
30b1799b6e Fixed minor bug in android build script 2018-07-11 21:35:40 +02:00
Deve
e0d262bfdd Allow to use screen keyboard even if hardware keyboard is available 2018-07-11 21:02:24 +02:00
Benau
8515805d52 Add initial framework for local state saving 2018-07-11 15:40:36 +08:00
Benau
a8959f604c Fix crash when in-game menu opened when going to result screen in network game 2018-07-11 15:37:55 +08:00
Benau
db8a92a2d6 Fix getifaddrs leaking 2018-07-11 13:49:01 +08:00
Benau
908735b1b1 Remove local state saving at t = 0
A proper same frequency local state saving for client will come later
2018-07-11 13:29:30 +08:00
Benau
b537df54fc Move scripting update to updateGraphics 2018-07-11 11:08:53 +08:00
Benau
3b2acf01eb Add m_disable_sending_log to request to hide logging for server polling 2018-07-11 10:56:28 +08:00
Benau
bce888ec26 Always highest geometry level in network game 2018-07-11 09:06:49 +08:00
Deve
ed8b5e9f76 Allow to set different path for log files 2018-07-11 00:31:30 +02:00
Deve
b531858ddb Fixed sound on android 2018-07-10 22:23:22 +02:00
Deve
b5c3910fe8 Fixed android x86 compilation.
Ugly, but there is no better solution atm.
2018-07-10 21:22:14 +02:00
Deve
9190847aa3 Close screen keyboard before race is started 2018-07-10 21:22:14 +02:00
Benau
621a718d27 Switch to assign mode in case a player hasn't chosen any karts 2018-07-11 01:41:43 +08:00
Benau
2d6c45f65e Fix attachment rewind with passing bomb 2018-07-11 01:36:20 +08:00
Deve
c76f48c701 Require enet >= 1.3.4.
It's needed for enet_peer_ping_interval()
2018-07-09 22:33:14 +02:00
Deve
68d43734cd Fixed compilation with older compilers 2018-07-09 21:40:52 +02:00
Deve
8885119974 Don't crash if some textures are missing 2018-07-08 23:00:16 +02:00
Benau
8a25edf2cc Use has_animation_before to avoid immediately rescue from previous material 2018-07-08 16:23:39 +08:00
Benau
35e2916981 Add the missing calculation for ipo constructor 2018-07-08 15:29:15 +08:00
Benau
3347cac92d Make track object with ipo animation depend on world up ticks 2018-07-08 14:08:33 +08:00
Benau
e67f0db7c1 Reset all actions in suitable function for local game restart 2018-07-08 13:58:19 +08:00
Benau
17d1bddf0d Don't re-update scripting engine during rewind 2018-07-08 12:58:57 +08:00
Benau
0fa444fbbf Add isNetworking scripting function to disable some track object 2018-07-08 11:57:37 +08:00
Benau
f0c376a41d Always push a screen in server only build to fix getCurrentScreen crash 2018-07-08 09:26:22 +08:00
Deve
aa0a51c31a Fixed angelscript compilation with 32bit gcc 2018-07-07 23:36:02 +02:00
Benau
b6edc0d93f Add --disable-polling for hosting multiple servers on 1 machine
Only 1 instance of STK server needs keep polling the addon server,
the rest can be run with the above option
2018-07-07 12:50:04 +08:00
Benau
efd20966e4 Fix #3066 by make sure cert location is handled in main thread 2018-07-07 12:33:30 +08:00
Benau
21ccf587c3 Add --init-user for server owner to save player profile without gui 2018-07-07 12:32:06 +08:00
Benau
21842f78d8 Fix leaking dummy sfx buffer 2018-07-07 10:56:11 +08:00
Benau
622f46d95a Properly use the ENABLE_SOUND flag 2018-07-07 10:43:05 +08:00
Benau
02fea1ee43 Disable sound code in server only build and rename the flag 2018-07-07 09:48:43 +08:00
Benau
4099afb25f Remove image related code and library dependencies in server only build 2018-07-07 09:27:39 +08:00
Benau
a60b2d3761 Remove freetype in server only build 2018-07-07 02:06:49 +08:00
Benau
00db1f8405 Turn wii cmake flag into a dependent option 2018-07-07 01:58:19 +08:00
Benau
9c3aae554e Remove fribidi and tinygettext in server only build 2018-07-07 01:22:26 +08:00
Benau
106d4c3c08 Fix #3340 2018-07-07 00:25:08 +08:00
Benau
8e449750c8 Correct help for networking 2018-07-07 00:02:32 +08:00
Benau
d184c82daa Fix #3341 2018-07-06 23:50:16 +08:00
Benau
8931d90813 Merge remote-tracking branch 'origin/master' into curved 2018-07-06 23:49:04 +08:00
Benau
80178ba695 Fix camera offset 2018-07-06 23:43:30 +08:00
Benau
7a1355d415 Use smoothed transformation in minimap 2018-07-06 22:40:57 +08:00
Benau
1efce9ae29 Fix penalty in networking 2018-07-06 22:24:32 +08:00
Benau
c437fcc513 Split jump time update to graphical for skidding 2018-07-06 21:40:41 +08:00
Benau
3f47c650e8 Allow smoothing for skidmarks 2018-07-06 19:01:13 +08:00
Benau
d6c3c825aa Add an up offset on skidmarks for uneven terrain 2018-07-06 18:30:22 +08:00
Benau
8071865a07 Use a separate smoothing timer for steering 2018-07-06 17:44:50 +08:00
Benau
a76a6e3508 Use smoothed transform to raycast the skidmark quads 2018-07-05 14:22:37 +08:00
Benau
e50029b707 Use smoothed transform directly for shadow 2018-07-05 11:21:41 +08:00
Benau
0a020210e5 Fix quaternion slerp 2018-07-05 11:16:45 +08:00
Deve
4f2b538399 Fixed pause dialog on touch device when end controller is used 2018-07-04 21:52:08 +02:00
Benau
d6672b64c5 Don't use 0 host id for starting 2018-07-05 01:37:50 +08:00
Benau
7caad2905e Add smoothing for steering percent 2018-07-04 16:22:09 +08:00
Benau
ad773089a5 Fix the rotation smoothing 2018-07-04 15:14:20 +08:00
QwertyChouskie
c4f0a71ef0 Add macOS to travis builds, fix server-only builds on macOS, msc. fixes (#3339)
* Use thread number from Travis docs
The other number is probably incorrect.
See https://github.com/travis-ci/travis-ci/issues/4696

* Add macOS to travis builds

* Remove unnecessary libraries
Not sure why these were added in the first place.
First commit that added them: 6aecb42e42

* Fix server-only build on macOS
2018-07-03 19:37:57 -04:00
Benau
e1dfe2e7e0 Show ping of remote players in lobby 2018-07-04 00:54:40 +08:00
Benau
a44ce60991 Send our own reliable packet for a more accurate ping 2018-07-03 14:20:35 +08:00
Benau
de8730dbfc Preload some textures to avoid game hangs 2018-07-03 09:23:58 +08:00
Deve
872f214c41 Fixed a crash when using rubber band in legacy pipeline.
Fixes #3338
2018-07-02 21:41:48 +02:00
Benau
7174e4070c Use 8 maximum players in network games 2018-07-03 00:47:31 +08:00
Benau
8c53296290 Disable the unneeded time adjust 2018-07-02 16:38:11 +08:00
Benau
674faad226 Fix #3259 2018-07-02 15:40:27 +08:00
Benau
211b107955 Make sure we don't send controller event if updateRace is too slow 2018-07-02 11:20:46 +08:00
Deve
0518d422c6 Fixed compilation 2018-07-01 22:57:48 +02:00
Benau
172a86192f Remove debug output 2018-07-01 14:34:02 +08:00
Benau
d3f7cb7999 Move ticks adjustment to main_loop 2018-07-01 14:31:42 +08:00
QwertyChouskie
b4ef263cc9 Update macOS instructions (#3335)
* Update macOS instructions

Thanks @OzoneOne for testing this.

* Fix issues

Also remove 0.9.3-and-below-only Xcode build instructions, was "much less well tested" anyways.

* Revert unnecessary change, more tweaks

* Remove extra newline
2018-06-30 19:30:33 -04:00
Benau
75c8864e8f Fix nitro in network 2018-06-29 12:17:24 +08:00
Benau
16cebffa3a Move more kart g/sfx handling to updateGraphics 2018-06-27 16:41:15 +08:00
Benau
9752d4849b Don't update slipstream and jump animation in rewind 2018-06-27 15:30:00 +08:00
Deve
22124ae11f Don't display English twice on the languages list 2018-06-26 22:50:05 +02:00
Deve
34c335b05e Handle wrong line endings in localized_name file.
Fixes #2795
2018-06-26 21:26:43 +02:00
hiker
cdfdab7db3 Added documentation, and properly #ifdef'ed cushioning debug output. 2018-06-26 17:21:22 +10:00
hiker
12095d6fcd Try different way of cushioning - documentation is still msissing,
only for testing.
2018-06-26 10:36:38 +10:00
Deve
ddd63771be Avoid empty header in edit gp screen.
Fixes #3329
2018-06-25 23:38:30 +02:00
Benau
295568560b Make m_num_wheels_on_ground update after rewind 2018-06-25 16:34:46 +08:00
Benau
bd5381dad7 Buffer all inputs until last frame ticks 2018-06-25 11:57:18 +08:00
Deve
e7d07f4537 One more check for tbo 2018-06-24 01:31:02 +02:00
Alayan-stk-2
6ea2250a41 Acceleration tweaks 2018-06-23 16:25:31 +02:00
Alayan-stk-2
33cdec4d95 Make the instant boost from skidding less exploitable 2018-06-23 16:08:43 +02:00
Alayan-stk-2
42e1e4eade Small balance tweaks 2018-06-23 03:45:26 +02:00
Alayan-stk-2
9340caf951 Revised kart characteristics 2018-06-23 02:17:33 +02:00
Alayan-stk-2
1988cfe0be Add nitro multiplier and revamp parachutes and air friction 2018-06-23 02:14:29 +02:00
Deve
096a5b2420 Fixed server-only compilation 2018-06-23 00:20:31 +02:00
Deve
5549229310 Add a graphics restriction for nouveau.
Fixes #3058
2018-06-22 23:59:44 +02:00
Deve
9ad3ba1fe2 Allow to use skinning without tbo 2018-06-22 23:48:00 +02:00
hiker
01adee6fb4 Merge remote-tracking branch 'origin/master' into physics-tweaks 2018-06-22 21:56:47 +10:00
Benau
d68111af51 Pass timeout to enet other than unconditional sleep 2018-06-22 13:27:37 +08:00
Alayan-stk-2
fee6866c6d Navigation improvements (#3325)
* Don't focus empty lists and ribbons

* Don't navigate to deactivated children of a ribbon

* Clarify log message
2018-06-21 20:44:35 -04:00
Alayan-stk-2
ebc7940985 New options menu (#3323)
* Updated options UI file, new icon for language tab

Also updates the license file.

* Update the options screens to support the new layout

And add a language change screen.

* Don't overwrite the updates which happened in master.

* Add missing (new) password reset button

* Focus the list of actions binding rather than the tabbar in device options
2018-06-21 19:50:16 -04:00
hiker
991dc00049 Moved hsitory replay handling into physics loop to make sure we
get identical replay independent of frame rate (otherwise input
might get delayed by a few frames).
2018-06-21 19:33:20 +10:00
hiker
526482bab4 Removed unused variable. 2018-06-21 19:32:09 +10:00
hiker
a40da718b8 Try different physics setting to improve collision handling. 2018-06-21 12:38:13 +10:00
Alayan-stk-2
1025bfe298 New help menu (#3322)
* Add vertical tabs to ribbon widget types

* Update GUI engine for vertical tabs

* New icons for the help menu

The slipstream icon is not great, it's here to have something now. It should be replaced by something better looking and more in STK's visual style.

* Updated help GUI

The git changelog is a bit misleading here, because the order of the items in the help menu has been revised too.

1)General (same)
2)Game modes (before : 3)
3)Powerups (before : 2)
4)Bananas (before : 5)
5)Story Mode
6)Kart classes
7)Multiplayer

* Update help screen code to handle the additional tabs

The hugely repetitive structure of one cpp/hpp per tab is kept here.

* Optimized version of new icons

Except for the slipstreaming one, as it should be replaced by a better one anyway.
2018-06-20 20:57:40 -04:00
hiker
bca11b98fb Decode the solver-mode only once instead of at every race start. 2018-06-21 10:20:22 +10:00
hiker
2399946301 Fixed line ending style. 2018-06-21 09:18:41 +10:00
Alayan-stk-2
e6a0f821a9 Reduce dark background artifacts (#3324)
* Improve quality following Benau's observation

* Improve darker background quality
2018-06-20 22:16:28 +02:00
Benau
72fdfe1ac3 Merge remote-tracking branch 'origin/master' into curved 2018-06-21 01:14:38 +08:00
Benau
4d680c27f4 Fix kart animation in networking 2018-06-21 01:14:26 +08:00
hiker
326ef82e90 Fixed line ending style. 2018-06-21 00:34:46 +10:00
hiker
ec6b611a94 Merge remote-tracking branch 'origin/master' into physics-tweaks 2018-06-21 00:33:29 +10:00
hiker
4903252931 Merge branch 'master' of github.com:supertuxkart/stk-code 2018-06-21 00:32:28 +10:00
hiker
2c0d47e511 Made some solver parameters configurable in stk-config. 2018-06-21 00:31:51 +10:00
Alayan-stk-2
be98a6c4c3 Add vertical tabs (#3314)
* Add vertical tabs to ribbon widget types

* Update GUI engine for vertical tabs

* Add the ability to get a ribbon's active children number

* Add full looping for vertical tabs
2018-06-19 21:00:10 -04:00
Alayan-stk-2
750320fbeb Fix the previous number of points being 0 after relaunching STK (#3320)
* On launch, also update the number of previous points so it is not 0

* Do the first call after the loading of the challenges status

* Remove prints
2018-06-19 20:20:21 -04:00
QwertyChouskie
5d34488adc Donate and reset password buttons (#3252)
* First version of donation link and password reset buttons
The register screen still needs to be tweaked, though the GUI engine seems to be limted here.
Maybe dynamicly delete/re-create the widget?

* Fix mingw compilation

* Remove dead code

* minor cleanup

* Error handling, tweaks

* Fix ifdef for macOS

* Disable donate button on Android

* Use stk-config

* Implement LinkHelper::isSupported, fixes
2018-06-19 19:59:54 -04:00
hiker
5a74ed92e6 Fixed compiler warnings, and many coding style issues. 2018-06-20 08:22:23 +10:00
Alayan-stk-2
205d4b5626 Fix start/exit buttons not working in networking lobby (#3318) 2018-06-19 22:54:16 +02:00
Deve
c889503d7b Fixed wrong comment 2018-06-19 21:59:09 +02:00
Alayan-stk-2
e7f3f2b969 Fix #3316 (#3317) 2018-06-19 21:50:20 +02:00
Deve
b430a0e5bf Huge improvement of apk file size thanks to Alayan.
The apk is now 20 MB smaller.

It may need some testing to see if there are no artifacts, but as far as I see there is no difference in quality.
2018-06-19 21:40:26 +02:00
Alayan-stk-2
4cb6ea4871 Optimize image size in the GUI folder (#3315)
* Optimize image size in GUI, save 1.2 MB

* Optimize android GUI images

* Optimize networking menu images
2018-06-19 19:19:24 +02:00
hiker
8428603150 Removed exec permission (I need to get that #*$*#$* issue fixed). 2018-06-19 18:38:52 +10:00
hiker
e6417bcf03 Merge remote-tracking branch 'origin/master' into STK-helper-ItemWeights 2018-06-19 18:30:19 +10:00
hiker
60c9994e29 Fixed documentation and typo, thanks to Alayan. 2018-06-19 18:27:33 +10:00
hiker
714665f444 Improved 'randomness' of item selection while keeping exploitability
very low. Added documentation, moved item-distribution logging to
get more detailed information.
2018-06-19 10:19:10 +10:00
hiker
46b62de07e Fixed compiler warning. 2018-06-19 09:19:32 +10:00
Alayan-stk-2
3450984c3e Multi directional GUI navigation (#3307)
* Allow full up/down/left/right navigation

* Update list and ribbon widgets to work well with the new navigation

* Fix windows compilation

* Improve navigation algorithm to fix the observed limitations

* Make windows compilator happy

* Fix keyboard navigation issues in networking lobby

And make some parts more proportional to screen size
2018-06-18 19:08:34 -04:00
Alayan-stk-2
bd16045525 New dark skin (coal) (#3293)
* License for new coal skin

* Coal skin elements

* New coal skin

* Better contrast for coal skin select

* Lighter white text.

* Improved contrasts for actionable UI elements

* Make the theme back to a darker background while improving contrast again

* Ranking formula refinements (#3288)

* Reduce the maximum scaling time from 600s to 500s

8m20s is already much longer than nearly all ranked races will be, so it matters most for eliminated players. It would be too punishing if kept to 600 with the new time scaling method.

* New helper function for ranking computations

* Make short races less important for ranking points

And long races more important

* Use double for calculation

* Fix as alayan suggested

* Fix possible empty race event manager instance

* Show remote player in the past

* Allow to set commandline arguments on android

* Fix #3242

* More on #3242

* FIx #2912

* Better checkboxes (#3291)

* Better checkboxes for forest skin

* Better checkboxes for ocean skin

* Better checkboxes for peach skin

* Better checkboxes for ruby skin

* Try to create external/internal directory if it's not available.

Typically it always exists on new phones, but I didn't find any information if it's guaranteed to exist and it's missing on my old phone.

* Always set blend func in GLES 2.0.

It's often changed in STK engine and the value stored in irrlicht variable may be invalid.

Fixes #3296

* Avoid a crash when user name is empty

* Unlock cutscene improvements (#3298)

* Don't display unlocked features out of screen when there are 4 to 6-7

And more regular spacing between them

* Remove outdated workaround

* Store the previous number of story mode point

* Allow to get the previous points from player profile

* Fix points estimation for finding unlocked tracks

- Updated to reflect that the player's points are now updated before this function
- Use the real previous number of points rather than trying to estimate the point change (otherwise, the points computation method would have to be duplicated here to not have a bug with GPs who give more points than single race challenges).

* Fix #3100 (#3299)

* Fix #3100

* Fix server only compilation

* Fix stupidly long line full of whitespace (#3303)

* Don't use pkg-config on macOS

Fixes #3305

* Fix #3309

* Great improvements to skin data (#3312)

* Add vertical tab support and get common files from a common folder

* License file for the common folder

* UI images shared by all 4 colored themes

* Delete redundant pictures

* Delete background.jpg

* Delete dialog.png

* Delete glassbutton_deactivated.png

* Delete glasscheckbox_checked_deactivated.png

* Delete glasscheckbox_deactivated.png

* Delete glass_rsection.png

* Delete glass_section.png

* Delete glassspinner.png

* Delete glassspinner_deactivated.png

* Delete glass_square_focused_bw.png

* Delete left_arrow.png

* Delete list_sort_down.png

* Delete list_sort_up.png

* Delete rating_star.png

* Delete right_arrow.png

* Delete scrollbar_bg.png

* Delete scrollbar_btn.png

* Delete table_header.png

* Delete tooltip.png

* Optimize image size and add vertical tabs

* Optimize image size and add vertical tabs for ocean skin

* The multiplayer colored squares are also shared

* Use the multiplayer colored squares from common

* Remove more redundant skin images

* Delete glass_square1.png

* Delete glass_square2.png

* Delete glass_square3.png

* Delete glass_square4.png

* Delete glass_square_focused.png

* Delete glass_square_focused2.png

* Delete glass_square_focused3.png

* Delete glass_square_focused4.png

* Optimize image size and add vertical tabs for peach skin

* Optimize image size and add vertical tabs for forest skin

* Special focus halo for ruby skin

Currently, the halo used in single player is shared with the one used for the first player in local multiplayer, despite the color of the top spinner widget not matching in this situation.

Better having this mismatch that a not-so-great halo in single-player.

I put it in common as it may be reused for multiplayer focus by other skins.

* Use pink selection halo

* Put the bottom bar among skinnable UI images

* Make the bottom bar part of the skins

* Coding style fix

* Delete bar.png

* Load bottom bar texture from skin rather than gui folder

Also rename bg_image to m_bg_image

* Move black focus halo to the common folder

* Remove duplicate image, use common folder

* Delete glass_square1.png

* Delete glass_square2.png

* Delete glass_square3.png

* Delete glass_square4.png

* Delete glass_square_focused.png

* Delete glass_square_focused2.png

* Delete glass_square_focused3.png

* Delete glass_square_focused4.png

* Delete glass_square_focused_bw.png

* Delete left_arrow.png

* Delete rating_star.png

* Delete right_arrow.png

* Delete list_sort_down.png

* Delete list_sort_up.png

* Delete glassbutton_deactivated.png

* Delete glasscheckbox_deactivated.png

* Delete glassspinner.png

* Delete glassspinner_deactivated.png

* Delete scrollbar_bg.png

* Delete scrollbar_btn.png

* Delete tooltip.png

* Delete glasscheckbox_checked_deactivated.png

* Use common folder, support vertical tabs, and small tweaks

* Optimize image size, add vertical tabs, add custom bottom bar
2018-06-18 19:02:35 -04:00
Deve
2e3ae1c3f8 Allow to set min and max drivers version in graphics restrictions 2018-06-18 22:32:41 +02:00
hiker
2859265545 Applied Alayan's fix for properly handling weight 0, some minor
other fixes, added two unit tests.
2018-06-18 22:24:52 +10:00
hiker
7c6d3c9e42 Fixed compiler warnings. 2018-06-18 18:19:29 +10:00
Benau
cfbdc30c6b Normalize the rotation before slerping 2018-06-18 13:59:35 +08:00
Benau
6eb7bf6bba Move camera update to update graphics 2018-06-18 13:36:56 +08:00
hiker
296bd89129 Replaced tabs with white-spaces 2018-06-18 15:13:36 +10:00
hiker
41ed9fc332 Removed execute permission. 2018-06-18 13:55:55 +10:00
Alayan-stk-2
2fbcd73c93 Great improvements to skin data (#3312)
* Add vertical tab support and get common files from a common folder

* License file for the common folder

* UI images shared by all 4 colored themes

* Delete redundant pictures

* Delete background.jpg

* Delete dialog.png

* Delete glassbutton_deactivated.png

* Delete glasscheckbox_checked_deactivated.png

* Delete glasscheckbox_deactivated.png

* Delete glass_rsection.png

* Delete glass_section.png

* Delete glassspinner.png

* Delete glassspinner_deactivated.png

* Delete glass_square_focused_bw.png

* Delete left_arrow.png

* Delete list_sort_down.png

* Delete list_sort_up.png

* Delete rating_star.png

* Delete right_arrow.png

* Delete scrollbar_bg.png

* Delete scrollbar_btn.png

* Delete table_header.png

* Delete tooltip.png

* Optimize image size and add vertical tabs

* Optimize image size and add vertical tabs for ocean skin

* The multiplayer colored squares are also shared

* Use the multiplayer colored squares from common

* Remove more redundant skin images

* Delete glass_square1.png

* Delete glass_square2.png

* Delete glass_square3.png

* Delete glass_square4.png

* Delete glass_square_focused.png

* Delete glass_square_focused2.png

* Delete glass_square_focused3.png

* Delete glass_square_focused4.png

* Optimize image size and add vertical tabs for peach skin

* Optimize image size and add vertical tabs for forest skin

* Special focus halo for ruby skin

Currently, the halo used in single player is shared with the one used for the first player in local multiplayer, despite the color of the top spinner widget not matching in this situation.

Better having this mismatch that a not-so-great halo in single-player.

I put it in common as it may be reused for multiplayer focus by other skins.

* Use pink selection halo

* Put the bottom bar among skinnable UI images

* Make the bottom bar part of the skins

* Coding style fix

* Delete bar.png

* Load bottom bar texture from skin rather than gui folder

Also rename bg_image to m_bg_image
2018-06-17 21:40:01 -04:00
hiker
8d12c5aa07 Updated changelog and credits. 2018-06-18 08:54:11 +10:00
hiker
34bfb2d868 Simplified loop structure, fixed other minox code issues. 2018-06-18 08:47:31 +10:00
hiker
de44b2aaf9 Made configuration files with missing or too many entries abort STK. 2018-06-18 08:14:30 +10:00
Benau
c58119be87 Smooth shadow and skidmarks for remote players 2018-06-18 00:10:49 +08:00
Benau
3b4353a2c9 Add curved smoothing for moveable in network 2018-06-18 00:06:32 +08:00
hiker
48aca2f70f Started to address comments from the reviewer. 2018-06-17 23:48:47 +10:00
hiker
8cf52b4c7c Updated documentation. 2018-06-17 11:43:35 +10:00
hiker
6bcd1b4c58 Merge remote-tracking branch 'origin/master' into STK-helper-ItemWeights 2018-06-17 01:05:07 +10:00
hiker
5207e9a38b Improved implementation of powerup collection weight. 2018-06-17 01:03:37 +10:00
hiker
87da438bf3 Fixed comment. 2018-06-17 01:01:44 +10:00
Benau
e8c4f74a20 Revert "Show remote player in the past"
Use a proper smoothing for all players later
2018-06-16 14:08:02 +08:00
Benau
bd6492f5cf Fix #3309 2018-06-16 13:55:20 +08:00
Deve
e14ea99acd Don't use pkg-config on macOS
Fixes #3305
2018-06-15 21:06:29 +02:00
Alayan-stk-2
96a07be6bc Fix stupidly long line full of whitespace (#3303) 2018-06-13 19:46:20 -04:00
Alayan-stk-2
e4b131fc78 Fix #3100 (#3299)
* Fix #3100

* Fix server only compilation
2018-06-13 19:43:18 -04:00
Alayan-stk-2
aee9e7ffa1 Unlock cutscene improvements (#3298)
* Don't display unlocked features out of screen when there are 4 to 6-7

And more regular spacing between them

* Remove outdated workaround

* Store the previous number of story mode point

* Allow to get the previous points from player profile

* Fix points estimation for finding unlocked tracks

- Updated to reflect that the player's points are now updated before this function
- Use the real previous number of points rather than trying to estimate the point change (otherwise, the points computation method would have to be duplicated here to not have a bug with GPs who give more points than single race challenges).
2018-06-12 20:36:33 -04:00
Deve
7d9adf5b93 Avoid a crash when user name is empty 2018-06-12 23:01:13 +02:00
Deve
e44266b526 Always set blend func in GLES 2.0.
It's often changed in STK engine and the value stored in irrlicht variable may be invalid.

Fixes #3296
2018-06-12 22:25:46 +02:00
Deve
19736c2a51 Try to create external/internal directory if it's not available.
Typically it always exists on new phones, but I didn't find any information if it's guaranteed to exist and it's missing on my old phone.
2018-06-11 22:23:48 +02:00
Alayan-stk-2
be5b389d94 Better checkboxes (#3291)
* Better checkboxes for forest skin

* Better checkboxes for ocean skin

* Better checkboxes for peach skin

* Better checkboxes for ruby skin
2018-06-11 22:02:46 +02:00
auria.mg
81aedd6582 FIx #2912 2018-06-10 19:09:36 -04:00
auria.mg
e9becd283b More on #3242 2018-06-10 18:57:25 -04:00
auria.mg
fc89a1c244 Fix #3242 2018-06-10 18:45:37 -04:00
Deve
90f3a2389e Allow to set commandline arguments on android 2018-06-10 23:25:51 +02:00
Benau
e823babb90 Show remote player in the past 2018-06-09 20:16:56 +08:00
Benau
f329314bf6 Fix possible empty race event manager instance 2018-06-09 19:04:15 +08:00
Benau
6433e1eae0 Fix as alayan suggested 2018-06-09 18:57:26 +08:00
Benau
9133275677 Use double for calculation 2018-06-09 18:53:44 +08:00
Alayan-stk-2
7c14fd28ba Ranking formula refinements (#3288)
* Reduce the maximum scaling time from 600s to 500s

8m20s is already much longer than nearly all ranked races will be, so it matters most for eliminated players. It would be too punishing if kept to 600 with the new time scaling method.

* New helper function for ranking computations

* Make short races less important for ranking points

And long races more important
2018-06-09 08:43:19 +00:00
Deve
05572b0084 Disable addons manager for server-only build.
No need to spam with downloading icons for add-ons.
2018-06-09 00:38:10 +02:00
Deve
68f8d524df Update ubuntu dependencies.
Fixed "ibogg" typo.
2018-06-08 23:08:25 +02:00
Deve
fe322d1209 Move building instructions to separate file 2018-06-08 22:54:22 +02:00
jpenguin
1e85e74219 Fedora deepedency installation (#3282)
* Update README.md

Fedoraa dependency instructions

* Update README.md

* Update README.md

changed fedora dependencies to match *buntu ones
2018-06-08 22:50:01 +02:00
Benau
d9ede4f213 Add state to avoid deadlock when finishing the race 2018-06-08 22:59:07 +08:00
Benau
9af27d93c4 Remove unneeded header 2018-06-08 14:56:49 +08:00
Benau
01dc948247 Fix #3286
In the future move trigger to check structure
2018-06-08 14:31:55 +08:00
Benau
b9bf3fa125 Use map to store peer and ticks in network item manager 2018-06-08 14:24:21 +08:00
hiker
8a534bb795 Fixed missing collisions. 2018-06-08 15:28:44 +10:00
hiker
6496289707 Added missing virtual destructor. 2018-06-08 15:28:38 +10:00
hiker
ea229b4e5e Merge branch 'ItemWeights' of git://github.com/STK-helper/stk-code into STK-helper-ItemWeights
A very rough merge to solve conflicts, not expected to even work.
2018-06-08 15:03:27 +10:00
Benau
843ecfcbc0 Add --connection-debug for verbose packet logging 2018-06-08 12:12:59 +08:00
Benau
e674f2d091 Make sure no weak ptr expires when calculating ranking 2018-06-08 11:04:58 +08:00
auria.mg
1dcb8d3db6 Tweak message queue fix 2018-06-07 21:52:42 -04:00
auria.mg
aa64f40f26 Fix text overlapping icon in message queue 2018-06-07 21:48:31 -04:00
hiker
9c6b17aeba Merge branch 'master' of github.com:supertuxkart/stk-code 2018-06-08 11:00:14 +10:00
hiker
cd80101bdf Removed execute permission (for unknown reasons VS makes source files
executable when it saves them).
2018-06-08 10:59:13 +10:00
hiker
e05990bc1c Fixed compilation problem. 2018-06-08 10:55:45 +10:00
hiker
b0da0f640a Merge remote-tracking branch 'origin/master' into network-items,
fixed conflicts.
2018-06-08 10:55:14 +10:00
hiker
d966962ca3 Avoid crash (that likely only happens when debugging). 2018-06-08 09:27:02 +10:00
auria.mg
729d7c9b3e Fix pot, another attempt 2018-06-07 19:19:04 -04:00
auria.mg
3cfe0e41c6 Update pot 2018-06-07 18:59:20 -04:00
Deve
4db01b3c24 Avoid skipping soccer setup screen when using gamepad 2018-06-07 23:17:47 +02:00
Deve
4efafe5b2f Set focus when opening addons loading dialog 2018-06-07 22:55:00 +02:00
Deve
d2806161bb Allow to exit soccer setup screen with cancel button 2018-06-07 22:04:23 +02:00
Alayan-stk-2
0b5d68d1d1 Fix #3280 (#3284) 2018-06-07 20:43:09 +02:00
Benau
495b80fb04 Remove newline from translation 2018-06-08 01:29:06 +08:00
Benau
9a32c075eb Use ngettext as translator suggests 2018-06-08 01:26:56 +08:00
Benau
5b62d03323 Fix wrong formula
Alayan said: +25% and +15s
2018-06-08 01:15:28 +08:00
Benau
304787f106 Remove unneeded translation in server lobby 2018-06-07 16:09:48 +08:00
Benau
9f6c87a636 Fix cornfield crossing network play 2018-06-07 15:31:13 +08:00
Benau
785aaf7647 Add auto end network game (implicitly on for ranked server) 2018-06-07 14:28:06 +08:00
auria.mg
53156a3a07 Update pot 2018-06-06 20:49:16 -04:00
Benau
5a5bdbe851 Remove duplicated id 2018-06-07 08:43:26 +08:00
Benau
96b27e427c Use a simpler english 2018-06-07 08:32:47 +08:00
Deve
6effdeced4 Avoid a crash in debug menu 2018-06-06 22:19:14 +02:00
Deve
a39c934d2b Fade background when general text field dialog is opened.
Fixes #3240
2018-06-06 22:11:10 +02:00
Benau
5e3a482588 Let player connecting in the middle of count down know 2018-06-07 01:34:25 +08:00
hiker
78133114ca Try to fix shaking in network mode when skidding. 2018-06-07 01:12:45 +10:00
Benau
644d1b1521 Allow specify motd with .txt file 2018-06-06 16:14:49 +08:00
Benau
d87cf6fba6 Don't allow starting a ranked race with only 1 player left 2018-06-06 15:04:27 +08:00
Benau
ca039b13ff Add observeExistence for request until porting request to shared_ptr 2018-06-06 13:23:48 +08:00
auria.mg
cbe5aad3d9 Merge branch 'master' of https://github.com/supertuxkart/stk-code 2018-06-05 20:07:25 -04:00
auriamg
939e5d7057 Update build instructions for new OSX build system 2018-06-05 20:06:55 -04:00
Marianne Gagnon
cb8f519bd9 Change OSX build system to be homebrew-based 2018-06-05 19:56:15 -04:00
hiker
80ab0b6cda Moved the 'visual' raycasts (for skidmarks) out of the update loop
into the updateGraphics call tree.
2018-06-06 08:24:34 +10:00
Deve
5e798ad6d4 Restore max texture size when reloading skin.
Fixes #3111
2018-06-05 23:55:31 +02:00
Benau
5da5a1972f Add auto start with timeout and player threshold for owner less server 2018-06-06 01:06:44 +08:00
Benau
7093cc2196 Don't show error for findAndTerminate if no such protocol 2018-06-06 00:54:04 +08:00
Benau
148677598b Terminate connect to peer after kart selection start 2018-06-05 11:21:21 +08:00
Benau
47455a71f3 Use KeyData instead of tuple 2018-06-05 10:23:14 +08:00
Benau
402e447ba1 Merge remote-tracking branch 'origin/master' into aes 2018-06-05 10:21:55 +08:00
auria.mg
3f1bd6b25e Merge branch 'UTF8_Config' 2018-06-04 19:34:07 -04:00
Deve
6e7b2a2ecd Remove write media storage permission from android manifest.
This permission is not officially available in documentation and it was a hack for some devices that have access to sdcard only on system applications.
2018-06-04 22:24:26 +02:00
Deve
ffee5d266d Prefer /sdcard/Android/data/ for extracting assets.
Fixes #3266, #3281
2018-06-04 22:24:26 +02:00
Deve
4275dbdac6 Fixed android build 2018-06-04 22:24:26 +02:00
hiker
9ea8dae693 Further improved braking in networking. 2018-06-05 00:46:36 +10:00
hiker
5092f0326c Removed unnecessary update (it's done in max_speed.cpp as well). 2018-06-05 00:04:49 +10:00
Benau
5baaf83401 Adjust for stk-addons 2018-06-04 16:35:45 +08:00
Benau
2f00196420 Clarify voting phase 2018-06-04 14:23:29 +08:00
Benau
4014e8f0e4 Remove unused protocol 2018-06-04 13:52:31 +08:00
Benau
a08e46f279 Remove the keys too after selection 2018-06-04 13:47:37 +08:00
Benau
4ef0c4e03c Add option for official server to disable stun at all 2018-06-04 13:36:24 +08:00
Benau
d89c65b0c9 Remove token in network string 2018-06-04 13:25:10 +08:00
Benau
ec51a2dfbb Fix memory leak 2018-06-04 11:12:11 +08:00
Benau
e326d7bcfd Fix valgrind uninitialized 2018-06-04 11:12:03 +08:00
auria.mg
c599195eeb XML fixes 2018-06-03 21:48:34 -04:00
Benau
aa1bb720e3 No joinning of password-proected server if no password is given 2018-06-04 09:41:50 +08:00
Benau
2fbf0ab49f Avoid unnecessary slow down and mutex locking in server lobby 2018-06-04 09:28:38 +08:00
auria.mg
42d98f8ff1 Start on UTF-8 config conversion 2018-06-03 21:04:46 -04:00
Alayan-stk-2
79e3d298ce Correct finish time for GPs when skipping a race (#3276)
* Make human players have a correct finish time when skipping a GP race

* Don't compute the estimated finish time twice
2018-06-03 19:50:24 -04:00
hiker
c751db865f Always include terrain-based slowdown fraction in a state update
(otherwise the client would reset this value to 1.0 in each rewind).
2018-06-04 08:54:49 +10:00
hiker
b15de8c3dc Update m_hardPointWS after a rewind to make sure the current
terrain is computed based on the new (rewound) kart position.
2018-06-04 08:53:21 +10:00
Benau
4653089d95 Add ranked server for validated player 2018-06-04 01:19:27 +08:00
Benau
a9696792c2 Merge remote-tracking branch 'STK-helper/RankingFormula' into aes 2018-06-03 15:39:01 +08:00
Benau
2fe50ba0c4 Make connect to server message stay longer if needed in lobby 2018-06-03 15:24:36 +08:00
Benau
490b865ddd Allow using %f with translated message 2018-06-03 15:15:25 +08:00
Benau
e122d045cc Allow showing player ranking in network user dialog 2018-06-03 15:08:52 +08:00
Benau
7e5263168e Add minimum required OpenSSL version 2018-06-03 14:44:53 +08:00
hiker
91f472e1c7 Fixed braking in network games (hopefully). 2018-06-03 01:09:05 +10:00
Benau
b43a5e4d18 Add AES encryption and validation for wan player 2018-06-02 12:28:29 +08:00
QwertyChouskie
7cb0ffe844 Fix segfault in cutscene when pressing CTL+Shift and when using FPV cam (#3279)
Fixes https://github.com/supertuxkart/stk-code/issues/2876
2018-06-01 21:25:56 -04:00
Deve
a39007d48e Fixed invisible spare tire kart.
Fixes #3277
2018-06-01 22:12:51 +02:00
hiker
5ec22d17f4 Fixed EndController (base functions in AIBasecontroller need to
use same state size as PlayerController.
2018-06-02 00:48:48 +10:00
hiker
e0d7717c46 Added previous brake and steer value (necessary for full state). 2018-06-02 00:08:08 +10:00
hiker
c3ec9bf6eb Fixed comment. 2018-06-01 21:43:40 +10:00
hiker
da14ffc4de Added brake_tick counter to the state (the longer you brake the
stronger you brake).
2018-06-01 21:40:00 +10:00
hiker
eebd5f2534 Removed unnecessary #include. 2018-06-01 09:42:36 +10:00
hiker
a9279a05d0 Made --check-debug to work with --no-graphics; print also the
race time at which a check-structure is crossed.
2018-06-01 00:24:27 +10:00
hiker
dc36f743ab Fixed compiler warnings. 2018-06-01 00:21:25 +10:00
hiker
8cca845dde Hopefully fixed item collection prediction. 2018-05-31 09:48:33 +10:00
hiker
70039f7d92 Removed unnecessary #include. 2018-05-31 09:29:01 +10:00
hiker
e6d5e194d3 Don't save the terrain slowdown as part of the state, it will get
updated on each client automatically.
2018-05-29 19:25:24 +10:00
hiker
50425ef59f Moved item position into ItemState. 2018-05-29 19:21:34 +10:00
Alayan-stk-2
c4768b72ae Add support for hours display to timeToString (#3270)
* Add hours support to timeToString

* Update timeToString declaration
2018-05-28 20:17:52 -04:00
Alayan-stk-2
670a40cb05 Improvements to finish time accuracy (#3273)
* Add time info for recent positions

* More accurate finish time

* Rebase changes on the version with overrides
2018-05-27 18:04:57 -04:00
Deve
6444405479 Avoid using incorrect action in debug menu 2018-05-27 21:35:44 +02:00
hiker
755cd8095b Use ItemState instead of Item as paramter for kart's collectedItem. 2018-05-28 00:26:02 +10:00
hiker
d0e95d0d63 Removed debug code (always get bubble gum as powerup). 2018-05-27 23:44:51 +10:00
hiker
ab3a3e1155 Combined event handler and emitter in item into one object (since
they are the same anyway).
2018-05-27 23:42:38 +10:00
Alayan-stk-2
30c1e0ca6d Make rubber-banding distances different between AI karts (#3256)
* Don't generate IRC alerts

* Differentiated rubber-banding

* Fix #3222

* Small simplification

* Use master's version

* Fix typo

* Use std::sort

* Remove useless function call

test_ai is only used for profiling without human players
2018-05-26 19:09:18 -04:00
hiker
079b5abe2a Started to use ItemState instead of Item in the attachment and
powerup callbacks on item collection.
2018-05-27 00:42:21 +10:00
QwertyChouskie
c4cb0201df Let user know when STK is compiled without libopenglrecorder (#3267)
* Let user know when STK is compiled without libopenglrecorder

* More work
2018-05-26 05:30:55 +00:00
Deve
12fc3fd063 Enable gles for arm architecture on linux.
It should be more useful than opengl renderer.
2018-05-25 21:16:22 +02:00
Deve
ed2d57996d Fixed libsquish compilation on arm 2018-05-25 21:08:00 +02:00
Deve
056ee641d1 Allow to use openglrecorder with gles 2018-05-24 22:07:33 +02:00
hiker
89ded35c21 Fixed bugs in MaxSpeed state saving and restoring. 2018-05-24 10:19:54 +10:00
Deve
2958435f7c More work on gles + texture compression.
Now it's usable with mesa, nvidia blob and in theory nvidia tegra too.
2018-05-23 21:21:14 +02:00
Deve
b98aede1e1 Fix for old headers 2018-05-22 22:31:38 +02:00
Deve
765d4019b7 Allow to use texture compression with GLES when extension is available 2018-05-22 22:31:38 +02:00
Alistair Findlay
fab05a54e8 Minor Update to GP Titles (#3265)
* Update 2_offthebeatentrack.grandprix

* GP Titles
2018-05-22 14:17:41 +02:00
Benau
5482c028ca Add wee sound when starting kart / track selection 2018-05-22 15:51:37 +08:00
Benau
ff08a2ba16 Don't send events if it trigger a rewind in server 2018-05-22 14:21:05 +08:00
Alayan-stk-2
175b932b13 Correct finish time for egg hunt ghosts (#3263)
* Use replay data for ghost karts finish time

* Compute correct finish time for egg hunts replays
2018-05-21 18:12:16 -04:00
Deve
04170f5855 Avoid a crash on exit.
Still NetworkingLobby::unloaded() probably shouldn't be executed if networking screen is never opened, but initialize variables doesn't hurt anyway
2018-05-21 21:51:04 +02:00
Deve
5d840f6bf7 Move android stkgui files to its own directory 2018-05-21 21:30:24 +02:00
Deve
bcd856d7b2 Avoid not needed enet modification.
Link needed libraries in cmake file in the same way as mingw build.
2018-05-21 21:23:45 +02:00
Benau
056e596d5a Fix debug build and clean up 2018-05-22 02:06:16 +08:00
Benau
1a975f9ef4 Offer a way to know accurate ping to server within 3 seconds 2018-05-22 01:31:08 +08:00
hiker
227572809a Synch attachments of bananas between client and server, some
code cleanup.
2018-05-22 00:00:38 +10:00
Benau
34b8a07d80 Add proper line breaking 2018-05-21 11:19:18 +08:00
hiker
9108934c18 Added handling of predicted item drops. 2018-05-21 10:09:10 +10:00
Alayan-stk-2
4fdd3eee38 Ghost finish times based on replay data (#3262)
* New ghost kart function to compute finish time

* Don't estimate the finish time for ghosts, use replay data
2018-05-19 19:23:44 -04:00
Alayan-stk-2
b8d2dc9034 Fix #3182 (#3260)
Checklines validation is for karts only, so having it true for the basket ball made the ball_distance always equal to zero. Setting it to false make the basket ball work again.
2018-05-19 18:23:58 -04:00
Benau
fdc299e073 Add player rankings in achievements 2018-05-20 01:15:39 +08:00
auria.mg
06d0dafcbf Change default keyboard key for "back" in the UI, backspace can be accidentally triggered when trying to erase texte 2018-05-18 21:23:31 -04:00
auria.mg
6291fada36 Fix more clang warnings 2018-05-18 20:09:13 -04:00
auria.mg
19fab0a4c1 Fix clang warnings 2018-05-18 19:58:51 -04:00
Deve
f2325e9140 Grab mouse on linux when panning is enabled 2018-05-18 22:35:54 +02:00
Deve
ad9a314bcf Fixed android compilation 2018-05-17 23:35:05 +02:00
Alayan-stk-2
bac516aa40 Update comment 2018-05-17 17:45:49 +02:00
Alayan-stk-2
6d6520ab89 Make the formula different between normal and time-trial modes 2018-05-17 17:37:16 +02:00
Benau
fa61059ad2 Add double for xml node 2018-05-17 10:28:46 +08:00
Alayan-stk-2
9902e7c767 Use double for max_ranking too, remove first half base-points distribution (done elsewhere) 2018-05-17 03:16:12 +02:00
Benau
d2bf17e71a Show owner name as Official if official server hoster account is used 2018-05-16 16:07:08 +08:00
Alayan-stk-2
f5245a679e Fix #3236 (#3253)
* Don't generate IRC alerts

* Fix #3236

* Update .appveyor.yml
2018-05-15 19:16:56 -04:00
hiker
cdea16f81d Fixed kart id being received as unsigned int (needs to be signed since
the sign indicates the event type).
2018-05-16 08:55:18 +10:00
Alayan-stk-2
b026b24e4a Fix/update ranking computation 2018-05-15 18:47:59 +02:00
Alayan-stk-2
8da8390773 Merge pull request #14 from supertuxkart/master
Update branch
2018-05-15 15:25:21 +02:00
Benau
d4b3f75b22 Add code for alayan 2018-05-15 16:08:07 +08:00
hiker
ad82dca6cc Created separate file for ItemEventInfo. 2018-05-15 18:05:46 +10:00
Benau
b8982200b6 Fix track objects in network 2018-05-15 15:23:39 +08:00
Alayan-stk-2
9f18c0e2c1 (Broken) ranking computation 2018-05-15 04:22:23 +02:00
Alayan-stk-2
1fc3e0916e Ranking related changes 2018-05-15 04:20:44 +02:00
Alayan-stk-2
5ab277bd68 Resolve conflict with master 2018-05-15 03:46:00 +02:00
hiker
0d850201fb Renamed and split the two newItem () functions into three functions:
placeItem(), placeTrigger(), dropNewItem(). Started to add support
for networked bubble gum (though that's not working, i.e. will crash
atm ;) ).
2018-05-15 10:40:25 +10:00
Alayan-stk-2
7f84dd39a6 Numerous improvements related to ghost replays (#3244)
* Update GUI files for replay improvements

* Updated replay capabilities

* Improve timer formatting possibilities

Mainly, the ability to choose to display or not minutes, and to choose how many digits are shown after seconds (from 0 : second as smallest timestep - to 3 : ms as smallest timestep)

Also displays "mm:ss.ms" rather than "mm:ss:ms".

* Some new list widget possibilities

Like the ability to update the header while the list is displayed (useful to add or remove columns)

* Update ghost kart for the new replay data

* Also update the ghost controller

* Live differences with ghost replays in linear worlds

* Replay-related UI changes

Big changes to the replay selection screen, and small change to the race UI (add the live timer in ghost races) and the race result UI (add the option to directly race against a newly saved ghost).

* Improves the replay action modal dialog

* Fix time-to-ticks regression

* Several requested improvements

* Improved ghost icon

Also updates the license

* GUI changes and improvements to accomodate multi-mode support

* Additional recorded data

* More functions to get the current race state

* Update replay variables to match what is used

* Updated replay-related config values

* Add ghost kart support to easter egg hunt mode

* Transparent attachments for ghost karts

* Use new stored data (color, item type)

Also :
- Interpolate speed for smoother display in watch-only mode
- Coding style improvements

* Fix coding style issues and add UI support for modes

* Fix coding style issues & support for easter egg mode

* Remove leftover prints

* Use getDifficultyName to remove hardcoded values

* Fix attach_ticks and coding style fixes

* Make the position of the timers fully relative

Otherwise, they would tend to touch each other in some resolutions

Also add a comment about the 59.9995f

* Make the list filling code clearer

Also use getDifficultyName

Most of the line changes shown by git correspond to moving around some bits or adjusting indentation.

* Remove a TODO as requested

* Fix dialog being dismissed too soon

* Remove a fixme

* Small clean up

* Fix logging

* Partial #3249 fix
2018-05-13 20:51:52 -04:00
Alayan-stk-2
322f0e77f8 Don't generate IRC alerts 2018-05-14 00:53:10 +02:00
hiker
8c4158c139 Removed option to set item etc type via additional parameter for
networking. Now networking relies on deterministically determined
'random' item types and state updates.
2018-05-14 08:46:50 +10:00
Deve
0b79d9c1d1 Remove a line that is not needed anymore.
Now spinner widget is drawn correctly and min value >= 1 restriction exists in xml file anyway. In this way it shows correct value when particles effects are manually set to 0 in config.xml.
2018-05-13 22:03:15 +02:00
Deve
14cb6a89fd Fix for current angelscript version.
Now AS_MAX_PORTABILITY behaves the same as native calling convention.
2018-05-13 22:03:15 +02:00
Alayan-stk-2
1bba398c09 Merge pull request #13 from supertuxkart/master
Update fork
2018-05-13 20:36:43 +02:00
hiker
d2dc99f859 Added --disable-item-collection command line flag, which is useful
for evaluating client/server 'disagreements'.
2018-05-13 23:43:29 +10:00
Alistair Findlay
290eb354c7 Update custom_video_settings.stkgui (#3224)
* Update custom_video_settings.stkgui

Change label titles to conform to title case typographical convention.

* Update custom_video_settings.stkgui

Sentence case for everything.
2018-05-12 19:00:07 -04:00
hiker
af0495848a Use client prediction for item collection. 2018-05-13 01:04:45 +10:00
Benau
5fb0113362 Don't enable texture matrix if no vbo or ibo 2018-05-11 19:27:41 +08:00
Benau
34f416506e Remove infinitive loop if image failed to load 2018-05-11 19:27:25 +08:00
Benau
02ecb9f914 Shuffle player list for the 1st track in grand prix 2018-05-11 13:44:46 +08:00
Benau
52e2a64893 Add ring for local player controller in minimap 2018-05-11 13:26:30 +08:00
Benau
4a4c99baf2 Send to all broadcast addresses for connecting to wan server in lan 2018-05-11 11:13:42 +08:00
Benau
7926ad9ba0 Progressively adjust time with slow down functionality 2018-05-11 10:43:22 +08:00
Benau
e28fbdd019 Increase vote timeout to 20 second, and offer a way to end vote early
After half voting time and all entries in voting table has > 50%
agreement out of current connected peers, go on
2018-05-11 10:37:31 +08:00
hiker
d88ce3b3b6 Removed unused code, coding style fixes. 2018-05-11 09:41:46 +10:00
hiker
b77a76dd8c The ItemManager must be updated even if no event is received (to
rewind item states to the rewind time).
2018-05-10 23:25:04 +10:00
hiker
5f8dc7b641 Added debug comment to let the server not connect any items
(--> client predictions wrong, useful for debugging).
2018-05-10 23:24:07 +10:00
hiker
ff6d5119b4 CLients now predict item (predictions are not synched with server,
so the item will chance once the server update is received atm).
2018-05-10 23:23:23 +10:00
hiker
8f2b991e6a Code cleanup. 2018-05-10 09:31:21 +10:00
Deve
15f79b0f95 Add key binding for azerty layout 2018-05-09 21:11:24 +02:00
hiker
4e37c1388b Item collection on a client now works, though it is not predicted yet.
Other things (dropping bubble gum, switch, synchronised banana collection)
still do be done.
2018-05-10 01:09:23 +10:00
hiker
031eb461a3 Removed debug output. 2018-05-10 01:07:41 +10:00
hiker
c98df155a6 Change item visibility always in Item::updateGraphics, which (except
for listener) makes it unnecessary to call collect for Item (only
for ItemState).
2018-05-10 01:05:38 +10:00
hiker
85eb59c6af Merge pull request #3232 from STK-helper/MiniMap
Increase minimap size and reduce its aliasing
2018-05-09 15:39:19 +10:00
Deve
fe42da5b04 Avoid conflicts with key codes when fallback keycode is used 2018-05-08 21:59:11 +02:00
Deve
78d9f2065c Add some key names for azerty layout 2018-05-08 21:22:46 +02:00
hiker
e1530267f3 Fixed compilation error and some warnings. 2018-05-09 00:48:20 +10:00
hiker
3f96ba2b93 Added nitro amount to state. 2018-05-08 20:51:35 +10:00
hiker
9d60112e65 Started to implement proper item handling: the server now sends
updates of all collected items to the clients as part of a state.
A client confirms the received states. Once all clients have
confirmed a certain event, that event is deleted on the server
and not sent anymore. WIP, item collection kind of works, but only
because of kart state updates which include attachment (but not
e.g. nitro).
2018-05-08 19:12:06 +10:00
hiker
356680b182 Removed debug prints. 2018-05-08 18:41:37 +10:00
Alayan-stk-2
473732b952 Add comment to clarify a if/else 2018-05-07 02:34:52 +02:00
Deve
20507424ee Don't draw spinner widget gauge for negative values 2018-05-06 23:06:27 +02:00
Alayan-stk-2
20d36b6f1b Fix #3175 (#3243) 2018-05-06 22:26:21 +02:00
Alayan-stk-2
11c31bf205 Merge pull request #11 from supertuxkart/master
Update fork
2018-05-06 03:48:12 +02:00
Alayan-stk-2
267dfde46f Fix #3197 (#3238)
* Add parameters for negative sound in nitro challenge

* Fix #3197
2018-05-05 20:33:12 -04:00
Alayan-stk-2
7ee3d6576e Use the new config options for display 2018-05-05 22:18:02 +02:00
Alayan-stk-2
086cc024e4 Add AI and player icon sizes as configurable 2018-05-05 22:12:05 +02:00
Alayan-stk-2
6ec7799a1d Read minimap parameters 2018-05-05 22:06:21 +02:00
Alayan-stk-2
206bd0170a New minimap stk_config parameters 2018-05-05 22:05:29 +02:00
Alayan-stk-2
bdf4c62abc Add config option for minimap size 2018-05-05 21:25:31 +02:00
Alayan-stk-2
bc569b9e04 Display the minimap during the start countdown
So the players (especially those not familiar with the tracks) can take a look at it before starting to race.
2018-05-05 21:09:33 +02:00
auria.mg
f44fbbfdfb Fix code style 2018-05-04 18:50:47 -04:00
hiker
eb647124e8 Split the item update into update and updateGraphics() parts. 2018-05-04 16:41:03 +10:00
hiker
c7c061c7c1 Bugfix: all items were counted as easter eggs :) 2018-05-04 16:36:56 +10:00
hiker
3e518968b3 Added a generic collectedItem() virtual function to world
instead of a special case of easter eggs only.
2018-05-04 10:29:44 +10:00
hiker
10ce48b86f Moved notification of easter egg collectoin from Item to ItemManager. 2018-05-04 09:48:54 +10:00
hiker
5ba79bddd7 Removed m_confirmed, renamed m_disappear_counter to m_used_up_counter. 2018-05-04 09:31:50 +10:00
hiker
9392354663 Split Item into two classes: ItemState which contains the non-graphical
and changing properties (e.g. collected,item type etc), and Item (using
ItemState as base class) which contains graphical and constant values.
2018-05-04 01:01:15 +10:00
Qwerty Chouskie
b5067a935e Final? 2018-05-02 22:35:36 -07:00
Qwerty Chouskie
173702cca1 "skid0" effect 2018-05-02 22:23:16 -07:00
Qwerty Chouskie
ded672ea0d Remove no-longer-needed code
It doesn't compile with this anymore, and the issue it fixed seems gone anyways.
2018-05-02 18:39:47 -07:00
Qwerty Chouskie
b0c061290f Merge branch 'master' of https://github.com/supertuxkart/stk-code 2018-05-02 18:09:13 -07:00
hiker
7e9e258b17 Merge remote-tracking branch 'origin/move-handleMaterialSFX' 2018-05-03 10:23:51 +10:00
auria.mg
c6c005ded4 Revert "jgh"
This reverts commit e1a1196a9f.
2018-05-02 19:35:41 -04:00
auria.mg
e1a1196a9f jgh 2018-05-02 19:35:04 -04:00
Alayan-stk-2
74a77ed5ef Cast width and height as floats before checking the ratio 2018-05-02 20:33:08 +02:00
Alayan-stk-2
d6c2cccccd Reduce minimap size in splitscreen multiplayer
It won't work very well with 8 players, but still slightly better than when it was always 100.
2018-05-02 20:07:10 +02:00
Alayan-stk-2
bed03b2a43 Make minimap size 1.8 higher
This factor has been chosen because :
1) It allows the toplist to be able to still display 10 karts (maximum number reached in story mode or in networking (currently 12 but will be 8-10 for release according to Benau))
2) This size should fit nicely in the android GUI.

Otherwise, there is still some margin before it hinders view in 4:3 resolutions.
2018-05-02 19:40:00 +02:00
Alayan-stk-2
3d17e68c4e Get a larger minimap texture to significantly reduce aliasing 2018-05-02 19:13:09 +02:00
Benau
a5b234ceef Reset player action in pause menu for network, fix #3230 2018-05-02 15:37:47 +08:00
Benau
f5035a00ea Allow showing paused dialog in network now it doesn't pause timer 2018-05-02 13:17:23 +08:00
Alayan-stk-2
022dd3e302 Fix handicap values (#3231)
* Fix handicap values for slipstreaming

* Change bugged handicap value and double-effect values

* Add skidding to handicap, remove explosions
2018-05-01 21:14:53 -04:00
Alayan-stk-2
179e825e60 Merge pull request #10 from supertuxkart/master
Update fork
2018-05-01 23:56:10 +02:00
Benau
ac54ee8888 Remove max 80 words limit now we use uint16_t for wide char 2018-05-01 12:42:59 +08:00
Benau
eb9f5b3fb3 Add speed and acceleration handicap to make it more visible 2018-05-01 01:13:09 +08:00
Benau
d17fddcac8 Fix handicap in splitscreen and network 2018-05-01 01:10:12 +08:00
hiker
0d1e799b4b Removed unused function. 2018-04-30 08:56:28 +10:00
hiker
28eb0112e0 Moved handleMaterialSFX to updateGraphics(), which removes the need
for a isLastSubstep() function in main(). Fix potential bug when
a new material sfx is triggered when a previous sfx still exists.
2018-04-30 08:49:57 +10:00
Alayan-stk-2
6a25384ed9 SuperTux in Story Mode (and other improvements) (#3207)
* Add SuperTux difficulty & update number of karts

Also make the expert challenge slightly easier to match more the difficulty of other challenges.

* Add SuperTux difficulty & update number of karts & points required

Also give some more time margin in easier difficulties, as it is a hard challenge compared to most.

* Add SuperTux difficulty & update number of karts & points required

Also change the lap count to 4 as it is a very short track (sub 30s)

* Add SuperTux difficulty

Also tweak the expert challenge to have a more appropriate difficulty

* Add SuperTux difficulty & update number of karts

* Add SuperTux difficulty & update number of karts & points required

* Add SuperTux difficulty & update number of karts & points required

Also correct the requirement position, since this is not a FTL race anymore.

* Add SuperTux difficulty & update number of karts & points required

Also slight balancing improvements for the usual difficulties.

* Add SuperTux difficulty & update number of karts & points required

Also adds a position requirement in expert

* Add SuperTux difficulty & update number of karts & points required

* Add SuperTux difficulty & update number of karts & points required

* Add SuperTux difficulty & update number of karts & points required

Also change the number of laps to 5, as this is a very short track. The time requirements for easier difficulties have been kept proportionally similar to before.

* Add SuperTux difficulty & update number of karts & points required

Also change the number of laps to 4.

* Add SuperTux difficulty & update number of karts & points required

Also add a position requirement to expert and intermediate.

* Add SuperTux difficulty & update number of karts & points required

Also change the number of laps to 4, as a lap often is 30s or less in expert/supertux

* Add SuperTux difficulty & update number of karts & points required

* Add SuperTux difficulty & update number of karts & points required

* Rename islandtrack.challenge to gran_paradiso.challenge

* Rename challenge file

* Add SuperTux difficulty & update number of karts & points required

Also makes the time limit in expert less easy and tweak position requirement.

* Add SuperTux difficulty & update number of karts

* Add SuperTux difficulty & update number of karts & points required

* Add SuperTux difficulty & update number of karts & points required

* Add SuperTux difficulty & update number of karts & points required

* Add SuperTux difficulty & update number of karts & points required 

Doesn't unlock the SuperTux difficulty anymore - it's managed elsewhere.

* Add SuperTux difficulty & update number of karts & points required

* Add SuperTux difficulty & update number of karts & points required

* Add new unlock challenges, for difficulty and karts

* Add a lap to oliver's math class

* Replace Northern Resort by Volcano Island

* Replace Volcano Island by Candela City

Candela City was in no (official) GP before this.

Also sets Green Valley to 3 laps.

* Add Northern Resort and remove Fort Magma

In 0.9.3, this GP has only 4 races in Story Mode (5 for the other GPs) because Fort Magma is locked.

Of all the tracks outside this GP before, Northern Resort is one of the hardest, the AI being rather good there.

* Temporary cup for SuperTux challenges

Recolored version of the gold cup

* Update challenge selection UI for the SuperTux challenges

* GUI used before SuperTux difficulty unlocking

This is the old select_challenge.stkgui

* Swap the two sara

* Replace Kiki by another kart to unlock on Benau's demand

* Update for improved Story Mode

* Update for improved Story Mode

* Add support for SuperTux challenges

* Add support for SuperTux challenges

* Add support for SuperTux challenges

* Add support for SuperTux challenges

* Update for SuperTux ; also adds the ability to unlock a challenge by points

* Update for unlocking by points

* Add support for SuperTux challenges

* Add support for SuperTux challenges

* Add support for SuperTux challenges

* Minor changes to function calls

* Update for SuperTux challenges

* Add support for SuperTux challenges

* Update for Story Mode GP changes

* Allows to display the correct number of points for GP challenges

* Set the unlock of the 1st bonus kart to correct non-test value

* Add support for SuperTux challenges

Including a bigger challenge selection diaolg

* Add default value

* Icon to indicate that there is an unlockable

The number of points needed to unlock it are displayed next to it.

* Changed format : the point requirements is now specified in the file

* Changed format : the point requirements is now specified in the file

* Changed format : the point requirements is now specified in the file

* Function for unlock by points UI

* Add default for unlock list node and use requirements node for all

* Make unlockByPoints simpler and more flexible

Now the code will iterate in StoryModeStatus and send the unlock_list challenges for treatment here. The question of getting the right challenge statuses beings solved, it allows for a great simplification and much more flexibility

* Update unlockByPoints declaration

* Adds support for next unlockable UI

* Improve call of unlockByPoints

Also calculations for displaying in the UI how many point the next unlockable by points requires.

* Add icon for next unlockable

* Displays icon/number to make the player aware of the next unlockable

Also displays the number below the icon rather than on the side, for more clarity.

* Changes to display karts in the unlock scene

* Update unlock functions declarations

* New function to clarify code and more logical recently unlocked list management

In the previous version, everything was added to the recently unlocked list at some point, necessitating a clearing at the end of computeActive, which also removed from the list the non-race challenges. Checking if the feature is newly unlocked to add it to the list remove the need of that clearing.

* Declaration for unlockFeatureByList

* Display newly unlocked karts

* Display newly unlocked karts

* Clear the list of recently unlocked features at the end

* Update testing code

* Update unlocks finding function call

* Improve UI scaling

* Fixes indentation

* Update the number of points before checking for unlock by points

* Add const to declarations

* Remove const_cast

* Remove a const_cast

There are other const_cast in the menu debug items (but they are unrelated to this PR)

* Fix menu being bolder
2018-04-29 18:27:03 -04:00
Alayan-stk-2
a1e19f3692 Fixes weight computation at reference points 2018-04-29 07:23:33 +02:00
Alayan-stk-2
49ff8ecd25 Reload powerup models on graphics options restart 2018-04-28 23:06:25 +02:00
Alayan-stk-2
e1f585a916 Add powerup model loading on start 2018-04-28 23:03:39 +02:00
Alayan-stk-2
1545c10328 Split loadAllPowerups in two functions 2018-04-28 23:00:23 +02:00
Alayan-stk-2
5e749901f3 New loadPowerupsModels function 2018-04-28 22:58:03 +02:00
Alayan-stk-2
c785a45e93 Fixes ordering error 2018-04-27 23:46:13 +02:00
Alayan-stk-2
5f994204ab Use only one random number for item selection 2018-04-27 23:25:08 +02:00
deve
a2659f479c Merge branch 'master' of https://github.com/supertuxkart/stk-code 2018-04-27 06:52:58 +02:00
deve
b90a9fbf0d Don't allow totally disable particles in GUI.
Now we don't use tfb shader to compute particles, so it seems to not have a sense anymore.
And it's still possible to set particles_effects=0 in config.xml if someone will need it.
2018-04-27 06:50:39 +02:00
deve
bf1392cadc Keep important particles enabled on lowest settings 2018-04-27 06:44:56 +02:00
Deve
bc9660a81c Use known working java version for building apk if possible.
It fails to build with newer versions, so that on different systems you may need to set JAVA_HOME manually.
2018-04-26 21:48:59 +02:00
hiker
a737f9e3d5 Fixed typos. 2018-04-27 00:34:58 +10:00
Alayan-stk-2
33c60ddc1c Remove obsolete powerup loading
Powerup data is loaded before each race when the number of karts (and type of race) is known.
2018-04-26 12:45:49 +02:00
Alayan-stk-2
af106fcd7d Remove obsolete powerup loading 2018-04-26 12:41:15 +02:00
Alayan-stk-2
c2ae2bfce6 Improve comments 2018-04-26 05:52:41 +02:00
Alayan-stk-2
acf9ed1eab Remove unused default value
Also corrects a comment typo
2018-04-26 05:35:12 +02:00
Alayan-stk-2
ae21cfe8d7 Fix log reporting 2018-04-25 23:18:02 +02:00
Deve
b770fa19fb Auto refresh for lan server detection 2018-04-25 20:26:23 +02:00
Alayan-stk-2
e10e56a962 Various improvements requested in review 2018-04-25 11:43:46 +02:00
hiker
8a8b954bf9 Fixed more ticks vs time issues. 2018-04-24 17:44:39 +10:00
hiker
c8befd7505 Fixed compiler warning. 2018-04-24 17:30:15 +10:00
hiker
6f38a56dfa Merge branch 'lan-broadcast' 2018-04-24 17:28:19 +10:00
hiker
88abad8dc7 Moved handleMaterialGFX() and updateEngineSFX() from update()
to updateGraphics() - i.e. only one per rendered frame.
2018-04-24 17:19:13 +10:00
hiker
f2f15ac4e0 Removed duplicated entries. 2018-04-24 09:22:52 +10:00
hiker
2a89e7e0d1 Merge remote-tracking branch 'origin/lan-broadcast' into lan-broadcast 2018-04-24 09:18:41 +10:00
hiker
0809f3e286 Added 192.168.1.255 as default broadcast address. 2018-04-24 09:16:55 +10:00
Benau
62ea07ecc8 Try to synchronize timer independent of music 2018-04-24 01:01:47 +08:00
Benau
b919c82da5 Merge remote-tracking branch 'origin/master' 2018-04-23 23:47:30 +08:00
hiker
866eba936d Try to fix linux - compiles. but untested. 2018-04-24 00:37:53 +10:00
hiker
59b796a7f5 Since broadcasting to 255.255.255.255 does not work in all cases,
add code to create a set of potential broadcast addresses and
use them all. Duplicated will be filtered out (since likely a server
will replace more than all).
2018-04-23 23:30:48 +10:00
Alayan-stk-2
4d4fff690d Support for multiple reference weight lists 2018-04-23 03:51:39 +02:00
Alayan-stk-2
d79e4a1509 Use referenc 2018-04-23 03:49:48 +02:00
Alayan-stk-2
7f5565cbc4 New item weight lists 2018-04-23 02:29:40 +02:00
Alayan-stk-2
d3659232e0 Fix time-to-ticks build issue (#3215) 2018-04-22 20:18:46 -04:00
Alayan-stk-2
2ca9189f32 Add isFollowMode function 2018-04-23 02:03:35 +02:00
Alayan-stk-2
4844b415b6 Merge pull request #9 from supertuxkart/master
Update fork
2018-04-23 01:59:15 +02:00
auria.mg
c08093d732 Merge branch 'More-AI-improvem'
# Conflicts:
#	src/karts/controller/skidding_ai.cpp
2018-04-22 19:36:37 -04:00
Alayan-stk-2
fa85460bc2 Merge pull request #7 from supertuxkart/master
Update fork
2018-04-22 21:31:44 +02:00
hiker
8e1f046b86 Fix the handling of messages that arrive before the last saved state
(which currently causes a crash).
2018-04-22 22:07:21 +10:00
Benau
bc8539ae10 Add some sound effect for lobby 2018-04-22 15:07:08 +08:00
Benau
d4eaec6667 Fix crashed sound repeating 2018-04-22 14:44:43 +08:00
Benau
7ddd498156 Add a separator as auria suggested when reentering the lobby 2018-04-22 14:32:41 +08:00
Benau
96797e9325 Fix wrong code to make it the same as comment 2018-04-22 14:01:11 +08:00
auria.mg
ad7555d8ea Fix race GUI glitch kart icons to line horizontally at the start of a race 2018-04-21 21:04:21 -04:00
auria.mg
bb88ffc460 Merge branch 'game_protocol' 2018-04-21 19:53:56 -04:00
auria.mg
cbfcc55ebc Fix cutscenes sychronisation, fixes #3213 2018-04-21 19:12:25 -04:00
auria.mg
edb3cc4f0b Fix material slowdown not working, fixes #3212 2018-04-21 19:05:45 -04:00
auria.mg
c9d1d1c579 Fix issue with ticks vs time elapsed in scripting engine 2018-04-21 18:46:21 -04:00
Deve
8d767f0c8f Fixed flooding with wrong way messages.
Fixes #3214
2018-04-21 22:51:21 +02:00
Benau
a4198536a0 Reset server if no player in lobby between a grand prix 2018-04-22 01:03:25 +08:00
Benau
e1797f0572 Don't use NetworkConfig which got deleted already 2018-04-21 16:41:25 +08:00
Benau
448ad5abcf Clean up network local player handling 2018-04-21 16:32:43 +08:00
Benau
82a396ed56 Fix kart headlight in network 2018-04-21 16:30:38 +08:00
Benau
ba681a7cf8 Initial GP in network 2018-04-21 16:00:14 +08:00
Benau
6728951985 Fix incorrect camera index for GP 2018-04-21 12:55:55 +08:00
Benau
708d558528 Fix #3191 2018-04-21 10:25:05 +08:00
Deve
e0a5bd1027 Restore dropping bubblegum after shield explosion 2018-04-20 22:04:29 +02:00
hiker
78f96d4818 Temporary 'fixed' banana handling. 2018-04-21 01:32:03 +10:00
Benau
d55d5d0f3f Get local player id from server for GP sorting later 2018-04-20 19:10:40 +08:00
Benau
75a63f6bae Remove unused protocol type 2018-04-20 17:33:07 +08:00
Benau
afa647ac90 Remove unneeded rewind test in skidmarks 2018-04-20 17:22:33 +08:00
Benau
3772045f99 Fix GLES 2018-04-20 17:01:59 +08:00
hiker
359cb4770a Merge branch 'master' of github.com:supertuxkart/stk-code 2018-04-20 18:26:48 +10:00
Benau
611def3c04 Fix sp shader debug handling 2018-04-20 16:25:12 +08:00
hiker
42d21ba9f9 Merge branch 'master' of github.com:supertuxkart/stk-code 2018-04-20 17:59:59 +10:00
hiker
4a0444987a Fixed skidding in network mode. Only the jump duration is part of
the state, the current height of the kart in case of a jump is
then computed (without keeping track of speed etc). Jumping is
now only done during updateGraphics().
2018-04-20 17:31:31 +10:00
Benau
91e1bd3fd1 Try to fix invalid string by store a copied of translation 2018-04-20 14:36:19 +08:00
Benau
a071e022a5 Do the same for race event manager for non-stop network 2018-04-20 14:18:26 +08:00
Benau
32c1255c10 Make sure no dialog exists when going back to lobby 2018-04-20 14:18:05 +08:00
Benau
0c33803159 Let the network game keep going even race paused dialog shown 2018-04-20 13:30:17 +08:00
Benau
e5c991e3d2 Merge remote-tracking branch 'origin/master' into kobato 2018-04-20 13:03:34 +08:00
Benau
2dada03bae Save available karts and tracks from clients in STKPeer
So if this peer disconnects later in lobby it won't affect current players
2018-04-20 12:19:58 +08:00
Benau
bd13f40584 Reset server to accepting client state if no more connected players 2018-04-20 12:19:58 +08:00
Benau
99a25bb837 Implement a proper end and restart race in network 2018-04-20 12:19:58 +08:00
Benau
6eaa88a3f5 Remove the unknown 255 attachment which caused by Endcontroller replacement 2018-04-20 12:19:58 +08:00
Benau
b6caf00bfc Stop race event manager if exiting lobby 2018-04-20 12:19:58 +08:00
Benau
9a32bdcbe1 Fix #1636 2018-04-20 12:19:58 +08:00
Benau
d4fb888ffa Eliminate disconnected kart 2018-04-20 12:19:58 +08:00
Benau
6f30fd0cb0 Clean up ConnectToPeer 2018-04-20 12:19:58 +08:00
Benau
0ecc6e34b9 Add deve request for auto-server port detection 2018-04-20 12:19:58 +08:00
Benau
12e4ba0f18 Check server version again in connection request (for connect-now) 2018-04-20 12:19:58 +08:00
Deve
a7deff5c3e Avoid a crash in general text field dialog.
onEnterPressed can be executed twice - in event handler and in input manager.
2018-04-20 12:19:58 +08:00
Benau
789d75bf26 Remember last sucessfully connected server address 2018-04-20 12:19:58 +08:00
Benau
bd5fc33816 Add billboard text of online player name to non-local player 2018-04-20 12:19:58 +08:00
Benau
d30faece9c Show (online) player name in race GUI 2018-04-20 12:19:58 +08:00
Benau
d6af63da67 Fix possible android crash 2018-04-20 12:19:58 +08:00
Benau
0c688c7df7 Use music phase instead of race phase 2018-04-20 12:19:58 +08:00
Benau
2c6883842e Add connect-now equivalent to online screen
Specify port to allow to connect to one of multiple servers in same machine
2018-04-20 12:19:58 +08:00
Benau
8c72ce66e3 Copy server address to avoid using STKHost in shutdown 2018-04-20 12:19:58 +08:00
Benau
266898ca28 Display server port in log for connect-now GUI later 2018-04-20 12:19:58 +08:00
Benau
88728b074c Fix lobby crash in graphics server 2018-04-20 12:19:58 +08:00
Benau
ba98e7dde9 Remove invalid warning about logging packets 2018-04-20 12:19:58 +08:00
Benau
f37ca7ada5 Don't update skidmark if rewinding 2018-04-20 12:19:58 +08:00
Benau
c3354923db Avoid skipping of vertex buffer update if called more than once per frame 2018-04-20 12:19:58 +08:00
Benau
22f8095cb0 Remove compiler warnings 2018-04-20 12:19:58 +08:00
Benau
beaafb3d79 Fix clang discarding the translated stringw 2018-04-20 12:19:58 +08:00
Benau
2a3d57706a Reset timer after finished loading world
It avoid some clients with slower loading time than anybody else hanging
when rewinding
2018-04-20 12:19:58 +08:00
Benau
969b56844b Don't pause timer in thunderbird phase when in offline game
And don't show the dialog at all in network game when thunderbird phase
2018-04-20 12:19:58 +08:00
Benau
93d1b9136d Clean all previous AI if exists in offline game 2018-04-20 12:19:58 +08:00
Benau
2dd9174b3a Remove unused code in game events protocol 2018-04-20 12:19:58 +08:00
Benau
660ccd1f43 Don't crash if user opened a dialog when server shutting down 2018-04-20 12:19:58 +08:00
Benau
66c05bbdbf Avoid crash if pressing close window button when networking 2018-04-20 12:19:58 +08:00
Benau
eca5a78075 Fix starting race now network string leaking 2018-04-20 12:19:58 +08:00
hiker
a727f524f2 Modified file to automatically trigger cmake on compilation. 2018-04-20 12:19:58 +08:00
hiker
4f94615c49 Moved wrong-way timer from kart into linear world. 2018-04-20 12:19:58 +08:00
hiker
da039bf6a9 Renamed member variable and method to better describe them. 2018-04-20 12:19:57 +08:00
auria.mg
92edfe5121 Attempt for #3164 2018-04-20 12:19:57 +08:00
auria.mg
ca7aac04c7 Fix leak 2018-04-20 12:19:57 +08:00
Deve
6d435a3dcf Fixed mingw compilation 2018-04-20 12:19:57 +08:00
Deve
7e553356ea Fixed windows compilation 2018-04-20 12:19:57 +08:00
Deve
0773e03246 Avoid some code duplication 2018-04-20 12:19:57 +08:00
Deve
fc3b428360 Allow to use scripting on arm64 2018-04-20 12:19:57 +08:00
auria.mg
6d306e64a7 More UI scaling improvements, see #3146 2018-04-20 12:19:57 +08:00
hiker
99d8ad8ac1 Properly fix #3159 (Wrong direction text is displayed twice).
When this is merged with master, the current work around
in #3159 can be reverted.
2018-04-20 12:19:57 +08:00
hiker
da7780a9e1 Removed the storing of DT (which is not necessary when using ticks
now). Removed TimeStep information class etc.
2018-04-20 12:19:57 +08:00
hiker
ac3c99a3ca Removed support for position-based history files, now only
physics history files are supported.
2018-04-20 12:19:57 +08:00
Benau
c2b5e566c0 Merge branch 'game_protocol' 2018-04-20 10:34:19 +08:00
Benau
c926d37bb9 Remove online menu again 2018-04-20 10:31:50 +08:00
Deve
fdea04f34c Simplify setting android project version 2018-04-19 21:05:27 +02:00
Deve
b07a345b1c Merge branch 'version_number_android' 2018-04-19 20:46:20 +02:00
hiker
78bd331cae Fix #3206 (crash in gui-less server). 2018-04-20 00:01:45 +10:00
hiker
5990e172b6 Cleanup unnecessary states and events (i.e. everything up to
the last confirmed state).
2018-04-19 23:54:36 +10:00
hiker
8c420d68d7 Fixed shaky tires (#3051), which was re-introduced by moving the
kart model update the updateGraphics().
2018-04-19 19:33:19 +10:00
hiker
d565ce904d Fixed incorrect comment. 2018-04-19 19:32:31 +10:00
hiker
203c511fab Fixed compiler warnings. 2018-04-19 18:08:48 +10:00
hiker
969f938dce Avoid an assertion error if previously a local race with AI
was done (then #ai karts + player karts != num_karts in
race manager).
2018-04-19 17:44:38 +10:00
Benau
9897a497f5 Fix slipstream crashed in server 2018-04-19 14:48:44 +08:00
Benau
4464d4cd55 Fix quaternion in dynamic draw call 2018-04-19 14:28:26 +08:00
Benau
7fb276e976 Don't update the physical object if it's static 2018-04-19 14:14:37 +08:00
Benau
f8323b9ad1 Remove unneeded skinned mesh shader for road blending shader 2018-04-19 11:49:38 +08:00
Benau
63bb6a467b Fix total_uniforms uninitialized if missing shader program 2018-04-19 11:48:27 +08:00
Benau
c3f2d144b2 Fix m_current_transform uninitialized 2018-04-19 11:46:49 +08:00
Alayan-stk-2
dd13fbd977 Merge pull request #6 from supertuxkart/master
Update fork
2018-04-19 03:40:56 +02:00
hiker
98555a8f35 Merge remote-tracking branch 'origin/master' into game_protocol 2018-04-19 10:57:37 +10:00
auria.mg
c199ba7c63 Bugfix 2018-04-18 20:05:32 -04:00
Qwerty Chouskie
ffe9dad241 Update again 2018-04-18 16:26:58 -07:00
Deve
26d15e9d8b Update android project after recent modifications related to STK project version 2018-04-19 00:25:22 +02:00
hiker
95bba525c5 Refacotring: instead of Moveable::update calling updateGraphics,
this is now called separately once per rendered frame from
the main loop. Started to split other objects to have separate
updateGraphics functions (e.g. to fix skid marks issues caused
by previously updating skidmarks even in rewind).
2018-04-18 22:27:06 +10:00
Alayan-stk-2
be8ae4dca6 Various slipstreaming refinements (#3202)
* New getRecentPreviousXYZ function

* New getRecentPreviousXYZ function

* New getRecentPreviousXYZ function

* General slipstreaming refinements

* Increase the minimum time to get the slipstream bonus

The obsolete parameter is not yet removed as several other files would have to be changed to not trigger an error.

* Slipstreaming characteristics update

* Changed slipstreaming characteristics

* Update slipstreaming characteristics

* Update slipstreaming characteristics

* Update slipstreaming characteristics

* Update slipstreaming characteristics

* Update slipstreaming characteristics

* Remove slipstreaming power engine bonus per kart type

Power engine bonus is already balanced by the different weights : a heavier kart needs more engine power to achieve/maintain the same speed.

* Remove an unused function

* Various slipstreaming refinements

* Pull the XYZ history size from config

* Pull the XYZ history size from config

* Remove unnecessary logs

* Fix a frenchism with fix
2018-04-17 21:09:49 -04:00
hiker
acdba401a9 Merge pull request #3090 from qwertychouskie/simplify-version-number-change
Reduce number of places version number needs to be changed on release
2018-04-18 09:44:13 +10:00
Alayan-stk-2
539ab45b08 Keep the camera looking to the same kart when changing view type (#3205)
Except for first-person view which keeps resetting to the player kart (the FP view itself is linked to it)
2018-04-17 18:49:43 -04:00
Deve
c23f1bbc5b Fixed a bug in generate_assets script 2018-04-17 23:57:10 +02:00
hiker
b17b45d8c5 Fix non-networked races. 2018-04-17 18:48:32 +10:00
hiker
a9a73e643b Save an initial state at t=0 on the client, to make sure they
can always rewind (e.g. in case that an event from another client
arrives before a state from the server).
2018-04-17 18:42:16 +10:00
Alayan-stk-2
c72cf74138 Fixes server_only build issue (#3199) 2018-04-16 20:16:51 -04:00
hiker
70e7625282 Don't split a game state upon receiving into separate chunks (one
for each rewinder), instead save only one state with all rewind
buffers.
2018-04-17 09:17:02 +10:00
Alayan-stk-2
131011d01e Better GP points distribution (#3178) 2018-04-16 18:32:25 -04:00
auria.mg
54d3476c13 Merge branch 'FixGaugeI' 2018-04-16 18:29:00 -04:00
Alayan-stk-2
e39735934b Merge pull request #5 from supertuxkart/master
Update fork
2018-04-16 23:09:50 +02:00
hiker
292243ddad Merge branch 'STK-helper-SStreaming' 2018-04-16 23:04:03 +10:00
hiker
0637dd0fa1 Merge branch 'SStreaming' of https://github.com/STK-helper/stk-code into STK-helper-SStreaming 2018-04-16 22:37:49 +10:00
Alayan-stk-2
ba2df185e2 Fixes speedometer saturation 2018-04-16 14:34:02 +02:00
Alayan-stk-2
15ff516b53 New helper function for drawing meters 2018-04-16 14:28:15 +02:00
Alayan-stk-2
746d862e84 Various improvements
1)Use a new helper function for the drawing as the code was nearly identical at three different places
2)Fixes the coloring of transparent points : full color as intended, rather than black
3)Additional drawing points to properly manage the gauge_goal going outside of the gauge_full space
2018-04-16 14:27:27 +02:00
Alayan-stk-2
63127f553f Better gauge goal 2018-04-16 14:08:28 +02:00
Alayan-stk-2
8bd6cafddf Attempt to fix #3195 2018-04-16 12:46:23 +02:00
hiker
3167180d7f Refactored state saving into a separate function to later allow
saving of an initial local state.
2018-04-16 17:25:50 +10:00
auria.mg
40372319f6 At general request, remove follow-the-lreader from story mode 2018-04-15 18:31:13 -04:00
auria.mg
264fac392e Ajust forgotten texture 2018-04-15 18:08:08 -04:00
auria.mg
655faa81a0 Reduce speedometer images to a more reasonable size 2018-04-15 18:03:02 -04:00
Deve
868dbf792c Avoid a crash in general text field dialog.
onEnterPressed can be executed twice - in event handler and in input manager.
2018-04-15 21:14:43 +02:00
Deve
32acae7507 Merge pull request #3194 from psypherium/patch-2
minor Update README.md
2018-04-15 20:17:15 +02:00
Psypherium
8341c3657e minor Update README.md
Refine syntax to match protocol
moved one line back into code fence.
2018-04-16 02:59:56 +10:00
samuncle
50e433afca Add shader specialized for roads, still some stuff to be tuned 2018-04-15 09:37:55 +02:00
Alayan-stk-2
080cecd400 Fix member variable name 2018-04-15 06:54:38 +02:00
Alayan-stk-2
8797f5b1fe Fix member variable name 2018-04-15 06:53:09 +02:00
Alayan-stk-2
8f2c118e33 Improved AI testing (#3184)
* New command line option for testing

* Fix command line option

* Allow races from command line without player kart

* Use the new command line option for testing

Also increase the default number of karts for testing from 9 (including player kart) to 15 (no player kart) for reduced randomness.
And set the default test difficulty to SuperTux
2018-04-14 21:07:12 -04:00
Alayan-stk-2
ff55703457 Nitro fixes (#3190)
* Nitro fixes

* Remove the attachment of a kart on elimination
2018-04-14 20:56:16 -04:00
Psypherium
45e5612985 Update README.md (#3181)
* Update README.md

- Add recompilation instructions
- Add build threading instructions
- Rearranged 1 sentence with passive voice to match the rest of the readme

* Update README.md

* Update README.md

Clarification

* Update README.md

Rephrasing, reformatting
2018-04-14 20:42:17 -04:00
Alayan-stk-2
f16ed91bd5 Go back to the overworld in losing challenges (#3192) 2018-04-14 20:38:23 -04:00
Deve
45aa9c2e3a Minor tweak for init android dialog 2018-04-14 22:39:51 +02:00
hiker
896b631f97 Removed unused skidding code. 2018-04-15 00:40:41 +10:00
hiker
b4107bfc25 Added a new constructor taking a string and port number (including
test cases) - mostly useful for debugging.
2018-04-15 00:32:30 +10:00
Alayan-stk-2
9d1abed0cd Remove erroneous chars at EOF 2018-04-14 04:37:55 +02:00
Alayan-stk-2
39d6178f64 Checks to avoid undefined operations on moving textures 2018-04-14 04:09:27 +02:00
Alayan-stk-2
79fd0f12a5 Fixes a too small index 2018-04-13 23:32:37 +02:00
Alayan-stk-2
607ee6ed75 Merge pull request #3 from supertuxkart/master
Update fork
2018-04-13 21:57:35 +02:00
Alayan-stk-2
0c4c5fbe80 Slipstreaming characteristics completely reworked 2018-04-13 08:50:10 +02:00
Alayan-stk-2
bffebe32fc Update header for slipstreaming improvements 2018-04-13 08:41:57 +02:00
Alayan-stk-2
f41b537477 Completely revamps slipstreaming 2018-04-13 08:40:03 +02:00
Alayan-stk-2
b2bdd49931 Allow instantSpeedIncrease use from Kart 2018-04-13 04:36:35 +02:00
Alayan-stk-2
885eaa516c Allow instantSpeedIncrease use from Kart 2018-04-13 04:35:48 +02:00
Alayan-stk-2
7e0bb71d64 Allow instantSpeedIncrease use from Kart 2018-04-13 04:34:45 +02:00
Alayan-stk-2
c490db927b Remember previous positions 2018-04-12 21:45:53 +02:00
Alayan-stk-2
3425fb3c70 Remember previous positions
Use an array of 30 Vec3 to remember the previous kart positions 0,25s before. Each one is updated with the previous one, starting from the oldest.

time_previous_counter is used to keep the time of the oldest as close as possible to 0,25s ; in case the physics ticks proceed faster or slower than 1/120th of second.
2018-04-12 21:41:09 +02:00
Alayan-stk-2
8d1fc02b0d Remember previous positions 2018-04-12 21:35:54 +02:00
Alayan-stk-2
64168c2f67 New setQuad function 2018-04-12 21:33:59 +02:00
Alayan-stk-2
df2714ae71 New setQuad function
Allows to easily update the coordinates of a quad (used for dynamic slipstreaming quad)
2018-04-12 21:33:33 +02:00
Alayan-stk-2
26d4cf4795 Update for new sstreaming characteristics 2018-04-12 21:30:49 +02:00
Alayan-stk-2
85efc2d535 Update for new sstreaming characteristics 2018-04-12 21:18:03 +02:00
Alayan-stk-2
f9669c2d09 Update for new sstreaming characteristics 2018-04-12 21:17:37 +02:00
Alayan-stk-2
0342f89133 Update for new sstreaming characteristics 2018-04-12 21:17:03 +02:00
Alayan-stk-2
31a58c1b23 Update for new sstreaming characteristics 2018-04-12 21:16:48 +02:00
Alayan-stk-2
27ab829f59 Update tool for new sstreaming characteristics 2018-04-12 21:14:41 +02:00
hiker
6490551533 Uodate physics max speed after a rewind to make sure
the physics have the right max and min speed defined.
2018-04-13 01:07:08 +10:00
hiker
0328d05631 Updated and disabled debug output. 2018-04-13 00:53:59 +10:00
hiker
7bbaebe594 Fixed skidding rewind by adding all necessary variable to skidding
state and adding timed impulse to physics state of kart.
2018-04-13 00:44:53 +10:00
Benau
2fdc6b0de8 Fix billboard text 2018-04-12 16:41:13 +08:00
Benau
ef2f12f568 Remove unneeded skinned mesh version for tilling and vertical mapping shader 2018-04-12 16:35:25 +08:00
Benau
3742adf5ee Use 2 digits for shader order 2018-04-12 16:31:01 +08:00
Benau
295c793f91 Use 4 32bit floats for quaternion for sam's wall 2018-04-12 16:27:48 +08:00
Deve
4abdb14a4c Allow to use bigger fonts on desktop version for easier debugging 2018-04-11 21:39:34 +02:00
Deve
c8c390cdaa Tweak nitro meter in android race gui 2018-04-11 21:09:40 +02:00
Alayan-stk-2
8f7502e204 Fix incorrect item utilisation in zipper path
Also remove the code logic which tells to use a zipper instead of nitro (not always useful, and should be managed inside handleNitroAndZipper anyway) ; and fixes the code disabling the use of zipper at start in time-trial (the previous code made the AI use it at random, when it's sometimes better to not use it at all at this moment and to wait later).
2018-04-11 19:00:46 +02:00
Alayan-stk-2
5b4a938165 Bubblegum and Cake improvements 2018-04-11 16:27:49 +02:00
Alayan-stk-2
3f5ab23e50 Make code more compact 2018-04-11 05:35:50 +02:00
Alayan-stk-2
dfb2ff282a Remove anvil handling in arena AI 2018-04-11 04:16:50 +02:00
Alayan-stk-2
074065f274 Remove anvil handling (obsolete) 2018-04-11 04:16:13 +02:00
Alayan-stk-2
22b69e10f4 Check that there is a kart behind/ahead before testing properties 2018-04-11 04:08:21 +02:00
Alayan-stk-2
4496caeadf Move the shield check for the swatter
Reduce unnecessary computation and fix compilation
2018-04-11 03:26:31 +02:00
Alayan-stk-2
8f4744b061 Improved speedometer and nitrometer (#3177)
* New speedometer and nitrometer gui

* Update Speedometer and Nitrometer

* Improve nitro background

* Improve nitro bar drawing

* Improved meters

* Improve meter and rank drawing

* Agressive smoothing and higher visibility

* Helper function for meter drawing

* Helper function for meter drawing

* Improved meters

* New nitro bar, slight 3D effects and hopefully fix compilation

* Update license
2018-04-10 21:14:50 -04:00
Alayan-stk-2
0025ef6305 New item handling functions 2018-04-11 02:54:24 +02:00
Alayan-stk-2
6e7f0051e0 New item handling functions 2018-04-11 02:52:48 +02:00
Alayan-stk-2
ee0b64eb69 Merge pull request #2 from supertuxkart/master
Update fork
2018-04-11 02:06:19 +02:00
Deve
1ee5f3aa8a Keep acceleration sensitivity for up/down button when accelerometer is enabled 2018-04-10 21:09:05 +02:00
auria.mg
a4159a9b1a Update translations 2018-04-09 20:33:36 -04:00
auria.mg
ca771f6218 Cleanup input.xml file (remove unused properties in some cases), add a little inline doc to make it a little easier to customize 2018-04-09 19:28:22 -04:00
Deve
4ef196d086 Fixed minor bug in touch settings dialog 2018-04-10 00:25:38 +02:00
Deve
3f69fd37ed Some improvements for touch device 2018-04-10 00:22:09 +02:00
hiker
bfc832d5de Removed debug output. 2018-04-10 00:45:40 +10:00
hiker
9eb59522c6 Added remaining jump time to skidding state (since the jump time
is used to determine if a kart can skid again or not).
2018-04-10 00:36:29 +10:00
hiker
cca7563bec Avoid issue that when rewinding the latest state is skipped (so
it rewinds from an even earlier state).
2018-04-10 00:32:12 +10:00
hiker
8841200a1c Fixed compilation in debug mode. 2018-04-09 21:57:10 +10:00
auria.mg
7543240db0 Merge branch 'Fix_3167_attempt' 2018-04-08 20:51:54 -04:00
auria.mg
61469a6806 Mitigate AI-related edge cases of original fx 2018-04-08 20:47:24 -04:00
hiker
9eadd2e64d Fixed handling of events that happen at the same time when
m_current points to one of the events.
2018-04-09 08:27:48 +10:00
hiker
1e388c434f Update comment. 2018-04-08 22:12:28 +10:00
hiker
364733882f Code simplification. 2018-04-08 22:12:04 +10:00
samuncle
434f74b4ac Add vertical / horizontal mapping for snow, sand, moss, etc (everything going on top of something) 2018-04-07 22:16:43 +02:00
samuncle
daf4721fa9 Add a mitigation for tilling textures. Very usefull for terrains, etc 2018-04-07 04:11:11 +02:00
samuncle
32016f0118 Add tilling mitigation shader 2018-04-06 16:25:39 +02:00
Deve
4b5c3a37fd Increase target sdk version 2018-04-05 22:18:11 +02:00
Deve
4b972b73c7 Ignore paths that are not writable in assets manager 2018-04-05 22:18:11 +02:00
Arthur-D
9fb88b3eb7 Update README.md
Changed link to point to https://sourceforge.net/projects/supertuxkart/files/SuperTuxKart/ instead of a specific version (which already was outdated and pointed to 0.9.2).
2018-04-03 14:40:46 +02:00
Benau
edbc7233d2 Allow to use space in command line with "" quoting the parameter 2018-04-01 12:34:32 +08:00
Benau
1b6e8f11b8 Make sure lobby display the quick play server name 2018-04-01 11:08:02 +08:00
Benau
47c679e398 Disable wan buttons in init in case of connect-now going back 2018-04-01 10:24:10 +08:00
Benau
6b5a01755c Clean added player if going to login screen 2018-04-01 09:56:03 +08:00
auria.mg
c488c63d38 Rollback part of the recently merged PR that did not belong with AI changes 2018-03-31 21:16:25 -04:00
Alayan-stk-2
8fae521a94 AI item handling improvements (#3143)
* Prepares for advanced item and nitro usage strategy

Replace the bool determining if usage is random or not by an int allowing several levels of AI item usage.

Add NITRO_ADVANCED mode for nitro usage.

* Adapt for more item and nitro levels

The XML files have to be changed. The logic for the item_skill still has to be done.

* Preparation for the preferred kart in GP

* Preparation for the preferred kart in GP

* Preparation for the preferred kart in GP

* Prepares for advanced item and nitro usage strategy

*  Prepares for advanced item usage strategy

* Preparation for the preferred kart in GP

* Parametrized AI_skill level

* Fix typo

* Fix typo

* Fix typo

* Fire items with a shield on in unrestricted mode

* New function allowing AI to know what flyable is incoming

* New function allowing AI to know what flyable is incoming

* Fix typo

* Update bubble gum AI to new system

In addition of making some functionality depends on AI levels, there are a few overall improvements for the better AIs :
1)Remove the "drop the gum in the last lap" logic. Bad strategy since ever the shield has been added to the gum
2)The protection against flyable is not used if the user holds a swatter and the flyable is a plunger 
3)Holding a swatter no longer blocks the AI from using the shield against a flyable nor from using the gum behind
4)The shield is used to remove bad attachments (bomb, parachute, anvil)
5)Reduce the distance with the kart behind when dropping the gum to reduce misses

* Update swatter AI to new system

The swatter could benefit from several kind of usage improvement. This patch introduce only one, but probably the more important : the better AIs now use it to remove bad attachments

* Fixing #3139

* Fix compile error

* Fix

* Fix compilation

* Fix compilation

* Fix compilation

* Update variable

* Update variable

* Fix non-breaking space issue

* Fix typos

* Revert for compilation

* Revert for compilation

* Update cake AI to new system

* Redefine HandleItems to be position aware

* Redefine HandleItems to be position aware

Also changes bowling ball for the new system.

* Activate shield before hitting box or bad item

Meant for higher AIs.

* Increase lookup distance

Some distance will be needed for the switch

* Temporary fix to avoid a nitro regression

* Fix typo

* Fix typo

* Bubble gum improvements ; explicitely calculate distances to items

* Update Switch to the new system ; use item-distance awareness

Also fix a missing parenthesis

* Change nitro-usage to a numerical parameter

* Change nitro-usage to a numerical parameter

Also update comments to explain the new item-skill

* Change nitro-usage to a numerical parameter

* Change nitro-usage to a numerical parameter

* Change nitro-usage to a numerical parameter

* Update handleNitroAndZipper to the new system

Also fix a naming error, remove the 95% speed limitation on nitro usage

* Adds a small engine boost to nitro

Currently, nitro is very counter-intuitive as it only affects max_speed. This change corrects it. The effect remains small to not upset balance. It is mostly felt when below max_speed, so the can of nitro potential power doesn't change much.

* Improve AI nitro handling

Summary :
1)Makes the AI use nitro by bursts, greatly improving its efficiency
2)Makes the AI use nitro when close to max speed (to unlock the max speed increase)
3)Remove the overtaking logic as the AI will now use its nitro anyway
4)The AI tries to keep a reserve of nitro for use towards the end of the race.

* Allows estimated finish time to be checked at any lap, fix a crash

* Makes the AI use its nitro reserves

* Better tuning for nitro reserve usage to reduce the probability of unused nitro

* Remember last used powerup for AI

* Remember last used powerup for AI

* Remember last used powerup for AI

* Remember last used powerup for AI

* Remember last used powerup for AI

* Remember last used powerup for AI

* Fix compilation

* AI don't wait between usage of items of different types

* Use floats for Parachute duration

* Revert

* Nitro use when trying to pass a bomb improved

* Fix broken time check

* Take into account the kart-specific fadeout to calculate time between bursts

* Improvements to bursts and to use of the reserve at the end

* Improve comments explaining item_usage_skill and nitro_usage

* Make LastUsedPowerup a PowerupType

* Make LastUsedPowerup a PowerupType

* Make LastUsedPowerup a PowerupType

* Make LastUsedPowerup a PowerupType

* Make last_used_powerup a PowerupType

* Make last_used_powerup a PowerupType

* Fix compilation

* Fix compilation

* Revert

* Revert

* Finally fix compilation

* Finally fix compilation

* Change shield radius per difficulty

A reduced non-null shield radius reduces false positives as long as it is big enough to get a few frames during which the object is inside the radius.

* Improve Projectile closeness management

* Improve projectileCloseType

* Improve projectileCloseType

* Fixes indentation

* Fix lastUsedPowerup initialization

* Fix the last used powerup type

* Rename projectileCloseType

* Rename projectilCloseType

* Clarify comment and update projectileCloseType to new name

* Reuse a member RandomGenerator

* Fixes getLastUsedPowerup type

* Fixes comparison

* Fixes type
2018-03-31 21:09:57 -04:00
auria.mg
9250e66ff2 Improve 3167 patch 2018-03-31 21:03:56 -04:00
Benau
5920ac5406 Improve server-only run, hide all sp shader debug message 2018-04-01 08:51:12 +08:00
auria.mg
9fe4e2c30e Improve 3167 patch 2018-03-31 20:49:45 -04:00
auria.mg
19338482a8 Improve 3167 patch 2018-03-31 20:38:09 -04:00
auria.mg
04b6f67573 FIx #3167 attempt 2018-03-31 19:42:08 -04:00
Benau
852c78729f Adjust connect-now for new lobby 2018-03-31 16:14:22 +08:00
Benau
7f17d7ab25 Rebuild the network screen stacks up to wan / lan screen 2018-03-31 15:23:20 +08:00
Benau
1a6c219d3f Fix voting timeout in case of time zone difference
Also allow voting when pressing the spinner or reverse checkbox
2018-03-31 14:35:55 +08:00
Benau
47a86cc36f Add initial support for GP and soccer info in lobby 2018-03-31 01:19:23 +08:00
Benau
6c56939f49 Allow to reuse same stkgui for different screen instance 2018-03-31 00:11:39 +08:00
hiker
1b72d88593 Merge remote-tracking branch 'origin/kobato' into game_protocol 2018-03-31 01:12:22 +11:00
hiker
6474fbf73e Modified file to automatically trigger cmake on compilation. 2018-03-31 00:39:49 +11:00
hiker
b1013f6030 Merge remote-tracking branch 'origin/network_improvements' into game_protocol 2018-03-31 00:38:57 +11:00
hiker
7e3fc660f1 Moved wrong-way timer from kart into linear world. 2018-03-31 00:16:47 +11:00
hiker
a3f68f621f Renamed member variable and method to better describe them. 2018-03-30 23:22:00 +11:00
hiker
17200d7809 Merge remote-tracking branch 'origin/master' into game_protocol 2018-03-30 22:47:30 +11:00
hiker
10a2ae0e2a Properly fix #3159 (Wrong direction text is displayed twice).
When this is merged with master, the current work around
in #3159 can be reverted.
2018-03-30 22:46:32 +11:00
hiker
2192d1383f Removed the storing of DT (which is not necessary when using ticks
now). Removed TimeStep information class etc.
2018-03-30 18:32:48 +11:00
auria.mg
a384866e6a Attempt for #3164 2018-03-29 19:23:51 -04:00
Benau
b1ad185d50 Only trying to connect without aloha for WAN only
So the checking of lan direct socket handling in stk host will have
effect
2018-03-29 12:56:01 +08:00
auria.mg
e2645c1060 Fix leak 2018-03-28 19:45:24 -04:00
Benau
1b0bf98766 Fix typo 2018-03-28 13:32:38 +08:00
Deve
0093a8eaab Fixed mingw compilation 2018-03-27 23:03:47 +02:00
Deve
756ec632ae Fixed windows compilation 2018-03-27 23:02:39 +02:00
Deve
eb28126f56 Avoid some code duplication 2018-03-27 23:02:09 +02:00
Deve
3666d1a2ec Allow to use scripting on arm64 2018-03-27 23:01:46 +02:00
Benau
01c1287900 Always remove kart selection screen to avoid setRootID -1 assertion 2018-03-27 16:19:30 +08:00
Benau
c6fa384d94 Fix uninitialized values and broken local kart selection if reenter 2018-03-27 15:44:19 +08:00
Benau
b75428e4e5 Use distance with km 2018-03-27 11:56:36 +08:00
auria.mg
b778b91b5e More UI scaling improvements, see #3146 2018-03-26 21:24:48 -04:00
Benau
ce8a15d90c Add online id with player name for easier banning 2018-03-27 01:23:54 +08:00
Benau
5eb436384f Remove commented out code 2018-03-27 01:15:12 +08:00
Benau
70def13ca2 Use a more sophiscated server-client token validation 2018-03-27 01:02:31 +08:00
Benau
c8dadf76f1 Remove LatencyProtocol now we have server distance and ping in lobby 2018-03-26 14:19:33 +08:00
Benau
a685d5c212 Adjust direct and formal connection timeout 2018-03-26 14:15:05 +08:00
Benau
b5ff84bd46 Further clean up create server screen 2018-03-26 12:37:06 +08:00
Benau
8db959a755 Fix server selection column proportion 2018-03-26 12:27:40 +08:00
auria.mg
ee57bbd6b4 As suggested by deveee, make the server creation screen more scalable. Also cleanup/simplify a bit 2018-03-25 18:10:44 -04:00
Benau
0e2112d7f0 Add server distance calculation 2018-03-26 02:11:04 +08:00
Benau
42e1873458 Fix possible null pointer dereference 2018-03-26 00:32:26 +08:00
Benau
946a902f98 Adjust server creation screen for 1280x720
And add some more game modes
2018-03-24 15:44:15 +08:00
Benau
85895074aa Merge branch 'origin/master' 2018-03-24 09:31:06 +08:00
auria.mg
75c1739ff2 GUI tweaks 2018-03-23 20:38:16 -04:00
Benau
c3ea7f1088 Ignore the first 15 seconds for ping result 2018-03-24 08:20:27 +08:00
Benau
076fb3273f Add 1500ms timeout for direct connection to wan server
This way player can instantly connect to firewall-less server
without waiting for polling in stk addons server
2018-03-24 00:53:42 +08:00
Benau
025ca63df0 Display ping to server in lobby 2018-03-23 22:19:44 +08:00
Benau
1e2cb2dc4a Fix clang screen.hpp warning 2018-03-23 20:20:09 +08:00
Benau
3ee3d8d5bd Randomly use stun servers of the low ping from top-half of the list 2018-03-23 18:51:26 +08:00
Benau
52dc38d03b Use human readable ip for ban list
And update MapUserConfigParam to use initializer_list default value
2018-03-23 17:22:03 +08:00
Benau
e5c66d541b Hide friend request button if already made friend 2018-03-23 15:00:19 +08:00
Benau
dac7158ce0 Show WAN server owner if it's localhost or friends' 2018-03-23 13:41:07 +08:00
Benau
61b6389764 Use crown icon for server owner 2018-03-23 10:08:48 +08:00
Benau
ef15a1881c Better default focus for network dialog 2018-03-23 10:06:04 +08:00
auria.mg
2cabf3594f GUI bugfix 2018-03-22 20:55:23 -04:00
Benau
449365b5b6 Let server take splitscreen players into account for max players 2018-03-22 15:09:52 +08:00
Benau
0599e8c0d7 Fix broken network kart selection for some keyboard configuration 2018-03-22 14:53:29 +08:00
Benau
d8b68a2cbc Remove guest account in network splitscreen 2018-03-22 14:43:16 +08:00
Benau
ebadc84945 Fix assertion when going back fron network to normal kart selection screen 2018-03-22 13:26:44 +08:00
Benau
c026261e0f Improve splitscreen dialog for easier adding 2018-03-22 12:52:37 +08:00
Benau
1b4caa36af Use a better wording 2018-03-22 11:43:09 +08:00
Benau
e9c956b357 Fix possible crash in network splitscreen lobby 2018-03-22 11:42:40 +08:00
Deve
be037781b8 Tweak screen keyboard layout 2018-03-21 23:06:15 +01:00
Benau
152dfe7c55 Add toggling of network splitscreen in online menu 2018-03-22 01:38:29 +08:00
Benau
6fca802c8e Add network split screen kart selection 2018-03-21 15:41:44 +08:00
Benau
e63124ea3e Rename stun list to avoid conflicts with old config 2018-03-21 10:48:37 +08:00
auria.mg
41cd33ce55 Fix Wrong Way message, fixes #3159 2018-03-20 20:05:34 -04:00
Alayan-stk-2
a27dd674a0 Change camera view in debug to the previous/next kart (#3158)
* Change camera view from one kart to the previous/next with F5-6 keys or with menu buttons

* Simplify code

The kart_num/real_num distinction was part of the base code Benau did ; but it is completely redundant after the changes I did to the way kart_num is calculated (it was previously a static int, it's now an unsigned int).
2018-03-20 19:39:18 -04:00
Deve
db3399500f Better scaling initial android dialog 2018-03-20 21:38:06 +01:00
Deve
0471202c9c Fixed stupid isAccelerometerActive condition 2018-03-20 20:55:26 +01:00
hiker
17b3a79997 Removed support for position-based history files, now only
physics history files are supported.
2018-03-20 23:52:02 +11:00
Benau
4379244f3e Adjust based on auria's feedback 2018-03-20 14:56:17 +08:00
Benau
dd3a544834 Use std atomic for timeout 2018-03-20 09:59:14 +08:00
Alayan-stk-2
1dedd915ad Update the track list and reorder it to alphabetic order (#3154) 2018-03-19 20:50:31 -04:00
Benau
e58d86d4d5 Merge branch 'origin/game_protocol' 2018-03-20 08:32:45 +08:00
hiker
e1a2f68073 Fixed warning. 2018-03-20 10:25:06 +11:00
Deve
193ba6909f Represet special keys on screen keyboard by symbols 2018-03-20 00:10:13 +01:00
hiker
4fd205773e Moved graphical weather update into separate update function that
is only called once per rendered frame.
2018-03-20 09:58:34 +11:00
hiker
950fc7a14f Fixed ticks vs time mix up. 2018-03-20 09:51:39 +11:00
hiker
78b120a04f Moved wiimote handling into input manager. 2018-03-20 09:42:26 +11:00
hiker
c456edd9f2 Convert more time handling to handling ticks. 2018-03-20 09:25:39 +11:00
Deve
f559627951 Allow to repeat backspace key on screen keyboard 2018-03-19 23:06:20 +01:00
Benau
d436446de2 Add no-kart-selection network splitscreen 2018-03-20 02:54:10 +08:00
Benau
cfd1de43bb Display all votes in the RHS of tracks screen 2018-03-19 15:08:38 +08:00
auria.mg
ee64a22349 GUI bugfix 2018-03-18 20:22:50 -04:00
Deve
900beae4b2 Allow to create x86_64 android package.
64-bit packages will be required by google.
2018-03-18 21:56:36 +01:00
Deve
203d045485 More improvements for gui on android 2018-03-17 22:28:45 +01:00
Benau
6a963ffcc9 Add POSIX equivalent for detecting parent termination 2018-03-17 12:26:37 +08:00
Benau
e66c4eed35 Properly hide the rectangle box in ghost track screen 2018-03-17 11:12:21 +08:00
Deve
26419e5ee0 Better gui scaling on android 2018-03-16 23:00:58 +01:00
Benau
f9d2d539ff Server never has local player at the moment 2018-03-16 23:09:21 +08:00
Benau
bb7c3c0de3 Move voting timeout to user config 2018-03-16 21:49:14 +08:00
Benau
1a852b7f22 configRemoteKart needs to include the random kart 2018-03-16 21:32:12 +08:00
Benau
8c702a376e Move assign mode to exit callback 2018-03-16 21:31:46 +08:00
Benau
78ac3a922d Fix compiler warnings 2018-03-16 19:06:20 +08:00
Benau
0fef316313 Use lock and push_back 2018-03-16 17:42:21 +08:00
Benau
362b74a77c For server-only there can be no player profile 2018-03-16 17:38:23 +08:00
Benau
758581d13c Merge branch 'origin/game_protocol' 2018-03-16 17:11:40 +08:00
Benau
82be7572a1 Use the new method to connect / start game 2018-03-16 17:11:23 +08:00
Benau
a5c1dbb446 Move voting to server lobby 2018-03-16 14:36:11 +08:00
Benau
d6936c5746 Add remaining time to vote message 2018-03-16 12:45:38 +08:00
Benau
cf898c2795 Remove waiting for other screen now that you can instantly know votes 2018-03-16 11:35:16 +08:00
auria.mg
f8f77edc47 Fix GUI skin issue 2018-03-15 21:29:45 -04:00
Deve
98a7b5a03e Send text message when pressing enter on android keyboard 2018-03-15 21:35:29 +01:00
Deve
3d787f4134 Send text message when pressing enter on android keyboard 2018-03-15 21:35:12 +01:00
Benau
2cedd6729a Try to connect anyway even without aloha message
This should allow clients with strong firewall to connect to
server not behind any firewall
2018-03-16 01:14:43 +08:00
Benau
f78276a930 Show player vote in message queue for immediate effect 2018-03-16 00:54:02 +08:00
Benau
bc56c07c51 Hide the chatbox when disable chatting 2018-03-15 14:02:29 +08:00
Benau
e715140835 Change for new server code in stk-addons 2018-03-15 12:37:02 +08:00
Benau
f7b3950cd4 Fix cursor stop working after pressing enter 2018-03-15 10:39:02 +08:00
auria.mg
2e981b33e7 Patch textbox crash 2018-03-14 21:26:44 -04:00
Deve
38a4e06a6c Avoid window size to be larger than available space.
When window size is equal to screen resolution and user selected windowed mode, we can assume that he wants maximized window.
2018-03-14 22:47:31 +01:00
Deve
9c3998be0e Fixed server_only compilation 2018-03-14 21:43:28 +01:00
Deve
4f51c9c915 One more valgrind fix 2018-03-14 21:02:25 +01:00
Deve
a3c0254f81 Better fix for login screen 2018-03-14 20:49:05 +01:00
Benau
532bd88062 Avoid possible packet loss
The connect to peer done by server will auto terminate if same peer
from same port has connected already
2018-03-15 00:41:01 +08:00
Benau
60d822da50 Only broadcast aloha to self if address is really localhost 2018-03-15 00:34:59 +08:00
Benau
1b8d4c80dc Initial work to port network profile to use weak_ptr 2018-03-14 15:48:02 +08:00
Benau
ea8ba470d6 Use (s) for server 2018-03-14 10:07:54 +08:00
Benau
2e0558323b Merge branch 'origin/network_improvements' 2018-03-14 10:05:07 +08:00
auria.mg
f3d1995033 Change assert into warning, it's definitely not fatal 2018-03-13 21:39:27 -04:00
Deve
6621196266 Don't close STK after login screen 2018-03-13 21:22:21 +01:00
Benau
5699a86586 Allow toggling the display of only private server 2018-03-14 00:50:19 +08:00
Benau
901c5eabec Allow specifying server password in dialog 2018-03-13 16:04:59 +08:00
hiker
d3a60356c9 Merge remote-tracking branch 'origin/fix-timestep' into game_protocol.
Started to use ticks instead of time floating point values in networking.
2018-03-13 18:37:12 +11:00
Benau
c73536263f Add password protected and version info to server 2018-03-13 14:39:20 +08:00
Benau
fe0adadd16 Simplify linebreak 2018-03-13 12:52:04 +08:00
Benau
a33a9a040b Allow text box widget to listen enter event 2018-03-13 09:00:44 +08:00
Deve
952b973b89 Valgrind complains about changing variable after closeScreen 2018-03-12 23:03:15 +01:00
Deve
fd14c7fa91 Update android tv banner.
Thanks to Mr.XX99 for his work.
2018-03-12 21:49:09 +01:00
Benau
b72cf4f406 Don't assert peer size for client as the listening thread is delayed-start 2018-03-13 01:03:02 +08:00
Benau
8330919a3a Add missing stkgui for lobby chat 2018-03-13 00:51:08 +08:00
Benau
0f6dbbb4a0 Add default-disabled lobby chatting 2018-03-12 16:51:30 +08:00
Benau
25da48634d Add kick ban in network console configurable in config.xml 2018-03-12 13:59:38 +08:00
Benau
bb3bcdca3e Change int to int map to uint32_t for server ban list 2018-03-12 12:39:16 +08:00
Benau
93c910f18b Use a uniform translated timed out string 2018-03-12 11:38:37 +08:00
Benau
d527c0eee2 Use icon to identify server owner, online and offline players
Also hide the friend request button for offline players
2018-03-12 11:28:13 +08:00
Benau
ffd6e84759 Stop threads of texture loading before destroying shader manager 2018-03-12 09:21:30 +08:00
auria.mg
48f2aa3da4 Fix bubblegum flashing, fixes #3133 2018-03-11 19:35:59 -04:00
auria.mg
361e03c375 Fix more keyboard issues, fixes #3131 2018-03-11 19:06:48 -04:00
auria.mg
2087a72cf3 Improve keyboard-only navgation. See #3131 2018-03-11 18:50:55 -04:00
Benau
95208967cf Add kicking player for server owner 2018-03-12 02:05:38 +08:00
Benau
3bbec8aa27 Initial work on lobby redesign 2018-03-12 00:18:53 +08:00
Benau
4dea283965 Only run enet command in listening thread
And use sleep instead of timeout for new code
2018-03-10 14:56:32 +08:00
Benau
c50cdd9d68 Only start listening after trying connect to a server 2018-03-10 13:20:18 +08:00
Benau
98e3d82921 Add kicking players and properly recieve disconnect events 2018-03-10 12:34:33 +08:00
Benau
22ca1cb751 Avoid sending to wrong peer in case of disconnection 2018-03-10 01:07:23 +08:00
Benau
8e1cc2b0c8 Make latency protocol work with weak pointer of STKPeer 2018-03-10 01:00:10 +08:00
Benau
5600d01b2c Use shared_ptr of STKPeer if needed 2018-03-09 23:54:13 +08:00
Benau
e439e68b60 Move protocol start after creation of STKHost 2018-03-09 23:01:20 +08:00
Benau
5756fd5f48 Use a mutex to make only 1 enet_peer_send happening
In reality we need mutex to protect enet_host_service, but it leads
to seriously increased locked time
2018-03-09 23:00:47 +08:00
Benau
d538dfc7e6 Header cleanup 2018-03-09 21:17:31 +08:00
Benau
9c46b70042 Use peerExists to check for establishment of connection 2018-03-09 19:05:25 +08:00
Benau
dd2e32a953 Implement a thread-safe list of STKPeer
Block re-connect from the same ip and port and clean up add or
remove of peers
2018-03-09 18:33:19 +08:00
Benau
db68756fd6 Use mutex to prevent joining of players when start selection 2018-03-09 09:22:13 +08:00
Deve
d271e27590 Show progress bar before new data is extracting. It will at least show that the game is not hanged and is doing something. 2018-03-08 21:45:20 +01:00
Benau
2d86adce3c Fix quitting the server 2018-03-08 13:19:24 +08:00
Benau
0b00640760 Let stk host clean up server id file 2018-03-08 12:00:36 +08:00
hiker
8cf885652f Merge remote-tracking branch 'origin/master' into game_protocol 2018-03-08 09:51:00 +11:00
hiker
fa624c90e1 Merge remote-tracking branch 'origin/master' into fix-timestep 2018-03-08 09:50:14 +11:00
hiker
e4ea3291b1 Fixed world time differences between client and server. 2018-03-08 09:47:42 +11:00
Benau
cd713f6c99 Move hiding icons for android to beforeAddingWidget 2018-03-07 11:04:00 +08:00
Deve
022dd68a17 Some fixes for gamepad on android 2018-03-06 23:23:15 +01:00
Benau
aa06d3f4e2 Always use lan connection for connect-now 2018-03-07 00:56:43 +08:00
Benau
269c9318e5 Send a broadcast in case of lan connection for wan server 2018-03-07 00:51:59 +08:00
Benau
177c7b147c Fix connect to wan server in lan network 2018-03-06 16:18:57 +08:00
Benau
1dc7f3aa4e Move port configuration to user and stk config 2018-03-06 15:38:51 +08:00
Benau
88e9d6a34c Fix server selection screen loading dots 2018-03-06 14:40:29 +08:00
Benau
821a00c039 Fix some corruption in server only stk 2018-03-06 13:11:05 +08:00
Benau
66626e4ea8 Fix uninitialized value 2018-03-06 11:59:08 +08:00
Deve
e00074cb14 Some work on gamepad support on android.
Still it works only for single gamepad, but at least it's preconfigured and google shouldn't complain about stupid button names.
2018-03-06 00:19:01 +01:00
Benau
03285a33a3 Move ModalDialog::dismiss() after setJoinedServer 2018-03-06 01:38:09 +08:00
hiker
ae111d3cfb Fixed item rotation in network mode. 2018-03-05 22:42:01 +11:00
Benau
d5c1ac30ab Fix signin leaking 2018-03-05 16:34:15 +08:00
hiker
4f9353e03f Reduce camera shaking (caused by camera being updated during rewind). 2018-03-05 17:52:06 +11:00
Benau
eec166c90d Always clean up server id file in case client failed to connect 2018-03-05 13:55:35 +08:00
Benau
4ab04bc546 Don't overwrite user id and token if using client-server 2018-03-05 13:52:04 +08:00
Benau
ebcaa2c1ad Fix auto connect 2018-03-05 13:04:17 +08:00
auria.mg
aa027bd09c Fix GUI bug 2018-03-04 18:38:58 -05:00
Benau
2b56a97b08 Clean up Server, ServersManager and quick play
For now we choose the server with the least player for quick play
2018-03-05 01:54:44 +08:00
Deve
8f78d4e891 Add a popup on first run on android, so that user can choose if accelerometer should be enabled 2018-03-04 00:08:24 +01:00
Deve
975fc8f84a Don't show screen keyboard when hardware keyboard is available 2018-03-03 21:06:59 +01:00
Benau
58757c2927 Hide create server buttons for android 2018-03-03 14:31:38 +08:00
Benau
594780a758 Don't use setVisible for IconButtonWidget in beforeAddingWidget 2018-03-03 14:22:44 +08:00
auria.mg
89596af654 UI bugfix 2018-03-02 20:44:00 -05:00
auria.mg
0cd5b5672e Fix assert failure 2018-03-02 19:46:43 -05:00
Deve
41ba4395d9 Don't spam with old drivers popup on android 2018-03-02 22:34:20 +01:00
Deve
729e508027 Disable accelerometer in options if it's not available 2018-03-02 22:30:22 +01:00
Deve
4157eef894 Get device orientation only if accelerometer is used 2018-03-02 21:38:15 +01:00
Deve
402b2ffb7a Fixed compilation 2018-03-02 20:29:25 +01:00
Benau
4e2863294d Use stun servers that return XOR mapped address 2018-03-02 22:38:04 +08:00
Benau
4f9af9d438 Don't use getifaddrs as it crashes android 2018-03-02 20:03:04 +08:00
Benau
43cf29af86 Merge remote-tracking branch 'origin/network_improvements' 2018-03-02 17:39:16 +08:00
Benau
efa294d4f4 Clean up lan and wan server code 2018-03-02 15:21:27 +08:00
Benau
80a9cc5c48 Auto shutdown the child STK server in windows 2018-03-02 13:25:14 +08:00
Benau
a27512f515 Use ostringstream to add server option 2018-03-01 12:50:51 +08:00
Benau
d76bd49eee Fix one more non-exist GL call in no graphics 2018-03-01 12:19:25 +08:00
Benau
9d93e0112c Try to fix OSX no-graphics STK 2018-03-01 10:10:08 +08:00
Deve
a00c1cadc8 Simplify accelerometer selection in settings 2018-02-28 22:01:30 +01:00
Deve
0ee00ad1e5 Make accelerometer values relative to device orientation 2018-02-28 22:01:30 +01:00
Benau
3141b67f89 Use a signal handler to partially clean up STK when terminating 2018-03-01 02:19:26 +08:00
Benau
13d4cc50cf Use server id file to determine the status of no-graphics server 2018-02-28 16:09:53 +08:00
Benau
e760642842 Use NetworkConfig to set user id and token 2018-02-28 15:29:40 +08:00
Benau
18eb0a613a Allow non-saved password user to create wan server 2018-02-28 15:05:34 +08:00
samuncle
0c23e6063d Merge branch 'master' of https://github.com/supertuxkart/stk-code 2018-02-27 23:39:28 +01:00
samuncle
7db4ef8056 Add a shader to use the day/night cycle for lamps, etc 2018-02-27 23:38:28 +01:00
Deve
6b4fb50876 Convert tabs to spaces 2018-02-27 23:24:29 +01:00
Deve
36c6ea52ae Allow to detect device rotation for better accelerometer support 2018-02-27 23:24:29 +01:00
samuncle
39c50c838f Make access to the time of the track in the shader to react to day/night cycle 2018-02-27 23:20:49 +01:00
Benau
cd5cb5ef6d Use STKHost to determine graphics-client-server 2018-02-27 14:10:44 +08:00
Benau
6536a311b3 Allow logging save only to a file 2018-02-27 13:22:58 +08:00
Benau
4ac34fac76 Don't register LAN server 2018-02-27 12:56:22 +08:00
Deve
4cc56aec1b Detect system language on android 2018-02-26 21:25:08 +01:00
Benau
0e2d5ab460 Allow server and client together in graphics 2018-02-27 02:40:50 +08:00
Benau
92b5f69220 Move hiker's SSM to a SeparateProcess class for graphics + client server 2018-02-27 01:40:36 +08:00
Benau
d8007c4518 Update server for new xml code
And initial work for starting a complete stk server
2018-02-26 14:23:34 +08:00
Deve
78bb9e78ac Fixed version number for nvidia gles.
It uses gl version string: OpenGL ES 3.2 NVIDIA 384.111
2018-02-25 22:40:15 +01:00
Deve
34f0f8c239 Fixed a bug with red light in thunderbird model on android 2018-02-25 22:17:53 +01:00
Benau
6c18664967 Make sure protocol manager exists when requesting 2018-02-25 15:24:46 +08:00
Benau
c5cf87071c Use xmlEncode for proper unicode handling 2018-02-25 14:32:38 +08:00
Benau
2fcaeabf1c Increase timeout in case of busy network 2018-02-25 13:45:43 +08:00
Benau
571a524f59 Update lobby for new gui engine code 2018-02-25 13:31:45 +08:00
auria.mg
7b903a09ba Add text_valign="top" support to GUI engine 2018-02-24 21:49:49 -05:00
auria.mg
8d565fba11 Unicode fix 2018-02-24 21:38:31 -05:00
Benau
34caab24fe Update networking lobbdy for better display info 2018-02-25 02:09:07 +08:00
Benau
2a117d8e44 Don't lock in async update in protocol manager
It allows GUI interacts with protocol more actively

Also don't handle lan connection request if we are not waiting for
players
2018-02-25 02:07:24 +08:00
Benau
b26b784b6a Various improvements to WAN and LAN connection 2018-02-24 15:48:30 +08:00
Ethan Uzarowski
b782af2949 Remove "Final lap!" message in one-lap races (#3127)
* Fix "Final lap!" message on one-lap races

When starting a one-lap race, the game gives the message "Final lap!". This should only be given when there is more than one lap in the race. This commit changes linear_world.cpp so that this message is only given when the number of laps in the race is greater than 1.

* Fix spacing

I accidentally changed the spacing when making my last commit. This commit fixes that accident.
2018-02-23 20:43:46 -05:00
hiker
95f0bf9e3b Used functions in stk_config to convert between ticks and times. 2018-02-23 23:22:49 +11:00
Benau
d586ab9011 Allow auto-fallback to another unused port if needed 2018-02-23 16:16:43 +08:00
Benau
a93182740e Reset NetworkConfig when exiting WAN game screen 2018-02-23 15:46:03 +08:00
Benau
7d14954012 Simpify network console 2018-02-23 14:57:59 +08:00
Benau
1023e6580e Unregister STK server when exiting 2018-02-23 14:01:20 +08:00
hiker
cb712411e0 Converte some pararchute values to use ticks. 2018-02-23 10:01:22 +11:00
Benau
005454ba7b Use the recieved port to connect, also fix a possible crash 2018-02-22 16:38:53 +08:00
hiker
81342ddd00 Fixed several mixups of ticks and time. 2018-02-22 19:25:11 +11:00
hiker
7a53cf16fe Fixed compiler warnings. 2018-02-22 19:19:04 +11:00
Benau
33435de026 Fix lan game in localhost, also improve timer behaviour 2018-02-22 16:03:54 +08:00
Benau
4559fd6a2c Remove unused protocol 2018-02-22 15:14:15 +08:00
Benau
1458f3ef8e Fix wan connection, move get public address from stun to stk host 2018-02-22 15:11:07 +08:00
hiker
797e35c674 Bugfix, forgot to change the type from float to int. 2018-02-22 09:23:45 +11:00
hiker
1c3da88e77 Replaced more time with ticks. 2018-02-22 09:22:57 +11:00
hiker
09e7a5cc13 Converted more times to using ticks; fixed bug that in case of
a race restart the fastest lap was not reset.
2018-02-21 22:46:35 +11:00
hiker
27b5409487 Use ticks (at the physics frame rate) for time measurement, which
avoids potential floating point errors (in networking).
2018-02-21 22:18:45 +11:00
hiker
208c5eb6d8 Merge remote-tracking branch 'origin/master' into fix-timestep 2018-02-21 08:35:58 +11:00
Benau
8daebe06e1 Allow creating wan server in command line
It can only be used with a saved online player, also fix a weird
crash if server failed to create (wan is NULL)
2018-02-20 15:11:58 +08:00
Benau
22c755a328 Show protocol name when it is terminated (easier for debugging) 2018-02-20 13:33:43 +08:00
Benau
14b401b54e Use std atomic for server state 2018-02-20 11:14:57 +08:00
Benau
04a6f6d08b Warn user about multiple instance of STK server 2018-02-20 10:11:09 +08:00
Benau
3223d05c6c Merge remote-tracking branch 'origin/master' into network_improvements 2018-02-20 00:14:29 +08:00
Benau
4ab823cfbc Move lan network socket to thread main loop, fixed leaking of it too
Also call enet_deinitialize when destroy STKHost
2018-02-19 11:36:32 +08:00
Benau
e393e3d4f0 With shared_ptr protocol is not leakable 2018-02-18 14:50:06 +08:00
Benau
e52ab5888c Don't crash when close STK window directly 2018-02-18 14:13:24 +08:00
Benau
c5b986e874 Allow going back to online menu if server connection is lost 2018-02-18 14:06:17 +08:00
Benau
6fd7fb0e0e Allow reconnecting to lan servers as many time as possible 2018-02-18 13:24:29 +08:00
Benau
0a5c1a69c7 Use shared_ptr for protocol to avoid leaking
With weak_ptr it's also possible to auto clear LobbyProtocol when
STKHost is shutdown
2018-02-18 12:39:05 +08:00
Benau
bcf8e4e5fe Allow shutdown STKHost from dialog 2018-02-17 16:25:53 +08:00
Benau
4c1cc50955 Don't pause timer in network as it breaks rewind
Also remove the unneed protocol manager checking
2018-02-17 15:38:56 +08:00
Benau
372753f505 Use atomic flag to start / stop listening thread 2018-02-17 11:40:48 +08:00
Benau
cfeadf335c Move some code to header 2018-02-17 10:51:33 +08:00
Benau
c5788a2c90 Move the cleaning of events to destructor of protocol manager
So that the last one who deletes it can clear all the remaining data
properly (ie if it's STKHost listening thread)

Remove the assert in async update thread as it may not be true for
the first thread creation
2018-02-16 00:48:27 +08:00
Benau
05f7c014dd Create a prototype for thread-safe protocol manager
Using weak and shared_ptr, if !lock(), than it was atomtically
destroyed
2018-02-15 16:47:04 +08:00
Benau
3d8efcdfa1 Use >= for counter in case of some peer disconnect in between for completing race end 2018-02-15 15:33:18 +08:00
Benau
fa2a8bccd3 Reset available karts and tracks each selection 2018-02-15 14:07:58 +08:00
Benau
20a2bc3bbb Terminate controller and game event protocols when exit result screen 2018-02-15 13:28:28 +08:00
Benau
e7d3658a53 Merge remote-tracking branch 'origin/network_improvements' into game_protocol 2018-02-15 10:36:14 +08:00
hiker
c0333fe0f7 Bugfix: TimeInfo objects were missing for substeps, resulting in
very stuttering game play.
2018-02-15 10:06:13 +11:00
Deve
bfb862645d Print some debug info 2018-02-14 22:28:55 +01:00
Deve
959f33223e Enable multitouch gui only if touchscreen is available 2018-02-14 22:28:55 +01:00
Benau
469f7d2fc5 Drop player if he has incompatible karts / tracks 2018-02-14 12:23:05 +08:00
auria.mg
e26239e364 Improve the input sensing text to be a bit clearer 2018-02-13 20:35:07 -05:00
hiker
4bd7848431 Removed duplicated update of the ProtocolManager, and only
update it when STKHost exists (otherwise STK will crash since
ProtocolManager can get called when it does not exist).
2018-02-14 09:27:13 +11:00
hiker
2a30f75b78 Avoid crash that can happen if the first DT is large and event
happens during that time.
2018-02-14 09:20:45 +11:00
hiker
df5adbc320 Fixed comment. 2018-02-14 09:20:27 +11:00
Benau
8a1ef31f4a Allow remove unusable karts or tracks in network game 2018-02-14 01:57:05 +08:00
Benau
46416781fa Make it possible to restart race after going back to lobby
At the moment the token is reset by client after each restart
2018-02-13 15:20:55 +08:00
auria.mg
196b5a2bbe Minor ajustments to kart color screen, make kart slightly bigger, make XML cleaner 2018-02-12 20:22:35 -05:00
auria.mg
ceeb79f3a4 Restore accidentally removed resolution ajustment in kart color selection screen 2018-02-12 20:16:31 -05:00
auria.mg
2830dabfc1 Improve kart color selection screen, fixes #3122 2018-02-12 20:08:51 -05:00
hiker
26401972d2 Merge branch 'fix-timestep' into game_protocol 2018-02-13 08:41:49 +11:00
Deve
4cc57dd754 Fixed a crash when logging long messages 2018-02-12 21:31:32 +01:00
hiker
000b613b8b Fixed compiler warnings. 2018-02-12 18:10:52 +11:00
hiker
4ce66e754b Fixed compiler warnings. 2018-02-12 18:07:51 +11:00
hiker
fa20e4f866 Only issue sfx commands once per rendered frame (during the last
substep).
2018-02-12 18:01:05 +11:00
Qwerty Chouskie
8a51cae73d Final(?) tweak 2018-02-11 19:16:23 -08:00
Qwerty Chouskie
835d4ccc63 Update skidding effect
Also fix nitro when skiddding
2018-02-11 19:01:42 -08:00
hiker
c7bc47f2e3 Fixed world update to be fixed at the physics frame rate. 2018-02-12 09:54:46 +11:00
hiker
4d03fbd1fb Made the physics time step size configurable in the config file. 2018-02-12 08:23:06 +11:00
Benau
971db902a8 Fix queries stop working after changing resolution 2018-02-11 15:06:35 +08:00
Benau
0e3398a46b Use eglGetProcAddress for debug function 2018-02-11 14:56:43 +08:00
Benau
7ebc33bcaa Fix server only build 2018-02-11 02:03:09 +08:00
Benau
b42c540eed Allow to save current GPU query string to apitrace 2018-02-11 01:53:30 +08:00
hiker
37d81be033 Made the physics time step size configurable in the config file. 2018-02-10 17:55:45 +11:00
hiker
4f54fb7898 Avoid crash in history replay (dirty workaround), 2018-02-10 17:51:12 +11:00
hiker
52e9330212 Removed debug output. 2018-02-10 17:34:10 +11:00
Benau
3290321c5d PlayerController can become EndController anytime 2018-02-09 18:00:19 +08:00
Benau
366313d29d Avoid an unknown value from attachment rewind 2018-02-09 17:59:48 +08:00
hiker
434a9c5dcc Fixed compiler warnings. 2018-02-09 16:14:38 +11:00
hiker
4d75042f3b Fixed compiler warnings. 2018-02-09 16:12:44 +11:00
hiker
113e3c0c09 Merge branch 'game_protocol' of github.com:supertuxkart/stk-code into game_protocol 2018-02-09 16:09:39 +11:00
hiker
8eddff3e34 Merge branch 'speed-cap-to-physics' into game_protocol 2018-02-09 16:03:58 +11:00
hiker
b3243a3589 Merge branch 'speed-cap-to-physics' 2018-02-09 09:38:34 +11:00
hiker
6c0f97261a Fixed missing startup boost, improved maths to only use
velocity in the current plane for boosting.
2018-02-09 09:15:23 +11:00
Deve
a18351c052 Some fixes for gamepad buttons 2018-02-08 22:34:53 +01:00
Benau
9a5ce54c4f Merge remote-tracking branch 'origin/master' into game_protocol 2018-02-09 00:53:02 +08:00
Benau
7210992e3d Prevent local player == 0 when in network mode 2018-02-09 00:49:55 +08:00
Benau
19c705f27c Make wrong way message always centered, fix #3115 2018-02-08 13:15:22 +08:00
Deve
5e8343a068 Add basic gamepad support for android 2018-02-08 01:24:35 +01:00
Ben Krajancic
d96b6b92ce Split screen regression fixes (#3116)
* Fix lapcount

* Fix selection box color

* Fix messages on screen

* Fix scaling

* Fix for icons

* Styling fixes

* fix style issue

* Fix calls

* Final call fix
2018-02-07 18:52:53 -05:00
Benau
0e5b7b532c Further boost stk by writing 1 less framebuffer attachment
Now we can get determine the background color by depth, so
the alpha tricks in diffuse color fbo is not necessary

And using rgba8 to pack normal doesn't seem to cause visual glitches.
2018-02-07 12:49:45 +08:00
hiker
777435fb35 Merge branch 'master' of github.com:supertuxkart/stk-code 2018-02-07 09:58:22 +11:00
Deve
f101c9e366 Fixed android compilation 2018-02-06 23:17:34 +01:00
samuncle
704fe3e32a Fix a bug in the emissive contribution. Now there is a bigger range of value for bloom 2018-02-06 23:15:21 +01:00
hiker
c37f2887c1 Fixed compiler warnings and coding style issues. 2018-02-07 08:54:15 +11:00
hiker
3788a3d90d Merge remote-tracking branch 'origin/master' into speed-cap-to-physics 2018-02-07 08:36:48 +11:00
Deve
a755dae85f One more fix for android tv 2018-02-06 22:35:46 +01:00
Deve
8fd52cd8e3 Fixed android compilation with different sdk version 2018-02-06 22:35:46 +01:00
hiker
a72ed7ef30 Merge branch 'master' of github.com:supertuxkart/stk-code 2018-02-07 08:34:51 +11:00
hiker
1f7350822c Added buffer flushing if a history replay is aborted. Don't print
data to stdout when using buffering (since it slows down flushing).
2018-02-07 08:32:22 +11:00
hiker
5a07739786 Prevented a crash when aborting STK (audio thread is not shut down
in this case, but is getting deleted - but the audio thread might
still try to insert an update event during that time).
2018-02-07 08:22:19 +11:00
Ben Krajancic
0f3518e71b Unlimited Split-Screen (#3104)
* Initial SplitScreen

All are upside down and player 1, 5 player does 6 even...

* Working version of splitscreen

* black screen fix

* te fix

* Update race_gui.cpp

* Change item

* wrong way fix and refactorings

* Fix icon scale, cleaning code for lap count

* Remove tabs

* Add settings option

* Fix FOV

Right now the FOV gradually  decreases when going from 1,2,3,4 players. Then after 4 players it wont drop any lower. This behaviour can easily be replaced in the future

* Prevent overflow

* Unlimited splitscreen

* Space out duplicate skins across additional players

* Update stk_config.cpp

* Update irr_driver.cpp

* Update options_screen_ui.cpp

* Update irr_driver.cpp

* Update options_screen_ui.cpp

* Update race_gui.cpp

* Update irr_driver.cpp

* Fix for empty pixels at edges

* Fix referring to template not int

* Fix compile errors

* Progress towards fixing selection screen

* Begin process for selections

* Fix selection screen for >4 people

Important GUI changes included

* Disable changing rows/cols ingame

* fix sp related crash

* Styling fixes
2018-02-05 20:01:32 -05:00
hiker
2e3e594967 Merge remote-tracking branch 'origin/master' into speed-cap-to-physics 2018-02-06 11:27:02 +11:00
Ben Krajancic
0c171bfc8d Better rescue (#3106)
* Half of the rescue animation is now placing the kart back down

* Bit of cleaning

* Single Camera Cut

* Update rescue_animation.hpp

* Update rescue_animation.cpp

* progress to fixes

* potential fix

* broken implementation

* Latest attempt

* Instant camera snap when placing the kart down

* style cleanups

* Fix BACKSLASH

HYEH
2018-02-05 19:04:00 -05:00
Deve
8742420c23 Allow to navigate with dpad 2018-02-05 22:54:50 +01:00
hiker
d5938a2447 Replaced old zipper handling in physics with minSpeed setting. 2018-02-06 08:51:17 +11:00
hiker
1c2fdc1c14 Fixed compiler warnings. 2018-02-06 08:29:18 +11:00
Deve
14c7d757ad More work for android TV.
If you want to make better banner, then you are welcome!
2018-02-05 22:11:09 +01:00
hiker
884e966ab9 Added capability to handle setting the maximum speed first to 0, and then
later to a higher value (which happens in overworld, which sets max speed
to 0, but the value got later overwritten with the normal supertuxkart max_speed
handling.
2018-02-05 16:11:19 +11:00
hiker
baa0677b1a Handle max- and min-speed capping in phyiscs (which is frame rate
independent).
2018-02-05 15:57:40 +11:00
hiker
55159fbdcd Prevented a crash when aborting STK (audio thread is not shut down
in this case, but is getting deleted - but the audio thread might
still try to insert an update event during that time).
2018-02-05 09:39:40 +11:00
Deve
12723239a7 Use higher target sdk version for android.
It should help STK on Android TV and it still works for me on Android 4.4 under emulator.
2018-02-04 22:37:02 +01:00
Deve
ff884852d7 Don't hardcode stk data dir on android 2018-02-03 22:18:42 +01:00
Benau
01c2680f73 Fix runtime typo 2018-02-04 01:07:42 +08:00
Benau
ac8294abdb Clean up debug visualization
Allow toggle (triangle) normal / (bi)tangent / wireframe separately
2018-02-03 13:14:15 +08:00
Benau
9d9502e99c Move glBindVertexArray(0) to a better place for deferred enabled 2018-02-03 11:27:53 +08:00
Deve
48cde3e041 Try to create 32bit visual for gles if 24bit failed.
People need it for Odroid boards.
2018-02-02 22:15:31 +01:00
Benau
a2052b77b9 Remove unneeded flat out
We can share the same uniform name, esp flat out is not working
for my adreno 306 in android 5.0
2018-02-03 00:21:59 +08:00
Benau
e3483fccbe Unroll the skinned mesh shader for loop
This give some fps improvement for adreno 306 in android 5.0
2018-02-02 21:59:13 +08:00
Benau
e4c827176a Remove flat for hue_change
It causes bad rendering in adreno 306 in android 5.0
2018-02-02 21:17:24 +08:00
Benau
e81e16c6da Fix possible vao crash
Some bindbuffer later will invalidate the previous bound vao
2018-02-02 13:41:11 +08:00
Benau
b26e62322f Fix polycount without artist debug mode 2018-02-02 12:08:36 +08:00
hiker
c201483f5b Merge branch 'master' of github.com:supertuxkart/stk-code 2018-02-02 13:09:15 +11:00
hiker
f29da60ac4 Coding style fixes. 2018-02-02 09:45:15 +11:00
hiker
59f28d3746 Fixed line ending style. 2018-02-02 09:16:34 +11:00
Deve
8771c77689 Allow to use dependencies for vs and mingw without changing the names every time.
Now there are:
- dependencies-vs
- dependencies-vs-64bit
- dependencies-mingw
- dependencies-mingw64

And if it's not found, then fallback to:
- dependencies
- dependencies-64bit

So that if you use only one compiler, then you can just still use "dependencies" or "dependencies-64bit".

And I didn't restrict it to WIN32 only, because in theory it should be possible to put there openglrecorder for linux build.
2018-02-01 21:36:28 +01:00
Benau
a137665916 Fix god rays in split screen
Also use rgba8 fbo for the glowing of sun
2018-02-01 15:39:06 +08:00
Benau
dbb82fea94 Clear default framebuffer when drawing from our rtt for first cam
Also remove unused IReferenceCounted in post processing
2018-02-01 13:46:42 +08:00
Benau
baff519a21 Use the correct vertex color for rubber band 2018-02-01 11:28:38 +08:00
Benau
e06fabde96 Clean up alpha test and unlit shader
Remove 1 wrong line in alpha test shader
2018-02-01 11:26:58 +08:00
Benau
4dd6f75998 Rename wrong profiler item 2018-01-31 10:31:25 +08:00
Deve
50ad5eed33 Try to fix VS build 2018-01-30 23:44:55 +01:00
Deve
4529189048 Upgrade enet 2018-01-30 23:10:30 +01:00
Deve
fc15a33a39 Add an option to use system enet.
Atm. use it only on linux, because there is no need to spam with cmake warnings on other platforms.
Also fallback to built-in enet if system enet is not found.
2018-01-30 22:57:40 +01:00
Igor Gnatenko
810df68f9c Unbundle ENet
Signed-off-by: Igor Gnatenko <ignatenko@redhat.com>
2018-01-30 22:29:38 +01:00
leper
47dc4bdbaa Remove enet modifications. Fixes #21. 2018-01-30 22:06:07 +01:00
Benau
154ad8d0db Fix skybox blending with light scatter 2018-01-31 01:31:12 +08:00
Benau
af6b075450 Clear stencil buffer when possible 2018-01-30 14:49:26 +08:00
Benau
9399db6eba Split glow to avoid re-bind color framebuffer 2018-01-30 14:25:50 +08:00
Benau
9e57bfb73f Split point light scatter so it can be combined together 2018-01-30 13:42:50 +08:00
Deve
853084e75a Fixed mingw compilation 2018-01-29 22:14:43 +01:00
Deve
3345fa6e51 Try to fix travis.
It reverts commit:
https://sourceforge.net/p/angelscript/code/2278/

It looks that it's impossible to detect "real" clang version using compiler definitions, so that we can't check if std::is_trivially_default_constructible is available.

I mean that clang 4.0 on my machine is "newer" than clang 5.0 on travis, because it tries to use gcc 4.8 headers:

/usr/lib/gcc/*x86_64-linux-gnu/4.8*/../../../../include/c++/4.8/type_traits:1211:12:
note: 'has_trivial_default_constructor' declared here
    struct has_trivial_default_constructor

At this stage we can just disable AS_CAN_USE_CPP11 for clang. It was disabled for clang before our angelscript upgrade, so that it's not worse than before.

Note that I don't use clang and I don't really know what are our requirements (for example for Mac OS build). Feel free to revert it after travis upgrade.
2018-01-29 20:48:15 +01:00
Magne Djupvik
748a65c013 Made Old Mine Expert challenge a bit more challenging. 2018-01-29 18:51:43 +01:00
Magne Djupvik
6ac36f8117 Merge branch 'master' of https://github.com/supertuxkart/stk-code 2018-01-29 16:53:26 +01:00
Magne Djupvik
b5d2ce4850 Added back 5 seconds to challenges after feedback. 2018-01-29 16:52:18 +01:00
Benau
9ebcdc5af3 Set DeviceManager assign more to ASSIGN in network kart selection
Because input manager use this to determine backspace functionality
(for rescue in game or leave a screen)

This will be reset to NO_ASSIGN when you go back to main menu screen
2018-01-29 14:50:29 +08:00
Qwerty Chouskie
89a8219ec9 Tweak particle emission rate
The boost-specific rate was never really noticeable anyways.
2018-01-28 13:36:45 -08:00
Deve
1979298b06 Use pkgconfig only on linux 2018-01-28 21:39:21 +01:00
Benau
f0c03b317e Use std::make_tuple instead of list initialization 2018-01-29 00:08:28 +08:00
Magne Djupvik
ad2665c641 Made Northern Resort and Blackhill Mansion Expert challenges more difficult. 2018-01-28 15:17:27 +01:00
Benau
11f9b74e13 Don't use out variable in vertex shader 2018-01-28 15:28:20 +08:00
Benau
9737c2f950 Further clean up framebuffer
Avoid using hdr framebuffer in displace and glow

Also remove stencil test in mlaa (in the pass no stencil buffer
exists in FBO_MLAA* anyway)
2018-01-28 15:10:17 +08:00
Benau
ccc83a28f2 Clean up rtts and framebuffers
Use rgba framebuffer for tonemap and later, don't create
unnecessary rtts.
2018-01-28 14:07:03 +08:00
Ben Krajancic
f6f051e85b Consistent split screen (#3105)
* Splitscreen positions are now consistent across rounds

* Fix tabs

* Remove unnecessary comments
2018-01-27 19:27:17 -05:00
Qwerty Chouskie
d4aa7b69ad New skidding particle effect (and a small fix for the SFX)
The textures are here:

https://jacobspctuneup.tk/STK/skid-particle1.png
https://jacobspctuneup.tk/STK/skid-particle2.png
2018-01-26 14:41:41 -08:00
Deve
0003b39d31 Install appdata file in correct directory.
As reported on Debian:
https://lintian.debian.org/tags/appstream-metadata-in-legacy-location.html
2018-01-26 22:33:37 +01:00
Deve
8cd6f61e44 Restore information about license 2018-01-26 22:18:22 +01:00
Deve
0532a41ab3 Convert tabs to spaces 2018-01-26 22:03:04 +01:00
Deve
5aaf3a9c39 Comment out unused wayland code to avoid compilation errors with clang 2018-01-26 21:41:39 +01:00
Deve
4802c4d11c Avoid cmake warning 2018-01-26 21:20:33 +01:00
Igor Gnatenko
aec7ca0ce9 libs: update angelscript to 2.32.0
Fixes: https://github.com/supertuxkart/stk-code/issues/2528
Signed-off-by: Igor Gnatenko <i.gnatenko.brain@gmail.com>
2018-01-26 21:19:01 +01:00
Sam
c4b42c1852 Add layer of abstraction to output pbrData 2018-01-26 20:16:16 +01:00
Sam
f5a0e6477e put the correct convention 2018-01-26 11:10:16 +01:00
Sam
e75f1cb799 Merge branch 'master' of https://github.com/supertuxkart/stk-code 2018-01-26 10:52:23 +01:00
Sam
a1c9ad107f Add the possibility to disable an object for shadow pass 2018-01-26 10:51:42 +01:00
Benau
a10b62b894 Use SPTextureManager to get displace.png
This will allow using texture compression for it
2018-01-26 16:02:51 +08:00
Benau
97fd634ed8 Allow auto-add usable uniforms to shader 2018-01-26 16:02:31 +08:00
Benau
9e2d649b55 Warn for failed shader compile or link in GUI when artist debug mode 2018-01-26 16:02:00 +08:00
Deve
313661ad07 Merge pull request #3107 from andy5995/spelling
README.md:correct spelling of 2 words [skip ci]
2018-01-26 06:11:12 +01:00
andy5995
cf6b3a2640 README.md:correct spelling of 2 words [skip ci]
Corrections:

* Dependencies
* aforementioned
2018-01-25 21:04:58 -06:00
Deve
74af810d50 Fixed compilation error.
It was failing with "'this' was not captured for this lambda function"
2018-01-25 21:43:19 +01:00
Benau
9041649a39 Don't check for reference counting in shader mananger
It will not be 1 if there are fallback shaders
2018-01-25 15:51:28 +08:00
Benau
297c66bf04 Remove unused cpp and hpp files 2018-01-25 15:41:30 +08:00
Benau
2448b10cd4 Fix correct spelling of deferred 2018-01-25 15:38:10 +08:00
Benau
ff38cb6423 Clean up advanced pipeline off code
Don't use RTT at all in game when it's off
2018-01-25 15:36:34 +08:00
Sam
37a6f464b9 Merge branch 'master' of https://github.com/supertuxkart/stk-code 2018-01-24 21:51:11 +01:00
Benau
5b4be274fb Some more fallback for legacy pipeline 2018-01-25 01:51:10 +08:00
Benau
6bcee60a1c Merge remote-tracking branch 'origin/master' into game_protocol 2018-01-24 10:20:06 +08:00
hiker
e9f9302c2f Added simple script to extract only the data rendered on the client. 2018-01-24 12:38:54 +11:00
hiker
226ff0cea2 Added simple script to extract useful data from a client
and server run.
2018-01-24 12:38:26 +11:00
Deve
94c3efa8d3 Force legacy device for sandy bridge generation celeron graphics cards 2018-01-23 22:40:42 +01:00
hiker
ecbb1db2c9 Flush buffer in case of a disconnect, which allows the server to use
buffered logging, which will be written when the client disappears.
2018-01-24 08:39:10 +11:00
hiker
76354bb08c Added description on how the main loop with regards to physics works. 2018-01-24 08:38:11 +11:00
Benau
d8511956f5 Only warn for possible undeleted opengl stuff when debug build
Happens when you press close button in stk window.
2018-01-23 16:18:48 +08:00
Benau
9ecf952057 Don't add instance data if missing shadow shader 2018-01-23 14:27:15 +08:00
Benau
40552b3fa0 Preload all visible spm (not including physics node) properly
Also change reset-button.spm to swatter_anim.spm, reset button
was replaced by thunderbird long time ago
2018-01-23 13:32:30 +08:00
Benau
95c12faa10 Use map for sorted name texture (easier for debug) 2018-01-23 11:55:54 +08:00
auria.mg
8c609c87d9 Fix compilation 2018-01-22 21:17:51 -05:00
Benau
dea6dc1f3f Try to fix OSX build by using type index which is copy constructible 2018-01-23 09:53:23 +08:00
hiker
b4d9e03e5c On GUI-less servers the frame rate can be <1ms. Previously the minimum
time-step size was 1 ms, which resulted in the world time advancing
faster than real time.  This caused problems in the communication
and synchronisation with clients.
2018-01-23 08:30:23 +11:00
Benau
e5cdf3a086 Remove all unneed gamma correction when advanced pipeline off
Except for the colorization stuff
2018-01-23 01:16:45 +08:00
Benau
86393ba0a9 Use alphatest as a fallback shader for unlit
Adjust graph shader when advanced pipeline off, and no srgb prefilled
texture when advanced pipeline off
2018-01-22 13:27:21 +08:00
Benau
8fa5ad46c9 Use the original spm uv texture 1 and 2 for compare in scene manager
Because for splatting it will have some duplicated entries

Also remove never-working material code for splatting because of SP
2018-01-22 13:05:02 +08:00
Benau
45957af6f8 Remove !sRGB in shader which is always true now
Also don't use tonemap in RTT
2018-01-22 12:54:39 +08:00
Benau
4025883243 Use sampleTextureLayer in shader files 2018-01-22 10:43:22 +08:00
Benau
39f4f8e966 Allow tracks and library objects to use custom shader 2018-01-22 10:34:49 +08:00
Benau
0ed74ac3e9 Add the ability to auto discard unused texture layer based on the compiled shader 2018-01-22 09:55:17 +08:00
Benau
0aa61ec746 Header clean up 2018-01-22 01:11:53 +08:00
Benau
9aae773e91 Use absolute path when caching 2018-01-22 01:09:58 +08:00
Benau
c85425c473 Only try to clean stuff if kart model is unique 2018-01-22 00:13:27 +08:00
Benau
f8c6de316a Allow karts to have custom shader
Also implement proper cleaning for textures (mainly addons)
2018-01-21 16:31:49 +08:00
Benau
a39977d550 Use shared_ptr SPShader in mesh buffer 2018-01-21 15:35:38 +08:00
Benau
390554eca1 Add xml shader and the loader 2018-01-21 13:19:00 +08:00
Benau
b199b81427 Add the code required for reloading sp shader on the fly 2018-01-19 20:47:30 +08:00
Benau
0f95d36dbc Add proper sharing and deletion of shader files 2018-01-19 14:41:33 +08:00
auria.mg
105935c645 Merge branch 'Fix3099' 2018-01-18 18:32:27 -05:00
auria.mg
8380e93e8d FIx overflow 2018-01-18 18:02:26 -05:00
Benau
18fd12652d Fix server build 2018-01-18 16:18:19 +08:00
Benau
5b440ae04b Don't abuse the use of std::shared_ptr for moving texture 2018-01-18 13:49:35 +08:00
Benau
8a5994b9e3 Don't crash if missing texture image 2018-01-18 12:45:04 +08:00
Benau
0d74b1739b Allow mesh textures to be reloaded 2018-01-18 12:35:41 +08:00
Benau
281b30dd5d Fix invalid graph node sometimes detected 2018-01-17 13:52:40 +08:00
Deve
2516de8231 Disable npot textures on android emulator 2018-01-16 23:06:27 +01:00
Deve
458ffd4617 Allow to force pot textures in graphical restrictions 2018-01-16 22:50:18 +01:00
Benau
c3d0db9856 Use normalized short for animated texture update
It should allow to have the maximum possible smooth animation

texture_trans_x,y is fmoded so it's guaranteed to be -1.0 to 1.0
2018-01-17 01:05:47 +08:00
Benau
7aaac81d0a Disable backface culling for transparent material for legacy pipeline 2018-01-16 14:29:45 +08:00
auria.mg
10831b210e Improve fix for #3099 2018-01-15 20:58:05 -05:00
auria.mg
1d9d628855 Try to fix #3099 2018-01-15 20:52:53 -05:00
Deve
effa23d952 Some minor fixes in linux device 2018-01-15 23:15:27 +01:00
hiker
a34b014fb5 Assign events to closest time step. 2018-01-16 08:53:45 +11:00
hiker
8d7ff2a948 Store event time explicitly, which makes network replay much easier.
Simplified update updateReplayAndGetDT function.
2018-01-16 08:43:59 +11:00
Benau
a37b60ac6e Only add RenderInfo if the material has a list of random color 2018-01-15 15:43:50 +08:00
Benau
cbd7b3fd84 Add some fallback for legacy pipeline for SP 2018-01-15 13:46:37 +08:00
Benau
a3a00f70f8 Remove unused entries in materials and fog settings 2018-01-15 13:23:21 +08:00
Benau
681ef66d8d Rename _nm to _Normal for normal map textures 2018-01-15 12:37:57 +08:00
Benau
9c2f91c11b Don't crash for wip-tracks / karts (wrong shader name or incomplete terrain) 2018-01-15 11:07:58 +08:00
Sam
97053b9405 Merge branch 'master' of https://github.com/supertuxkart/stk-code 2018-01-14 16:15:04 +01:00
Sam
6abd79dde6 Add the world position in default information avaliable to shaders 2018-01-14 10:39:16 +01:00
Benau
813b08bc73 Fix #3091 2018-01-14 10:19:37 +08:00
Deve
8698705468 Fixed android compilation 2018-01-14 00:14:31 +01:00
Benau
d0fb0500eb Update to opengl 3.3 for SP 2018-01-14 01:28:30 +08:00
Benau
59045cd064 Merge remote-tracking branch 'origin/master' 2018-01-13 15:44:57 +08:00
Benau
4194977df5 Fix shadow visualization 2018-01-13 15:38:52 +08:00
Benau
9e90bd251d Use hardware skinning GR in sp_mesh_node 2018-01-13 15:16:16 +08:00
Benau
24308ced03 Remove features in SP that give no performance boost at all
gl_Layer in vertex shader, bindless and array textures
2018-01-13 14:49:33 +08:00
Benau
503455d02f Simplify instruction 2018-01-13 13:48:51 +08:00
Benau
7902e2ad06 Fix focusing of kart color slider dialog 2018-01-13 11:58:32 +08:00
Benau
c4f589fee7 Use the low quality for libsquish again 2018-01-13 11:55:57 +08:00
Deve
24772eb9d7 GLEW_ERROR_NO_GLX_DISPLAY needs glew 2.1 2018-01-13 00:41:53 +01:00
Deve
e46a18ab61 Merge pull request #3060 from akien-mga/update-glew
GLEW: Update to pristine upstream 2.1.0
2018-01-13 00:22:18 +01:00
Deve
84459c6086 Merge pull request #3059 from akien-mga/unbundle-glew2
CMake: Add option to use system GLEW 2.0+
2018-01-13 00:20:11 +01:00
Deve
3f604f3adf Merge branch 'master' into unbundle-glew2 2018-01-13 00:19:30 +01:00
Deve
226c2bbed5 Merge branch 'master' into unbundle-glew2 2018-01-13 00:13:45 +01:00
Deve
2f7d7b677d Don't fail to start if glx display in glew is not available.
It should be safe, because we check if display is available in irrlicht device anyway.
2018-01-13 00:06:37 +01:00
Deve
f220bb14f4 More improvements in wayland device 2018-01-12 22:31:21 +01:00
Benau
bb0cf72635 Add required code and color selector for rainbow karts 2018-01-13 00:38:46 +08:00
Benau
68e8da2353 Remove all unused shaders 2018-01-12 19:10:55 +08:00
Benau
b1f1afb9c5 Use SSE2 in windows build for faster libsquish 2018-01-12 17:47:18 +08:00
Benau
e5fff9e65a Reallocate the vertices vector for dynamic draw call when resize 2018-01-12 17:18:49 +08:00
Benau
feb1667acc Precompute srgb to linear values to array 2018-01-12 13:58:49 +08:00
Benau
6071d2f983 Remove all unused / unstable opengl-related code 2018-01-12 13:04:40 +08:00
Benau
9ccb34c2a1 Adjust graphics presets for SP 2018-01-12 12:03:31 +08:00
Deve
6f4c1f41da More work with xdg shell 2018-01-11 19:03:01 +01:00
Benau
7f3722d90b Make supports SP checking global 2018-01-12 01:28:13 +08:00
Benau
4252895d8b Remove old unused glsl code 2018-01-12 01:18:07 +08:00
Qwerty Chouskie
6aefa2542b Reduce number of places version number needs to be changed on release 2018-01-11 08:56:23 -08:00
Benau
49568f3fd9 Auto fallback to legacy pipeline if not supports all functions required by SP 2018-01-11 15:55:53 +08:00
Benau
26a481e478 Allow using system libsquish 2018-01-11 14:40:33 +08:00
Benau
7859a00967 Remove unused mesh code 2018-01-11 13:38:08 +08:00
Benau
68ceceb6e3 Remove unused texture code 2018-01-11 12:47:02 +08:00
Benau
3374ec66e3 Better memory management for vertex buffers 2018-01-11 11:30:55 +08:00
auria.mg
de8298f734 Try to fix #3089 2018-01-10 18:48:18 -05:00
hiker
7b21bb16e6 Remove debug output. 2018-01-11 08:21:40 +11:00
Deve
55ea7625b3 Create xkb context before registry listener is created 2018-01-10 22:05:27 +01:00
hiker
7fd0754bfe Improve script to handle any dimensional data (e.g. scalars as well). 2018-01-11 07:59:18 +11:00
Deve
4f9b46b20c More work with xdg_shell 2018-01-10 21:31:54 +01:00
hiker
f6abdefe05 Removed debug output. 2018-01-10 18:37:56 +11:00
hiker
4c6a226968 Fixed index for steering events - physical replays now appear to be identical
to the original recording.
2018-01-10 18:37:12 +11:00
hiker
f5af65f4ef Increased precision of written time step sizes, since otherwise
the floating point differences will cause a different number of
physics time steps to be taken (which causes replay differences).
2018-01-10 18:10:39 +11:00
Benau
4823c46ad9 Preload the container id of materials 2018-01-10 13:10:12 +08:00
Benau
f4fb2cb41c Fix no graphics and server only run 2018-01-10 11:35:02 +08:00
Deve
74b071494c Some work on xdg shell support 2018-01-09 23:41:34 +01:00
Deve
62fe84ecc7 Fixed server-only build 2018-01-09 20:35:33 +01:00
Deve
b17920cf4c Use server-side decorations for KDE wayland for now 2018-01-08 23:08:23 +01:00
hiker
bb9f2c6385 Fixed loop structure (which only worked with a single kart *blush*). 2018-01-09 08:00:17 +11:00
hiker
f242120cd1 Fixed difference from one replay to the next (caused by returning the
actual measured DT in certain cases instead of the recorded one).
2018-01-09 07:56:10 +11:00
Deve
f7654d3867 Fixed a crash with disabled repeating keys on wayland 2018-01-08 21:12:50 +01:00
Benau
54c7914cb5 Update graphical restrictions
Mesa 17.4 will use the correct normalization forumla

Disable GLSL on intel HD2000 / HD3000 due to broken opengl 3.3 support
2018-01-08 15:55:28 +08:00
Benau
57fad498f8 Fix traffic light when changing resolution 2018-01-08 14:31:47 +08:00
Benau
1604ca1daa Use 2018 header for SP 2018-01-08 09:31:15 +08:00
Benau
aa9dce1672 Add texture compression cache 2018-01-08 09:28:11 +08:00
auria.mg
e3f3f7d291 Fix compilation on travis 2018-01-07 19:33:05 -05:00
auria.mg
6a21ca75fb Improve text legibility 2018-01-07 19:09:42 -05:00
auria.mg
196117c41e Bugfix when loading saved GP, but the GP has changed 2018-01-07 18:47:16 -05:00
auria.mg
3c591bcf39 Tweak text color to improve legibility 2018-01-07 18:47:01 -05:00
auria.mg
246d010895 Fix compilation 2018-01-07 18:31:37 -05:00
Deve
5af835505c Don't send too many useless events on touch move 2018-01-07 23:49:39 +01:00
Deve
51e1153cc9 Fixed unsafe printf 2018-01-07 21:33:43 +01:00
Deve
88897cae1d Enable wayland for testing.
It's not 100% ready yet, but some testing won't hurt.

It's possible to switch between wayland/x11 using

    export IRR_DEVICE_TYPE=x11

or

    export IRR_DEVICE_TYPE=wayland

so that x11 device can be forced in wayland session.
2018-01-07 21:23:21 +01:00
Deve
92f7caf696 Fixed cygwin warning 2018-01-07 21:15:08 +01:00
Deve
9afbf9a772 Don't return fatal error if wayland libraries are not found 2018-01-07 21:11:37 +01:00
Benau
76788d7dd8 Fix GLES 2018-01-07 15:44:57 +08:00
Benau
262337bc13 Fix some leaking when switching resolution 2018-01-07 14:58:32 +08:00
Deve
6ce1573cfd Some cleanup 2018-01-07 02:22:58 +01:00
Deve
b0afa6ab3d Add srgb attrib in egl only if requested 2018-01-07 02:22:58 +01:00
Deve
f6111d04fd Use explicit display type in egl if possible. 2018-01-07 02:22:58 +01:00
Benau
157faaf616 Fix tracks with no skybox 2018-01-06 15:35:35 +08:00
Benau
0633099662 Add a quick fallback tangent computation 2018-01-06 12:47:22 +08:00
Benau
5293a0dbef Add b3d loader for SP 2018-01-06 12:07:22 +08:00
Corentin Pazdera
201f8eca59 Add a github issue template to the project (#3071) 2018-01-05 20:10:16 -05:00
Benau
a06d9e858b Add some fallback 2018-01-05 23:46:23 +08:00
Benau
e1c7efd68c Add sam's formula for pbr 2018-01-05 16:45:33 +08:00
Benau
294f0d79d1 Port feature unlocked to use SP 2018-01-05 01:06:58 +08:00
Benau
60b173559a Disable cull face after drawing mesh (for gui) 2018-01-04 14:39:32 +08:00
hiker
8e8567f6ee In case of networking there might be no history frame for a given time -
restructure loop so that it is not always executed at least once in
networking, but is done once in case of history replay.
2018-01-04 09:02:03 +11:00
hiker
547e59e866 Avoid storing history information during a rewind. 2018-01-04 09:01:24 +11:00
hiker
cdf3dd8062 Prevented a crash when aborting STK (audio thread is not shut down
in this case, but is getting deleted - but the audio thread might
still try to insert an update event during that time).
2018-01-04 08:58:37 +11:00
hiker
8a25effa5c While it does not make a difference in this case, it should be &&, not &. 2018-01-03 22:03:33 +11:00
hiker
92426606c0 Fixed profiler in case that rendering is not done from main thread. 2018-01-03 21:48:52 +11:00
Benau
d24796aa6f Use win / lose animation in grand prix result screen 2018-01-03 16:33:55 +08:00
Benau
511c8e316b Make skidding show curve compile 2018-01-03 15:35:25 +08:00
Benau
1de1cdf530 Port line debug to SP, removing all unicolor code too 2018-01-03 15:28:29 +08:00
Benau
2eabf87ffe Remove stk_mesh* 2018-01-03 14:40:34 +08:00
Benau
345f2bc64b Port god ray to use SP 2018-01-03 14:29:20 +08:00
hiker
373ec0f242 Made the history files use events for players (will break physics replay
for AIs for now). Useful for network debugging.
2018-01-03 16:29:35 +11:00
Benau
1400257a60 Port debug sphere to SP 2018-01-03 13:29:19 +08:00
Benau
df6fbc455b Port show curve to SP 2018-01-03 12:46:35 +08:00
Benau
938e6629fc Add a dummy normal for rubber band 2018-01-02 12:48:00 +08:00
Benau
d34277c35f Hide shadow when kart eliminated 2018-01-02 12:47:42 +08:00
Benau
3a24d0ed1f Port slipstream to SP 2018-01-02 12:19:36 +08:00
Benau
17c337284e Make SPMeshBuffer uniform-assignable (for slipstream) 2018-01-01 14:24:11 +08:00
Benau
0da5922722 Use upper kart position to fix culling for rubber band 2018-01-01 12:27:44 +08:00
Benau
1400542194 Make dynamic draw call update independent of culling result 2018-01-01 11:00:45 +08:00
hiker
28bc8c8e8f Merge branch 'master' of github.com:supertuxkart/stk-code 2018-01-01 00:36:24 +11:00
Benau
9f8475bda1 Fix fading 2017-12-31 12:57:28 +08:00
Benau
2bde6d1325 Use shared_ptr for dynamic draw call 2017-12-31 12:15:55 +08:00
Benau
c8aea0bf9e Add bounding boxes visualization for SP 2017-12-31 10:34:55 +08:00
Benau
cce8abe6f3 Port billboard text 2017-12-30 15:28:04 +08:00
Benau
ec59e3f573 Don't delete vao each frame when update vertex buffer 2017-12-29 23:42:45 +08:00
Benau
63267391ef BufferData with new size vector 2017-12-29 23:26:50 +08:00
Benau
8a93b07c5e Don't clean the current skidmarking 2017-12-29 23:26:29 +08:00
Benau
8919f42894 Use dynamic draw call for rubber band 2017-12-29 19:41:17 +08:00
Benau
d71ea71e35 Remove some ifdef 2017-12-29 18:10:51 +08:00
Benau
711fb8211a Add samuncle way to sample texture slot 2017-12-29 15:39:22 +08:00
Benau
4ad7934a85 Clean sp framebuffer individually 2017-12-29 14:50:15 +08:00
Benau
1e0b611c7d Draw kart shadow with dynamic draw call 2017-12-29 01:36:36 +08:00
Benau
f040be710e Fix normal visualizer 2017-12-29 00:52:29 +08:00
Benau
590850eacf Add dynamic draw call for skidmarks 2017-12-28 16:14:09 +08:00
Ben Krajancic
7c10a5559d Ghost replay selection fix (#3081)
* Label unknown replay makers as "Unknown"

* Language neutral result
2017-12-27 21:08:34 -05:00
Benau
52b19dd83a Use glVertexAttrib only in debug view 2017-12-27 13:50:17 +08:00
Benau
62e0effed6 Rename input variables 2017-12-27 12:31:21 +08:00
Benau
dbc3cd5ff5 Normalize in shader for broken drivers 2017-12-27 11:33:30 +08:00
Benau
891b053358 Add more functions to normal visualizer 2017-12-27 01:33:21 +08:00
Benau
ce45605c18 Use half float for texture matrix 2017-12-26 15:28:01 +08:00
Benau
daf1294e6f Add minimap and adjust unlit shader for it 2017-12-26 14:34:34 +08:00
Deve
87d43063ed Assume that "HandleSRGB == false" means "don't care".
It solves the issue with nvidia when HandleSRGB is set to false.
2017-12-25 23:59:49 +01:00
Benau
7797115867 Add SP for correct normal and easier shader system 2017-12-25 14:00:10 +08:00
Ben Krajancic
c35599f3e2 Flashing bubble gum (#3080)
* Initial Implementation

* Name values to give meaning
2017-12-22 19:06:24 -05:00
Deve
31f8b7ec35 Allow to install debug version without uninstalling release version on android 2017-12-22 21:51:41 +01:00
Deve
6f6ac84495 Fixed android compilation 2017-12-22 21:02:37 +01:00
hiker
c1a3d281f6 Merge remote-tracking branch 'origin/master' into game_protocol 2017-12-19 11:57:31 +11:00
hiker
9addcc4a55 Fixed handling of steering etc events: they are now properly
done at the closest time stamp, previously they were typically
exectuted too early on the server.
2017-12-19 11:14:33 +11:00
hiker
4d02e736f7 Started to add smoothing of errors - atm only for position, not angle. 2017-12-18 23:13:59 +11:00
hiker
51fd0c1e8e Don't limit number of physics steps in networking, since otherwise
physics results can diverge.
2017-12-18 23:08:40 +11:00
Deve
2b8737a75b Remove known issues from android readme.
We can use github issues for it.
2017-12-12 23:07:01 +01:00
hiker
f0d07a2de4 Execute rollback detection only on client; added comments
for potential future improvements.
2017-12-11 18:01:33 +11:00
Benau
a55e7d204a Fix wrong newline in linux terminal 2017-12-11 11:00:06 +08:00
Benau
dc562103c5 Remove wrong commit 2017-12-10 00:12:35 +08:00
Benau
f70af4677c Add direct conversion to map for xml nodes 2017-12-09 16:06:43 +08:00
hiker
2f747cf614 Remove REQUIRED_LOGIN #ifdef which is not needed anymore with the new menu. 2017-12-09 00:57:08 +11:00
hiker
825deed8dd Merge remote-tracking branch 'origin/master' into game_protocol
Fixed various conflicts.
2017-12-09 00:56:30 +11:00
hiker
eea6196231 Merge branch 'buffer-log-messages' 2017-12-07 09:43:56 +11:00
hiker
ebcab8d4e0 Fixed compiler warning. 2017-12-07 09:43:27 +11:00
hiker
5b296b08f9 Merge remote-tracking branch 'origin/master' 2017-12-07 09:43:09 +11:00
hiker
2810d2ad7d Merge remote-tracking branch 'origin/master' into buffer-log-messages 2017-12-07 09:39:29 +11:00
hiker
55d0df7bad Added option to buffer log messages (which can reduce debug output
overhead).
2017-12-04 11:32:09 +11:00
auria.mg
1afb62c97d Bring back the ability to skip the unlock cutscense, fixes #3069 2017-12-03 18:44:50 -05:00
Benau
d9937d7b33 Fix physical object from meta library 2017-12-03 23:58:17 +08:00
hiker
7744b056ea Merge branch 'master' of github.com:supertuxkart/stk-code 2017-12-04 00:41:28 +11:00
Benau
7ab8477a53 Reserve onReset of scripting method for library nodes (unused atm) 2017-12-02 15:24:36 +08:00
Benau
3607c7d520 Adjust irrlicht CSkinnedMesh class for .spm
The last frame in .spm is usable
2017-12-02 15:24:05 +08:00
Benau
2161efd9c4 Allow configure animation set through scripting 2017-12-02 02:36:43 +08:00
Benau
60a3890c78 Add support for meta library objects 2017-12-01 13:59:00 +08:00
hiker
3093803762 Add support for a 'prefix' to be printed for all log messages. 2017-11-30 17:49:45 +11:00
hiker
4f5b4aed0b Change the bld directories to be looked for to all include -64; changed
name of installer and only include 64-bit redistributable.
2017-11-30 17:48:34 +11:00
hiker
ae57be8f3b Changed version number to be git, added 32bit to installer name, and only include
the 32 bit redistributable.
2017-11-30 17:47:24 +11:00
hiker
efde9ac501 If more than one state arrived in one timestep for a client, rewind
to the latest one (not the earliest).
2017-11-28 17:26:00 +11:00
auria.mg
48aded5f6d Login screen : proper post-login redirection 2017-11-27 18:07:42 -05:00
auria.mg
579a4aa3cc Improve the way to enable/disable the networking menu, use the --online switch that previously existed 2017-11-26 21:54:48 -05:00
auria.mg
4f528c258d Disable new networking menus, will be enabled back in the networking branch 2017-11-26 21:48:45 -05:00
hiker
0b6e793df6 Script to print the per-timestep interpolated error plus maximum
and average error when comparing client and server debug output.
2017-11-27 08:32:44 +11:00
auria.mg
d92476ae70 First implementation prototype of the new netwoking UI, as discussed. 2017-11-25 18:51:49 -05:00
hiker
b08e2f56e1 Make the number of state updated the server sends configurable. 2017-11-24 18:33:26 +11:00
hiker
37ee602f28 Added state type to debug output. 2017-11-24 18:15:39 +11:00
hiker
7508b5db8b Fixed index in debug output and compiler warning. 2017-11-24 18:10:55 +11:00
Rémi Verschelde
2a093cde0a GLEW: Update to pristine upstream 2.1.0
Previous version was a modified GLEW 1.11.0 (2014). The STK modifications meant
to address https://sourceforge.net/p/glew/patches/40/ which is now fixed since
GLEW 2.0.0.

Here's the diff between pristine 1.11.0 and STK's version before this patch:
```diff
diff --git a/lib/glew/src/glew.c b/lib/glew/src/glew.c
index a78f14e1e..f8df0d758 100644
--- a/lib/glew/src/glew.c
+++ b/lib/glew/src/glew.c
@@ -296,30 +296,6 @@ static GLboolean _glewStrSame3 (GLubyte** a, GLuint* na, const GLubyte* b, GLuin
   return GL_FALSE;
 }

-#include <string.h>
-#include <stdlib.h>
-
-/* A simple open addressing hashset for extensions on OpenGL 3+. */
-static const char ** ext_hashset = NULL;
-size_t ext_hashset_size = 0;
-
-static unsigned hash_string(const char * key)
-{
-  unsigned hash = 0;
-  unsigned i = 0;
-  for (; i < strlen(key); ++i)
-  {
-    hash += key[i];
-    hash += (hash << 10);
-    hash ^= (hash >> 6);
-  }
-  hash += (hash << 3);
-  hash ^= (hash >> 11);
-  hash += (hash << 15);
-
-  return hash;
-}
-
 /*
  * Search for name in the extensions string. Use of strstr()
  * is not sufficient because extension names can be prefixes of
@@ -328,37 +304,14 @@ static unsigned hash_string(const char * key)
  */
 static GLboolean _glewSearchExtension (const char* name, const GLubyte *start, const GLubyte *end)
 {
-  if (ext_hashset != NULL)
+  const GLubyte* p;
+  GLuint len = _glewStrLen((const GLubyte*)name);
+  p = start;
+  while (p < end)
   {
-    unsigned hash = hash_string(name);
-
-    /*
-     * As the hashset is bigger than the number of extensions
-     * this will eventually break.
-     */
-    while(1)
-    {
-        unsigned index = hash % ext_hashset_size;
-        if (ext_hashset[index] == NULL)
-            break;
-
-        if (!strcmp(ext_hashset[index], name))
-            return GL_TRUE;
-
-        hash++;
-    }
-  }
-  else
-  {
-    const GLubyte* p;
-    GLuint len = _glewStrLen((const GLubyte*)name);
-    p = start;
-    while (p < end)
-    {
-      GLuint n = _glewStrCLen(p, ' ');
-      if (len == n && _glewStrSame((const GLubyte*)name, p, n)) return GL_TRUE;
-      p += n+1;
-    }
+    GLuint n = _glewStrCLen(p, ' ');
+    if (len == n && _glewStrSame((const GLubyte*)name, p, n)) return GL_TRUE;
+    p += n+1;
   }
   return GL_FALSE;
 }
@@ -10099,13 +10052,9 @@ static GLboolean _glewInit_GL_WIN_swap_hint (GLEW_CONTEXT_ARG_DEF_INIT)
 /* ------------------------------------------------------------------------- */

 GLboolean GLEWAPIENTRY glewGetExtension (const char* name)
-{
+{
   const GLubyte* start;
   const GLubyte* end;
-
-  if (ext_hashset != NULL)
-      return _glewSearchExtension(name, NULL, NULL);
-
   start = (const GLubyte*)glGetString(GL_EXTENSIONS);
   if (start == 0)
     return GL_FALSE;
@@ -10165,39 +10114,9 @@ GLenum GLEWAPIENTRY glewContextInit (GLEW_CONTEXT_ARG_DEF_LIST)
     GLEW_VERSION_1_2   = GLEW_VERSION_1_2_1 == GL_TRUE || ( major == 1 && minor >= 2 ) ? GL_TRUE : GL_FALSE;
     GLEW_VERSION_1_1   = GLEW_VERSION_1_2   == GL_TRUE || ( major == 1 && minor >= 1 ) ? GL_TRUE : GL_FALSE;
   }
-
-  if (major >= 3) /* glGetString method is deprecated */
-  {
-    GLint n, i;
-    glGetIntegerv(GL_NUM_EXTENSIONS, &n);
-    glGetStringi = (PFNGLGETSTRINGIPROC)glewGetProcAddress((const GLubyte*)"glGetStringi");
-
-    free(ext_hashset); /* In case we get called a second time. */
-
-    ext_hashset_size = (n * 3) / 2;
-    ext_hashset = calloc(ext_hashset_size, sizeof(const char *));
-    for (i = 0; i < n; ++i)
-    {
-      const char * extension;
-      unsigned hash;
-
-      extension = (const char *)glGetStringi(GL_EXTENSIONS, i);
-      hash = hash_string(extension);
-
-      while(ext_hashset[hash % ext_hashset_size] != NULL)
-        hash++;
-
-      ext_hashset[hash % ext_hashset_size] = extension;
-    }
-
-    extStart = 0;
-  }
-  else
-  {
-    /* query opengl extensions string */
-    extStart = glGetString(GL_EXTENSIONS);
-  }

+  /* query opengl extensions string */
+  extStart = glGetString(GL_EXTENSIONS);
   if (extStart == 0)
     extStart = (const GLubyte*)"";
   extEnd = extStart + _glewStrLen(extStart);
@@ -14064,9 +13983,6 @@ GLenum glxewContextInit (GLXEW_CONTEXT_ARG_DEF_LIST)
   GLXEW_VERSION_1_2 = GL_TRUE;
   GLXEW_VERSION_1_3 = GL_TRUE;
   GLXEW_VERSION_1_4 = GL_TRUE;
-  /* Check if GLX display is available */
-  if (glXGetCurrentDisplay == NULL || glXGetCurrentDisplay() == NULL)
-    return GLEW_OK;
   /* query GLX version */
   glXQueryVersion(glXGetCurrentDisplay(), &major, &minor);
   if (major == 1 && minor <= 3)
```
2017-11-22 12:04:46 +01:00
Rémi Verschelde
e3264d1de3 CMake: Add option to use system GLEW 2.0+
The option is enabled by default, but the system version will only be used
if found and newer than 2.0.0 (to ensure that https://sourceforge.net/p/glew/patches/40/
is fixed). When missing, we silently fallback to the vendored source code,
so there is no change for e.g. Windows compilation.
2017-11-22 11:54:38 +01:00
auria.mg
c59af9136c Merge branch 'KartPerGamemode'
# Conflicts:
#	src/states_screens/gp_info_screen.cpp
2017-11-21 19:20:49 -05:00
hiker
9b4f773703 Avoid rewinds on the server (which would create a big chaos since state
updated would be duplicated etc). Instead it will move 'past' events
to the current time, causing only a 'jump' in the one client causing
the event (instead of all).
2017-11-22 10:28:52 +11:00
hiker
40bdb4d777 Added #define to disable the online login for now. Makes it easier
to start and debug LAN play.
2017-11-21 18:15:03 +11:00
Deve
4d4c514c75 Corrrect gp info screen to keep consistency with track info screen.
Now num karts config param is updated only if spinner button or start button has been pressed.
2017-11-15 22:11:21 +01:00
hiker
afac848bb9 Updated documentation. 2017-11-15 16:36:21 +11:00
hiker
f38f30a75c Merge branch 'master' into game_protocol 2017-11-15 08:12:38 +11:00
hiker
f783be4d75 Updates translations with 0.9.3 version from transifex (no author credits updated). 2017-11-15 08:11:51 +11:00
hiker
28cd15cf84 Changed installer version to git. 2017-11-14 22:43:37 +11:00
hiker
76ceea5b0f Added Benau's 64-bit installer. 2017-11-14 22:23:23 +11:00
hiker
e6897c47a0 Merge pull request #2968 from leyyin/master
Improve windows installer script
2017-11-14 21:55:23 +11:00
hiker
5ad0e5b93d Updated x86 redistributable to 2017 version. 2017-11-14 21:46:40 +11:00
hiker
84ccf82173 Updated script to handle existing entries without duplicating authors
(or even worse msgids for translator credits).
2017-11-14 17:55:07 +11:00
Deve
20ffc3a693 Avoid a crash in ghost replay screen.
It was crashing when add-on track was uninstalled.

It only avoids a crash and it's not true fix, because replays list should be updated when add-ons have been installed/uninstalled.
2017-11-13 22:35:18 +01:00
hiker
5b9dc6895d Fixed server-only execution. 2017-11-13 12:48:03 +11:00
Deve
a67be44422 Allow to compile STKRelease build with debug symbols.
It may be useful for decoding backtraces from our linux static package.
2017-11-12 23:59:12 +01:00
auria.mg
b95e0a3373 Fix #2990 2017-11-11 18:15:55 -05:00
Deve
252403c9cc Avoid semi-transparent window on some compositors 2017-11-10 22:48:48 +01:00
hiker
4fced331fe Merge remote-tracking branch 'origin/master' into game_protocol 2017-11-10 16:08:03 +11:00
Deve
468c24acd3 Avoid negative AI karts number in follow the leader 2017-11-09 23:38:53 +01:00
Deve
165b2fea9c Avoid running follow the leader GP with 0 AIs 2017-11-09 23:23:05 +01:00
Benau
51a16b938f Read only 4 bytes for tangent (unused atm), remember update stk-assets 2017-11-09 12:16:30 +08:00
Ben Krajancic
53827cbe21 Fixing selection issue on end-race screen (#3008)
* 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

* Fix focusing erorr twice over

It may be worth making 'setfocusable' part of setvisible
2017-11-08 19:11:29 -05:00
Deve
28f81b2a85 Allow to move installed apk to sdcard 2017-11-08 22:06:58 +01:00
Deve
3baefcd6a7 Initialize FeatureAvailable array to false for legacy pipeline.
It has been broken in commit 271a26eaf0.

It solves some issues with etnaviv gallium driver. It may also solve a crash on old intel 965gm on windows, but I can't test it atm.
2017-11-07 22:54:36 +01:00
hiker
beca172af3 Fixed server-only execution. 2017-11-08 01:25:25 +11:00
Benau
046403e1df Expose race mode for scripting 2017-11-06 15:15:44 +08:00
LeMagnesium
237927e3e5 Mark "fortmagma" as locked until the door can open (#3015)
Keep the "fortmagma" challenge marked as locked on the GUI minimap even if enough points (180+) have been gathered to unlocked it, when the door is not open yet
2017-11-05 18:33:56 -05:00
auria.mg
158d83057c Fix FTL reset bug, fixes #3019 2017-11-05 18:22:27 -05:00
Deve
08be02af8f Fixed 64-bit dependencies.
Thanks to qwertychouskie for finding it.
2017-11-05 21:54:43 +01:00
hiker
54b32ba6b1 Merge branch 'master' into game_protocol 2017-11-05 13:03:15 +11:00
Deve
2e96a29977 Ignore some configuration changes that don't matter for us.
The "orientation" without "screenSize" was a clear bug. And now connecting external keyboard doesn't close STK for me anymore.
2017-11-04 22:08:42 +01: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
fc23874991 Clarify running commands location 2017-11-03 21:16:16 +08:00
Benau
7b6b211bde Merge pull request #3014 from urtzai/patch-3
All language names capitalized
2017-11-03 21:09:19 +08:00
Urtzi Odriozola
80efc29e69 All languages capitalized
In order to keep a correct order in a language selection menu, the language names need to be capitalized
2017-11-03 14:00:34 +01:00
Benau
fa6959251a Fix #2949
Use clamp to edge sampler
2017-11-03 20:28:15 +08:00
Benau
260729a8e2 Merge pull request #3012 from urtzai/patch-1
Basque language name capitalized
2017-11-03 17:02:48 +08:00
Urtzi Odriozola
cb4ef7a68d Update localized_name.txt 2017-11-03 09:32:52 +01: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
Deve
719f3039b3 Remove invalid empty translations.
They are not available on transifex. Norwegian is nb and nn. Chinese is zh_TW and zh_CN.
2017-11-02 21:30:52 +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
auria.mg
2cc160d7cc Tweak challenge that was too difficult. See #2997 2017-10-31 19:07:26 -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
Deve
f7886a31bf Better fix for shadow acne 2017-10-29 20:26:46 +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
Daniel Butum
0af7d7bf7f Modify windows installer so that it is version specific + add entry in the windows add/remove list 2017-10-27 17:30:47 +03:00
Fantasmos
823d3112ad Begun making template for dictionary 2017-10-27 22:31:54 +11:00
Benau
66d1ea802d Update Changelog 2017-10-27 14:31:10 +08:00
hiker
207e8cd475 Updaetd translator credits. 2017-10-27 10:52:48 +11:00
hiker
ad637e1076 Merge branch 'master' of github.com:supertuxkart/stk-code 2017-10-26 11:57:32 +11:00
Fantasmos
af7fefee1e note errors 2017-10-26 11:32:43 +11:00
hiker
0abfa64373 Updated credits to include all doncators and other contributors. 2017-10-25 20:24:28 -04: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
hiker
2275dc7744 Merge branch 'master' of github.com:supertuxkart/stk-code 2017-10-26 10:26:44 +11:00
hiker
e95657b2f4 Updated credits to include all doncators and other contributors. 2017-10-26 10:21:32 +11: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
b28574eb46 Fix b3d with more than 4 weights per vertex 2017-10-25 13:11:54 +08:00
Benau
0f17d7e23a Fix #2917 2017-10-25 09:14:26 +08:00
Benau
6cfe16a320 Add Karelian localized name 2017-10-25 00:24:56 +08:00
hiker
530bfce849 Updated translations. 2017-10-25 00:32:54 +11:00
hiker
6476af46cd Replced unicode characters with ascii characters. 2017-10-24 10:27:00 +11: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
8a0232382a Some fixes for some shader compiler 2017-10-20 09:25:43 +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
auria.mg
204e715637 Fix build 2017-10-17 20:08:15 -04: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
Deve
77161cc583 Avoid compilation errors for GLES 2017-10-17 23:34:19 +02:00
Deve
f034b3c22b Add tracks for apk 2017-10-17 23:34:19 +02:00
Benau
b204c492ef Update syntax 2017-10-17 12:15:37 +08:00
Benau
6a74b88273 Update readme and changelog 2017-10-17 11:53:22 +08:00
Benau
aaa8befe0a Fix appveyor build 2017-10-17 11:04:28 +08:00
Benau
fa48d099f2 Fix the remaining msvc warnings 2017-10-17 10:51:52 +08:00
Benau
fb6a0d7631 Merge remote-tracking branch 'origin/master' 2017-10-17 10:25:22 +08:00
Deve
1454e53b79 Set proper min sdk version for 64bit build 2017-10-16 21:31:17 +02: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
Ben Krajancic
6dcee109b5 Merge branch 'master' of https://github.com/Fantasmos/stk-code 2017-10-16 11:05:40 +11:00
Benau
9f10676dd3 Remove unused billboard shader 2017-10-16 07:43:00 +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
63ecbefbdd I forgot about particles 2017-10-12 22:55:26 +02: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
Deve
6794670510 Disable srgb framebuffer for intel hd 2000 too 2017-10-11 20:53:49 +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
Ben Krajancic
865426aad7 Small clarification to prevent build errors (#2954)
Building outside of this directory prevents the executable from launching, this small addition can help prevent this issue from happening.
2017-10-09 21:10:50 -04:00
Ben Krajancic
8ce23fe078 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.
2017-10-10 09:53:15 +11:00
Deve
ae4e302741 Add a way to run STK without srgb framebuffer 2017-10-09 21:18:15 +02:00
auria.mg
0453809915 Update credits 2017-10-08 19:56:13 -04: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
Benau
2217083421 Replace broken abyss replay with candela city 2017-10-08 11:16:25 +08: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
auria.mg
3ad081104e Re-extract strings for missing track, oops 2017-10-04 20:59:30 -04:00
auria.mg
7a63955a06 Minor challenge tweak 2017-10-04 18:56:43 -04:00
auria.mg
1c9e4bc04a Tweak hacienda easy challenge, see #2951 2017-10-04 18:50:27 -04:00
Deve
bc84559f1d Revert a hack for shadows.
It helps for horizontal surfaces, but makes vertical surfaces worse (for example rocks in cornfield crossing), so it's not really a solution.
2017-10-04 22:19:19 +02:00
auria.mg
0f790d4331 Update strings 2017-10-03 19:04:34 -04: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
Benau
f1dfabdcc2 Update Changelog 2017-09-30 14:55:14 +08:00
Sam
c4726e767a Merge branch 'master' of https://github.com/supertuxkart/stk-code 2017-09-28 20:07:17 +02:00
Sam
e3bfa79d43 Now you must progress the story mode to unlock sara the wizard 2017-09-28 20:05:12 +02:00
Deve
34a3207f91 Fixed android compilation 2017-09-27 23:20:35 +02:00
Deve
afbdbaeee8 Remove unused files.
Both Console and FB don't work with opengl driver. And the software driver is not even included in stk sources. So I don't think that it will be ever used.
2017-09-27 23:07:44 +02:00
Deve
de116c7e4c Fixed possible issue with changing resolution 2017-09-27 22:24:40 +02:00
Deve
126991118d Now only irrlicht depends on x11 2017-09-27 21:45:08 +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
auria.mg
4078863d1d Update achivements.xml, fixes #2940 2017-09-19 18:44:05 -04:00
Deve
70471a7266 Adjust explosion particle size to updated explosion image (removed transparent margins).
Causes minor performance improvement, but better than nothing.
2017-09-19 22:42:39 +02: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
Deve
71334bac5b Move xrandr to irrlicht cmake file and also fixed indentations 2017-09-18 22:14:43 +02:00
Deve
66cebbdbe7 Add cmake scripts that find egl and wayland libraries 2017-09-18 21:50:34 +02:00
Benau
b09eec4bcb Allow speed weight objects to be attached to bone 2017-09-18 11:27:21 +08:00
Deve
f6fa44f0df Request srgb colorspace on wayland 2017-09-17 21:51:07 +02: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
32243e7eb3 Update the newlt-added icons with ones whose liense is known 2017-09-14 19:44:34 -04: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
9681a9586f Update supertuxkart.pot 2017-09-13 06:20:20 +02:00
deve
6500cf716a Use better names in touch device settings 2017-09-13 06:18:07 +02:00
Deve
e615ff67d6 Don't use gl functions that are not available in core context.
Fixes some driver warnings.
2017-09-12 23:49:35 +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
92aec928a1 Tweaked physics so that wheel raycasts happen from inside the collision shape
(fixes karts getting stuck at borders), use a longer less bevelled collision
shape better kart stability), and reduce angular factor to make it less
likely that karts can drive on walls.
2017-09-06 09:06:04 +10:00
hiker
5cbcd79cca Merge branch 'master' of github.com:supertuxkart/stk-code 2017-09-06 09:02:33 +10:00
Deve
8a3cdb4fef Don't link with useless libs.
Also remove custom script for xrandr.
2017-09-05 00:19:55 +02: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
auria.mg
590ec78640 Update changelog 2017-09-02 21:54:02 -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
Deve
6f11a1669f Make particles in GLES renderer to look a bit better.
Now kart exhaust is not too dark anymore.
2017-09-02 01:01:35 +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
8c73b67309 Update supertuxkart.pot 2017-08-30 06:50:51 +02:00
deve
2de3a39e04 Make device name translatable 2017-08-30 06:46:55 +02:00
auria.mg
6e30154fc3 Update strings 2017-08-29 19:48:32 -04: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
e05ef71b77 Make it clear that NDK >= r15b is atm. not supported 2017-08-29 22:00:45 +02: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
auria.mg
96c4e26ef3 Update strings 2017-08-28 19:36:34 -04: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
auria.mg
5999e83cba Update changelog 2017-08-23 19:02:19 -04:00
auria.mg
e852714466 Update challenges for new city track 2017-08-23 18:52:10 -04: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
Deve
dec9948d0b Make sure we don't write out of array.
It shouldn't happen, but code below assumes that visualAttrBuffer has its full size, so just in case...
2017-08-23 00:13:57 +02:00
Deve
b03e108902 Handle a case when request for srgb-capable framebuffer failed.
It fixes #2902.
2017-08-22 23:53:04 +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
Deve
bd84929982 Don't convert gloss maps.
It causes artifacts when advanced lighting is enabled.
2017-08-21 11:30:49 +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
Deve
ad062d3b81 Fixed indentations 2017-08-17 00:11:25 +02:00
Deve
3cf8649a6e More work with generate_assets script.
Now uncompressed tux with .spm takes just 350 kb.
2017-08-17 00:11:25 +02: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
Deve
196fe378b4 Fix for png->jpg converter.
It's possible that there are multiple file names in single parameter, for example:
<sky-box texture="0006.png 0001.png 0004.png 0002.png 0003.png 0005.png" ... />
now it should work.

Also use is_opaque rather than has_alpha that gives better results.
2017-08-15 23:03:22 +02:00
hiker
01be800253 Fixed stack traces for win32 (#2642). 2017-08-15 23:54:39 +10:00
Deve
8fa0e4e7b3 Make it less verbose 2017-08-15 10:12:56 +02:00
Deve
4da945f710 Move duplicated code to separate function 2017-08-15 10:12:56 +02:00
Deve
0a2d05a998 Add a possibility to convert png->jpg for spm format for smaller apk 2017-08-15 10:12:56 +02:00
hiker
5a2b92d79d Merge branch 'master' into improve-xbox-gamepad-support 2017-08-14 10:05:26 +10:00
Deve
71bbafadbd Fixed memory leaks in gles 2017-08-13 22:02:55 +02: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
Deve
ee5bdad926 Move output/seat listener to better place 2017-08-13 01:38:21 +02:00
Deve
fd4ab9d88f Fixed possible uninitialized variable in gles renderer 2017-08-13 01:38:21 +02:00
Deve
cf868df93f Fixed memory leaks in wayland device 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
50c3ac671b Merge branch 'master' of github.com:supertuxkart/stk-code 2017-08-11 10:10:27 +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
5b68e18df4 Fix cygwin support. 2017-08-11 09:38:58 +10:00
auria.mg
936ef3c4c7 Update changelog 2017-08-09 19:37:49 -04: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
e03c0849ce Fixed previous commit - got confused with the #undef :P 2017-08-09 20:30:44 +10:00
hiker
8be5443f8c Merge branch 'fix-profiler' into improve-xbox-gamepad-support 2017-08-09 17:56:40 +10:00
hiker
d46b03b317 Hopefully fixed cygwin build problems. 2017-08-09 17:54:29 +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
hiker
6f5b1d2a55 Merge branch 'improve-xbox-gamepad-support' of github.com:supertuxkart/stk-code into improve-xbox-gamepad-support 2017-08-09 10:23:52 +10:00
auria.mg
f589bbea04 Attempt to fix 2617 2017-08-08 20:23:22 -04:00
hiker
11a587dd30 Merge branch 'improve-xbox-gamepad-support' of github.com:supertuxkart/stk-code into improve-xbox-gamepad-support 2017-08-09 10:15:35 +10: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
b440511c95 Fixed incorrect right thumbstick mapping. 2017-08-08 21:55:28 +10:00
hiker
bd5eb89cc0 Use XInput 9.1 which does not need an installer and works on most
windows platforms. Move the linking to irrlicht cmake.
2017-08-08 21:44:32 +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
Deve
0a715ac31a Fixed 32-bit mingw compilation 2017-08-07 22:33:57 +02:00
hiker
620d1f34c1 Link in xinput on windows builds. 2017-08-07 23:50:09 +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
e6c2c3df95 Revert to using guidProduct for all existing code, but the correct guidInstance
for detecting XInput devices only.
2017-08-07 09:15:09 +10:00
Deve
b6df36fc39 Don't hardcode build-tools version 2017-08-06 23:15:08 +02:00
Deve
bc6ff38b22 Simplify light factor when advanced lighting is disabled.
In this case only diffuseMatColor really matters, other values are constant.

It improves performance on GLES renderer and it's also noticeably faster for GL on desktop.
For example:
- fps increased for me from 60 to 69 on Hacienda with intel HD 4000
- from 43 to 49 on lighthouse

There is much less difference on nvidia graphics card, but still it gives small performance improvement.
2017-08-06 22:18:18 +02: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
hiker
68d41a07ba Now actually use XInput to read the joystick events for all
XInput devices.
2017-08-05 00:34:51 +10:00
hiker
f431730278 Fixed recognition of XInput devices. 2017-08-05 00:12:22 +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
623bb460c6 Merge branch 'master' of github.com:supertuxkart/stk-code 2017-08-03 21:23:32 +10:00
hiker
04c775eead Don't measure lock time, some whitespace cleanup. 2017-08-03 21:21:40 +10:00
hiker
d3da93f368 Try to use a Microsoft function to detect XInput devices when using
DirectInput - atm not working yet :(
2017-08-03 09:24:50 +10:00
Geoffrey Mon
802d70ca8d Fix code style issues 2017-08-02 17:21:37 -04:00
Deve
1d2ff0bc47 Remove more unused files 2017-08-02 22:03:01 +02:00
Deve
e9496caa71 Merge pull request #2892 from qwertychouskie/cleanup2
Cleanup V2
2017-08-02 21:49:58 +02: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
Qwerty Chouskie
14ea69dc90 Cleanup V2 2017-08-02 09:29:15 -07: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
22208365d2 Switch to direct input for joystick handling. 2017-08-02 08:13:24 +10:00
hiker
1e5d2643be Bugfix: incorrect index. 2017-08-02 08:13:04 +10:00
hiker
cc6a1a3909 Started to add XInput support (to be able to distinguish the two
triggers).
2017-08-01 17:48:18 +10:00
hiker
85ee217d77 Converted tab to spaces. 2017-08-01 17:19:52 +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
a89b2f5df2 Minor tweak for linux icon.
On freedesktop specs they suggest to use 48x48 icon.
2017-07-30 12:56:25 +02: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
QwertyChouskie
0be10ce448 Fix MinGW cross-compilation (#2883)
* Fix MinGW x64 cross-compilation

* Fix MinGW x86 cross-compilation
2017-07-22 20:17:31 -04:00
Benau
979e1546fb Fix #2881, only create a camera when initializing 2017-07-21 09:27:57 +08:00
auria.mg
1770d01e07 Changelog, continued 2017-07-20 19:57:42 -04:00
auria.mg
b2fd3d341a Changelog 2017-07-20 19:50:46 -04:00
Deve
09a735c25e Use key names in android device too 2017-07-20 22:58:12 +02:00
Deve
7a92708fd3 Use key names in wayland device 2017-07-20 22:58:12 +02: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
samuncle
a3d6f2f453 Start to update the changelog for the release (please add/correct if needed) 2017-07-19 19:35:04 +02:00
Deve
11b2409fab Activate accelerometer only if needed 2017-07-18 21:43:45 +02:00
Deve
20850c9811 Remove unused cmake option 2017-07-18 00:11:09 +02:00
Deve
bbee93dfe8 Update readme and generate_assets script.
The issues on android 4.4 + qualcomm should be already fixed in 8653d410f8 and d44802a482

I also added few lightweight tracks and karts to the apk
2017-07-14 22:04:52 +02:00
Deve
cbba2b6b7d Merge pull request #2880 from scootergrisen/patch-2
Add danish translation
2017-07-14 06:21:38 +02:00
scootergrisen
cb8e0d7b2a Add danish translation 2017-07-14 00:40:56 +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
Deve
1fd6a8aa86 Make sure that we are not using files from our zlib/libpng when STK is compiled with shared libraries.
It's possible that STK was using these files for compilation when cmake was run from main directory. In this case compiled files are stored in stk-code/lib, so that CMAKE_CURRENT_BINARY_DIR is stk-code/lib/irrlicht rather than stk-code/build/lib/irrlicht and we include whole lib/libpng rather than non-existing directory.
2017-07-10 21:14:28 +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
9b7f3d70dd One more place where we were linking with glu.
It doesn't really matter, but it's better that our linux package doesn't depend on it.
2017-07-05 21:49:31 +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
2bf99aef1d Remove useless gles defines from irrlicht cmake file 2017-07-04 23:32:57 +02:00
Deve
c6ea07eacc Remove unused gles 1.0 code 2017-07-04 23:30:09 +02:00
Deve
2bdce1994c Minor fix in android build script 2017-07-04 22:57:59 +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
f672088a04 Tweak closing android device 2017-07-04 22:43:11 +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
QwertyChouskie
76257f68c5 Avoid error when libopenglrecorder not found (#2871)
* Avoid error when libopenglrecorder not found

* Full fix
2017-06-27 19:56:53 -04:00
Deve
076d1f2b62 Save few more mbytes in the apk 2017-06-27 21:20:38 +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
Deve
23277066a4 Some fixes for egl config.
Added a fallback with basic configuration if requested config failed.
Also better check if choose config is success (num_configs can be >0 even if egl config is null)
2017-06-24 21:39:58 +02:00
Deve
8f70b74db9 Some tweaks in generate assets script 2017-06-24 01:11:58 +02:00
Deve
78b9b92efa Fixed gles compilation.
We include CIrrDeviceLinux in our edit box widget and it doesn't respect irrlicht cmake flags, so that it tries to include opengl headers even if we selected gles renderer. Just move it to the cpp file to avoid redeclaration errors.
2017-06-23 23:51:33 +02:00
QwertyChouskie
a2d831c1ea Handle missing libopenglrecorder gracefully (#2867)
* Handle missing libopenglrecorder gracefully

* Tweak readme

* Change version to "git"

* fail when version !== git

* oops

gota do my research :/
2017-06-22 20:27:29 -04: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
Deve
72358371f7 Some fixes for video mode list on android.
Should be a bit safer when user wants to close the game very early (i.e. when assets are extracting) and we get destroy event before irr_driver is actually initialized.
2017-06-19 22:59:27 +02: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
Deve
cfc506d0cf Merge pull request #2862 from MTres19/unlock_all_cmdline
Add option to unlock everything with a command line flag
2017-06-17 18:04:36 +02: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
Deve
ae19ade5e5 Add gradle support to android build script 2017-06-13 22:06:53 +02: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
Deve
e11641cd43 Minor correction in generate_assets script 2017-06-08 21:44:17 +02: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
Marianne Gagnon
e4f2d0b1d5 Fix OS X build following libpng upgrade 2017-06-05 20:52:46 -04:00
Deve
15ce5b4ebf Fixed windows compilation 2017-06-05 21:54:44 +02:00
Deve
ccf3893abb Apply our modifications to libpng cmake script 2017-06-05 21:16:22 +02:00
Deve
9ebdb5fd00 Update libpng to newer version in order to fix some vulnerabilities.
I decided to just make a bug-fix update and keep the 1.5.x series because newer versions may also need the zlib update.
2017-06-05 21:10:38 +02: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
Deve
37a2752162 Use newer seat version if possible 2017-05-31 23:47:19 +02:00
Deve
212411fb49 Allow to repeat keys 2017-05-31 22:31:46 +02:00
Deve
d6e5e04666 One more tweak 2017-05-31 22:29:28 +02:00
Deve
c13f812290 Simplify previous commit and also fix the double egl context deletion 2017-05-30 21:39:30 +02:00
Deve
26a6c49fc1 Add missing break 2017-05-30 00:34:39 +02:00
Deve
e00995d099 Allow to use GLES renderer with Wayland device.
It would be nice to simplify it a bit, i.e. decide if OpenGL context should be created on device side or driver side, use single constructor in GLES driver etc... But I'm not really sure how it will look like after Benau's space partitioning work, so some refactoring postponed till later.
2017-05-30 00:30:00 +02: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
b5f2e4d163 Allow to set window caption 2017-05-25 20:49:10 +02:00
Deve
0c18090669 Minor simplifications for keyboard on wayland 2017-05-25 17:27:08 +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
Deve
8989cc97b5 Some fixes for keyboard on wayland 2017-05-24 01:17:25 +02:00
hiker
742be06c21 Removed code duplication by using macros. 2017-05-22 12:38:21 +10:00
Deve
2102b059de Update sources.cmake 2017-05-18 21:26:38 +02:00
Deve
8968706c09 Merge branch 'wayland' 2017-05-18 21:25:53 +02:00
Deve
bc25bc4435 Keep consistency with other irrlicht defines 2017-05-18 20:48:42 +02:00
Deve
abde57cd4a Add mouse wheel event 2017-05-17 22:44:22 +02:00
Deve
36368041ee Mostly cleanup and style modifications 2017-05-17 22:43:56 +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
f99bc25845 Avoid semi-transparent window 2017-05-15 21:17:03 +02:00
Deve
961ac4d79e Better fix for glew 2017-05-14 00:06:54 +02: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
Deve
da802d836d Some fixes for mouse cursor. 2017-05-12 22:58:33 +02:00
Deve
ba39e88680 Update cursor when visibility is changed 2017-05-12 21:47:51 +02: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
70dc99ca6c Fixed some non-working keys.
We can't include linux/input.h because it breaks irrlicht keys.
2017-05-06 23:25:00 +02:00
Deve
632a759ee6 Allow to choose device type using environmental variable 2017-05-06 22:38:05 +02:00
Deve
e02a8f4448 Allow to make single build with both x11 and wayland device 2017-05-06 21:53:32 +02:00
Deve
2f1b61b798 Remember mouse button states 2017-05-05 23:04:18 +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
a9c2a1922a Some work on support clipboard 2017-05-04 22:36:12 +02:00
Deve
e27df23415 Draw mouse cursor 2017-05-04 21:06:40 +02:00
Deve
da65650b75 Allow to write unicode characters.
Needs some cleanup.
2017-05-03 20:45:42 +02: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
01ffc129fb Make it working for current wayland/weston 2017-04-24 22:26:47 +02:00
Deve
f31e4f8ea4 Add missing files 2017-04-23 21:22:15 +02:00
Dagan Martinez
ec3a74f758 Changed "macOS X" to "macOS" (#2843)
No such system stylized as "macOS X."

Left "OS X Install" because I don't think Apple uses install DVD's anymore since renaming as macOS?
2017-04-22 18:49:37 -04:00
Deve
5d9b1e103d Rename file 2017-04-22 21:55:24 +02:00
Deve
63517dd4be Better EGL context creation 2017-04-22 21:51:49 +02:00
Deve
035c33f960 Merge branch 'master' into wayland 2017-04-22 21:11:10 +02:00
Deve
72012120d9 Merge branch 'egl2' 2017-04-21 21:09:21 +02:00
Deve
d0a909361b Revert "Avoid reading/writing out of array"
This reverts commit 7f53faed4a.
2017-04-21 21:06:53 +02:00
deve
f4e803220b Some minor fixes 2017-04-21 08:51:54 +02:00
Deve
9fc3578b51 Rewrite whole EGL manager.
Now it allows to create OpenGL context, so we can use it for Wayland.
2017-04-20 23:20:21 +02:00
auria.mg
49be7570a9 Fix inaccuracy in readme 2017-04-19 19:17:48 -04:00
hiker
db71824804 Minor documentation update. 2017-04-19 23:33:31 +10:00
Yevgeny
89c3a5cc65 Improved README.md's quality - April 17 2017 (#2839)
* Massive README.md update

Readme.md updated and cleaned up, a new section was added

* More updates to README.md

Updated README.md with another STK Winbuild method, some additonal
changes - mostly to enrich and improve the language of the readme file.
Windows_build.md is just a scratch pad for README.md's Windows sections.

* more tweaks to the file

more tweaks, old windows build method was removed because it is
confusing. additional tweaks were added

* More tweaks to the file

Updated the file to correct issues that were found in
supertuxkart/stk-code#2839

Disk space requirement was updated to be more correct.
mention of libvpx-devel was temporarly removed.

step  8 was revised slightly

* quick mistake correction
2017-04-18 19:02:24 -04: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
76491d13ec Update cmake sources list 2017-04-17 09:50:15 +08:00
Benau
fd07df4251 Merge remote-tracking branch 'origin/libopenglrecorder' 2017-04-17 09:49:36 +08:00
Benau
0e15e6de75 Update readme for libopenglrecorder 2017-04-17 09:47:03 +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
Deve
f2e2ebb259 Update readme 2017-04-09 21:48:15 +02: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
Corentin Pazdera
c00c35e59a Fix appveyor build by using correct branch for dependencies (#2834) 2017-04-08 18:48:49 -04: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
91e7c51ae7 Make sure we don't link with GLU 2017-04-08 12:31:09 +02:00
Deve
9efe8ae4fa One more fix for mingw 2017-04-07 21:34:28 +02:00
hiker
5af4ea35a7 Fixed 64-bit related compiler warnings. 2017-04-07 23:43:01 +10:00
hiker
668fdd3b49 Fixed some 64-bit related compiler warnings. 2017-04-07 23:25:52 +10:00
hiker
14ec154f19 Try to fix linux build. 2017-04-07 20:27:11 +10:00
Deve
724cb100e0 Make grass material more bright in legacy pipeline 2017-04-07 00:02:31 +02:00
Deve
7f53faed4a Avoid reading/writing out of array 2017-04-06 23:48:49 +02:00
hiker
8a1d0bae34 Fixed some 64-bit related compiler warnings on VS. 2017-04-07 00:41:08 +10:00
hiker
5e5d86bc6d On windows look for the 64-bit dependency package in dependencies-64bit.
This allows installation compiling 32 and 64-bit windows versions from
the same repo without switching dependencies.
2017-04-06 23:59:01 +10:00
deve
70d7fdd197 Fixed mingw compilation.
It should be possible to simplify it with something like
find_library(CURL_LIBRARIES NAMES libcurl libcurldll PATHS "${PROJECT_SOURCE_DIR}/dependencies/lib")
so you can look if it works on Visual Studio.

And as far as I see pkgconfig is used only on unix. Btw. I'm also not sure if it should be if(UNIX AND NOT APPLE) ?
2017-04-06 11:39:53 +02:00
Daniel Butum
2ba148a84e Add appveyor and freenode chat badges to README (#2819) 2017-04-05 21:57:36 -04:00
Corentin Pazdera
eca2a99f38 Add irc notifications to appveyor with the script from battle of wesnoth team (#2688)
https://raw.githubusercontent.com/wesnoth/wesnoth/master/utils/appveyor/irc-notify.py
2017-04-05 21:57:09 -04:00
Benau
b2d3817de3 Merge remote-tracking branch 'origin/master' into advanced_recording 2017-04-06 09:43:36 +08:00
Benau
ab554315b5 Remove non-supported video format 2017-04-06 09:37:32 +08:00
Deve
240041f520 Fixed android compilation 2017-04-05 21:49:52 +02:00
Deve
1d39030f51 Assume that EGL version is always greater than 1.3 because otherwise we won't be able to create GLES 2.0/3.0 context. 2017-04-05 21:49:42 +02:00
Deve
635ea89cd0 Some corrections with egl attribs 2017-04-05 21:49:33 +02:00
Deve
3961a9a3b7 Move EGL context to separate class.
It will allow to use it for OpenGL + Wayland.
2017-04-05 21:49:24 +02:00
hiker
96bdf77050 Merge branch 'physics-tweaks' 2017-04-06 00:06:22 +10:00
hiker
00bba293ad Merge remote-tracking branch 'origin/master' into physics-tweaks 2017-04-05 23:59:34 +10:00
hiker
6c4f6d1cf5 Merge branch 'master' of github.com:supertuxkart/stk-code 2017-04-05 23:14:29 +10:00
Benau
391d31659b Remove hardcoded 44100 samplerate 2017-04-05 15:43:47 +08:00
Benau
bb529c011e Add message queue for result callback 2017-04-05 12:31:39 +08:00
Benau
1a072d609f Add vp9 encode support, though it encodes very slowly 2017-04-05 01:10:44 +08:00
Benau
85de10ffb5 Fix memory leak 2017-04-04 23:53:44 +08:00
Benau
b7c709c709 Allow muxing mjpeg with vorbis audio with mkv
Not sure if playable in with all players
2017-04-04 16:12:09 +08:00
Benau
b0d0a0739e Add CMake flag to enable / disable recorder 2017-04-04 14:23:04 +08:00
Benau
0bb5bfb930 Don't use dlloaded function in pulseaudio recorder namespace 2017-04-04 12:19:29 +08:00
Benau
ea6719990a Move all recording code into recorder folder 2017-04-04 10:04:55 +08:00
Benau
2d4bfa9fb0 Use shared library for vpx on msvc 2017-04-03 14:32:07 +08:00
Benau
6bc935d085 Try to build 64bit appveyor 2017-04-03 09:20:14 +08:00
Benau
19f88e3939 Allow stk to be built with 64bit msvc
Please use lastest adv_recording_64 branch in repo
2017-04-03 01:33:13 +08:00
hiker
fdcb39b8fc Fix #2812 (non-smooth cannon behaviour). 2017-04-02 21:06:10 +10:00
Benau
8a5e28251e Fix mingw build 2017-04-02 14:55:55 +08:00
Benau
adf889a885 End vorbis encoder thread more properly 2017-04-02 10:36:21 +08:00
Benau
ab2ce24914 Reduce cpu usage 2017-04-02 10:28:46 +08:00
Deve
9bde708155 Tweak generate assets script to save few Mbytes in the apk.
Musics are still not-that-bad while they take less space.
2017-04-02 00:19:13 +02:00
Benau
9bfe4200c4 Only use TJFLAG_FASTDCT if supported 2017-04-02 00:43:31 +08:00
Benau
7f23d062b7 Use turbo jpeg for compression 2017-04-01 16:41:06 +08:00
Benau
8a8b388170 Allow pulseaudio to be loaded dynamically 2017-04-01 15:21:58 +08:00
Benau
294aa3ad48 Allow recording 16bit pcm data with any channels 2017-04-01 11:02:14 +08:00
Benau
cfea104a50 Apply camera fix from Stragus 2017-04-01 10:33:48 +08:00
Benau
cacbdbd668 Allow recording audio in windows using wasapi 2017-04-01 00:52:38 +08:00
hiker
794f1b59ed Removed unused code. 2017-03-31 23:30:55 +11:00
hiker
db31237d19 Removed old workaround for uneveness in tracks, which contributed
to karts sometimes being able to drive up walls.
2017-03-31 23:13:38 +11:00
Benau
29d0839162 Move libvpx parameters to user config 2017-03-31 12:22:21 +08:00
Benau
21ff135b04 Merge remote-tracking branch 'origin/master' into advanced_recording 2017-03-31 11:50:24 +08:00
Benau
9039324145 Allow muxing into webm using libwebm 2017-03-30 13:30:21 +08:00
hiker
1cd5bb66c9 Try to better handle small 'gaps' (or perhaps floating point
rounding errors) in tracks that can cause odd physics behaviour
(e.g. being able td drive upp the walls).
2017-03-30 00:08:30 +11:00
hiker
6f293af93a Merge branch 'physics-tweaks' of github.com:supertuxkart/stk-code into physics-tweaks 2017-03-29 08:49:51 +11:00
hiker
3da2c07d62 Enable friction to be changed per wheel: previously sliding was only
enabled once the whole kart chassis was tilted enough, but karts could
still end up driving on a wall (one wheel on a wall would not tilt the
chassis enough to trigger sliding, but give the kart an up velocity
which allowed it to drive on the wall). Friction is now determined
by the normal of the triangle hit by the raycast.
2017-03-29 08:32:50 +11:00
Deve
af98b526d6 Give few more fps in GLES renderer by pre-computing diffuse/specular color 2017-03-28 22:15:33 +02:00
QwertyChouskie
0123228c20 Set menu FPS to 60 (#2823)
Smoother, see https://github.com/supertuxkart/stk-code/issues/2302.
2017-03-27 21:56:20 -04:00
hiker
2875e7ca6f Revert "Comment out caching so that appveyor can download new dependencies."
(which should have been done on master).

This reverts commit 2819801c7e.
2017-03-28 12:20:17 +11:00
hiker
a3544735db Re-enable caching now that appveyor has downloaded the new dependencies. 2017-03-28 11:00:33 +11:00
hiker
345d9c3ef1 Comment out caching in appveyor config to allow it to download new dependency package. 2017-03-28 10:44:12 +11:00
hiker
2819801c7e Comment out caching so that appveyor can download new dependencies. 2017-03-28 10:42:37 +11:00
Benau
df758669d3 Use high resolution timer for AV sync 2017-03-28 00:44:12 +08:00
Deve
0f9151e5d2 Move recording settings to separate group 2017-03-27 00:31:55 +02:00
Deve
075afde636 Fixed kart particles for GLES with disabled advanced lighting 2017-03-27 00:25:39 +02:00
Deve
a7f0d3762c Some fixes for GLES renderer.
- Don't use BGRA format at all. It doesn't work with non-typical cases (i.e. with srgb or compressed textures) and also casues artifacts on some android devices. I kept the extension in central settings, but it probably won't be used.
- Use sRGB texture format when advanced lighting is enabled. This makes it closer to the original OpenGL renderer and also avoids to have even more #ifdef's for sRGB conversions.
- Keep RGBA textures for non-advanced lighting to make it simpler.

Now advanced lighting in GLES looks almost the same as in OpenGL 3.x (without shadows/GI)
2017-03-25 22:23:46 +01:00
Benau
be103dd666 Implement real time vp8 encoding 2017-03-25 16:30:41 +08:00
Deve
5931e20f8b Use highp precision qualifier.
For OpenGL 3.x renderer it only matters for some buggy drivers (i.e old AMD driver that complains about missing precision qualifier). Based on specification is should have no effect and was added for compatibility with GL ES.

In our case vertex and fragment must have the same precision because we use common header for both shader types and the precision for uniform variables must match.
Also "precision highp float;" is defined by default for both vertex and fragment shaders, so it seems to be more proper.

This will hopefully solve the problem with nvidia driver that tries to use f16vec4 instead of just vec4, see:
https://forum.freegamedev.net/viewtopic.php?f=17&t=7397&sid=06682ddb05ee9fbf48a2984d0bd48d5b
2017-03-24 22:21:09 +01:00
Benau
a68c085e95 Use pulseaudio + vorbisenc for sound recording (linux for now) 2017-03-24 21:51:17 +08:00
hiker
9fdd39b075 Removed unused code. 2017-03-24 16:35:45 +11:00
Marianne Gagnon
8461ffcc68 Merge branch 'master' of https://github.com/supertuxkart/stk-code 2017-03-23 21:03:10 -04:00
Marianne Gagnon
b85d84c9dd Remove outdated Apple-specific code 2017-03-23 21:02:16 -04:00
Benau
372ce6923c Log in terminal if recording isn't supported 2017-03-24 08:51:42 +08:00
hiker
6c35c08474 Increased suspensoin stiffness to offset the reduced impulse casued
by removing the '*f' factor (seee 9a5eec3761).
Otherwise the AI triggers rescue in sandtrack because of very frequent
chassis-track collisions.
2017-03-24 09:58:26 +11:00
hiker
b26d833e84 Fixed compiler warnings. 2017-03-24 08:41:17 +11:00
hiker
f35b9c9480 Try setting kart (vs track specificially) friction to 0, and
reduce roll/pitch impact which should keep karts more parallel
to the ground.
2017-03-23 19:22:53 +11:00
hiker
b8655e53cc Added support to modify the angular factor of a kart. The angular
factor can be used to reduce the effect of an impulse for roll
and pitch - keeping karts more parallel to the ground.
2017-03-23 19:07:34 +11:00
Benau
2660a5b332 Allow message queue to be able to do linebreak
Also set "/" and "\" to be breakable
2017-03-23 00:51:50 +08:00
Benau
aecb1a97ce Update license of img.h as Stragus said in IRC
Also remove unneeded file
2017-03-23 00:12:06 +08:00
Benau
81c6735ba2 Fix when getNumProcessors return 0 2017-03-22 20:47:34 +08:00
deve
a3a8289836 Fixed a hang on startup under cygwin 2017-03-22 13:17:04 +01:00
deve
4df773d283 Some fixes in cmake.
Note that you need updated dependencies on windows.
2017-03-22 10:24:33 +01:00
hiker
f55c39b3b1 Support setting of friction for karts, moveable and track in stk_config.xml
and kart_characteristics.xml (for now no changed settings, all are at
tbe default of 0.5).
2017-03-22 19:52:03 +11:00
Benau
41e66bef37 Allow keeping target name after changing resolution 2017-03-22 12:44:32 +08:00
Benau
9a69859c8f Fix crash when deleting AVIWriter with file closing 2017-03-22 11:34:42 +08:00
Benau
7e9f723038 Allow recording video with ctrl + printscreen 2017-03-22 10:43:02 +08:00
Benau
4b663a08ce Use array deallocation 2017-03-22 09:58:22 +08:00
Benau
9034d89a31 Add the missing clear() 2017-03-22 09:53:02 +08:00
Benau
58c665efc6 Merge branch 'avi_writer' 2017-03-22 09:14:35 +08:00
Benau
740bf19446 Fix grammar 2017-03-22 09:08:44 +08:00
Benau
6ef70e2e7c Use message queue to inform users about recording status 2017-03-22 09:02:21 +08:00
Benau
2b9a84253a Make MessageQueue thread-safe 2017-03-22 08:40:58 +08:00
Benau
668b28f632 Allow to config whether to limit game framerate with recordings 2017-03-22 07:43:00 +08:00
Benau
196b2b722c Fix mac build 2017-03-22 07:42:48 +08:00
Deve
4ef8ec3af2 Fixed a warning in shaders compilation 2017-03-21 19:42:53 +01:00
Deve
583b858860 Handle #stk_include in better way.
It allows to use it recursively.
2017-03-21 18:41:18 +01:00
Benau
f58cf2d9cc Better handling with thread 2017-03-22 00:39:24 +08:00
Benau
3ed52e26d0 Call createFile only in AVIWriter thread 2017-03-21 16:16:10 +08:00
Benau
e2482e602c Don't use irrlicht image 2017-03-21 14:35:20 +08:00
hiker
5bbacfc72d Allow tracks to set their friction (defaults to the bullet default 0f 0.5). 2017-03-21 16:24:29 +11:00
Benau
449d63c0d8 Save record option in user config 2017-03-21 13:08:08 +08:00
Benau
547d28a9e4 Use jpeg-turbo library in msvc 2017-03-21 09:17:39 +08:00
samuncle
8265bb14f3 Revert, the high frequency noise has it's own branch 2017-03-20 15:15:51 -05:00
Sam
16c0736f8b Add base for detail map with splatting 2017-03-20 20:49:54 +01:00
Benau
3087a7c856 Don't call malloc for each frame 2017-03-21 01:09:20 +08:00
Benau
78dcabb143 Try to maintain a better synchronization with game framerate 2017-03-20 16:16:26 +08:00
Deve
2a64ce94c8 Some fixes for scale rtts.
- Don't force using rtts when advanced lighting is disabled because it actually makes the game slower
- Keep the minimap and kart selection screen in high quality
2017-03-18 22:26:35 +01:00
Benau
88cbcd202c Don't enable AVIWriter if PBO is not usable 2017-03-18 16:06:38 +08:00
Benau
8259026ac1 Make AVIWriter threaded and get pixel with 3 async PBOs
Also try to record at a fixed 24fps
2017-03-18 15:50:18 +08:00
Benau
21cbcd9185 Load speedmeter texture before rendering the first frame 2017-03-18 08:30:50 +08:00
Benau
d3d7c95b4d Fix msvc build 2017-03-17 17:19:46 +08:00
Benau
65da13fc52 Merge remote-tracking branch 'origin/threaded_tex_loader' into avi_writer 2017-03-17 16:31:32 +08:00
Benau
09e2f96ba8 Remove libpng's png_set_gamma
Stragus suggested:

It will degrade quality by converting from true sRGB to ^2.2 and
then rounding the values back on 8 bits
2017-03-17 13:19:56 +08:00
Benau
41844de6a5 Apply real fix from Stragus for normal map 2017-03-17 13:08:08 +08:00
hiker
6ac6d9ebfe Fixed compiler warnings. 2017-03-17 15:56:47 +11:00
Benau
e1a563612f Avoid calling gamma correction on non-srgb png 2017-03-17 10:15:06 +08:00
Benau
40a94b5562 First try to use Stragus's normal map filter on normal map texture 2017-03-17 09:57:45 +08:00
Benau
de3c9d7411 Allow to preserve more texture config 2017-03-16 16:20:05 +08:00
Benau
0f218cff32 Allow re-create ThreadedTexLoader with suitable capacity 2017-03-16 13:15:33 +08:00
hiker
9a5eec3761 Try tp reduce sudden rotation after a collision, and reduce frequencies
of kart being pushed into the air.
2017-03-16 16:14:48 +11:00
hiker
0f37f7cdc0 Merge branch 'master' of github.com:supertuxkart/stk-code 2017-03-16 15:59:10 +11:00
Benau
feb66664f4 Don't build graphics utils if server only or gles 2017-03-16 11:29:16 +08:00
Benau
ce76abf4fe Merge remote-tracking branch 'origin/master' into hq_mipmap_generator 2017-03-16 11:23:27 +08:00
Benau
ce426d82cc Move loadSfx to the SFXManager thread 2017-03-16 11:01:46 +08:00
Benau
e0fcf7c613 Fix build for real 2017-03-16 10:52:12 +08:00
Benau
9025948ced Fix build 2017-03-16 10:18:31 +08:00
Benau
b112b124f2 Fix build 2017-03-16 10:02:51 +08:00
Benau
d55b513ca8 Try to fix clang build 2017-03-16 09:51:09 +08:00
Benau
1ba3fce7b8 Get rid of STK::Tuple 2017-03-16 09:16:06 +08:00
Benau
cc2c2c6f33 Remove the usage of openmp in stk, see #2810 2017-03-16 08:42:53 +08:00
Benau
0f1e0f8f4d Merge remote-tracking branch 'origin/optimisations' 2017-03-16 08:29:05 +08:00
Benau
02c8c87d5d Remix all image quality options 2017-03-16 01:04:53 +08:00
hiker
d32cb733a5 Bugfix, if path was given the filename was not used at all. 2017-03-15 22:30:32 +11:00
Benau
1a0034bb9e Apply fix from stragus 2017-03-15 13:35:09 +08:00
Benau
d08d2cc9c7 Avoid compling useless code in server only or gles 2017-03-15 12:45:35 +08:00
Benau
562131b53f Make operator inline 2017-03-15 11:40:41 +08:00
Benau
f920ed7f97 Fix reloading texture with threads 2017-03-15 10:44:02 +08:00
hiker
698fe1aa1b Merge branch 'fix2809' 2017-03-15 12:52:55 +11:00
hiker
a2bca46958 Fixed compiler warning. 2017-03-15 12:52:46 +11:00
hiker
71f247ecb7 Fix 2809. 2017-03-15 12:46:20 +11:00
Benau
6b0610af50 Don't use HQ Mipmap on colorization mask 2017-03-15 00:59:30 +08:00
Benau
bfd8198f72 Update from stragus 2017-03-15 00:25:20 +08:00
hiker
47835bc1ef Fixed VS compiler warnings. 2017-03-14 22:39:27 +11:00
Benau
eef2c19db7 Merge remote-tracking branch 'origin/master' into hq_mipmap_generator 2017-03-14 13:06:27 +08:00
Benau
ea948014a2 Allow dumping single channel texture by manual conversion 2017-03-14 12:58:00 +08:00
hiker
9bee42ccb7 Merge remote-tracking branch 'origin/master' into fix-cannon 2017-03-14 15:10:27 +11:00
Benau
eedc7f55c9 Make addThreadedLoadTexture thread safe 2017-03-14 11:35:26 +08:00
hiker
e5eb40b773 Smooth skidding rotation when entering a cannon. 2017-03-14 12:51:10 +11:00
Benau
abfb402acb Disable saving generated mipmap to disk 2017-03-13 12:47:13 +08:00
Benau
677723fe5d Fix msvc build 2017-03-13 12:34:08 +08:00
Benau
ab10702d12 Try to fix build 2017-03-13 12:12:51 +08:00
Benau
a1492981cf Apply fixes from Stragus for restrict keyword 2017-03-13 11:50:57 +08:00
Benau
76aa38e5b4 Try HQMipmapGenerator 2017-03-13 10:28:43 +08:00
Deve
6ea06e05de Use kart lights only in shader-based pipeline.
It causes a huge slowdown in legacy pipeline, even if the radius is set to 0.
2017-03-13 01:26:48 +01:00
Sam
97670ed23c Improved wind effect for vegetation 2017-03-12 21:35:48 +01:00
Deve
b8e3de0161 Allow to use debug menu on android 2017-03-12 11:42:21 +01:00
Benau
498ce3ebc9 Use a correct method to detect last queue texture 2017-03-12 15:03:02 +08:00
Benau
27fcc4e266 Allow custom memory management in IImage 2017-03-12 09:09:40 +08:00
rogue-spectre
d33d72dfb8 fix feedback offroad #2761 (#2806)
* Fix updateenginesfx

smooth engine sound and fix https://github.com/supertuxkart/stk-code/issues/2761

* update enginesfx

* remove m_last_max_speed useless

* forgot : float max_speed

* Add missing space around =

* add space around = m_last_factor_engine_sound
2017-03-11 09:04:38 -05:00
Benau
a274f217ed Fix build 2017-03-11 15:41:54 +08:00
Benau
40a25e1d9e Remove dependency on STKTexture (for HQ mipmap generator later) 2017-03-11 15:33:36 +08:00
Benau
ead543fae4 Avoid checking too many 2017-03-11 14:04:42 +08:00
Benau
ab673fc03b Merge remote-tracking branch 'origin/master' into threaded_tex_loader 2017-03-11 13:55:18 +08:00
Benau
b0adb92964 Make sure all textures are uploaded without using timeout in TTL 2017-03-11 13:35:33 +08:00
Benau
6e80271ad9 Max texture size 2k and allow them to be threaded load 2017-03-11 09:41:46 +08:00
Benau
6eb69db4ea Properly clean up when exit 2017-03-11 00:23:54 +08:00
Benau
579aa8a9d1 Allow setThreadName to be used in linux (glibc > 2.11) 2017-03-10 23:30:18 +08:00
Benau
85011791e4 Try to use priority queue 2017-03-10 20:43:40 +08:00
Benau
6b3441d2a0 Allow reload texture with threads 2017-03-10 15:40:58 +08:00
Benau
ed9b16fe7b Don't use std::thread library 2017-03-10 15:02:21 +08:00
Benau
553c483bf4 Avoid unnecessary sync 2017-03-10 14:16:23 +08:00
hiker
0bd459c2aa Fix the transition from physics orientation to cannon (i.e. no more
yerk when the kart is not parallel to the tangent of the curve at start).
2017-03-10 17:11:54 +11:00
Marianne Gagnon
62d64847c4 Fix texture paths on case-sensitive file systems, fixes #2807 2017-03-09 18:41:35 -05:00
hiker
aac92f6111 Code simplification. 2017-03-10 08:44:51 +11:00
hiker
5640436aa8 Support cannons in reverse tracks. 2017-03-10 08:38:03 +11:00
hiker
c8b69cecb6 Merge remote-tracking branch 'origin/master' into fix-cannon 2017-03-09 23:05:03 +11:00
hiker
a500f3becc Applied Stragus' SSE optimisations for spherical harmonics. 2017-03-09 22:58:22 +11:00
hiker
12e6bab90a Merge branch 'master' of github.com:supertuxkart/stk-code 2017-03-09 22:42:06 +11:00
Benau
68e36268aa Try to use pbo for each ThreadedTexLoader 2017-03-09 16:41:15 +08:00
auria.mg
2d6cf4c487 Remove a few more string allocations/manipulations 2017-03-08 20:42:16 -05:00
auria.mg
571832fbbc Make all material names and path lowercase upon loading them, moving several string allocations and modifications outside of hot loops 2017-03-08 20:30:45 -05:00
Deve
adfa8f30f9 Better fix for missing transparency in GLES legacy pipeline 2017-03-08 23:17:03 +01:00
hiker
87950c9a94 Adjust up vector of kart slowly so that the kart is upright (even
when it was not upright at the start of the cannon).
2017-03-09 08:56:01 +11:00
Deve
21cb853079 One more tweak for hiding story mode icon if it's not available.
Now it should work properly, sorry for the mess.
2017-03-08 22:09:47 +01:00
Deve
d339d9acef Fixed ambient light for legacy pipeline.
TODO: It should be possible to convert it once together with spherical harmonics computations.
2017-03-08 21:41:53 +01:00
Deve
11255cb2b8 Fixed wrong lights color for legacy pipeline.
SColor is ARGB, but SColorf is RGBA... WTF?
2017-03-08 21:12:24 +01:00
Benau
d864995c7d First version of ThreadedTexLoader 2017-03-08 15:54:59 +08:00
hiker
bedb565f24 Simplified maths. 2017-03-08 17:57:03 +11:00
hiker
2436161b05 Approximate bezier curves better to avoid stuttering in cannons. 2017-03-07 22:24:46 +11:00
hiker
ae375c50b6 Allow the player to go to the left and right when in a cannon. 2017-03-07 22:11:15 +11:00
Deve
35139877f6 Fixed a crash on changing resolution 2017-03-06 23:10:29 +01:00
Deve
fcae7dfc33 Fixed compiler warnings 2017-03-06 17:22:44 +01:00
Deve
d4cecd5a8b Show story mode icon only if overworld track exists.
It allows to decrease apk size a bit.
2017-03-05 23:31:53 +01:00
Deve
eeb7c8f5de Added a support for release builds 2017-03-05 22:02:50 +01:00
Deve
be67fb1df9 Update readme 2017-03-05 08:55:35 +01:00
Deve
6c472660a1 Some additional checks for android assets manager.
If data was already extracted somewhere, then use this directory as preferred path. This is to avoid a situation that we have data extracted in two different places after STK upgrade.
2017-03-03 21:57:55 +01:00
Deve
11024569b0 More tweaks to GLES legacy pipeline 2017-03-02 22:19:10 +01:00
Deve
067518df5d Fixed rtts in GLES legacy pipeline 2017-03-01 23:20:21 +01:00
Deve
282bb6c655 Always use fixed blending for GLES legacy pipeline 2017-03-01 21:44:11 +01:00
deve
82e724c12e One more fix for GLES legacy pipeline 2017-02-27 06:41:26 +01:00
Deve
f6cdf79b1e Avoid spamming with errors 2017-02-27 00:58:43 +01:00
Deve
2ff79141a0 Don't show exhaust emitter for legacy pipeline 2017-02-27 00:58:43 +01:00
Deve
40fe3585bb One more fix for legacy pipeline in GLES renderer.
It looks that the second texture is not used at all and it may cause a crash, so just disable it.
2017-02-27 00:58:43 +01:00
Deve
6d395d4510 Some fixes for GLES renderer 2017-02-27 00:58:43 +01:00
auria.mg
5d342a2dab Fix all tracks achivement following the replacement of the farm track 2017-02-25 20:56:17 -05:00
auria.mg
5b85d36dfa Tweak a few challenges in easy mode following feedback 2017-02-24 20:06:29 -05:00
Benau
c7eeb8338d Try to fix for gles 2017-02-24 19:03:14 +08:00
Deve
46619ec62a Fixed gaussian blur 2017-02-23 20:40:06 +01:00
hiker
a7d1a312ad Merge branch 'fix-cannon' of github.com:supertuxkart/stk-code into fix-cannon 2017-02-23 17:19:30 +11:00
hiker
bf61b98444 Merge branch 'master' of github.com:supertuxkart/stk-code 2017-02-23 17:18:10 +11:00
hiker
b884f6429d Fix stuttering of camera/kart when usnig a cannon (caused by the cannon
animation updating the (physical) kart position after the graphical position
was taken from the physical position, causing a stuttering because of the
differences between those two values.
2017-02-23 17:12:15 +11:00
Deve
b34e749198 Fixed nitro bar in multiplayer game when uniform buffer object is not available 2017-02-22 23:33:11 +01:00
hiker
f0efce62b1 Added debug view of target cannon line. 2017-02-23 09:00:07 +11:00
Deve
0767abe2bc Draw a touch steering button that allows to run challenges.
It was broken because the fire button uses now the icon of collected weapon, so that it's not displayed at all when there is no weapon.
2017-02-22 21:43:36 +01:00
Deve
db4d11a0c5 Disable kart shadow for legacy pipeline in GLES renderer because it's broken 2017-02-22 21:04:28 +01:00
Deve
2ef6652183 Create a kart shadow only of shadow texture exists.
If the image doesn't exist, in some cases it can draw non-transparent square below the kart, which is unwanted.
2017-02-22 21:04:28 +01:00
Benau
02d3bd2c2b Take item on walldriving tracks into account 2017-02-21 15:06:26 +08:00
Benau
3898678e76 Use raycasted position for point 2
Fix #2796, #2774
2017-02-21 13:36:00 +08:00
Benau
0cf0002c08 Header clean up 2017-02-21 12:09:22 +08:00
auria.mg
eb9f656b44 Add config flag to persist GUI visibility state at samuncle's request 2017-02-20 19:16:49 -05:00
Deve
668e10d8ca Don't use srgb format in gles 2017-02-20 21:56:33 +01:00
Deve
ef2cba0f85 Display multitouch settings properly on low resolutions 2017-02-20 21:56:33 +01:00
Deve
875d5d8ef9 Some tweaks to the arrows size in dynamic ribbon widget.
- arrow size now depends on screen size, so that it's now easier to click it on high resolutions
- it's additionally scaled on Android for easier usage
2017-02-20 21:56:33 +01:00
hiker
41df6afbf9 Fixed compilation. 2017-02-20 09:22:09 +11:00
hiker
a17b537699 Make cannon smoother. 2017-02-20 07:48:43 +11:00
hiker
30cff00757 Reduce internal physics timestep to test if collision handling improves. 2017-02-20 07:48:25 +11:00
hiker
8e8de3c5e2 Merge branch 'master' of github.com:supertuxkart/stk-code 2017-02-20 07:45:26 +11:00
Benau
131dc4bfad Fix #2786 2017-02-18 14:30:35 +08:00
Arthur-D
70511c5348 Lower terrain-impulse. It should keep its intended function of avoiding getting stuck when driving perpendicular to walls, but should be less forceful and look less artificial as a result. 2017-02-17 23:13:39 +01:00
Deve
40e326bb41 Avoid using fixed pipeline on newer intel graphics cards.
The force legacy device graphics restriction is needed for ironlake graphics cards. But newer generations in pentium/celeron processors also are named just "Intel(R) HD Graphics" without any number.

The newest drivers for ironlake graphics card is 8.15 and it's unlikely that it will get an update. So assume that all drivers older than 9.x are ironlake generation or that are too old to run STK anyway.
2017-02-17 21:23:22 +01:00
Deve
5cdcf39583 Add intel HD2000 to graphics restrictions.
It's just slower HD3000 version, so disable the same features for it.
2017-02-17 19:50:50 +01:00
Deve
ab8a68f295 Enable HD textures on newer intel graphics cards.
It should work fine for intel HD4000 and newer, especially after recent memory management improvements in STK.
2017-02-17 19:44:28 +01:00
Benau
269b1b5cb9 Add restriction for intel hd4600 on windows about compute shader
Fix #1916
2017-02-17 13:52:50 +08:00
Deve
299a4dc5f2 Don't check the TBO extension 2017-02-17 06:31:15 +01:00
Deve
251c46dcc4 Always call bind sampler function.
This fixes errors for Intel HD4000 on Windows.

My understending of this issue is following:
- a shader assigned two textures, i.e. texture1 = sampler1, texture2=sampler2
- then next shader (i.e. importance sampling specular) assigned two textures: texture1=sampler1, texture2=without_sampler
- when we executed setTextureUnits, the glBindSampler function wasn't called at all, so the drivers were trying to use combination texture2=sampler2, even though the sampler2 was prepared for different texture and most likely was already deleted.

We can just always call the glBindSampler function, so that if texture doesn't have a sampler, it will execute it with sampler_id=0 param, which is practically an "unbind" function.
2017-02-17 01:03:39 +01:00
auria.mg
f181acea3d Add Jymis to credits 2017-02-15 18:38:56 -05:00
hiker
17751631f1 Protocol data structure uses now finer grained locks, avoiding that
asynchronous updates or event delivery can be delayed by synchronous
updates/event deliveries to a different protocol.
2017-02-15 09:57:38 +11:00
hiker
efeea8eeb2 More debug output. 2017-02-15 09:50:00 +11:00
Benau
c635e8d1c4 Get rid of some srgb conversion in shader, see #2787 2017-02-13 10:06:35 +08:00
Benau
d3cbc6ca0e Fix GLES 2017-02-13 00:45:18 +08:00
Benau
ca0a605b0e Don't use texture buffer object if not supported, see #2571
Also allow to use setTextureUnits for texture buffer
2017-02-12 15:42:22 +08:00
Benau
4af255431c Fix opengl warning about glTexSubImage2D buffer of null pointer
For example, whitespace in freetype glyph has no bits buffer
2017-02-12 10:23:18 +08:00
Deve
68a99fd38b Fixed sRGB for GLES renderer.
It's a bit ugly solution because we should handle it properly in one place and not add another sRGB correction... But it's already working solution and it doesn't affect the OpenGL renderer, so we can use it until better fix will be done.
Now the GLES renderer looks almost the same as the original OpenGL 3.x one :)
2017-02-11 23:56:44 +01:00
Deve
e316df1807 Update readme 2017-02-11 14:40:54 +01:00
Deve
3794e0bbbe Use slightly lower rate for explosion effect.
It causes fps drop on slow devices when explosion occurs near the camera and everything is white for a while.
2017-02-11 14:30:08 +01:00
Benau
48f27df1c9 Fix wrong angle when normal is exactly 0, -1 ,0 2017-02-11 16:05:10 +08:00
Benau
0ddada2897 Fix --track-debug crash 2017-02-11 14:42:24 +08:00
Deve
3f214c1bb7 Find textures once on race gui initialization 2017-02-11 00:51:22 +01:00
Deve
a877cb848f Added better icons for touch steering.
Thanks to jymis!
2017-02-11 00:51:22 +01:00
Benau
ea95ffe424 Remove compiler warning 2017-02-10 18:21:27 +08:00
hiker
69658c557b Refactored the event/state handling to make it somewhat faster by
avoiding creating smaller time steps on the server when events
from clients are received, and also made it easier to handle
duplicated states (i.e. server rewinds and sends a second state
for a certain time).
Still work in progress though.
2017-02-09 09:03:15 +11:00
Alayan-stk-2
0293dabfd3 New GP point system (#2765)
* Change grand-prix node for the new GP point system

* New GP point system

* Typo fix
2017-02-07 19:31:53 -05:00
Deve
5df2531a65 Added a hack that removes ugly lines when shadows are enabled.
Mathematically it's not 100% correct, but it looks much better.
2017-02-07 21:48:50 +01:00
Deve
77ff387f6b Minor tweak 2017-02-07 14:38:40 +01:00
Deve
4852664143 Allow to use accelerometer for turning left/right.
It should be much more comfortable on small devices.
Though it's not possible to get default screen orientation (and real device orientation) using NDK functions, so at this stage user has to manually choose if he needs "tablet" or "phone" accelerometer.
2017-02-07 13:48:08 +01:00
Deve
a40fd4cde9 Handle new Polish format in tinygettext.
It's PITA because they broke it at it doesn't look that they are going to do something with it.

The plural form for number 14 is broken because the condition is bad. It should be n%100>14 instead of n%100>=14. In the past it was using 3rd form for numbers 12, 13, 14 and it's the proper form for these numbers. The new format uses 2nd form for number 14.

Moreover the condition for third form is just a negation of the first and second form, so that the 4th form actually never happens.

Also the condition for 3rd form is ambiguous. Should it be
(n!=1 && (n%10>=0 && n%10<=1)) || (n%10>=5 && n%10<=9) || (n%100>=12 && n%100<=14)
or maybe
n!=1 && ((n%10>=0 && n%10<=1) || (n%10>=5 && n%10<=9) || (n%100>=12 && n%100<=14))

Based on Unicode plural rules, the 4th form should be used for floating point numbers, but it's not supported by tinygettext anyway.

In short, handle the new format in the same way as it was before, so that the 4th form is useless, but at least everything works properly.
2017-02-06 20:39:30 +01:00
deve
cdd96f67dd Draw powerup icon on a button when touch steering is enabled 2017-02-06 06:26:11 +01:00
Seebi
e5feb3d35f Fix sometimes not initializing a soccer game - fixes #2769 (#2772) 2017-02-05 20:09:51 -05:00
Alayan-stk-2
8858d4d86f Parachute improvements (#2768)
* Change grand-prix node for the new GP point system

* New GP point system

* Add parachute characteristics for rank and speed time multipliers

* Add new parachute characteristics

* typo fix

* Add rank and speed parachutes characteristics

* Add rank and speed parachute characteristics

* Add rank and speed parachute characteristics

* Add rank and speed parachute characteristics

* Add rank and speed parachute characteristics

* Add logic for parachute time scaling according to rank

* Add logic for parachute time scaling according to speed

* Separate GP and parachute branches

* Separate GP and parachute branches
2017-02-05 18:54:32 -05:00
Benau
5d30393641 Allow reload texture with control+f3 for sam in game 2017-02-05 14:10:26 +08:00
Benau
6fae872a69 Fix #2766 2017-02-05 09:11:48 +08:00
Deve
7c48c3e6cc Choose a directory where we have the most available disk space for data extraction.
It's not a perfect solution because at least on my device internal storage is much faster than sd card. But at least it should be much safer to choose a path with more free space.
2017-02-03 23:53:47 +01:00
auria.mg
01765fce80 Fix crash 2017-02-02 19:54:48 -05:00
Benau
13081a07ec Fix #2763 2017-02-03 08:41:18 +08:00
Deve
2557a700cc Just to be more clear about explicit attrib location availability in GLES 2017-02-02 22:26:37 +01:00
Deve
19cb9cd041 Fixed a crash when starting cutscene 2017-02-02 22:22:33 +01:00
Deve
d4d5452825 Enable glBindSampler in GLES 2017-02-01 22:52:07 +01:00
Deve
b54c3648b3 Again missing parenthesis... 2017-02-01 22:15:48 +01:00
Deve
28d85d7ba3 Use explicit attrib location when the extension is available.
It allows to enable it easily in GLES renderer. And we check if this extension is available anyway because it's needed for shadows, so we can use it for other shaders too.
2017-02-01 21:58:10 +01:00
deve
d124c61e3c Remove useless ifdef.
It should depend on features available in graphics drivers and not on headers that were used for compilation.
In theory there was a possible case that GL_VERSION_3_3 was not defined and CVS->getGLSLVersion() >= 330 was true, so that bind wasn't done at all.
And still GL_VERSION_3_3 should be always true for OpenGL renderer because it's defined in glew.
2017-02-01 10:40:48 +01:00
deve
3c8369b915 Set GLSL version for GLES.
It's not 100% true because GLES has different versions numbering. For example it doesn't have geometry shaders even if they were introduced in GLSL 1.50 (OpenGL 3.2).
But still in this way we make sure that it uses the same features on all devices, no mater if it's GLES 3.0, 3.1, 3.2 etc.
2017-02-01 10:30:46 +01:00
hiker
ffff62ff52 Removed debug code. 2017-02-01 18:06:36 +11:00
hiker
9df07ac0c2 Rearranged code somewhat to make it easier to read - only cosmetic changes. 2017-01-31 18:25:30 +11:00
auria.mg
93d6b1e515 Tweak camera settings 2017-01-30 19:17:27 -05:00
auria.mg
62e8ec86fa Merge branch 'NewSmoothCamera' 2017-01-30 18:51:24 -05:00
Deve
fbffb108f1 Force to use rtts when scale_rtts_factor is set.
It allows to scale down resolution even if advanced lighting is disabled.
2017-01-31 00:18:02 +01:00
deve
bf64459458 Handle a case that advanced lighting is disabled in graphics restrictions. 2017-01-30 11:18:31 +01:00
auria.mg
e7252cc643 More work on camera smoothness 2017-01-29 21:48:54 -05:00
auria.mg
e8cb873f08 Finish smoothing the kart rotation 2017-01-29 21:37:58 -05:00
auria.mg
6d3eb84a8e Reduce shaking a bit by smoothing kart position. Still need to smooth kart rotation, can't quite get it to work yet 2017-01-29 21:33:11 -05:00
auria.mg
56b6f81eb7 New smooth camera 2017-01-29 19:58:33 -05:00
hiker
d8706e2319 Added log message when server starts a race on clients. 2017-01-30 09:29:58 +11:00
hiker
a3b959cee9 Avoid that the server replays states saved in the previous frame. 2017-01-30 08:58:00 +11:00
hiker
6cc795fc60 Use a std::list instead of std::vector for the list of events. This allows
not to lock the whole event queue while an event is being delivered, which
allows more parallelism (especially the asynchronous eventss queue is not
locked while e.g. the world is loaded, which can take several seconds).
2017-01-30 08:54:23 +11:00
hiker
dfc5c1499c Added separate log message for disconnecting clients. 2017-01-30 08:52:41 +11:00
Deve
803eba5d5c Fixed typo 2017-01-27 22:44:22 +01:00
hiker
cebf24f3af Don't use the time during a rewind to determine if a client needs
to slow down.
2017-01-27 23:45:25 +11:00
hiker
5690eb0edd Merge branch 'master' of github.com:supertuxkart/stk-code 2017-01-26 23:14:43 +11:00
deve
62bcf52f9c Add a possibility to select team without a keyboard for single player mode 2017-01-26 10:23:45 +01:00
deve
99b2cd7e57 Some corrections in team selection events 2017-01-26 10:22:31 +01:00
deve
85f153f0d5 Move changing a team to separate function to avoid code duplication 2017-01-26 09:21:35 +01:00
Deve
49a77a8f48 Add a possibility to disable touch steering in options.
It may be useful if someone wants to play with external keyboard.
The multitouch_mode parameter will be also used to choose between steering with buttons and using accelerometer.
2017-01-25 21:50:11 +01:00
hiker
2ca7a1468e Fixed compiler warning. 2017-01-25 22:17:06 +11:00
hiker
37af3a3690 Fixed coding style issues (same should be done with speedweight objects). 2017-01-25 22:16:40 +11:00
hiker
3edff9523e Fixed compiler warning. 2017-01-25 22:16:40 +11:00
hiker
7ad0a0cf69 Fixed coding style issues (same should be done with speedweight objects). 2017-01-25 21:55:16 +11:00
hiker
ecc4e30cbe Fixed compiler warning. 2017-01-25 21:51:26 +11:00
deve
9ede4d2185 Merge branch 'master' of https://github.com/supertuxkart/stk-code 2017-01-25 10:29:18 +01:00
deve
fea3b1b3e5 Set curl nosignal option.
It fixes the crash under cygwin and should also fix a crash when c-ares/threaded resolver are not available in curl library.
Fixes #2753
2017-01-25 10:28:48 +01:00
hiker
0e6daf9319 Fixed compiler warning. 2017-01-25 18:19:37 +11:00
hiker
096d68c361 Merge remote-tracking branch 'origin/master' into game_protocol 2017-01-25 18:15:24 +11:00
hiker
426cbaaff5 Added '--auto-connect' command line option to automatically connect
a client to the first LAN server it finds and start a race - strictly
for debuggint ;)
2017-01-25 14:29:48 +11:00
auria.mg
6e8480379b Add support of headlight models to karts 2017-01-23 20:14:42 -05:00
Arthur-D
925d756454 Adding some replays from Kitoko, thanks! Also removing a few so as to keep a low number of replays, and renamed easy replay files to novice. 2017-01-23 23:44:34 +01:00
hiker
b8bf4a3c2e Fixed documentation. 2017-01-24 08:35:15 +11:00
hiker
241d31d8f9 Added support for slowing down time on a client. This is used by
a server to reduce number of rewinds.
2017-01-24 08:05:46 +11:00
deve
a1e8cb8acd Try to fix build 2017-01-23 10:49:18 +01:00
deve
8c8d2ac8c4 Add a screen keyboard that can be used on touch screens 2017-01-23 07:14:09 +01:00
samuncle
d935f0318c The exhaust is tweaked a bit 2017-01-23 00:27:31 -05:00
samuncle
9e1afc89ee Add a permanant exhaust to the kart, tweaking needed 2017-01-22 23:20:07 -05:00
samuncle
50f3c224b3 change the name to development more accurate 2017-01-22 22:14:19 -05:00
samuncle
74cc87cd65 Merge branch 'master' of https://github.com/supertuxkart/stk-code 2017-01-22 22:10:12 -05:00
samuncle
d600720830 Add a new category of production babies 2017-01-22 22:09:56 -05:00
auria.mg
2bcc579f61 Fix crash 2017-01-22 21:23:33 -05:00
samuncle
996cea5a14 Oups, I forgot to drop the light 2017-01-22 20:32:25 -05:00
samuncle
979f61b8c1 Add support for day/night notion in tracks 2017-01-22 19:28:08 -05:00
hiker
9b38e401f4 Store special time events for clients (otherwise incorrect or even
way too large dt is used in rewind).
2017-01-23 08:23:54 +11:00
samuncle
4f1101d62b Activate headlight only for the player 2017-01-22 10:09:32 -05:00
samuncle
93011e934e Merge branch 'master' into headlight 2017-01-22 08:35:07 -05:00
hiker
d038848c2e If a client should have received a state in the future, use it (long
term this should not happen, since the server is behind the clients).
2017-01-22 17:41:47 +11:00
hiker
3712f1d600 Merge branch 'master' of github.com:supertuxkart/stk-code 2017-01-21 10:59:15 +11:00
samuncle
e86e146442 Add emit map to a shader, so cars in candela are like small dots 2017-01-20 00:06:35 -05:00
samuncle
44207e9620 ground work for an headlight for karts to allow better visiblity in dark tracks 2017-01-19 23:45:42 -05:00
hiker
620a5b34f2 Merge branch 'master' of github.com:supertuxkart/stk-code 2017-01-20 14:15:55 +11:00
hiker
b5f285a182 Fixed #2742 - incorrect triggering if cannon line triggereed Caused
by not updating m_front_xyz when moving the kart (so an incorrect
position was used to detect checkline triggering).
2017-01-20 14:13:12 +11:00
auria.mg
7234caffd9 Fix travis build 2017-01-19 21:11:44 -05:00
auria.mg
a0499fcfd6 Merge branch 'master' of https://github.com/supertuxkart/stk-code
# Conflicts:
#	src/scriptengine/script_engine.cpp
2017-01-19 21:04:35 -05:00
auria.mg
52fff152de Scripting : add support for "onStart" callbacks in library objects 2017-01-19 21:03:09 -05:00
samuncle
ef82257110 Add support for array in scripting 2017-01-19 20:49:46 -05:00
hiker
414c51a558 Bugfix: loop did not test if there were RewindInfo available; simplified
loop as well.
2017-01-20 10:46:37 +11:00
hiker
ef1f48da50 Refactored the queue handling to be a separate object from the
RewindManager. Added unit tests.
2017-01-19 17:30:34 +11:00
Benau
4506f4baed Fix possible failed build 2017-01-18 18:42:19 +08:00
hiker
33caf5ed4b Fixed unit test. 2017-01-18 20:57:40 +11:00
Benau
93ad594ff2 Merge branch 'fix_186' 2017-01-16 08:48:06 +08:00
Benau
5ad7b1491a Add marker for kart selection screen 2017-01-16 08:45:34 +08:00
auria.mg
b758e2eb62 Do not crash when pressing hidden button on Gp results screen. Fixes #2734 2017-01-15 19:32:15 -05:00
auria.mg
02d3e7a371 Fix restarting race not resetting kart velocity during a cannon ride. Fixes #2738 2017-01-15 19:22:06 -05:00
Deve
20ed2ad277 Print a warning on low memory event 2017-01-15 17:01:23 +01:00
Deve
a82784ab8e Minor modification that makes moving the list box smoother 2017-01-15 17:00:41 +01:00
Deve
7890c1669b Merge pull request #2736 from nado/clanglto
Fix clang compilation
2017-01-14 15:50:37 +01:00
samuncle
b9dd867c86 Use gamma corrected decal 2017-01-14 09:41:29 -05:00
Nado
e866d88118 Fix clang compilation 2017-01-14 14:36:52 +01:00
auria.mg
6e2a11abd1 Update GPs and challenges for the new farm track replacement 2017-01-13 20:06:41 -05:00
Benau
44faae26bf Fix typo 2017-01-13 18:39:57 +08:00
Benau
89c209bc6c Try to fix server build 2017-01-13 18:10:08 +08:00
Benau
30de9aef62 Fix #186
Display win animation as jymis suggests in kart selection screen
2017-01-13 18:03:13 +08:00
Deve
5931ba288a Don't crash if irrlicht shaders are not available for GLES.
They are needed only for legacy pipeline.
2017-01-12 21:43:11 +01:00
Benau
ec0ff7e984 Fix possible crash when dump the glyph pages 2017-01-12 13:22:41 +08:00
Benau
2127e44cc2 Remove clang compling warning 2017-01-12 09:54:20 +08:00
Benau
40fe84ddbd Fix addon stk mercuy crash
Please avoid using 2nd uv layer on animated mesh
2017-01-11 14:29:37 +08:00
Benau
ffedf637de Fix some override warnings 2017-01-11 13:34:25 +08:00
Benau
3105407b2f Remove error when dropping tires in battle mode when kart dead 2017-01-11 13:33:54 +08:00
Benau
3bffe1f1a7 Allow texture error message to be used in STKTexManager 2017-01-11 10:55:18 +08:00
Benau
874d3d347d Remove unused resize texture code 2017-01-11 09:46:00 +08:00
hiker
a8be3f8068 Removed unnecessary events crated by KartControl, added steer_left
and steer_right values from the player controller to the state to
fix steering synchronsiation problems.
2017-01-11 09:29:01 +11:00
Deve
527132b6c8 Allow to enforce default player using a config variable.
It can be used on Android until screen keyboard will be done.
2017-01-10 22:10:43 +01:00
Deve
0ffde761ef Minor improvements in list box widget.
- Current time was broken because getTimeSinceEpoch() gives a time in seconds, so the timeout for double click was 500 seconds.
- I disabled the timeout for double click anyway because it's IMO not needed (and it was broken anyway and nobody complained). Second click on the same element always sends the "selected again" event.
- I removed code that hovers new item when mouse is moved during selecting because it was working rather strange. For example it was possible to slightly move a mouse during selecting the item and the action was executed on the first click, even if we expect double click.
- Action is executed on single click on Android
2017-01-10 21:30:45 +01:00
deve
9d9fb06401 Don't select new item when listbox was moving 2017-01-10 13:37:36 +01:00
deve
67b9c85918 Fixed GLES 2017-01-10 10:55:44 +01:00
Benau
5a31cd4e97 Support for backpedal animation 2017-01-10 16:13:34 +08:00
Benau
f1b0f529be Fix #1679 2017-01-10 14:12:38 +08:00
Benau
aa01fafe92 Fix server build 2017-01-10 13:05:19 +08:00
Benau
21060133a8 Fix invalid read reported by valgrind when changing language
And fix possible crash
2017-01-10 12:52:50 +08:00
Benau
a55cc47845 Fix leaking font texture when changing language 2017-01-10 12:52:31 +08:00
Benau
9af219f691 Fix #1780 2017-01-10 11:39:01 +08:00
hiker
2641f0b067 Merge branch 'master' of github.com:supertuxkart/stk-code 2017-01-10 13:25:53 +11:00
hiker
55e98e041c Removed unused (or replaceable in case of clamp) functions from helpers. 2017-01-10 13:25:26 +11:00
auria.mg
87646463b8 Minor : upgrade profiler utils to use the logging functions 2017-01-09 20:36:08 -05:00
auria.mg
7e6761e968 Minor : reduce logging level 2017-01-09 20:30:08 -05:00
auria.mg
ebf3893f73 Minor : add a little documentation to user config 2017-01-09 20:29:41 -05:00
Benau
f7d843a7f7 Make dialog draggable in artist debug mode
So artist can view texture change by moving texture console
2017-01-10 09:22:08 +08:00
Benau
8acd2d689a Merge branch 'new_texture_format' 2017-01-10 09:09:38 +08:00
Deve
ecd5445eed Added a helper function that prints opengl errors 2017-01-09 23:21:40 +01:00
Benau
08876e30ab Remove unused builtin font 2017-01-09 15:50:26 +08:00
Benau
bd20d2512c Keep single channel for reloading texture 2017-01-09 15:35:57 +08:00
Benau
848dd05f11 Add IImage to STKTexture constructor for areamap texture 2017-01-09 15:04:34 +08:00
Benau
c4b4ea006e We don't need to add a new glyph page for billboard text anymore 2017-01-09 13:16:40 +08:00
Benau
46be4948b2 AZDO for new texture format 2017-01-09 13:03:50 +08:00
Daniel Ölschlegel
be2e86166f Update CIrrDeviceLinux.cpp (#2731)
Fix compile error under NetBSD
2017-01-08 20:44:04 -05:00
Benau
e049cb2bd6 Allow saving single channel compressed texture 2017-01-09 00:50:04 +08:00
Benau
71c14ff0b3 Convert code to a more readable format 2017-01-08 23:50:47 +08:00
Benau
1cc8371ac5 Preserve max texture size when restart 2017-01-08 22:02:04 +08:00
Benau
597461d680 Fix server build 2017-01-08 15:42:29 +08:00
Benau
21d35d4bcd Display texture size instead of pointer location 2017-01-08 15:37:03 +08:00
Benau
00437e6d15 Allow using colorization mask with single channel texture only 2017-01-08 15:30:49 +08:00
Benau
4ba1b2408c Minor optimization 2017-01-08 14:38:58 +08:00
Benau
6f191bd7da Fix gles
Because in the past call texture->lock() will return unmodified
cached image (always bgra), now the image will be converted
dependently
2017-01-08 13:31:10 +08:00
James Cowgill
4aae66a050 Convert CREDITS to UTF-8 (#2723)
* Convert CREDITS to UTF-8

* Remove trailing whitespace in CREDITS

* Read CREDITS file as utf-8

* Make CREDITS file non-executable
2017-01-07 18:56:15 -05:00
Daniel Ölschlegel
64015348da Update as_memory.cpp (#2730)
Merged required patch from OpenBSD and NetBSD
2017-01-07 18:55:10 -05:00
Daniel Ölschlegel
6e38e7429b Update as_config.h (#2729)
NetBSD is a BSD
2017-01-07 18:52:39 -05:00
Benau
f609114594 Zero the array to prevent black border in glyph
Also use the correct internal format
2017-01-08 00:05:00 +08:00
Benau
314c32865b Allow using single color channel for font texture 2017-01-07 16:36:25 +08:00
Benau
f78d749a0c Fix no graphics run 2017-01-07 15:43:25 +08:00
Benau
6deb0e0f8a Avoid using createImageFromData with preload data for texture
Todo: allow using single channel for font texture, saving 75% size
2017-01-07 14:45:47 +08:00
Benau
37a4d512ab Add cache version inside the cache file
Also clean up commented out code
2017-01-07 10:44:29 +08:00
auria.mg
68fe1e58c2 Fix a few divisions by zero, see #2727 2017-01-06 21:26:16 -05:00
auria.mg
67e66b44b0 Improve texture cache code to use precise subpaths instead of hashes 2017-01-06 21:07:53 -05:00
Benau
3e5199334d Drop models and lights when leaving model widget screen 2017-01-07 00:27:48 +08:00
Benau
ba8846522e Implement cleaning for new texture
Also warn if there is possible texture leaking when exit STK
2017-01-06 23:45:25 +08:00
Benau
555cdacd83 Improve warning 2017-01-06 20:54:22 +08:00
Benau
437f89eea7 Clean up 2017-01-06 20:28:03 +08:00
Benau
66f3a2e32b Make dump glyph page possible for new texture format
Also implement read-only lock, please use reload() for writing
2017-01-06 19:58:51 +08:00
Benau
2af126357d Port font to use new texture format 2017-01-06 18:20:19 +08:00
Benau
4bcf03e296 Port reload texture to use new STKTexManager 2017-01-06 15:47:54 +08:00
Benau
827a483e85 Allow legacy pipeline to use new texture format 2017-01-06 15:04:15 +08:00
Deve
5f4bef044b Pause/resume sounds when game is paused on Android.
We should handle both pause and focus events, but they may occur in different order or in some cases we may receive only lost focus event.
So we need to check the current state to make sure that pause/resume sounds is executed only once.
2017-01-05 15:53:32 +01:00
Benau
c7f9de3080 Merge pull request #2725 from LoadingPleaseWait/ghost-slipstream
No slipstream from ghost kart, fix #2721
2017-01-05 16:23:18 +08:00
LoadingPleaseWait
1cb329dccf No slipstream from ghost kart, fix #2721 2017-01-05 02:10:35 -06:00
Benau
513f1e2edf Add unicolor texture loading 2017-01-05 14:51:38 +08:00
Benau
6e4d7da487 Improve warning handling 2017-01-05 13:42:22 +08:00
Benau
c7d56d3edc Allow caching compressed texture
Use std::hash for string (path + basename + max_texture_size)
2017-01-05 12:50:33 +08:00
Deve
fb0a54278a Fixed possible crash.
STK could crash when invalid graphics restriction name was set in graphics_restrictions.xml file.
It's because of wrong while (m_names_of_restrictions[i] != NULL) condition.
2017-01-05 00:28:16 +01:00
Deve
23acade026 Make sure that legacy pipeline is used when it's set in graphics restrictions.
It was be done only for GLES before, but also for OpenGL some drivers create OpenGL 4.x compatibility profile context even if we request GL 2.1. So we can't assume that it will report GL2.1 and we should make sure that fixed pipeline will be used.
Actually now it works in the same way as force_legacy_device in config.xml.
2017-01-04 23:39:15 +01:00
Benau
99857ca193 Fix GLES 2017-01-04 15:05:04 +08:00
Benau
497f1e2785 Clean up billboard texture code
Todo: compress them in STKTexture class
2017-01-04 14:35:49 +08:00
Benau
c98e4f2bac Simplify particle texture loading 2017-01-04 13:43:14 +08:00
Benau
63f57d6a9c Fix wrong texture if absolute path is not given 2017-01-04 11:41:11 +08:00
hiker
2be59e7728 Avoid infinite loop when showing the in-race menu and a rollback happens. 2017-01-04 09:51:36 +11:00
hiker
6941317979 Increase server delay to reduce number of rewinds on server. 2017-01-04 09:50:43 +11:00
hiker
b3f6307107 Fixed crash when exiting a race early. 2017-01-04 09:23:57 +11:00
hiker
cd4a19e801 Reset snapshot frquency; fixed bug in rewind (which would stop with
the last event, and not rewind all the way back to the current time).
2017-01-04 09:17:54 +11:00
hiker
2df97ebc39 Disable skipping of ready-set-go in artist debug mode when networking
(can desynchronise client and server).
2017-01-04 08:18:41 +11:00
hiker
e5c5870564 Removed debug output. 2017-01-04 08:11:17 +11:00
Benau
1f8e047164 Update credits about new Hexley 2017-01-04 00:49:31 +08:00
Benau
05a29fe7da Let material code handle premultiplied alpha and srgb 2017-01-03 16:35:37 +08:00
Benau
0129c539b9 Fix #2543
Also disable warning when switching cases for context detection
2017-01-03 13:53:44 +08:00
Benau
d57841bcb8 Fix crash if skybox / SH shares textures from track 2017-01-03 12:35:05 +08:00
Benau
57e16dcb73 Avoid unneeded copying in sky box and SH 2017-01-03 11:08:33 +08:00
Benau
19ac8a0d3c Allow sky box and SH to use new texture format 2017-01-03 10:18:11 +08:00
auria.mg
ac8a5c552f Make dialogs non-draggable. Fixes #2717 2017-01-02 19:02:05 -05:00
Deve
9c7a438826 Remove simulating mouse events from event handler.
It will be handled in irrlicht device.
2017-01-02 21:49:41 +01:00
Deve
bcea2355fa Allow to scroll list box by touch gesture.
It can be restricted to Android-only, but tbh. I don't see any reason that it can't work in the same way on desktop computers (may be usable on laptops with touch screen, all-in-one computers etc...).

I also made a minor fix with if(!event.MouseInput.isLeftPressed()) because the EGET_ELEMENT_FOCUS_LOST event seems to not work at all.
2017-01-02 21:47:23 +01:00
Benau
6db2212690 Try to fix server build 2017-01-03 00:03:26 +08:00
Benau
2dbf4675a5 First version of new texture format
Todo: IBL, texture compression, GLES, premul alpha ....
2017-01-02 16:14:59 +08:00
Deve
6a16f23132 Fixed GLES 2016-12-31 03:41:37 +01:00
Deve
cec7c51bc0 Request closing the app on android in better place, so that it handles both - quit button and escape pressed. 2016-12-31 02:51:08 +01:00
Benau
dbe148baf6 Max 10 players supported in arena
See #2705
2016-12-31 09:27:39 +08:00
Benau
f8c09ccf83 Handle score times too 2016-12-31 09:03:42 +08:00
Benau
0d35ea74d1 Fix #2713 2016-12-31 08:59:24 +08:00
auria.mg
09e1e6d7a3 Update achivement with new track name. Fixes #2712 2016-12-30 17:05:30 -05:00
auria.mg
fcdb0b5614 Improve material code, fixes #2709 2016-12-30 16:04:56 -05:00
Benau
360e1bb88b Case insensitive in linux for reloading texture 2016-12-30 20:24:35 +08:00
Deve
412399cdf7 Fixed a crash in GLES 2.0.
The glGetStringi is available only in GLES >= 3.0. We can't easily check if this function exists or not because it requires EGL >= 1.5 (and still we can't be sure that all drivers handle it properly).

Though glGetString(GL_EXTENSIONS) is allowed on both GLES2.0 and GLES3.0, so we can just fallback to this method.
2016-12-30 11:09:06 +01:00
Benau
cb5f24e551 Reset time target if leaving the soccer screen with escape 2016-12-30 15:02:07 +08:00
Benau
5b96b4aa3f Allow windows user to enter path more easily 2016-12-30 15:00:26 +08:00
Benau
caf9dbab0c Fix crash when loading particle texture inside track folder 2016-12-30 13:28:13 +08:00
Benau
1e2a759f7b Restart STK if advanced pipeline option changed 2016-12-30 11:01:29 +08:00
auria.mg
7a6e6cb6a4 Attempt to imporove AMD driver version detection 2016-12-29 21:43:19 -05:00
hiker
069e916dc0 Added state updates, not fully working yet. 2016-12-30 13:35:48 +11:00
Benau
bbaff0467e Fix normal map when advanced pipeline off 2016-12-30 00:58:48 +08:00
Deve
278ef781bf GLES: Make sure that we are using fixed pipeline when force legacy device is set in graphics restrictions.
It is generally safe for GLES drivers. The driver often reports OpenGL ES 3.1 or 3.0 support even though we request only GLES 2.0. But we can still use GLES 2.0 / GLSL 1.0 functions on GLES 3.x context, so it shouldn't cause any issues.

I also added Android Emulator to graphics restrictions.
2016-12-29 16:01:46 +01:00
Benau
bc2fb1da76 Fix server build 2016-12-29 15:46:00 +08:00
Benau
67b6c3bf05 Allow to reload textures on the fly
Enter texture filename(s) (full path is optional) separating by
";" in the artist debug mode "Reload texture" dialog

Notice: premultiplied alpha texture reloading is not supported,
because it was done on STK side.
2016-12-29 14:56:18 +08:00
Benau
b9b8ab3e5f Don't load normal map too if not advanced pipeline 2016-12-29 09:46:26 +08:00
auria.mg
875bfad197 Merge remote-tracking branch 'temeliak/fix_non_hd_option' 2016-12-28 20:39:20 -05:00
auria.mg
dfca641172 Merge branch 'fix_2316' 2016-12-28 20:19:41 -05:00
auria.mg
f0afba84c8 More cleanup 2016-12-28 20:17:32 -05:00
auria.mg
33802d9f81 Materials optimisation : minor tweaks and cleanup 2016-12-28 20:13:55 -05:00
Benau
1597c2ad48 Make scaled texture work with alpha mask 2016-12-29 00:36:13 +08:00
samuncle
b669382b93 Change the detail map to a more usefull decal shader. Now we can add easily details to texture 2016-12-28 10:23:07 -05:00
Benau
72963f4fb4 Fix GLES 2016-12-28 16:23:57 +08:00
Benau
71161264be Merge remote-tracking branch 'origin/master' into fix_2316 2016-12-28 15:50:14 +08:00
Benau
f43f76b7c9 Fix server build 2016-12-28 15:40:12 +08:00
Benau
ffe4dd88b4 Apply mask directly on texture
Avoiding the ref counting issues
2016-12-28 15:32:27 +08:00
auria.mg
5e415e3331 Install all materials before loading meshes 2016-12-27 22:08:27 -05:00
Benau
8c5c85245f Use full detail default 2016-12-27 18:31:06 +08:00
auria.mg
0be858f7f8 Fix crash in texture cleanup branch 2016-12-26 23:03:22 -05:00
auria.mg
943373ea8e Try cleaning up textures when unloading tracks. Crashes at this time, more debugging is required 2016-12-26 22:33:54 -05:00
Benau
15469e555d Allow track loading to take care of geometry details 2016-12-27 11:15:24 +08:00
Benau
7085c164b5 Merge remote-tracking branch 'origin/geometry_detail' 2016-12-26 23:56:18 +08:00
Benau
9831802c7f Fix typo 2016-12-26 13:59:34 +08:00
Benau
c2d9f91c62 Allow to run cutscene(s) in artist debug menu 2016-12-26 13:51:40 +08:00
auria.mg
46e7b5ac77 Try to fix build 2016-12-25 22:27:46 -05:00
auria.mg
2b34dd8410 More cleanup and bugfixing related to #2316 2016-12-25 22:21:41 -05:00
auria.mg
059c2c8573 Bugfix delayed-loaded textures bug 2016-12-25 22:00:11 -05:00
Benau
ebef08c3d8 Try to combine all text field dialogs 2016-12-26 10:53:14 +08:00
auria.mg
4aa31dc56e First attempt at #2316. WIP, issues remains 2016-12-25 20:21:00 -05:00
Benau
3c9174d278 Add a general debug dialog
To be used later
2016-12-25 16:41:55 +08:00
samuncle
e62edcc89a Ground work for geometry detail option 2016-12-24 19:16:39 -05:00
Benau
6a142e8d2e Allow animated models in track to have different animation 2016-12-24 13:11:08 +08:00
Deve
6486d1548b Fixed clang compilation 2016-12-24 02:07:53 +01:00
Deve
26bbffe8b0 Don't declare features that are used for SDSM, AZDO and compute shaders and that are not available in GLES renderer anyway. 2016-12-24 01:26:18 +01:00
Deve
7b76804354 Allow to unlock all tracks in config.xml.
Can be used on android when only some tracks are included in the apk.
2016-12-23 23:36:39 +01:00
Deve
674e617018 Allow to use isDirectory function outside of file manager class.
It is used on android for extracting assets
2016-12-23 19:01:16 +01:00
Deve
8a88c9707b Fixed rendering when UBO is disabled 2016-12-23 16:45:03 +01:00
Deve
424b62552e Fixed MLAA in GLES renderer.
This function was used by Cand for his OpenGL 2.1 renderer. The round function is available since GLSL 1.3 (OpenGL 3.0), so there is no need to override it.
If it will be needed in future, I suggest to change the name to round_stk or something similar.
2016-12-23 15:12:16 +01:00
Benau
15d6c7207a Minor improvements for non-instanced shaders 2016-12-23 19:22:30 +08:00
Benau
989234a0ba Clean up header part 2 2016-12-23 17:12:53 +08:00
Benau
31f2a720ca Try to reduce the header size of materials.hpp
Plus header clean up
2016-12-23 14:44:18 +08:00
Benau
d932451295 Don't out a interpolated color change
It will should be determined by colorization mask in fragment shader
2016-12-23 11:38:32 +08:00
Benau
f7e2122b79 Allow drawing instanced glow color without explicit location 2016-12-23 10:36:35 +08:00
Benau
a339975df6 Clean skidmark earlier if there are many karts 2016-12-23 10:08:12 +08:00
Benau
969592e3fc Try to fix framerate drop after few laps
Because skidmark left are never culled
2016-12-23 09:19:46 +08:00
Tobias Markus
6fb93fa208 Fix compilation on macOS 10.12 (#2701) 2016-12-22 19:17:31 -05:00
Benau
8008ec851e Allow to use hardware skinning with opengl 3.1
Now we only need UBO to store the joint matrices to support it
2016-12-23 01:31:13 +08:00
Benau
28841d601d Remove old code for getting straight frame
With hardware skinning it is not necessary
2016-12-23 00:44:26 +08:00
Benau
bfd57659eb Remove unused file 2016-12-22 11:17:52 +08:00
Benau
ffa4ad84cb Merge branch 'hardware_skinning' 2016-12-22 10:38:06 +08:00
Deve
53ee40af70 Update multitouch device when settings are changed 2016-12-20 23:11:06 +01:00
Deve
082661db65 Add a possibility to change touch device settings in GUI 2016-12-20 23:10:57 +01:00
hiker
31619aecff Merge remote-tracking branch 'origin/master' into game_protocol 2016-12-20 10:31:24 +11:00
hiker
084869263d Use a sort function to sort the rewind info events and network events,
so that the merge function can be used to combine them. The RewindManager
is now threadsafe.
2016-12-20 09:41:50 +11:00
Benau
c26f8150f4 Fix server only build 2016-12-19 11:17:45 +08:00
Benau
581ca964fd Fix hats with hardware skinning 2016-12-19 11:06:05 +08:00
Benau
2f07b6a8ea Merge pull request #2694 from leyyin/hardware_skinning
Separate the non-cached shader loading in ShaderFilesManager
2016-12-18 19:49:35 +08:00
Daniel Butum
d0229cd85e Separate the non-cached shader loading in ShaderFilesManager 2016-12-18 13:40:36 +02:00
Benau
4f2e2331ee Correct the spelling of shader files 2016-12-18 14:59:37 +08:00
Benau
4477dbb0fb Preload shaders that delay kart selection screen the most
Plus some suggestion from #1787
2016-12-18 14:51:27 +08:00
Benau
7ea4f30824 Make sure no duplicated shader is added somewhere else 2016-12-18 13:49:58 +08:00
Benau
2a9656bfdc Allow all shader files to be loaded only once
Todo: preload
2016-12-18 10:51:05 +08:00
Benau
7894e5c864 Try to use a smarter approach 2016-12-18 09:27:50 +08:00
auria.mg
da795b69ed Better fix for #2687 2016-12-17 18:49:00 -05:00
auria.mg
2b13a5643e Ignore the "applesmc" accelerator as input device. see #2691 2016-12-17 17:43:03 -05:00
Deve
f314c1ff2a Some improvements for multitouch steering GUI
- move it to separate class, so that it can be displayed in Overworld too
- add a possibility to scale the interface (atm. only in config.xml)
- touch steering buttons are created only for single player races

I removed unused drawEnergyMeter function from Overworld GUI. The reason was that I use this function from race_gui.cpp for nitro button and this function in overworld breaks it. And still the proper drawEnergyMeter function is available in race_gui.cpp and can be moved to RaceGuiBase if it will be needed in Overworld in future.

I moved the font size computation to the top of constructor because I use it to check available space for minimap.
2016-12-17 23:28:22 +01:00
Benau
90a556fe9c Try to share shaders across different programs
Todo: non-instanced version
2016-12-17 15:59:40 +08:00
auria.mg
488af78fa3 Fix #2687, reset cameras properly 2016-12-16 21:03:05 -05:00
auria.mg
fc9a51b7f4 Reset cameras when resetting 3 strikes battle. Fixes #2687 2016-12-16 20:33:30 -05:00
auria.mg
5f0a65a07b Fix bug where an animated texture matrix could never be reset to identity. Fixes #2692 2016-12-16 20:21:09 -05:00
hiker
1e372d6e77 Added separate queue for storing network events (to reduce synchronisation);
replaced vector with std::list in preparation for making the RewindManager
threadsafe.
2016-12-17 10:32:21 +11:00
hiker
5cde8f785f Fix crash in normal race (RaceEventManager NULL). 2016-12-16 23:26:34 +11:00
Benau
79e5aadd4d Avoid using software skinning on empty joint objects 2016-12-16 10:04:35 +08:00
Benau
752d847b09 Add the remaining shaders for GL3 hardware skinning
Also use the same shader code for normal map shader
2016-12-15 15:55:14 +08:00
Benau
3d814d1036 Fix wrong case handling 2016-12-15 13:30:26 +08:00
Benau
035271d6ec Remove GL error about draw2DLine
Use GL32_draw2DRectangle, only works if it's a straight line.
2016-12-15 12:57:39 +08:00
Benau
2e2345289c Don't upload / bind skinning ubo if not supported 2016-12-15 12:17:39 +08:00
Benau
1f23e6e783 Remove code used to duplicate VAOs for animated meshes 2016-12-15 11:44:09 +08:00
Benau
6baed2b0dd Merge remote-tracking branch 'origin/master' into hardware_skinning 2016-12-15 10:01:12 +08:00
Benau
a696fd6dff Add transparent skinned mesh shader 2016-12-15 09:52:02 +08:00
hiker
77c14152c2 The server now uses the RewindManager to receive network events
and takes the kart input from this queue of events.
2016-12-15 08:12:04 +11:00
hiker
95ca3fcac1 Try to fix rare GUI crash, likely caused by pushing a screen in the
network thread while the gui is being drawn. Made the messages
causing this synchronous, i.e. executed by the main thread.
2016-12-15 08:10:04 +11:00
Benau
85bd8c3146 Add unlit and normal map skinned mesh shader
Also fix normal map with skinned mesh, now vertices and joints
will be recalculated for tangents mesh
2016-12-14 16:28:37 +08:00
hiker
177c8c8f63 Merge remote-tracking branch 'origin/simplify-world' into game_protocol 2016-12-13 17:17:25 +11:00
hiker
4ee6f6315f Made World::m_weather a singleton to further remove dependencies on World. 2016-12-13 17:14:29 +11:00
hiker
32f2196201 Removed unnecessary #include world.hpp. 2016-12-13 17:13:54 +11:00
hiker
ed7574ca85 Merge remote-tracking branch 'origin/master' into simplify-world 2016-12-13 09:19:24 +11:00
hiker
4d406490e1 Made ScriptingEngine a singleton and removed it from World, which reduces
more dependencies on world.
2016-12-13 09:18:59 +11:00
hiker
b12453e9ca Made Physics a singleton, removing the accessor functions from World.
Removes dependency on World for a few files.
2016-12-13 08:31:08 +11:00
hiker
cd149ab5d7 Moved m_track out of World into a static m_track in Track. Makes
world smaller and removes a few dependencies on World.
2016-12-13 07:53:33 +11:00
Benau
abe4ae2d6a Fix server only stk 2016-12-12 13:54:43 +08:00
Benau
c8e5238ce2 Merge remote-tracking branch 'origin/master' into hardware_skinning 2016-12-12 13:45:04 +08:00
Benau
269e440d0c Avoid translating artist debug mode only fps string 2016-12-12 13:43:01 +08:00
Benau
a420b09363 Disable all karts animation if UBO size not big enough 2016-12-12 13:24:34 +08:00
auria.mg
044e8c52e1 Fix tabs added in previous commit, used spaces instead... 2016-12-11 20:19:58 -05:00
auria.mg
ab7ded308a Make presentation of kart characteristics uniform and indepdendent of difficulty. Fixes #2684, fixes #2539 2016-12-11 20:16:44 -05:00
Corentin Pazdera
aaecd58fc0 Adding appveyor config file (#2652)
I am unfamiliar with appveyor myself but I can merge the file. Next step would be for someone to take a look at settuping an account
2016-12-11 19:52:15 -05:00
Daniel Ölschlegel
62e1a2ddcc Add a little more BSD detection (#2685)
Tested for NetBSD, the same signature has DragonFly(http://fxr.watson.org/fxr/source/sys/endian.h?v=DFBSD#L42)
2016-12-11 19:16:47 -05:00
Daniel Butum
244c812cf3 Add travis server only matrix configuration (#2682)
Also increase number of threads for the gcc builds
2016-12-11 19:15:37 -05:00
hiker
8785ddf148 Moved force-fog settings into track. 2016-12-12 08:05:07 +11:00
Benau
4327885f07 Add alpha test skinned mesh instanced shaders 2016-12-12 01:00:57 +08:00
Benau
e9b68a8a1f Use a non-hardcoded values for mat4 array (max 1024)
Also cull mesh that doesn't have enough space to be rendered
2016-12-11 15:50:53 +08:00
Benau
f6490b6fa6 Allow array to capture lambada
Also use a correct sorting function, will be useful later if
we only need the more influetial bones.
2016-12-11 13:21:17 +08:00
Benau
ceef7495d2 Enable culling for animated mesh
Use the first frame bounding box for it, don't update each frame
2016-12-11 11:01:02 +08:00
Benau
fcd1e2830e Use callback function to directly upload joints without copying 2016-12-10 16:16:40 +08:00
Benau
8ca0c54bdc Merge remote-tracking branch 'origin/master' into hardware_skinning 2016-12-10 10:09:30 +08:00
samuncle
ae0b1136f5 better shader for underwater vegetation 2016-12-09 11:38:56 -05:00
Benau
c68492f42b Use a for loop for four bones (thanks leyyin suggestion!) 2016-12-09 23:21:41 +08:00
Benau
94f6d09bf5 Allow indirect and azdo shadow rendering for skinned mesh 2016-12-09 22:37:17 +08:00
Benau
f2422317ba Auto fallback to software skinning if not supported
Currently explicit attribute location, uniform buffer object and
opengl greater or equal 3.3 are required for hardware skinning

So even intel hd3000 in linux can do hardware skinning
2016-12-09 20:50:09 +08:00
Benau
76e070b709 Allow GL3 to have hardware skinning 2016-12-09 18:41:13 +08:00
Benau
b7e047b4c1 Avoid using else if in skinning vertex shader 2016-12-09 14:16:30 +08:00
hiker
22092e6459 Moved background/clear color from world to irr_driver. 2016-12-09 17:14:04 +11:00
hiker
b73d08d089 Removed unnecessary cast. 2016-12-09 16:39:59 +11:00
hiker
0a2ea4bd08 Removed unused functions. 2016-12-09 16:39:37 +11:00
hiker
a8d3b6b0df Fixed compiler warning. 2016-12-09 09:18:56 +11:00
hiker
04d1d4817a Removed KartUpdate protocol (which breakes online play). 2016-12-09 09:00:20 +11:00
hiker
4d065f67e6 Started to introduce GameProtocol (which will combine several
individual protocols.
2016-12-09 08:55:06 +11:00
Benau
21d9117b2d Fix matrix4 pointer in windows
Also allow minimum azdo rendering and avoid skinning empty joints
2016-12-08 16:12:54 +08:00
hiker
dbfaf2105b Merge remote-tracking branch 'origin/master' into nw 2016-12-08 13:36:36 +11:00
hiker
fed12f774c Fixed potential deadlock, made debug output more useful. 2016-12-08 09:46:44 +11:00
Benau
407ed319de Show debug info about total skinning joints being calculated 2016-12-07 16:26:22 +08:00
Benau
d21e5e0f76 Make skinning offset changeable by culling 2016-12-07 16:08:57 +08:00
Benau
fcebb5c2e6 Fix crash with normal map skinned mesh 2016-12-07 09:29:40 +08:00
Benau
ac8d7aa8c7 Try to fix the build 2016-12-07 08:18:19 +08:00
Benau
a3905a1e19 Allow tangent mesh to be converted 2016-12-07 08:07:01 +08:00
Deve
66f57ada61 Fixed a crash when GLES device is re-created 2016-12-07 00:08:16 +01:00
hiker
32daf4ce29 Removed unused functions. 2016-12-07 09:34:33 +11:00
Deve
5fad8a135e Destroy egl context on exit 2016-12-06 23:32:04 +01:00
Deve
c013fcea61 Allow to log messages to file on android 2016-12-06 23:31:49 +01:00
Benau
57d9e83ed4 First version of hardware skinning
Todo: shadow, non-instanced shaders, culling, changeable offset...
2016-12-07 02:15:11 +08:00
hiker
95e627c004 Fixed pi compilation. 2016-12-07 00:28:36 +11:00
hiker
63fe4373a8 Removed unnecessary #ifdef. 2016-12-06 21:50:23 +11:00
hiker
8b806dd35a Fixed compiler warnings. 2016-12-06 18:46:03 +11:00
hiker
1939075a1b Merge remote-tracking branch 'origin/master' into nw 2016-12-06 18:45:17 +11:00
hiker
fdfb56ddf8 Fix server-only compilation. 2016-12-06 18:10:31 +11:00
hiker
746bac00ce Merge remote-tracking branch 'origin/new-pi' into nw 2016-12-06 09:26:07 +11:00
hiker
526b2a8f0d Added two more graph connections. 2016-12-06 09:22:13 +11:00
hiker
79ad569542 Only allow LAN connections for LAN servers (previously anyone with
the IP address could connect, even from the outside). Added new
--public-server command line option to enable public WAN server.
2016-12-06 09:10:05 +11:00
Deve
23883b83c1 Fixed a crash on startup.
As written in the documentation: "The returned modifiers string is owned by Xlib and should not be modified or freed by the client."
2016-12-04 23:23:09 +01:00
Deve
c0cd915716 Minor fixes in file manager.
The listFiles function returns absolute paths, so the condition if ((*i)=="..") doesn't have a sense. I added a check for absolute paths (file == name + "/.."). Btw. what about Windows? Does it return 'name + "\\.." ' or so?

I also enabled recursive removing of directories on Android. It is needed for example when you have already installed STK with extracted data files, and then you want to upgrade STK to newer version.
2016-12-04 22:22:42 +01:00
Deve
419e9e5351 Some minor modifications that make merging with master easier 2016-12-04 15:11:48 +01:00
Benau
2c8b31379b Don't push color info for shadow and rsm 2016-12-04 13:41:28 +08:00
Benau
ed43d16a1c Allow alpha test shader to be colorizable 2016-12-04 13:21:39 +08:00
Benau
2a50149e62 Remove TODOs about splatting
Splatting will be drawn using non-instanced shader only, it's only
used one place (in overworld) and may be removed eventually
2016-12-04 11:48:52 +08:00
Benau
902f4e20a5 Leave the loop as soon as one material is colorizable 2016-12-04 11:15:32 +08:00
Benau
2d980264b4 Update LOD to support colorization 2016-12-04 10:47:08 +08:00
Benau
7d5f786da8 Make grass shader colorizable 2016-12-04 00:59:09 +08:00
Benau
31b6a0a4b1 Try to fix gcc build 2016-12-03 16:06:46 +08:00
Benau
4261a96d06 Fix inconsistency between grass shader and the instanced version
1. Assign the missing depth stencil texture (dtex)

2. Correct the movement and color
2016-12-03 15:54:59 +08:00
Benau
79136e0289 Fix GLES 2016-12-03 14:10:07 +08:00
Benau
332811af84 Merge branch 'improve_instanced_rendering' 2016-12-03 09:17:15 +08:00
Benau
6a3ad6605b Try to fix release build 2016-12-02 21:00:34 +08:00
Benau
c7d025d81d Fix binding texture error with AZDO
See specification of bindless textures for details
2016-12-02 20:09:08 +08:00
Benau
bfc006b979 Fix wrong texture units 2016-12-02 19:26:40 +08:00
Benau
4fbce474c5 Fix ambient light on track not updated 2016-12-02 19:17:55 +08:00
hiker
8bd3e35c7b Removed some of the debug output of the latency protocol. 2016-12-02 09:26:03 +11:00
hiker
e3e072557c Fixed deadlock when more than one client was used. 2016-12-02 09:16:51 +11:00
hiker
ee63f2c456 Support --port command line option to change a client or servers
port number.
2016-12-01 22:29:23 +11:00
hiker
09ca38d36e Renamed handleLANRequest to HandleDirectSocketRequest, since the code
can also be used to connect to a public server (outside of the server's LAN).
2016-12-01 10:11:50 +11:00
hiker
fc5cecceae Use the port number from the config instead of hard coded one. 2016-12-01 09:55:39 +11:00
Deve
3add543a22 Fixed conflict between GLES2 headers included in irrlicht and GLES3 headers included in STK.
There is one minor difference in one declaration, which is probably an inconsistency in these headers. But it may cause compilation errors on some compiler versions.
2016-11-30 21:31:29 +01:00
Benau
acf0ac909f And a correct ifdef for bindless texture 2016-11-30 15:00:08 +08:00
Benau
9e8fb63dc4 Fix AZDO with colorization
Also re-arrange texture layer
2016-11-30 13:52:06 +08:00
hiker
b0294060dc Support direct connection to LAN server using command line option,
based on Benau's fix_2446 branch.
2016-11-30 09:07:27 +11:00
Benau
5884d7b9d8 Avoid using matrix4 calculation 2016-11-28 15:44:14 +08:00
hiker
5fc4531c01 Updated finite state machine graph. 2016-11-28 18:39:18 +11:00
hiker
70c203cc3f Updated and fixed server documentation. 2016-11-28 18:20:41 +11:00
hiker
9c2b17602d Added documentation for cliebt lobby. 2016-11-28 18:09:38 +11:00
Benau
497b7e3f14 Use reference when possible 2016-11-28 13:34:45 +08:00
Benau
45c5b0ffd6 Improved colorization in instanced rendering 2016-11-28 13:08:27 +08:00
Benau
decf3b9715 4 bindless textures + texture translation + colorization in vao 2016-11-28 10:47:14 +08:00
Benau
60908c3e1d Try to use vec2 for texture translation only
In stk, only setTextureTranslate is used which modify 8,9 of
matrix array. Also don't update it when it is identity.
2016-11-28 10:41:27 +08:00
deve
716c19325f Update common irrlicht files with modifications from Android branch.
- Added a function in GLES driver, which allows to re-create EGL surface when it's lost after resume event
- Some additional events/keycodes
- Fixed compilation with missing sys/sysctl.h header
2016-11-28 01:56:52 +01:00
hiker
21ca9b40f0 Merge branch 'master' of github.com:supertuxkart/stk-code 2016-11-28 12:46:00 +11:00
hiker
aa36f7856f Fixed compiler warnings. 2016-11-28 09:03:56 +11:00
hiker
de0f153f0c Renamted SynchronizationProtocol to LatencyProtocol. 2016-11-28 08:45:17 +11:00
Benau
3e938a79be Fix #2676 by moving rsm matrix to be assigned lastly 2016-11-27 11:21:16 +08:00
auria.mg
decaac85d9 Tweak item collision box, fixes #2678 2016-11-26 19:01:38 -05:00
Benau
0298d48e24 Try to use the internal template to colorize objects
Todo: instanced version
2016-11-27 01:14:40 +08:00
Benau
9b15bd2c63 Remove useless extern BoundingBox 2016-11-26 10:10:10 +08:00
Benau
a9a6ec0b7f Use the old unrolling draw mesh for RSM shaders on GL3
Todo: fix CustomUnrollArgs for rsm shaders
2016-11-26 00:06:22 +08:00
Benau
f7e0babe02 Fix global illumination on instanced rendering 2016-11-26 00:03:22 +08:00
Benau
df6ab0a7fd Fix god rays regression 2016-11-25 20:44:44 +08:00
hiker
6053ad207f Don't use the SynchronisationProtocol for startup state changes at all.
It is now totally optional, and only estimates the latency between the
server and all clients (and this value is not even used).
2016-11-25 22:17:24 +11:00
Benau
5ca5dc3b3e Clean up culling code 2016-11-25 16:45:00 +08:00
Benau
0c091125b0 Remove const cast in three strikes battle 2016-11-25 12:38:08 +08:00
Benau
fe371a28b5 Add non-const function for STK usage 2016-11-25 12:37:40 +08:00
hiker
18f14ae142 Fixed compiler warnings. 2016-11-24 17:48:23 +11:00
hiker
b1afac23a7 Moved creation of the race protocols into lobby, so SynchronizationProtocol
is not involved in the race start anymore.
2016-11-24 08:56:30 +11:00
hiker
617e1c538d Merge remote-tracking branch 'origin/master' into nw 2016-11-23 21:58:00 +11:00
hiker
414b0e0633 Fixed sending 'client ready' twice. 2016-11-23 18:50:44 +11:00
hiker
dd515292ee Fixed deadlock (in case of protocol error). 2016-11-23 18:40:56 +11:00
hiker
62da83317e Fixedc compilation, renamed LobbyRoomProtocol to LobbyProtocol. 2016-11-23 18:39:59 +11:00
Benau
a2bb0487b1 Disable backface culling when set in the material. 2016-11-23 15:16:19 +08:00
hiker
2c7e7d8722 Merge remote-tracking branch 'origin/master' into nw 2016-11-23 17:16:42 +11:00
Benau
eb84de2666 Fix #2491 2016-11-23 10:11:08 +08:00
hiker
026e1623ec Renamed ServerLobbyRoomProtocol to just ServerLobby, ClientLobbyRoomProtocol
to ClientLobby, and LobbyRoomProtocol to Lobbyprotocol.
2016-11-23 09:39:33 +11:00
deve
7f251fdf79 Merge branch 'master' of https://github.com/supertuxkart/stk-code 2016-11-22 09:16:59 +01:00
deve
467760f248 Remove illogical #ifdef 2016-11-22 08:29:18 +01:00
hiker
09eae7e25f Removed StartGameProtocol, and added the necessary states to the
Lobby rooms. Added documentation of the FSM for the ServerLobby.
2016-11-22 17:57:15 +11:00
Benau
61a00a9068 Fix transparent displacement rendering with advanced pipeline off
Allowing them to render using the same custom alpha uniform used
by ghost karts, fixed #2459.
2016-11-22 12:34:48 +08:00
Benau
c1e931f5ba Merge branch 'legacy_opengl' 2016-11-22 09:23:17 +08:00
Benau
690d36271d Try to fix LOD in legacy pipeline 2016-11-22 00:51:10 +08:00
deve
e9f3fd4806 Fixed compilation with missing vidmode headers after some modifications in our CGUIEditBox. 2016-11-21 08:37:20 +01:00
Benau
befa2394a8 Some improvement to #2667 2016-11-21 11:58:46 +08:00
Benau
72ff03c024 Fix light in legacy pipeline 2016-11-21 11:10:40 +08:00
Benau
de95db5c93 Avoid creating new glyph page too many times 2016-11-20 10:08:59 +08:00
Benau
9734c2e890 Fix crash in billboard text when using legacy opengl
Notice: freetype glyph metrics are not supported
2016-11-19 15:59:58 +08:00
Benau
a52c4699a1 Add back normal map renderer for legacy opengl
Fixed transparent issue
2016-11-19 14:21:56 +08:00
Benau
f853255204 Merge branch 'fix_1704' 2016-11-18 09:51:34 +08:00
Benau
9eb6ef5bfe Simplify code 2016-11-18 09:44:30 +08:00
Deve
952bed5672 Few minor fixes for multitouch steering:
- don't update a button that is already not pressed
- use full axis range, which means higher sensitivity in the center
- make sure that we don't divide by 0
2016-11-18 01:22:32 +01:00
hiker
6b1563321f Use singleton for lobby protocols. 2016-11-18 09:08:37 +11:00
Benau
ac74304dd7 Fix #1704 2016-11-18 00:31:48 +08:00
Benau
b6c1a45918 Use a better define 2016-11-16 10:20:40 +08:00
hiker
ba600f40f2 The server waits now for all client to start (which means it will be
behind the clients by the maximum latency, which in turn means that
at server time T all client events at time T have arrived, so less
rollback necessary).
2016-11-16 08:48:04 +11:00
hiker
019e61ec66 iFixed pi compilation. 2016-11-16 00:19:09 +11:00
hiker
fbd858a64c Fixed non-server compilation. 2016-11-15 12:52:37 +11:00
hiker
ae36208e29 Merge remote-tracking branch 'origin/master' into new-pi 2016-11-15 12:38:21 +11:00
Benau
2f2940115e Use a smooth dt on camera to determine its position 2016-11-14 15:47:55 +08:00
hiker
621e61c644 Fixed coding style. 2016-11-14 18:32:29 +11:00
hiker
feae91042a Explicitly disable X11 compilation for windows. No idea why it is
defined in CGUIEditbox now, but it somehow is ;(
2016-11-14 18:25:00 +11:00
hiker
13bcdcade6 Fixed crash in case of standalone server. 2016-11-14 10:15:40 +11:00
hiker
245045f575 Fixed various crashes on server. 2016-11-14 10:09:25 +11:00
hiker
f2b67f75b6 Minor coding style fixes. 2016-11-14 10:02:46 +11:00
hiker
73182863df Fixed linking problems - will probably not run ;) 2016-11-14 09:59:08 +11:00
Benau
e6e302af1c Fix copy and paste of unicode characters 2016-11-13 15:43:00 +08:00
Benau
5879933a23 Merge remote-tracking branch 'origin/master' into fix_2112 2016-11-13 10:42:47 +08:00
Deve
7e4dfdb97e Remove version from graphics restrictions for sRGB-capable visual workaround.
It doesn't look that they're going to fix it soon.
2016-11-11 16:22:31 +01:00
Deve
e707b7a2ea Remove pthread_setcancelstate functions.
This function is not available on android and it is default on other platforms anyway.
It makes easier to port changes from master to android branch.
2016-11-11 14:11:27 +01:00
hiker
61a3d10e10 More Compile SERVER_ONLY, still not fully working. 2016-11-12 00:09:39 +11:00
Deve
6b2bf1c088 Make sure that we are not out of array.
Command line arguments are not available on android.
2016-11-11 14:07:18 +01:00
hiker
ddcddf4a0a Compile SERVER_ONLY (by #ifdef'ing out all graphics related code).
Does not link yet!!
2016-11-11 23:46:22 +11:00
Deve
452c7c1e40 Fixed compiler warning 2016-11-11 13:44:51 +01:00
Benau
19cd3656a9 Use all cores only in clang for travis 2016-11-11 15:29:17 +08:00
hiker
8d9bb9c30f Cherry picked commits from old pi branch (which was based on dumb client). 2016-11-11 17:21:59 +11:00
hiker
8ecb0ecaeb Merge branch 'master' of github.com:supertuxkart/stk-code 2016-11-11 15:35:30 +11:00
hiker
fd5f60a786 Merge branch 'master' of github.com:supertuxkart/stk-code 2016-11-11 15:27:45 +11:00
hiker
190490e0ce Merge branch 'master' of https://github.com/supertuxkart/stk-code 2016-11-11 15:15:02 +11:00
Benau
f31cfa261a Try to fix compilation by reducing number of threads 2016-11-11 11:58:53 +08:00
Benau
6b282acae2 Use bullet built-in function 2016-11-11 10:20:15 +08:00
Benau
656ddcfdee Add tools from hiker 2016-11-11 09:06:06 +08:00
Benau
8b069df97f Merge remote-tracking branch 'origin/renderer_refactoring' 2016-11-11 08:43:42 +08:00
hiker
10b7dac658 Replaced static with dynamic casts, fixed docu. 2016-11-11 09:14:18 +11:00
hiker
10575174fc Fix for disabling LAN detection. 2016-11-11 08:47:10 +11:00
hiker
6065a6ce3e Added debug option to disable automatic LAN connection. 2016-11-10 18:21:27 +11:00
deve
4bb0405a32 Added support for multitouch steering.
It will be used for steering on Android.

There are some limitations:
- currently it works only in single player mode (but I don't see any reason to make it working for multiplayer)
- speedometer is not available in race GUI because there is no place for it

TODO:
- add DPI support (race GUI should have probably different proportions on smaller devices for comfortable playing)
- make nice button images
- make nitro button that changes its look depending on collected nitro (a kind of nitro bar)

Touch input events must be handled in android device to make use of it. It can be simulated for debugging on non-android devices using standard mouse.
2016-11-10 02:42:56 +01:00
deve
78c1c5e14a Update .gitignore 2016-11-10 02:42:07 +01:00
hiker
9201a08daf Fix crash exiting a server screen. 2016-11-09 23:24:04 +11:00
hiker
64d2d43f5b Disable console (for #2665). 2016-11-09 23:06:17 +11:00
Benau
8a0d911d10 Allow using input method (for CJK) in linux 2016-11-09 12:28:23 +08:00
Benau
0c0581f97a Merge remote-tracking branch 'lpw/malice' 2016-11-05 11:25:19 +08:00
LoadingPleaseWait
578a3732c0 Add help page with icons for banana penalties 2016-11-04 22:16:06 -05:00
Benau
214ea6801b Merge remote-tracking branch 'origin/master' into renderer_refactoring 2016-11-04 21:06:42 +08:00
Benau
9da38a2755 Fix Mac build 2016-11-04 21:05:07 +08:00
Benau
7da108c8b1 Header clean up
Also move getUnicolorTexture to a better location
2016-11-04 20:30:08 +08:00
Benau
01c7576755 Update prefilled textures if new RTT is used
Required by multiplayer kart selection screen
2016-10-31 14:13:38 +08:00
Benau
253281aaeb Avoid crashes in fixed pipeline RTT if it fails 2016-10-31 11:57:15 +08:00
Benau
1678078aea Fix GLES 2016-10-31 09:15:50 +08:00
Benau
07ebb760ac Try to make RTT creation as close to master as possible 2016-10-31 00:33:06 +08:00
Benau
7998c326fc Prevent using uninitialized values 2016-10-30 14:44:08 +08:00
Benau
df57a73813 Fix start projection of karts 2016-10-30 10:10:09 +08:00
Benau
fc47d6e220 Minor header clean up 2016-10-29 10:37:45 +08:00
Benau
0165469301 Fix build 2016-10-28 23:46:24 +08:00
Benau
2f0252be98 Merge remote-tracking branch 'origin/master' into renderer_refactoring 2016-10-28 21:41:49 +08:00
hiker
9f4c842b6c Merge branch 'master' of https://github.com/supertuxkart/stk-code 2016-10-27 21:36:17 +11:00
hiker
fda3afad93 Fix 2658 by separating networking code from main loop. 2016-10-27 21:33:42 +11:00
Benau
956aa83a0a Remove unused function 2016-10-27 10:15:41 +08:00
Benau
93197d9569 Merge branch 'fix_2445' 2016-10-27 09:41:35 +08:00
Benau
d4e9de1f53 Fix non-animated karts 2016-10-27 09:41:01 +08:00
hiker
94346ae64d Merge branch 'master' of https://github.com/supertuxkart/stk-code 2016-10-27 11:13:19 +11:00
hiker
b3b9d16ba1 Removed unnecessary logging. 2016-10-27 08:48:38 +11:00
hiker
2c56837ee8 Fixed token handling. 2016-10-27 08:41:35 +11:00
hiker
b1f6632e5b Changed countdown from a mixture of ms and seconds to seconds only;
added documentation.
2016-10-27 08:40:45 +11:00
deve
bc7f89d49a Merge branch 'master' of https://github.com/supertuxkart/stk-code 2016-10-26 13:51:40 +02:00
deve
8d270e5ff3 Fixed nitro bar for non-HD textures 2016-10-26 13:51:17 +02:00
Benau
e93e8b7708 Make animated mesh render separately in instanced rendering
Try to introduce mesh + render info hash in vao manager, without
copying the mesh
2016-10-26 14:25:48 +08:00
Benau
9bd4c87b9c Fix leaking createTextBillboard 2016-10-26 09:21:17 +08:00
Benau
cc3ff7cf9f Simplify calculation of transform 2016-10-26 09:08:10 +08:00
Benau
a38c8f0c19 Make billboard text display properly when viewing in any direction 2016-10-26 00:34:13 +08:00
hiker
e31a7ca4a8 Merge branch 'master' of https://github.com/supertuxkart/stk-code 2016-10-25 10:05:28 +11:00
hiker
6a578e374f Fix LAN handling when connecting via a WAN server. 2016-10-25 07:53:52 +11:00
Benau
68ea2ed3b2 Fix typo 2016-10-22 12:33:47 +08:00
Benau
cf557f6982 Fix release build 2016-10-22 10:46:30 +08:00
Benau
3e70fa27d9 Add doxygen for Font modules
Plus some coding-style cleanup
2016-10-22 00:01:48 +08:00
hiker
df21ba55b4 Merge branch 'master' of https://github.com/supertuxkart/stk-code 2016-10-21 08:31:11 +11:00
Benau
7505630cd4 Add doxygen for Soccer and SpareTire AI 2016-10-21 01:38:30 +08:00
Benau
021509387d Add doxygen for Arena and Battle AI
Plus some coding-style cleanup
2016-10-20 16:40:20 +08:00
Benau
b12f7a1079 Fix shaking u-turn 2016-10-19 00:37:29 +08:00
Benau
24f926b780 Merge remote-tracking branch 'origin/spare_tire_kart' 2016-10-18 14:32:44 +08:00
Benau
8eb8e805eb Fix dropping of normal map wheel in battle mode 2016-10-18 14:18:51 +08:00
Benau
f1caba7932 Make ArenaAI reverse more naturally 2016-10-18 10:33:27 +08:00
Benau
9aa92cfe30 Fix profiling mode framerate regression 2016-10-18 09:55:30 +08:00
auria.mg
8c0fe53ff2 Fix texture mirroring on alpha blend/test shaders. See #2167 2016-10-17 19:46:21 -04:00
auria.mg
9d1b115e59 Don't call OpenAL's position method when audio is disabled 2016-10-17 19:15:28 -04:00
auria.mg
513e32d9ff Fix bug that could cause reversible textures to be mirrorred twice when driving the track in reverse (see #2167) 2016-10-17 19:09:01 -04:00
Deve
28f04b472b Merge pull request #2654 from LoadingPleaseWait/redundant-includes
Remove duplicate include statements from kart.cpp
2016-10-17 11:02:38 +02:00
LoadingPleaseWait
eddf39b8a1 Remove duplicate include statements from kart.cpp 2016-10-17 03:36:29 -05:00
deve
5502fa4ebe Declare custom alpha also when bindless sampler is enabled 2016-10-17 08:23:27 +02:00
Benau
caf095ed60 Add improvements from auria and devee 2016-10-17 09:13:07 +08:00
Benau
af223ddf24 Try to use sun color to determine custom alpha for ghost karts
This may need more adjustments, also add custom_alpha uniform float
to transparent fragment shader to remove duplicated shader
2016-10-17 01:03:10 +08:00
Benau
23a1b08efe Allow normal map karts to be used in ghost race
Also split ghost karts out of additive shader, so fixed issues like
"drivers are facing backwards", "water in abyss affects ghost karts"

Todo: maybe transparency depend on current track color?
2016-10-16 15:40:40 +08:00
auria.mg
929b9b5c20 Stop world imer when game is paused 2016-10-15 20:28:48 -04:00
auria.mg
020edf1679 Add support for directional (forward-only or backwards-only) driveline segments 2016-10-15 18:56:13 -04:00
Benau
1f8149f138 Merge remote-tracking branch 'origin/skinned_mesh_normal_map' 2016-10-15 15:25:20 +08:00
Benau
604e454f33 Fix normal map in library and track objects if they are animated 2016-10-15 15:21:34 +08:00
Benau
efb6b7431a Try to make skinned mesh work with normal map 2016-10-15 00:17:09 +08:00
hiker
35e382b893 Remove unnecessary request for server address,since it is now included
for each server in the list of all servers.
2016-10-14 18:08:39 +11:00
Benau
f70a64f61a Fix controller and text billboard leaking in kart 2016-10-14 12:01:37 +08:00
Benau
e09fe6ff8a Fix memory leak of mesh tool 2016-10-13 14:08:58 +08:00
hiker
62b9b93d10 Merge branch 'master' of github.com:supertuxkart/stk-code 2016-10-13 14:06:48 +11:00
hiker
85e0fed9b7 Merge branch 'master' of https://github.com/supertuxkart/stk-code 2016-10-13 11:14:40 +11:00
hiker
83ffbd96e1 Better error message in case of a failure to creaet a server. 2016-10-12 17:21:15 +11:00
hiker
061827a1ac Ported to use the new server (Issue65 branch). 2016-10-12 17:09:57 +11:00
Benau
965e901796 Fix typo 2016-10-12 14:00:51 +08:00
Benau
48e6128e12 Grab light in the correct place, fixed all leaking of lights 2016-10-12 11:48:50 +08:00
Benau
ddcf6fbb14 Fix memory leaking when changing resolution 2016-10-12 10:28:33 +08:00
Benau
76f32b4a41 Fix an unfree Atom 2016-10-12 09:52:34 +08:00
Benau
7df560ae63 Fix leaking of scripting engine 2016-10-12 09:30:08 +08:00
Benau
b2cdc8c97e Fix memory leak of unicolor texture
Also try to hold them until the last moment, this may need some
testing.
2016-10-11 16:25:22 +08:00
hiker
b0bb6ce00f Simplified structure. 2016-10-11 18:13:21 +11:00
hiker
3243f81f10 Avoid crash. 2016-10-11 18:02:11 +11:00
hiker
68f5259f4d Removed static variables and properly initialised in setup, which
should allow this protocol to work for more than one race.
Back-ported to master.
2016-10-11 17:58:43 +11:00
Benau
ef7201cf51 Remove an unneeded line 2016-10-11 12:24:36 +08:00
Benau
fb79cf3a6e Let spare tire karts follow bounding box points 2016-10-11 10:52:08 +08:00
Benau
28f1e45f79 Really fix model view widget 2016-10-11 09:09:09 +08:00
hiker
7b3fc04d26 Removed debug output. 2016-10-11 08:46:14 +11:00
hiker
09ce5515b0 Avoid extrapolation by making sure the client starts after receiving
a message from the server, and only updating the previous position
if the new previous position is indeed before the current client time.
Fixed conflicts, removed dumb-client related interpolation code, left
client starting in place.
2016-10-11 08:44:17 +11:00
Deve
850b23db1f Fixed setting viewport in multiplayer games.
It was broken in commit 5cfed1bc1c.

We mix irr_driver->getVideoDriver()->setViewPort() and glViewport(...) functions and thus the first one, which is executed during camera activation, in some cases doesn't work. It compares the viewport to values which has been set last time and thinks that nothing changed.

It only happens on single player (with single camera), so we just restore the viewport to fullscreen after scene rendering to workaround the issue.

Actually the problem was that it was set after camera activation, which overwrote proper values.

I also fixed SSAO, RSM and normals vizualization in multiplayer games.
2016-10-10 22:47:30 +02:00
Benau
6750fb3c94 Fix leaking of script engine 2016-10-11 00:11:45 +08:00
Benau
1a9a4c626e Properly add the model view widget
Use add() will set angle = 0 in ModelViewWidget
2016-10-10 14:38:30 +08:00
Benau
d1c1435b55 Use a better string 2016-10-10 05:16:19 +00:00
Benau
8e2d7c5499 Fix memory leaks and uninitialized values of ShadowMatrices 2016-10-10 13:04:40 +08:00
Benau
d39f5e487b Don't set position and target of camera the same
Otherwise NAN will be calculated in ViewArea of camera
2016-10-10 13:04:40 +08:00
Benau
aaa0e11770 Fix using uninitialized values when init() the first time 2016-10-10 13:04:40 +08:00
Benau
03f9fb35da Fix valgrind warning 2016-10-10 13:04:34 +08:00
Benau
4ed599403e Show a message when a life gained 2016-10-10 08:47:10 +08:00
hiker
91363f820b Disable slow-down of game time in case of very low FPS when networking
is used (this would desynchronise client and server).
2016-10-10 09:54:44 +11:00
hiker
d00f2abb0b Fixed item collection (token must not be tested by protocols anymore). 2016-10-10 09:54:11 +11:00
Benau
fdcb4dac8d Fix assertion when no spare tire karts 2016-10-09 17:41:20 +08:00
Benau
b4907f5519 Tell player that they have max 3 lives only 2016-10-09 13:52:24 +08:00
Benau
fb0f4fca3c Allow BattleAI to collect lives 2016-10-09 13:24:00 +08:00
Benau
6b8156c254 Pre-spawn spare tire karts on random nodes in graph
Don't use the item location, as it can be remembered by players
2016-10-09 11:17:36 +08:00
Benau
357567ae8d Move spare tire num info to race_manager
It allows this info to be get more easily
2016-10-09 09:50:26 +08:00
Deve
8092cfc0a7 Fixed displaying some special characters in keys binding in options.
It most probably needs to be done this way since commit 2096532d0e.
I don't know what about OSX, so I enabled it only for linux.
2016-10-08 21:26:20 +02:00
Deve
1e520d551f Merge pull request #2650 from Legimet/fix-boom-boom-boom-credits
Fix credits for Boom-boom-boom song
2016-10-08 19:52:47 +02:00
Legimet
ee17928382 Fix credits for Boom-boom-boom song 2016-10-08 12:07:39 -04:00
Benau
71359a087d Add heart billboard with red kart for spare tire karts 2016-10-08 14:29:28 +08:00
Benau
8889654d96 Move STA function out of world 2016-10-08 09:41:02 +08:00
Benau
9096bb05bd Merge remote-tracking branch 'origin/master' into spare_tire_kart 2016-10-08 08:36:05 +08:00
Benau
59edb96489 Fix warning when eliminate a kart in battle mode 2016-10-08 08:35:07 +08:00
Benau
71662df159 Improve spawn formula 2016-10-07 21:49:05 +08:00
Benau
c907442bb4 Fix incorrect target node access 2016-10-07 16:43:54 +08:00
Benau
2147b74fe4 Fix engine sound after re-spawn 2016-10-07 16:03:15 +08:00
Benau
b055fa573d Try to fix hangs when firstly spawn STA 2016-10-07 15:29:36 +08:00
Benau
91af45337f Pre-add spare tire karts probably 2016-10-07 14:39:39 +08:00
Deve
5c4b61a26e Fixed numpad keys on linux.
We need to check numlock mask, because it may be different on different systems, and possibly also modified manually.

It should generally work fine, but some testing are welcome.
2016-10-06 20:31:10 +02:00
Benau
b66e6ef06d Use MaxSpeed to slow down spare tire karts 2016-10-06 00:35:52 +08:00
deve
ce28d46d14 Merge branch 'master' of https://github.com/supertuxkart/stk-code 2016-10-05 11:30:22 +02:00
deve
7a82a8d2c6 Fixed compiler warning 2016-10-05 10:56:40 +02:00
deve
bd42f2c2df Fixed rare case that anisotropic filtering feature is not available in graphics drivers. 2016-10-05 10:50:20 +02:00
Benau
a0b02659f7 Don't use num of karts from world, as it includes spare tire karts 2016-10-05 16:42:37 +08:00
Benau
a91af96637 Initial work on spare tire kart in battle mode
Some values are hard-coded for now
2016-10-05 16:18:39 +08:00
Benau
43d9db4db0 Fix acceleration and braking of ArenaAI 2016-10-05 11:53:45 +08:00
hiker
5767f2294e Merge branch 'master' of https://github.com/supertuxkart/stk-code 2016-10-05 13:32:13 +11:00
hiker
ceb961ae87 Fixed reverse camera (smooth speed was positive even when
going backwards).
2016-10-05 13:31:31 +11:00
hiker
3506b7da2f Merge pull request #2615 from nado/warning-fix
Fixes warnings
2016-10-05 12:59:22 +11:00
hiker
8949e89809 Merge remote-tracking branch 'origin/master' into rewind
Fixed conflicts.
2016-10-05 08:21:10 +11:00
Nado
d21630c815 This simplifies the reading of bool isEasterMode() 2016-10-04 08:55:07 +02:00
Nado
25a4aa565a Reduce variables scope when possible, based on the warnings reported by
cppcheck.
2016-10-04 08:55:01 +02:00
Nado
afbea19d34 Fix -Wunused-variable 2016-10-04 08:44:50 +02:00
Nado
4c0b4d8078 Fixes -Wsign-compare
See #2613
2016-10-04 08:43:38 +02:00
hiker
9595a76d36 Removed unnecessary flag to keep track if speed icnrease is defined. 2016-10-04 08:28:01 +11:00
Deve
5e05f1178c Fixed compiler error on Linux with non-x86 64bit platforms, e.g. arm64, mips, and s390x architectures
This modification is already applied in upstream angelscript repository:
https://sourceforge.net/p/angelscript/code/2353/

Thanks to Adrian Bunk and Andreas Jonsson
2016-10-03 23:26:09 +02:00
hiker
84a3f5d8b2 Fixed compiler warnings. 2016-10-04 08:16:35 +11:00
hiker
9cf88ef874 Merge remote-tracking branch 'origin/master' into rewind.
Fixed conflicts.
2016-10-04 08:15:40 +11:00
hiker
50b1a8cdfb Added some (commented out) code to investigate camera shaking - if it
should happen again.
2016-10-03 18:13:03 +11:00
Benau
21a04213d5 Fix typo 2016-10-03 10:30:06 +08:00
Benau
78e6cfc8db Merge remote-tracking branch 'origin/master' into walldriving 2016-10-03 10:03:12 +08:00
Benau
13eaf82af1 Patch TestAI with changes to SkiddingAI 2016-10-03 10:02:27 +08:00
Benau
e2030dabbc Disable AI debug 2016-10-03 09:54:02 +08:00
Benau
c64c8717a5 Use 16bit integer to save some space in ArenaGraph 2016-10-03 09:28:12 +08:00
auria.mg
6e37c5375a Fix end camera crash 2016-10-02 20:18:40 -04:00
Benau
3f71745d92 Only rescue AI if it's on the ground 2016-10-02 15:04:08 +08:00
Benau
fc94c5e4c4 Change the whole path to avoid bad items 2016-10-02 15:03:09 +08:00
Benau
d3301ff006 Allow battle ai profiling with different track 2016-10-01 12:35:57 +08:00
Benau
c434cb80f4 Significantly improve turning and bad items avoidance for ArenaAI 2016-10-01 07:58:14 +08:00
Benau
62dfef1fb9 Improve performance for findOutOfRoadSector on ArenaGraph 2016-09-30 09:27:44 +08:00
Benau
3c24c73faa Fix unknown sector in arena after rescue 2016-09-30 08:15:36 +08:00
Benau
c22714951c Missed reset before update TrackSector 2016-09-30 00:42:04 +08:00
Benau
d386c76e2d Fix explosion animation on upside down area 2016-09-29 14:37:39 +08:00
Benau
43c40c062e Make m_bb_max and m_bb_min private in Graph again
Avoid setting them in ArenaGraph, let createQuad handle them all
2016-09-29 13:36:50 +08:00
hiker
18b1218312 Oops - made boundary box protected again, it is accessed in the ArenaGraph. 2016-09-29 15:21:59 +10:00
hiker
2e38154bd6 Merge branch 'walldriving' of github.com:supertuxkart/stk-code into walldriving 2016-09-29 15:12:11 +10:00
hiker
0b76a576a3 Exit loop as soon as kart is found to be on one GraphNode. 2016-09-29 15:11:08 +10:00
hiker
fb7b42a625 Fixed compiler warning. 2016-09-29 15:10:51 +10:00
hiker
7f6d800fe7 Made the boundary box private to Graph. 2016-09-29 15:10:26 +10:00
Benau
32f87fa8a9 Fix wrong doxygen comments 2016-09-29 10:19:18 +08:00
Benau
df52922d08 Clean up unused function and wrong comment 2016-09-29 09:57:38 +08:00
Benau
100c23b3c0 Move TrackSector to WorldWithRank 2016-09-28 13:48:32 +08:00
Benau
3d89d5adc6 Make OverWorld be derived from World 2016-09-28 11:24:04 +08:00
Benau
7867a30276 Allow auto-rescue for ArenaAI if off road for some times 2016-09-28 09:59:33 +08:00
Benau
ff52d91372 Improve SoccerAi front point handling 2016-09-27 16:24:38 +08:00
Benau
e26920e479 Improved skidding when closing to item or kart as target 2016-09-27 15:30:31 +08:00
Benau
3030b679df Clean up ArenaAI 2016-09-27 12:38:36 +08:00
hiker
a58cef4701 Smoothing the speed of a kart (necessary to reduce camera stutter)
results in difficult to reproduce physics. So maintain two speed
values: smoothed (for camera), and 'normal' (for everything else).
2016-09-27 08:42:05 +10:00
deve
cabc696710 Fixed compilation with cmake 3.6 2016-09-26 11:28:19 +02:00
Benau
6f67fd6507 Make swatter be able to swat in any direction 2016-09-26 12:46:44 +08:00
Benau
1260f23db0 Try to fix animation
Don't create a new one after the previous one just got deleted
2016-09-26 11:32:19 +08:00
Benau
9be31ba57b Fix build 2016-09-26 10:25:38 +08:00
Benau
2701af315b Try to make checkCrashes work in any direction 2016-09-26 10:09:53 +08:00
hiker
81004adb90 Moved all m_speed handling into a seperate function. 2016-09-26 09:28:28 +10:00
hiker
a6568e01ea Propperly handle instand speed increases in the physics when rewinding. 2016-09-26 09:01:18 +10:00
Benau
3659ad9068 Try to make determineTurnRadius works with any plane 2016-09-26 00:11:49 +08:00
Benau
bff7154e03 Simplify code and fix typo
Because AI always aims quad center now even for 3d quads
2016-09-25 11:22:15 +08:00
Benau
123e667ab4 Simplify code 2016-09-24 10:05:15 +08:00
deve
1a3daafbff Fixed exit on startup when force legacy device is set in graphics restrictions.
It was working on Linux, but on Windows we need to clear system messages when closing irrlicht device.
2016-09-23 10:22:56 +02:00
hiker
74f521980a Fixed time handling to be in synch between history and rewind. 2016-09-23 07:56:21 +10:00
Benau
111fc297d5 Fix overworld crash 2016-09-23 00:15:04 +08:00
hiker
25a457f88f Moved m_speed computation, so that the correct speed was computed
when the engine force (which is speed dependent) is used.
2016-09-22 08:57:37 +10:00
hiker
f0b5f41fc7 Added info message in case of rewinding. 2016-09-21 17:33:37 +10:00
hiker
1651d28a4c In case of history replay update dt earlier so that World is updated
with the replay dt value.
2016-09-21 17:31:24 +10:00
hiker
15660f2d7a Bugfixes: update MaxSpeed(dt=0) (which updates additional engine power
and slowdowns correctly). Call proceedToTransform after updating
the velocities (which are read).
2016-09-21 17:28:26 +10:00
hiker
f09ed569cc Bugfix: kart rewinder stored incorrect bullet zipper speed. 2016-09-21 17:27:08 +10:00
hiker
8ceb85ef14 Merge branch 'konstin-doc' 2016-09-21 09:13:04 +10:00
hiker
ec3dd221a2 Merge branch 'doc' of https://github.com/konstin/stk-code into konstin-doc 2016-09-21 09:12:32 +10:00
hiker
cf3f75c6e3 Moved SVN-CONFIG file to assets (subversion) repo. 2016-09-21 09:10:07 +10:00
hiker
3ccbeff180 Removed exec permission. 2016-09-21 09:07:06 +10:00
fHachenberg
a82f36d61d Fixes issue #2065
Changes applied:

 *symbol files added
 *LabelWidget removed from SkillLevelWidget and replaced by IconButtonWidget
  Subsequently variables and method containing Label or Text renamed
  setSize method was rewritten
 *Unused property "m_label_name" removed from SkillLevelWidget
 *Substitution label->icon also introduced renamings in KartStatsWidget.
  For instance, setDisplayText is now named setDisplayIcons
2016-09-20 14:01:02 +02:00
Benau
54bf37c09b Make camera works better in upside down area 2016-09-20 10:51:51 +08:00
Deve
a1e2764263 Merge pull request #2636 from SuicSoft/patch-1
Fix typo in main_loop.cpp
2016-09-19 11:38:16 +02:00
Suici Doga
1d75987fe6 Fix typo in main_loop.cpp 2016-09-19 13:54:42 +05:30
Benau
36eca8bc55 Avoid setting gravity in btKart 2016-09-19 11:18:16 +08:00
Benau
8a0a9b2617 Allow showing 3D quad in track debug better 2016-09-19 08:49:59 +08:00
Benau
3187c7e0f9 Allow referee showing on upside down starting position 2016-09-18 13:54:00 +08:00
Benau
ffd497276b Fix kart flying 2016-09-18 12:38:36 +08:00
Benau
b137dbb71c Set gravity inside btKart, allowing starting upside down in arena 2016-09-18 10:53:58 +08:00
Benau
eeac5668d9 Rename QuadGraph to DriveGraph, make it use the new Graph interface 2016-09-17 14:30:28 +08:00
Deve
f2d354d759 Fixed graphics restrictions on android 2016-09-17 03:55:50 +02:00
Deve
852cc068d3 Restore SSAO on linux with GLES renderer. 2016-09-17 03:55:50 +02:00
Deve
21d62ed405 Check availability of color buffer float extension in GLES renderer 2016-09-17 03:55:50 +02:00
Deve
d05cff09c8 Add a graphics restriction for BGRA format on android.
It causes issues with particles transparency.
2016-09-17 03:55:50 +02:00
Benau
606a5401d3 Allow starting position on an upside down surface in arena
Todo: referee and make btKart cast ray at correct normal
2016-09-17 09:53:44 +08:00
Benau
a0005d57e9 Bugfix and better error handling in ArenaGraph 2016-09-16 12:21:38 +08:00
Benau
20e85aa781 Port all function from battle graph to new graph interface 2016-09-16 11:08:19 +08:00
Benau
fff0bab42a Merge remote-tracking branch 'origin/master' into walldriving 2016-09-16 09:23:18 +08:00
Benau
05d2d05f2a Make ArenaAI use only new graph interface 2016-09-16 09:22:57 +08:00
auria.mg
7c2642d427 Workaround crash 2016-09-15 21:12:01 -04:00
auria.mg
6a94d12a11 Update credits 2016-09-15 20:05:06 -04:00
auria.mg
f2bf4eb549 Add new soccer ball icons 2016-09-15 20:00:00 -04:00
Benau
1491236e84 Allow TrackSector to use with new graph class 2016-09-15 15:47:17 +08:00
Benau
05ad91c701 Port all function from battle graph to arena graph
Todo: AI and worlds
2016-09-15 13:29:26 +08:00
Benau
483dca3754 Make EndController to use length() 2016-09-15 12:40:58 +08:00
Benau
8c830bdabf Inital work on one graph interface 2016-09-15 11:46:31 +08:00
Benau
061f187142 Make slipstream work in upside down track 2016-09-13 15:07:07 +08:00
Benau
4574686c1d Make angle computation work in 3D 2016-09-13 12:49:30 +08:00
Benau
3f86722181 Fix skid mark on wall surface 2016-09-13 11:48:36 +08:00
Benau
382905716f Simplify code 2016-09-13 09:26:05 +08:00
hiker
457cb700d2 Make rewind work with history replay (when replaying kart controls),
which allows to have reproducible test cases.
2016-09-13 09:58:42 +10:00
hiker
f8b48a0313 Added zipper speed to state of kart. 2016-09-13 09:55:51 +10:00
Benau
f5d43aaa2e Use btAsin in setHPR
The following quaternion calculated by shortestArcQuat in
rescue animation leads to nan in asinf:

0.710828841, -0.00974362344, -0.703500867, 0.00481829932
-2.0f * (X * Z - Y * W) equals 1.00004351 with above figures

With btAsin it will:
if (x<btScalar(-1)) x=btScalar(-1);
if (x>btScalar(1)) x=btScalar(1);
return asin(x);
2016-09-13 07:43:19 +08:00
Deve
3a9b2b9872 Fixed advanced lighting on android 2016-09-12 21:43:31 +02:00
Benau
b699018879 Only do custom direction of raycast if item is on quad graph 2016-09-12 13:04:05 +08:00
Benau
7544dc3315 Fix uninitialized value 2016-09-12 11:35:34 +08:00
Benau
cc54c44ec0 Fix rotation of items on upside down surface 2016-09-12 10:43:49 +08:00
Benau
f4861a6279 Fix bubblegum on upside down track 2016-09-12 09:33:05 +08:00
Deve
b0c0af8c46 Check if drivers support BGRA texture format and fallback to RGBA 2016-09-11 22:35:54 +02:00
Benau
f687454313 Fix item positioning on Node3D 2016-09-11 16:31:57 +08:00
Benau
ba047a4f99 Keep flying karts parallel to the ground in the physics, not outside
Like 44da1fb4f2, but takes terrain
into account
2016-09-11 15:35:42 +08:00
Benau
2415340cae Try to fix too bouncy bowling ball 2016-09-11 10:07:43 +08:00
Benau
c37f75bf90 Improve item projection on upside down surface 2016-09-10 16:09:21 +08:00
Benau
b3d5e58dd1 Revert enable sliding for upside down tracks.
Actually !getMaterial()->highTireAdhesion() is always false for
upside down texture, so the below code was useless to test with
normal
2016-09-10 14:32:55 +08:00
Benau
7cfd9752d0 Fix restarting the race when karts are up-side-down 2016-09-10 11:11:52 +08:00
Benau
fde9ccd53e Move updateTerrainInfo to a better location 2016-09-10 11:09:52 +08:00
Deve
fb1c049906 Fixed skybox in GLES renderer 2016-09-10 00:17:47 +02:00
Deve
37f3a8e19e Fixed RTTs formats in GLES renderer.
The problem is that textures with float internal formats can be used in framebuffers only when some extensions are available. This is a basic functionality and we need something that is supported on all drivers. As far as I tested, the basic integer GL_RGBA8 format works fine.

Another problem is with GL_BGRA format. The extension with GL_BGRA support is available for almost every device and irrlicht is able to load all textures from files (it has a fallback mode anyway), but when it's used as a texture for framebuffer, it produces a black screen. Again it works fine with GL_RGBA format.

The only issue that is not fixed is SSAO rendering. It uses linear depth rtt, which has GL_R32F type and which can't be easily changed to something other. I disabled SSAO for now, because it is too slow for embedded devices anyway.

I didn't change anything in original OpenGL 3.x rendering, so everything should work as before.
2016-09-09 23:56:22 +02:00
Deve
278d985632 Disable rtt that is not used in GLES renderer anyway 2016-09-09 22:23:01 +02:00
Benau
ceb92f9b4a Try to completely fix rescue issue 2016-09-10 01:20:11 +08:00
Benau
4f67567834 Fix the up vector 2016-09-09 19:48:11 +08:00
Benau
ca4640716a Fix findOutOfRoadSector with Node3D 2016-09-09 16:30:35 +08:00
Benau
505b50da0c Make getNode return pointer. (easier with dynamic_cast later) 2016-09-09 16:14:28 +08:00
Benau
9d65e2047c Fix heading (which got overwriten by merge) 2016-09-09 12:46:42 +08:00
hiker
876ba33876 Added state saving for skidding. 2016-09-09 13:38:39 +10:00
hiker
e1af0cc353 Fixed various bugs in max speed state saving. 2016-09-09 13:36:49 +10:00
Deve
f2d1eb7117 Use high precision floating point variables if possible.
On desktop medium and high precision is generally the same, at least for mesa drivers. But on some Android devices medium precision is much worse, which causes artifacts. We need high precision float variables in vertex shaders for proper scene rendering. Setting different precision for fragment and vertex shaders seems to be not possible, so we just set it to high for both shader types when it's available.
2016-09-07 22:43:11 +02:00
hiker
3a367ce989 For debugging: instead of specifying the time to go back, specify the
time to go back to.
2016-09-07 08:46:46 +10:00
hiker
6245cea609 Added MaxSpeed to saved state of each kart. 2016-09-07 08:15:09 +10:00
hiker
7d7b98564f Fixed speed smoothing factor (which hopefully fixes the shaking camera). 2016-09-05 17:54:45 +10:00
hiker
77ae30a0c5 Avoid compiler warning. 2016-09-05 09:59:29 +10:00
hiker
1860edca4e Save startup-boost information in state. 2016-09-05 08:14:51 +10:00
hiker
a563266988 Made the KartRewinder to be a kart (which gives it easier access to
some of the kart attributes that need to be saved).
2016-09-05 08:00:21 +10:00
Benau
262eb40dfe Allow showing yellow (2d) / green (3d) quads in track debug 2016-09-04 14:33:23 +08:00
Benau
9d41f4b429 Add assert check for graph.xml 2016-09-04 13:15:51 +08:00
Benau
23a49d5245 Merge remote-tracking branch 'origin/master' into walldriving 2016-09-04 11:56:28 +08:00
Benau
21dc569f70 Start to clean up quad and graph node 2016-09-04 11:56:03 +08:00
Benau
78baaff23e Fix crash in profile mode 2016-09-03 23:03:14 +00:00
hiker
b91ecc9754 Use exponential smoothing for speed, to further reduce stuttering
in speed (and therefore camera).
2016-09-01 15:52:26 +10:00
hiker
f89aaa67f5 Reduce (admittedly very minor) camera jitter by computing the speed
of a kart after it was capped by max speed.
2016-09-01 09:54:09 +10:00
Deve
29eda8a206 Merge pull request #2620 from LoadingPleaseWait/tiny-typo
Fix CPU marker typo
2016-08-31 22:57:00 +02:00
LoadingPleaseWait
3dc13eb071 Fix CPU marker typo 2016-08-31 15:36:15 -05:00
hiker
2a06036fb7 Changed order in which rendering and various updates are done, which
results in the physics reacting one frame earlier to user input.
2016-08-31 16:31:59 +10:00
hiker
ce91d6c2b4 Bugfix (saved incorrect variable). 2016-08-31 16:27:05 +10:00
deve
6c9050f47a Merge branch 'master' of https://github.com/supertuxkart/stk-code 2016-08-26 10:36:09 +02:00
deve
5abc047b0c Declare precision also in vertex shaders in GLES renderer.
Some drivers complain that it was declared only in fragment shaders.
2016-08-26 10:35:48 +02:00
Benau
35ce9a39ce Merge branch 'master' into walldriving 2016-08-26 15:36:57 +08:00
auria.mg
061323ffb0 Add information for translators 2016-08-23 20:01:06 -04:00
auria.mg
a07a8b6516 Fix XML files and regenerate strings 2016-08-23 19:53:41 -04:00
Aapo Rantalainen
38e5799167 Four help?.stkgui -files were treated as binary by git (#2612) 2016-08-23 19:36:16 -04:00
konstin
138daf57a4 Move credits file back 2016-08-23 11:07:13 +02:00
konstin
4ce6fb04ea Remove unused documentation and tool files 2016-08-23 01:58:53 +02:00
konstin
fb226a717f Proper building instructions in the readme 2016-08-23 01:51:27 +02:00
Deve
7f4d815dde Request GLES 3.0 context and fallback to 2.0 if not available. 2016-08-22 20:05:36 +02:00
hiker
e6b2c0f1a0 Fised neniry leak. 2016-08-22 18:08:51 +10:00
hiker
75e1f1c82b Bugfix, wrong variable type. 2016-08-22 18:06:26 +10:00
hiker
8f068c4ff0 Somewhat reduced debug output. 2016-08-22 18:05:14 +10:00
hiker
e62948499f Fixed compiler warning. 2016-08-22 18:04:06 +10:00
Deve
ed5a957a64 Fixed typo in config.xml 2016-08-20 23:39:31 +02:00
Deve
790634a914 Use proper size for RSM framebuffer when scale rtts parameter is set.
It looks that only RSM visualization was affected.
2016-08-20 23:34:12 +02:00
Deve
a4dfbc552f Fixed also minimap in overworld with scale rtts parameter 2016-08-20 22:47:53 +02:00
Deve
150e40e4e8 Break the loop with glClientWaitSync also when GL_CONDITION_SATISFIED is returned.
The GL_CONDITION_SATISFIED says that the sync was signaled before the timeout expired. In this case there is no reason to make another glClientWaitSync execution.
2016-08-20 09:31:29 +02:00
Deve
d5fe015ba7 Fixed typo in previous commit. 2016-08-20 08:35:08 +02:00
Deve
a001505abd Set ForceLegacyDevice for intel ironlake and for old radeon drivers.
This hopefully will allow to run STK with these graphics cards and drivers.
2016-08-20 08:13:17 +02:00
Deve
c7d970b745 Allow to set ForceLegacyDevice in graphics restrictions 2016-08-20 08:13:17 +02:00
Benau
91e11a8d88 Don't crash in overworld 2016-08-20 09:01:52 +08:00
Alpt
67e94e73ce In the addons screen, show a tip to remember that the Internet connection is disabled. (Issue #1763). (#2605) 2016-08-19 18:28:59 -04:00
hiker
e7803fe1ab Don't use intermediate states when replaying (only the original state),
since the states after the original are potentially incorrect (due to
the (later) insertion of an event that triggers the rewind).
Rewinds are now much more different than previously ... wip.
2016-08-19 16:38:49 +10:00
Elderme
41cd1e0364 merged with master 2016-08-18 22:36:19 +02:00
Benau
a1c09c4adb Fix potential crash 2016-08-18 15:34:58 +08:00
Benau
6b0fe9dd89 Clean up:
Try to use forward enum declaration for KartRenderType

NoCopy for RenderInfo
2016-08-18 11:15:05 +08:00
hiker
3d5de1c24c Fixed saving kart control events (they stored the previous value, not
the new value).
2016-08-17 17:54:26 +10:00
Benau
fa39de691e Fix Release build 2016-08-17 12:08:20 +08:00
Benau
f07452842d Add support for colorizing library objects using material.xml only 2016-08-17 11:57:18 +08:00
Michael Murphey
d213bef9db Place buttons in confirm dialog horizontally (#2573)
* Place buttons in confirm dialog horizontally closes #2548

* Use RibbonWidget for MessageDialog

* Use buttonbar for confirm dialog
2016-08-16 19:08:45 -04:00
hiker
adba5c48c8 Fix commented out code to use setter/getter in KartControl. 2016-08-17 08:32:11 +10:00
hiker
e56d324738 Moved the kart control events from the kart control class instead
of the kart rewinder.
2016-08-17 08:08:42 +10:00
Deve
489c34edbf Fixed minimap with scale_rtts_factor parameter 2016-08-16 23:59:36 +02:00
auria.mg
084fa04012 Merge branch 'master' of https://github.com/supertuxkart/stk-code 2016-08-15 20:33:11 -04:00
auria.mg
63a82c915c Bugfix: prevent activating disabled ribbon items 2016-08-15 20:33:06 -04:00
hiker
7c899c943c Refactored KartControl to use setters/getters instead of
just public variables.
2016-08-15 17:26:07 +10:00
Deve
bd6ad544cc Fixed bloom with scale_rtts_factor parameter. 2016-08-15 08:46:02 +02:00
Deve
26d2bf847c Allow to use non-hd textures in OpenGL ES renderer 2016-08-13 00:01:08 +02:00
Deve
b23f39f1cd Fixed non-hd textures in legacy pipeline 2016-08-12 23:51:29 +02:00
Deve
08202f2fa8 Remove USE_XRANDR flag from cmake.
Our vidmode code is old, has some bugs (eg. resolution is not restored properly in some cases), doesn't have multi monitor support and IMO shouldn't be used in current state.

If someone really wants to use it, the flags can be set directly in IrrCompileConfig.h.
2016-08-12 23:39:12 +02:00
Deve
d320df749f Allow to set max texture size in config file.
It gives much lower memory usage when it's set for example to 128.
2016-08-12 23:30:10 +02:00
Deve
1481da9718 Fixed button icons with non-hd textures and low MAX_TEXTURE_SIZE parameter 2016-08-12 20:51:19 +02:00
Benau
c5446c4cf1 Remove unused header 2016-08-12 10:41:07 +08:00
Benau
c71b24f98f Correct fixes to #2599 2016-08-12 09:41:08 +08:00
Benau
aa15b0070e Determine the texture size of bold face smartly 2016-08-12 08:31:52 +08:00
Benau
2d95df1722 Update appdata file to latest standard 2016-08-12 00:48:57 +08:00
hiker
239881ef5e Refactored event handling, so that now not only Rewinder objects
can store events. This allows e.g. a 'new attachment' event to
be handled entirely in the attachment class, not in the kart
rewinder anymore.
2016-08-11 17:16:54 +10:00
Deve
5cfed1bc1c Allow to set lower RTTs resolution.
It allows to increase performance on devices that have only one available resolution.

It also allows to draw GUI elements in full resolution while rendering the scene with slightly lower resolution, which gives you few additional FPS.

Note that particles don't work as expected yet with this feature.
2016-08-11 02:04:35 +02:00
hiker
e621e93f4c Updated comments. 2016-08-10 08:35:23 +10:00
hiker
eaf21fe2f8 Replaced #include in kart.hpp to reduce dependencies; some coding style fixes. 2016-08-10 08:21:37 +10:00
hiker
7c598df8d1 Save powerup state in kart status. 2016-08-09 17:46:06 +10:00
hiker
f4f2f11943 Fix crash in case the same event is replayed more than once. 2016-08-09 17:39:20 +10:00
hiker
a5ce27caa5 Added events for new attachments. 2016-08-09 17:16:45 +10:00
hiker
5f6c954c5a Added documentation. 2016-08-08 18:10:30 +10:00
hiker
5da96cf9d0 Fixed documentation and usage of ATTACHMENT_NOLOKS_SWATTER (which is
never an actual attachment value, even nolok has 'ATTACHMENT_SWATTER'
set).
2016-08-08 17:57:15 +10:00
hiker
f341cd1440 Optimised rewind of attachments (avoid creating new attachments
when the attachment was not changed).
2016-08-08 17:46:52 +10:00
hiker
c01f838b0f Merge remote-tracking branch 'origin/master' into rewind 2016-08-08 14:34:24 +10:00
Benau
15a2526971 Merge branch 'fix_graph' 2016-08-08 08:56:05 +08:00
hiker
b3f932a0e3 Renamed getState to saveState, and added support for saving a kart's
attachmend in a state.
2016-08-08 10:33:12 +10:00
MTres19
8e8433f08c Credit where credit is due (#2593)
* Give GeekPenguinBR and TuxKartDriver credit

* Give credit to samuncle and konstin
2016-08-05 19:12:52 -04:00
hiker
40697ab5f7 Bugfix for rewind: previously for a floating point value f add(f)
would actually call add(Vec3(f)), which adds a vector (f,f,f).
2016-08-05 17:22:04 +10:00
hiker
e039eb59c9 Added more fields to debug output. 2016-08-05 17:21:17 +10:00
hiker
05db7c1481 Use BareNetworkString for storing states and events. 2016-08-04 23:17:16 +10:00
Elderme
6f78f5b9b9 Fixed GLES 2016-08-04 14:36:35 +02:00
hiker
1025e25846 Refactored RewindInfo into astand-alone class/file with separate
classes for time, event, and states.
2016-08-03 17:48:38 +10:00
Benau
10937333a1 Remove duplicated code in navmesh 2016-08-03 12:37:48 +08:00
hiker
3eb94e023d Fixed error in rewind when only event but no state information
was available at chosen rewind-to time.
2016-08-02 21:24:10 +10:00
hiker
9f0529f26f Merge branch 'master' of https://github.com/supertuxkart/stk-code 2016-08-01 08:42:09 +10:00
hiker
a15c9529a5 Merge remote-tracking branch 'origin/master' into rewind 2016-08-01 08:18:38 +10:00
hiker
cdde62dadb Further tweaked restitution for track and bowling ball to avoid
bowling balls jumping up and down, while still maintaining a push
back for soccer balls.
2016-08-01 08:00:14 +10:00
auria.mg
ea939459e8 Improve string as suggested on transifex 2016-07-30 21:51:31 -04:00
Benau
6904402547 Fix wrong RTL text in arena screen 2016-07-31 09:04:10 +08:00
auria.mg
9a740311bf Merge branch 'master' of https://github.com/supertuxkart/stk-code
# Conflicts:
#	src/challenges/challenge_data.cpp
2016-07-30 20:53:37 -04:00
auria.mg
40ab343922 Fix string remaining in wrong language when changing language 2016-07-30 20:52:32 -04:00
Benau
788f168c7f Fix space before colon 2016-07-31 08:04:16 +08:00
auria.mg
b69faff13d Fix indentation (tabs/spaces) 2016-07-30 19:46:15 -04:00
auria.mg
347f977ea7 Fix english string, as reported a while ago but couldn't fix then due to string freeze 2016-07-30 19:44:21 -04:00
auria.mg
a318e3b216 Log out user when deactivating internet connection, fixes #2589 2016-07-30 19:43:48 -04:00
Elderme
a3c78a7245 Fixed polycount in kart selection screen 2016-07-30 11:31:23 +02:00
Benau
637e468f18 Use uniform copyright header for source 2016-07-29 11:50:37 +08:00
hiker
efe9fa6329 Merge branch 'master' of https://github.com/supertuxkart/stk-code 2016-07-29 09:54:25 +10:00
hiker
8f7d47d3c3 Fix ball-track collision (which should also improve kart-track
collision).
2016-07-29 09:53:37 +10:00
qwertychouskie
611e70ac83 Show boost at startup (#2586)
* Show boost at startup

* Fix https://github.com/supertuxkart/stk-code/pull/2586#issuecomment-235765919
2016-07-28 19:24:42 -04:00
hiker
aba8d8d1f0 Merge branch 'master' of https://github.com/supertuxkart/stk-code 2016-07-28 16:30:48 +10:00
hiker
83117fe649 Fixed wheel position in case of a rescue: if the suspension of
a wheel is stretched at the time a rescue or explosion is triggered,
the wheel will appear to be very far away from the kart (not connected
anymore).
2016-07-28 09:47:56 +10:00
qwertychouskie
277a4b9262 Fix #2542. Also update copyright year. (#2585)
* Fix #2542.  Also update copyright year.

* Update header
2016-07-27 18:31:39 -04:00
hiker
6ca0eed28f Added debug option to trigger a kart explosion in debug mode. 2016-07-27 17:34:59 +10:00
Benau
bc5e2f3e29 Add unit testing for fonts for translation 2016-07-27 11:48:38 +08:00
hiker
b1a7c01b6e Merge branch 'master' of https://github.com/supertuxkart/stk-code 2016-07-27 08:59:02 +10:00
hiker
6d0ad4a4fe Fixed compiler warning. 2016-07-27 08:26:41 +10:00
hiker
0db2a195b6 Fixed compiler warning. 2016-07-27 07:54:54 +10:00
Elderme
a21d7b4b71 Merge branch 'master' into renderer_refactoring 2016-07-26 22:16:48 +02:00
Elderme
7812965d37 Fixed issue with colorization (mistake when merging) 2016-07-26 22:04:57 +02:00
Elderme
cd1b9a66a0 Merged master in branch 2016-07-26 21:31:52 +02:00
hiker
f69d04edd3 Fixed STUN protocol (#fixed #2566). 2016-07-27 00:42:51 +10:00
Benau
cefead119a Try to use c++11 typeid for getFont 2016-07-26 08:04:12 +08:00
Deve
29185f679b Merge pull request #2581 from qwertychouskie/patch-7
Update deps from INSTALL.md
2016-07-25 11:51:31 +02:00
hiker
ba3497bb81 Properly set the camera type in the constructor (which previously
was always 'CM_TYPE_NORMAL'). Fixes #2576.
2016-07-25 17:45:24 +10:00
Benau
8c38e9e79b Merge remote-tracking branch 'origin/fix_timer' 2016-07-25 14:46:58 +08:00
hiker
c64733e3d0 Merge branch 'dijkstra-test' 2016-07-25 16:42:24 +10:00
Benau
5a7f3caefd Fix the rest non-working timer-related function 2016-07-25 13:48:41 +08:00
Benau
d9e0d0d458 Fix #2580 2016-07-25 10:18:11 +08:00
hiker
7e91642eb7 Merge branch 'master' into dijkstra-test 2016-07-25 08:37:48 +10:00
hiker
7196ddfba8 The unit test for battle graph detects incorrect parents for some
(other) arenas. Those are false positives (often there is more
than one shortest path, all with the same length; e.g. in case of
a regular gridded section). Added more details in error reporting
to help in debugging, but generally disabled the test for identical
paths, only the actual path length is tested now.
2016-07-25 08:11:56 +10:00
Benau
6a4fe397d4 Thanks devnexen for spotting this out 2016-07-24 15:56:02 +08:00
Deve
91b41272d9 Merge pull request #2579 from qwertychouskie/patch-6
Update links
2016-07-24 08:10:26 +02:00
Benau
236c9c44a8 Minor improvements for font 2016-07-24 09:56:46 +08:00
qwertychouskie
3d3b7a7de7 Update deps from INSTALL.md
(and put them in alphabetical order.)
2016-07-23 16:12:59 -07:00
qwertychouskie
42b80d5e9c Update link 2016-07-23 14:23:36 -07:00
qwertychouskie
94440645a0 Update link 2016-07-23 14:22:03 -07:00
qwertychouskie
178fbbfefa Merge pull request #1 from qwertychouskie/patch-7
Update link
2016-07-23 14:19:07 -07:00
qwertychouskie
493030ba9c Update link 2016-07-23 14:17:30 -07:00
qwertychouskie
9cbf8a0641 Update link 2016-07-23 14:16:09 -07:00
Benau
5b4d8e1f8a Remove old font settings 2016-07-23 10:48:48 +08:00
Rob Clark
ce38df268b couple small performance optimizations (#2578)
* pass timeout to driver, rather than unconditional 1ms sleep

This way if the fence is signalled earlier, we can get on with life
sooner.

* optimize displacement bind/clear/render

Stop thrashing render targets, and group things together into single
render-passes.  And only bind/clear if we will actually draw.
2016-07-22 20:29:42 -04:00
hiker
2654705da1 Fixed linux compilation. 2016-07-22 11:50:41 +10:00
hiker
78fa5f08b6 Merge branch 'master' into dijkstra-test 2016-07-22 11:46:45 +10:00
hiker
9fcb55aac3 Use Dijkstra instead of Floy-Warshall for computing the paths in battle mode
(which is signiccantly faster). Added unit testing for dijksta based on
the F.W. algorithm.
2016-07-22 11:06:32 +10:00
hiker
d6a62a85b7 Removed unnecessary #include. 2016-07-22 09:58:10 +10:00
Benau
744a4705b6 Auto embolden glyph of bold face, without fallback font 2016-07-21 12:26:19 +08:00
hiker
2cfe99827f Merge branch 'master' into dijkstra-test 2016-07-21 09:18:07 +10:00
Benau
a72f67015c Remove 36MB CJK fonts, use the previous font instead 2016-07-20 09:49:10 +08:00
Benau
7f1e776bf6 Fix digit font drawing 2016-07-19 16:47:39 +08:00
Benau
03b92efba5 Fix wrong text alignment 2016-07-19 15:21:14 +08:00
Benau
89976def57 Remove not-used-anymore setReferenceCount 2016-07-19 13:58:38 +08:00
Benau
1079800376 Merge remote-tracking branch 'origin/master' into new_font_engine 2016-07-19 13:15:47 +08:00
Benau
e02a25f8f5 Use bold font for billboard text 2016-07-19 13:13:31 +08:00
Benau
b2ee606e7b Try to use float for dest_ret 2016-07-19 12:25:16 +08:00
Benau
89f06ed8d3 Fix crash with fixed pipeline 2016-07-18 23:56:14 +08:00
Benau
6a319cbed2 Clean up old font code 2016-07-18 23:00:40 +08:00
Benau
05419cd555 Initial work on new font rendering engine 2016-07-18 16:03:11 +08:00
David CARLIER
c890483931 small mem leak in this unit test (#2575) 2016-07-16 18:28:45 -04:00
Benau
9fd6fd2673 Fix crashes when using the uninitialized layer 8 texture 2016-07-15 15:23:17 +08:00
Benau
1d6c7fa60f Remove vector int in RenderInfo 2016-07-15 12:31:00 +08:00
Benau
8408a7c158 Merge remote-tracking branch 'origin/master' into colorful_track_object 2016-07-15 09:27:59 +08:00
Deve
93fc20e275 Merge OpenGL ES renderer branch
It adds support for OpenGL ES renderer, which is needed for Android port and for running STK on other embedded devices such as Raspberry Pi.

Currently it works in two ways:
- Shader-based pipeline, which requires OpenGL ES 3.0 (Android >= 4.3)
- Fallback to irrlicht-based fixed pipeline that needs OpenGL ES 2.0. The fixed pipeline generally works, but it is affected by the same issues as our OpenGL 2.1 fixed pipeline renderer.

I tried to modify our OpenGL renderer as little as possible to avoid regressions. The only one major change is that we are now using the "#stk_include" directive in shaders instead of linking multiple shaders into one program.

Currently it works only on linux. The Android port needs some refactoring. In theory it should be possible to make it working on Windows, but we would need some OpenGL ES SDK, or maybe modified libglew.

At this stage it is playable with current mesa drivers. I tested it on intel graphics card and I didn't notice any issues.

On Android only the OpenGL ES 2.0 renderer with fixed pipeline  has been tested for now.
2016-07-14 20:54:30 +02:00
Deve
eea30b3197 Handle glDebugMessageCallback extension in better way for OpenGL ES 2016-07-14 20:34:43 +02:00
Deve
8f8acdcef3 Remove android related code part2.
Again, it will be handled in different branch and hopefully with curl and sounds support.
2016-07-14 19:50:34 +02:00
Benau
53374176ad First try to support colorization texture mask 2016-07-15 00:53:22 +08:00
Elderme
d7ebde2e68 Do not upload UBO data when UBO are disabled by graphics restriction 2016-07-13 23:19:52 +02:00
auria.mg
1463cf9344 Fix uninitialized variables, fixes #2567 2016-07-12 19:39:44 -04:00
Deve
81b471be1f More proper solution for glDrawElementsBaseVertex function 2016-07-12 23:34:31 +02:00
Deve
32cd942760 Revert "Use function compatible with GLES 3.0 for drawing elements with offset."
This reverts commit 86a1d3a07a.
2016-07-12 22:50:59 +02:00
Deve
131dfb2fc0 Fixed compiler warning 2016-07-12 00:04:46 +02:00
Deve
5601309ae8 Fixed windows compilation 2016-07-12 00:04:37 +02:00
Deve
886382bb54 Merge remote-tracking branch 'origin/master' into gles 2016-07-11 23:43:10 +02:00
Deve
0f7976e5f8 Merge branch 'master' into gles 2016-07-11 23:23:02 +02:00
Deve
01dfd7bc05 More #ifdef's simplifications 2016-07-11 22:55:32 +02:00
Deve
b25a4e874f Remove android related code. It will be handled in different branch. 2016-07-11 22:54:59 +02:00
Benau
19acdad9b4 Replace Ubuntu font with a really free font 2016-07-11 15:52:16 +08:00
Benau
08f2437754 Merge branch 'support_loop_start_music' 2016-07-11 09:09:06 +08:00
Elderme
cc43879308 Tried to fix issue with Intel HD 3000 2016-07-10 22:49:58 +02:00
Deve
3728adf1c5 The gles renderer is currently supported only on linux 2016-07-09 03:03:15 +02:00
Deve
f2d21d2353 Remove GLESv1 renderer because it's not used 2016-07-09 02:59:40 +02:00
Deve
17a0e4fbd8 Fixed an issue with grass shader.
It looks that EMT_TRANSPARENT_ALPHA_CHANNEL_REF wasn't handled at all in irrlicht OpenGL renderer.
2016-07-09 02:50:40 +02:00
Deve
f1effe3208 Revert "Fixed a grass being too dark in some places."
This reverts commit 2b734a9579.
2016-07-09 02:20:06 +02:00
Deve
a67a378c41 Merge pull request #2563 from LoadingPleaseWait/wiimote-string
Add missing space in string for wiimote manager
2016-07-08 22:43:23 +02:00
LoadingPleaseWait
bdd21142bb Add missing space in string for wiimote manager 2016-07-08 15:33:10 -05:00
Benau
b903baf226 Fix crash sound only working once if the timer counts backwards 2016-07-08 23:43:12 +08:00
Benau
98b9aef121 Add support for loop start of music 2016-07-08 13:54:37 +08:00
Deve
fa03185370 Remove extensions that are not used anyway 2016-07-08 01:24:02 +02:00
Deve
44f8290d77 Added gles renderer to the warning about incompatible irrlicht version 2016-07-08 01:02:25 +02:00
Deve
902e6163dc Disable heightmap simulation shader for now 2016-07-08 00:48:20 +02:00
Deve
86a1d3a07a Use function compatible with GLES 3.0 for drawing elements with offset. 2016-07-08 00:20:08 +02:00
Elderme
0630145a5c Fixed rendering issue when switching advanced pipeline on to off in RTT screen 2016-07-07 23:08:31 +02:00
hiker
b2a62c222c Merge branch 'camera-refactor' 2016-07-08 06:47:32 +10:00
hiker
c3e1a67f39 Merge branch 'master' of https://github.com/supertuxkart/stk-code 2016-07-08 06:24:19 +10:00
hiker
c43930dc46 Bugfix: characteristics could not be overwritten in kart.xml files.
First part of #2560.
2016-07-08 06:22:28 +10:00
Deve
2b734a9579 Fixed a grass being too dark in some places.
It seems to be an inconsistency in using sRGB rendering.
2016-07-07 01:52:22 +02:00
Deve
66e76be76d Don't use hardcoded path for irrlicht shaders 2016-07-06 06:37:22 +02:00
qwertychouskie
fbcd0ef495 Update TODO.md (#2531)
* Update TODO.md

* Update link
2016-07-05 19:09:22 -04:00
deve
20e72b2e9d Show better text in old driver popup 2016-07-05 12:18:43 +02:00
deve
e42673c4ac Read mesa version in better way.
It solves the problem with OpenGL ES, because there is one more word in the version string:
OpenGL version string: OpenGL ES 3.0 Mesa 11.2.2
2016-07-05 12:17:40 +02:00
deve
93dde11562 Use proper depth texture 2016-07-05 11:48:43 +02:00
Benau
b6153b6002 Thanks devee for this fix 2016-07-05 17:47:55 +08:00
Benau
04ccadd745 Fix non-linux build 2016-07-05 16:24:59 +08:00
Deve
04d3bfb9a1 Restore previous version of object pass shader.
This one doesn't have sense at all. We should make sure that uniforms are always initialized in c++ code.
2016-07-05 01:10:53 +02:00
Deve
0f318ab1ba Restore checking for framebuffer completion 2016-07-05 00:28:25 +02:00
Deve
4132177132 Fully integrate gles renderer with our irrlicht version. 2016-07-05 00:25:03 +02:00
Ezequiel Garcia
02361a37e8 Minor fixes for issues found while cross-building v2 (#2556)
* irrlicht: Fix harmless typo when setting CMAKE_CXX_FLAGS

The CMAKE_CXX_FLAGS set should be based on previously set
CMAKE_CXX_FLAGS (instead of C flags). This is currently
harmless because CMAKE_CXX_FLAGS is not previously set.

Signed-off-by: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar>

* irrlicht: Get rid of unprefixed cflags

Cross-building requires proper include paths. This commit
removes the unprefixed -I/usr/X11R6/include in irrlicht cflags,
replacing it with a proper CMake module.

Signed-off-by: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar>

* irrlicht: Fix boolean return type for jpeglib's callback

Building on certain toolchains can fail due to returning an integer
instead of TRUE. In any case, only {TRUE,FALSE} should be used
as 'boolean' jpeglib type. Fix this by returning TRUE.

  CImageLoaderJPG.cpp: In static member function 'static boolean
  irr::video::CImageLoaderJPG::fill_input_buffer(j_decompress_ptr)':
  CImageLoaderJPG.cpp:69:9: error: invalid conversion from 'int' to 'boolean'
  [-fpermissive]

Signed-off-by: Romain Naour <romain.naour@smile.fr>
Signed-off-by: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar>
2016-07-03 21:07:53 -04:00
Benau
a0898962a9 Remove hard-coded value for colorization factor 2016-07-04 00:26:25 +08:00
Benau
ffbe06a98c Update with the same type from blender export script 2016-07-03 11:25:50 +08:00
Benau
6b60d866ba Make render info works with instanced rendering
The unordered_map in the past skipped some mesh buffer even its
render_info pointer is different, now the map takes it into account
2016-07-02 11:48:36 +08:00
Benau
ae790e9c62 Fix transparency of ghost karts 2016-07-02 08:59:38 +08:00
Elderme
2da28b22b7 Do not create CommandBuffers when Indirect Instancing Rendering is not available. 2016-07-01 23:15:08 +02:00
Benau
48d94097d6 Add min saturation setting to material class 2016-07-01 23:55:56 +08:00
Benau
f23ec7e7b8 Add more helper function to render info class 2016-07-01 00:39:25 +08:00
Benau
bfd66ebbac Put color change code in a better location 2016-06-30 16:08:59 +08:00
Benau
4c4b4782e0 Fix wrong type 2016-06-30 14:16:12 +08:00
Benau
cda6bd7603 Allow changing kart color on-the-fly in soccer setup screen 2016-06-30 14:12:12 +08:00
Benau
4a2bac1cd5 Merge remote-tracking branch 'origin/master' into render_kart_driver_differently 2016-06-30 11:02:40 +08:00
Benau
a55ab7f707 Fix colorization of wheels and speed weight objects 2016-06-30 11:01:56 +08:00
Benau
5bb2a5cf7e Allow changing kart color on-the-fly 2016-06-30 09:30:52 +08:00
hiker
4feb3350a2 Fix linux release build. 2016-06-30 09:42:50 +10:00
hiker
65af731e66 Merge branch 'master' of https://github.com/supertuxkart/stk-code 2016-06-30 09:22:15 +10:00
hiker
392dd6a5ff Added new installer picture. 2016-06-30 09:21:59 +10:00
hiker
48dbc6c80a Fixed various bugs in kart characteristics: a negative value for
a float now works, also longer computations like 1+2*3 (see unit
testing).
2016-06-30 09:20:24 +10:00
hiker
9efb4da2ec Added unit testing for kart characteristics (failing atm due to
bugs in characteristics).
2016-06-30 09:17:30 +10:00
Deve
9ceab23c5f Apply ssao fix from master 2016-06-30 00:50:33 +02:00
Deve
c07472cf38 Simplify #ifdef's a bit 2016-06-30 00:29:15 +02:00
Deve
742fb309df Totally disable code that needes gles 3.1. 2016-06-29 23:58:45 +02:00
hiker
3d2c2b63c0 Fixed unit testing for network string. 2016-06-30 07:47:35 +10:00
Deve
3ae175e05a Fixed skybox rendering.
The GL_SRGB_ALPHA_EXT and GL_SRGB8_ALPHA8 formats are available in OpenGL ES, but they produce black texture for some reason. The basic GL_RGBA format works fine though.
2016-06-29 22:24:17 +02:00
Deve
961428f04c Increase _IRR_MATERIAL_MAX_TEXTURES_ to 8 2016-06-29 22:18:24 +02:00
qwertychouskie
31b4c86b8f Update links for new site (#2529)
* Update links for new site

* more tweaks to readme.md
2016-06-28 19:02:03 -04:00
qwertychouskie
e8462334ee Update more links (#2530) 2016-06-28 18:27:15 -04:00
Deve
0fb119068b Fixes in more shaders 2016-06-28 21:55:51 +02:00
hiker
59a64625fa Use references instead of copying the string. 2016-06-28 17:43:25 +10:00
hiker
c3f1b53535 Added samuncle's new installer image. 2016-06-28 17:39:43 +10:00
hiker
f6a37b5e99 Simplified Stars constructor, removed unnecessary #include from kart.cpp. 2016-06-28 17:29:32 +10:00
Benau
984553fd33 Merge remote-tracking branch 'origin/master' into render_kart_driver_differently 2016-06-28 14:56:21 +08:00
Benau
22e5c0909c Allow setting color without copying the mesh 2016-06-28 14:55:48 +08:00
David CARLIER
a99d02f366 couple of resource leaks fixes (#2526) 2016-06-27 19:47:56 -04:00
hiker
3c66a02337 Minor code simplification. 2016-06-28 08:01:26 +10:00
Deve
51d3b71ec6 Already working advanced lighting! 2016-06-27 23:24:39 +02:00
Deve
bf54626815 Added missing file 2016-06-27 23:06:48 +02:00
Deve
f73befbe0b Fixed particles 2016-06-27 23:05:25 +02:00
deve
964baad705 Some fixes 2016-06-27 13:39:20 +02:00
deve
d5e30ee41e Port also other shaders to use #stk_include 2016-06-27 13:11:27 +02:00
hiker
8b52831083 Merge branch 'fix-2522' 2016-06-27 18:13:11 +10:00
Benau
892bc490f7 Make shaders run as efficient as possible 2016-06-27 13:49:27 +08:00
Benau
5424d49ce7 Remove an ugly cast 2016-06-27 09:19:40 +08:00
hiker
4faa84a1a7 Merge branch 'master' into fix-2522 2016-06-27 07:49:28 +10:00
hiker
431ed63da2 Improved fix for 2522 by using isStaticOrKinematicObject() function
(instead of accessing the rigid body). This separates collision
and dynamic handling of bullet again.
2016-06-27 07:48:30 +10:00
Deve
f679078e75 Port some basic shaders to use #stk_include.
Already working race with disabled advanced lighting :)
2016-06-26 16:39:34 +02:00
Deve
b27f771318 Fixed compiler warning and remove debug output 2016-06-26 16:38:19 +02:00
Deve
e46905b106 Added #stk_include directive for our shaders.
OpenGL ES doesn't allow to link multiple shaders into one program. We can just join it on our side and compile it as one file instead.
2016-06-26 16:05:05 +02:00
Elderme
896f730827 Fixed isARBBufferStorageUsable function 2016-06-26 11:49:29 +02:00
Deve
9ce190f704 Fixed missing dot in file name 2016-06-26 10:19:34 +02:00
Benau
8bae12e080 Fix potential warning 2016-06-26 15:52:47 +08:00
Benau
8497ad0204 Use a deeper hue 2016-06-26 11:23:17 +08:00
Benau
f1dd7ce06e Remove the arrows in soccer mode if using glsl 2016-06-26 07:53:59 +08:00
Benau
b467d0819d Add a missed shader 2016-06-26 07:16:07 +08:00
Benau
416050a923 Use a more simple way to render red/blue karts 2016-06-26 07:14:11 +08:00
Elderme
12155ef8ee Added draw policy information in the log. 2016-06-25 22:14:14 +02:00
Elderme
4c00d98001 Fixed glow issue when GL_ARB_explicit_attrib_location extension is not available 2016-06-25 20:57:13 +02:00
Deve
c26f7a91d7 Temporarily disabled checking for framebuffer completion 2016-06-25 15:11:52 +02:00
Deve
ce8a1c4e1b Already working GUI in shader-based pipeline 2016-06-25 15:10:53 +02:00
Elderme
80713ec019 Fixed glow color issue when GL_ARB_draw_indirect extension is not available 2016-06-25 14:55:51 +02:00
Benau
7e806fe86f Merge remote-tracking branch 'origin/master' into render_kart_driver_differently 2016-06-25 16:31:08 +08:00
Benau
2f217fd55b Allow render red or blue karts in soccer mode using shader 2016-06-25 16:29:54 +08:00
auria.mg
cecc075e74 Add new improved race end sound 2016-06-24 20:23:00 -04:00
Benau
d0539ebe0c Merge remote-tracking branch 'origin/master' into bfd_crash_report 2016-06-24 09:00:19 +08:00
Benau
aa0edb65dc Use cmake to find libbfd 2016-06-24 08:59:39 +08:00
Deve
d13716a917 Initial linux version.
Currently works only with irrlicht-based renderer because shaders are not ported yet.
2016-06-24 02:47:13 +02:00
auria.mg
f90703beb6 Move hardcoded cutscene FOV to a config file 2016-06-23 19:10:56 -04:00
Odd0002
416edef95d Fix debug build on GCC 5.3.0 2016-06-23 23:10:36 +02:00
Benau
6222ce650f Add optional linux crash reporting with backtrace (using libbfd)
Notice:

To get backtrace too for leak check, you need to
define GET_STACK_TRACE in leak_check.cpp, but will slow down STK
2016-06-23 16:18:17 +08:00
qwertychouskie
c17070209d Fix warning for cards without "Radeon" in string (#2523) 2016-06-21 19:38:44 -04:00
Elderme
9de9d98b8f Restore activated texture to GL_TEXTURE0 before calls to irrlicht rendering functions 2016-06-21 23:02:07 +02:00
hiker
e7fbff6974 Merge branch 'master' of https://github.com/supertuxkart/stk-code 2016-06-21 18:33:43 +10:00
hiker
99e0b677ac Fixed #2499. 2016-06-21 18:33:13 +10:00
hiker
0eb4ca2abd Fix #2522 in case of a sphere, and apply this fix only in case of a
static body to reduce potential incorrect side effects.
2016-06-21 09:53:51 +10:00
hiker
7a95f10cc0 Try to fix #2522 for a puck. 2016-06-21 09:32:14 +10:00
Elderme
c4cb241b62 Added a call to glCheckFramebufferStatus for layered framebuffers 2016-06-20 22:24:12 +02:00
Elderme
863451d91d Merged with master 2016-06-20 21:04:48 +02:00
hiker
0a883f3832 First try to fix #2522 (soccer ball pushed in air). Needs to be tested,
and puck still needs to be done.
2016-06-20 15:10:58 +10:00
Elderme
64a8a9be8c Fixed light issue with legacy OpenGL 2016-06-19 15:36:52 +02:00
Elderme
b359e8f9fd Merged with master, solved conflicts 2016-06-18 19:28:54 +02:00
Deve
14a6f20f5b Merge pull request #2518 from akien-mga/master
Fix double slash in include
2016-06-16 23:04:59 +02:00
Rémi Verschelde
0a042c25a0 Fix double slash in include
Triggers a weird 9 year old RPM bug when extracting
debugging information for the compiled binary:
https://bugzilla.redhat.com/show_bug.cgi?id=304121
2016-06-16 21:27:34 +02:00
Michael Murphey
c849aa3b8d More information in race result GUI (#2516)
* More information in race result GUI

* Fix extra race result GUI information

* Rename displayHighScores()

* Use race_manager->hasModeLaps() and fix clang compile error

* Don't initialize best_lap_time unless the mode has laps
2016-06-15 19:36:37 -04:00
hiker
02f77f315e Merge branch 'master' of https://github.com/supertuxkart/stk-code 2016-06-14 23:02:45 +10:00
hiker
39db063799 Don't include ilk (linker) files, properly remove shortcut to editor. 2016-06-14 23:00:27 +10:00
Benau
143bc2618e Remove a unneeded setting 2016-06-13 09:09:18 +08:00
Benau
d520c4477d Design a way to render kart and driver differently 2016-06-12 16:19:34 +08:00
Benau
1e1093dccc Fix default value of m_angular_damping 2016-06-12 08:09:28 +08:00
Benau
d1d591ca34 Fix compiler warning 2016-06-11 15:58:17 +08:00
Benau
023dbe1968 More statistics in soccer mode profiling 2016-06-11 15:31:58 +08:00
Benau
bbc61480a4 Fix missing white-space 2016-06-10 21:11:55 +08:00
Benau
eaf1486d9c Remove misleading-FPS info in soccer mode profiling
As it will increase with the total polycount of the soccer field.
Now just use total frame elapsed to estimate AI performance.
2016-06-10 20:52:38 +08:00
hiker
321fc09a15 Fixed compiler warning. 2016-06-10 16:02:24 +10:00
hiker
a097c205d2 Merge branch 'master' of https://github.com/supertuxkart/stk-code 2016-06-10 09:31:57 +10:00
hiker
9de6def4cf Fixed missing collision callbacks for e.g. soccer balls. 2016-06-10 09:31:12 +10:00
auriamg
d13015226e Merge pull request #2514 from LoadingPleaseWait/graphical-options
Document graphical configuration command line options
2016-06-09 19:13:08 -04:00
LoadingPleaseWait
95602791cf Document graphical configuration command line options 2016-06-08 22:19:15 -05:00
auriamg
8ead8c21da Merge pull request #2513 from LoadingPleaseWait/master
Toggle graphical options from command line
2016-06-08 20:03:59 -04:00
auria.mg
8e886b796a Improve python script that sets translation authors to be able to process all files at once 2016-06-08 19:54:17 -04:00
LoadingPleaseWait
88dd551229 Toggle graphical options from command line 2016-06-07 23:37:14 -05:00
Benau
d234954e14 Call enterRaceOverState from base class for 3SB too 2016-06-08 08:40:33 +08:00
auria.mg
1469a9e396 Update pot file, slightly breaking string freeze. Sorry about that, better late than never :S 2016-06-07 19:49:33 -04:00
Benau
315ea69020 Call enterRaceOverState from base class in soccer world
Even when profiling
2016-06-07 10:15:07 +08:00
auria.mg
d0e7cdea81 Update changelog 2016-06-06 19:55:59 -04:00
Benau
f4fef6fbf2 Fix #2511 2016-06-05 09:34:30 +08:00
Deve
56c6062a81 One more tweak..... 2016-06-04 00:10:56 +02:00
Deve
d60d9120b4 Define constants in glew cmake file before 'add_library' function.
It was working for me as it was before, but based on this comment: 10488bc79a (commitcomment-17724549) it looks that some cmake versions may ignore definitions that are defined below add_library.
2016-06-03 06:48:46 +02:00
Benau
16e24e6f0b Fix #2498 2016-06-02 08:30:12 +08:00
hiker
d444ab802d Added test-implementation of dijkstra. 2016-06-01 23:51:12 +10:00
Benau
b9311f95a8 Merge remote-tracking branch 'origin/master' into new_path_finding 2016-06-01 08:39:23 +08:00
Benau
020b1822bd Fix warning 2016-06-01 08:39:14 +08:00
Benau
c66df6082d Remove not too useful angle calculation
Fix a bug in reverse position returned
2016-06-01 08:21:35 +08:00
hiker
0f79dcc238 Fixed FreeBSD builds (freebsd installs Freetype etc in /usr/local/lib,
but does not search in that directory for libraries).
2016-05-31 13:43:07 +10:00
Benau
f83407f661 More detailed comments 2016-05-31 00:36:03 +08:00
hiker
70c0038b93 Added backtwards force when reversing. That fixes the problem that a
kart might sometimes get stuck when driving backwards.
2016-05-30 16:59:54 +10:00
Benau
999dee9bce Don't use getDistance from battle graph for kart
As sometimes it will return 0 if kart is on unknown node

Also try to make banana avoidance better
2016-05-30 12:56:14 +08:00
Benau
913bb511b8 Use an improved turn radius determination 2016-05-29 16:31:40 +08:00
auria.mg
b9c1b20209 Update readme file, don't mention version number, we'll forget to update it on every release 2016-05-28 19:26:52 -04:00
auriamg
fd0ca51332 Merge pull request #2507 from adamralph/patch-1
tidy up README
2016-05-28 19:25:59 -04:00
Adam Ralph
6f854ca38d tidy up README 2016-05-28 15:07:33 +02:00
Benau
91b9d13611 Make gift package playable 2016-05-28 00:33:06 +08:00
Deve
cc92ee6ef3 One more tweak in SSAO.
Just use mod(x, 6.283185307179586) as suggested by mesa developer, instead converting it to degrees and back to radians.
2016-05-26 11:48:57 +02:00
Deve
cee0de3af3 Fixed a bug in my previous commit.
I forgot that sin and cos functions want angle value in radians.
Now the code looks a bit ugly, but generates proper values.
2016-05-26 02:39:35 +02:00
Benau
0c254dfa5d Try to make AI work like zidane 2016-05-26 08:24:45 +08:00
Deve
cdae595724 Fixed SSAO on intel.
In ssao.frag we are computing theta valaue and it looks that intel driver doesn't like too big values for sinus and cosinus computations.

I just used modulo 360 to store lower angle values in theta variable.
2016-05-25 23:16:01 +02:00
hiker
3ec56386df Merge branch 'master' of https://github.com/supertuxkart/stk-code 2016-05-25 21:35:17 +10:00
hiker
566df3dee6 Made more physics parameters for objects adjustable in the xml file
(for now to support a puck).
2016-05-25 17:21:31 +10:00
Deve
396bbd0199 Fixed an error message when unlocking texture in spherical harmonics.
On some tracks it was reporting following message:
[warn   ] GLWrap: OpenGL debug callback - API
[warn   ] GLWrap:     Error type : ERROR
[warn   ] GLWrap:     Severity : HIGH
[warn   ] GLWrap:     Message : GL_INVALID_VALUE error generated. Size and/or offset out of range.

This fixes #2504
2016-05-24 18:59:51 +02:00
Benau
221a757942 Merge branch 'arena_ai_profiling' 2016-05-24 15:52:32 +08:00
Benau
63a3b50bb7 More details on profiling 2016-05-24 15:50:34 +08:00
Benau
f4e297c415 Merge branch 'advanced_soccer_ai' into arena_ai_profiling 2016-05-24 15:49:25 +08:00
Benau
a18c53f4e7 Add more defense 2016-05-24 15:48:38 +08:00
hiker
5f6f1ec448 Merge branch 'master' of https://github.com/supertuxkart/stk-code 2016-05-24 17:37:28 +10:00
Benau
625f403a6c Update CHANGELOG.md 2016-05-24 09:13:29 +08:00
hiker
de7ba54b90 Updated debug outpout (commented out). 2016-05-24 09:19:54 +10:00
Benau
02779e39a9 Merge remote-tracking branch 'origin/advanced_soccer_ai' into arena_ai_profiling 2016-05-21 11:41:02 +08:00
Benau
ae18983655 Fix wrong colon 2016-05-21 11:31:43 +08:00
Deve
41283ad408 Added a check for GL_ARB_explicit_attrib_location extension.
It is enabled by default for OpenGL 3.3, but we need it for some of our shaders in render_geometry.cpp (which are OpenGL >= 3.2) and also for InstancedColorizeShader.
2016-05-20 20:12:34 +02:00
Benau
390f45a9d1 Fix crashes in arena profiling mode
Notice: you need to merge arena_ai_profiling into here to test
2016-05-21 01:11:37 +08:00
Benau
0f9438d824 Use math formula to determine overtake position 2016-05-21 00:37:11 +08:00
hiker
53f9d9d1ba Merge branch 'master' of https://github.com/supertuxkart/stk-code 2016-05-19 13:26:20 +10:00
hiker
92be0c65ad Added support for setting the restitution for physical objects. 2016-05-19 13:25:29 +10:00
auria.mg
6f36bc5b34 Update changelog and credits 2016-05-18 20:01:21 -04:00
auria.mg
2c6e678929 Add new volcano track 2016-05-18 19:57:09 -04:00
Deve
edfc7d285c Fixed shadows and GI for mesa drivers.
The check for GL_ARB_geometry_shader4 doesn't have sense at all because we don't use this extension and our geometry shaders use functionality which is available in core OpenGL 3.2.

The reason that it wasn't working for older mesa versions must be a bug in mesa or maybe missing other functionality (but not GL_ARB_geometry_shader4).

I checked it with mesa 11.2 and current git version and it works fine on intel, nouveau and with software rendering.

It needs some testing because it potentially affects all drivers with OpenGL >= 3.2 on every platform.

If someone could test it with Radeon drivers, I would be really happy to enable it in upcoming release, at least on linux.
2016-05-18 22:19:31 +02:00
Benau
9a815b4e65 Fix x N items font size
It should depend on screen scaling.
2016-05-18 13:03:35 +08:00
Benau
12522cc99f Don't crash if missing texture 2016-05-18 10:05:12 +08:00
Benau
a94fc6c1c3 Fix goal target not updated when going back
Also fix some unitialized value issue
2016-05-18 00:50:29 +08:00
Benau
de8d172c07 Improvements in soccer mode with minimap
1. Larger ball

2. Draw goal line of two teams in minimap
2016-05-17 16:01:27 +08:00
Benau
d2f26fe70d First playable advanced soccer ai 2016-05-16 15:24:05 +08:00
Benau
748051871c Get rid of two more member values 2016-05-16 07:54:03 +08:00
Benau
b5345c8b31 Remove unneeded memeber 2016-05-16 07:19:18 +08:00
Benau
7e8ca70bc6 First version of advanced soccer ai 2016-05-16 00:46:06 +08:00
auria.mg
5b2cb52dc5 Add higher-res icon 2016-05-14 21:15:11 -04:00
Deve
c9f2de8155 Update dependencies for Ubuntu
- use officially supported pkg-config instead of pkgconf replacement
- add zlib library to dependencies
- remove GLU library which is not needed at all since this commit: 60dc171700
- add libgl1-mesa-dev and mesa-common-dev which contains OpenGL headers that we need
- use libcurl-gnutls instead of openssl because it is used by default in Debian/Ubuntu for STK and many other projects.
2016-05-14 23:17:13 +02:00
auriamg
6c2dc56f94 Merge pull request #2494 from qwertychouskie/master
Fix dependencies list for Ubuntu compilation
2016-05-13 18:48:51 -04:00
Deve
10488bc79a Don't link libGLU library.
This should allow to run linux static package even if libglu1-mesa package is not installed. And the utilities from GLU library are not used in STK anyway.
2016-05-12 23:38:56 +02:00
qwertychouskie
2077f4bd5e Remove Autotools 2016-05-12 10:12:08 -07:00
qwertychouskie
12a755f9fe Remove libgl1-mesa-dev
According to http://packages.ubuntu.com, `libglu1-mesa-dev` depends on `libgl1-mesa-dev` for all listed Ubuntu versions.
2016-05-11 18:15:33 -07:00
auria.mg
8fa902a748 Another attempt at fixing camera roll in cutscenes, hopefully the right one this time. See #2483 2016-05-11 20:18:07 -04:00
auria.mg
b84b28b3a7 Undo previous "bugfix", it doesn't work 2016-05-11 19:45:42 -04:00
auria.mg
dc885fbf05 Merge branch 'master' of https://github.com/supertuxkart/stk-code 2016-05-11 19:35:08 -04:00
auria.mg
17f96ac9ef Fix camera roll in cutscenes 2016-05-11 19:35:00 -04:00
qwertychouskie
568ff1e0c2 libgl1-mesa-dev depends on libxxf86vm-dev 2016-05-11 12:08:09 -07:00
qwertychouskie
6bd3e69ddc fix dependencies 2016-05-11 12:05:04 -07:00
hiker
b3d59de288 Merge branch 'master' of https://github.com/supertuxkart/stk-code 2016-05-11 00:04:11 +10:00
hiker
01ce2c32ef Properly fixed #1347. Made a global variable part of the
KartSelection object, to avoid the two instances of the
kart selection screen to interfere with each other. Removed
tearing down the kart selection screen. Also fixed crash
when starting the kart screen after a network kart screen.
2016-05-10 17:27:50 +10:00
Benau
9624d27f59 Try to fix lost control for soccer ai 2016-05-10 08:53:33 +08:00
Deve
58f7424b4f Add a workaround for skybox.
The problem was with shader-based pipeline with disabled "advanced effects" in options.

In this case we don't use RTTs and gl_FragCoord contains values in range of whole window. So fo 2 players we still get gl_FragCoord.y = 0..window_size instead of gl_FragCoord.y = 0..window_size/2.

The easiest way to solve it seems to be modulo it by current viewport size. It should be compatible with advanced pipeline as well as single-player games.

Atm. I'm not sure if this should be applied to 0.9.2 branch. It should work fine, but needs some testing.
2016-05-08 21:39:50 +02:00
Benau
bb01c83d6e Auto-balance the number of AIs
If there are uneven the number of human players in each team
2016-05-08 08:08:57 +08:00
auriamg
1af4853f40 Merge pull request #2489 from qwertychouskie/master
Update screenshots and description
2016-05-07 19:23:01 -04:00
qwertychouskie
87f3609b06 Update screenshots and description 2016-05-06 19:50:57 -07:00
hiker
898cefc91e Merge branch 'master' of https://github.com/supertuxkart/stk-code 2016-05-07 00:20:58 +10:00
hiker
bc418acb05 Fixed second location where the kart/playe rname was used. 2016-05-07 00:16:36 +10:00
Benau
264e5af3ee Fix determineTurnRadius in ArenaAI
Before this function always return nan/inf/too large number of
radius, now this function will calculate the radius of curvature
correctly.
2016-05-06 22:03:01 +08:00
hiker
6c9f3d73b5 Show the name of the player in the grand prix result screen. 2016-05-06 16:47:36 +10:00
hiker
c92f369cdd Allow 0 laps GP in artist debug mode. 2016-05-06 16:47:05 +10:00
Benau
db6ea0e740 Add help for translator 2016-05-06 08:37:05 +08:00
hiker
ef4b200dca Merge branch 'master' of https://github.com/supertuxkart/stk-code 2016-05-06 09:13:50 +10:00
auria.mg
ce6bc4a3fe Document new command-line option 2016-05-05 19:12:27 -04:00
hiker
43c2cb37c9 Use a #define SkiddingAI TestAI in the TestAI to make this file
as close as possible to the SkiddingAI, which makes it easier to
compare the two AIs to find significant differences.
2016-05-06 08:52:46 +10:00
hiker
e8c54bbdcd Use getControllerName instead of hard coded to string, minor
coding style fixes.
2016-05-06 08:52:19 +10:00
hiker
c1bdfabc89 Fixed comment. 2016-05-06 08:25:46 +10:00
hiker
ff561aa679 Fixed steering when avoiding a collision (see 79b3864511
for same patch on skidding ai).
2016-05-06 08:24:45 +10:00
hiker
79b3864511 Fixed incorrect steering direction when trying to avoid a crash. 2016-05-06 08:12:58 +10:00
hiker
ca379d921d Left the comments in, but reset the test ai to be identical to the
skidding ai again.
2016-05-05 18:42:11 +10:00
Benau
bbde4659c1 Allow arena ai profiling 2016-05-05 16:25:54 +08:00
hiker
101611af3e Merge branch 'master' of https://github.com/supertuxkart/stk-code 2016-05-05 12:51:40 +10:00
auria.mg
8496352133 Make it easier to launch cutscenes, see #2482 2016-05-04 19:44:26 -04:00
hiker
45184a0322 Fixed line endings. 2016-05-05 09:40:41 +10:00
hiker
57bbf30d76 Improve new AI performance on math class (and others), but
this makes it worse on some other tracks (xr591, zen).
Maybe we should tweak AI per track?
2016-05-04 17:54:38 +10:00
hiker
f0c35965af Merge branch 'master' of https://github.com/supertuxkart/stk-code 2016-05-04 08:51:01 +10:00
hiker
8c25addda5 Changed item display from "item N x" to "item x N". 2016-05-04 07:52:40 +10:00
Deve
d989ae1d4a Update graphics restrictions for mesa:
- Increase version for sRGB-capable visual workaround because it doesn't look that it will be fixed anytime soon
- Enable compute shaders because it works fine now
- Enable texture compression because it works now too.

Texture compression for intel should work fine also for older versions, but it's hard to say which one version is the first working one.
2016-05-03 21:48:21 +02:00
Deve
62ea873373 Fixed compute shaders on mesa.
It was reporting an error:
[error  ] GLWrap: Error in shader gaussian6h.comp
[error  ] GLWrap: 0:77(1): error: storage qualifiers must come after precise, invariant, interpolation, layout and auxiliary storage qualifiers
2016-05-03 21:48:21 +02:00
hiker
2e6eeb15ea Merge branch 'master' of https://github.com/supertuxkart/stk-code 2016-05-03 21:31:49 +10:00
hiker
a5ba5b0a2a Improved profile statistics somewhat. 2016-05-03 21:31:32 +10:00
hiker
2745e42935 Added a new 'testing ai', which can be started using a command line
option to either test it in play against computer, or in AI against
AI races. Atm the test_ai is nearly identical to the skidding
ai, except for one brake statement that needs to be investigated.
2016-05-03 21:28:11 +10:00
Benau
bf64ce9ec0 Avoid negative square root
Which seems to happen if a kart is going backward
2016-05-03 15:44:44 +08:00
auriamg
a852c9857e Merge pull request #2475 from antoniusriha/support_disable_race_intro_sound
Support disabling race intro sound
2016-05-02 18:58:01 -04:00
Antonius Riha
342b4f299e Delay start for 3s when intro sound is off
To bridge the silence before ready-set-go, the engines are started earlier than normal if intro sound is off.
2016-05-02 21:53:34 +02:00
hiker
c1445386b2 Merge branch 'master' of https://github.com/supertuxkart/stk-code 2016-05-02 22:27:25 +10:00
hiker
8950bc1b6c Added '(beta)' to editor link. 2016-05-02 22:26:53 +10:00
Antonius Riha
d4f1f28070 Support disabling race intro and start sounds 2016-05-02 11:32:04 +02:00
Benau
f8ec241d9a Add isInvulnerable() detection for skidding ai 2016-05-02 12:28:23 +08:00
hiker
56d8f10ef9 Minor code cleanup. 2016-05-02 10:37:37 +10:00
hiker
ec41a7806c Fixed setting colour of (debug) spheres added. 2016-05-02 09:58:01 +10:00
hiker
24d298b743 Merge branch 'master' of https://github.com/supertuxkart/stk-code 2016-05-01 23:14:58 +10:00
hiker
f17abe4095 Updated visual studio redistributable to the latest version (14.0.23026). 2016-05-01 23:13:53 +10:00
Benau
c096503860 Fix swatter on bubblegum shield decreasing a life in battle mode
Also let the AIs be able to protect itself using bubblegum shield
when a kart nearby is using a swatter
2016-04-30 11:13:28 +08:00
Benau
56549f68d4 Fix memory leak 2016-04-30 07:00:24 +08:00
hiker
0449263b6e Fixed compiler warning. 2016-04-28 17:16:02 +10:00
hiker
92f0ab6819 Implemented command line option "--dont-load-navmesh" to disable
loading of any navmeshes (to avoid extremly slow loading times
in debug mode, e.g. for temple).
2016-04-28 17:15:07 +10:00
hiker
b83246aac2 Revert "Do not compute the battle graph in case of a single kart in debug"
since Benau has suggested a better approach.
This reverts commit c9c37fb400.
2016-04-28 16:58:37 +10:00
hiker
fdf2df2f0f Also search for directories with the name 'build' for the editor
(not only bld), which is the documented name to use for the editor.
2016-04-28 13:59:21 +10:00
hiker
c9c37fb400 Do not compute the battle graph in case of a single kart in debug
mode in an arena: in debug mode computing the distance matrix
takes a LONG time (approximately 12 minutes on my machine). In
release mode it's fast enough for now.
2016-04-28 11:17:20 +10:00
Benau
1ad20811b8 Fix leaning value 2016-04-28 08:23:50 +08:00
hiker
94ad7ad676 Adjust wheel position in case of leaning: move the wheels on the side
that is higher in the air a bit further down so that they touch the ground.
Fixed #2400.
2016-04-27 18:15:28 +10:00
hiker
1870691900 Decrease leaning somewhat, and increased leaning speed. 2016-04-27 18:11:57 +10:00
hiker
d90dc8ea37 Removed unused entry. 2016-04-27 17:58:28 +10:00
hiker
30d60acfaf Added freetype to list of software used. 2016-04-27 15:19:00 +10:00
hiker
a0dc35b1fe Removed openal installer, fixed installer to properly install and remove
the editor (now named supertuxart-editor).
2016-04-27 14:00:02 +10:00
hiker
95b5161367 Removed openal installer (which is likely not necessary, see
ticket #2089.
2016-04-26 13:10:36 +10:00
hiker
031ae27919 Merge branch 'master' of https://github.com/supertuxkart/stk-code 2016-04-26 12:50:51 +10:00
hiker
031c918bf4 Fixed files that were not uninstalled. 2016-04-26 12:50:21 +10:00
auria.mg
4bc0cccf00 Fix user/login screen layout, fixes #2474 2016-04-25 19:10:56 -04:00
Benau
0503855b7d Add freetype into INSTALL.md 2016-04-25 09:18:37 +08:00
auria.mg
a1eceb9d3d Fix build 2016-04-24 19:55:37 -04:00
auria.mg
5e9f0ba246 Fix invalig logging 2016-04-24 19:37:51 -04:00
auria.mg
8dfa5a3755 GPLose screen tweak 2016-04-24 19:37:27 -04:00
auria.mg
ab2f46cc90 Improve reverse track support 2016-04-24 19:36:52 -04:00
auria.mg
32eba771e2 Tweak GP win and GP lose buttons : translator reported they were too small, and also they were designed for mouse use only and didn't work well from another input device 2016-04-24 18:21:45 -04:00
auria.mg
8c337110a2 Fix text 2016-04-23 09:00:40 -04:00
auria.mg
b6431c3383 Tweak grand prix 2016-04-22 20:44:35 -04:00
auria.mg
cffd0bd00c Fix invalid XML and update translations 2016-04-22 20:28:21 -04:00
auria.mg
ea14dcc1ca Update pot file 2016-04-22 18:59:07 -04:00
auria.mg
1fc99d7948 Add a few more replays + minor text change 2016-04-22 18:55:26 -04:00
auria.mg
5e8168e020 Add a few more stock replays 2016-04-22 18:20:32 -04:00
Benau
55278122fe Allow showing same difficulty of ghost replay only 2016-04-22 23:07:45 +08:00
hiker
b59194cdf3 Add a command line option to start the network console. 2016-04-22 16:37:17 +10:00
hiker
d092dcf96c Avoid slowdown in profile mode in profile mode when fps is < 60. 2016-04-22 16:04:27 +10:00
Benau
ff10bfd07a Fix getHeading() for ghost karts 2016-04-22 11:32:55 +08:00
Benau
f6ce065cee Allow a few replays coming with the game 2016-04-22 09:49:46 +08:00
auria.mg
790cd807a3 Start updating changelog for STK 0.9.2. Prepare challenges/GPs for the new abyss track (replacing the old subsea) 2016-04-21 20:50:01 -04:00
hiker
9299eca758 Fixed compilation after moving the windows installer to a different directory. 2016-04-22 07:54:40 +10:00
hiker
41ecd83d55 Started to add support for installing the editor. 2016-04-22 00:19:22 +10:00
hiker
97b7320c5b Fixed uninstallation to only delete files belonging to STK (to avoid
problems if someone installed STK e.g. in c:\Program Files - without
a subdirectory).
2016-04-22 00:03:49 +10:00
hiker
28d78447c3 Fixed installation of prerequisites. 2016-04-21 23:14:39 +10:00
hiker
6a0fdba062 Moved windows installer into tools directory. 2016-04-21 23:13:53 +10:00
hiker
889baa7e39 Removed unnecessary --with-profile command line option. 2016-04-21 22:32:24 +10:00
hiker
b16f225e47 Fixed path in installer, and support common different names
for the build directory (bld, build, cmake_build).
2016-04-21 22:28:50 +10:00
hiker
3827b504c7 Added new installer from MattDevo. 2016-04-21 09:14:33 +10:00
hiker
6987c82c7b Merge branch 'master' of https://github.com/supertuxkart/stk-code 2016-04-20 09:16:52 +10:00
hiker
9de3b4484f Fixed crash when collecting profiler output. 2016-04-20 08:47:02 +10:00
hiker
434a00640b Use switch instead of if. 2016-04-19 17:08:53 +10:00
hiker
904db68028 Removed debug code. 2016-04-19 11:56:23 +10:00
hiker
5b8e99e8c8 Fixed incorrect enum. 2016-04-19 11:55:16 +10:00
hiker
7ca76bbfbf Removed unused smoothing setting. 2016-04-19 09:56:05 +10:00
hiker
d788ca9a1b Fixed behind wheel debug camera. 2016-04-19 09:53:55 +10:00
hiker
d1f611197f Fixed reset of cameras, and switching to debug views. 2016-04-19 09:40:14 +10:00
Deve
dac357daec Fixed kart selection screen for legacy pipeline 2016-04-19 01:38:48 +02:00
Benau
bb67ee78fe Fix Lesbea's game 2016-04-18 23:57:42 +08:00
hiker
d65dd6c199 Started to refactor the camera into different classes. Normal
camera is working atm. but not much more.
2016-04-18 23:29:10 +10:00
Benau
caca4b06b2 Fix #1797
Don't give a bomb in case of time trial.
2016-04-16 08:15:18 +08:00
Deve
58846002eb Fixed bullet compilation for gcc 6.0.
Just converted all negative values and kept unsigned char* type to avoid too many modifications in the code.
2016-04-15 23:46:14 +02:00
Benau
f9b0b05d53 Fix warning 2016-04-14 10:40:15 +08:00
hiker
ff7556130a Merge branch 'master' of https://github.com/supertuxkart/stk-code 2016-04-14 11:04:28 +10:00
hiker
95853787b3 Minor code cleanup. 2016-04-14 09:37:20 +10:00
hiker
f59ea0f258 Moved the camera debug parameter from UserConfig to a static value
in camera. Added proper names for the debug modes instead of int.
2016-04-14 09:30:26 +10:00
hiker
ef1e5da4bc Fixed compiler warning. 2016-04-13 17:11:43 +10:00
auria.mg
c18343f60b Improvements to login screen : properly center buttons, and allow logging in by pressing enter 2016-04-12 19:27:11 -04:00
hiker
2f0e60694c Removed duplicated function. 2016-04-13 08:01:24 +10:00
hiker
a0623aee57 Force fresh cmake configuration. 2016-04-13 07:40:47 +10:00
hiker
7a9d283f43 Fixed comments. 2016-04-12 22:35:56 +10:00
hiker
c54caf3e03 Fixed missing #include file, some code cleanup. 2016-04-12 17:38:15 +10:00
hiker
8763c3aca7 Changed rewind key from F1 to F11 (F1 always opens the in-game menu). 2016-04-12 17:37:14 +10:00
hiker
7d0953ad83 Merge branch 'master' into rewind 2016-04-12 17:36:56 +10:00
Deve
29e4d4a0bc Fixed memory corruption in case of gamepads with large buttons count.
SEvent::SJoystickEvent::NUMBER_OF_BUTTONS is a constant value and is equal to 32. In practice we don't expect any gamepad that has over 32 buttons. However some wireless mices are incorrectly detected as gamepads and they report for example 69 available buttons. Just resize m_buttonPressed array to be equal to the reported buttons count.
2016-04-10 01:22:39 +02:00
Benau
d914e1eea3 Make game playable when start racing 2016-04-08 15:44:50 +08:00
Benau
6dc05a1ec7 Merge remote-tracking branch 'origin/master' into walldriving 2016-04-08 13:42:58 +08:00
auria.mg
8c29fb01f6 Minor tweaks to split screen text to make it clearer 2016-04-07 20:53:48 -04:00
auria.mg
1ef082b2e6 Fix tabs accidentally committed previously 2016-04-04 19:46:41 -04:00
Benau
9fb7f5617b Merge remote-tracking branch 'origin/master' into transparent_kart 2016-04-04 09:02:45 +08:00
Benau
dca821d4e6 Allow looking back when watching replay 2016-04-04 09:02:04 +08:00
Benau
ae8fac6dcb No powerup display when watching replay 2016-04-04 07:54:24 +08:00
Benau
740e4e10c8 Remove soccer team color handling in kart model
Let hope in the future someone is smart enough to implement that...
2016-04-04 07:53:33 +08:00
auria.mg
53b8b90ae6 Update servers list as they are found 2016-04-03 18:56:35 -04:00
auria.mg
b0af2b40b3 Multiplayer : don't lock tracks 2016-04-03 18:42:46 -04:00
Benau
224bd277b3 Better function name 2016-04-03 13:59:10 +08:00
Benau
508ddfcd45 Show translucent icon for ghost kart in race gui 2016-04-03 11:27:46 +08:00
Benau
2e016e63b4 Allow displaying transparent wheels and speed weight objects
That's done by copying the mesh, not sure if it should be avoided...
2016-04-03 00:17:36 +08:00
Benau
79db5e2365 Fix comment 2016-04-02 16:02:51 +08:00
Benau
ccd6294699 Add transparent ghost kart in STK
There is already define for soccer team too, so in the future,
if anyone is smart to make a shader to draw red/blue karts,
it should be easier.

TODO: wheels and speed weight objects. (They seem need to be copied to work)
2016-04-02 15:53:21 +08:00
Benau
5ac25db7f8 Initial work to support transparent kart in ghost replay 2016-04-02 12:55:20 +08:00
Benau
34f9d507d0 Fix real lan network connection 2016-04-01 09:59:16 +08:00
auria.mg
894a38f6c7 Fix empty popup when no lan server detected 2016-03-31 20:40:42 -04:00
Benau
a3265d5c15 Fix uninitialised member value 2016-03-30 10:58:21 +08:00
hiker
932365cee3 Fixed VS compilation. 2016-03-29 11:18:19 +11:00
hiker
840244d476 Merge branch 'master' of https://github.com/supertuxkart/stk-code 2016-03-29 11:09:55 +11:00
hiker
5c83249a30 Fixed crash in stand-alone server. 2016-03-29 11:09:07 +11:00
auriamg
640b6bb6b8 Merge pull request #2464 from Odd0002/master
Fix debug build on GCC 5.3.0
2016-03-28 20:08:53 -04:00
Benau
09bfdafd12 Use current font to getDimension for text
Fix crashes
2016-03-28 14:46:04 +08:00
Benau
4e0f217fc8 Remove unneeded cast 2016-03-27 20:53:33 +08:00
Odd0002
47bac3b33d Fix debug build on GCC 5.3.0 2016-03-26 22:36:22 -05:00
Benau
692539690d No combined uint32
Sorry people, you will need to re-record replay
2016-03-27 08:31:31 +08:00
Benau
dff5f8d459 Allow auto recreation of ghost replay file lists after recording. 2016-03-25 16:11:32 +08:00
Benau
151cc72e22 Save skidding info in replay 2016-03-25 15:37:53 +08:00
Benau
11b119066c Add support for using ghost kart in challenge
Real challenge file added later.
2016-03-23 14:26:48 +08:00
Marianne Gagnon
33defa44b7 Merge most modifications by egirsova to build 64-bits on OS X 2016-03-21 20:16:59 -04:00
Benau
8df9ff2cd8 Simplify ghost replay screen 2016-03-21 15:18:47 +08:00
hiker
ee4c4bd962 Try again to fix crash when exiting the server profile screen without networking. 2016-03-21 14:14:21 +11:00
hiker
ad545861ed Fix crash when exiting the server screen (network was still set to
be enabled).
2016-03-21 13:59:42 +11:00
hiker
fcc2b6493b Merge branch 'master' of https://github.com/supertuxkart/stk-code 2016-03-21 12:13:27 +11:00
hiker
e1ce01b5d2 Removed mostly unnecessary default constructor. 2016-03-21 12:12:01 +11:00
Benau
7aad4835b9 Merge branch 'new_track_gui' 2016-03-21 08:54:49 +08:00
hiker
065edebc70 Merge pull request #2455 from tobbi/coverity_issues_2
Add missing unlock
2016-03-21 11:53:35 +11:00
Benau
a62145ed6e Merge remote-tracking branch 'origin/master' into new_track_gui 2016-03-21 08:48:54 +08:00
hiker
ca0f66e4f8 Merge branch 'master' of https://github.com/supertuxkart/stk-code 2016-03-21 11:03:48 +11:00
hiker
1f4776abb3 Allow server gui to start selection. 2016-03-21 09:58:21 +11:00
Marianne Gagnon
e28b48c61b Fix previous commit 2016-03-20 18:51:05 -04:00
hiker
fa721409c0 Show connected players on server gui. 2016-03-21 09:50:29 +11:00
Marianne Gagnon
cbf1e4b5d7 Remove unused files, fixes #2458 2016-03-20 18:40:43 -04:00
hiker
05483396c2 Also show name of selected karts on waiting screen. 2016-03-21 09:39:17 +11:00
hiker
be7c7bfcbc Show Waiting screen on server. 2016-03-21 09:38:53 +11:00
Benau
c258418577 Fix going back 2016-03-21 01:02:13 +08:00
Benau
fce3eec66f New GUI for track only screen, used in network and loaded from replay 2016-03-20 16:23:49 +08:00
Benau
4d42010f2a Add missed number of laps setting 2016-03-20 08:54:12 +08:00
Benau
b92210d4a0 No watching replay when split-screen
And some bugs fixes
2016-03-20 08:40:55 +08:00
Benau
da70d305a9 Allow watch replay only 2016-03-20 01:33:26 +08:00
Benau
07afd444a8 Allow racing against the replay on equal footing
It make record while replay possible too.

We show the ghost only when start racing, fixing the overlapping issue.
2016-03-19 14:57:22 +08:00
Benau
a42ee39240 Merge remote-tracking branch 'origin/master' into random_arena_item 2016-03-19 08:58:25 +08:00
Marianne Gagnon
78abafb9df Attempt proper fix for #2453 2016-03-18 19:35:26 -04:00
hiker
97ac0a6f59 Merge branch 'master' of https://github.com/supertuxkart/stk-code 2016-03-19 10:28:01 +11:00
hiker
d25f3cee25 Added time step size as parameter to each protocol's synchromous update
function (which is needed for interpolation later).
2016-03-19 10:24:44 +11:00
auriamg
616a34ea77 Merge pull request #2456 from tobbi/coverity_issues_3
Properly free memory for m_story_mode_status and m_achievements_status
2016-03-18 19:08:38 -04:00
hiker
10bb5caae3 Show lobby screen on interactive server in LAN mode. 2016-03-18 08:10:47 +11:00
Tobias Markus
8ae746f330 Properly free memory for m_story_mode_status and m_achievements_status 2016-03-17 15:48:24 +01:00
Tobias Markus
0775347431 Add missing unlock 2016-03-17 15:38:40 +01:00
hiker
4101d72d90 Avoid crashes when the server enters the lobby (somewhat temporary,
the server needs a different kind of lobby anyway).
2016-03-17 17:20:02 +11:00
hiker
b6bcf33ae0 Added end of race handling, so that clients and server shut
down properly and go back to the lobby.
2016-03-17 17:19:21 +11:00
Benau
5b7161710d Add GUI option in track info screen for random item location. 2016-03-17 12:16:19 +08:00
hiker
094a87eb94 Avoid NULL reference crash. 2016-03-17 10:00:03 +11:00
Benau
d2509baf5c Allow random items number and type for arena with navmesh.
Number and types are hard-coded for now.
2016-03-17 01:27:24 +08:00
hiker
970159d98f Merge branch 'master' of https://github.com/supertuxkart/stk-code 2016-03-16 22:47:34 +11:00
hiker
c6b22cdffb Fix crash when player is not logged in. See #2453 for more details. 2016-03-16 22:29:51 +11:00
hiker
90f82494f7 Cosmetic changes only. 2016-03-16 09:49:30 +11:00
auriamg
6f5d36f479 Merge pull request #2451 from egirsova/master
Update README
2016-03-14 20:00:56 -04:00
hiker
07048d62fe Removed indices used in reading network string, now all reading
is sequentially.
Merge branch 'network_string_sequential_read'
2016-03-15 10:34:19 +11:00
hiker
19222c25bc Merge remote-tracking branch 'origin/master' into network_string_sequential_read 2016-03-15 10:33:47 +11:00
hiker
3a3e8bb49e Create a dummy camera if the server is running with graphics. This
allows starting a server from the gui.
2016-03-15 09:53:26 +11:00
hiker
1ad41db6c9 Fixed reading code which ignored 2 bytes. 2016-03-15 00:04:00 +11:00
egirsova
8d312174d8 Update README.
There is no stk-code/src/ide folder. Users should simply follow the instructions in the wiki to build for Mac OS X
2016-03-13 16:10:02 -05:00
Benau
c48ce20091 Thanks leper for this fix 2016-03-14 00:43:00 +08:00
hiker
7783de8770 Fixed line ending style. 2016-03-13 16:37:19 +11:00
hiker
e267aa9dff Merge branch 'master' of https://github.com/supertuxkart/stk-code 2016-03-13 16:31:36 +11:00
hiker
54463e9d66 Save server password so that authentication works. 2016-03-13 16:30:24 +11:00
hiker
467953cfe6 Merge remote-tracking branch 'origin/master' into network_string_sequential_read 2016-03-13 16:08:21 +11:00
hiker
f2c26f06f1 Another refactoring of NetworkString, this time added support for sequential
reads, so that you don't need to specify the offset anymore (and no more
removeFromFront).
2016-03-13 13:49:43 +11:00
Benau
8a9168a024 Remove the hard-coded localized name in language.cpp 2016-03-13 10:25:26 +08:00
hiker
96bf567c2e Merge branch 'master' of https://github.com/supertuxkart/stk-code 2016-03-11 16:46:20 +11:00
hiker
655987b992 Removed NetworkPlayerProfile field from STKPeer (since if splitscreen will
be supported there will be no 1:1 relationship between peer and players
anymore). All voting related protocols were extended to include the
voting player's player id (sp in future split screen player can vote
individually - though atm they would all vote for the same thing).
2016-03-11 16:42:35 +11:00
Marianne Gagnon
5500a06ceb Tweak subsea challenge 2016-03-10 20:57:43 -05:00
Marianne Gagnon
d0499be4b9 Update protocol to include server difficulty and mode 2016-03-10 19:25:55 -05:00
Marianne Gagnon
90f0c12393 More work on networking UI 2016-03-10 18:48:40 -05:00
Marianne Gagnon
35451515a2 Work on "Create server" screen to include more options 2016-03-09 19:47:45 -05:00
Marianne Gagnon
193aabe393 Remove weird unicode character from help GUI files 2016-03-09 19:47:21 -05:00
hiker
fc38acbea4 Fixed waiting screen. 2016-03-10 09:29:53 +11:00
hiker
b4d4f770ca Fixed line endings. 2016-03-10 09:28:52 +11:00
hiker
69f128b62f Added some log messages about received events. 2016-03-09 21:22:53 +11:00
hiker
6d1e5dc8ae Fixed crashed caused by sending messages that have been read previously
(which were sent with incorrect length).
2016-03-09 21:21:50 +11:00
hiker
45b2fef88a Merge remote-tracking branch 'origin' into remove-event-processing-info 2016-03-09 16:50:51 +11:00
hiker
058c1554ac Merge branch 'master' of https://github.com/supertuxkart/stk-code 2016-03-09 16:47:13 +11:00
hiker
1923ba0ab4 Two bugfixes (thanks to Benau for debugging). 2016-03-09 16:38:06 +11:00
Marianne Gagnon
8ba337c343 Regenerate pot file, fixing transifex issue hopefully 2016-03-08 21:35:25 -05:00
hiker
f35b3d2670 Merge branch 'master' of github.com:supertuxkart/stk-code 2016-03-09 13:22:00 +11:00
hiker
6067b3b8fa Use new #supertuxkart channel instead of #stk. 2016-03-09 13:21:37 +11:00
hiker
67068db470 Merge branch 'master' of https://github.com/supertuxkart/stk-code 2016-03-09 13:19:16 +11:00
hiker
603dfe7eee Minor code cleanup. 2016-03-09 13:18:46 +11:00
hiker
62a527a14b Fixed protocol. 2016-03-09 13:16:14 +11:00
hiker
f371a019c6 Fixed compiler warning. 2016-03-09 07:49:27 +11:00
hiker
087d491445 Removed EventProcessingInfo, and pre-computing of protocols that should
receive an event. Solves potential problem that an event might arrive at
a client before the destination protocol is up and running. Also improved
handling of (dis)connects, now only protocols that can handle a disconnect
event will receive them, hopefully reducing the number of crashes when
a client disconnects.
2016-03-09 07:46:33 +11:00
Benau
114732035f Fix log 2016-03-08 10:32:35 +08:00
Benau
88fb0a555e Use uniform spelling for SuperTux 2016-03-08 08:17:47 +08:00
hiker
edbdde4536 Replaced another soft-dash with a normal - (to avoid transifex complains). 2016-03-07 13:58:44 +11:00
hiker
c6cef53c99 Merge branch 'refactor-network-string' 2016-03-07 12:26:36 +11:00
hiker
68e394702b Merge branch 'refactor-network-string' of github.com:supertuxkart/stk-code into refactor-network-string 2016-03-07 12:20:43 +11:00
hiker
64993718b4 Replaced soft-dash with a normal - (to avoid transifex complains). 2016-03-07 12:15:20 +11:00
hiker
1dc5c0b4af Merge branch 'master' of https://github.com/supertuxkart/stk-code 2016-03-07 12:14:05 +11:00
Benau
05081c3033 Fix keep translating online/login issue 2016-03-07 09:08:27 +08:00
hiker
7ff4cd8873 Merge branch 'refactor-network-string' 2016-03-07 12:04:17 +11:00
hiker
94dc236a75 Merge remote-tracking branch 'origin/master' into refactor-network-string 2016-03-07 12:03:09 +11:00
Marianne Gagnon
9500331716 Merge branch 'master' of https://github.com/supertuxkart/stk-code 2016-03-06 20:01:48 -05:00
Marianne Gagnon
04999c35ee More work on networking UI 2016-03-06 20:01:40 -05:00
hiker
a462d4a81e Fixed compiler warnings. 2016-03-07 09:12:21 +11:00
hiker
9c71dc78d1 Merge remote-tracking branch 'origin/master' into refactor-network-string 2016-03-06 16:42:16 +11:00
hiker
f70dfb7d5d Fixed crashes (on VS at least) when the string printed contained
format characters.
2016-03-06 15:54:39 +11:00
Benau
2d1d912ee8 Fix #1841 2016-03-05 16:01:42 +08:00
Benau
e3cf054ea7 Fix #1835 2016-03-05 12:55:20 +08:00
Benau
6fd6dd8792 Remove hack 2016-03-05 10:04:05 +08:00
Benau
70d5114dd7 Display localized name instead of English translation 2016-03-05 09:49:03 +08:00
hiker
ab641b0dad Replaced the filename for packet log file in the UserConfig with a
flag to enable/disable this debug output in the file STDOUT.packets
(where stdout is the final set at startup).
2016-03-03 17:10:18 +11:00
hiker
4947881d10 Removed unnecessary #include in hpp file. 2016-03-03 16:42:46 +11:00
hiker
43b3684e12 Fixed memory leak. 2016-03-03 09:39:14 +11:00
hiker
5ddd577080 Removed incorrect warning messages. 2016-03-03 09:38:53 +11:00
hiker
e1892bc4fd Try to fix handling a kart finishing the race. 2016-03-02 16:58:41 +11:00
Marianne Gagnon
14c8ecddb5 Add waiting screen for networking 2016-03-01 18:58:51 -05:00
hiker
85f15d7221 Removed unnecessary broadcast functions. 2016-03-01 17:13:31 +11:00
hiker
b26c4fc372 Send the kart updates with proper token set. 2016-03-01 17:12:04 +11:00
hiker
c77522c07f Removed ProtocolManager::sendMessageExcept() function. 2016-03-01 16:50:45 +11:00
hiker
052e369df2 Removed unnecessary setting of token, use ProtocolManager sendExcept
instead of loop.
2016-03-01 16:45:42 +11:00
hiker
d9f607fc24 Merge branch 'refactor-network-string' of github.com:supertuxkart/stk-code into refactor-network-string 2016-03-01 11:56:49 +11:00
hiker
d086501035 Merge branch 'refactor-network-string' of https://github.com/supertuxkart/stk-code into refactor-network-string 2016-03-01 11:55:57 +11:00
hiker
e3c7033aa1 Fixed incorrect level of info message. 2016-03-01 11:54:09 +11:00
hiker
753868361f Removed many token settings and tests, which are now done in
Event and when sending the message.
2016-03-01 09:56:33 +11:00
hiker
1f53923c45 Fixed potentially incorrect code in getFloat; added memory leak check;
improved handling of m_current_offset; let the NetworkString autpmatically
add the size for the type and token, so the user code only needs to allocate
space for the real content.
2016-03-01 09:54:26 +11:00
Benau
96a10ce92c Update strings 2016-02-29 10:59:42 +08:00
hiker
b18712f8c2 Added some output when running unit tests. 2016-02-29 13:53:15 +11:00
Benau
4438664907 Merge remote-tracking branch 'origin/master' into fix_replay 2016-02-29 10:25:19 +08:00
hiker
390fee96da Try to fix linux release builds. 2016-02-29 11:40:02 +11:00
hiker
a6fbd019fb Fixed linux compilation. 2016-02-29 11:09:40 +11:00
hiker
00347d2743 Removed explicitly setting token (which is now done when sending
a message to a client).
2016-02-28 16:42:32 +11:00
hiker
6c022cec6b Use sendMessageToPeershangingToken instead of creating new messages
in a loop.
2016-02-28 16:41:54 +11:00
hiker
ceb831d852 Removed STKHost::sendMessage function. 2016-02-28 16:26:48 +11:00
hiker
4b9d9cfc92 Replaced Protocol::sendMessage (which was either a send or a broadcast
depending on if the caller is a client or server) with explicitly named
functions.
2016-02-28 16:18:08 +11:00
hiker
c9d3577a13 Removed unnecessary sendMessage function in ProtocolManager. 2016-02-28 15:57:41 +11:00
hiker
58505eeb88 Started to set token in the 'lower level' functions, removing the need
to set the token in each protocol. Started to remove some of the
unnecessary send* functions.
2016-02-28 15:54:43 +11:00
hiker
9a16595261 Renamed NewNetworkString to NetworkString. 2016-02-28 14:58:15 +11:00
hiker
1e49595c53 Further improved look of NetworkString log messages. Added unit testing. 2016-02-28 14:55:48 +11:00
Lucas Baudin
287349716c [android] hack to control the kart with the accelerometer (to be moved in a proper place - just for debugging purpose right now) 2016-02-27 00:23:55 +01:00
Lucas Baudin
b8ef827510 [irrlicht/android] don't poll events or it creates a race lock when polling accelerometer events elsewhere 2016-02-27 00:23:08 +01:00
Lucas Baudin
aee2835e54 [android] unsuccessfully trying to add debug flags 2016-02-27 00:21:49 +01:00
Lucas Baudin
88419935b7 [android] fix typo in the readme 2016-02-27 00:20:37 +01:00
Lucas Baudin
c842324b75 [android] stop makefile target to kill a running stk 2016-02-27 00:19:47 +01:00
Lucas Baudin
5e125ee5c1 [android] less hacky way to disable glsl 2016-02-26 19:40:52 +01:00
Lucas Baudin
d88f414f96 [android] disable GLSL and set width/height according to the size detected by the driver 2016-02-26 18:04:03 +01:00
Lucas Baudin
86d1ca811a [android] re-enable things in 2dutils.cpp that are available with opengles 3.0 2016-02-26 18:02:41 +01:00
Lucas Baudin
e9657beaa6 [android] detect size 2016-02-26 18:01:51 +01:00
hiker
be815e4234 Fixed various bugs caused by switching to new NetworkString class. 2016-02-26 16:38:59 +11:00
hiker
5c32cbe1be Fixed crash (getUInt takes m_current_offset into account, which made
the indices partially invalid).
2016-02-26 09:20:13 +11:00
Lucas Baudin
6dc2752c81 [android] update readme 2016-02-25 23:20:07 +01:00
Lucas Baudin
a76b98de89 [android] Add the patch used to have a lighter dataset 2016-02-25 23:16:44 +01:00
Lucas Baudin
0dc59b9e4a [android] Boilerplate code to launch stk main 2016-02-25 23:14:03 +01:00
Lucas Baudin
f484e7ef6b [android] More debug print for the android irrlicht device 2016-02-25 23:13:33 +01:00
Lucas Baudin
40b45a8442 [android] Disable command line 2016-02-25 23:12:14 +01:00
Lucas Baudin
3f13d69eb3 [android] Remove the main loop from main to debug things more easily 2016-02-25 23:12:02 +01:00
Lucas Baudin
cb3b3a0eaf [android] use PrivateData in irr_driver to give the androidapp to the driver 2016-02-25 23:11:26 +01:00
Lucas Baudin
419b516dcf Add extra stk-assets possibility (inside the data/) 2016-02-25 23:10:27 +01:00
Lucas Baudin
f91426d748 [android] Use CIrrDeviceAndroid before the console device… 2016-02-25 20:38:50 +01:00
Lucas Baudin
e39efc128c [android] backport the Irrlicht.cpp createDevice changes, fix the compile error, and use OGLES2 on android 2016-02-25 20:15:24 +01:00
Lucas Baudin
d2b5d5ad05 [android] auto-download jpeglib 2016-02-25 19:38:36 +01:00
Lucas Baudin
dacb6a41d3 [android] Add angelscript to libstk.so 2016-02-25 19:36:26 +01:00
Lucas Baudin
658ab615d2 Fix freetype build system 2016-02-25 19:30:00 +01:00
Lucas Baudin
81f759e876 Don't use pthread at all if no curl 2016-02-25 16:49:33 +01:00
Lucas Baudin
22b8d15939 Switch to OGLES2, it seems to be working 2016-02-25 16:48:39 +01:00
Lucas Baudin
2b543ca88d Add src symlink, add build system to build the rest of stk, freetype, ifaddrs, etc… Does not compile yet 2016-02-25 16:47:48 +01:00
Lucas Baudin
de576272e6 Add android makefile (it was ignored by the .gitignore…) and ignore freetype and ifaddrs (downloaded via the makefile) 2016-02-25 16:46:35 +01:00
Lucas Baudin
3a663f8e71 Shaders and data files for the irrlicht example 2016-02-25 16:44:55 +01:00
Lucas Baudin
2c9f2c84c5 More macros to disable extra gl calls 2016-02-25 16:27:50 +01:00
Lucas Baudin
f89a4b1a75 Merge back the IEvent changes 2016-02-25 15:55:52 +01:00
Lucas Baudin
368a230ed7 Put some preprocessor macros to prevent unsupported GLES calls 2016-02-25 13:56:43 +01:00
Lucas Baudin
02808cdfd0 GLES2 for android devices by default 2016-02-25 12:06:54 +01:00
hiker
8621437e07 Use NetworkString's log function. 2016-02-25 17:02:51 +11:00
hiker
2357e965b4 Fixed crash, and started to improve log output. 2016-02-25 17:00:08 +11:00
hiker
6f55877e94 Fixec various crashes. 2016-02-25 16:54:31 +11:00
Marianne Gagnon
ba4e9d1a79 Tweak default config as suggested in ticket #2438, it's not perfect but seems much better that what we had previously in most cases 2016-02-24 19:20:14 -05:00
hiker
03f4339cee Handle error in lan connection. 2016-02-25 09:49:45 +11:00
hiker
9d546d4980 Use BareNetworkString to correctly decode requests-for-servers. 2016-02-25 09:49:09 +11:00
hiker
1655a4889d Use BareNetworkString. 2016-02-25 09:48:47 +11:00
hiker
28bb228914 Added missing initialisation. 2016-02-25 09:46:17 +11:00
Lucas Baudin
d4d3817d63 Disable sound and curl, add freetype 2016-02-24 22:24:33 +01:00
Lucas Baudin
c7c5788086 Add android build files 2016-02-24 20:41:21 +01:00
Lucas Baudin
48069a7bcc More backport from the ogl-es irrlicht branch 2016-02-24 20:34:46 +01:00
Lucas Baudin
a470cd74d6 add android port from irrlicht (based on commit 875d0cfac88c26994b82d68737b085ec1b84c5f8) 2016-02-24 12:34:08 +01:00
hiker
2e8ddb1c50 Added a new base class 'BareNetworkString' for NetworkString,
used it for some of the messages exchanged before the ProtocolManager
is started (i.e. establishment of initia connection).
2016-02-24 20:32:11 +11:00
hiker
98ba11d9ba Started to introduce new network string. It compiles, but certainly
does not work yet.
2016-02-23 16:29:57 +11:00
Benau
abdd32c070 Fix warning 2016-02-22 07:43:29 +08:00
Benau
8f1daabbe1 Merge remote-tracking branch 'origin/master' into fix_replay 2016-02-22 07:26:26 +08:00
auriamg
c0bfd46ee9 Merge pull request #2441 from tobbi/missing_override
Add forgotten override's where necessary
2016-02-21 18:18:25 -05:00
Benau
dafde30077 Fix crash when press save replay key when it's not initialized. 2016-02-21 15:13:32 +08:00
Tobias Markus
d8cce95b0e Add forgotten override's where necessary 2016-02-21 01:36:15 +01:00
Benau
abd9ed189c Merge remote-tracking branch 'origin/master' into fix_replay 2016-02-19 08:43:11 +08:00
auriamg
91bd844dca Merge pull request #2439 from Odd0002/master
Update AngelScript to version 2.30.2
2016-02-18 18:37:03 -05:00
Odd0002
0289e93bcc Silence AngelScript warning as in 6af30b68f0 2016-02-18 09:50:49 -06:00
Odd0002
e69e96af19 Fixed cmake based on https://github.com/supertuxkart/stk-code/issues/2325 and the related commit 2016-02-17 23:48:59 -06:00
Odd0002
fdd6f36b46 Update angelscript to 2.30.2 2016-02-17 22:07:55 -06:00
Benau
64522d9d13 Merge remote-tracking branch 'origin/master' into fix_replay 2016-02-17 14:03:58 +08:00
Benau
c65b0aaae0 Save jumping event in replay file 2016-02-17 14:02:33 +08:00
Marianne Gagnon
1e0586dc40 Add missing files forgotten in previous commit 2016-02-16 18:52:54 -05:00
Marianne Gagnon
9c49312714 Work on networking GUI, combine older server interfaces with the newer online/profile screens 2016-02-16 18:33:09 -05:00
Benau
ee68b5ccce Merge remote-tracking branch 'origin/master' into fix_replay 2016-02-16 10:55:53 +08:00
Benau
51bfc327d7 Make race end-able 2016-02-16 10:20:05 +08:00
Benau
71c1fadcd3 Merge remote-tracking branch 'origin/master' into fix_replay 2016-02-16 09:57:41 +08:00
hiker
05a1a8a785 Merge branch 'master' of https://github.com/supertuxkart/stk-code 2016-02-16 12:37:43 +11:00
hiker
2f0a69525a Use kart id instead of kart name to identify kart that has collected an item. 2016-02-15 18:16:31 +11:00
Benau
c8ecb78ffa Remove useless header 2016-02-15 15:16:26 +08:00
hiker
132ecfe409 Created separate function for handling received collectedItem messages. 2016-02-15 18:00:09 +11:00
hiker
d15a234ace Let only the server decide when a kart finished the race. Notify
all clients if this happens.
2016-02-15 17:45:24 +11:00
Benau
a6412d7a07 Add ghost icon, use it in race setup screen 2016-02-15 09:28:36 +08:00
Benau
bd1380a240 Do not crash if used addon track not found in local STK 2016-02-15 01:19:53 +08:00
Benau
05093852bc Add sorting support in ghost replay selection screen 2016-02-15 01:12:13 +08:00
Benau
4ea6ea8ea6 Add confirm dialog when deleting replay file 2016-02-14 13:52:16 +08:00
Marianne Gagnon
52b3d533f5 Fix memory management issue 2016-02-13 21:18:03 -05:00
Benau
aa81925860 Don't crash if kart not found loaded by replay files 2016-02-14 09:25:04 +08:00
Benau
c46bccc6e3 Finished GUI 2016-02-13 11:55:42 +08:00
Benau
8a121ed32b Add Ghost replay GUI 2016-02-13 01:34:00 +08:00
Benau
5cd27f8f99 Seperate directory for replay files
It allows replay GUI to load them easier
2016-02-12 10:01:54 +08:00
Elderme
da5529f5bb Improved coding style 2016-02-11 21:40:20 +01:00
Benau
a6c4a72e2c Make lap counting works for ghost kart
As no m_terrain_info->update in ghost kart update
2016-02-12 01:18:26 +08:00
Elderme
05f9b01be3 Fixed compilation issue with MinGW 2016-02-11 14:34:16 +01:00
hiker
1ad782e6a6 Added comments. 2016-02-11 17:24:55 +11:00
Benau
7765b43d42 Merge remote-tracking branch 'origin/master' into fix_replay 2016-02-11 13:45:16 +08:00
Benau
ece95cbb81 Use MessageQueue to show whether the replay file is saved successfully 2016-02-11 13:42:25 +08:00
Benau
1278394740 More clean 2016-02-11 10:09:31 +08:00
Benau
80152d2989 Clean up 2016-02-11 10:05:40 +08:00
Benau
4daa752bb6 Don't hurt a kart when it's already hurt enough 2016-02-11 09:08:12 +08:00
Benau
3f89512b34 Remove most isGhostKart() hack when avoidable 2016-02-11 09:01:09 +08:00
Marianne Gagnon
fe6bbb80c4 Delete unused da_DK translation, closes #2435 2016-02-10 19:56:45 -05:00
hiker
7e6711e163 Renamged NetworkWorld to RaceEventManager (since this class is
not a 'world' in the sense our game modes are).
2016-02-11 09:03:51 +11:00
Benau
bb88a0f0ec Allow auto-save replay when specified in time trial mode.
It will disable AI when recording, also it will only save if the
race is completed, ie no one gave up or all events fit in max frame recorded.
2016-02-11 00:42:33 +08:00
hiker
99bc5477a2 Use a password to authenticate the client that is allowed to
control a server (now the controlling client can reconnect in
case it gets disconnected, previously with only allowing the host
with id 1 to control, the server could not be controlled anymore).
2016-02-10 18:03:42 +11:00
Benau
5a9fdd7a8d Allow replay reverse track 2016-02-10 12:43:45 +08:00
Benau
61d6e572c0 Remove unnused file 2016-02-10 10:38:27 +08:00
hiker
bfced53aaf Started to add password support for a controlling a server. 2016-02-10 13:32:39 +11:00
Benau
0181ba0bc9 Add Ghost Controller 2016-02-10 10:27:13 +08:00
Elderme
b2a9c412ed Fixed issue when deffered lighting is disabled (graphics level 1) 2016-02-09 22:37:52 +01:00
hiker
cebf395939 Only allow the first connected client to control the server. 2016-02-10 08:28:15 +11:00
Elderme
d54aee1535 Central video settings were initialized twice: fixed 2016-02-09 21:43:58 +01:00
hiker
ee320588d5 Merge remote-tracking branch 'origin/master' into support_nw_splitscreen 2016-02-09 17:40:59 +11:00
hiker
354770f564 Added 0 number of laps to configuration to test ending a race. 2016-02-09 13:38:25 +11:00
hiker
8f492d8480 Updated documentation. 2016-02-09 13:38:06 +11:00
hiker
f5a344ccb4 Fixed voting for laps and reverse. 2016-02-09 09:41:35 +11:00
Benau
bf080421a7 Allow showing speed of ghost karts in replay
Use when change camera target to ghost karts
2016-02-08 12:28:40 +08:00
Elderme
5b81d97482 Merge branch 'master' into renderer_refactoring 2016-02-07 13:56:25 +01:00
Elderme
2ee4aefcd7 Improved coding style 2016-02-07 13:54:46 +01:00
Benau
b6b644ecb5 Clean up 2016-02-07 10:20:37 +08:00
Elderme
f26667ec85 Removed unnessary #include in header files 2016-02-06 23:38:15 +01:00
Elderme
d5bcfb9446 Improved coding style 2016-02-06 19:11:23 +01:00
Benau
af5b23e5c6 Fix potential crash 2016-02-07 00:56:14 +08:00
Elderme
6bf238a134 More cleaning 2016-02-06 15:06:39 +01:00
Elderme
6465666d7c Improved interfaces 2016-02-06 14:30:21 +01:00
Benau
c3f589561c Initial work on supporting real race with ghost karts
To test, you need to pass --ghost to supertuxkart with choosing a
track that has replay recorded, you can record one with artist
debug mode.

TODO: correct position handling
2016-02-06 14:52:50 +08:00
hiker
52460d02de Made start/terminate/pause/unpause-Protocol private, so that now all
calls to those functions from the ProtocolManager event loop (which
avoids locking problems).
2016-02-05 16:28:58 +11:00
hiker
af6ecfec3a Removed unused function. 2016-02-05 16:15:58 +11:00
hiker
89979a46f5 Removed unused variables. 2016-02-05 16:09:31 +11:00
Benau
647f42e984 Update comment 2016-02-05 09:40:34 +08:00
Benau
0091c1555a Save nitro and zipper GFX in replay 2016-02-05 09:30:40 +08:00
hiker
2d0fd0260e Added file forgotten in previous commit. 2016-02-05 10:08:58 +11:00
hiker
6a9a8565d0 Replaced exit mutex with Synchronised. 2016-02-05 09:02:32 +11:00
hiker
89c972c316 Cosmetic changes only. 2016-02-05 08:33:35 +11:00
hiker
e392aa6ead Fixed syntax errors :( 2016-02-05 08:28:21 +11:00
hiker
0d488b916d Use Synchronised instead of mutex for next protocol id. 2016-02-05 08:24:28 +11:00
hiker
348a300c09 Use Synchronised for m_requests instead of separate mutex. 2016-02-05 08:19:26 +11:00
hiker
263e41ec1f The update messages are now handled in the main thread, which removes the
need for locking. Also only the last update event is handled, older events
are discarded.
2016-02-04 17:15:14 +11:00
hiker
4fa7a89963 Fixed (probably debug only) crash: evaluating the pointer arithmetic
left to right had invalid intermediate result (i>0; offset <0).
2016-02-04 16:56:11 +11:00
hiker
f580603c97 Cosmetic changes. 2016-02-04 16:55:42 +11:00
Benau
5810acb114 Fix memory leak 2016-02-04 10:11:14 +08:00
Benau
38eeddd4e8 No reference for int and float 2016-02-04 09:51:59 +08:00
Benau
4cbb31b8e5 Ghost kart replay fixes:
1. Allow saving steering, speed, suspension length

2. No more crashes when trying to replay
2016-02-04 08:17:02 +08:00
hiker
878760ed2d Fixed GameEventProtocol (e.g. collecting items). 2016-02-03 09:07:15 +11:00
hiker
f5897001d8 Properly lock data structure (I've seen data corruption, most likely
caused by not locking).
2016-02-03 09:05:26 +11:00
hiker
19053d8ac6 Removed unnecessary call. 2016-02-03 08:48:28 +11:00
hiker
cc017da1d6 Let only the server ping the clients (to reduce network traffic). Reduce
frequency of pings (since it appears that often esp. during loading
clients are busy loading which artificially increases latency).
2016-02-03 08:21:34 +11:00
hiker
4f12a9a66c Prevent usage of duplicated host ids (before if hosts A and B are connected,
then A disconnects and C connects, B and C would have the same host id).
2016-02-02 09:52:07 +11:00
Elderme
b85bd204aa Removed useless methods in FixedPipelineRenderer class 2016-02-01 21:20:10 +01:00
hiker
ef8c04e117 Removed unnecessary lock. 2016-02-01 16:45:07 +11:00
hiker
d78c1b3272 Replaced array with scalar value, minor code cleanups. 2016-02-01 16:42:36 +11:00
Elderme
20290decc0 Added default statement in switch on material types 2016-01-31 21:49:22 +01:00
Benau
87862c27ae Fix #2127 2016-01-31 10:16:12 +08:00
Marianne Gagnon
3de922bc19 Fix animated textures not working on animated meshes. FIxes #2432 2016-01-30 18:11:58 -05:00
Elderme
1e7e126b55 merged with master 2016-01-30 15:00:22 +01:00
Elderme
011777e93f Added missing include in command_buffer 2016-01-30 14:13:50 +01:00
Elderme
6be1e7a209 Removed useless lines in draw_calls 2016-01-29 22:14:15 +01:00
Elderme
0c85dd2e2e Fixed issue when async instance upload is not supported 2016-01-29 22:11:31 +01:00
Benau
40e193e415 Reset the ball if out of navmesh after 2 seconds
Plus some code clean up
2016-01-29 14:40:52 +08:00
hiker
ad21b6dfa2 Merge pull request #2375 from leyyin/travis-matrix
Add matrix configuration to travis file
2016-01-29 12:23:04 +11:00
hiker
17de128f09 Cosmetic changes only. 2016-01-29 08:18:34 +11:00
hiker
e81935df99 Added convenience functions that encode and decode Vec3s and Quats. 2016-01-29 08:14:13 +11:00
hiker
6039f63c0b Removed need m_self_kart from NetworkWorld, which is not necessary anymore. 2016-01-29 07:42:32 +11:00
hiker
06d1168948 Refactored to remove need for unique kart names. 2016-01-29 07:40:16 +11:00
Elderme
1ba19948f6 Moved variadic templates arguments first in ShadowCommandBuffer to fix compilation with visual studio 2016-01-28 15:21:18 +01:00
Benau
cbc9353210 Completely brake the AI karts in goal phase. 2016-01-28 16:13:03 +08:00
hiker
497a018667 Cosmetic changes only. 2016-01-28 08:41:50 +11:00
hiker
2606c5230d Refactored ControllerEventsProtocol so that unique kart names
are not necessaruy anymore.
2016-01-28 08:05:48 +11:00
hiker
892e1b58d1 Protocols are now either synchronous or asynchronous. This avoids a problem
that in (rare) circumstances e.g. a message that is only handled synchronously
is deleted from the asynchronous thread (if the main thread is too slow and
a time out is reached).
2016-01-27 10:05:25 +11:00
Elderme
c82ff61cf4 Added more comments 2016-01-26 22:30:42 +01:00
hiker
e31ce6844e Partial fix for crash when disconnecting clients. 2016-01-27 07:40:25 +11:00
hiker
618248ef4d Added comments. 2016-01-27 07:39:53 +11:00
Daniel Butum
28394c36b1 Add matrix configuration to travis file 2016-01-26 18:01:54 +02:00
Benau
5c81a2a3e7 Seperate red and blue balls a bit in race gui
This make score like 10:10 a bit clearer
2016-01-25 12:51:43 +08:00
Benau
e8adf7f051 Remove bubblegum in soccer mode as suggested by auria 2016-01-25 12:50:20 +08:00
Elderme
126f883fac Fixed poly count 2016-01-24 22:49:56 +01:00
Elderme
8d17911ef6 Cleaned and added comments 2016-01-23 21:59:56 +01:00
Benau
3674815e03 Missing reset() 2016-01-23 10:50:32 +08:00
Benau
2bc9362ac6 Add mini-skid for BattleAI when attacking targets 2016-01-23 10:34:20 +08:00
Benau
df9dc5ff34 Make AI really bends it like Beckham
Notice: AI will only try to skid to save the ball from being scored
when expert and supertux mode.
2016-01-22 22:01:22 +08:00
Benau
ea05f4b6ba Allow saving default time limit option too 2016-01-22 12:27:09 +08:00
Benau
99162e3d0f Fix wrong positioning of music description in soccer mode with time limit. 2016-01-22 12:01:01 +08:00
Benau
95f6f910b8 Allow saving selected team in single player soccer mode. 2016-01-22 11:32:06 +08:00
Benau
a7aedbe208 Remove unused PNG 2016-01-22 09:20:03 +08:00
Elderme
8a5405eff9 Make diffuse/specular/depth texture handles resident when creating RTT instead of during rendering loop 2016-01-21 15:05:14 +01:00
Benau
1ee9979fe1 More soccer mode improvements:
1. Max 8 karts are supported now

2. Clearer starting position assignment in soccer world

3. Reset all karts to starting position after each goal
2016-01-21 15:28:11 +08:00
Elderme
4eec1d8570 Removed getFBO method in IrrDriver 2016-01-20 23:39:19 +01:00
Benau
35ce3d8299 Add defense knowledge for AIs 2016-01-20 16:30:26 +08:00
Benau
1e7ac6e98b Avoid eating banana in a smarter way 2016-01-20 14:20:46 +08:00
Benau
93b6b96c2e Put animation settings in KartModel 2016-01-20 10:16:18 +08:00
Benau
3a3963bf8d Make STK soccer mode more like real match
1. Short win animation is shown in a kart if it scored correctly

2. Possible to identify own goal in result gui

Also player name is shown instead of kart name in result gui for all modes.
2016-01-19 16:21:58 +08:00
Benau
7831ef5ef5 Reverse logic for opposite goal 2016-01-19 16:21:30 +08:00
Benau
b7df193ed4 Add Red/Blue icon in soccer setup screen 2016-01-19 08:49:23 +08:00
hiker
560ff7cee4 Moved ActivePlayer out of Controller and into LocalPlayerController. 2016-01-18 16:47:48 +11:00
hiker
affc53fef4 Updated documentation. 2016-01-18 16:22:15 +11:00
Marianne Gagnon
7e93af7414 Forgotten file in previous commit 2016-01-17 21:31:23 -05:00
Marianne Gagnon
025c117d58 Tweak soccer setup screen to be clearer 2016-01-17 21:21:55 -05:00
Benau
6e2f1c98e1 Merge remote-tracking branch 'origin/master' into soccer_ai 2016-01-18 10:00:45 +08:00
Marianne Gagnon
0b5fdb6729 More work on billboards to render them properly, see #2427 2016-01-17 20:58:20 -05:00
Benau
d9a9900608 Merge remote-tracking branch 'origin/master' into soccer_ai 2016-01-18 09:54:23 +08:00
Benau
61113bbef9 Silence warning as auria suggested 2016-01-18 09:52:34 +08:00
Benau
606add8605 Use back billboard arrow 2016-01-18 09:50:55 +08:00
Marianne Gagnon
ea02f232dc Fix compositing of billboards, they were forced to be additive 2016-01-17 20:37:15 -05:00
hiker
a6386e1f20 Simplified and documented code. 2016-01-18 08:17:44 +11:00
hiker
73d8e18044 Fixed and simplified sendMessageToPeersChangingToken, avoiding
incorrect messages if more than one peer is connected.
2016-01-18 08:16:32 +11:00
Elderme
14fa4f3def Removed IrrDriver::RTTProvider 2016-01-17 15:27:16 +01:00
Elderme
585f94d717 Moved calls to glEnable from MovelViewWidget to the graphics engine 2016-01-17 15:09:45 +01:00
Elderme
e9087a7dd6 Merged with master 2016-01-17 14:42:11 +01:00
Elderme
bff0a98708 Moved m_post_processing attribute from IrrDriver to ShaderBasedRenderer, and removed some getter/setter functions 2016-01-17 13:42:06 +01:00
Benau
51ce4c5cbd Use red/blue billboard text above karts in soccer world as Arthur suggested 2016-01-17 12:13:20 +08:00
Benau
ab61e55a6d Fix bugs in Race GUI 2016-01-17 12:11:09 +08:00
Benau
b410c8f67c Make soccer menu useful in single player
Notice: As race_manager->setKartSoccerTeam(i, info.team) already
pre-set karts team, there is no need to test for
(getNumKartsInTeam(SOCCER_TEAM_RED) == 0 || getNumKartsInTeam(SOCCER_TEAM_BLUE) == 0),
so the the menu code is simplified.
2016-01-16 16:11:33 +08:00
Benau
b45d926a00 Clean up and bug fixes 2016-01-16 09:14:19 +08:00
Benau
d328fc7133 Better team saving 2016-01-15 23:50:54 +08:00
Benau
82dca17f42 Friendly-fire in soccer mode 2016-01-15 21:49:54 +08:00
Benau
e296ebe4af Use white-black ball in minimap 2016-01-15 19:52:49 +08:00
Benau
7ef019f794 Use the checkPosition function for better angle handling in SkiddingAI 2016-01-15 18:35:21 +08:00
Benau
d14a39e0f7 Initial work on soccer AI, plus lots of code re-factor/clean up.
To test, you need to update stk-assets with the dummy soccer field.
In single player, you are limited to be in red team for now, so just
shoot the ball into the blue goal. Also max-goal is limited to 4.

Regarding AIs, the steering with ball logic is handled in
SoccerAI::correctBallPosition, max AI supported in single player
is limited to 5 by now.

The AI is not as good as Zidane or Ronaldo, but steering with ball
for human is not as easy as not normal driving anyway, so don't
laugh at the AIs. :)

TODO: Friendly-team firing, polish the soccer field.
2016-01-15 18:25:52 +08:00
hiker
b7870b2377 Fixed crash (when going back from track screen to kart screen). 2016-01-15 16:25:02 +11:00
hiker
d3a7c75a62 Replaced many uses of getPlayer with Controller::canGetAchievements.
Removed some unused variables.
2016-01-15 08:02:36 +11:00
hiker
45399fc43f Removed unused data. 2016-01-14 08:30:02 +11:00
hiker
846fd3f059 Started to support split screen by fixing and improving the handling
of local plauyer ids.
2016-01-14 08:20:14 +11:00
hiker
e70017a1a6 Code simplification. 2016-01-14 08:05:40 +11:00
hiker
b0571e419a Added documentation. 2016-01-13 17:03:01 +11:00
hiker
409862dbe2 Merge branch 'removeLocalPlayerInfo' 2016-01-12 13:15:36 +11:00
hiker
2c232bf400 Merge branch 'master' of https://github.com/supertuxkart/stk-code 2016-01-12 13:15:09 +11:00
hiker
7b6ec4e916 Merge remote-tracking branch 'origin/master' into removeLocalPlayerInfo 2016-01-12 13:02:34 +11:00
hiker
e7dd7f4d1a Replaced setLocalKartInfo with setPlayerKart. Updated some docs. 2016-01-12 13:00:45 +11:00
hiker
6816b08af1 Made m_player private in Controller. 2016-01-11 17:35:24 +11:00
hiker
4d28bb484f Added host id which is used to determine local/remote players. 2016-01-11 17:08:06 +11:00
hiker
f0c5f43fe2 Removed setNumLocalPlayers (which is now part of setNumPlauers)<
fixed coding style in race manager.
2016-01-11 07:58:30 +11:00
Deve
87d474bd1a Fixed compilation.
The __try and __except are not available in mingw.
2016-01-08 20:48:39 +01:00
Deve
2da5efd983 Simplify code a bit 2016-01-08 20:20:03 +01:00
Deve
280ad614bb Fixed creating screenshots in menu screens 2016-01-08 20:20:03 +01:00
hiker
e46c47d5c9 Removed m_local_player_karts data structure in RaceManager. 2016-01-08 17:03:50 +11:00
Benau
283c1a7c37 Update supertuxkart desktop file to support searching with keywords 2016-01-08 09:34:13 +08:00
Elderme
76453afc49 Removed useless functions 2016-01-07 22:11:14 +01:00
Elderme
e58a45441b Fixed aliasing issue with render to texture 2016-01-07 15:59:06 +01:00
Elderme
c14ce23e66 Merged with master and solved conflict with the new graph structure 2016-01-07 14:56:09 +01:00
hiker
6ffe0cc995 Updated comments. 2016-01-07 17:11:14 +11:00
hiker
f5438c433c Removed unused variable. 2016-01-07 17:07:04 +11:00
hiker
a1b05dbb00 Merge branch 'master' of https://github.com/supertuxkart/stk-code 2016-01-07 08:48:00 +11:00
hiker
f3851e44a9 Removed code duplication in StartGameProtocol. 2016-01-07 08:47:43 +11:00
hiker
7826a8a751 Removed compiler warnings. 2016-01-06 18:10:54 +11:00
hiker
eb30294259 Disable access to network races. 2016-01-06 18:01:46 +11:00
hiker
b8ed2025ed Merge remote-tracking branch 'origin/master' into refactor_networking 2016-01-06 17:53:45 +11:00
Marianne Gagnon
4eb5ee6e77 Fix crash due to goal checklines not initializing properly 2016-01-05 20:36:01 -05:00
hiker
efa0f0afc9 More docs, code cleanup. 2016-01-06 08:21:48 +11:00
hiker
c1560ddb02 Renamed getPlayerID() to getGlobalPlayerId(); started to refactor
StartGameProtocol.
2016-01-06 08:10:03 +11:00
hiker
801f6961cf Updaetd documentation. 2016-01-06 07:59:38 +11:00
hiker
7bb14cc1fc Minor code cleanup. 2016-01-05 17:32:46 +11:00
Benau
347c608867 Final clean, put every kart location in three strikes battle world 2016-01-05 13:15:50 +08:00
hiker
65a23c125a ADded comment. 2016-01-05 08:22:27 +11:00
Elderme
290ac3489b Added render to texture support for legacy OpenGL (but rendering with legacy GL is currently bugged) 2016-01-04 22:19:19 +01:00
Elderme
a257acfd4b Fixed memory leak and improved interfaces for rendering to texture 2016-01-04 21:36:00 +01:00
Benau
405d31ecfc Better pointInPoly 2016-01-04 16:10:38 +08:00
Benau
87df259f48 Cleanup controller, plus better logic in updateKartNodes 2016-01-04 14:28:06 +08:00
Benau
0393eef825 Merge remote-tracking branch 'origin/win_lose_music' 2016-01-03 10:27:37 +08:00
Benau
d4e312885a Make SFX depends on race result too
Currently use gp_end for test
2016-01-03 10:19:51 +08:00
Marianne Gagnon
b1ef0bc40a Try to fix travis build 2016-01-02 20:57:46 -05:00
Marianne Gagnon
15b35b76ac Scripting : add ability to use delegates for timeouts (enabling complex timeouts) 2016-01-02 20:34:39 -05:00
Benau
37da8423f8 Fix #2417 2016-01-03 09:04:24 +08:00
Deve
bd9f435190 Fixed 64-bit windows compilation.
Broken in 53164e5cbe or somewhere around it.
2016-01-03 00:10:30 +01:00
Benau
2aaab61f93 Implement win or lose music for race result screen
TODO: Proper music file
2016-01-01 13:31:15 +08:00
Benau
9624b1ab28 Prevent crashes when invaild navmesh is used or no items in an arena 2015-12-31 09:34:37 +08:00
Elderme
956ae27eca Added abstract RenderTarget class for rendering to texture, and a renderToTexture method in IrrDriver 2015-12-30 12:02:11 +01:00
Benau
629f090646 More battle mode improvements
1. Fix text overflow in arena menu

2. Try to make battle AI avoiding eating banana
2015-12-29 08:27:24 +08:00
Benau
94c5ba4193 Add more arena info in track screen 2015-12-24 07:53:49 +08:00
Elderme
8ce03609d1 Fixed rendering issue whith AZDO 2015-12-22 14:38:08 +01:00
Elderme
b5fd7aa104 Fixed compilation errors 2015-12-20 17:43:15 +01:00
Deve
70aad3e265 Just rename a variable 2015-12-20 13:46:41 +01:00
Deve
5020f3ca2e Disable compute shader for intel on mesa for now, because it is shaking for some reason. 2015-12-20 13:46:41 +01:00
Deve
f9c48a0fa2 Fixed compute shaders compilation for drivers which report only OpenGL 3.x 2015-12-20 13:46:41 +01:00
Deve
9eb6694d61 Check for arrays of arrays extension, which we use in compute shaders 2015-12-20 13:46:41 +01:00
Benau
4e5197e7c1 Different max number of AIs per arena
Now I make large arena like stadium to have max 8 player-slots,
should be very fun to play

Remember update stk-assets to test!
2015-12-20 16:28:01 +08:00
Benau
7031e1bf8c Merge remote-tracking branch 'origin/graph_cleanup' 2015-12-20 09:12:50 +08:00
Benau
fefeffad91 Further clean 2015-12-20 09:01:50 +08:00
auriamg
82032ca6c9 Merge pull request #2406 from devnexen/master
better alternative OSes handling + tiny C++ fix
2015-12-19 17:59:26 -05:00
Benau
3d409a9742 Fix comment 2015-12-20 01:13:51 +08:00
Benau
08b2e27ed9 More clean up 2015-12-19 16:23:18 +08:00
Benau
e4da6d4a99 Merge remote-tracking branch 'origin/master' into graph_cleanup 2015-12-19 16:23:11 +08:00
David Carlier
2841c0e165 better alternative OSes handling + tiny C++ fix 2015-12-19 07:05:45 +00:00
Benau
74c547cb1d Remove duplicated code, plus some more cleanup 2015-12-19 02:09:37 +08:00
Elderme
c158fa1757 Removed getRTT method in irr_driver 2015-12-18 14:19:55 +01:00
Marianne Gagnon
94151dda60 Add forgotten file 2015-12-17 20:25:05 -05:00
Elderme
cba4685d02 Start moving m_rtts from IrrDriver to Renderer classes 2015-12-16 10:15:38 +01:00
hiker
c222ba2ebd Added documentation and minor cosmetic changes. 2015-12-16 18:31:03 +11:00
hiker
c9bf95079c Cosmetic changes only. 2015-12-16 08:22:30 +11:00
hiker
6280613e5c Avoid incorrect warning message in case of a disconnect. 2015-12-16 07:59:10 +11:00
hiker
07baf05b90 Fixed incorrect order in which protol ids were deleted. 2015-12-16 07:58:39 +11:00
hiker
68e37c902f Merge remote-tracking branch 'origin/master' into refactor_networking 2015-12-15 22:52:55 +11:00
hiker
430529ed58 Fixed non-windows compilation. 2015-12-15 09:14:51 +11:00
hiker
5c2f78b176 Refactored Local- and NetworkPlayerController to use a common base
class PlayerController.
2015-12-15 07:50:50 +11: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
Elderme
c5caa610ec Moved functions from render_lighting.cpp to ShaderBasedRenderer class 2015-12-10 15:34:33 +01:00
Benau
8f6a529531 Complete fix to arena selection menu (handle random arenas) 2015-12-10 15:49:47 +08:00
hiker
dbd210d08c Renamed PlayerController into LocalPlayerController. 2015-12-10 17:54:29 +11:00
hiker
770d05f0de Fixed crash if more than one kart is connected to the server (since the
network kart screen will only show local karts now).
2015-12-10 17:37:28 +11:00
hiker
e0b3de17f6 Added new isLocalPlayerKart() function to controller, which is used
to detect when sfx and graphical effects should be shown. The isPlayerKart
funtion is used to detect a (local or remote) player, e.g. for rubber-banding
the AI, or finding the Xth player kart.
2015-12-10 17:35:31 +11: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
hiker
1969ee0b1f Set a name for each thread in VS. 2015-12-09 08:55:46 +11:00
Benau
aac5a368b8 Avoid invaild Ai karts number during switching game modes 2015-12-09 01:27:02 +08:00
hiker
1755f22663 Cosmetic changes only. 2015-12-09 00:13:35 +11:00
Benau
140a229f71 Fix swatter issue 2015-12-08 16:47:42 +08:00
hiker
03594fcad9 Bugfix: the server would try to send a received kart action to the
server again.
2015-12-08 17:28:01 +11:00
hiker
34dad96017 Minor code cleanup. 2015-12-08 17:25:19 +11:00
hiker
786f9eb693 Fixed typoe (isclient vs isClient). 2015-12-08 17:24:10 +11: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
hiker
7fa062881d Removed unused variable. 2015-12-08 08:08:00 +11:00
Benau
152dddc110 Fix potential hang after end race in temple arena 2015-12-08 00:44:28 +08:00
hiker
e74ef461a4 Fixed crash (probably in debug mode only): iterator+i+o would
first compute and check iterator+i, and not iterator+(i+o), which
caused a crash.
2015-12-07 23:54:43 +11:00
hiker
27f1828c73 Fix crash (in case of result==false, index could be out of bounce). 2015-12-07 23:51:38 +11:00
hiker
7cc77f41f7 File missing in previous commit. 2015-12-07 23:50:21 +11:00
Benau
21c38a6c0b Make swatter disappear after one hit in 3 strikes battle 2015-12-07 16:24:11 +08:00
hiker
d8b417d536 Cosmetic changes; removed static variable. 2015-12-07 17:05:08 +11: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
Elderme
ba40b7fcd0 Removed ununsed SunDir uniform in InstancedGrassPass2Shader 2015-12-06 15:30:22 +01: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
Elderme
ba7aa4bc58 Moved m_spherical_harmonics from IrrDriver to ShaderBasedRenderer class 2015-12-05 21:43:04 +01: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
Elderme
a4ba78d1fb Merge branch 'master' into renderer_refactoring 2015-12-04 23:25:53 +01:00
Elderme
288b9db71b Moved skybox from IrrDriver to Renderer class 2015-12-04 23:23:56 +01: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
hiker
9153439f68 Cosmetic changes only. 2015-12-04 18:07:43 +11:00
hiker
35d1059a39 Cosmetic changes only (coding style, comments). 2015-12-04 17:52:21 +11:00
hiker
97756dd337 Only show kart selection widgets for local (and this means atm only
one) player.
2015-12-04 08:12:29 +11:00
hiker
637202077f Automatically start game when all track votes have been received. 2015-12-04 08:00:51 +11: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
hiker
af3f72ae84 Automatically trigger computing the track data (based on votes)
once the game starts.
2015-12-03 17:56:16 +11:00
hiker
26155933f0 Set the local master on the server. 2015-12-03 17:54:24 +11:00
Flakebi
c5277edc54 Change suspension-travel that was changed in master meanwhile 2015-12-03 02:15:58 +01:00
hiker
0983038d5c Fixed size of token. 2015-12-03 09:10:07 +11:00
hiker
9765c56a44 Enable voting for tracks. 2015-12-03 08:24:17 +11:00
hiker
4286f47a31 Fixed incorrect indices. 2015-12-03 08:23:52 +11:00
hiker
ee7097af35 Added some default settings for race mode and send them to the server.
Changed major and minor mode in protocols from 1-byte to int, since 1-byte
is too small to store the actual values.
2015-12-03 07:53:56 +11: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
hiker
03d857db3e Removed unnecessary code. 2015-12-02 08:17:03 +11:00
hiker
0f52f0bdd9 Fixed incorrect message id in kart selection update message. 2015-12-02 08:16:22 +11:00
hiker
dfa78eaef2 Fixed random token computation to use indeed all 32 bits. 2015-12-02 07:45:05 +11:00
hiker
6d272d8a5a Fixed crash when quicly exiting stk after refreshing the server list. 2015-12-01 23:25:04 +11:00
hiker
109288e0f5 Removed unused code. 2015-12-01 18:10:06 +11:00
hiker
76ddaeaef7 Force refresh of server list when exiting from the server info screen. 2015-12-01 17:47:03 +11:00
hiker
642c402dcf Fixed unconnecting from a server. 2015-12-01 17:43:43 +11: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
hiker
14390c2c5b Cosmetic changes. 2015-12-01 08:28:53 +11:00
hiker
c9a23bcbb7 Fixed disconnecting of a client. 2015-12-01 08:19:48 +11:00
hiker
bcfec98fa2 Removed all references to OnlineProfile, which makes LAN and WAN
server behave idential (and it also fixed potential memory leaks).
2015-12-01 07:57:42 +11: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
hiker
2e758a0641 Don't use #players as next player id - if a player gets disconnected,
the next player id would be duplicated.
2015-11-30 08:12:10 +11:00
Deve
5d6a233da2 Fixed wrong unit 2015-11-29 20:31:10 +01:00
Deve
7e7d4e120a Handle errors during recording. 2015-11-29 20:29:37 +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
Deve
3144cd1595 Implement recording video to avi file.
It allows to easily record a video, which can be then for example attached to a bug report. It also allows to record promotion videos (eg. trailers), which should be more smooth than recorded using external application.

Main disadventages are:
- Constant fps in avi file
- Atm. it's not possible to record sounds. I even don't know if it's possible at all (if we can easily get access to the sound buffer).

I see about 20-25% fps drop during recording. I think that it's acceptable. But if needed, the fps can be increased by using separated thread for recording.

Currently it uses jpeg compression with 70 quality. It can be easily tweaked to use higher/lower compression or even just uncompressed bitmaps.
2015-11-28 16:42:48 +01:00
hiker
18e5cd8d53 Enable refresh of server list after exiting a connection again. Also
removed deleting the joined server.
2015-11-28 12:45:03 +11:00
hiker
73e94e9824 Avoid race condition when a client exits in the lobby. 2015-11-28 12:33:01 +11:00
hiker
e2a6d1c33c Avoid crash (index could be -1). 2015-11-28 12:32:00 +11:00
hiker
09a32c2132 Fix various crashes when a client exits. 2015-11-27 23:05:32 +11:00
hiker
8d843a7317 Show the connected players in the player list of the gui. 2015-11-27 23:05:05 +11:00
hiker
0076a041c9 Used new decode/encodeString functions in other places, made getString private. 2015-11-27 08:55:21 +11:00
hiker
b092b47a58 Send the player's online or local (if not online) name to the server
and all clients.
2015-11-27 08:24:02 +11:00
Elderme
a753008521 Cleaned glow rendering 2015-11-26 20:12:24 +01:00
hiker
801b390860 Removed linux compiler warnings. 2015-11-26 09:16:27 +11: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
hiker
517b0dabf9 Merge branch 'refactor_networking' of https://github.com/supertuxkart/stk-code into refactor_networking 2015-11-26 08:48:05 +11:00
hiker
f81bd5d0c5 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:47:02 +11:00
hiker
2f126ab226 Moved NetworkPlayerProfile into its own file, added getter and
setters for it.
2015-11-26 07:41:37 +11:00
Elderme
1b27424b67 Moved more drawing functions from GeometryPasses to drawing policies classes. 2015-11-24 23:33:14 +01: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
hiker
927969e720 Added new server state for 'selecting karts'. 2015-11-24 07:55:58 +11:00
hiker
078de5fe93 Server-side authorisation now implemented if client is on
same IP address.
2015-11-24 07:53:51 +11:00
hiker
981a4ab234 Fix crash when disconnecting. 2015-11-23 17:22:12 +11:00
hiker
3e9e9349c0 Removed commented out code. 2015-11-23 17:21:51 +11:00
hiker
07876a0899 Fixed linux compilation 2015-11-23 11:40:33 +11:00
Flakebi
6e36c223b9 Hold one kart properties object per player 2015-11-23 01:19:00 +01:00
hiker
064414afa3 Added server-side test to see if client is authorised to send commands. 2015-11-23 08:26:18 +11:00
Elderme
951b852ede Adding policies for each way to rendering meshes (depending on available OpenGL extensions) 2015-11-22 22:25:54 +01:00
hiker
da2671c6ee An 'authorised' client can now tell the server to select karts. 2015-11-23 08:08:23 +11:00
hiker
0f38d6fb8a Don't add same peer twice (which causes a crash when the peer disconnects etc) 2015-11-23 08:03:15 +11:00
Elderme
b26c152fce Added splatting materials in ShadowCommandBuffer 2015-11-22 16:22:25 +01:00
Elderme
b4d39f7d85 Improved interfaces 2015-11-22 16:13:34 +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
hiker
f05b6f6dd7 Improved handling of cancelling server creation. 2015-11-21 12:21:50 +11:00
hiker
815d663ee3 Revert "Removed unnecessary stkgui file." - it was the wrong file :P
This reverts commit e804fc281a.
2015-11-21 12:21:16 +11:00
hiker
093283c5b0 Avoid crash if networking was selected, but not actually started. 2015-11-21 12:20:05 +11:00
hiker
e804fc281a Removed unnecessary stkgui file. 2015-11-21 12:15:02 +11:00
hiker
1700395dc2 Fixed crash when no votes for a category have been received. 2015-11-21 12:01:45 +11:00
hiker
68bcd4bde3 Cosmetic changes only. 2015-11-21 11:49:15 +11:00
hiker
10bed9a20d Used more names for protocol commands, and use switch instead of if's. 2015-11-21 10:39:56 +11:00
Elderme
be1178871b Removed ListInstance* singletons 2015-11-20 22:39:42 +01:00
Elderme
db52543655 Removed GlowPassCmd singleton, now use new CommandBuffer class to render glow 2015-11-20 22:16:58 +01:00
hiker
3ab66592cd Only minor cosmetic changes. 2015-11-20 17:02:47 +11:00
hiker
7a2c7125e5 Used enums instead of numbers for lobby protocol subcommands. 2015-11-20 16:41:54 +11:00
hiker
73e14a964a Cosmetic changes only. 2015-11-20 08:16:41 +11:00
hiker
c3e74d344f Add warning message in case of an unknown command, and do not send
it to the servrer (which typically just confuses it).
2015-11-20 08:07:31 +11:00
Elderme
ea7fc05af4 Removed RSMPassCmd singleton class 2015-11-19 14:50:17 +01:00
Elderme
c0ca591827 Removed useless things in CommandBuffer and GeometryPasses classes, and removed ShadowPassCmd singleton class 2015-11-19 14:16:59 +01:00
hiker
683f0fdc07 Fixed incorrect index. 2015-11-19 14:21:56 +11:00
hiker
b55b91edf1 Use const & for std::string, cosmetic changes. 2015-11-19 14:20:10 +11:00
hiker
2b687e1051 Avoid crash when voting. 2015-11-19 14:19:01 +11:00
hiker
e7cc868c85 Removed uneccesary vector copy. 2015-11-19 14:18:34 +11:00
hiker
4813637a37 Cosmetic changes only. 2015-11-19 09:21:28 +11:00
hiker
5994123b98 Fixed crash. 2015-11-19 09:21:03 +11:00
Deve
b78d4a0c3d Merge pull request #2372 from rugk/patch-1
Readme and Install.md improvments
2015-11-18 09:32:00 +01:00
hiker
ba4ccd5621 Added command line option to start a LAN server. 2015-11-18 17:24:56 +11:00
hiker
e6c2620c90 Print 'hide address' only in WAN mode; remove commented out code. 2015-11-18 13:44:25 +11:00
hiker
90b92419f3 Avoid crash in case that a player is not logged in online. 2015-11-18 08:15:22 +11:00
hiker
17f588bcf2 Fixed storing of EnetAddresses in TransportAddress. 2015-11-18 08:14:58 +11: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
Elderme
e36ba066fb Removed duplicate code in CommandBuffer class, and replaced singleton ShadowPassCmd by the new ShadowCommandBuffer class 2015-11-16 22:28:22 +01:00
hiker
29e0b50e14 Removed friend declaration; fixed crash caused by deleting the
ENetPeer when deleting an (STK) Event.
2015-11-17 08:11:07 +11:00
hiker
0ed22d0d6e Fixed debug message. 2015-11-16 18:46:04 +11:00
hiker
980cdf835d Avoid crash when clicking on (empty) list while server list is being refreshed. 2015-11-16 18:44:14 +11:00
hiker
785b9a9130 Don't try to hide address in LAN networking, other minor fixes. 2015-11-16 18:43:46 +11: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
hiker
4a3c4c552e LAN clients now start to connect to the server. 2015-11-13 08:50:03 +11:00
Elderme
5c02c58ded Now use new CommandBuffer class for reflective shadowmaps 2015-11-12 22:13:18 +01:00
Benau
7cf4d662ee Allow configurable fonts file names in stk-config 2015-11-13 02:25:52 +08:00
hiker
af9018ea64 Moved Server and ServersManager into network directory. 2015-11-12 17:52:04 +11:00
hiker
6716dfce97 Removed unnecesary #include. 2015-11-12 12:04:36 +11:00
hiker
2e65b23539 Don't poll stk server if this is a LAN server. 2015-11-12 09:58:21 +11:00
hiker
5fc830825f Refactoring: Created a separate NetworkConfiguration class which stores
all information to create the STKHost.
2015-11-12 09:53:12 +11: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
hiker
51411a796a Minor refactoring of lan handling, added client's ip address and port
to the answer from the client (which can later be used when the
client requests a connection from a server).
2015-11-10 17:00:47 +11: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
833c20ceff Added comment. 2015-11-10 08:34:45 +11:00
hiker
8953547305 Store TransportAddress of server in servers data structure. Avoid
copying the currently connected server, instead avoid modifying the
server data structure while while a client is connected to a server.
2015-11-10 08:31:07 +11:00
hiker
3a9576f109 Removed unnecessary #include. 2015-11-10 08:11:03 +11:00
hiker
0074550f57 Fixed typo. 2015-11-10 08:09:05 +11:00
hiker
0a23198be1 Cosmetic changes only. 2015-11-10 08:08:41 +11:00
hiker
36ebe29649 Fixed typo. 2015-11-10 08:08:22 +11:00
hiker
cdbc5cf15d One more linux compilation fix. 2015-11-09 21:51:05 +11:00
hiker
d4856f6d64 Added missing #include for memcpy. 2015-11-09 21:38:18 +11:00
hiker
453ce8cf60 Added LAN server discovery. 2015-11-09 20:51:00 +11: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
Elderme
97d497a0b5 Merge with master and solved conflicts 2015-11-08 21:54:10 +01:00
Elderme
84592ef631 Removed singleton class SolidPassCmd 2015-11-08 21:16:29 +01: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
Elderme
c1eb0bbe73 Moved Materials definition in a separate Materials file 2015-11-07 22:10:32 +01:00
Benau
0b5a916980 Remove unused header
Also fix some spacing
2015-11-08 01:36:40 +08:00
Elderme
928dd8d24d Partially replaced singleton SolidPassCmd by DrawCalls class 2015-11-07 15:01:00 +01: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
hiker
9d9b83059d Fixed deadlock (when while handing a request another request was queued). 2015-11-07 00:19:16 +11:00
hiker
60f550e9d1 Fixed coding style, removed unnecessary #include in hpp file. 2015-11-06 16:50:58 +11:00
hiker
47a7bd1caf Print correct protocol name in 'has been terminated" message. 2015-11-06 16:32:18 +11:00
hiker
00843b8685 Fixed typos. 2015-11-06 16:30:34 +11:00
hiker
541509f29a Added new requestPause and requestUnpause commands for protocols,
minor code cleanups and improvements.
2015-11-06 16:11:12 +11:00
hiker
e14bc572b6 Fixed typo in comment (thanks to leyyin). 2015-11-05 23:35:37 +11:00
hiker
847a788a9c Removed server creation request (which is now down automatically
from STKHost).
2015-11-05 23:34:27 +11:00
auriamg
c2d863888b Merge pull request #2373 from Elderme/issue_2369
Fix issue 2369
2015-11-04 18:24:03 -05:00
hiker
bec317b9ed Added documentation to the table use and protocol between
game server/client and the stk server.
2015-11-05 08:03:06 +11:00
hiker
c99ad34cb0 Coding style changes. 2015-11-05 08:02:17 +11:00
hiker
73c59db858 Reverted to previous version of protocol (since it is not yet
supported by the server).
2015-11-05 08:01:37 +11:00
hiker
4fc46c510f Fixed too early release of objects, and some state changes in finite state machine. 2015-11-05 08:00:45 +11:00
hiker
b7b37b9ec9 Updated documentation. 2015-11-05 07:59:28 +11:00
hiker
35793d99c8 Create an STKHost client instance if a connection to client is
requested. The rest of the protocol is handled from STKHost.
2015-11-05 07:57:49 +11:00
hiker
f2aa1ddea6 Code cleanup. 2015-11-05 07:55:59 +11:00
hiker
bdf34edc00 Removed --client command line option (since this command needs a
server id to work).
2015-11-05 07:54:58 +11: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
Elderme
331cc0827f Fixed bug in CommandBuffer class 2015-11-02 22:27:37 +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
hiker
dc80fb1c11 Updated docs. 2015-11-02 16:24:05 +11:00
hiker
eab07b31dd Hide RefreshRequest class. 2015-11-02 16:14:38 +11: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
6946306c4c Fixed memory leak (thanks to CruzR). 2015-11-02 10:55:17 +11:00
hiker
7c51be7724 Removed need for m_fake_refrehs, some coding style improvements. 2015-11-02 09:16:39 +11:00
hiker
c0817d29d3 Minor coding style update. 2015-11-02 09:16:09 +11:00
hiker
d7d2115abd Removed setupClient (which is now done in the constructor). 2015-11-02 09:14:35 +11:00
hiker
0b62d2f82b Created two different constructors for STKHost - one for server, one for client. 2015-11-02 08:11:51 +11:00
hiker
6add49b065 Allow WAN server creation from GUI. 2015-11-01 23:42:24 +11:00
hiker
f05ee47e2b Moved lan/wan setting to static functions in STKHost. 2015-11-01 22:16:57 +11:00
hiker
15e3ac021f Fix ending STK when no STKHost exists. 2015-11-01 21:28:39 +11:00
hiker
0d84239cd2 Merge branch 'master' of https://github.com/supertuxkart/stk-code 2015-11-01 19:46:00 +11:00
hiker
1334a467e3 Don't start a STKHost if neither client nor server is requested. 2015-11-01 19:45:28 +11:00
hiker
4aea491ed0 Merge remote-tracking branch 'origin/master' into refactor_networking 2015-10-31 11:41:43 +11:00
hiker
f2ae36fc65 Simplified ConnectToPeer (no more fsm). 2015-10-31 11:40:41 +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
Elderme
6ba82eaac9 Removed several singletons and added a CommandBuffer class 2015-10-30 15:23:15 +01: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
hiker
8585afb713 Minor code cleanup. 2015-10-30 17:00:57 +11:00
hiker
94bc18df52 Removed ShowPublicAddress protocol, instead submit blocking
request in ConnectToServer.
2015-10-30 16:45:43 +11:00
hiker
dd289dc1cd Removed polling for GetPublicAddress with callback. 2015-10-29 18:58:18 +11:00
hiker
ef310a5666 Renamed types.hpp to transport_address.hpp. 2015-10-29 18:39:01 +11:00
hiker
83154ae3a7 Converted the CallbackObject to actually call a function. This
means that if protocol A starts protocol B and needs a result from B,
previously B would set a (potential private) variable in A. Now
B calls a callback in A, where the result can be set.
2015-10-29 18:27:55 +11:00
Deve
8572c5ef3b Open window in fullscreen mode when it was set by user 2015-10-29 00:16:00 +01:00
Deve
e61d3bc0ac Fixed a crash on startup 2015-10-28 23:40:57 +01:00
Deve
c81243fc1a Merge branch 'master' into wayland 2015-10-28 22:43:02 +01:00
Deve
af68dd9046 Fixed compilation 2015-10-28 22:28:12 +01:00
hiker
966d31dc45 Cosmetic changes, removed unused and unimplemented 'stop protocol' support. 2015-10-28 17:22:09 +11:00
hiker
cf9ce6674c Removed unused class. 2015-10-28 17:08:01 +11: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
5df6c225ef Cosmetic changes only. 2015-10-28 08:57:05 +11:00
hiker
e919b97037 Removed unnecessary getProtocolState functions. 2015-10-28 08:24:05 +11:00
hiker
2909e42a25 Minor code cleanup for ConnectToPeer handling. 2015-10-28 08:21:35 +11:00
hiker
7e202d94a8 Removed hardcoded maximum number of players. 2015-10-28 08:03:05 +11:00
hiker
60bbfe3ab3 Remved StartServer protocol, and used executeNow() in ServerLobby instead. 2015-10-28 08:01:46 +11:00
hiker
e212276dd2 Move enet initialisation into STKHost. 2015-10-27 16:58:40 +11:00
hiker
10f8f6b3a5 Removed unnecessary function, added some docs. 2015-10-27 16:46:26 +11:00
hiker
f7f12d5431 Renmated ServerConsole to NetworkConsole. 2015-10-27 16:38:22 +11: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
hiker
c511fc48af Added leak checking. 2015-10-27 08:44:28 +11:00
hiker
b47b8bd196 Removed empty file. 2015-10-27 08:25:52 +11:00
hiker
6297d8c65d Removed NetworkManager and ClientNetworkManager. 2015-10-27 08:23:59 +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
hiker
7d04cc78de Fixed printing of type name. 2015-10-27 00:26:14 +11:00
hiker
90b8db9993 Start to remove ClientNetworkManager. 2015-10-27 00:23:20 +11:00
hiker
a58f408a99 Merge branch 'refactor_networking' of https://github.com/supertuxkart/stk-code into refactor_networking 2015-10-26 21:31:11 +11:00
hiker
1e9afd473d Removed isClient/isServer from NetworkManager. 2015-10-26 21:30:41 +11:00
hiker
5564239773 Removed NetworkManager::run(). 2015-10-26 18:33:23 +11:00
hiker
b788aa6e95 Removed NetworkManager::isConnectedTO 2015-10-26 18:31:32 +11:00
hiker
d45d5a1051 Fixed type name debug print. 2015-10-26 18:29:28 +11:00
hiker
334780b5d7 Moved sendPacket from NetworkManager to STKHost. 2015-10-26 18:26:53 +11:00
hiker
51d39879b4 Moved NetworkManager::connect and STKPeer::connextTo functions into STKHost. 2015-10-26 18:01:07 +11:00
hiker
0bd2b48ea0 Removed sendPacket function and destructor. 2015-10-26 17:55:19 +11:00
hiker
cf51d2f0e0 Added missing object deletions. 2015-10-26 17:54:19 +11: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
hiker
4c0a195fdd Moved handling of peers from NetworkManager to STKHost. 2015-10-26 08:33:07 +11:00
hiker
c273e709eb Fixed linux compilation. 2015-10-26 08:25:43 +11:00
hiker
f610573295 Removed unnecessary function. 2015-10-25 20:28:35 +11:00
hiker
85cca69113 Moved GameSetup handling from NetworkManager to STKHost. 2015-10-25 00:19:30 +11:00
hiker
34f0d1b349 Moved public address data from NetworkManager to STKHost. 2015-10-24 23:30:34 +11:00
hiker
350f434c37 Started to refactor network code. 2015-10-24 12:39:17 +11:00
Marianne Gagnon
366a458a6b Remove a few unused files, see #2066 2015-10-22 19:13:41 -04:00
Elderme
4452661533 Removed singletons (objects added as DrawCalls members) 2015-10-22 18:09:11 +02: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
Elderme
51415ed43a Minor coding style improvements 2015-10-20 21:32:56 +02: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
Elderme
e609aa61fc Minor coding style improvements 2015-10-18 22:05:02 +02:00
Elderme
236d90c36d Modified templates in draw_tools to make them more generic and removed duplicated code 2015-10-18 19:20:05 +02:00
Elderme
73c0b010ff Started splitting geometry_passes in smaller files 2015-10-18 15:52:52 +02: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
Elderme
c1e709b320 Start moving draw calls generation into a dedicated class 2015-10-14 13:40:12 +02: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
Elderme
878570f7c1 Moved m_shadow_matrices from IrrDriver to Renderer class 2015-10-12 13:44:49 +02: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
Elderme
7590a90e67 Improved LightingPasses interfaces 2015-10-10 16:06:03 +02: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
Elderme
0ebadf7963 Improved LightingPasses interfaces 2015-10-09 22:19:57 +02: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
Elderme
84d3f19daf Improved coding style 2015-10-06 22:35:17 +02:00
Elderme
017c609154 Start removing dependency to irr_driver in LightingPasses class 2015-10-06 22:29:00 +02: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
Elderme
cf7bb82e8a Remove irr_driver dependency in GeometryPasses class 2015-10-04 13:58:54 +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
Elderme
ff6e6c8340 Merge branch 'master' into renderer_refactoring 2015-09-29 22:21:25 +02:00
Elderme
fcb485d3d8 Moved irr_driver geometry rendering functions into GeometryPasses class 2015-09-29 22:19:08 +02: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
Elderme
f56baaefcb split shader_based_renderer into smaller objects 2015-09-20 21:14:01 +02:00
Elderme
b7ab99e5e2 Merged with master and solved conflicts 2015-09-18 11:05:27 +02:00
Elderme
b2a23acd46 Moved more methods from irr_driver to renderer 2015-09-18 10:45:00 +02:00
Elderme
44adc14cff Removed debug meshes rendering methods in irr_driver (these methods are now in abstract_renderer class) 2015-09-07 22:31:34 +02:00
Elderme
417bfb89e9 Fixed compilation error with debug mode 2015-09-06 16:15:15 +02:00
Elderme
9916b9073b Fixed crash with fixed pipeline 2015-08-21 21:44:55 +02:00
Elderme
b411028210 Removed irr_driver renderFixed and renderGLSL methods: now render method from FixedPipelineRenderer or ShaderBasedRenderer is used 2015-08-21 14:00:00 +02:00
Elderme
c711ce117e Added new classes for rendering 2015-08-20 22:46:22 +02:00
Flakebi
586724c855 Merge branch 'master' into kart-properties
Conflicts:
	src/karts/kart.cpp
2015-08-19 12:03:43 +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
Flakebi
ec3083827d Add some documenation and try to get some backwards compatibility 2015-07-29 23:02:16 +02: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
Flakebi
324a93cd65 Fix karts without a type 2015-07-24 02:10:23 +02: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
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
Marianne Gagnon
3f167f6728 Do not load glossmaps when they are disabled 2015-03-26 18:31:16 -04:00
Vincent Lejeune
cbf9e03b41 honour vsync param 2015-02-01 19:43:43 +01:00
Vincent Lejeune
1844ab2a7c Fix attempt for void scene in non advanced pipeline 2015-02-01 19:38:47 +01:00
Vincent Lejeune
d2ececacf4 Delay sync 2015-02-01 19:23:05 +01:00
Vincent Lejeune
da449e02d0 Improve keypad support 2015-02-01 19:18:47 +01:00
Vincent Lejeune
73a8220203 Improve mouse support 2015-02-01 19:13:37 +01:00
Vincent Lejeune
874d63f5bc WIP wayland 2015-02-01 18:53:12 +01:00
nixt
887a86d3a6 Only set kart gravity when the material sets gravity. 2014-08-09 13:09:47 +05:30
nixt
cfa8e29523 Add comments. 2014-08-09 13:07:07 +05:30
nixt
c4cfb83150 enable sliding for upside down tracks. 2014-08-09 13:06:42 +05:30
nixt
e3dea1da02 Forgot to add // functionName 2014-08-07 15:34:20 +05:30
nixt
b4b2f6988b Add documentation and some cleanup. 2014-08-07 15:28:21 +05:30
nixt
c915f231ee Merge remote-tracking branch 'upstream/master' into walldriving
Conflicts:
	src/graphics/irr_driver.cpp
2014-08-07 01:38:42 +05:30
nixt
1f4ecc2464 Cleanup irr_driver.cpp and remove ai_debug from skidding_ai 2014-08-07 01:38:01 +05:30
nixt
058cec9f65 Make items align with the track triangle instead of the driveline quad. 2014-08-06 00:19:53 +05:30
nixt
1f435142db Merge remote-tracking branch 'upstream/master' into walldriving 2014-08-02 02:36:35 +05:30
nixt
8431fcfef2 Prevent crash in modes where there is no QuadGraph 2014-08-02 02:35:14 +05:30
nixt
f40fb50386 Fix "Wrong Direction" message 2014-08-01 04:01:28 +05:30
nixt
fbf002bfc6 Disable debug messages 2014-07-31 18:15:37 +05:30
nixt
21328d0e05 Fix a steering bug where the kart will try to steer back to the current quads center. 2014-07-31 01:07:37 +05:30
nixt
c05840f9ab Ground closeness is now checked using dist. between hitpoint and kart's xyz. Also disable rescue when debug flying. 2014-07-30 23:56:57 +05:30
nixt
5077540beb Avoid an assertion failure when re-aligning items, the angle is zero. 2014-07-30 23:55:37 +05:30
nixt
393aa86c31 Fix explosion animation 2014-07-29 01:53:21 +05:30
nixt
52f773f19b Disable debug messages. 2014-07-29 00:36:36 +05:30
nixt
5912dd2dd6 Merge remote-tracking branch 'upstream/master' into walldriving
Conflicts:
	src/karts/kart.cpp
2014-07-29 00:18:52 +05:30
nixt
4cc406062f Fix the initial raycast to make it go towards the track. 2014-07-25 20:31:42 +05:30
nixt
51a460e3cf Merge branch 'walldriving' of https://github.com/lurk26/stk-code into walldriving 2014-07-25 15:12:10 +05:30
nixt
051ee24173 Fix item orientation bug. Items should now appear correctly. 2014-07-25 15:11:49 +05:30
hiker
78cdc3bd69 Fixed rescue bug: the kart orientation adjustment would cause a collision
with the track on rescue. For now disable the orientation if the kart is
close to the ground. A proper solution will be implemented as part of the
soft-landing branch.
2014-07-24 21:38:58 +10:00
hiker
43124f05fe Merge branch 'walldriving' of github.com:lurk26/stk-code into walldriving 2014-07-24 21:38:33 +10:00
nixt
a8a6435657 Merge remote-tracking branch 'upstream/master' into walldriving 2014-07-23 20:14:21 +05:30
nixt
abd07e0dc5 Merge branch 'walldriving' of https://github.com/lurk26/stk-code into walldriving 2014-07-23 20:01:38 +05:30
nixt
2673e59844 Fix a bug where the rubber ball would collide with the ceiling in a tunnel. 2014-07-23 20:00:15 +05:30
nixt
f19afc98cf Fix plunger to work on vertical tracks. 2014-07-23 19:59:20 +05:30
hiker
0c49b87ed7 Merge remote-tracking branch 'upstream/master' into walldriving 2014-07-23 17:07:07 +10:00
hiker
de46494482 Merge branch 'walldriving' of github.com:lurk26/stk-code into walldriving 2014-07-23 08:12:53 +10:00
hiker
0ef42111bc Fixed rescue transform: the heading rotation need to be done around
(0,1,0), not around the normal, and the order of rotation needs to be
first the heading rotation, then pitch/roll to make the kart parallel
to the ground.
2014-07-23 08:11:30 +10:00
hiker
f0ea8a1a38 Simplify up-offset computation. 2014-07-23 08:03:10 +10:00
hiker
6c02849df3 Avoid use of quaternions, simplify rescue animation. Heading is currently
unchanged, but it looks ok-ish.
2014-07-23 08:02:13 +10:00
hiker
20603a2084 Try better computation of heading (which might be better if the kart
is not in the xz plane).
2014-07-23 07:59:47 +10:00
nixt
8a4911d41d Rubber ball (Basketball) now fixed for non-horizontal tracks. 2014-07-22 16:36:08 +05:30
hiker
413c062932 Simplify code by using the kart's normal. 2014-07-21 16:24:44 +10:00
nixt
6e2d92ec20 Remove old comment 2014-07-20 18:29:59 +05:30
nixt
97c628faca New implementation for the cake throwing code that finds the angle velocity of the cake to hit a target in an arbitrary orientation. 2014-07-20 18:27:51 +05:30
nixt
c0c4dab805 Update rubber ball for non-horizontal tracks 2014-07-20 18:24:47 +05:30
nixt
8d7f09e037 Update bowling ball to follow the track. Also updated cake, but it needs more work. 2014-07-16 10:58:40 +05:30
nixt
cf354e2828 set m_glsl = false; because AI_DEBUG not supported in the new pipeline. 2014-07-15 13:39:19 +05:30
nixt
cd7a46cefd Merge remote-tracking branch 'upstream/master' into walldriving 2014-07-11 12:45:51 +05:30
nixt
c7d4a8c85c Disabled AI_DEBUG because its currently not supported. 2014-07-10 00:38:14 +05:30
nixt
732c3a4b2f Merge remote-tracking branch 'upstream/master' into walldriving
Conflicts:
	src/graphics/irr_driver.cpp
	src/karts/kart.cpp
2014-07-09 23:40:26 +05:30
nixt
6fc144dd8a Item collection and avoidance now works with 3D tracks!
Also improved AI steering where it would cut corners too aggressively.
2014-07-09 23:22:20 +05:30
nixt
2556ef2246 Increase value of m_distance_2 in Item.hpp (needs testing/tweaking)
Increase value of m_distance_2 because distances from a 3D line as
checked in hitLine() can be greater but the kart may still hit the item.
This may need to be tweaked.
2014-07-09 23:07:17 +05:30
nixt
523d38c76b Change hitLine so that it checks for closeness with a 3D line. 2014-07-09 23:02:25 +05:30
nixt
504360ef7e Correct getDistance and m_line for 3D.
Line joining lower_center to upper_center of quad is now a 3D line.
getDistances is now fixed to return the correct distance of a point from
m_line and with the correct direction.
2014-07-09 22:56:01 +05:30
nixt
9220d50035 Revert "Correct spatialToTrack and getDistances to work in 3D."
This reverts commit 5f15138247.
2014-07-09 00:09:48 +05:30
nixt
5f15138247 Correct spatialToTrack and getDistances to work in 3D. 2014-07-04 21:41:12 +05:30
nixt
2985974f83 Tilt items on track 2014-07-04 21:40:23 +05:30
nixt
dbe4cd02fa First attempt at correcting the rescue animation. 2014-07-04 12:43:34 +05:30
nixt
437f8191f4 Fix a bug where the kart's wheels would intersect with the road when rescued to an upside location. 2014-07-03 17:24:04 +05:30
nixt
184e45bb6d Correct the landing after rescue for non-horizontal tracks. 2014-07-03 11:13:49 +05:30
nixt
64c2292051 Revert "Some smoothing to the changing gravity.."
This reverts commit 8011f5b40d.
2014-06-30 19:18:48 +05:30
nixt
4c8e67556c Merge remote-tracking branch 'upstream/master' into walldriving 2014-06-30 17:44:41 +05:30
nixt
8011f5b40d Some smoothing to the changing gravity.. 2014-06-30 17:41:20 +05:30
nixt
4b303814fa Some cleanup 2014-06-30 16:43:51 +05:30
nixt
1aaf3fbcc5 Fix a bug in code related to alternate paths. 2014-06-30 16:43:28 +05:30
nixt
4b36197787 Fixed reverse mode. 2014-06-30 16:42:20 +05:30
nixt
1bf287d4cc Avoid use of C++11 std::array. 2014-06-28 16:17:09 +05:30
nixt
450d8d1ed2 Enable AI to take alternate paths. More testing needed. 2014-06-28 16:16:24 +05:30
nixt
e0d2777c7d [Optimization] Moved code for computing quad bounding boxes to constructor. 2014-06-23 12:47:24 +05:30
nixt
0a66a6f7dd Workaround to enable visual aids for track debugging. 2014-06-22 18:05:16 +05:30
nixt
55617da42c Merge remote-tracking branch 'upstream/master' into walldriving
Conflicts:
	src/graphics/irr_driver.cpp
2014-06-22 18:03:52 +05:30
nixt
c489f5ca19 Fix compilation problem in linux 2014-06-22 17:16:23 +05:30
nixt
3a7fc1e0f9 The AI can now finally drive a loop in newton. 2014-06-22 13:09:05 +05:30
nixt
c1dd87d95b Fix copy-paste error in pointInQuad function. 2014-06-22 13:07:38 +05:30
nixt
be43273f80 Change how angle_to_track is determined. Now it uses the kart velocity instead of the heading. 2014-06-22 11:51:58 +05:30
nixt
f1c675fce9 Adjust angle to next computation to work with 3D quads. 2014-06-22 11:49:29 +05:30
nixt
70ad2d58db Remove test for vertical distance of kart from sector. 2014-06-22 11:43:54 +05:30
nixt
fc7692819a Adapt steerToPoint to work in 3D 2014-06-19 18:12:25 +05:30
nixt
652af9a0a1 Adapt findNonCrashingPoint to work in 3d 2014-06-19 18:12:10 +05:30
nixt
0c3cded260 get distances would crash by accessing m_node_index + quad_idx . This quad does not exist when m_node_index is the last quad. 2014-06-19 18:11:18 +05:30
nixt
2249a73c50 Fix flattened quads. rotateVect was reading and writing to the same location earlier. 2014-06-19 18:07:52 +05:30
nixt
a06ec9407a New function GraphNode::getDistanceUnrolled to find distances from the unrolled quads 2014-06-18 08:45:16 +05:30
nixt
c3eae006f9 New function spatialToTrackUnrolled to track points on the unrolled quads. 2014-06-18 08:44:06 +05:30
nixt
46638c0d83 Change function name to an appropriate one. 2014-06-18 08:42:24 +05:30
nixt
7acfec7866 Some utility functions. 2014-06-17 13:29:39 +05:30
nixt
886345b818 Unrolled quads are now almost correct.
After continuous trial and error, dropped using the flattened quads as
it was causing the quads to shear (not sure why). Now unrolled quads
have orientation in 3D starting from the parent quad.
2014-06-17 12:44:42 +05:30
nixt
374b8753b4 Drop the Y (set to 0) value for flattened quads 2014-06-16 17:04:16 +05:30
nixt
ce0a3db195 Fix unrolled quads 2014-06-16 17:03:31 +05:30
nixt
39f76b02ff Temporary function to create a debug mesh for unrolled quads 2014-06-16 14:38:03 +05:30
nixt
40f205dd0f Function to get a point transformed to the reference of the flattened quad 2014-06-16 12:14:38 +05:30
nixt
306e856464 Build a vector of unrolled quads for each graph node. 2014-06-16 10:05:37 +05:30
nixt
64b21b0fff Flattening of quads. Each quad now has a n associated flattened (rotated) quad which is more or less in the XZ plane. 2014-06-14 02:53:20 +05:30
nixt
4ce4861925 Do not reset gravity when kart is flying.
Simply commented out setGravity(), will do a proper cleanup once fully
tested.
2014-06-14 02:52:29 +05:30
nixt
94481097b6 Temporary workaround to make track debug work. 2014-06-12 10:08:02 +05:30
nixt
def4b27124 Fix inverted sign on quad normals and epsilon. 2014-06-12 10:05:38 +05:30
nixt
5ba60d4c36 Merge remote-tracking branch 'upstream/master' into walldriving 2014-06-12 06:29:29 +05:30
nixt
f3a5677e78 Using quad normals to find material and set gravity. (not yet functional) 2014-06-12 06:23:05 +05:30
nixt
b5017dd452 Revert "New function in AIBaseController and PlayerController(previous commit) that returns the normal of the current quad."
This reverts commit 2e27e0065d.
2014-06-12 04:56:10 +05:30
nixt
579c26048b Revert "Tracking of Player kart on the quad graph."
This reverts commit 10a124825c.
2014-06-12 04:55:21 +05:30
nixt
9e95fb4a7a Update terrain info based on start position and a direction. 2014-06-09 17:44:39 +05:30
nixt
2e27e0065d New function in AIBaseController and PlayerController(previous commit) that returns the normal of the current quad. 2014-06-08 03:02:16 +05:30
nixt
10a124825c Tracking of Player kart on the quad graph.
This is needed because the player kart's gravity will also be adjusted
depending on which quad(track node) it is on.
2014-06-08 02:48:20 +05:30
nixt
182122720e Undo workaround for operator-(Vec3, btVector3) and remove Log message for debugging. 2014-06-06 06:43:41 +05:30
nixt
b81a8fb0a7 Forgot to change all instances of pointInQuad to pointInQuad3D 2014-06-06 05:41:13 +05:30
nixt
377c84547e Merge remote-tracking branch 'upstream/master' into walldriving 2014-06-06 05:19:32 +05:30
nixt
527a8d674b 3D kart localization implemented. 2014-06-06 05:15:11 +05:30
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
hikerstk
891df54f3a Fixed rewind (events had a time stamp after increasing world clock,
while states had a time stamp before world clock was updated).
Still all work in progress ;)


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/rewind@14138 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-09-23 06:57:32 +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
hikerstk
cb46fad124 1) Fixed time when state snapshots are taken (must be before the physics runs)
2) Added support for storing the exact time step sizes (probably only for
   debugging - since now we can try to have bitwise identical results when
   replaying).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/rewind@13631 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-09-04 22:06:26 +00:00
hikerstk
c4d120e1b3 Stored the time stamp of the main simulation, so that during
a rewind the same time steps can be taken (that's mostly meant
for debugging).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/rewind@13534 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-08-21 21:42:18 +00:00
hikerstk
0730359c3d Fixed bug in restoring kart controls. Added restoring
controls to kart controller.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/rewind@13486 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-08-15 22:54:57 +00:00
hikerstk
f78cb2d1f2 Rewinding now can replay states and events, though there are
still (initially) minor differences (caused most likely by
the controls not set at the right time (i.e. one frame too
early or too late).


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/rewind@13484 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-08-15 06:23:08 +00:00
hikerstk
8ed8963c63 Documented the main loop of STK.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/rewind@13483 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-08-15 06:20:31 +00:00
hikerstk
999d2dd82c Add the control settings to the state, that solves
the problem of determining the control states when
rewinding.


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/rewind@13482 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-08-15 06:19:35 +00:00
hikerstk
47b170ffb3 Bug- and style-fixes - looks like I committed incorrect files.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/rewind@13471 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-08-13 00:02:51 +00:00
hikerstk
9fe8d0f259 Started to work on rewinding. ATM a single kart can be rewound
to a previous time (i.e. the race continuous from the previous
location). No memory handling is done, ... all work in progress :)


git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/rewind@13468 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-08-12 23:29:21 +00:00
hikerstk
c787926e04 Created branch for rewinding.
git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/branches/rewind@13467 178a84e3-b1eb-0310-8ba1-8eac791a3b58
2013-08-12 13:08:23 +00:00
5740 changed files with 1563514 additions and 626248 deletions

53
.github/ISSUE_TEMPLATE.md vendored Normal file
View File

@@ -0,0 +1,53 @@
<!--
*** Please fill in the fields below. Remove any placeholders that are unused/not applicable.
-->
## Description
<!-- Provide a description of your issue.
For any suggestions, please address them on the forum: https://forum.freegamedev.net/viewforum.php?f=16 -->
## Steps to reproduce
<!-- List any required steps to reproduce the issue here -->
## Configuration
<!-- Please specify the version of STK you are using. The version can be found in the "About" screen. -->
STK release version:
<!-- Please specify where you downloaded STK -->
STK Source (PPA, distribution package, official binary, etc.):
System:
Graphics card:
CPU:
Gamepads/keyboards models if related to the issue:
## Additional information
<!--
Please provide stdout.log, it is located in:
* %appdata%\supertuxkart\config-0.10 (Windows)
* ~/Library/Application Support/supertuxkart/config-0.10 (mac)
* $XDG_CONFIG_HOME/supertuxkart/config-0.10 or ~/.config/supertuxkart/config-0.10 (Linux and other unix based systems)
-->
stdout.log:
```
```
<!-- If your issue is related to the input config (gamepads, keyboards), please provide your file input.xml located in the same directory as stdout.log. -->
input.xml:
```xml
```
<!-- If an error message was shown, please paste the complete error message, or a screenshot of it. -->
Error message:
```
```

11
.github/PULL_REQUEST_TEMPLATE.md vendored Normal file
View File

@@ -0,0 +1,11 @@
## Agreement
```
By creating a pull request in stk-code, you hereby agree to dual-license your contribution as
GNU General Public License version 3 or any later version and
Mozilla Public License version 2 or any later version.
This includes your previous contribution(s) under the same name of contributor.
Keep the above statement in the pull request comment for agreement.
```

186
.github/workflows/apple.yml vendored Normal file
View File

@@ -0,0 +1,186 @@
name: apple
on:
push:
branches:
- master
tags:
- '*'
pull_request: {}
workflow_dispatch:
jobs:
build:
strategy:
fail-fast: true
matrix:
platform: [iPhoneOS, MacOSX]
arch: [arm64, x86_64]
exclude:
- platform: iPhoneOS
arch: x86_64
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
submodules: true
- id: sysroot
uses: ASzc/change-string-case-action@v1
with:
string: ${{ matrix.platform }}
- name: Download cctools
run: |
cd /opt
wget https://github.com/supertuxkart/dependencies/releases/download/preview/cctools.tar.xz
tar xf cctools.tar.xz
- name: Restore timestamps
run: |
wget https://github.com/MestreLion/git-tools/archive/refs/heads/main.zip
unzip main.zip
python git-tools-main/git-restore-mtime
- name: List build cache restore keys
run: |
# Look for the last 9 build caches (GitHub supports max 10 including current one)
for number in 1 2 3 4 5 6 7 8 9
do
id=$((${{ github.run_number }} - number))
echo "cache_$number=apple-${{ github.ref }}-${{ matrix.arch }}-${{ matrix.platform }}-$id" >> $GITHUB_ENV
done
- name: Handle build cache
uses: actions/cache@v2
with:
path: |
build
key: apple-${{ github.ref }}-${{ matrix.arch }}-${{ matrix.platform }}-${{ github.run_number }}
restore-keys: |
${{ env.cache_1 }}
${{ env.cache_2 }}
${{ env.cache_3 }}
${{ env.cache_4 }}
${{ env.cache_5 }}
${{ env.cache_6 }}
${{ env.cache_7 }}
${{ env.cache_8 }}
${{ env.cache_9 }}
- name: Download dependencies
run: |
wget https://github.com/supertuxkart/dependencies/releases/download/preview/dependencies-${{ steps.sysroot.outputs.lowercase }}.tar.xz
tar xf dependencies-${{ steps.sysroot.outputs.lowercase }}.tar.xz
- name: Configure clang runtime name
run: |
if [ ${{ matrix.platform }} = "MacOSX" ]; then
echo "rt=osx" >> $GITHUB_ENV
elif [ ${{ matrix.platform }} = "iPhoneOS" ]; then
echo "rt=ios" >> $GITHUB_ENV
elif [ ${{ matrix.platform }} = "AppleTVOS" ]; then
echo "rt=tvos" >> $GITHUB_ENV
elif [ ${{ matrix.platform }} = "iPhoneSimulator" ]; then
echo "rt=iossim" >> $GITHUB_ENV
elif [ ${{ matrix.platform }} = "AppleTVSimulator" ]; then
echo "rt=tvossim" >> $GITHUB_ENV
fi
- name: Configure bulid
run: |
mkdir -p build
cd build
cmake .. -DCCTOOLS_PREFIX=/opt/cctools -DCCTOOLS_ARCH=${{ matrix.arch }} -DCCTOOLS_PLATFORM=${{ matrix.platform }} \
-DRT=/opt/cctools/darwin/libclang_rt.${{ env.rt }}.a -DCMAKE_TOOLCHAIN_FILE=../cmake/Toolchain-cctools.cmake -DCHECK_ASSETS=OFF
- name: Build
run: |
cd build
make -j4
mv bin ../${{ steps.sysroot.outputs.lowercase }}-${{ matrix.arch }}
- name: Upload binaries
uses: actions/upload-artifact@v2
with:
name: ${{ steps.sysroot.outputs.lowercase }}-${{ matrix.arch }}
path: ${{ steps.sysroot.outputs.lowercase }}-${{ matrix.arch }}
packaging:
name: Packaging STK
needs: build
runs-on: macos-latest
steps:
- name: Configure packaging name for git master branch
if: ${{ github.ref == 'refs/heads/master' }}
run: |
echo "release_tag=git`date +%Y%m%d`" >> $GITHUB_ENV
echo "release_name=preview" >> $GITHUB_ENV
- name: Configure packaging name for tag
if: ${{ startsWith(github.ref, 'refs/tags/') }}
run: |
echo "release_tag=`basename $GITHUB_REF`" >> $GITHUB_ENV
echo "release_name=`basename $GITHUB_REF`" >> $GITHUB_ENV
- name: Configure packaging name for non-releasing branch
if: ${{ (github.ref != 'refs/heads/master' && !startsWith(github.ref, 'refs/tags/')) || github.repository_owner != 'supertuxkart' }}
run: |
echo "release_tag=" >> $GITHUB_ENV
echo "release_name=" >> $GITHUB_ENV
- name: Check for prerelease
if: ${{ github.ref == 'refs/heads/master' || contains(github.ref, 'rc') || contains(github.ref, 'beta') }}
run: |
echo "release_pre=true" >> $GITHUB_ENV
- name: Check for non-prerelease
if: ${{ github.ref != 'refs/heads/master' && !contains(github.ref, 'rc') && !contains(github.ref, 'beta') }}
run: |
echo "release_pre=false" >> $GITHUB_ENV
- name: Show packaging name
run : |
echo "${{ env.release_tag }}"
echo "${{ env.release_name }}"
echo "${{ env.release_pre }}"
- name: Download binaries
uses: actions/download-artifact@v2
- name: Mask developer name
run: |
echo "::add-mask::${{ secrets.MAC_DEVELOPER_NAME }}"
- name: Import certificates
if: ${{ env.release_tag != '' }}
uses: apple-actions/import-codesign-certs@v1
with:
p12-file-base64: ${{ secrets.MAC_DEVELOPER_ID_P12_FILE }}
p12-password: ${{ secrets.MAC_DEVELOPER_ID_P12_PASSWORD }}
- name: Run dylibbundler and sign STK
if: ${{ env.release_tag != '' }}
env:
developer_id: "Developer ID Application: ${{ secrets.MAC_DEVELOPER_NAME }} (${{ secrets.MAC_DEVELOPER_TEAM }})"
run: |
wget https://github.com/supertuxkart/dependencies/releases/download/preview/dependencies-macosx.tar.xz
tar xf dependencies-macosx.tar.xz
HOMEBREW_NO_AUTO_UPDATE=1 brew install dylibbundler
lipo -create ./macosx-x86_64/supertuxkart.app/Contents/MacOS/supertuxkart ./macosx-arm64/supertuxkart.app/Contents/MacOS/supertuxkart -output ./macosx-arm64/supertuxkart.app/Contents/MacOS/supertuxkart
chmod 755 ./macosx-arm64/supertuxkart.app/Contents/MacOS/supertuxkart
dylibbundler -od -b -x ./macosx-arm64/supertuxkart.app/Contents/MacOS/supertuxkart -d ./macosx-arm64/supertuxkart.app/Contents/libs/ -p @executable_path/../libs/ -s dependencies-macosx/lib
# We use SDL_Vulkan_LoadLibrary for 10.9 compatibility, so otool -L supertuxkart has no libMoltenVK.dylib
cp ./dependencies-macosx/lib/libMoltenVK.dylib ./macosx-arm64/supertuxkart.app/Contents/libs/
cd ./macosx-arm64/supertuxkart.app/Contents/Resources/data
wget https://github.com/supertuxkart/stk-assets-mobile/releases/download/git/stk-assets-full.zip
unzip stk-assets-full.zip
rm stk-assets-full.zip
cd ../../../../..
mv ./macosx-arm64/supertuxkart.app SuperTuxKart.app
codesign --force --sign "$developer_id" SuperTuxKart.app/Contents/libs/*.dylib
codesign --force --options=runtime --deep --sign "$developer_id" SuperTuxKart.app
- name: "Notarize release build"
if: ${{ env.release_tag != '' && github.ref != 'refs/heads/master' }}
run: |
ditto -c -k --sequesterRsrc --keepParent SuperTuxKart.app tmp.zip
xcrun notarytool submit tmp.zip --apple-id ${{ secrets.STK_NOTARIZATION_USERNAME }} \
--password ${{ secrets.STK_NOTARIZATION_PASSWORD }} \
--team-id ${{ secrets.MAC_DEVELOPER_TEAM }} --wait
xcrun stapler staple SuperTuxKart.app
- name: Archive
if: ${{ env.release_tag != '' }}
run: |
ditto -c -k --sequesterRsrc --keepParent SuperTuxKart.app SuperTuxKart-${{ env.release_tag }}-mac.zip
- name: Create release
if: ${{ env.release_tag != '' }}
uses: ncipollo/release-action@v1.8.8
with:
token: ${{ secrets.GITHUB_TOKEN }}
artifacts: "SuperTuxKart*.zip"
tag: ${{ env.release_name }}
omitBodyDuringUpdate: true
omitNameDuringUpdate: true
allowUpdates: true
prerelease: ${{ env.release_pre }}

169
.github/workflows/linux.yml vendored Normal file
View File

@@ -0,0 +1,169 @@
# Copyright (C) 2020-2021 Jacob Burroughs <maths22@gmail.com>
# 2020-2021 A. Semphris <semphris@protonmail.com>
#
# Released under the Creative Commons Zero (CC0) license, available at:
# Legal code: https://creativecommons.org/publicdomain/zero/1.0/legalcode
# Information: https://creativecommons.org/share-your-work/public-domain/cc0/
# Note: Parts of this code were taken from the SuperTux project.
# ~ Semphris (responsible for transfering and adapting the file)
name: linux
on:
push:
branches:
- master
tags:
- '*'
pull_request: {}
workflow_dispatch:
jobs:
build:
strategy:
fail-fast: true
matrix:
os: [ubuntu-latest]
compiler: [gcc, clang]
build_type: [Debug, Release]
server_only: [ON, OFF]
exclude:
- os: macos-latest
compiler: gcc
- os: macos-latest
build_type: Debug
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 1
submodules: true
- name: Configure packaging name for git master branch
if: ${{ matrix.build_type == 'Release' && matrix.server_only == 'OFF' &&
github.ref == 'refs/heads/master' }}
run: |
echo "release_tag=git`date +%Y%m%d`" >> $GITHUB_ENV
echo "release_name=preview" >> $GITHUB_ENV
- name: Configure packaging name for tag
if: ${{ matrix.build_type == 'Release' && matrix.server_only == 'OFF' &&
startsWith(github.ref, 'refs/tags/') }}
run: |
echo "release_tag=`basename $GITHUB_REF`" >> $GITHUB_ENV
echo "release_name=`basename $GITHUB_REF`" >> $GITHUB_ENV
- name: Configure packaging name for non-releasing branch
if: ${{ matrix.build_type != 'Release' || matrix.server_only != 'OFF' ||
!(github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/')) ||
github.repository_owner != 'supertuxkart' }}
run: |
echo "release_tag=" >> $GITHUB_ENV
echo "release_name=" >> $GITHUB_ENV
- name: Check for prerelease
if: ${{ github.ref == 'refs/heads/master' || contains(github.ref, 'rc') || contains(github.ref, 'beta') }}
run: |
echo "release_pre=true" >> $GITHUB_ENV
- name: Check for non-prerelease
if: ${{ github.ref != 'refs/heads/master' && !contains(github.ref, 'rc') && !contains(github.ref, 'beta') }}
run: |
echo "release_pre=false" >> $GITHUB_ENV
- name: Show packaging name
run : |
echo "${{ env.release_tag }}"
echo "${{ env.release_name }}"
echo "${{ env.release_pre }}"
- name: Install linux dependencies
if: ${{ matrix.os == 'ubuntu-latest' }}
run: |
sudo apt-get update
sudo apt install -y build-essential cmake libbluetooth-dev libcurl4-gnutls-dev \
libfreetype6-dev libharfbuzz-dev libjpeg-dev libogg-dev libopenal-dev \
libpng-dev libsdl2-dev libvorbis-dev pkg-config zlib1g-dev clang
- name: Install dylibbundler for packaging osx binary
if: ${{ env.release_tag != '' && matrix.os == 'macos-latest' && matrix.build_type == 'Release' && matrix.server_only == 'OFF' }}
run: |
HOMEBREW_NO_AUTO_UPDATE=1 brew install dylibbundler
- name: Install macos dependencies
if: ${{ matrix.os == 'macos-latest' }}
run: |
# Something funky happens with freetype if mono is left
sudo mv /Library/Frameworks/Mono.framework /Library/Frameworks/Mono.framework-disabled
wget https://github.com/supertuxkart/dependencies/releases/download/preview/dependencies-mac.tar.xz
# Remove any existing installation to avoid conflict with bundled dependencies
rm -rf /usr/local/include/*
rm -rf /usr/local/opt/openssl@1.1/include
rm -rf /usr/local/opt/freetype
rm -rf /usr/local/opt/harfbuzz
tar xf dependencies-mac.tar.xz -C /usr/local
rm dependencies-mac.tar.xz
- name: Set compiler (gcc)
if: ${{ matrix.os == 'ubuntu-latest' && matrix.compiler == 'gcc' }}
run: |
echo "CXX=g++" >> $GITHUB_ENV
echo "CC=gcc" >> $GITHUB_ENV
- name: Set compiler (clang)
if: ${{ matrix.os == 'ubuntu-latest' && matrix.compiler == 'clang' }}
run: |
echo "CXX=clang++" >> $GITHUB_ENV
echo "CC=clang" >> $GITHUB_ENV
- name: Set compiler (macos)
if: ${{ matrix.os == 'macos-latest' }}
run: |
# This ensures for now we use clang11
# Clang12 runs into a bunch of fun with `include location '/usr/local/include' is unsafe for cross-compilation`
# that we don't care about for now
echo "CXX=clang++" >> $GITHUB_ENV
echo "CC=clang" >> $GITHUB_ENV
- name: Configure bulid (linux)
if: ${{ matrix.os != 'macos-latest' }}
env:
BUILD_TYPE: ${{ matrix.build_type }}
SERVER_ONLY: ${{ matrix.server_only }}
run: |
cmake --version
$CXX --version
mkdir "build"
cd "build"
cmake .. -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DSERVER_ONLY=$SERVER_ONLY -DCHECK_ASSETS=off -DBUILD_RECORDER=off;
- name: Configure bulid (macos)
if: ${{ matrix.os == 'macos-latest' }}
env:
BUILD_TYPE: ${{ matrix.build_type }}
SERVER_ONLY: ${{ matrix.server_only }}
run: |
cmake --version
$CXX --version
mkdir "build"
cd "build"
CFLAGS="-mmacosx-version-min=10.9" CXXFLAGS="-mmacosx-version-min=10.9" LINKFLAGS="-mmacosx-version-min=10.9" LDFLAGS="-mmacosx-version-min=10.9" /usr/local/opt/cmake/bin/cmake .. -DCMAKE_OSX_DEPLOYMENT_TARGET=10.9 -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DSERVER_ONLY=$SERVER_ONLY -DCHECK_ASSETS=off -DBUILD_RECORDER=off;
- name: Build and install
working-directory: build
run: |
make -j3 VERBOSE=1
make install DESTDIR="/tmp/stk" VERBOSE=1
- name: Packaging (macos)
if: ${{ env.release_tag != '' && matrix.os == 'macos-latest' && matrix.build_type == 'Release' && matrix.server_only == 'OFF' }}
working-directory: build
run: |
/usr/local/opt/dylibbundler/bin/dylibbundler -od -b -x ./bin/SuperTuxKart.app/Contents/MacOS/supertuxkart -d ./bin/SuperTuxKart.app/Contents/libs/ -p @executable_path/../libs/
wget https://github.com/supertuxkart/stk-assets-mobile/releases/download/git/stk-assets-full.zip
unzip stk-assets-full.zip -d ../data
rm stk-assets-full.zip
cd bin
# Fix the name on case insensitive filesystem
mv supertuxkart.app stk.app
mv stk.app SuperTuxKart.app
zip -r ../SuperTuxKart-${{ env.release_tag }}-mac.zip .
- name: Create Release (macos)
if: ${{ env.release_tag != '' && matrix.os == 'macos-latest' && matrix.build_type == 'Release' && matrix.server_only == 'OFF' }}
uses: ncipollo/release-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
artifacts: "build/SuperTuxKart-${{ env.release_tag }}-mac.zip"
tag: ${{ env.release_name }}
omitBodyDuringUpdate: true
omitNameDuringUpdate: true
allowUpdates: true
prerelease: ${{ env.release_pre }}

113
.github/workflows/switch.yml vendored Normal file
View File

@@ -0,0 +1,113 @@
name: switch
on:
push:
branches:
- master
- feature/gh-actions-switch-cache
tags:
- '*'
pull_request: {}
workflow_dispatch:
jobs:
build_switch:
name: Build Switch
runs-on: ubuntu-latest
container:
image: 'devkitpro/devkita64'
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
# We need 0 so we get all commits for mtime!
fetch-depth: 0
path: "./stk-code"
- name: Grab assets
run: |
wget -q https://github.com/supertuxkart/stk-assets-mobile/releases/download/git/stk-assets-full.zip
unzip -q stk-assets-full.zip -d stk-assets
rm stk-assets-full.zip
- name: Restore modified date
run: |
cd stk-code
git restore-mtime .
cd ..
# Env setup!
- name: Configure packaging name for git master branch
if: ${{ github.ref == 'refs/heads/master' }}
run: |
echo "release_tag=git`date +%Y%m%d`" >> $GITHUB_ENV
echo "release_name=preview" >> $GITHUB_ENV
- name: Configure packaging name for tag
if: ${{ startsWith(github.ref, 'refs/tags/') }}
run: |
echo "release_tag=`basename $GITHUB_REF`" >> $GITHUB_ENV
echo "release_name=`basename $GITHUB_REF`" >> $GITHUB_ENV
- name: Configure packaging name for non-releasing branch
if: ${{ (github.ref != 'refs/heads/master' && !startsWith(github.ref, 'refs/tags/')) || github.repository_owner != 'supertuxkart' }}
run: |
echo "release_tag=" >> $GITHUB_ENV
echo "release_name=" >> $GITHUB_ENV
- name: Check for prerelease
if: ${{ github.ref == 'refs/heads/master' || contains(github.ref, 'rc') || contains(github.ref, 'beta') }}
run: |
echo "release_pre=true" >> $GITHUB_ENV
- name: Check for non-prerelease
if: ${{ github.ref != 'refs/heads/master' && !contains(github.ref, 'rc') && !contains(github.ref, 'beta') }}
run: |
echo "release_pre=false" >> $GITHUB_ENV
- name: Show packaging name
run : |
echo "${{ env.release_tag }}"
echo "${{ env.release_name }}"
echo "${{ env.release_pre }}"
- name: List build cache restore keys
shell : bash
run: |
# Look for the last 9 build caches (GitHub supports max 10 including current one)
for number in 1 2 3 4 5 6 7 8 9
do
id=$((${{ github.run_number }} - number))
echo "cache_$number=switch-${{ github.ref }}-$id" >> $GITHUB_ENV
done
- name: Handle build cache
uses: actions/cache@v2
with:
# This is unnecessarily verbose and might break, but again ! seems broken
# See: https://github.com/Mstrodl/stk-code/runs/2333673736?check_suite_focus=true#step:16:34
path: |
stk-code/cmake_build/CMakeFiles
stk-code/cmake_build/Makefile
stk-code/cmake_build/lib
stk-code/cmake_build/bin/supertuxkart
stk-code/cmake_build/*.cmake
stk-code/cmake_build/*.txt
# Make sure PRs can't overwrite!
key: switch-${{ github.ref }}-${{ github.run_number }}
restore-keys: |
${{ env.cache_1 }}
${{ env.cache_2 }}
${{ env.cache_3 }}
${{ env.cache_4 }}
${{ env.cache_5 }}
${{ env.cache_6 }}
${{ env.cache_7 }}
${{ env.cache_8 }}
${{ env.cache_9 }}
- name: Run build script
run: |
cd stk-code/switch
PROJECT_VERSION="${{ env.release_tag }}" ./make.sh
- name: Create release
uses: ncipollo/release-action@v1.8.8
if: ${{ env.release_tag != '' }}
with:
token: ${{ secrets.GITHUB_TOKEN }}
artifacts: "stk-code/cmake_build/bin/SuperTuxKart-${{ env.release_tag }}-switch.zip"
tag: ${{ env.release_name }}
omitBodyDuringUpdate: true
omitNameDuringUpdate: true
allowUpdates: true
prerelease: ${{ env.release_pre }}

298
.github/workflows/windows.yml vendored Normal file
View File

@@ -0,0 +1,298 @@
name: windows
on:
push:
branches:
- master
tags:
- '*'
pull_request: {}
workflow_dispatch:
jobs:
build:
strategy:
fail-fast: true
matrix:
arch: [i686, x86_64, armv7, aarch64]
os: [windows-latest, ubuntu-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
submodules: false
- name: Set up environment for windows-latest
shell : bash
if: ${{ matrix.os == 'windows-latest' }}
run: |
echo "wget=C:\msys64\usr\bin\wget.exe" >> $GITHUB_ENV
echo "unzip=unzip" >> $GITHUB_ENV
if [ ${{ matrix.arch }} = "i686" ]; then
echo "cmake_arch=Win32" >> $GITHUB_ENV
elif [ ${{ matrix.arch }} = "x86_64" ]; then
echo "cmake_arch=x64" >> $GITHUB_ENV
elif [ ${{ matrix.arch }} = "armv7" ]; then
echo "cmake_arch=ARM" >> $GITHUB_ENV
else
echo "cmake_arch=ARM64" >> $GITHUB_ENV
fi
- name: Set up environment for ubuntu-latest
if: ${{ matrix.os == 'ubuntu-latest' }}
run: |
echo "wget=wget" >> $GITHUB_ENV
echo "unzip=unzip" >> $GITHUB_ENV
- name: Restore timestamps
run: |
${{ env.wget }} https://github.com/MestreLion/git-tools/archive/refs/heads/main.zip
${{ env.unzip }} main.zip
python git-tools-main/git-restore-mtime
- name: List build cache restore keys
shell : bash
run: |
# Look for the last 9 build caches (GitHub supports max 10 including current one)
for number in 1 2 3 4 5 6 7 8 9
do
id=$((${{ github.run_number }} - number))
echo "cache_$number=windows-${{ github.ref }}-${{ matrix.arch }}-${{ matrix.os }}-$id" >> $GITHUB_ENV
done
- name: Handle build cache
uses: actions/cache@v2
with:
path: |
build
key: windows-${{ github.ref }}-${{ matrix.arch }}-${{ matrix.os }}-${{ github.run_number }}
restore-keys: |
${{ env.cache_1 }}
${{ env.cache_2 }}
${{ env.cache_3 }}
${{ env.cache_4 }}
${{ env.cache_5 }}
${{ env.cache_6 }}
${{ env.cache_7 }}
${{ env.cache_8 }}
${{ env.cache_9 }}
- name: Download dependencies
run: |
${{ env.wget }} https://github.com/supertuxkart/dependencies/releases/download/preview/dependencies-win-${{ matrix.arch }}.zip
${{ env.unzip }} dependencies-win-${{ matrix.arch }}.zip
- name: Install MinGW for i686 or x86_64
if: ${{ matrix.os == 'ubuntu-latest' && ( matrix.arch == 'i686' || matrix.arch == 'x86_64' ) }}
run: |
cd /
sudo mkdir -p /data/mxe/usr
cd /data/mxe/usr
# It's compiled from https://github.com/mxe/mxe
sudo wget https://github.com/supertuxkart/dependencies/releases/download/preview/mxe_static_mingw.zip
sudo unzip mxe_static_mingw.zip
sudo rm mxe_static_mingw.zip
- name: Install MinGW for armv7 or aarch64
if: ${{ matrix.os == 'ubuntu-latest' && ( matrix.arch == 'armv7' || matrix.arch == 'aarch64' ) }}
run: |
cd /
sudo wget https://github.com/mstorsjo/llvm-mingw/releases/download/20210423/llvm-mingw-20210423-msvcrt-ubuntu-18.04-x86_64.tar.xz
sudo tar xf llvm-mingw-20210423-msvcrt-ubuntu-18.04-x86_64.tar.xz
sudo mv llvm-mingw-20210423-msvcrt-ubuntu-18.04-x86_64 llvm-mingw
- name: Set up MinGW Toolchain for i686
if: ${{ matrix.os == 'ubuntu-latest' && matrix.arch == 'i686' }}
run: |
echo "SET(CMAKE_SYSTEM_NAME Windows)" > toolchain.cmake
echo "SET(CMAKE_C_COMPILER /data/mxe/usr/bin/i686-w64-mingw32.static.posix.dw2-gcc)" >> toolchain.cmake
echo "SET(CMAKE_CXX_COMPILER /data/mxe/usr/bin/i686-w64-mingw32.static.posix.dw2-g++)" >> toolchain.cmake
echo "SET(CMAKE_RC_COMPILER /data/mxe/usr/bin/i686-w64-mingw32.static.posix.dw2-windres)" >> toolchain.cmake
echo "SET(CMAKE_FIND_ROOT_PATH \${PROJECT_SOURCE_DIR}/dependencies-win-i686 /data/mxe/usr/i686-w64-mingw32.static.posix.dw2/ /data/mxe/usr/lib/gcc/i686-w64-mingw32.static.posix.dw2/5.5.0/)" >> toolchain.cmake
echo "set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)" >> toolchain.cmake
echo "set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ALWAYS)" >> toolchain.cmake
echo "set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)" >> toolchain.cmake
- name: Set up MinGW Toolchain for x86_64
if: ${{ matrix.os == 'ubuntu-latest' && matrix.arch == 'x86_64' }}
run: |
echo "SET(CMAKE_SYSTEM_NAME Windows)" > toolchain.cmake
echo "SET(CMAKE_C_COMPILER /data/mxe/usr/bin/x86_64-w64-mingw32.static.posix.seh-gcc)" >> toolchain.cmake
echo "SET(CMAKE_CXX_COMPILER /data/mxe/usr/bin/x86_64-w64-mingw32.static.posix.seh-g++)" >> toolchain.cmake
echo "SET(CMAKE_RC_COMPILER /data/mxe/usr/bin/x86_64-w64-mingw32.static.posix.seh-windres)" >> toolchain.cmake
echo "SET(CMAKE_FIND_ROOT_PATH \${PROJECT_SOURCE_DIR}/dependencies-win-x86_64 /data/mxe/usr/x86_64-w64-mingw32.static.posix.seh/ /data/mxe/usr/lib/gcc/x86_64-w64-mingw32.static.posix.seh/5.5.0/)" >> toolchain.cmake
echo "set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)" >> toolchain.cmake
echo "set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ALWAYS)" >> toolchain.cmake
echo "set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)" >> toolchain.cmake
# Manually specify CMAKE_SYSTEM_PROCESSOR, it can only be set together with -DDCMAKE_SYSTEM_NAME
- name: Configure bulid for MSVC
if: ${{ matrix.os == 'windows-latest' }}
run: |
mkdir -Force build
cd build
cmake .. -G "Visual Studio 17 2022" -DCMAKE_SYSTEM_NAME=Windows -DCMAKE_SYSTEM_PROCESSOR=${{ matrix.arch }} -A ${{ env.cmake_arch }} -DCHECK_ASSETS=OFF
- name: Configure bulid for MinGW (i686 or x86_64)
if: ${{ matrix.os == 'ubuntu-latest' && matrix.arch != 'armv7' && matrix.arch != 'aarch64' }}
run: |
mkdir -p build
cd build
cmake .. -DCMAKE_TOOLCHAIN_FILE=../toolchain.cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCHECK_ASSETS=OFF -DUSE_DIRECTX=ON
- name: Configure bulid for MinGW (armv7 or aarch64)
if: ${{ matrix.os == 'ubuntu-latest' && ( matrix.arch == 'armv7' || matrix.arch == 'aarch64' ) }}
run: |
mkdir -p build
cd build
cmake .. -DLLVM_ARCH=${{ matrix.arch }} -DLLVM_PREFIX=/llvm-mingw -DCMAKE_TOOLCHAIN_FILE=../cmake/Toolchain-llvm-mingw.cmake -DCHECK_ASSETS=OFF -DUSE_DIRECTX=ON
- name: Build for MSVC
if: ${{ matrix.os == 'windows-latest' }}
working-directory: build
run: |
cmake --build . --config Debug
- name: Build for MinGW
if: ${{ matrix.os == 'ubuntu-latest' }}
working-directory: build
run: |
make -j4
cd ..
mv COPYING tools
- name: Upload binaries of MinGW
if: ${{ matrix.os == 'ubuntu-latest' }}
uses: actions/upload-artifact@v2
with:
name: ${{ matrix.arch }}
path: build/bin/*
- name: Upload stk-code/data
# We only need to upload stk-code/data once
if: ${{ matrix.os == 'ubuntu-latest' && matrix.arch == 'i686'}}
uses: actions/upload-artifact@v2
with:
name: data
path: data
- name: Upload stk-code/tools
# We only need to upload stk-code/tools once
if: ${{ matrix.os == 'ubuntu-latest' && matrix.arch == 'i686'}}
uses: actions/upload-artifact@v2
with:
name: tools
path: tools
- name: Remove built binaries for less cache size
shell : bash
run: |
rm -rf build/Debug
rm -rf build/bin
packaging:
name: Packaging STK
needs: build
runs-on: windows-latest
steps:
- name: Configure packaging name for git master branch
shell : bash
if: ${{ github.ref == 'refs/heads/master' }}
run: |
echo "release_tag=git`date +%Y%m%d`" >> $GITHUB_ENV
echo "release_name=preview" >> $GITHUB_ENV
- name: Configure packaging name for tag
shell : bash
if: ${{ startsWith(github.ref, 'refs/tags/') }}
run: |
echo "release_tag=`basename $GITHUB_REF`" >> $GITHUB_ENV
echo "release_name=`basename $GITHUB_REF`" >> $GITHUB_ENV
- name: Configure packaging name for non-releasing branch
shell : bash
if: ${{ (github.ref != 'refs/heads/master' && !startsWith(github.ref, 'refs/tags/')) || github.repository_owner != 'supertuxkart' }}
run: |
echo "release_tag=" >> $GITHUB_ENV
echo "release_name=" >> $GITHUB_ENV
- name: Check for prerelease
shell : bash
if: ${{ github.ref == 'refs/heads/master' || contains(github.ref, 'rc') || contains(github.ref, 'beta') }}
run: |
echo "release_pre=true" >> $GITHUB_ENV
- name: Check for non-prerelease
shell : bash
if: ${{ github.ref != 'refs/heads/master' && !contains(github.ref, 'rc') && !contains(github.ref, 'beta') }}
run: |
echo "release_pre=false" >> $GITHUB_ENV
- name: Show packaging name
shell : bash
run : |
echo "${{ env.release_tag }}"
echo "${{ env.release_name }}"
echo "${{ env.release_pre }}"
- name: Download MinGW binaries and data
uses: actions/download-artifact@v2
- name: Generate .pdb files
if: ${{ env.release_tag != '' }}
run: |
C:\msys64\usr\bin\wget.exe https://github.com/rainers/cv2pdb/releases/download/v0.50/cv2pdb-0.50.zip
unzip cv2pdb-0.50.zip
cd i686
..\cv2pdb.exe supertuxkart.exe
cd ..
cd x86_64
..\cv2pdb.exe supertuxkart.exe
- name: Downloading stk-assets
if: ${{ env.release_tag != '' }}
run: |
C:\msys64\usr\bin\wget.exe https://github.com/supertuxkart/stk-assets-mobile/releases/download/git/stk-assets-full.zip
mkdir stk-assets
cd stk-assets
unzip ..\stk-assets-full.zip
- name: Move folders
shell : bash
if: ${{ env.release_tag != '' }}
run: |
mkdir SuperTuxKart-${{ env.release_tag }}-win
mv stk-assets SuperTuxKart-${{ env.release_tag }}-win
mkdir SuperTuxKart-${{ env.release_tag }}-win/stk-code
mv data SuperTuxKart-${{ env.release_tag }}-win/stk-code
mv tools/run_game.bat SuperTuxKart-${{ env.release_tag }}-win
mkdir SuperTuxKart-${{ env.release_tag }}-win/stk-code/build-i686
mkdir SuperTuxKart-${{ env.release_tag }}-win/stk-code/build-x86_64
mkdir SuperTuxKart-${{ env.release_tag }}-win/stk-code/build-armv7
mkdir SuperTuxKart-${{ env.release_tag }}-win/stk-code/build-aarch64
mv i686 SuperTuxKart-${{ env.release_tag }}-win/stk-code/build-i686/bin
mv x86_64 SuperTuxKart-${{ env.release_tag }}-win/stk-code/build-x86_64/bin
mv armv7 SuperTuxKart-${{ env.release_tag }}-win/stk-code/build-armv7/bin
mv aarch64 SuperTuxKart-${{ env.release_tag }}-win/stk-code/build-aarch64/bin
# libwinpthread-1.dll is useless because we statically link
rm -f SuperTuxKart-${{ env.release_tag }}-win/stk-code/build-armv7/bin/libwinpthread-1.dll
rm -f SuperTuxKart-${{ env.release_tag }}-win/stk-code/build-aarch64/bin/libwinpthread-1.dll
- name: Start packaging STK
if: ${{ env.release_tag != '' }}
run: |
Compress-Archive -LiteralPath SuperTuxKart-${{ env.release_tag }}-win -DestinationPath SuperTuxKart-${{ env.release_tag }}-win.zip
- name: Configure NSIS script
shell : bash
if: ${{ env.release_tag != '' && startsWith(github.ref, 'refs/tags/') }}
run: |
mv tools SuperTuxKart-${{ env.release_tag }}-win/stk-code
cd SuperTuxKart-${{ env.release_tag }}-win/stk-code/tools/windows_installer
for arch in i686 x86_64 aarch64
do
cp supertuxkart-github-actions.nsi $arch.nsi
sed -i "s/define APPNAMEANDVERSION \"\"/define APPNAMEANDVERSION \"SuperTuxKart ${{ env.release_tag }}\"/g" $arch.nsi
sed -i "s/define ARCH \"\"/define ARCH \"$arch\"/g" $arch.nsi
sed -i "s/define VERSION \"\"/define VERSION \"${{ env.release_tag }}\"/g" $arch.nsi
sed -i "s/OutFile \"\"/OutFile \"SuperTuxKart-${{ env.release_tag }}-installer-$arch.exe\"/g" $arch.nsi
for filename in $(ls ../../build-$arch/bin)
do
file="\\\\$filename"
sed -i "288a\ DELETE /REBOOTOK \"\$INSTDIR$file\"" $arch.nsi
done
# Print result
#cat $arch.nsi
done
mv ../COPYING ../..
- name: Run makensis.exe
if: ${{ env.release_tag != '' && startsWith(github.ref, 'refs/tags/') }}
run: |
cd SuperTuxKart-${{ env.release_tag }}-win\stk-code\tools\windows_installer
C:\msys64\usr\bin\wget.exe https://nsis.sourceforge.io/mediawiki/images/6/6c/Shelllink.zip
unzip Shelllink.zip
Move-Item Unicode\Plugins\ShellLink.dll .
& "C:\Program Files (x86)\NSIS\makensis.exe" i686.nsi
& "C:\Program Files (x86)\NSIS\makensis.exe" x86_64.nsi
& "C:\Program Files (x86)\NSIS\makensis.exe" aarch64.nsi
- name: Create release
uses: ncipollo/release-action@v1.8.8
if: ${{ env.release_tag != '' }}
with:
token: ${{ secrets.GITHUB_TOKEN }}
artifacts: "SuperTuxKart-*.zip, SuperTuxKart-${{ env.release_tag }}-win/stk-code/tools/windows_installer/*.exe"
tag: ${{ env.release_name }}
omitBodyDuringUpdate: true
omitNameDuringUpdate: true
allowUpdates: true
prerelease: ${{ env.release_pre }}

45
.gitignore vendored
View File

@@ -1,14 +1,21 @@
bld*/ bld*/
build*/ build*/
cmake_build/
cmake_build*/ cmake_build*/
dependencies/ xcode_build*/
dependencies*/
CMakeFiles/ CMakeFiles/
stk-editor/ stk-editor/
.vscode/
tags.*
# clangd
.cache/
compile_commands.json
.config/ .config/
supertuxkart-64 supertuxkart-64
make*.bat make*.bat
__pycache__
data/editor data/editor
data/karts data/karts
@@ -51,3 +58,37 @@ packets_log.txt
history.dat history.dat
README.dependencies README.dependencies
xx xx
android/android-ndk*
android/android-sdk*
android/assets
android/bin
android/build
android/deps-*
android/libs
android/obj
android/res
android/.gradle
android/.cxx
android/src/main/java/HID*
android/src/main/java/SDL*
android-*
*.apk
*.keystore
lib/curl
lib/freetype
lib/ifaddrs
lib/libogg
lib/libvorbis
lib/libpng
lib/libjpeg
lib/zlib
lib/openal
lib/openssl
lib/harfbuzz
lib/sdl2
lib/mbedtls
lib/astc-encoder
.DS_Store

View File

@@ -1,49 +0,0 @@
# Travis-CI configuration file for SuperTuxKart
#
# Configuration manual:
# http://docs.travis-ci.com/user/build-configuration/
#
language: cpp
compiler:
- gcc
# - clang
#branches:
# only:
# - master
before_install:
# Update repos
- sudo apt-get update -qq
# Install dependencies
- sudo apt-get install build-essential libogg-dev libvorbis-dev libopenal-dev libxxf86vm-dev libcurl4-openssl-dev libfribidi-dev libbluetooth-dev
# Install mesa from an other repo (a newer version is required). Quantal is not supported anymore, saucy is only supported till July 2014,
# so we try to use trusty (precise which is what traiv uses a too old mesa version which doesn't link)
- sudo apt-add-repository "deb http://archive.ubuntu.com/ubuntu trusty main restricted"
- 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
script:
# First a debug build:
- mkdir build-debug
- cd build-debug
- cmake .. -DCMAKE_BUILD_TYPE=Debug -DCHECK_ASSETS=off
- make VERBOSE=1 -j 4
# Then a release build:
- cd ..
- mkdir build-release
- cd build-release
- cmake .. -DCMAKE_BUILD_TYPE=Release -DCHECK_ASSETS=off
- make VERBOSE=1 -j 4
notifications:
irc:
channels:
- "irc.freenode.org#stk"
skip_join: false
use_notice: true
template:
#- "[%{commit}: %{author}] %{message}"
#- "%{build_url}"
- "[%{repository}#%{branch} @%{commit}] %{author}): %{message}"
- "Diff: %{compare_url}"
- "Build: %{build_url}"

View File

@@ -1 +0,0 @@
See the file data/CREDITS .

9
Brewfile Normal file
View File

@@ -0,0 +1,9 @@
brew "cmake"
brew "libogg"
brew "libvorbis"
brew "openal-soft"
brew "freetype"
brew "curl"
brew "harfbuzz"
brew "libjpeg"
brew "sdl2"

View File

@@ -1,59 +1,458 @@
## SupertTuxKart 0.9 (April 2015) # Changelog
This file documents notable changes to SuperTuxKart across versions since its inception.
It should be kept in mind that some versions have a less complete changelog than others, and that this changelog do not list the details of the many small bugfixes and improvements which together make a significant part of the progress between releases.
For similar reasons, and because some features are vastly more complex than others, attributions of main changes should not be taken as a shortcut for overall contribution.
## SuperTuxKart 1.4 (31. October 2022)
### General
* Lap trial mode, by mrkubax10
* Fix parachute powerup, by heuchi
* Fix gyroscope on walldriving surface, by Benau
* Enable ARMv7 build for Windows, by Benau
* Restore macOS <= 10.14 support, by Benau
* Avoid triggering other goal lines when the goal is already scored, by kimden
### Graphics
* Items and stars animation, by Semphris
* LOD optimization, by Benau
* Implement HiDPI support in SDL2 properly, by Benau
* Beta Vulkan renderer, by Benau
* Make sky particle always fall vertically, by Benau
### Tracks and modeling
* Updated Konqi, by ZAQraven99
* New Godette kart, by ZAQraven99
* Updated Battle Island and Cave X, by Typhon306
* Fix broken invisible wall in Antediluvian Abyss, by Benau
* New textures in Shifting Sands, by KartOym
* Balanced starting positions in all official soccer fields, by Crystal
### Networking
* Add track searching to network track screen, by Benau
* Make limit of players in game configurable, by Waldlaubsaengernest
* Allow using real addon karts (same hitbox and kart type as in local game), by Benau
### User Interface
* Add left side ghost replay difficulties, by ldoyenard
## SuperTuxKart 1.3 (28. September 2021)
### Networking
* Server bookmarks, by Benau
### Graphics
* Introduce render resolution scaling for the modern renderer, by QwertyChouskie and Deve. For users with limited GPU power, this allows to get significant performance (FPS) gains at the cost of image quality. It can also allow additional graphics effects at the same performance. This is especially useful for users with high-resolution and high-DPI screens. The scaling only affects the 3D scene, the UI remains crisp at full-resolution.
* Simplification through removal of unused deprecated graphical effects, by Samuncle
* Many updates to texture-related code, by Benau
* Auto-compute Level of Detail distances for 3D models set to use LOD depending on track complexity, by Samuncle. The geometry level parameter allows partial control over the drawing distances.
* Improved screen space reflection, by QwertyChouskie
### General
* Switch port, by Mary
* Gamepad force feedback support, by Mary
* Highscore screen, by RQWorldblender
* Grand Prix highscores, by mrkubax10
* Updates to the bundled tinygettext library, by Benau
* Enable custom skidding sounds for karts, by Benau
* Greatly sped up loading of tracks with many checklines through optimization, by heuchi
* And many bugfixes and enhancements too small or specific to be detailed
### User Interface
* Display the skin-appropriate iconset without having to restart, by Benau
* Fix some issues with the options menu when used during a pause, by Benau
* Add a confirmation dialog before closing the game through the "go back" key/button, by Benau
* In the result screen, display the race position with a number with 10 karts or more, by mrkubax10
* In the result screen, display the challenge result and the requirements met or failed, by CodingJellyFish
* Many small menu and dialogs improvements, by RQWorldblender and others
* Usability and functionality improvements to the debug menu, by RQWorldblender
* Clickable URLs in text, by Benau
#### In-race UI
* Add visual and sound feedback when a timed challenge or timed game is about to end, by mrkubax10 and Alayan
### Mobile
* Fix a precision issue that caused artefacted shadows, by icecream95 and Benau
#### iOS
* Use MojoAL instead of OpenAL, which iOS currently has issues with, by Benau
### Tracks and modeling
* Alien Signal, by Samuncle
* Ancient Colosseum Labyrinth, by Typhon306
* Improved Las Dunas Soccer, by Benau
* Add lap line extensions to Hacienda, Old Mine, Ravenbridge Mansion and Shifting Sands, by Benau
* New Pepper kart, by ZAQraven99
* Improved Adiumy, Emule, GNU and Sara karts, by ZAQraven99
## SuperTuxKart 1.2 (27. August 2020)
### Networking
* Add support for IPv6 LAN servers, by Benau
* Auto-detect client IPv4 and IPv6 support, by Benau
* Improved server creation speed and performance, by Benau
* Allow to use any addon karts online, on servers with live join enabled, by Benau. The kart has Tux's hitbox.
* Prevent undefined behaviour on battle/soccer servers with an excessive player limit, by Benau
* Use an improved rating formula for ranked play, by Alayan
### General
* Use SDL2 for window creation, allowing better gamepad support, by Benau
* Replace Fribidi by SheeBidi for RTL support, and remove the dependency to libraqm, by Benau
* Add support for in-race messages in scripting, by CodedOre
* Improved tutorial with free-flow racing (no more text interrupts), by CodedOre
* Haiku support, by AlwaysLivid
* Make the game's window resizable in-game, by Benau
* Download addon icons on-demand to speed-up the addons list loading, by Benau
* Allow theming of icons, by QwertyChouskie
* Many many bugfixes and enhancements
### Mobile
* Many minor bugfixes and compatibility enhancements
#### Android
* Use the android app bundle, allowing all tracks to be included, by Benau
* Use the native progress indicator during game data extraction, by Benau
* Add a launch splash screen, by Benau
#### iOS
* Allow server creation in-game by using only one process for client and server, by Benau
### User Interface
* Introduce element padding for skins, by QwertyChouskie
* New Cartoon skin, by LCP (art) and QwertyChouskie (code)
* Allow to rename control configurations, by GuillaumeBft
* Unthrottled keyboard navigations in menus, by Benau
* Show mobile players as such in server lobbies, using an emoji icon, by riso
* Always show the race end times in ms, by Fouks
* SVG icons support, by riso
* New tips for soccer mode
#### In-race UI
* Introduce camera settings in the options screen, by luffah
* More spectator cameras in online spectating, by luffah
* Add a minimap indicator for basketballs, by Alayan
* Add team chat for team games, by Benau
* Show the kart orientation on the soccer minimap, by riso
* Show a message once a goal is made in soccer, by riso
### Tracks and modeling
#### Karts
* New version of Kiki, by Typhon306 and ZAQraven99
* Improved karts, by Crystal
* Pidgin, Puffy
* Improved beastie animation, by D_ft Kid
## SuperTuxKart 1.1 (4. January 2020)
### Networking
* Add support for IPv6 clients and servers, by Benau
* Add AI support to local networking servers, by Benau. This AI is not as strong as the normal AI due to networking lag, but should offer enough challenge for a majority of players.
* Add support for AI bots for the server host, by Benau
* Improved handling of collisions, by Benau
* Improved support for playing addons on servers, by Benau
* Support using an IPV4 domain name to connect to a server, by Benau
* Add packet loss data to the server databases, by Benau
* New management features for server hosts, by Benau
* IP / online ID ban tables
* Server statistics
* Make the auto-end finish time more lenient, so it doesn't tank ranking score because of another player, by Alayan
* Add a player reporting function, by Benau
* Fix a bug that allowed to exceed a server's player limit if two players connected at the same time, by Benau
* Add lobby commands, by Benau
### Race gameplay and physics
* Random spawn point in local battle mode, by Aleman778
* Add an option to show everyone's items with the left characters icons, by Fouks
* Allow to choose the number of AI per team in soccer, by risostk
* In CTF mode, fix a bug that prevented scoring a point when the team's flag was in its immunity state, by Alayan
* Fix a bug that could result in the finish time being shown as 0:00:00, by Alayan
* Fix a bug that made AIs, in multiplayer and low difficulty, rubber-band towards the wrong player, by Alayan. Each player now correctly has its AIs, helping a weaker player to not be condemned to the last position.
### General
* Screen space reflection graphical effect, by samuncle
* Support unicode file paths, by Benau
* Complex text layout support, by Benau
* Add emoji support, by Benau
* Avoid "this program is not responding" warnings in Windows and Mac, by Benau
* Add a Story Mode timer, by Alayan
* Make text billboards size consistent accross resolutions, by Benau
* Don't trigger road sounds when the kart is flying, by Benau
* Remove an incorrect function call that could significantly hurt performance for Mac, by Benau
* Fix a nasty bug that made several sound effects to be played at a low volume after a crash, by Alayan
* Some code clean-up, by Alayan
* Addon skin support and skin-specified font by Benau
* Structure for allowing icon themes by Benau
* Add support for custom per-kart engine sounds, by Benau
* Fix an incorrect outdated driver warning for recent AMD cards on Windows, by Alayan
* Scripting enhancements, by deveee
* Add a continue button to cutscenes (mostly useful for touchscreen devices), by deveee
* Request the use of the performance GPU on Optimus systems, by deveee
* Fixed plural forms for translations in several languages, by deveee
* Close STK if Wayland crashes, by mstoeckl
* Support nested directories for addons, by Benau
* Scripting preprocessing for STK version, by Benau
* Updated Wiiuse library to 0.15.5
* Various tweaks and bugfixes, including crash fixes
### Mobile
* Add a screen allowing to download official assets that can't be included in the release package because of size limits, by Benau
* The tutorial text is now tailored for touchscreen usage, instead of the main keyboard text, by Benau
* Enhanced acceleration handle, by Benau
* Allow changing the touchscreen controller type in race paused dialog, by deveee
* Allow for optional auto-acceleration, by deveee
#### Android
* Various bugfixes by deveee, dos1
* Screen keyboard handling improvements, by deveee and Benau
* Allow copying text from the edit box, by Benau
* STK for Android now targets the version 29 of the API (Android 10.0), up from 26 (Android 8.0)
#### iOS
* Add iOS support, by Benau
* The Android code has been widely put to use for iOS
* Several changes or fixes to ensure proper behavior (input, screen-scaling, and more)
### User Interface
* Show tips for players when loading and after race ends, by dumaosen
* Better scaling of many many UI elements to large resolutions, by dumaosen and others
* Show country flags for servers and players in online multiplayer, by Benau
* Add a new option to change font size on the fly, by Benau and deveee
* Add icons for the available options in the race result screens, by dumaosen
* Make the highscore list scrollable, by deveee
* Display all the relevant info in the challenge dialog in Story Mode, by Alayan
* New challenge selection interface, by dumaosen
* Show the number of ranking points won or lost after a ranked race, by Benau
* Separate blurring visual effects from the main graphics presets, by Alayan
* Fix incorrect text resizing in the help menu, by Benau
* Make the custom random GP option more prominent in the track selection screen, by dumaosen
* Improvements to the scrollbars, by QwertyChouskie
* Allow sorting lists with the keyboard, by Benau
* Allow tooltip drawing outside of menus, by deveee
* Prevent some font scaling blur caused by non-integer offsets, by Benau
* Add a (configurable) limit to chat message frequency, by GuillaumeBft and Benau
* Allow to explicitly set the flip direction of tabs, by dumaosen
* Allow to download addons from the server lobby interface, by Benau
* Allow to filter installed and non-installed addons in the addons screen, by Alayan
* Many minor tweaks and bugfixes
#### In-race UI
* Scale down the lap time indicator next to the kart icons when there are many karts, by riso
* Limit how long chat and in-race messages can be, by Benau and Alayan
* Add an option to disable in-race messages only, by Alayan
### Tracks and modeling
#### Tracks
* A handful of minor graphical fixes and enhancements
* Fixed checklines that could be missed too easily in XR591 and the Old Mine.
#### Arenas
* Pumpkin Park, by samuncle
## SuperTuxKart 1.0 (20. April 2019)
### Networking
* Networking support for normal race, time trial, free for all, capture the flag and soccer by Benau and hiker :
* Access to a global server list, possibility to also create a LAN server
* Track voting system to allow players to decide where the race will be
* Communication between server and clients to exchange inputs and general game data
* A lot of work on rewind code to make sure server and client are well synchronized
* Chat lobby for general server information and discussion among players between races
* Support for handicap, which can be changed before each game
* Spectating option for players having entered a server while a race or game is underway by Benau
* Option to join live an active game in FFA, CTF and soccer by Benau
* Global rankings by Benau (communication with main server) and Alayan (ranking formula)
### Race gameplay and physics
* New game mode Capture the Flag by Benau (online multiplayer only)
* New game mode Free for All by Benau
* Free for All available in offline mode with AI, by Mrxx99
* Revised kart characteristics for better balance between light, medium and heavy karts by Alayan
* Better random item distribution for various numbers of karts by Alayan and hiker
* Fix position interpolation causing some incorrect lapline validation by Auria
* Fix kart being uncontrollable and hovering when landing on some downward slopes by hiker
* Mitigate a physics issue which could send a kart flying on collisions by hiker
* Make kart turn radius based on kart class instead of kart model length (which made Adiumy unplayable and caused AI issues) by Alayan
* Revisited slipstreaming with boost easier to obtain, especially in curves, but not as strong as in 0.9.3 when the zipper boost was incorrectly activated, by Alayan
* Minor gameplay improvements (level 1 skid boost doesn't interrupt level 2 boost, fairer rubber-banding in low difficulties, boosted AI for some karts for more challenge in GPs, small balance change of GP points, more useful and consistent handicap option...)
* Start boost/penalty moved to the set phase for smoother networking
* Terrain slowdown works again as intended on several tracks where it was missing
### AI
* Improved powerup and nitro handling in AI by Alayan
### General
* Option to disable light scattering (for improved FPS), used in graphics level 3, by Partmedia
* Unlockable SuperTux challenges in Story Mode by Alayan
* Improvements to ghost replays (more data saved, live time difference, replay comparison, egg hunt replays) by Alayan
* Kart color customization by Benau
* Multithreading contention fixes by Benau
* Local multiplayer improvements by Ben Krajancic
* Major revamp of the achievement system to make adding new achievements much easier and flexible, also fixing some related bugs by Alayan
* Store up to 5 highscores for a track/difficulty/mode/kart number combination, instead of 3
* Smooth turning for non-keyboard inputs for improved consistency between input mode by deveee
* Updated standard replays by Alayan
* Visual improvements (new skidding particles, better rescue, bubblegum flashing before ending)
* Audio improvements (crash sound depending on speed/direction, no crash sound on rescue walls, sound cue in nitro challenges)
* Fix STK incorrectly connecting to the server when the internet option is disabled by Auria
* Updated WiiUse library
* Many bugfixes
### Android
* Gyroscope support by Pelya
* Numerous improvements to input on Android, including screen keyboard, keyboard, gamepads, by deveee
* Android TV support
* Improved UI and font scaling by deveee
* More compact APK thanks to png optimization, allows to have several tracks more than the 0.9.3 APK, by deveee and Alayan
* Wayland support and many other smaller improvements and fixes
### User Interface
* New networking user interface by Benau and hiker
* New coal skin by Alayan
* Support for collapsing widgets in UI by Mrxx99
* Multidirectional keyboard navigation in menus by Alayan
* Alternating background darkness in lists to enhance readability by Benau
* Support text breaks into multiple line in lists, e.g. in the addons menu, by Alayan
* Improved help menu with lateral tabs and a lot more information by Alayan
* Improved option menu with lateral tabs and a separate language tab by Alayan
* Many improvements to the ghost replay selection list (give access to egg hunt replays, kart icon shown in the list, replay's game version shown, hide player number column by default) and dialog (allow replay comparison, show track picture, show information about the selected replays) by Alayan
* Control configurations can be disabled without being deleted by Alayan
* Other significant enhancements (detailed progress of multi-goal achievements, reset password button, clearer checkbox status, milliseconds displayed in time-trials and egg hunts, nitro efficiency in the kart selection screen, better track info screen, better warnings when trying to do an online action with internet access disabled, hour support for GP time, default resolutions can't be used in fullscreen if unsupported by the monitor...)
* Many bugfixes and small enhancements mostly by deveee and Alayan
#### In-race UI
* New speedometer and nitro gauge, by Alayan
* Bigger minimap and new display options, by Alayan
* More legible text with outlines and for some bigger font, by Alayan
### Tracks and modeling
#### Tracks
* Black Forest by Sven Andreas Belting (replacing Green Valley)
* Ravenbridge Mansion by samuncle (replacing Black Hill Mansion)
* Unwanted shortcuts and exploits found by several players and fixed mostly by Auria in many tracks :
* Antediluvian Abyss, Around the Lighthouse, Fort Magma, Grand Paradisio Island, Hacienda, Minigolf, Nessie's Pond, Northern Resort, The Old Mine, Oliver's Math Class, Shifting Sands, STK Enterprise, XR591
* Smoothness issues causing collisions and kart slowdown fixed by Auria :
* Nessie's Pond, Old Mine, Shifting Sands, Volcano Island, XR591
* Item (boxes, nitro, bananas) positions improvement by Alayan and theThomasPat :
* Around the Lighthouse, Black Forest, Candela City, Hacienda, Minigolf, Northern Resort, Oliver's Math Class, STK Enterprise, The Old Mine, Volcano Island, Zen Garden
#### Arenas
* Las Dunas Soccer, by samuncle
* Candela City arena by Benau, based on samuncle's track
#### Karts
* New version of Beastie by Jymis
* New version of Kiki by Benau
## SuperTuxKart 0.9.3 (28. October 2017)
* Reduced RAM and VRAM usage, reducing load times by Auria and Benau
* New mesh format optimized for space and hardware skinning
* Code refactoring of both render pipeline by Benau and Elderme
* Physics improvements and various physics bugfixes by hiker
* Kart GFX improvements (exhaust and headlight)
* In-game screen recording powered by libopenglrecorder
* High quality mipmap generation by Stragus
* New smoother camera by Auria
* New grand prix win scene
* Gamepad configuration bugfixes
* 3 Strikes Battles : added spare tire karts
* Visual representation of the start line in all tracks
* Various improvements (starting boost effect, wall driving fixes, parachutes, GP points, help page for bananas, cannon fixes, colorization shader)
### Tracks and modeling
#### Karts
* Kiki by Benau
* New versions of Wilber and Hexley by Jymis
* New version of Konqi by Benau
#### Tracks
* All tracks drivable in reverse, with arrows pointing in the correct direction
* Candela City by samuncle (replace Shiny Suburbs)
* Cornfield Crossing by samuncle (replace Bovine Barnyard)
* New battle track Las Dunas Arena by samuncle
## SuperTuxKart 0.9.2 (1. July 2016)
* Ghost replay races by Benau
* Battle mode AI by Benau
* Soccer mode AI by Benau
* TTF font rendering by Benau
* New ruby and forest skins by Benau
* Kart properties refactor by Flakebi
* Scripting work under the hood
* Work on the track editor by mhp
* Tweak to challenges
* New farm track song by 0zone0ne and Krobonil
* Bugfixes
### Tracks and modeling
#### Tracks
* Antediluvian Abysses by samuncle (replace Subsea)
* Volcano Island by Ponzino
* New icy soccer field by samuncle and Benau
## SuperTuxKart 0.9.1 (17. October 2015)
* Many bug fixes
* Started to use scripting in tracks
* Significant audio performance improvements
* Tweak to challenges
### Tracks and modeling
#### Tracks
* Better support for driving tracks in reverse
* Smaller tweaks and improvements to several tracks including
* Math class
* XR591
* Fort Magma
* Gran Paradiso Island
* Subsea
## SupertTuxKart 0.9 (24. April 2015)
* Fully shader-based rendering engine * Fully shader-based rendering engine
* New tracks Cocoa Temple and Gran Paradiso
* Graphical improvements to many other tracks
* New karts amanda and gavroche
* New and improved tux, adiumy, sara the wizard and the racer, xue kart
* Online login which allows to: * Online login which allows to:
** connect with friends and see when they are playing * connect with friends and see when they are playing
** vote for addons * vote for addons
** collect online achievements * collect online achievements
* Grand Prix editor, including creation of random GPs * Grand Prix editor, including creation of random GPs
* Different kart physics * Different kart physics
### Tracks and modeling
#### Karts
* New karts Amanda and Gavroche by XGhost
* New and improved Tux, Adiumy, Sara the Wizard and the Racer, Xue
#### Tracks
* Cocoa Temple by samuncle (replace Amazonian Journey)
* Gran Paradiso Island by samuncle (replace The Island)
* Graphical improvements to many other tracks
## SuperTuxKart 0.8.1 (26. November 2013) ## SuperTuxKart 0.8.1 (26. November 2013)
* New track STK Enterprise
* Updated track The old mines
* Updated Lighthouse track
* Updated Zen Garden track
* New Soccer mode * New Soccer mode
* New Egg Hunt mode * New Egg Hunt mode
* New karts Xue and Sara
* Updated Beastie kart
* Added Tutorial * Added Tutorial
* Added new Supertux difficulty * Added new Supertux difficulty
* New bubblegum shield weapon * New bubblegum shield weapon
* New Speedometer and nitro meter * New Speedometer and nitro meter
* Add ability to filter addons * Add ability to filter addons
* Updated nitro models
* Add ability to save and resume Grand Prix * Add ability to save and resume Grand Prix
* Improve skid marks and nitro effects * Improve skid marks and nitro effects
* Wiimote support * Wiimote support
### Tracks and modeling
#### Karts
* New karts Xue and Sara
* Updated Beastie kart
#### Tracks
* STK Enterprise by Rubberduck (replace Star Track)
* Gameplay and graphical updates to several tracks :
* The Old Mine
* Lighthouse
* Zen Garden
#### Miscellaneous
* Updated nitro models
## SuperTuxKart 0.8 (11. December 2012) ## SuperTuxKart 0.8 (11. December 2012)
* Story mode and new challenge set * Story mode and new challenge set
* Improved AI * Improved AI
* Skidding and better collision physics * Skidding and better collision physics
* Reverse mode * Reverse mode
* New green valley track
* New Blackhill Mansion track
* Updated XR591 track
* Updated Fort Magma track
* Updated jungle track
* Updates Sand track
* Updated menus * Updated menus
* New music * New music
### Tracks and modeling
#### Tracks
* Green Valley by Wolfs (replace Tux Tollway)
* Blackhill Mansion by samuncle (replace Crescent Crossing)
* Gameplay and graphical updates to several tracks :
* XR591
* Fort Magma
* Jungle
* Sand
## SuperTuxKart 0.7.3 (2. November 2011) ## SuperTuxKart 0.7.3 (2. November 2011)
* New Zen Garden and Subsea tracks
* New Island battle arena
* New Suzanne kart
* New graphical effects * New graphical effects
* New weapons 'Swatter' and 'Rubber Ball' * New weapons 'Swatter' and 'Rubber Ball'
* Added Thunderbird as race referee
* 3 Strikes Battles now displays lives as spare tires * 3 Strikes Battles now displays lives as spare tires
* Improved bubble gum * Improved bubble gum
* See progression during Grand Prix * See progression during Grand Prix
@@ -62,16 +461,28 @@
* Improved kart control at high speeds * Improved kart control at high speeds
* Better placement of rescued karts * Better placement of rescued karts
* Transition track-making to blender 2.5/2.6 * Transition track-making to blender 2.5/2.6
### Tracks and modeling
#### Karts
* New Suzanne kart
#### Tracks
* Zen Garden by samuncle (replace Secret Garden)
* New Subsea
* New Island battle arena
#### Miscellaneous
* Added Thunderbird as race referee
## SuperTuxKart 0.7.2 (15. July 2011) ## SuperTuxKart 0.7.2 (15. July 2011)
* Added in-game addon manager * Added in-game addon manager
* Fixed major memory leaks * Fixed major memory leaks
* New Snow Peak track by Samuncle
* Improved star track UFO by Rudy
* New Beastie kart.
* Show when you get a highscore * Show when you get a highscore
* Improve gamepad configuration under Windows (add ability to tell gamepads apart) * Improve gamepad configuration under Windows (add ability to tell gamepads apart)
* Various other tweaks done and glitches fixed * Various other tweaks done and glitches fixed
### Tracks and modeling
#### Karts
* New Beastie kart.
#### Tracks
* Improved Snow Peak by samuncle
* Improved Star Track UFO by Rudy
## SuperTuxKart 0.7.1b (21. April 2011) ## SuperTuxKart 0.7.1b (21. April 2011)
* Fix circular dependency in challenges * Fix circular dependency in challenges
@@ -79,8 +490,6 @@
## SuperTuxKart 0.7.1 (15. April 2011) ## SuperTuxKart 0.7.1 (15. April 2011)
* Particle (smoke, splash, fire) and weather effects * Particle (smoke, splash, fire) and weather effects
* New Fort Magma by Samuncle, new Shiny Suburbs track by Horace
* New Beagle kart by wolterh
* Added internet news * Added internet news
* Support for live language switch * Support for live language switch
* Added optional minimal race UI * Added optional minimal race UI
@@ -95,6 +504,12 @@
* Fixed character names that contain non-ASCII characters * Fixed character names that contain non-ASCII characters
* Full RTL (right to left) support * Full RTL (right to left) support
* Various other tweaks done and glitches fixed * Various other tweaks done and glitches fixed
### Tracks and modeling
#### Karts
* New Beagle kart by wolterh
#### Tracks
* New Fort Magma by samuncle
* New Shiny Suburbs by Horace
## SuperTuxKart 0.7 (December 2010) ## SuperTuxKart 0.7 (December 2010)
Too many to list them all. Main points: Too many to list them all. Main points:
@@ -107,8 +522,12 @@ Too many to list them all. Main points:
* Other improvements * Other improvements
- Allowed alternative ways/shortcuts in tracks - Allowed alternative ways/shortcuts in tracks
- New item 'switch' - New item 'switch'
* New art: ### Tracks and modeling
- New tracks farm, hacienda, scotland, secret garden #### Tracks
- Farm
- Hacienda by samuncle (replace Beach)
- Scotland by Canis Lupus
- Secret Garden
## SuperTuxKart 0.6.2a (October 2009) ## SuperTuxKart 0.6.2a (October 2009)
* Bugfix: STK would crash while trying to save the config file * Bugfix: STK would crash while trying to save the config file
@@ -128,7 +547,7 @@ Too many to list them all. Main points:
* Bugfix: battle mode would not display track groups. * Bugfix: battle mode would not display track groups.
## SuperTuxKart 0.6.1 (February 2009) ## SuperTuxKart 0.6.1 (February 2009)
* Added new kart ("Puffy"), new battle map ("Cave"), and new music for Snow Mountain. * New music for Snow Mountain.
* Fixed bug in track selection screen that could cause a crash when track groups were used. * Fixed bug in track selection screen that could cause a crash when track groups were used.
* Fixed crash in character selection that could happen if an old user config file existed. * Fixed crash in character selection that could happen if an old user config file existed.
* Fixed incorrect rescues in Fort Magma. * Fixed incorrect rescues in Fort Magma.
@@ -136,15 +555,19 @@ Too many to list them all. Main points:
* A plunger in the face is now removed when restarting. * A plunger in the face is now removed when restarting.
* Added slow-down for karts driving backwards. * Added slow-down for karts driving backwards.
* Somewhat reduced 'shaking' of AI driven karts. * Somewhat reduced 'shaking' of AI driven karts.
### Tracks and modeling
#### Karts
- New Puffy kart
#### Tracks
- New Cave battle map
## SuperTuxKart 0.6 (January 2009) ## SuperTuxKart 0.6 (January 2009)
* New improved physics and kart handling * New improved physics and kart handling
* Added sharp turns and nitro speed boost (replacing wheelies and jump) * Added sharp turns and nitro speed boost (replacing wheelies and jump)
* Totally rewrote powerups (plunger, bowling ball, cake, bubblegum) and new look for bananas * Totally rewrote powerups (plunger, bowling ball, cake, bubblegum) and new look for bananas
* New and improved tracks : skyline, snow mountain, race track, space track, old mine, XR591
* New game mode : 3-Strikes Battle * New game mode : 3-Strikes Battle
* Major improvements to AI * Major improvements to AI
* New/improved karts (and removed some old ones) : wilber, eviltux, hexley
* Improved user interface * Improved user interface
* Karts now have a visible suspension effect * Karts now have a visible suspension effect
* Fully positional audio with OpenAL * Fully positional audio with OpenAL
@@ -160,8 +583,22 @@ Too many to list them all. Main points:
- Fixed 'joystick locks' (kart would turn even if the joystick is in neutral), - Fixed 'joystick locks' (kart would turn even if the joystick is in neutral),
thanks to Samjam for the patch. thanks to Samjam for the patch.
### Tracks and modeling
#### Karts
* Improved Wilber
* Eviltux
* Hexley
* Some old karts have been removed
#### Tracks
* Skyline
* Snow Mountain
* Race track
* Old Mine
* XR591
* Improved track :
* Star track
## SuperTuxKart 0.5 (May 2008) ## SuperTuxKart 0.5 (May 2008)
* Six new tracks and one improved track: Fort Magma, SnowTux Peak, Amazonian Journey, City, Canyon, Crescent Crossing and StarTrack
* Complete Challenges to unlock game modes, new tracks and a skidding preview * Complete Challenges to unlock game modes, new tracks and a skidding preview
* New Follow the Leader game mode * New Follow the Leader game mode
* New Grand Prix * New Grand Prix
@@ -173,17 +610,28 @@ Too many to list them all. Main points:
- a memory leak fix (Charlie Head) - a memory leak fix (Charlie Head)
- an AI crash fix (Chris Morris) - an AI crash fix (Chris Morris)
### Tracks and modeling
#### Tracks
* SnowTux Peak
* Amazonian Journey
* City
* Canyon
* BSODs Battlements renamed to Fort Magma
* Improved Crescent Crossing, Fort Magma, and Star Track
## SuperTuxKart 0.4 (February 2008) ## SuperTuxKart 0.4 (February 2008)
* New physics handling using the bullet physics engine * New physics handling using the bullet physics engine
* New kart: wilber
* Improved 'Shifting Sands' and 'Lighthouse' tracks
* Improved AI * Improved AI
* New GUI handling, including resolution switching GUI * New GUI handling, including resolution switching GUI
* Improved input handling * Improved input handling
* Jump and look-back featue * Jump and look-back feature
* Additional music and main theme * Additional music and main theme
### Tracks and modeling
#### Karts
* New kart: wilber
#### Tracks
* Improved 'Shifting Sands' and 'Lighthouse'
## SuperTuxKart 0.3 (May 2007) ## SuperTuxKart 0.3 (May 2007)
* Highscore lists * Highscore lists

View File

@@ -1,13 +1,17 @@
cmake_minimum_required(VERSION 2.8.4)
# root CMakeLists for the SuperTuxKart project # root CMakeLists for the SuperTuxKart project
project(SuperTuxKart) project(SuperTuxKart)
set(PROJECT_VERSION "0.8.1") set(PROJECT_VERSION "1.4")
add_definitions( -DSUPERTUXKART_VERSION="${PROJECT_VERSION}" )
cmake_minimum_required(VERSION 2.8.4)
if(NOT (CMAKE_MAJOR_VERSION VERSION_LESS 3)) if(NOT (CMAKE_MAJOR_VERSION VERSION_LESS 3))
cmake_policy(SET CMP0043 OLD) cmake_policy(SET CMP0043 OLD)
endif() endif()
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${PROJECT_SOURCE_DIR}/cmake") set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${PROJECT_SOURCE_DIR}/cmake")
include(CMakeDependentOption)
include(BuildTypeSTKRelease) include(BuildTypeSTKRelease)
if(NOT CMAKE_BUILD_TYPE) if(NOT CMAKE_BUILD_TYPE)
@@ -15,11 +19,88 @@ if (NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE "STKRelease") set(CMAKE_BUILD_TYPE "STKRelease")
endif() endif()
option(USE_WIIUSE "Support for wiimote input devices" ON) CMAKE_DEPENDENT_OPTION(USE_SWITCH "Build targeting switch" OFF "NOT NINTENDO_SWITCH" ON)
option(USE_FRIBIDI "Support for right-to-left languages" ON)
if(WIN32)
option(USE_DIRECTX "Build DirectX 9 driver (requires DirectX SDK)" OFF)
endif()
option(SERVER_ONLY "Create a server only (i.e. no graphics or sound)" OFF)
option(CHECK_ASSETS "Check if assets are installed in ../stk-assets" 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(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) option(USE_SYSTEM_ENET "Use system ENet instead of the built-in version, when available." ON)
CMAKE_DEPENDENT_OPTION(USE_IPV6 "Allow create or connect to game server with IPv6 address, system enet will not be used." ON
"NOT USE_SWITCH" OFF)
option(USE_SYSTEM_WIIUSE "Use system WiiUse instead of the built-in version, when available." OFF)
option(USE_SQLITE3 "Use sqlite to manage server stats and ban list." ON)
if(APPLE)
CMAKE_DEPENDENT_OPTION(DLOPEN_MOLTENVK "Use dlopen to load MoltenVK for Apple." ON
"NOT IOS;NOT SERVER_ONLY" OFF)
endif()
CMAKE_DEPENDENT_OPTION(USE_CRYPTO_OPENSSL "Use OpenSSL instead of MbedTLS for cryptography in STK." ON
"NOT USE_SWITCH;NOT WIN32" OFF)
CMAKE_DEPENDENT_OPTION(BUILD_RECORDER "Build opengl recorder" ON
"NOT SERVER_ONLY;NOT APPLE;NOT USE_SWITCH" OFF)
CMAKE_DEPENDENT_OPTION(USE_SYSTEM_SQUISH "Use system Squish library instead of the built-in version, when available." ON
"NOT SERVER_ONLY" OFF)
CMAKE_DEPENDENT_OPTION(USE_WIIUSE "Support for wiimote input devices" ON
"NOT SERVER_ONLY;NOT CYGWIN;NOT USE_SWITCH;NOT MSVC" OFF)
CMAKE_DEPENDENT_OPTION(USE_DNS_C "Build bundled dns resolver" OFF "NOT CYGWIN;NOT USE_SWITCH" ON)
CMAKE_DEPENDENT_OPTION(USE_MOJOAL "Use bundled MojoAL instead of system OpenAL" OFF "NOT APPLE" ON)
if (DLOPEN_MOLTENVK)
ADD_DEFINITIONS(-DDLOPEN_MOLTENVK)
endif()
if((UNIX AND NOT APPLE) OR NINTENDO_SWITCH)
include(FindPkgConfig)
endif()
if(IOS)
include(cmake/XcodeHelper.cmake)
endif()
if(APPLE AND NOT IOS)
if(${CMAKE_SYSTEM_PROCESSOR} STREQUAL "arm")
set(ARCHFLAGS "arm64")
list(APPEND CMAKE_PREFIX_PATH /opt/homebrew/opt)
include_directories(/opt/homebrew/opt/openssl@1.1/include/)
include_directories(/opt/homebrew/opt/openssl@1.1/include/openssl/)
include_directories(/opt/homebrew/opt/freetype/include/freetype2/)
include_directories(/opt/homebrew/opt/harfbuzz/include/harfbuzz/)
else()
set(ARCHFLAGS "${CMAKE_SYSTEM_PROCESSOR}")
list(APPEND CMAKE_PREFIX_PATH /usr/local/opt)
include_directories(/usr/local/opt/openssl@1.1/include/)
include_directories(/usr/local/opt/openssl@1.1/include/openssl/)
include_directories(/usr/local/opt/freetype/include/freetype2/)
include_directories(/usr/local/opt/harfbuzz/include/harfbuzz/)
endif()
endif()
if (IOS)
ADD_DEFINITIONS(-DMOBILE_STK)
ADD_DEFINITIONS(-DIOS_STK)
set(CMAKE_XCODE_ATTRIBUTE_TARGETED_DEVICE_FAMILY "1,2")
option(USE_GLES2 "Use OpenGL ES2 renderer" ON)
endif()
if((UNIX AND NOT APPLE) AND NOT SERVER_ONLY)
if((${CMAKE_SYSTEM_PROCESSOR} MATCHES "arm") OR
(${CMAKE_SYSTEM_PROCESSOR} MATCHES "aarch64") OR
(${CMAKE_SYSTEM_PROCESSOR} MATCHES "riscv64"))
option(USE_GLES2 "Use OpenGL ES2 renderer" ON)
else()
option(USE_GLES2 "Use OpenGL ES2 renderer" OFF)
endif()
endif()
if(UNIX OR MINGW)
option(DEBUG_SYMBOLS "Compile with debug symbols" OFF)
endif()
if(MSVC AND (MSVC_VERSION LESS 1900)) if(MSVC AND (MSVC_VERSION LESS 1900))
# Normally hide the option to build wiiuse on VS, since it depends # Normally hide the option to build wiiuse on VS, since it depends
@@ -31,18 +112,28 @@ else()
set(WIIUSE_BUILD ON) set(WIIUSE_BUILD ON)
endif() endif()
if(MINGW OR CYGWIN) if(UNIX AND NOT APPLE)
set(USE_WIIUSE OFF) option(USE_ASAN "Build with Leak/Address sanitizer" OFF)
option(USE_TSAN "Build with Thread sanitizer" OFF)
option(USE_LIBBFD "Use libbfd for crash reporting and leak check" OFF)
endif() endif()
if(UNIX AND NOT APPLE) if(USE_ASAN)
option(USE_XRANDR "Use xrandr instead of vidmode" ON) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsanitize=address -fno-omit-frame-pointer")
option(USE_ASAN "Build with Leak/Address sanitizer" OFF) set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fsanitize=address -fno-omit-frame-pointer")
endif()
if(USE_TSAN)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsanitize=thread -fno-omit-frame-pointer")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fsanitize=thread -fno-omit-frame-pointer")
endif() endif()
set(STK_SOURCE_DIR "src") set(STK_SOURCE_DIR "src")
set(STK_DATA_DIR "${PROJECT_SOURCE_DIR}/data") set(STK_DATA_DIR "${PROJECT_SOURCE_DIR}/data")
# CMAKE_RUNTIME_OUTPUT_DIRECTORY removes dSYMs in Xcode archive
if(NOT CMAKE_GENERATOR MATCHES "Xcode")
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${PROJECT_BINARY_DIR}/bin") set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${PROJECT_BINARY_DIR}/bin")
endif()
# Define install paths # Define install paths
set(STK_INSTALL_BINARY_DIR "bin" CACHE set(STK_INSTALL_BINARY_DIR "bin" CACHE
@@ -50,78 +141,264 @@ set(STK_INSTALL_BINARY_DIR "bin" CACHE
set(STK_INSTALL_DATA_DIR "share/supertuxkart" CACHE set(STK_INSTALL_DATA_DIR "share/supertuxkart" CACHE
STRING "Install data folder to this directory, absolute or relative to CMAKE_INSTALL_PREFIX") STRING "Install data folder to this directory, absolute or relative to CMAKE_INSTALL_PREFIX")
# Define dependencies path
string(TOLOWER "${CMAKE_SYSTEM_PROCESSOR}" arch_lower)
set(BUILD_ARCH "unknown")
if (CMAKE_GENERATOR_PLATFORM)
set(BUILD_ARCH "${CMAKE_GENERATOR_PLATFORM}")
endif()
if(arch_lower MATCHES "arm64" OR arch_lower MATCHES "aarch64" OR ${CMAKE_GENERATOR} MATCHES "(ARM64)" OR ${BUILD_ARCH} MATCHES "(ARM64)")
set(DEPENDENCIES "dependencies-win-aarch64")
elseif(arch_lower MATCHES "armv7" OR arch_lower MATCHES "armv7" OR ${CMAKE_GENERATOR} MATCHES "(ARM)" OR ${BUILD_ARCH} MATCHES "(ARM)")
set(DEPENDENCIES "dependencies-win-armv7")
elseif(CMAKE_SIZEOF_VOID_P EQUAL 8)
set(DEPENDENCIES "dependencies-win-x86_64")
else()
set(DEPENDENCIES "dependencies-win-i686")
endif()
if(WIN32)
ADD_DEFINITIONS(-DUNICODE)
ADD_DEFINITIONS(-D_UNICODE)
if(NOT IS_DIRECTORY "${PROJECT_SOURCE_DIR}/${DEPENDENCIES}")
message(FATAL_ERROR "Dependencies directory not found, make sure dependencies-win-(arch) exists inside stk-code directory.")
endif()
endif()
# These variables enable MSVC to find libraries located in "dependencies" # These variables enable MSVC to find libraries located in "dependencies"
if(WIN32) if(WIN32)
set(ENV{PATH} "$ENV{PATH};${PROJECT_SOURCE_DIR}/dependencies/include") set(ENV{PATH} "$ENV{PATH};${PROJECT_SOURCE_DIR}/${DEPENDENCIES}/include")
set(ENV{LIB} ${PROJECT_SOURCE_DIR}/dependencies/lib) set(ENV{LIB} ${PROJECT_SOURCE_DIR}/${DEPENDENCIES}/lib)
set(ENV{OPENALDIR} ${PROJECT_SOURCE_DIR}/dependencies) set(ENV{OPENALDIR} ${PROJECT_SOURCE_DIR}/${DEPENDENCIES})
add_definitions(-D_IRR_STATIC_LIB_) add_definitions(-D_IRR_STATIC_LIB_)
add_definitions(-DNO_IRR_COMPILE_WITH_X11_)
include_directories(${PROJECT_SOURCE_DIR}/${DEPENDENCIES}/include)
endif()
if(WIN32 AND NOT USE_DIRECTX)
add_definitions(-DNO_IRR_COMPILE_WITH_DIRECT3D_9_)
endif()
if(USE_GLES2)
add_definitions(-DUSE_GLES2)
if (NOT IOS)
add_definitions(-D_IRR_COMPILE_WITH_OGLES2_)
endif()
add_definitions(-DNO_IRR_COMPILE_WITH_OPENGL_)
endif()
if(SERVER_ONLY)
add_definitions(-DSERVER_ONLY)
add_definitions(-DNO_IRR_COMPILE_WITH_X11_ -DNO_IRR_COMPILE_WITH_OPENGL_)
endif()
if(UNIX OR MINGW)
if(DEBUG_SYMBOLS)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g")
endif()
endif()
if(UNIX AND NOT APPLE AND NOT ${CMAKE_SYSTEM_NAME} MATCHES "SunOS")
find_package(PkgConfig REQUIRED)
if(NOT PKGCONFIG_FOUND)
message(FATAL_ERROR "Pkg-config not found.")
endif()
endif() endif()
# Build the Bullet physics library # Build the Bullet physics library
add_subdirectory("${PROJECT_SOURCE_DIR}/lib/bullet") add_subdirectory("${PROJECT_SOURCE_DIR}/lib/bullet")
include_directories("${PROJECT_SOURCE_DIR}/lib/bullet/src") include_directories(BEFORE "${PROJECT_SOURCE_DIR}/lib/bullet/src")
# Build the ENet UDP network library # Build the DNS C library
if(USE_DNS_C)
add_definitions(-DDNS_C)
add_subdirectory("${PROJECT_SOURCE_DIR}/lib/dnsc")
include_directories(BEFORE "${PROJECT_SOURCE_DIR}/lib/dnsc")
else()
if(WIN32 OR CMAKE_SYSTEM_NAME MATCHES "BSD" OR CMAKE_SYSTEM_NAME MATCHES "DragonFly" OR USE_SWITCH)
set(LIBRESOLV_LIBRARY)
elseif (HAIKU)
find_library(LIBRESOLV_LIBRARY NAMES network socket)
else()
find_library(LIBRESOLV_LIBRARY NAMES resolv libresolv)
endif()
endif()
# Find system ENet library or build it if missing
if((UNIX AND NOT APPLE) AND USE_SYSTEM_ENET AND NOT USE_IPV6)
pkg_check_modules(ENET libenet>=1.3.4)
endif()
if (USE_IPV6)
add_definitions(-DENABLE_IPV6)
endif()
if(ENET_FOUND AND NOT USE_IPV6)
include_directories(${ENET_INCLUDE_DIRS})
else()
# Fallback to built-in version
add_subdirectory("${PROJECT_SOURCE_DIR}/lib/enet") add_subdirectory("${PROJECT_SOURCE_DIR}/lib/enet")
include_directories("${PROJECT_SOURCE_DIR}/lib/enet/include") include_directories(BEFORE "${PROJECT_SOURCE_DIR}/lib/enet/include")
set(ENET_LIBRARIES "enet")
# Build glew library
add_subdirectory("${PROJECT_SOURCE_DIR}/lib/glew")
include_directories("${PROJECT_SOURCE_DIR}/lib/glew/include")
if((WIN32 AND NOT MINGW) OR APPLE)
if (NOT APPLE)
# Build zlib library
add_subdirectory("${PROJECT_SOURCE_DIR}/lib/zlib")
include_directories("${PROJECT_SOURCE_DIR}/lib/zlib")
set(ZLIB_INCLUDE_DIR "${PROJECT_SOURCE_DIR}/lib/zlib" "${PROJECT_BINARY_DIR}/lib/zlib/")
set(ZLIB_LIBRARY zlibstatic)
endif() endif()
# Build png library if(NOT SERVER_ONLY)
set (SKIP_INSTALL_ALL TRUE) if(USE_SYSTEM_SQUISH)
set (PNG_STATIC TRUE) find_library(SQUISH_LIBRARY NAMES squish libsquish)
set (PNG_TESTS FALSE) find_path(SQUISH_INCLUDEDIR NAMES squish.h PATHS)
set (PNG_SHARED FALSE)
add_subdirectory("${PROJECT_SOURCE_DIR}/lib/libpng")
include_directories("${PROJECT_SOURCE_DIR}/lib/libpng")
#build jpeg library
add_subdirectory("${PROJECT_SOURCE_DIR}/lib/jpeglib")
include_directories("${PROJECT_SOURCE_DIR}/lib/jpeglib")
set(PNG_PNG_INCLUDE_DIR "${PROJECT_SOURCE_DIR}/lib/libpng/")
set(PNG_LIBRARY png15_static)
set(JPEG_INCLUDE_DIR "${PROJECT_SOURCE_DIR}/lib/jpeglib/")
set(JPEG_LIBRARY jpeglib)
endif() endif()
if (NOT SQUISH_LIBRARY OR NOT SQUISH_INCLUDEDIR)
add_subdirectory("${PROJECT_SOURCE_DIR}/lib/libsquish")
include_directories(BEFORE "${PROJECT_SOURCE_DIR}/lib/libsquish")
SET(SQUISH_LIBRARY squish)
else()
include_directories("${SQUISH_INCLUDEDIR}")
MESSAGE(STATUS "Use system libsquish: ${SQUISH_LIBRARY}")
endif()
endif()
if(NOT SERVER_ONLY)
find_library(SHADERC_LIBRARY NAMES shaderc_shared libshaderc_shared)
find_path(SHADERC_INCLUDEDIR NAMES shaderc/shaderc.hpp PATHS)
if (NOT SHADERC_LIBRARY OR NOT SHADERC_INCLUDEDIR)
set(SHADERC_SKIP_INSTALL ON CACHE INTERNAL "Skip installation" FORCE)
set(SHADERC_SKIP_TESTS ON CACHE INTERNAL "Skip building tests" FORCE)
set(SHADERC_SKIP_EXAMPLES ON CACHE INTERNAL "Skip building examples" FORCE)
set(SHADERC_SKIP_COPYRIGHT_CHECK ON CACHE INTERNAL "Skip copyright check" FORCE)
set(SPIRV_HEADERS_SKIP_INSTALL ON CACHE INTERNAL "Skip install" FORCE)
set(SPIRV_HEADERS_SKIP_EXAMPLES ON CACHE INTERNAL "Skip building examples" FORCE)
set(SKIP_SPIRV_TOOLS_INSTALL ON CACHE INTERNAL "Skip installation" FORCE)
set(SPIRV_SKIP_TESTS ON CACHE INTERNAL "Skip tests" FORCE)
set(SPIRV_SKIP_EXECUTABLES ON CACHE INTERNAL "Skip executables" FORCE)
set(ENABLE_GLSLANG_BINARIES OFF CACHE INTERNAL "Builds glslangValidator and spirv-remap" FORCE)
set(ENABLE_CTEST OFF CACHE INTERNAL "Enable ctest" FORCE)
add_subdirectory("${PROJECT_SOURCE_DIR}/lib/shaderc")
include_directories(BEFORE "${PROJECT_SOURCE_DIR}/lib/shaderc/libshaderc/include")
SET(SHADERC_LIBRARY shaderc)
message(STATUS "System shaderc not found, use the bundled one.")
else()
include_directories("${SHADERC_INCLUDEDIR}")
MESSAGE(STATUS "Use system shaderc: ${SHADERC_LIBRARY}")
endif()
add_subdirectory("${PROJECT_SOURCE_DIR}/lib/graphics_engine")
endif()
# MiniGLM is there
include_directories(BEFORE "${PROJECT_SOURCE_DIR}/lib/graphics_engine/include")
if (NOT SERVER_ONLY)
# Add jpeg library
find_package(JPEG REQUIRED)
include_directories(${JPEG_INCLUDE_DIR})
endif()
if (BUILD_RECORDER)
find_library(OPENGLRECORDER_LIBRARY NAMES openglrecorder libopenglrecorder PATHS "${PROJECT_SOURCE_DIR}/${DEPENDENCIES}/lib")
find_path(OPENGLRECORDER_INCLUDEDIR NAMES openglrecorder.h PATHS "${PROJECT_SOURCE_DIR}/${DEPENDENCIES}/include")
if (NOT OPENGLRECORDER_LIBRARY OR NOT OPENGLRECORDER_INCLUDEDIR)
if(PROJECT_VERSION STREQUAL "git")
message(WARNING "libopenglrecorder not found, disabling in-game recorder. "
"To use recorder, install libopenglrecorder.")
set(OPENGLRECORDER_LIBRARY CACHE INTERNAL "")
set(OPENGLRECORDER_INCLUDEDIR CACHE INTERNAL "")
set(BUILD_RECORDER OFF)
else()
message(FATAL_ERROR "libopenglrecorder not found. "
"Either install libopenglrecorder or disable in-game recorder with -DBUILD_RECORDER=0")
endif()
else()
include_directories(${OPENGLRECORDER_INCLUDEDIR})
mark_as_advanced(OPENGLRECORDER_LIBRARY OPENGLRECORDER_INCLUDEDIR)
add_definitions(-DENABLE_RECORDER)
endif()
endif()
if(NOT SERVER_ONLY)
add_subdirectory("${PROJECT_SOURCE_DIR}/lib/graphics_utils")
include_directories(BEFORE "${PROJECT_SOURCE_DIR}/lib/graphics_utils")
add_subdirectory("${PROJECT_SOURCE_DIR}/lib/tinygettext")
include_directories(BEFORE "${PROJECT_SOURCE_DIR}/lib/tinygettext/include")
endif()
# Libmcpp
find_library(MCPP_LIBRARY NAMES mcpp libmcpp)
find_path(MCPP_INCLUDEDIR NAMES mcpp_lib.h PATHS)
if (NOT MCPP_LIBRARY OR NOT MCPP_INCLUDEDIR)
add_subdirectory("${PROJECT_SOURCE_DIR}/lib/mcpp")
include_directories(BEFORE "${PROJECT_SOURCE_DIR}/lib/mcpp")
SET(MCPP_LIBRARY mcpp)
message(STATUS "System libmcpp not found, use the bundled one.")
else()
include_directories("${MCPP_INCLUDEDIR}")
MESSAGE(STATUS "Use system libmcpp: ${MCPP_LIBRARY}")
endif()
if (NOT SERVER_ONLY)
# SDL2
find_library(SDL2_LIBRARY NAMES SDL2 libSDL2)
find_path(SDL2_INCLUDEDIR NAMES SDL.h PATH_SUFFIXES SDL2 include/SDL2 include PATHS)
if (NOT SDL2_LIBRARY OR NOT SDL2_INCLUDEDIR)
message(FATAL_ERROR "SDL2 not found. "
"SDL2 is required to handle gamepad in SuperTuxKart.")
else()
include_directories("${SDL2_INCLUDEDIR}")
MESSAGE(STATUS "Use system SDL2: ${SDL2_LIBRARY}")
endif()
# DirectFB. Necessary if system SDL2 is built with DirectFB support.
find_path(DIRECTFB_INCLUDEDIR NAMES directfb.h directfb++.h PATH_SUFFIXES directfb include/directfb include PATHS)
if (DIRECTFB_INCLUDEDIR)
include_directories("${DIRECTFB_INCLUDEDIR}")
message(STATUS "Adding DirectFB include directories for DirectFB support in SDL2")
endif()
endif()
# Build the irrlicht library # Build the irrlicht library
add_subdirectory("${PROJECT_SOURCE_DIR}/lib/irrlicht") add_subdirectory("${PROJECT_SOURCE_DIR}/lib/irrlicht")
include_directories("${PROJECT_SOURCE_DIR}/lib/irrlicht/include") include_directories(BEFORE "${PROJECT_SOURCE_DIR}/lib/irrlicht/include")
# Build the Wiiuse library # Build the Wiiuse library
# Note: wiiuse MUST be declared after irrlicht, since otherwise # Note: wiiuse MUST be declared after irrlicht, since otherwise
# (at least on VS) irrlicht will find wiiuse io.h file because # (at least on VS) irrlicht will find wiiuse io.h file because
# of the added include directory. # of the added include directory.
if(USE_WIIUSE) if(USE_WIIUSE)
# Find system WiiUse library or build it if missing
if((UNIX AND NOT (APPLE OR HAIKU)) AND USE_SYSTEM_WIIUSE)
find_package(WiiUse)
endif()
if(WIIUSE_FOUND)
include_directories(${WIIUSE_INCLUDE_DIR})
else()
# Fallback to built-in version
if(WIIUSE_BUILD) if(WIIUSE_BUILD)
add_subdirectory("${PROJECT_SOURCE_DIR}/lib/wiiuse") add_subdirectory("${PROJECT_SOURCE_DIR}/lib/wiiuse")
endif() endif()
include_directories("${PROJECT_SOURCE_DIR}/lib/wiiuse") include_directories(BEFORE "${PROJECT_SOURCE_DIR}/lib/wiiuse/src/include")
set(WIIUSE_LIBRARIES "wiiuse" "bluetooth")
endif()
endif() endif()
# Set include paths # Set include paths
include_directories(${STK_SOURCE_DIR}) include_directories(${STK_SOURCE_DIR})
if(APPLE) if(APPLE AND NOT IOS)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -arch i386") set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -arch ${ARCHFLAGS}")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -arch i386 -F/Library/Frameworks") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -arch ${ARCHFLAGS} -F/Library/Frameworks")
elseif(MSVC) elseif(MSVC)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /MP") # Enable multi-processor compilation (faster) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /MP") # Enable multi-processor compilation (faster)
endif() endif()
if (${CMAKE_SYSTEM_NAME} MATCHES "SunOs")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -m64")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -m64")
endif()
# Build the angelscript library if not in system # Build the angelscript library if not in system
if(USE_SYSTEM_ANGELSCRIPT) if(USE_SYSTEM_ANGELSCRIPT)
@@ -135,88 +412,110 @@ if(USE_SYSTEM_ANGELSCRIPT)
endif() endif()
else() else()
add_subdirectory("${PROJECT_SOURCE_DIR}/lib/angelscript/projects/cmake") add_subdirectory("${PROJECT_SOURCE_DIR}/lib/angelscript/projects/cmake")
include_directories("${PROJECT_SOURCE_DIR}/lib/angelscript/include") include_directories(BEFORE "${PROJECT_SOURCE_DIR}/lib/angelscript/include")
set(Angelscript_LIBRARIES angelscript) set(Angelscript_LIBRARIES angelscript)
endif() endif()
if(NOT SERVER_ONLY)
# OpenAL # OpenAL
if(APPLE) if (USE_MOJOAL)
# In theory it would be cleaner to let CMake detect the right dependencies. In practice, this means that if a OSX user has find_library(LIBSAMPLERATE_LIBRARY NAMES samplerate libsamplerate)
# unix-style installs of Vorbis/Ogg/OpenAL/etc. they will be picked up over our frameworks. This is blocking when I make releases : find_path(LIBSAMPLERATE_INCLUDEDIR NAMES samplerate.h PATHS)
# the mac I use to make STK releases does have other installs of vorbis/ogg/etc. which aren't compatible with STK, so letting if (NOT LIBSAMPLERATE_LIBRARY OR NOT LIBSAMPLERATE_INCLUDEDIR)
# CMake pick the library it wants essentially means I can't build. message(FATAL_ERROR "libsamplerate not found. "
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -framework OpenAL") "libsamplerate is required to handle pitch for MojoAL.")
set(OPENAL_LIBRARY) else()
include_directories("${LIBSAMPLERATE_INCLUDEDIR}")
MESSAGE(STATUS "Use system libsamplerate: ${LIBSAMPLERATE_LIBRARY}")
endif()
add_definitions(-DAL_LIBTYPE_STATIC)
add_subdirectory("${PROJECT_SOURCE_DIR}/lib/mojoal")
include_directories(BEFORE "${PROJECT_SOURCE_DIR}/lib/mojoal")
else() else()
find_package(OpenAL REQUIRED) find_package(OpenAL REQUIRED)
# Unclear why this happens, but on switch OPENAL_LIBRARY never set!
if (NOT OPENAL_LIBRARY)
find_library(OPENAL_LIBRARY NAMES al OpenAL AL openal REQUIRED)
endif()
if (NOT OPENAL_INCLUDE_DIR)
find_path(OPENAL_INCLUDE_DIR NAMES AL/al.h REQUIRED)
endif()
include_directories(${OPENAL_INCLUDE_DIR}) include_directories(${OPENAL_INCLUDE_DIR})
endif() endif()
# OggVorbis # OggVorbis
if(APPLE)
# In theory it would be cleaner to let CMake detect the right dependencies. In practice, this means that if a OSX user has
# unix-style installs of Vorbis/Ogg/OpenAL/etc. they will be picked up over our frameworks. This is blocking when I make releases :
# the mac I use to make STK releases does have other installs of vorbis/ogg/etc. which aren't compatible with STK, so letting
# CMake pick the library it wants essentially means I can't build.
set(CMAKE_CXX_FLAGS "${CMAKE_C_FLAGS} -I/Library/Frameworks/Ogg.framework/Versions/A/Headers -I/Library/Frameworks/Vorbis.framework/Versions/A/Headers")
else()
find_package(OggVorbis REQUIRED) find_package(OggVorbis REQUIRED)
include_directories(${OGGVORBIS_INCLUDE_DIRS}) include_directories(${OGGVORBIS_INCLUDE_DIRS})
add_definitions(-DENABLE_SOUND)
endif() endif()
# Fribidi # Text handling in STK (We use freetype, harfbuzz and SheenBidifor i18n text handling)
if(USE_FRIBIDI) if (NOT SERVER_ONLY)
find_package(Fribidi) # SheenBidi
if(FRIBIDI_FOUND) add_subdirectory("${PROJECT_SOURCE_DIR}/lib/sheenbidi")
include_directories(${FRIBIDI_INCLUDE_DIRS}) include_directories(BEFORE "${PROJECT_SOURCE_DIR}/lib/sheenbidi/Headers")
SET(SHEENBIDI_LIBRARY sheenbidi)
# Freetype
find_package(Freetype)
if(FREETYPE_FOUND)
include_directories(${FREETYPE_INCLUDE_DIRS})
else() else()
message(FATAL_ERROR "Fribidi not found. " message(FATAL_ERROR "Freetype not found. "
"Either install fribidi or disable bidi support with -DUSE_FRIBIDI=0 " "Freetype is required to display characters in SuperTuxKart.")
"(if you don't use a right-to-left language then you don't need this).")
endif()
endif() endif()
# OpenMP # Harfbuzz
find_package(OpenMP) find_library(HARFBUZZ_LIBRARY NAMES harfbuzz libharfbuzz)
if (OPENMP_FOUND) find_path(HARFBUZZ_INCLUDEDIR NAMES harfbuzz/hb.h hb.h PATHS)
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${OpenMP_C_FLAGS}") if (NOT HARFBUZZ_LIBRARY OR NOT HARFBUZZ_INCLUDEDIR)
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}") message(FATAL_ERROR "Harfbuzz not found. "
endif() "Harfbuzz is required to display characters in SuperTuxKart.")
# OpenGL
find_package(OpenGL REQUIRED)
include_directories(${OPENGL_INCLUDE_DIR})
if(UNIX AND NOT APPLE)
find_package(X11 REQUIRED)
include_directories(${X11_INCLUDE_DIR})
if(USE_XRANDR)
find_package(Xrandr REQUIRED)
if(NOT XRANDR_FOUND)
message(FATAL_ERROR "XRANDR not found.")
endif()
else() else()
find_library(IRRLICHT_XF86VM_LIBRARY Xxf86vm) include_directories("${HARFBUZZ_INCLUDEDIR}")
mark_as_advanced(IRRLICHT_XF86VM_LIBRARY) MESSAGE(STATUS "Use system harfbuzz: ${HARFBUZZ_LIBRARY}")
endif()
endif()
if(USE_LIBBFD)
find_package(Libbfd)
if(LIBBFD_FOUND)
add_definitions(-DENABLE_LIBBFD)
include_directories(${LIBBFD_INCLUDE_DIRS})
else()
set(USE_LIBBFD OFF CACHE BOOL "Use libbfd for crash reporting and leak check" FORCE)
message(WARNING "Libbfd not found, disable integrated stack trace.")
endif()
endif()
# SQLITE
if(USE_SQLITE3)
find_library(SQLITE3_LIBRARY NAMES sqlite3 libsqlite3)
find_path(SQLITE3_INCLUDEDIR NAMES sqlite3.h PATHS)
if (NOT SQLITE3_LIBRARY OR NOT SQLITE3_INCLUDEDIR)
# add_subdirectory("${PROJECT_SOURCE_DIR}/lib/sqlite3")
# include_directories(BEFORE "${PROJECT_SOURCE_DIR}/lib/sqlite3")
# SET(SQLITE3_LIBRARY sqlite3)
set(USE_SQLITE3 OFF CACHE BOOL "Use sqlite to manage server stats and ban list." FORCE)
message(WARNING "Sqlite3 not found, disable advanced server management.")
else()
add_definitions(-DENABLE_SQLITE3)
include_directories("${SQLITE3_INCLUDEDIR}")
MESSAGE(STATUS "Use system libsqlite3: ${SQLITE3_LIBRARY}")
endif() endif()
endif() endif()
# Set some compiler options # Set some compiler options
if(UNIX OR MINGW) if(UNIX OR MINGW)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++0x") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++0x")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wno-unused-function")
endif() endif()
if(MINGW AND CMAKE_BUILD_TYPE MATCHES Release) if(MINGW AND CMAKE_BUILD_TYPE MATCHES Release)
SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,--subsystem,windows") SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,--subsystem,windows")
endif() endif()
# Netwowk Multiplayer
if(ENABLE_NETWORK_MULTIPLAYER)
add_definitions(-DENABLE_NETWORK_MULTIPLAYER_SCREEN)
endif()
if(WIN32) if(WIN32)
# By default windows.h has macros defined for min and max that screw up everything # By default windows.h has macros defined for min and max that screw up everything
add_definitions(-DNOMINMAX) add_definitions(-DNOMINMAX)
@@ -244,11 +543,9 @@ else()
endif() endif()
endif() endif()
# TODO: remove this switch
add_definitions(-DHAVE_OGGVORBIS)
if(WIN32) if(WIN32)
configure_file("${STK_SOURCE_DIR}/windows_installer/icon_rc.template" "${PROJECT_BINARY_DIR}/tmp/icon.rc") configure_file("${STK_SOURCE_DIR}/../tools/windows_installer/icon_rc.template" "${PROJECT_BINARY_DIR}/tmp/icon.rc")
endif() endif()
# Provides list of source and header files (STK_SOURCES and STK_HEADERS) # Provides list of source and header files (STK_SOURCES and STK_HEADERS)
@@ -259,7 +556,7 @@ include(cmake/SourceGroupFunctions.cmake)
source_group_hierarchy(STK_SOURCES STK_HEADERS) source_group_hierarchy(STK_SOURCES STK_HEADERS)
if(APPLE) if(APPLE AND NOT IOS)
# icon files to copy in the bundle # icon files to copy in the bundle
set(OSX_ICON_FILES ${PROJECT_SOURCE_DIR}/data/supertuxkart.icns) set(OSX_ICON_FILES ${PROJECT_SOURCE_DIR}/data/supertuxkart.icns)
set_source_files_properties(${OSX_ICON_FILES} PROPERTIES MACOSX_PACKAGE_LOCATION Resources) set_source_files_properties(${OSX_ICON_FILES} PROPERTIES MACOSX_PACKAGE_LOCATION Resources)
@@ -269,16 +566,10 @@ if(APPLE)
add_executable(supertuxkart MACOSX_BUNDLE ${STK_SOURCES}) add_executable(supertuxkart MACOSX_BUNDLE ${STK_SOURCES})
find_library(IOKIT_LIBRARY IOKit) find_library(IOKIT_LIBRARY IOKit)
find_library(QUICKTIME_LIBRARY QuickTime)
find_library(CARBON_LIBRARY Carbon)
find_library(AUDIOUNIT_LIBRARY AudioUnit)
find_library(COCOA_LIBRARY Cocoa) find_library(COCOA_LIBRARY Cocoa)
target_link_libraries(supertuxkart target_link_libraries(supertuxkart
${IOKIT_LIBRARY} ${IOKIT_LIBRARY}
${QUICKTIME_LIBRARY}
${CARBON_LIBRARY}
${AUDIOUNIT_LIBRARY}
${COCOA_LIBRARY}) ${COCOA_LIBRARY})
# configure CMake to use a custom Info.plist # configure CMake to use a custom Info.plist
@@ -287,19 +578,16 @@ if(APPLE)
if(CMAKE_GENERATOR MATCHES "Xcode") if(CMAKE_GENERATOR MATCHES "Xcode")
add_custom_command(TARGET supertuxkart POST_BUILD add_custom_command(TARGET supertuxkart POST_BUILD
COMMAND ln -f -s ${PROJECT_SOURCE_DIR}/data ${CMAKE_BINARY_DIR}/bin/\${CONFIGURATION}/supertuxkart.app/Contents/Resources) COMMAND ln -f -s ${PROJECT_SOURCE_DIR}/data ${CMAKE_BINARY_DIR}/\${CONFIGURATION}/supertuxkart.app/Contents/Resources)
else() else()
add_custom_command(TARGET supertuxkart POST_BUILD add_custom_command(TARGET supertuxkart POST_BUILD
COMMAND ln -f -s ${PROJECT_SOURCE_DIR}/data ${CMAKE_BINARY_DIR}/bin/supertuxkart.app/Contents/Resources) COMMAND ln -f -s ${PROJECT_SOURCE_DIR}/data ${CMAKE_BINARY_DIR}/bin/supertuxkart.app/Contents/Resources)
endif() endif()
else() else()
if(MSVC) if (NOT WIN32)
set(PTHREAD_NAMES pthreadVC2) find_library(PTHREAD_LIBRARY NAMES pthread ${PTHREAD_NAMES} PATHS ${PROJECT_SOURCE_DIR}/${DEPENDENCIES}/lib)
elseif(MINGW)
set(PTHREAD_NAMES "winpthread-1" "libwinpthread-1" "pthreadGC2")
endif()
find_library(PTHREAD_LIBRARY NAMES pthread ${PTHREAD_NAMES} PATHS ${PROJECT_SOURCE_DIR}/dependencies/lib)
mark_as_advanced(PTHREAD_LIBRARY) mark_as_advanced(PTHREAD_LIBRARY)
endif()
# Set data dir (absolute or relative to CMAKE_INSTALL_PREFIX) # Set data dir (absolute or relative to CMAKE_INSTALL_PREFIX)
if(NOT STK_INSTALL_DATA_DIR_ABSOLUTE) if(NOT STK_INSTALL_DATA_DIR_ABSOLUTE)
@@ -314,16 +602,78 @@ else()
endif() endif()
# Build the final executable # Build the final executable
if (IOS)
file(GLOB IOS_ASSETS_FILES ${IOS_ASSETS} ${IOS_LAUNCHSCREEN} ${IOS_IMAGES_XCASSETS})
set_source_files_properties(${IOS_ASSETS_FILES} PROPERTIES MACOSX_PACKAGE_LOCATION Resources)
add_executable(supertuxkart ${STK_SOURCES} ${STK_RESOURCES} ${STK_HEADERS} ${IOS_ASSETS_FILES})
set_target_properties(supertuxkart PROPERTIES
MACOSX_BUNDLE_INFO_PLIST ${PROJECT_SOURCE_DIR}/data/SuperTuxKart-Info-iOS.plist
XCODE_ATTRIBUTE_IPHONEOS_DEPLOYMENT_TARGET 9.0
XCODE_ATTRIBUTE_INSTALL_PATH /Applications
XCODE_ATTRIBUTE_SKIP_INSTALL No
XCODE_ATTRIBUTE_ASSETCATALOG_COMPILER_APPICON_NAME "AppIcon")
if(CMAKE_GENERATOR MATCHES "Xcode")
get_all_targets(supertuxkart_targets ${CMAKE_CURRENT_LIST_DIR})
foreach(target IN LISTS supertuxkart_targets)
if (NOT target MATCHES "supertuxkart")
set_target_properties(${target} PROPERTIES ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib$(EFFECTIVE_PLATFORM_NAME)/${target})
endif()
configure_xcode_defaults(${target})
endforeach()
endif()
else()
add_executable(supertuxkart ${STK_SOURCES} ${STK_RESOURCES} ${STK_HEADERS}) add_executable(supertuxkart ${STK_SOURCES} ${STK_RESOURCES} ${STK_HEADERS})
endif()
if (NOT WIN32)
target_link_libraries(supertuxkart ${PTHREAD_LIBRARY}) target_link_libraries(supertuxkart ${PTHREAD_LIBRARY})
endif() endif()
endif()
# check if linking against libatomic is required
include(CheckCXXSourceCompiles)
check_cxx_source_compiles("
#include <atomic>
#include <cstdint>
int main() {
std::atomic<uint64_t> x{0};
x.load();
return 0;
}
" NO_LIBATOMIC_NEEDED)
if (NOT NO_LIBATOMIC_NEEDED)
target_link_libraries(supertuxkart atomic)
endif()
# CURL and OpenSSL or MbedTLS
# 1.0.1d for compatible AES GCM handling
SET(OPENSSL_MINIMUM_VERSION "1.0.1d")
# CURL
if(WIN32)
target_link_libraries(supertuxkart ${PROJECT_SOURCE_DIR}/dependencies/lib/libcurldll.a)
else()
find_package(CURL REQUIRED) find_package(CURL REQUIRED)
include_directories(${CURL_INCLUDE_DIRS}) include_directories(${CURL_INCLUDE_DIRS})
find_path(MBEDTLS_INCLUDE_DIRS mbedtls/version.h)
find_library(MBEDCRYPTO_LIBRARY NAMES mbedcrypto libmbedcrypto)
if (NOT MBEDCRYPTO_LIBRARY OR NOT MBEDTLS_INCLUDE_DIRS OR USE_CRYPTO_OPENSSL)
set(USE_CRYPTO_OPENSSL ON)
find_package(OpenSSL REQUIRED)
if(${OPENSSL_VERSION} VERSION_LESS ${OPENSSL_MINIMUM_VERSION} OR
(${OPENSSL_VERSION} VERSION_EQUAL ${OPENSSL_MINIMUM_VERSION} AND ${OPENSSL_VERSION} STRLESS ${OPENSSL_MINIMUM_VERSION}))
message(FATAL_ERROR "OpenSSL version found (${OPENSSL_VERSION}) is less then the minimum required (${OPENSSL_MINIMUM_VERSION}), aborting.")
endif()
include_directories(${OpenSSL_INCLUDE_DIRS})
else()
set(USE_CRYPTO_OPENSSL OFF)
include_directories(${MBEDTLS_INCLUDE_DIRS})
endif()
if (USE_CRYPTO_OPENSSL)
message(STATUS "OpenSSL will be used for cryptography in STK.")
add_definitions(-DENABLE_CRYPTO_OPENSSL)
else()
message(STATUS "MbedTLS will be used for cryptography in STK.")
add_definitions(-DENABLE_CRYPTO_MBEDTLS)
endif() endif()
# Common library dependencies # Common library dependencies
@@ -331,41 +681,125 @@ target_link_libraries(supertuxkart
bulletdynamics bulletdynamics
bulletcollision bulletcollision
bulletmath bulletmath
enet ${ENET_LIBRARIES}
glew
stkirrlicht stkirrlicht
${Angelscript_LIBRARIES} ${Angelscript_LIBRARIES}
${CURL_LIBRARIES} ${CURL_LIBRARIES}
${OGGVORBIS_LIBRARIES} ${MCPP_LIBRARY}
${OPENAL_LIBRARY}
${OPENGL_LIBRARIES}
) )
if(UNIX AND NOT APPLE) if (USE_SWITCH)
target_link_libraries(supertuxkart ${X11_LIBRARIES}) include(cmake/FindEGL.cmake)
if(USE_XRANDR) find_library(NX_LIBRARY NAMES nx libnx REQUIRED)
target_link_libraries(supertuxkart ${XRANDR_LIBRARIES}) find_library(DRM_LIBRARY NAMES drm_nouveau libdrm_nouveau REQUIRED)
find_library(GLAPI_LIBRARY NAMES glapi libglapi REQUIRED)
find_library(ZLIB_LIBRARY NAMES z libz REQUIRED)
find_library(PNG_LIBRARY NAMES png libpng REQUIRED)
find_library(BZ2_LIBRARY NAMES bz2 libbz2 REQUIRED)
target_link_libraries(supertuxkart
${NX_LIBRARY}
${ZLIB_LIBRARY}
${FREETYPE_LIBRARIES}
-logg
-lvorbis
${SDL2_LIBRARY}
${PNG_LIBRARY}
${BZ2_LIBRARY}
${HARFBUZZ_LIBRARY}
${OPENAL_LIBRARY}
${EGL_LIBRARY}
${DRM_LIBRARY}
${GLAPI_LIBRARY}
${NX_LIBRARY}
)
endif()
if(NOT SERVER_ONLY)
if (USE_MOJOAL)
target_link_libraries(supertuxkart mojoal ${LIBSAMPLERATE_LIBRARY})
else() else()
target_link_libraries(supertuxkart ${IRRLICHT_XF86VM_LIBRARY}) target_link_libraries(supertuxkart ${OPENAL_LIBRARY})
endif()
endif()
if (${CMAKE_SYSTEM_NAME} MATCHES "SunOS")
target_link_libraries(supertuxkart nsl socket vorbisfile)
endif()
if (${CMAKE_SYSTEM_NAME} MATCHES "Haiku")
target_link_libraries(supertuxkart be network vorbisfile)
endif()
if (USE_DNS_C)
target_link_libraries(supertuxkart dnsc)
else()
target_link_libraries(supertuxkart ${LIBRESOLV_LIBRARY})
endif()
if (USE_SQLITE3)
target_link_libraries(supertuxkart ${SQLITE3_LIBRARY})
endif()
if (USE_CRYPTO_OPENSSL)
target_link_libraries(supertuxkart ${OPENSSL_CRYPTO_LIBRARY})
else()
target_link_libraries(supertuxkart ${MBEDCRYPTO_LIBRARY})
endif()
if(NOT SERVER_ONLY)
if (APPLE AND NOT DLOPEN_MOLTENVK)
find_library(MOLTENVK_LIBRARY NAMES MoltenVK libMoltenVK REQUIRED)
target_link_libraries(supertuxkart "-framework Metal -weak_framework IOSurface -framework QuartzCore ${MOLTENVK_LIBRARY}")
endif()
if (IOS)
target_link_libraries(supertuxkart "-weak_framework CoreHaptics -framework QuartzCore -framework CoreGraphics -framework AVFoundation -framework AudioToolbox -framework Metal -framework GameController -framework OpenGLES -framework UIKit -framework CoreAudio -framework Foundation -framework GLKit")
# tvOS doesn't have CoreMotion framwork
include(CheckCSourceCompiles)
set(prev_req_lib ${CMAKE_REQUIRED_LIBRARIES})
set(CMAKE_REQUIRED_LIBRARIES "-framework CoreMotion")
check_c_source_compiles("int main() { return 0; }" COREMOTION_EXISTS)
set(CMAKE_REQUIRED_LIBRARIES ${prev_req_lib})
if (COREMOTION_EXISTS)
target_link_libraries(supertuxkart "-framework CoreMotion")
endif()
endif()
target_link_libraries(supertuxkart
${SQUISH_LIBRARY}
${JPEG_LIBRARIES}
${OGGVORBIS_LIBRARIES}
${FREETYPE_LIBRARIES}
${HARFBUZZ_LIBRARY}
${SHEENBIDI_LIBRARY}
graphics_utils
graphics_engine
${SDL2_LIBRARY}
tinygettext
${SHADERC_LIBRARY})
endif()
if(UNIX AND NOT APPLE)
if(USE_LIBBFD)
target_link_libraries(supertuxkart ${LIBBFD_LIBRARIES})
if (CMAKE_SYSTEM_NAME MATCHES "BSD")
target_link_libraries(supertuxkart execinfo)
endif()
endif() endif()
if(USE_ASAN) if(USE_ASAN)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fsanitize=address -fno-omit-frame-pointer")
target_link_libraries(supertuxkart "-fsanitize=address") target_link_libraries(supertuxkart "-fsanitize=address")
endif() endif()
if(USE_TSAN)
target_link_libraries(supertuxkart "-fsanitize=thread")
endif()
endif() endif()
if(APPLE) if(BUILD_RECORDER)
# In theory it would be cleaner to let CMake detect the right dependencies. In practice, this means that if a OSX user has target_link_libraries(supertuxkart ${OPENGLRECORDER_LIBRARY})
# unix-style installs of Vorbis/Ogg/OpenAL/etc. they will be picked up over our frameworks. This is blocking when I make releases :
# the mac I use to make STK releases does have other installs of vorbis/ogg/etc. which aren't compatible with STK, so letting
# CMake pick the library it wants essentially means I can't build.
set_target_properties(supertuxkart PROPERTIES LINK_FLAGS "-arch i386 -F/Library/Frameworks -framework OpenAL -framework Ogg -framework Vorbis")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -I/Library/Frameworks/OpenAL.framework/Versions/A/Headers")
endif() endif()
if(USE_FRIBIDI) # FreeBSD does not search in /usr/local/lib, but at least Freetype is installed there :(
target_link_libraries(supertuxkart ${FRIBIDI_LIBRARIES}) if(${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD")
add_definitions(-DENABLE_BIDI) SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -L/usr/local/lib")
endif() endif()
# Wiiuse # Wiiuse
@@ -379,10 +813,10 @@ if(USE_WIIUSE)
if(WIIUSE_BUILD) if(WIIUSE_BUILD)
target_link_libraries(supertuxkart wiiuse) target_link_libraries(supertuxkart wiiuse)
else() else()
target_link_libraries(supertuxkart ${PROJECT_SOURCE_DIR}/dependencies/lib/wiiuse.lib) target_link_libraries(supertuxkart ${PROJECT_SOURCE_DIR}/${DEPENDENCIES}/lib/wiiuse.lib)
endif() endif()
else() else()
target_link_libraries(supertuxkart wiiuse bluetooth) target_link_libraries(supertuxkart ${WIIUSE_LIBRARIES})
endif() endif()
add_definitions(-DENABLE_WIIUSE) add_definitions(-DENABLE_WIIUSE)
@@ -392,13 +826,17 @@ if(MSVC OR MINGW)
target_link_libraries(supertuxkart iphlpapi.lib) target_link_libraries(supertuxkart iphlpapi.lib)
add_custom_command(TARGET supertuxkart POST_BUILD add_custom_command(TARGET supertuxkart POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_directory COMMAND ${CMAKE_COMMAND} -E copy_directory
"${PROJECT_SOURCE_DIR}/dependencies/dll" "${PROJECT_SOURCE_DIR}/${DEPENDENCIES}/bin"
$<TARGET_FILE_DIR:supertuxkart>) $<TARGET_FILE_DIR:supertuxkart>)
add_custom_target(stkshaders SOURCES ${STK_SHADERS}) add_custom_target(stkshaders SOURCES ${STK_SHADERS})
endif() endif()
if(MINGW) if(MINGW)
find_library(LIBGCC NAMES "libgcc_s_dw2-1.dll" "libgcc_s_sjlj-1.dll" PATHS ${CMAKE_FIND_ROOT_PATH}) target_link_libraries(supertuxkart -ldxguid -ldnsapi)
if (NOT CMAKE_BUILD_TYPE MATCHES Debug)
target_link_libraries(supertuxkart -mwindows)
endif()
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) if (LIBGCC)
file(COPY ${LIBGCC} DESTINATION ${CMAKE_BINARY_DIR}/bin/) file(COPY ${LIBGCC} DESTINATION ${CMAKE_BINARY_DIR}/bin/)
endif() endif()
@@ -406,19 +844,25 @@ if(MINGW)
if (LIBSTDCPP) if (LIBSTDCPP)
file(COPY ${LIBSTDCPP} DESTINATION ${CMAKE_BINARY_DIR}/bin/) file(COPY ${LIBSTDCPP} DESTINATION ${CMAKE_BINARY_DIR}/bin/)
endif() endif()
find_library(LIBOPENMP NAMES "libgomp-1.dll" PATHS ${CMAKE_FIND_ROOT_PATH})
if(LIBOPENMP)
file(COPY ${LIBOPENMP} DESTINATION ${CMAKE_BINARY_DIR}/bin/)
endif()
find_library(LIBPTHREAD NAMES "winpthread-1.dll" "libwinpthread-1.dll" "pthreadGC2.dll" PATHS ${CMAKE_FIND_ROOT_PATH}) find_library(LIBPTHREAD NAMES "winpthread-1.dll" "libwinpthread-1.dll" "pthreadGC2.dll" PATHS ${CMAKE_FIND_ROOT_PATH})
if(LIBPTHREAD) if(LIBPTHREAD)
file(COPY ${LIBPTHREAD} DESTINATION ${CMAKE_BINARY_DIR}/bin/) file(COPY ${LIBPTHREAD} DESTINATION ${CMAKE_BINARY_DIR}/bin/)
endif() endif()
endif() endif()
# Optional tools
add_subdirectory(tools/font_tool)
# Find LibGamerzilla library or build it if missing
if (NOT APPLE)
include(FindPkgConfig)
pkg_search_module(GAMERZILLA OPTIONAL gamerzilla)
if (GAMERZILLA_LIBRARIES)
message(STATUS "Gamerzilla found")
include_directories(${GAMERZILLA_INCLUDE_DIRS})
target_link_libraries(supertuxkart ${GAMERZILLA_LIBRARIES})
add_definitions(-DGAMERZILLA)
endif()
endif()
# ==== Checking if data folder exists ==== # ==== Checking if data folder exists ====
if(NOT IS_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/data) if(NOT IS_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/data)
@@ -456,10 +900,15 @@ if(STK_ASSETS_DIR AND CHECK_ASSETS)
install(DIRECTORY ${STK_ASSETS_DIR} DESTINATION ${STK_INSTALL_DATA_DIR}/data PATTERN ".svn" EXCLUDE PATTERN ".git" EXCLUDE) install(DIRECTORY ${STK_ASSETS_DIR} DESTINATION ${STK_INSTALL_DATA_DIR}/data PATTERN ".svn" EXCLUDE PATTERN ".git" EXCLUDE)
endif() endif()
install(FILES ${STK_DATA_DIR}/supertuxkart.desktop DESTINATION share/applications) install(FILES ${STK_DATA_DIR}/supertuxkart.desktop DESTINATION share/applications)
install(FILES data/supertuxkart_16.png DESTINATION share/icons/hicolor/16x16/apps RENAME supertuxkart.png)
install(FILES data/supertuxkart_32.png DESTINATION share/icons/hicolor/32x32/apps RENAME supertuxkart.png) install(FILES data/supertuxkart_32.png DESTINATION share/icons/hicolor/32x32/apps RENAME supertuxkart.png)
install(FILES data/supertuxkart_48.png DESTINATION share/icons/hicolor/48x48/apps RENAME supertuxkart.png)
install(FILES data/supertuxkart_64.png DESTINATION share/icons/hicolor/64x64/apps RENAME supertuxkart.png)
install(FILES data/supertuxkart_128.png DESTINATION share/icons/hicolor/128x128/apps RENAME supertuxkart.png) install(FILES data/supertuxkart_128.png DESTINATION share/icons/hicolor/128x128/apps RENAME supertuxkart.png)
install(FILES data/supertuxkart_32.png data/supertuxkart_128.png DESTINATION share/pixmaps) install(FILES data/supertuxkart_256.png DESTINATION share/icons/hicolor/256x256/apps RENAME supertuxkart.png)
install(FILES data/supertuxkart.appdata.xml DESTINATION share/appdata) install(FILES data/supertuxkart_512.png DESTINATION share/icons/hicolor/512x512/apps RENAME supertuxkart.png)
install(FILES data/supertuxkart_1024.png DESTINATION share/icons/hicolor/1024x1024/apps RENAME supertuxkart.png)
install(FILES data/supertuxkart.appdata.xml DESTINATION share/metainfo)
if(MINGW) if(MINGW)
install(DIRECTORY ${CMAKE_BINARY_DIR}/bin/ DESTINATION ${STK_INSTALL_BINARY_DIR} install(DIRECTORY ${CMAKE_BINARY_DIR}/bin/ DESTINATION ${STK_INSTALL_BINARY_DIR}

89
COPYING
View File

@@ -1,18 +1,21 @@
The SuperTuxKart code is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.
The SuperTuxKart code is released under GNU GPL (see full text below). The SuperTuxKart data files (textures, models, sounds, music, etc.) are released under a mixture of licenses including, but not limited to, the following:
SuperTuxKart data files (textures, models, sounds, music, etc.) are released under various licenses, see 'license.txt' files
through the various data subdirectories. Data files are released under a mixture of the following licenses :
Gnu GPL 2.0 and 3.0+ GNU General Public License (GNU GPL)
Creative-Commons-BY(-SA) 3.0 Creative Commons Attribution (CC-BY)
Creative Commons Attribution-ShareAlike (CC-BY-SA)
Public Domain Public Domain
________________________________________________________________________________ See the 'licenses.txt' files throughout the various data subdirectories for the licenses of each file.
_____________________________________________________________________
GNU GENERAL PUBLIC LICENSE GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007 Version 3, 29 June 2007
Copyright © 2007 Free Software Foundation, Inc. <http://fsf.org/> Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed.
@@ -46,7 +49,7 @@ TERMS AND CONDITIONS
"Copyright" also means copyright-like laws that apply to other kinds of works, such as semiconductor masks. "Copyright" also means copyright-like laws that apply to other kinds of works, such as semiconductor masks.
"The Program!" refers to any copyrightable work licensed under this License. Each licensee is addressed as "you". "Licensees" and "recipients" may be individuals or organizations. "The Program" refers to any copyrightable work licensed under this License. Each licensee is addressed as "you". "Licensees" and "recipients" may be individuals or organizations.
To "modify" a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a "modified version" of the earlier work or a work "based on" the earlier work. To "modify" a work means to copy from or adapt all or part of the work in a fashion requiring copyright permission, other than the making of an exact copy. The resulting work is called a "modified version" of the earlier work or a work "based on" the earlier work.
@@ -96,10 +99,10 @@ You may charge any price or no price for each copy that you convey, and you may
You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions: You may convey a work based on the Program, or the modifications to produce it from the Program, in the form of source code under the terms of section 4, provided that you also meet all of these conditions:
* a) The work must carry prominent notices stating that you modified it, and giving a relevant date. a) The work must carry prominent notices stating that you modified it, and giving a relevant date.
* b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to "keep intact all notices". b) The work must carry prominent notices stating that it is released under this License and any conditions added under section 7. This requirement modifies the requirement in section 4 to "keep intact all notices".
* c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it. c) You must license the entire work, as a whole, under this License to anyone who comes into possession of a copy. This License will therefore apply, along with any applicable section 7 additional terms, to the whole of the work, and all its parts, regardless of how they are packaged. This License gives no permission to license the work in any other way, but it does not invalidate such permission if you have separately received it.
* d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so. d) If the work has interactive user interfaces, each must display Appropriate Legal Notices; however, if the Program has interactive interfaces that do not display Appropriate Legal Notices, your work need not make them do so.
A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an "aggregate" if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate. A compilation of a covered work with other separate and independent works, which are not by their nature extensions of the covered work, and which are not combined with it such as to form a larger program, in or on a volume of a storage or distribution medium, is called an "aggregate" if the compilation and its resulting copyright are not used to limit the access or legal rights of the compilation's users beyond what the individual works permit. Inclusion of a covered work in an aggregate does not cause this License to apply to the other parts of the aggregate.
@@ -107,11 +110,11 @@ You may convey a work based on the Program, or the modifications to produce it f
You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways: You may convey a covered work in object code form under the terms of sections 4 and 5, provided that you also convey the machine-readable Corresponding Source under the terms of this License, in one of these ways:
* a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange. a) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by the Corresponding Source fixed on a durable physical medium customarily used for software interchange.
* b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge. b) Convey the object code in, or embodied in, a physical product (including a physical distribution medium), accompanied by a written offer, valid for at least three years and valid for as long as you offer spare parts or customer support for that product model, to give anyone who possesses the object code either (1) a copy of the Corresponding Source for all the software in the product that is covered by this License, on a durable physical medium customarily used for software interchange, for a price no more than your reasonable cost of physically performing this conveying of source, or (2) access to copy the Corresponding Source from a network server at no charge.
* c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b. c) Convey individual copies of the object code with a copy of the written offer to provide the Corresponding Source. This alternative is allowed only occasionally and noncommercially, and only if you received the object code with such an offer, in accord with subsection 6b.
* d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements. d) Convey the object code by offering access from a designated place (gratis or for a charge), and offer equivalent access to the Corresponding Source in the same way through the same place at no further charge. You need not require recipients to copy the Corresponding Source along with the object code. If the place to copy the object code is a network server, the Corresponding Source may be on a different server (operated by you or a third party) that supports equivalent copying facilities, provided you maintain clear directions next to the object code saying where to find the Corresponding Source. Regardless of what server hosts the Corresponding Source, you remain obligated to ensure that it is available for as long as needed to satisfy these requirements.
* e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d. e) Convey the object code using peer-to-peer transmission, provided you inform other peers where the object code and Corresponding Source of the work are being offered to the general public at no charge under subsection 6d.
A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work. A separable portion of the object code, whose source code is excluded from the Corresponding Source as a System Library, need not be included in conveying the object code work.
@@ -133,12 +136,12 @@ You may convey a work based on the Program, or the modifications to produce it f
Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms: Notwithstanding any other provision of this License, for material you add to a covered work, you may (if authorized by the copyright holders of that material) supplement the terms of this License with terms:
* a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or a) Disclaiming warranty or limiting liability differently from the terms of sections 15 and 16 of this License; or
* b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or b) Requiring preservation of specified reasonable legal notices or author attributions in that material or in the Appropriate Legal Notices displayed by works containing it; or
* c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or c) Prohibiting misrepresentation of the origin of that material, or requiring that modified versions of such material be marked in reasonable ways as different from the original version; or
* d) Limiting the use for publicity purposes of names of licensors or authors of the material; or d) Limiting the use for publicity purposes of names of licensors or authors of the material; or
* e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or e) Declining to grant rights under trademark law for use of some trade names, trademarks, or service marks; or
* f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors. f) Requiring indemnification of licensors and authors of that material by anyone who conveys the material (or modified versions of it) with contractual assumptions of liability to the recipient, for any liability that these contractual assumptions directly impose on those licensors and authors.
All other non-permissive additional terms are considered "further restrictions" within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying. All other non-permissive additional terms are considered "further restrictions" within the meaning of section 10. If the Program as you received it, or any part of it, contains a notice stating that it is governed by this License along with a term that is a further restriction, you may remove that term. If a license document contains a further restriction but permits relicensing or conveying under this License, you may add to a covered work material governed by the terms of that license document, provided that the further restriction does not survive such relicensing or conveying.
@@ -178,7 +181,8 @@ You may convey a work based on the Program, or the modifications to produce it f
In the following three paragraphs, a "patent license" is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To "grant" such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party. In the following three paragraphs, a "patent license" is any express agreement or commitment, however denominated, not to enforce a patent (such as an express permission to practice a patent or covenant not to sue for patent infringement). To "grant" such a patent license to a party means to make such an agreement or commitment not to enforce a patent against the party.
If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. "Knowingly relying" means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid. If you convey a covered work, knowingly relying on a patent license, and the Corresponding Source of the work is not available for anyone to copy, free of charge and under the terms of this License, through a publicly available network server or other readily accessible means, then you must either (1) cause the Corresponding Source to be so available, or (2) arrange to deprive yourself of the benefit of the patent license for this particular work, or (3) arrange, in a manner consistent with the requirements of this License, to extend the patent license to downstream recipients. "Knowingly relying"
means you have actual knowledge that, but for the patent license, your conveying the covered work in a country, or your recipient's use of the covered work in a country, would infringe one or more identifiable patents in that country that you have reason to believe are valid.
If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it. If, pursuant to or in connection with a single transaction or arrangement, you convey, or propagate by procuring conveyance of, a covered work, and grant a patent license to some of the parties receiving the covered work authorizing them to use, propagate, modify or convey a specific copy of the covered work, then the patent license you grant is automatically extended to all recipients of the covered work and works based on it.
@@ -217,3 +221,40 @@ You may convey a work based on the Program, or the modifications to produce it f
If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee. If the disclaimer of warranty and limitation of liability provided above cannot be given local legal effect according to their terms, reviewing courts shall apply local law that most closely approximates an absolute waiver of all civil liability in connection with the Program, unless a warranty or assumption of liability accompanies a copy of the Program in return for a fee.
END OF TERMS AND CONDITIONS END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively state the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
Also add information on how to contact you by electronic and paper mail.
If the program does terminal interaction, make it output a short notice like this when it starts in an interactive mode:
<program> Copyright (C) <year> <name of author>
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, your program's commands might be different; for a GUI interface, you would use an "about box".
You should also get your employer (if you work as a programmer) or school, if any, to sign a "copyright disclaimer" for the program, if necessary. For more information on this, and how to apply and follow the GNU GPL, see <https://www.gnu.org/licenses/>.
The GNU General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Lesser General Public License instead of this License. But first, please read <https://www.gnu.org/licenses/why-not-lgpl.html>.

View File

@@ -1,63 +1,133 @@
#SuperTuxKart Installation Instructions # Building from source
Note : If you obtained this source code from github, you also need to download the game assets from sourceforge using SVN. In order to build SuperTuxKart from source, you'll need both the code and the assets (See <https://supertuxkart.net/Source_control> for more information):
`svn checkout https://svn.code.sf.net/p/supertuxkart/code/stk-assets stk-assets` ```bash
git clone https://github.com/supertuxkart/stk-code stk-code
svn co https://svn.code.sf.net/p/supertuxkart/code/stk-assets stk-assets
```
Place the `stk-assets` folder next to the source root `stk-code` folder. ## Building SuperTuxKart on Linux
See <http://supertuxkart.sourceforge.net/Source_control> for more information
### Dependencies
##Building STK on Linux To build SuperTuxKart from source, you'll need to install the following packages:
First, make sure that you have the following packages installed:
* OpenGL (mesa)
* OpenAL (recommended: openal-soft-devel) * OpenAL (recommended: openal-soft-devel)
* Ogg (libogg-dev) * Ogg (libogg-dev)
* Vorbis (libvorbis-dev) * Vorbis (libvorbis-dev)
* Freetype (libfreetype6-dev)
* Harfbuzz (libharfbuzz-dev)
* libcurl (libcurl-devel) * libcurl (libcurl-devel)
* libbluetooth (bluez-devel) * libbluetooth (bluez-devel)
* openssl (openssl-dev)
* libpng (libpng-devel) * libpng (libpng-devel)
* zlib (zlib-devel) * zlib (zlib-devel)
* jpeg (libjpeg-turbo-devel) * jpeg (libjpeg-turbo-devel)
* SDL2 (libsdl2-devel)
Ubuntu command: Fedora command:
``` ```bash
sudo apt-get install autoconf automake build-essential cmake libogg-dev libvorbis-dev libopenal-dev libxxf86vm-dev \ sudo dnf install @development-tools angelscript-devel \
libgl1-mesa-dev libglu1-mesa-dev libcurl4-openssl-dev libfribidi-dev libbluetooth-dev libxrandr-dev bluez-libs-devel cmake desktop-file-utils SDL2-devel \
freealut-devel freetype-devel \
gcc-c++ git-core libcurl-devel libjpeg-turbo-devel \
libpng-devel libsquish-devel libtool libvorbis-devel \
openal-soft-devel openssl-devel libcurl-devel harfbuzz-devel \
libogg-devel openssl-devel pkgconf \
wiiuse-devel zlib-devel
``` ```
Unpack the files from the tarball like this: Mageia 6 command:
``` ```bash
tar xzf supertuxkart-*.tar.gz su -c 'urpmi gcc-c++ cmake openssl-devel libcurl-devel freetype-devel harfbuzz-devel \
cd supertuxkart-* libjpeg-turbo-devel libogg-devel openal-soft-devel SDL2-devel \
libpng-devel libvorbis-devel nettle-devel zlib-devel git subversion \
libbluez-devel libfreetype6-devel
``` ```
where `*` is the version of SuperTuxkart you downloaded - eg `0.8.0`. Then: openSUSE command:
Compile SuperTuxKart:
```bash
sudo zypper install gcc-c++ cmake openssl-devel libcurl-devel libSDL2-devel \
freetype-devel harfbuzz-devel libogg-devel openal-soft-devel libpng-devel \
libvorbis-devel pkgconf zlib-devel enet-devel \
libjpeg-devel bluez-devel freetype2-devel
``` ```
Debian-based Distributions command:
```bash
sudo apt-get install build-essential cmake libbluetooth-dev libsdl2-dev \
libcurl4-openssl-dev libenet-dev libfreetype6-dev libharfbuzz-dev \
libjpeg-dev libogg-dev libopenal-dev libpng-dev \
libssl-dev libvorbis-dev libmbedtls-dev pkg-config zlib1g-dev
```
Solus command:
```bash
sudo eopkg it cmake openal-soft-devel libogg-devel libvorbis-devel freetype2-devel \
harfbuzz-devel curl-devel bluez-devel openssl-devel libpng-devel zlib-devel \
libjpeg-turbo-devel sdl2-devel enet-devel libjpeg-turbo-devel bluez-devel curl-devel
```
### In-game recorder
To build the in-game recorder for STK, you have to install
libopenglrecorder from your distribution, or compile it yourself from [here](https://github.com/Benau/libopenglrecorder).
Compilation instruction is explained there. If you don't need this feature, pass `-DBUILD_RECORDER=off` to cmake.
### Compiling
To compile SuperTuxKart, run the following commands inside `stk-code` directory
```bash
# go into the stk-code directory
cd stk-code
# create and enter the cmake_build directory
mkdir cmake_build mkdir cmake_build
cd cmake_build cd cmake_build
# run cmake to generate the makefile
cmake .. cmake ..
make VERBOSE=1 -j2
# compile
make -j$(nproc)
``` ```
To create a debug version of STK, use: STK can then be run from the build directory with `bin/supertuxkart`
`cmake .. -DCMAKE_BUILD_TYPE=Debug` #### Keeping your build up to date
To test the compilation, supertuxkart can be run from the build To recompile the latest code without redownloading the entire source, first run the ```svn up``` command inside the 'stk-assets' directory, then run the following commands inside the 'stk-code' directory:
directory by ./bin/supertuxkart
To install the file, as root execute: ```bash
git pull
cd cmake_build
cmake ..
make -j$(nproc)
```
`make install` ##### Build Speed Optimization
"-j$(nproc)" is an example, for a faster build, use "-jx" instead, where "x" is the amount of CPU threads you have, minus one.
### Further options
To create a debug version of STK, run:
```bash
cmake .. -DCMAKE_BUILD_TYPE=Debug
```
You can install your build system-wide:
```bash
sudo make install
```
The default install location is `/usr/local`, i.e. the data files will The default install location is `/usr/local`, i.e. the data files will
be written to `/usr/local/share/games/supertuxkart`, the executable be written to `/usr/local/share/games/supertuxkart`, the executable
@@ -65,10 +135,121 @@ will be copied to `/usr/local/bin`. To change the default installation
location, specify `CMAKE_INSTALL_PREFIX` when running cmake, e.g.: location, specify `CMAKE_INSTALL_PREFIX` when running cmake, e.g.:
`cmake .. -DCMAKE_INSTALL_PREFIX=/opt/stk` `cmake .. -DCMAKE_INSTALL_PREFIX=/opt/stk`
## Building SuperTuxKart on Windows
##Building STK on OS X To Build SuperTuxKart on Windows, first you need to install [Python](https://www.python.org/downloads/windows/) for [shaderc](https://github.com/google/shaderc) used by SuperTuxKart, after installing Python (if needed) follow these instructions:
See <http://supertuxkart.sourceforge.net/Building_and_packaging_on_OSX>
1. Download and install Visual Studio from here: [Visual Studio - Download](https://www.visualstudio.com/downloads/). The free Visual Studio Community edition works fine. Remember to select "Desktop development with C++" in the installer.
##Building STK on Windows 2. If you want the stable version, download the SuperTuxKart source package from the latest stable version [SuperTuxKart on GitHub](https://github.com/supertuxkart/stk-code/releases) and unpack it.
See <http://supertuxkart.sourceforge.net/How_to_build_the_Windows_version>
3. If you want the development version, you will need a Git client and a SVN client. More information can be found here: [SuperTuxKart.net - Source Control](https://supertuxkart.net/Source_control).
Open your file browser and find somewhere you want to put the development version of SuperTuxKart. For example in C:\Users\<Your Username> as the Git and SVN clients will have write permissions there, and you should create its own directory, for example SuperTuxKart-dev. Enter that directory, and create a directory inside called stk-assets, and enter it. If you installed TortoiseSVN, right-click, select TortoiseSVN -> Checkout... and paste the corresponding URL found in [SuperTuxKart.net - Source Control](https://supertuxkart.net/Source_control). While it is downloading the game assets, go back to your file browser and one level up. Right-click again somewhere empty and select "Git clone..." and paste the corresponding link found in [SuperTuxKart.net - Source Control](https://supertuxkart.net/Source_control).
*Note: Both `stk-code` and `stk-assets` **must** be in the same directory, otherwise the build will likely fail!*
4. If you got the stable version, download the Windows dependencies package from [SuperTuxKart on GitHub - Dependencies Releases](https://github.com/supertuxkart/dependencies/releases), find the stk-code version there and download the `dependencies(arch).zip` as needed and unpack the archive into the `stk-code` directory.
5. If you got the development version go to SuperTuxKart-dev in your file browser, then visit [SuperTuxKart on GitHub - Dependencies latest preview release](https://github.com/supertuxkart/dependencies/releases/tag/preview)
and unpack the archive into the `stk-code` directory. Download `i686` if you use Win32 generator of MSVC, `x86_64` for x64, `armv7` for ARM and `aarch64` for ARM64.
6. Download CMake from here: [CMake - download page](https://cmake.org/download/), install it; once CMake is installed, double click on the CMake icon on your desktop, and point it towards your `stk-code` directory in the 'Where is the source code' field, and point 'Where to build the binaries' to a new directory called `build` or `bld` inside the stk-code directory.
7. Press 'Configure'; CMake will ask you if it is OK to create the aforementioned directory, press `Yes`. CMake will then ask you about your version of Visual Studio.
Confirm your selection; *Please look at the table below to avoid confusion between version numbers and releases of Visual Studio*; CMake will begin creating the required files for the build in the directory. If you want to do a 64-bit build, select the version of Visual Studio you installed with "Win64" appended. Press 'Generate' button.
8. Navigate to your build directory and open the `SuperTuxKart.sln` file; Visual Studio will now load the solution.
9. In the 'Solution Explorer', right click on the `supertuxkart` project and select "Set as StartUp project".
10. Open the 'Build' menu and select 'Build Solution'; or, press the default keyboard shortcut: `CTRL + SHIFT + B` to build the solution.
*Note: To avoid confusion between releases and versions, refer to this table:*
Visual Studio Release | Version
----------------------|------------
Visual Studio 2019| 16
Visual Studio 2017| 15
Visual Studio 2015| 14
Visual Studio 2013| 13
## Building SuperTuxKart on Windows (from PowerShell/Command line)
1. Download and install Visual Studio from here: [Visual Studio - Download](https://www.visualstudio.com/downloads/), the free Visual Studio Community edition works fine.
2. Download a source package from either [SuperTuxKart on GitHub](https://github.com/supertuxkart/stk-code/releases) or [SuperTuxKart.net - Source Control](https://supertuxkart.net/Source_control)
NOTE: the `stk-code` and `stk-assets` directories **must** be in the same directory, `stk-assets` is not needed if you download the full source tarball `(SuperTuxKart-version-src.tar.xz)`.
3. Download the Windows dependencies package from [SuperTuxKart on GitHub - Dependencies latest preview release](https://github.com/supertuxkart/dependencies/releases/tag/preview)
and unpack the archive into the `stk-code` directory. Download `i686` if you use Win32 generator of MSVC, `x86_64` for x64, `armv7` for ARM and `aarch64` for ARM64.
4. Download CMake from here: [CMake - download page](https://cmake.org/download/); and install it. Navigate to the `stk-code` directory; and create an directory called "build":
```cmd
mkdir build
cd build
```
5. Once inside the build directory; run CMake to start the compilation process:
```cmd
cmake ..
```
6. Now that CMake finished configuring and creating the necessary files for the build, run the build command in the same directory:
```cmd
msbuild.exe SuperTuxKart.sln
```
SuperTuxKart can now be run as `bin\Debug\supertuxkart.exe` or `bin\Release\supertuxkart.exe`
## Building SuperTuxKart on Windows using LLVM MinGW
1. Get the LLVM Mingw archive [here](https://github.com/mstorsjo/llvm-mingw/releases/latest), get the `*-msvcrt-i686.zip or` `*-msvcrt-x86_64.zip` depending on whether you have an Intel / AMD 32 or 64-bit Windows. If you are using ARM64 Windows get the `*-msvcrt-i686.zip` should be fine (untested). After downloading extract it as `C:\llvm-mingw` so `C:\llvm-mingw` contains `bin`, `include`, `lib`, etc.
2. Get Ninja [here](https://github.com/ninja-build/ninja/releases/latest), download the `ninja-win.zip` and extract the `ninja.exe` from the archive to `C:\llvm-mingw`. If you are not using Intel / AMD 64-bit Windows use [this link](https://packages.msys2.org/package/mingw-w64-i686-ninja) and extract `mingw32\bin\ninja.exe` inside the `tar.zst`.
3. Download a source package from either [SuperTuxKart on GitHub](https://github.com/supertuxkart/stk-code/releases) or [SuperTuxKart.net - Source Control](https://supertuxkart.net/Source_control)
NOTE: the `stk-code` and `stk-assets` directories **must** be in the same directory, `stk-assets` is not needed if you download the full source tarball `(SuperTuxKart-version-src.tar.xz)`. Also make sure they lie within the C drive.
4. Download the Windows dependencies package from [SuperTuxKart on GitHub - Dependencies latest preview release](https://github.com/supertuxkart/dependencies/releases/tag/preview)
and unpack the archive into the `stk-code` directory. Download `i686` if you compile for Intel / AMD 32-bit, `x86_64` for Intel / AMD 64-bit, `armv7` for ARM 32-bit and `aarch64` for ARM 64-bit version of Windows.
6. Download CMake from here: [CMake - download page](https://cmake.org/download/), install it; once CMake is installed, double click on the CMake icon on your desktop, and point it towards your `stk-code` directory in the 'Where is the source code' field, and point 'Where to build the binaries' to a new directory called `build` inside the stk-code directory.
7. Press the `Add Entry` button and add the values below:
* Name: `LLVM_ARCH` Type: `STRING` Value: `i686`, `x86_64`, `armv7` or `aarch64`
* Name: `LLVM_PREFIX` Type: `STRING` Value: `C:/llvm-mingw`
* Name: `CMAKE_MAKE_PROGRAM` Type: `STRING` Value: `C:/llvm-mingw/ninja.exe`
* Name: `USE_WIIUSE` Type: `BOOL` Value: `Empty (unchecked)`
8. Press 'Configure'; CMake will ask you if it is OK to create the aforementioned directory, press `Yes`. Choose `Ninja` from `Specify the generator for this project`, choose `Specify toolchain file for cross-compiling` then press `Next`. Specify the toolchain file which is located in `stk-code\cmake\Toolchain-llvm-mingw.cmake` and press `Finish`. If no error appears then press 'Generate'
9. Once inside the build directory using command line `cmd.exe` or PowerShell:
```cmd
C:\llvm-mingw\ninja.exe
```
SuperTuxKart can now be run as `bin\supertuxkart.exe`.
## Building SuperTuxKart on macOS
### Getting Started
Install the developer tools, either from the OS X Install DVD or from Apple's website.
Download `dependencies-macosx.tar.xz` from `Assets` section [here](https://github.com/supertuxkart/dependencies/releases) and extract it inside stk-code directory, use `preview` version for git stk-code.
Build STK
```bash
cd /path/to/stk-code
mkdir cmake_build
cd cmake_build
cmake .. -DCMAKE_FIND_ROOT_PATH=$(pwd)/../dependencies-macosx -DUSE_CRYPTO_OPENSSL=FALSE
make
```
Add ` -DCMAKE_OSX_DEPLOYMENT_TARGET=10.9` for 10.9 compatibility.
#### (Optional) packaging for distribution
By default, the executable that is produced is not ready for distribution. Install <https://github.com/auriamg/macdylibbundler> and run:
```bash
dylibbundler -od -b -x ./bin/SuperTuxKart.app/Contents/MacOS/supertuxkart -d ./bin/SuperTuxKart.app/Contents/libs/ -p @executable_path/../libs/
```
Afterwards, copy the contents of `stk-assets` into `/SuperTuxKart.app/Contents/Resources/data`.

366
NETWORKING.md Normal file
View File

@@ -0,0 +1,366 @@
# Online networking games for STK
## Hosting server
First of all, you can compile STK with `-DSERVER_ONLY=ON` which will produce a GUI-less STK binary optimized for size and memory usage, useful for situation like in VPS.
The dependencies for RHEL/CentOS 7 are installed with:
```bash
yum install wget; cd /tmp; wget https://dl.fedoraproject.org/pub/epel/7/x86_64/Packages/e/epel-release-7-12.noarch.rpm; rpm -Uvh epel-release*rpm
yum install gcc-c++ cmake openssl-devel libcurl-devel zlib-devel enet
```
### Hosting WAN (public internet) server
You are required to have an stk online account first, go [here](https://online.supertuxkart.net/register.php) for registration.
It is recommended you have a saved user in your computer to allow hosting multiple servers simultaneously with the same account, if you have a fresh STK installation, first run:
If you intend to keep your server always on (24x7) you are required to implement port forward / direct connection with NAT penetration in your network, we will regularly remove any servers not following this rule.
`supertuxkart --init-user --login=your_registered_name --password=your_password`
After that you should see `Done saving user, leaving` in terminal if it successfully logged in.
Than you can just run:
`supertuxkart --server-config=your_config.xml --network-console`
It will create that xml configuration file if not found in current directory, you can type `quit` in terminal, than you can edit that file for further configuration as required.
` --network-console` should not be used if you run supertuxkart server later with systemd service, see issue [#4299](https://github.com/supertuxkart/stk-code/issues/4299).
The current server configuration xml looks like this:
```xml
<?xml version="1.0"?>
<server-config version="6" >
<!-- Name of server, encode in XML if you want to use unicode characters. -->
<server-name value="STK Server" />
<!-- Port used in server, if you specify 0, it will use the server port specified in stk_config.xml. If you wish to use a random port, set random-server-port to '1' in user config. STK will automatically switch to a random port if the port you specify fails to be bound. -->
<server-port value="0" />
<!-- Game mode in server, 0 is normal race (grand prix), 1 is time trial (grand prix), 3 is normal race, 4 time trial, 6 is soccer, 7 is free-for-all and 8 is capture the flag. Notice: grand prix server doesn't allow for players to join and wait for ongoing game. -->
<server-mode value="3" />
<!-- Difficulty in server, 0 is beginner, 1 is intermediate, 2 is expert and 3 is supertux (the most difficult). -->
<server-difficulty value="0" />
<!-- Number of grand prix tracks per game (If grand prix enabled). -->
<gp-track-count value="3" />
<!-- Use goal target in soccer. -->
<soccer-goal-target value="false" />
<!-- Enable wan server, which requires you to have an stk-addons account with a saved session. Check init-user command for details. -->
<wan-server value="true" />
<!-- Enable network console, which can do for example kickban. -->
<enable-console value="false" />
<!-- Maximum number of players on the server, setting this to a value greater than 8 can cause performance degradation. -->
<server-max-players value="8" />
<!-- Password for private server, leave empty for a public server. -->
<private-server-password value="" />
<!-- Message of today shown in lobby, you can enter encoded XML words here or a file.txt and let STK load it. -->
<motd value="" />
<!-- If this value is set to false, the server will ignore chat messages from all players. -->
<chat value="true" />
<!-- If client sends more than chat-consecutive-interval / 2 chats within this value (read in seconds), it will be ignore, negative value to disable. -->
<chat-consecutive-interval value="8" />
<!-- Allow players to vote for which track to play. If this value is set to false, the server will randomly pick the next track to play. -->
<track-voting value="true" />
<!-- Timeout in seconds for selecting karts and (or) voting tracks in server, you may want to use a lower value if you have track-voting off. -->
<voting-timeout value="30" />
<!-- Timeout in seconds for validation of clients in wan, currently STK will use the stk-addons server to share AES key between the client and server. -->
<validation-timeout value="20" />
<!-- By default WAN server will always validate player and LAN will not, disable it to allow non-validated player in WAN. -->
<validating-player value="true" />
<!-- Disable it to turn off all stun related code in server, it allows for saving of server resources if your server is not behind a firewall. -->
<firewalled-server value="true" />
<!-- Enable to allow IPv6 connection if you have a public IPv6 address. STK currently uses dual-stack mode which requires server to have both IPv4 and IPv6 and listen to same port. If STK detects your server has no public IPv6 address or port differs between IPv4 and IPv6 then it will use IPv4 only socket. For system which doesn't support dual-stack socket (like OpenBSD) you may fail to be connected by IPv4 clients. You can override the detection in config.xml at supertuxkart config-0.10 folder, with default-ip-type option. -->
<ipv6-connection value="true" />
<!-- No server owner in lobby which can control the starting of game or kick any players. -->
<owner-less value="false" />
<!-- Time to wait before entering kart selection screen if satisfied min-start-game-players below for owner less or ranked server. -->
<start-game-counter value="60" />
<!-- Clients below this value will be rejected from joining this server. It's determined by number of official karts in client / number of official karts in server -->
<official-karts-threshold value="1" />
<!-- Clients below this value will be rejected from joining this server. It's determined by number of official tracks in client / number of official tracks in server, setting this value too high will prevent android players from joining this server, because STK android apk has some official tracks removed. -->
<official-tracks-threshold value="0.7" />
<!-- Only auto start kart selection when number of connected player is larger than or equals this value, for owner less or ranked server, after start-game-counter reaches 0. -->
<min-start-game-players value="2" />
<!-- Automatically end linear race game after 1st player finished for some time (currently his finished time * 0.25 + 15.0). -->
<auto-end value="false" />
<!-- Enable team choosing in lobby in team game (soccer and CTF). If owner-less is enabled and live-spectate is not enabled, than this option is always disabled. -->
<team-choosing value="true" />
<!-- If strict-players is on, no duplicated online id or split screen players are allowed, which can prevent someone using more than 1 network AI with this server. -->
<strict-players value="false" />
<!-- Server will submit ranking to stk-addons server for linear race games, you require permission for that. validating-player, auto-end, strict-player and owner-less will be turned on. -->
<ranked value="false" />
<!-- If true, the server owner can config the difficulty and game mode in the GUI of lobby. This option cannot be used with owner-less or grand prix server, and will be automatically turned on if the server was created using the in-game GUI. The changed difficulty and game mode will not be saved in this config file. -->
<server-configurable value="false" />
<!-- If true, players can live join or spectate the in-progress game. Currently live joining is only available if the current game mode used in server is FFA, CTF or soccer, also official-karts-threshold will be made 1.0. If false addon karts will use their original hitbox other than tux, all players having it restriction applies. -->
<live-spectate value="true" />
<!-- Time in seconds when a flag is dropped a by player in CTF returning to its own base. -->
<flag-return-timeout value="20" />
<!-- Time in seconds to deactivate a flag when it's captured or returned to own base by players. -->
<flag-deactivated-time value="3" />
<!-- Hit limit of free for all, zero to disable hit limit. -->
<hit-limit value="20" />
<!-- Time limit of free for all in seconds, zero to disable time limit. -->
<time-limit-ffa value="360" />
<!-- Capture limit of CTF, zero to disable capture limit. -->
<capture-limit value="5" />
<!-- Time limit of CTF in seconds, zero to disable time limit. -->
<time-limit-ctf value="600" />
<!-- Value used by server to automatically estimate each game time. For races, it decides the lap of each race in network game, if more than 0.0f, the number of lap of each track vote in linear race will be determined by max(1.0f, auto-game-time-ratio * default lap of that track). For soccer if more than 0.0f, for time limit game it will be auto-game-time-ratio * soccer-time-limit in UserConfig, for goal limit game it will be auto-game-time-ratio * numgoals in UserConfig, -1 to disable for all. -->
<auto-game-time-ratio value="-1" />
<!-- Maximum ping allowed for a player (in ms), it's recommended to use default value if live-spectate is on. -->
<max-ping value="300" />
<!-- Tolerance of jitter in network allowed (in ms), it's recommended to use default value if live-spectate is on. -->
<jitter-tolerance value="100" />
<!-- Kick players whose ping is above max-ping. -->
<kick-high-ping-players value="false" />
<!-- Allow players exceeding max-ping to have a playable game, if enabled kick-high-ping-players will be disabled, please also use a default value for max-ping and jitter-tolerance with it. -->
<high-ping-workaround value="true" />
<!-- Kick idle player which has no network activity to server for more than some seconds during game, unless he has finished the race. Negative value to disable, and this option will always be disabled for LAN server. -->
<kick-idle-player-seconds value="60" />
<!-- Set how many states the server will send per second, the higher this value, the more bandwidth requires, also each client will trigger more rewind, which clients with slow device may have problem playing this server, use the default value is recommended. -->
<state-frequency value="10" />
<!-- Use sql database for handling server stats and maintenance, STK needs to be compiled with sqlite3 supported. -->
<sql-management value="false" />
<!-- Database filename for sqlite to use, it can be shared for all servers created in this machine, and STK will create specific table for each server. You need to create the database yourself first, see NETWORKING.md for details -->
<database-file value="stkservers.db" />
<!-- Specified in millisecond for maximum time waiting in sqlite3_busy_handler. You may need a higher value if your database is shared by many servers or having a slow hard disk. -->
<database-timeout value="1000" />
<!-- IPv4 ban list table name, you need to create the table first, see NETWORKING.md for details, empty to disable. This table can be shared for all servers if you use the same name. STK can auto kick active peer from ban list (update per minute) whichallows live kicking peer by inserting record to database. -->
<ip-ban-table value="ip_ban" />
<!-- IPv6 ban list table name, you need to create the table first, see NETWORKING.md for details, empty to disable. This table can be shared for all servers if you use the same name. STK can auto kick active peer from ban list (update per minute) which allows live kicking peer by inserting record to database. -->
<ipv6-ban-table value="ipv6_ban" />
<!-- Online ID ban list table name, you need to create the table first, see NETWORKING.md for details, empty to disable. This table can be shared for all servers if you use the same name. STK can auto kick active peer from ban list (update per minute) which allows live kicking peer by inserting record to database. -->
<online-id-ban-table value="online_id_ban" />
<!-- Player reports table name, which will be written when a player reports player in the network user dialog, you need to create the table first, see NETWORKING.md for details, empty to disable. This table can be shared for all servers if you use the same name. -->
<player-reports-table value="player_reports" />
<!-- Days to keep player reports, older than that will be auto cleared, 0 to keep them forever. -->
<player-reports-expired-days value="3" />
<!-- IP geolocation table, you only need this table if you want to geolocate IP from non-stk-addons connection, as all validated players connecting from stk-addons will provide the location info, you need to create the table first, see NETWORKING.md for details, empty to disable. This table can be shared for all servers if you use the same name. -->
<ip-geolocation-table value="ip_mapping" />
<!-- IPv6 geolocation table, you only need this table if you want to geolocate IP from non-stk-addons connection, as all validated players connecting from stk-addons will provide the location info, you need to create the table first, see NETWORKING.md for details, empty to disable. This table can be shared for all servers if you use the same name. -->
<ipv6-geolocation-table value="ipv6_mapping" />
<!-- If true this server will auto add / remove AI connected with network-ai=x, which will kick N - 1 bot(s) where N is the number of human players. Only use this for non-GP racing server. -->
<ai-handling value="false" />
<!-- If true this server will allow AI instance to be connected from anywhere. (other than LAN network only) -->
<ai-anywhere value="false" />
</server-config>
```
At the moment STK has a list of STUN servers for NAT penetration which allows players or servers behind a firewall or router to be able to connect to each other, but in case it doesn't work, you have to manually disable the firewall or port forward the port(s) used by STK.
By default STK servers use port `2759`. For example, in Ubuntu based distributions, run the following command to disable the firewall on that port:
`sudo ufw allow 2759`
You may also need to handle the server discovery port `2757` for connecting your WAN server in LAN / localhost.
Notice: You don't need to make any firewall or router configuration changes if you connect to the recommended servers (marked with ☆★STK★☆).
### Hosting LAN (local internet) server
Everything is basically the same as WAN one, except you don't need an stk online account, just do:
`supertuxkart --server-config=your_config.xml --lan-server=your_server_name --network-console`
For LAN server it is required that the server and server discovery port is connectable by clients directly, no NAT penetration will be done in LAN.
LAN server can be connected too by typing your server public address (with port) in ```Enter server address``` dialog without relying on stk-addons.
------
After the first time configuration, you can just start the server with the command:
`supertuxkart --server-config=your_config.xml`, regardless of whether LAN or WAN server is chosen (of course you need to have a saved user for the WAN one), by default your server logging will be saved to the STK configuration directory with a name of `your_config.log`, given that the server configuration filename is `your_config.xml`.
You can find out that directory location [here (See Where is the configuration stored?)](https://supertuxkart.net/FAQ)
## Testing server
There is a network AI tester in STK which can use AI on player controller for server hosting linear races game mode, which helps automating the testing for servers, to enable it use it on lan server:
`supertuxkart --connect-now=x.x.x.x:y --network-ai=n --no-graphics`
Remove `--no-graphics` if you want to see the AI racing. You can also run network AI tester in server-only build of STK.
With the network AI tester, it's easier to for example simulate high-loaded servers or bad networks (ones with high ping and/or packet loss).
Tested on a Raspberry Pi 3 Model B+, if you have 8 players connected to a server hosted on it, the usage of a single CPU core is ~60% and there are ~60MB of memory usage for game with heavy tracks like Cocoa Temple or Candela City on the server, you can use the above figures to estimate how many STK servers can be hosted on the same computer.
For bad network simulation, we recommend `network traffic control` by Linux kernel, see [here](https://wiki.linuxfoundation.org/networking/netem) for details.
You will have the best gaming experience by choosing a server where all players have less than 100ms ping with no packet loss.
## Server management (Since 1.1)
Currently STK uses sqlite (if building with sqlite3 on) for server management with the following functions at the moment:
1. Server statistics
2. IP / online ID ban list
3. Player reports
4. IPv4 and IPv6 geolocation
You need to create a database in sqlite first, run `sqlite3 stkservers.db` in the folder where (all) your server_config.xml(s) located.
A table named `v(server database version)_(your_server_config_filename_without_.xml_extension)_stats` will also be created in your database if one does not exist.:
```sql
CREATE TABLE IF NOT EXISTS (table name above)
(
host_id INTEGER UNSIGNED NOT NULL PRIMARY KEY, -- Unique host id in STKHost of each connection session for a STKPeer
ip INTEGER UNSIGNED NOT NULL, -- IP decimal of host
ipv6 TEXT NOT NULL DEFAULT '', -- IPv6 (if exists) in string of host (only created if IPv6 server)
port INTEGER UNSIGNED NOT NULL, -- Port of host
online_id INTEGER UNSIGNED NOT NULL, -- Online if of the host (0 for offline account)
username TEXT NOT NULL, -- First player name in the host (if the host has splitscreen player)
player_num INTEGER UNSIGNED NOT NULL, -- Number of player(s) from the host, more than 1 if it has splitscreen player
country_code TEXT NULL DEFAULT NULL, -- 2-letter country code of the host
version TEXT NOT NULL, -- SuperTuxKart version of the host
os TEXT NOT NULL, -- Operating system of the host
connected_time TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, -- Time when connected
disconnected_time TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, -- Time when disconnected (saved when disconnected)
ping INTEGER UNSIGNED NOT NULL DEFAULT 0 -- Ping of the host
) WITHOUT ROWID;
```
STK will also create the following default views from the stats table:
`*_full_stats`
Full stats with ip in human readable format and time played of each players in minutes.
`*_current_players`
Current players in server with ip in human readable format and time played of each players in minutes.
`*_player_stats`
All players with online id and username with their time played stats in this server since creation of this database.
If sqlite supports window functions (since 3.25), it will include last session player info (ip, country, ping...).
A empty table named `v(server database version)_countries` will also be created in your database if not exists:
```sql
CREATE TABLE IF NOT EXISTS (table name above)
(
country_code TEXT NOT NULL PRIMARY KEY UNIQUE, -- Unique 2-letter country code
country_flag TEXT NOT NULL, -- Unicode country flag representation of 2-letter country code
country_name TEXT NOT NULL -- Readable name of this country
) WITHOUT ROWID;
```
If you want to see flags and readable names of countries in the above views, you need to initialize `v(server database version)_countries` table, check [this script](tools/generate-countries-table.py).
For IPv4 and online ID ban list, player reports or IP mapping, you need to create one yourself:
```sql
CREATE TABLE ip_ban
(
ip_start INTEGER UNSIGNED NOT NULL UNIQUE, -- Starting of ip decimal for banning (inclusive)
ip_end INTEGER UNSIGNED NOT NULL UNIQUE, -- Ending of ip decimal for banning (inclusive)
starting_time TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, -- Starting time of this banning entry to be effective
expired_days REAL NULL DEFAULT NULL, -- Days for this banning to be expired, use NULL for a permanent ban
reason TEXT NOT NULL DEFAULT '', -- Banned reason shown in user stk menu, can be empty
description TEXT NOT NULL DEFAULT '', -- Private description for server admin
trigger_count INTEGER UNSIGNED NOT NULL DEFAULT 0, -- Number of banning triggered by this ban entry
last_trigger TIMESTAMP NULL DEFAULT NULL -- Latest time this banning entry was triggered
);
CREATE TABLE ipv6_ban
(
ipv6_cidr TEXT NOT NULL UNIQUE, -- IPv6 CIDR range for banning (for example 2001::/64), use /128 for a specific ip
starting_time TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, -- Starting time of this banning entry to be effective
expired_days REAL NULL DEFAULT NULL, -- Days for this banning to be expired, use NULL for a permanent ban
reason TEXT NOT NULL DEFAULT '', -- Banned reason shown in user stk menu, can be empty
description TEXT NOT NULL DEFAULT '', -- Private description for server admin
trigger_count INTEGER UNSIGNED NOT NULL DEFAULT 0, -- Number of banning triggered by this ban entry
last_trigger TIMESTAMP NULL DEFAULT NULL -- Latest time this banning entry was triggered
);
CREATE TABLE online_id_ban
(
online_id INTEGER UNSIGNED NOT NULL UNIQUE, -- Online id from STK addons database for banning
starting_time TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, -- Starting time of this banning entry to be effective
expired_days REAL NULL DEFAULT NULL, -- Days for this banning to be expired, use NULL for a permanent ban
reason TEXT NOT NULL DEFAULT '', -- Banned reason shown in user stk menu, can be empty
description TEXT NOT NULL DEFAULT '', -- Private description for server admin
trigger_count INTEGER UNSIGNED NOT NULL DEFAULT 0, -- Number of banning triggered by this ban entry
last_trigger TIMESTAMP NULL DEFAULT NULL -- Latest time this banning entry was triggered
);
CREATE TABLE player_reports
(
server_uid TEXT NOT NULL, -- Report from which server unique id (config filename)
reporter_ip INTEGER UNSIGNED NOT NULL, -- IP decimal of player who reports
reporter_ipv6 TEXT NOT NULL DEFAULT '', -- IPv6 (if exists) in string of player who reports (only needed for IPv6 server)
reporter_online_id INTEGER UNSIGNED NOT NULL, -- Online id of player who reports, 0 for offline player
reporter_username TEXT NOT NULL, -- Player name who reports
reported_time TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, -- Time of reporting
info TEXT NOT NULL, -- Report info by reporter
reporting_ip INTEGER UNSIGNED NOT NULL, -- IP decimal of player being reported
reporting_ipv6 TEXT NOT NULL DEFAULT '', -- IPv6 (if exists) in string of player who reports (only needed for IPv6 server)
reporting_online_id INTEGER UNSIGNED NOT NULL, -- Online id of player being reported, 0 for offline player
reporting_username TEXT NOT NULL -- Player name being reported
);
CREATE TABLE ip_mapping
(
ip_start INTEGER UNSIGNED NOT NULL PRIMARY KEY UNIQUE, -- IP decimal start
ip_end INTEGER UNSIGNED NOT NULL UNIQUE, -- IP decimal end
latitude REAL NOT NULL, -- Latitude of this IP range
longitude REAL NOT NULL, -- Longitude of this IP range
country_code TEXT NOT NULL -- 2-letter country code
) WITHOUT ROWID;
CREATE TABLE ipv6_mapping
(
ip_start INTEGER UNSIGNED NOT NULL PRIMARY KEY UNIQUE, -- IP decimal (upper 64bit) start
ip_end INTEGER UNSIGNED NOT NULL UNIQUE, -- IP decimal (upper 64bit) end
latitude REAL NOT NULL, -- Latitude of this IP range
longitude REAL NOT NULL, -- Longitude of this IP range
country_code TEXT NOT NULL -- 2-letter country code
)
```
For initialization of `ip_mapping` table, check [this script](tools/generate-ip-mappings.py).

View File

@@ -1,67 +1,40 @@
# SuperTuxKart # SuperTuxKart
[![Build Status](https://travis-ci.org/supertuxkart/stk-code.png?branch=master)](https://travis-ci.org/supertuxkart/stk-code) [![Linux build status](https://github.com/supertuxkart/stk-code/actions/workflows/linux.yml/badge.svg)](https://github.com/supertuxkart/stk-code/actions/workflows/linux.yml)
[![Apple build status](https://github.com/supertuxkart/stk-code/actions/workflows/apple.yml/badge.svg)](https://github.com/supertuxkart/stk-code/actions/workflows/apple.yml)
[![Windows build status](https://github.com/supertuxkart/stk-code/actions/workflows/windows.yml/badge.svg)](https://github.com/supertuxkart/stk-code/actions/workflows/windows.yml)
[![Switch build status](https://github.com/supertuxkart/stk-code/actions/workflows/switch.yml/badge.svg)](https://github.com/supertuxkart/stk-code/actions/workflows/switch.yml)
[![#supertuxkart on the libera IRC network](https://img.shields.io/badge/libera-%23supertuxkart-brightgreen.svg)](https://web.libera.chat/?channels=#supertuxkart)
SuperTuxKart is a free kart racing game. It is focusing on fun and SuperTuxKart is a free kart racing game. It focuses on fun and not on realistic kart physics. Instructions can be found on the in-game help page.
not on realistic kart physics. Instruction can be found on the
in-game help page.
The SuperTuxKart homepage can be found at: <http://supertuxkart.sourceforge.net> The SuperTuxKart homepage can be found at <https://supertuxkart.net/>. There is also our [FAQ](https://supertuxkart.net/FAQ) and information on how get in touch with the [community](https://supertuxkart.net/Community).
The official SuperTuxKart forum is at <http://supertuxkart.sourceforge.net/forum>. If you need support,
this would be the best place to start.
Hope you enjoy the game.
-- The SuperTuxKart development team.
Latest release binaries can be found [here](https://github.com/supertuxkart/stk-code/releases/latest), and preview release [here](https://github.com/supertuxkart/stk-code/releases/preview).
## 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) To run SuperTuxKart, make sure that your computer's specifications are equal or higher than the following specifications:
* You should have a CPU that's running at 1GHz or better.
* A graphics card capable of 3D rendering - NVIDIA GeForce 470 GTX, AMD Radeon 6870 HD series card or Intel HD Graphics 4000 and newer. OpenGL >= 3.3
* You should have a dual-core CPU that's running at 1 GHz or faster.
* You'll need at least 512 MB of free VRAM (video memory). * You'll need at least 512 MB of free VRAM (video memory).
* Disk space: 400MB * System memory: 1 GB
* Ideally, you want a joystick with at least 6 buttons. * Minimum disk space: 700 MB
* Ideally, you'll want a joystick with at least 6 buttons.
##Compiling SuperTuxKart
###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).
4. Download cmake and install it. Then start cmake-gui and select the STK root directory as 'Where is the source code', and a new directory in the root directory (next to src, data etc) as build directory (for now I assume that this directory is called bld).
5. Click on configure. You will be asked to create the directory (yes), then for your VS version. Make sure to select the right version (be aware of the easy to confuse version numbers: VS 2013 = version 12). Click on configure, then generate. This will create the directory 'bld', and a VS solution in that directory.
6. In Visual Studio open the project file generated in the 'bld' folder
7. Right click on the supertuxkart project in the solution explorer, and select "Set as StartUp Project".
8. Select Build->Build Solution (or press F7) to compile.
Compilation with cygwin is not officially supported, but
this has been done (check with the forum for details).
###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.
## License ## License
This software is released under the GNU General Public License (GPL) which The software is released under the GNU General Public License (GPL) which can be found in the file [`COPYING`](/COPYING) in the same directory as this file.
can be found in the file `LICENSE` 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: A reminder for those who are looking at the code and 3D models:
STK : X right, Y up, Z forwards SuperTuxKart: X right, Y up, Z forwards
Blender: X right, Y forwards, Z up Blender: X right, Y forwards, Z up
The exporters perform the needed transform, so in Blender you just work The export utilities perform the needed transformation, so in Blender you just work with the XY plane as ground, and things will appear fine in STK (using XZ as ground in the code, obviously).
with XY plane as ground, and things will appear fine in STK (using XZ
as ground in the code, obviously). ## Building from source
Building instructions can be found in [`INSTALL.md`](/INSTALL.md)

View File

@@ -1,34 +0,0 @@
# Please, make sure your SVN client uses something that matches the
# following config. Specially the autoprops part, that way new files
# will be added with the right settings. Default config for command line
# svn is in ~/.subversion/config. If you use SVN for multiple projects
# simultaneously, remember you can use different configs, at least in
# cmd line (via --config-dir and for example ~/.subversion/supertuxkart/
# with a new config file inside).
[miscellany]
global-ignores = *.o *.lo *.la #*# .*.rej *.rej .*~ *~ .#* ._* .DS_Store *.blend1 *.blend2
enable-auto-props = yes
[auto-props]
*.c = svn:eol-style=native;svn:keywords=Author Date Id Revision
*.cpp = svn:eol-style=native;svn:keywords=Author Date Id Revision
*.h = svn:eol-style=native;svn:keywords=Author Date Id Revision
*.hpp = svn:eol-style=native;svn:keywords=Author Date Id Revision
*.dsp = svn:eol-style=CRLF
*.dsw = svn:eol-style=CRLF
*.sh = svn:eol-style=native;svn:executable;svn:keywords=Author Date Id Revision
*.txt = svn:eol-style=native
*.png = svn:mime-type=image/png
*.jpg = svn:mime-type=image/jpeg
Makefile = svn:eol-style=native;svn:keywords=Author Date Id Revision
*.jpeg = svn:mime-type=image/jpeg
*.gif = svn:mime-type=image/gif
*.svg = svn:mime-type=image/svg+xml
*.htm = svn:mime-type=text/html
*.html = svn:mime-type=text/html
*.css = svn:mime-type=text/css
*.pdf = svn:mime-type=application/pdf
SConstruct = svn:eol-style=native;svn:keywords=Author Date Id Revision
*.xml = svn:eol-style=LF;svn:mime-type=text/xml
*.py = svn:eol-style=native;svn:keywords=Author Date Id Revision

33
TODO.md
View File

@@ -1,33 +0,0 @@
##TODO
SuperTuxKart is looking for additional man power to make this
one of the best free linux games out there :) We need (in
no particular order):
1. Musicians/sound engineers
- Create additional background soundtrack
- Create sound effects
2. Artists and track designer
- Create additional tracks
- Create additional art work for tracks,
background images
3. Developers
- Check our bug and enhancement request tracker on
https://github.com/supertuxkart/stk-code/issues
- Extend the current web page, keep it up to date
4. Tester
- For just about everything
- Esp. different platforms and graphics cards
5. Writers
- Write documentation, ranging from man page, to
a description for the web, to a design document, ...
If you want to help the SuperTuxKart - Project, please
contact us on the email list: [supertuxkart-devel@lists.sourceforge.net](mailto:supertuxkart-devel@lists.sourceforge.net)
Thanks in advance!
-- The SuperTuxKart-Team
For details, see <http://supertuxkart.sourceforge.net/Get_involved>

378
android/Android.mk Normal file
View File

@@ -0,0 +1,378 @@
LOCAL_PATH := $(call my-dir)
include $(CLEAR_VARS)
# OpenAL
LOCAL_MODULE := openal
LOCAL_SRC_FILES := deps-$(TARGET_ARCH_ABI)/openal/libopenal.a
include $(PREBUILT_STATIC_LIBRARY)
include $(CLEAR_VARS)
# OGG
LOCAL_MODULE := ogg
LOCAL_SRC_FILES := deps-$(TARGET_ARCH_ABI)/libogg/libogg.a
include $(PREBUILT_STATIC_LIBRARY)
include $(CLEAR_VARS)
# Vorbis
LOCAL_MODULE := vorbis
LOCAL_SRC_FILES := deps-$(TARGET_ARCH_ABI)/libvorbis/lib/libvorbis.a
include $(PREBUILT_STATIC_LIBRARY)
include $(CLEAR_VARS)
# Vorbisfile
LOCAL_MODULE := vorbisfile
LOCAL_SRC_FILES := deps-$(TARGET_ARCH_ABI)/libvorbis/lib/libvorbisfile.a
include $(PREBUILT_STATIC_LIBRARY)
include $(CLEAR_VARS)
# CURL
LOCAL_MODULE := curl
LOCAL_SRC_FILES := deps-$(TARGET_ARCH_ABI)/curl/lib/libcurl.a
include $(PREBUILT_STATIC_LIBRARY)
include $(CLEAR_VARS)
# libmbedtls
LOCAL_MODULE := libmbedtls
LOCAL_SRC_FILES := deps-$(TARGET_ARCH_ABI)/mbedtls/library/libmbedtls.a
include $(PREBUILT_STATIC_LIBRARY)
include $(CLEAR_VARS)
# libmbedcrypto
LOCAL_MODULE := libmbedcrypto
LOCAL_SRC_FILES := deps-$(TARGET_ARCH_ABI)/mbedtls/library/libmbedcrypto.a
include $(PREBUILT_STATIC_LIBRARY)
include $(CLEAR_VARS)
# libmbedx509
LOCAL_MODULE := libmbedx509
LOCAL_SRC_FILES := deps-$(TARGET_ARCH_ABI)/mbedtls/library/libmbedx509.a
include $(PREBUILT_STATIC_LIBRARY)
include $(CLEAR_VARS)
# JPEG
LOCAL_MODULE := libjpeg
LOCAL_SRC_FILES := deps-$(TARGET_ARCH_ABI)/libjpeg/libjpeg.a
include $(PREBUILT_STATIC_LIBRARY)
include $(CLEAR_VARS)
# zlib
LOCAL_MODULE := zlib
LOCAL_SRC_FILES := deps-$(TARGET_ARCH_ABI)/zlib/libz.a
include $(PREBUILT_STATIC_LIBRARY)
include $(CLEAR_VARS)
# PNG
LOCAL_MODULE := png
LOCAL_SRC_FILES := deps-$(TARGET_ARCH_ABI)/libpng/libpng.a
include $(PREBUILT_STATIC_LIBRARY)
include $(CLEAR_VARS)
# Freetype
LOCAL_MODULE := freetype
LOCAL_SRC_FILES := deps-$(TARGET_ARCH_ABI)/freetype/build/libfreetype.a
include $(PREBUILT_STATIC_LIBRARY)
include $(CLEAR_VARS)
# Harfbuzz
LOCAL_MODULE := harfbuzz
LOCAL_SRC_FILES := deps-$(TARGET_ARCH_ABI)/harfbuzz/build/libharfbuzz.a
include $(PREBUILT_STATIC_LIBRARY)
include $(CLEAR_VARS)
# shaderc
LOCAL_MODULE := shaderc
LOCAL_SRC_FILES := deps-$(TARGET_ARCH_ABI)/shaderc/libshaderc/libshaderc_combined.a
include $(PREBUILT_STATIC_LIBRARY)
include $(CLEAR_VARS)
# libsquish
LOCAL_MODULE := libsquish
LOCAL_SRC_FILES := deps-$(TARGET_ARCH_ABI)/libsquish/libsquish.a
include $(PREBUILT_STATIC_LIBRARY)
include $(CLEAR_VARS)
# astc-encoder
LOCAL_MODULE := libastcenc
LOCAL_SRC_FILES := deps-$(TARGET_ARCH_ABI)/astc-encoder/Source/libastcenc.a
include $(PREBUILT_STATIC_LIBRARY)
include $(CLEAR_VARS)
# ifaddrs
LOCAL_MODULE := ifaddrs
LOCAL_PATH := .
LOCAL_SRC_FILES := ../lib/ifaddrs/ifaddrs.c
LOCAL_CFLAGS := -I../lib/ifaddrs
# Starting NDK21 it enables NEON by default on 32-bit ARM target
# Disable it to support more phones
ifeq ($(TARGET_ARCH_ABI), armeabi-v7a)
LOCAL_ARM_NEON := false
endif
include $(BUILD_STATIC_LIBRARY)
include $(CLEAR_VARS)
# AngelScript
LOCAL_MODULE := angelscript
LOCAL_PATH := .
LOCAL_CPP_FEATURES += rtti exceptions
LOCAL_SRC_FILES := $(wildcard ../lib/angelscript/source/*.S) \
$(wildcard ../lib/angelscript/source/*.cpp)
LOCAL_CFLAGS := -I../lib/angelscript/source/
ifeq ($(TARGET_ARCH_ABI), armeabi-v7a)
LOCAL_ARM_NEON := false
endif
include $(BUILD_STATIC_LIBRARY)
include $(CLEAR_VARS)
# ENET
LOCAL_MODULE := enet
LOCAL_PATH := .
LOCAL_CPP_FEATURES += rtti
LOCAL_SRC_FILES := $(wildcard ../lib/enet/*.c)
LOCAL_CFLAGS := -I../lib/enet/include/ -DHAS_SOCKLEN_T -DENABLE_IPV6
ifeq ($(TARGET_ARCH_ABI), armeabi-v7a)
LOCAL_ARM_NEON := false
endif
include $(BUILD_STATIC_LIBRARY)
include $(CLEAR_VARS)
# Bullet
LOCAL_MODULE := bullet
LOCAL_PATH := .
LOCAL_CPP_FEATURES += rtti
LOCAL_SRC_FILES := $(wildcard ../lib/bullet/src/*/*.cpp) \
$(wildcard ../lib/bullet/src/*/*/*.cpp)
LOCAL_CFLAGS := -I../lib/bullet/src/
ifeq ($(TARGET_ARCH_ABI), armeabi-v7a)
LOCAL_ARM_NEON := false
endif
include $(BUILD_STATIC_LIBRARY)
include $(CLEAR_VARS)
# Graphics utils
LOCAL_MODULE := graphics_utils
LOCAL_PATH := .
LOCAL_CPP_FEATURES += rtti
LOCAL_SRC_FILES := $(wildcard ../lib/graphics_utils/mipmap/*.c)
LOCAL_CFLAGS := -I../lib/graphics_utils/mipmap \
-I../lib/simd_wrapper
ifeq ($(TARGET_ARCH_ABI), armeabi-v7a)
LOCAL_ARM_NEON := false
endif
include $(BUILD_STATIC_LIBRARY)
include $(CLEAR_VARS)
# Graphics engine
LOCAL_MODULE := graphics_engine
LOCAL_PATH := .
LOCAL_CPP_FEATURES += rtti exceptions
LOCAL_SRC_FILES := $(wildcard ../lib/graphics_engine/src/*.c) \
$(wildcard ../lib/graphics_engine/src/*.cpp)
LOCAL_CFLAGS := -DENABLE_LIBASTCENC \
-I../lib/graphics_engine/include \
-I../lib/graphics_utils \
-I../lib/sdl2/include/ \
-I../lib/bullet/src/ \
-I../lib/irrlicht/include/ \
-I../lib/shaderc/libshaderc/include \
-I../lib/libsquish \
-Ideps-$(TARGET_ARCH_ABI)/astc-encoder/Source
ifeq ($(TARGET_ARCH_ABI), armeabi-v7a)
LOCAL_ARM_NEON := false
endif
LOCAL_STATIC_LIBRARIES := shaderc libsquish libastcenc
include $(BUILD_STATIC_LIBRARY)
include $(CLEAR_VARS)
# MCPP
LOCAL_MODULE := mcpp
LOCAL_PATH := .
LOCAL_CPP_FEATURES += rtti
LOCAL_SRC_FILES := $(wildcard ../lib/mcpp/*.c)
LOCAL_CFLAGS := -DMCPP_LIB -DHAVE_CONFIG_H
ifeq ($(TARGET_ARCH_ABI), armeabi-v7a)
LOCAL_ARM_NEON := false
endif
include $(BUILD_STATIC_LIBRARY)
include $(CLEAR_VARS)
# SheenBidi
LOCAL_MODULE := sheenbidi
LOCAL_PATH := .
LOCAL_CPP_FEATURES += rtti
LOCAL_SRC_FILES := $(wildcard ../lib/sheenbidi/Source/*.c)
LOCAL_CFLAGS := -I../lib/sheenbidi/Headers
ifeq ($(TARGET_ARCH_ABI), armeabi-v7a)
LOCAL_ARM_NEON := false
endif
include $(BUILD_STATIC_LIBRARY)
include $(CLEAR_VARS)
# tinygettext
LOCAL_MODULE := tinygettext
LOCAL_PATH := .
LOCAL_CPP_FEATURES += rtti exceptions
LOCAL_SRC_FILES := $(wildcard ../lib/tinygettext/src/*.cpp)
LOCAL_CFLAGS := -I../lib/tinygettext/include -DDISABLE_ICONV
ifeq ($(TARGET_ARCH_ABI), armeabi-v7a)
LOCAL_ARM_NEON := false
endif
include $(BUILD_STATIC_LIBRARY)
include $(CLEAR_VARS)
# Irrlicht
LOCAL_MODULE := irrlicht
LOCAL_PATH := .
LOCAL_CPP_FEATURES += rtti exceptions
LOCAL_SRC_FILES := $(wildcard ../lib/irrlicht/source/Irrlicht/*.cpp)
LOCAL_CFLAGS := -I../lib/irrlicht/source/Irrlicht/ \
-I../lib/irrlicht/include/ \
-I../src \
-Ideps-$(TARGET_ARCH_ABI)/libjpeg/ \
-Ideps-$(TARGET_ARCH_ABI)/libpng/ \
-Ideps-$(TARGET_ARCH_ABI)/zlib/ \
-I../lib/sdl2/include/ \
-I../lib/graphics_engine/include \
-DMOBILE_STK \
-DANDROID_PACKAGE_CALLBACK_NAME=$(PACKAGE_CALLBACK_NAME)
LOCAL_CPPFLAGS := -std=gnu++0x
LOCAL_STATIC_LIBRARIES := libjpeg png zlib
ifeq ($(TARGET_ARCH_ABI), armeabi-v7a)
LOCAL_ARM_NEON := false
endif
include $(BUILD_STATIC_LIBRARY)
include $(CLEAR_VARS)
# SDL2
LOCAL_MODULE := SDL2
LOCAL_PATH := .
LOCAL_SRC_FILES := $(wildcard ../lib/sdl2/src/*.c) \
$(wildcard ../lib/sdl2/src/audio/*.c) \
$(wildcard ../lib/sdl2/src/audio/android/*.c) \
$(wildcard ../lib/sdl2/src/audio/dummy/*.c) \
$(wildcard ../lib/sdl2/src/audio/aaudio/*.c) \
$(wildcard ../lib/sdl2/src/audio/openslES/*.c) \
../lib/sdl2/src/atomic/SDL_atomic.c.arm \
../lib/sdl2/src/atomic/SDL_spinlock.c.arm \
$(wildcard ../lib/sdl2/src/core/android/*.c) \
$(wildcard ../lib/sdl2/src/cpuinfo/*.c) \
$(wildcard ../lib/sdl2/src/dynapi/*.c) \
$(wildcard ../lib/sdl2/src/events/*.c) \
$(wildcard ../lib/sdl2/src/file/*.c) \
$(wildcard ../lib/sdl2/src/haptic/*.c) \
$(wildcard ../lib/sdl2/src/haptic/android/*.c) \
$(wildcard ../lib/sdl2/src/hidapi/*.c) \
$(wildcard ../lib/sdl2/src/hidapi/android/*.cpp) \
$(wildcard ../lib/sdl2/src/joystick/*.c) \
$(wildcard ../lib/sdl2/src/joystick/android/*.c) \
$(wildcard ../lib/sdl2/src/joystick/hidapi/*.c) \
$(wildcard ../lib/sdl2/src/joystick/virtual/*.c) \
$(wildcard ../lib/sdl2/src/loadso/dlopen/*.c) \
$(wildcard ../lib/sdl2/src/locale/android/*.c) \
$(wildcard ../lib/sdl2/src/locale/*.c) \
$(wildcard ../lib/sdl2/src/misc/*.c) \
$(wildcard ../lib/sdl2/src/misc/android/*.c) \
$(wildcard ../lib/sdl2/src/power/*.c) \
$(wildcard ../lib/sdl2/src/power/android/*.c) \
$(wildcard ../lib/sdl2/src/filesystem/android/*.c) \
$(wildcard ../lib/sdl2/src/sensor/*.c) \
$(wildcard ../lib/sdl2/src/sensor/android/*.c) \
$(wildcard ../lib/sdl2/src/render/*.c) \
$(wildcard ../lib/sdl2/src/render/*/*.c) \
$(wildcard ../lib/sdl2/src/stdlib/*.c) \
$(wildcard ../lib/sdl2/src/thread/*.c) \
$(wildcard ../lib/sdl2/src/thread/pthread/*.c) \
$(wildcard ../lib/sdl2/src/timer/*.c) \
$(wildcard ../lib/sdl2/src/timer/unix/*.c) \
$(wildcard ../lib/sdl2/src/video/*.c) \
$(wildcard ../lib/sdl2/src/video/android/*.c) \
$(wildcard ../lib/sdl2/src/video/yuv2rgb/*.c)
LOCAL_CFLAGS := -I../lib/sdl2/include/ -DGL_GLEXT_PROTOTYPES
LOCAL_LDLIBS := -ldl -lGLESv1_CM -lGLESv2 -lOpenSLES -llog -landroid
LOCAL_STATIC_LIBRARIES := cpufeatures
ifeq ($(TARGET_ARCH_ABI), armeabi-v7a)
LOCAL_ARM_NEON := false
endif
include $(BUILD_SHARED_LIBRARY)
include $(CLEAR_VARS)
# STK
LOCAL_MODULE := main
LOCAL_PATH := .
LOCAL_CPP_FEATURES += rtti exceptions
LOCAL_SRC_FILES := $(wildcard ../src/*.cpp) \
$(wildcard ../src/*/*.cpp) \
$(wildcard ../src/*/*/*.cpp)
LOCAL_LDLIBS := -llog -lm -lOpenSLES
LOCAL_CFLAGS := -I../lib/angelscript/include \
-I../lib/bullet/src \
-I../lib/sheenbidi/Headers \
-I../lib/enet/include \
-I../lib/ifaddrs \
-I../lib/irrlicht/include \
-I../lib/irrlicht/source/Irrlicht \
-I../lib/graphics_utils \
-I../lib/graphics_engine/include \
-I../lib/mcpp \
-I../lib/sdl2/include \
-I../lib/tinygettext/include \
-I../src \
-Ideps-$(TARGET_ARCH_ABI)/curl/include \
-Ideps-$(TARGET_ARCH_ABI)/freetype/include \
-Ideps-$(TARGET_ARCH_ABI)/harfbuzz/include \
-Ideps-$(TARGET_ARCH_ABI)/libogg/include \
-Ideps-$(TARGET_ARCH_ABI)/libvorbis/include \
-Ideps-$(TARGET_ARCH_ABI)/openal/include \
-Ideps-$(TARGET_ARCH_ABI)/mbedtls/include \
-DUSE_GLES2 \
-DMOBILE_STK \
-DENABLE_SOUND \
-DENABLE_IPV6 \
-DENABLE_CRYPTO_MBEDTLS \
-DNDEBUG \
-DDISABLE_ICONV \
-DANDROID_PACKAGE_NAME=\"$(PACKAGE_NAME)\" \
-DANDROID_APP_DIR_NAME=\"$(APP_DIR_NAME)\" \
-DSUPERTUXKART_VERSION=\"$(PROJECT_VERSION)\" \
-DANDROID_PACKAGE_CLASS_NAME=\"$(PACKAGE_CLASS_NAME)\"
LOCAL_CPPFLAGS := -std=gnu++0x
LOCAL_STATIC_LIBRARIES := irrlicht bullet enet ifaddrs angelscript mcpp SDL2 \
vorbisfile vorbis ogg openal curl libmbedtls \
libmbedcrypto libmbedx509 c++_static sheenbidi \
harfbuzz freetype tinygettext graphics_utils \
graphics_engine
ifeq ($(TARGET_ARCH_ABI), armeabi-v7a)
LOCAL_ARM_NEON := false
endif
include $(BUILD_SHARED_LIBRARY)
include $(CLEAR_VARS)
$(call import-module, android/cpufeatures)

View File

@@ -0,0 +1,69 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="org.supertuxkart.stk_dbg"
android:versionCode="1"
android:versionName="git"
android:installLocation="auto">
<application android:label="@string/app_name"
android:icon="@drawable/icon"
android:banner="@drawable/banner"
android:hasCode="true"
android:isGame="true"
android:theme="@style/Theme.STKSplashScreen"
android:hardwareAccelerated="true"
android:resizeableActivity="true">
<activity android:name=".SuperTuxKartActivity"
android:label="@string/app_name"
android:launchMode="singleTask"
android:configChanges="fontScale|keyboard|keyboardHidden|locale|mcc|mnc|navigation|orientation|screenLayout|screenSize|uiMode"
android:screenOrientation="sensorLandscape">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
<category android:name="android.intent.category.LEANBACK_LAUNCHER" />
</intent-filter>
<!-- Let Android know that we can handle some USB devices and should receive this event -->
<intent-filter>
<action android:name="android.hardware.usb.action.USB_DEVICE_ATTACHED" />
</intent-filter>
</activity>
</application>
<uses-feature android:glEsVersion="0x00020000" />
<uses-feature android:name="android.software.leanback" android:required="false" />
<uses-feature android:name="android.software.input_methods" android:required="false" />
<!-- Touchscreen support -->
<uses-feature
android:name="android.hardware.touchscreen"
android:required="false" />
<!-- Game controller support -->
<uses-feature
android:name="android.hardware.bluetooth"
android:required="false" />
<uses-feature
android:name="android.hardware.gamepad"
android:required="false" />
<uses-feature
android:name="android.hardware.usb.host"
android:required="false" />
<!-- External mouse input events -->
<uses-feature
android:name="android.hardware.type.pc"
android:required="false" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.INTERNET" />
<!-- Allow writing to external storage -->
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<!-- Allow access to Bluetooth devices -->
<uses-permission android:name="android.permission.BLUETOOTH" />
<!-- Allow access to the vibrator -->
<uses-permission android:name="android.permission.VIBRATE" />
</manifest>

166
android/README.ANDROID Normal file
View File

@@ -0,0 +1,166 @@
================================================================================
SUPERTUXKART
================================================================================
--------------------------------------------------------------------------------
SYSTEM REQUIREMENTS
--------------------------------------------------------------------------------
To run SuperTuxKart on Android, you need a device that meets following
requirements:
- Android 4.1 or later
- Processor compatible with armv7 or x86
- GPU that supports OpenGL ES 2.0
- 1 GB RAM (STK uses ~150 MB in minimal configuration)
- 300 MB of free space on internal storage
- Touch screen or external keyboard
--------------------------------------------------------------------------------
COMPILATION
--------------------------------------------------------------------------------
The build scripts are designed to run under linux. They may work under cygwin
after some tweaks, but atm. only linux is supported.
Dependencies list (may be incomplete):
autoconf, automake, make, python, gradle, imagemagick, cmake,
vorbis-tools, pngquant
Additionally some dependencies for optimize_data script:
advancecomp, libjpeg-progs, optipng
Before compilation you must download dependencies-android-src.tar.xz from:
https://github.com/supertuxkart/dependencies/releases
Choose the corresponding STK version you are compiling, use "preview" for git.
It contains sources of libraries that are used in STK, but are not available
in stk-code repository (curl, freetype, openal...).
These libraries are compiled and then statically linked with STK by the Android
build script.
You need to extract that packed file to stk-code/lib directory, so that the
directory will have following structure:
> stk-code
> build
> data
> lib
> angelscript
> bullet
> curl
> enet
> freetype
> ...
> src
> ...
You also need Android SDK for android-26 platform or later (SDL2 requirement) and
Android NDK. Version r23 is recommended, because it's known that it works
without issues. r24 or later is not compatible because it removes Android 4.1
support (https://github.com/android/ndk/wiki/Changelog-r23#announcements)
You need to create proper "android-sdk" and "android-ndk" symlinks in the
directory with Android project, so that the compilation script will have access
to the SDK and NDK.
Before running the compilation, run the generate_assets script, so that
selected assets will be copied to "assets" directory, and then included in the
apk file.
You can select different karts and tracks by setting KARTS and TRACKS variables
in the generate_assets.sh script at the beginning of file.
When you are creating the assets directory manually, note that the
directories.txt file is urgently needed and it is used by the application for
extracting assets.
If the assets directory is already prepared, you can run "./make.sh" command to
build the project and create an apk file. Note that all arguments are passed to
the make command, so that you can run "./make.sh -j5" for multi-threaded build.
Basically if all dependencies are installed in the system, it should be enough
to just run:
export SDK_PATH=/path/to/your/android/sdk
export NDK_PATH=/path/to/your/android/ndk
# Optional for STK_MIN_ANDROID_SDK, STK_TARGET_ANDROID_SDK and STK_NDK_VERSION
# If unset it will use the below values
export STK_MIN_ANDROID_SDK=16
export STK_TARGET_ANDROID_SDK=30
export STK_NDK_VERSION=23.1.7779620
./generate_assets.sh
./make_deps.sh
./make.sh
You may need to add org.gradle.jvmargs=-XX:MaxHeapSize=2048m -Xmx2048m to
.gradle/gradle.properties if you see java.lang.OutOfMemoryError / Java heap
space execption error.
--------------------------------------------------------------------------------
ENVIRONMENT VARIABLES
--------------------------------------------------------------------------------
COMPILE_ARCH - Allows one to choose CPU architecture for which the package will
be compiled.
Possible values: all, armv7, aarch64, x86, x86_64.
Default is: all.
BUILD_TYPE - Allows one to set build type.
Possible values: debug, release, beta.
Default is: debug.
BUILD_TOOLS_VER - Allows to override the SDK build-tools version.
SDK_PATH - Path to SDK directory
NDK_PATH - Path to NDK directory, it should include a list of installed
NDK version folders
PROJECT_VERSION - Set Supertuxkart version number, for example "0.9.3" or
"git20170409" or whatever. The version must match with file
assets/data/supertuxkart.$PROJECT_VERSION
and that file must exist, because it is used for extracting
and loading game data.
Default is: git.
PROJECT_CODE - Set Supertuxkart version code that is used in the manifest
file.
Default is: 1.
--------------------------------------------------------------------------------
RELEASE BUILD
--------------------------------------------------------------------------------
Making a release build is similar to typical compilation, but there are few
additional things to do.
You have to set PROJECT_VERSION variable. This is important, because assets
manager in STK checks that value and detects if already extracted data files are
up to date. So that when you will install new STK version, this will force new
data extraction automatically.
The PROJECT_CODE variable typically should be set to a value higher than for
previous release, so that users will receive the upgrade.
Before compilation you have to set:
export BUILD_TYPE=release
It's also needed to set STK_STOREPASS, STK_KEYSTORE and STK_ALIAS environment
variables, so that the apk files can be signed.
and then you make standard compilation with:
./generate_assets.sh
./make_deps.sh
./make.sh

BIN
android/banner.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

153
android/build.gradle Normal file
View File

@@ -0,0 +1,153 @@
buildscript
{
repositories
{
mavenCentral()
google()
}
dependencies
{
// 4.1.2 is the minimum version to support native debug symbols file
// https://developer.android.com/studio/build/shrink-code#android_gradle_plugin_version_41_or_later
// 7.0.0 to fix https://stackoverflow.com/questions/68387270/android-studio-error-installed-build-tools-revision-31-0-0-is-corrupted
classpath 'com.android.tools.build:gradle:7.0.0'
}
}
allprojects
{
repositories
{
mavenCentral()
google()
}
}
apply plugin: 'com.android.application'
android
{
// buildToolsVersion is no longer needed https://developer.android.com/studio/releases/gradle-plugin.html#behavior_changes_1
// Quote:
// Build Tools 27.0.3 or higher. Keep in mind, you no longer need to specify a version for the build tools using the android.buildToolsVersion property—the plugin uses the minimum required version by default.
compileSdkVersion compile_sdk_version.toInteger()
ndkVersion ndk_version
externalNativeBuild
{
ndkBuild
{
path 'Android.mk'
}
}
defaultConfig
{
minSdkVersion min_sdk_version.toInteger()
targetSdkVersion target_sdk_version.toInteger()
externalNativeBuild
{
ndkBuild
{
def app_platform = "APP_PLATFORM=android-${min_sdk_version}"
arguments app_platform, 'APP_STL=c++_static', cpu_core
if (project.getProperty('compile_arch') == 'all')
{
abiFilters 'armeabi-v7a', 'arm64-v8a', 'x86', 'x86_64'
}
else
{
abiFilters project.getProperty('compile_arch')
}
}
}
def runTasks = gradle.startParameter.taskNames
if ('bundleRelease' in runTasks)
{
// use SYMBOL_TABLE if too large later (max limit on google play is 300MB)
ndk.debugSymbolLevel 'FULL'
}
}
signingConfigs
{
release
{
storeFile file(keystore)
storePassword storepass
keyAlias alias
keyPassword storepass
}
}
buildTypes
{
debug
{
debuggable true
jniDebuggable true
minifyEnabled false
shrinkResources false
multiDexEnabled true
externalNativeBuild
{
ndkBuild
{
arguments 'NDK_DEBUG=1'
cFlags '-O0'
cppFlags '-O0'
}
}
ndk
{
if (project.getProperty('compile_arch') == 'all')
{
abiFilters 'armeabi-v7a', 'arm64-v8a', 'x86', 'x86_64'
}
else
{
abiFilters project.getProperty('compile_arch')
}
}
}
release
{
externalNativeBuild
{
ndkBuild
{
cFlags '-O3'
cppFlags '-O3'
}
}
signingConfig signingConfigs.release
ndk
{
if (project.getProperty('compile_arch') == 'all')
{
abiFilters 'armeabi-v7a', 'arm64-v8a', 'x86', 'x86_64'
}
else
{
abiFilters project.getProperty('compile_arch')
}
}
}
}
sourceSets
{
main
{
manifest.srcFile 'AndroidManifest.xml'
res.srcDirs = ['res']
assets.srcDirs = ['assets']
}
}
}
dependencies
{
implementation 'org.minidns:minidns-hla:0.3.3'
}

698
android/generate_assets.sh Executable file
View File

@@ -0,0 +1,698 @@
#!/bin/sh
#
# (C) 2016-2017 Dawid Gan, under the GPLv3
#
# A script that generates data files for Android apk
# Below you can find some simple configuration variables.
# It's allowed to set "all" for KARTS and TRACKS if it's intended to create
# package with full data.
# The karts and tracks directories shouldn't exist in ASSETS_DIRS variable
# because they are handled separately.
# The TEXTURE_SIZE and SOUND_QUALITY take effect only if DECREASE_QUALITY has
# value greater than 0.
# The CONVERT_TO_JPG variable enables converting all images that are safe to
# convert and keeps other images untouched.
# The script needs imagemagick, pngquant and ogg utils installed in order to
# use DECREASE_QUALITY feature
################################################################################
export KARTS_DEFAULT="all"
export TRACKS_DEFAULT="all"
export TEXTURE_SIZE_DEFAULT=256
export JPEG_QUALITY_DEFAULT=85
export PNG_QUALITY_DEFAULT=95
export PNGQUANT_QUALITY_DEFAULT=90
export SOUND_QUALITY_DEFAULT=42
export SOUND_MONO_DEFAULT=1
export SOUND_SAMPLE_DEFAULT=32000
export RUN_OPTIMIZE_SCRIPT_DEFAULT=0
export DECREASE_QUALITY_DEFAULT=1
export CONVERT_TO_JPG_DEFAULT=1
export ONLY_ASSETS_DEFAULT=0
export ASSETS_PATHS_DEFAULT="../data \
../../stk-assets \
../../supertuxkart-assets"
export OUTPUT_PATH_DEFAULT="assets"
export ASSETS_DIRS="library models music sfx textures"
export CONVERT_TO_JPG_BLACKLIST="data/models/traffic_light.png"
export BLACKLIST_FILES="data/supertuxkart.icns \
data/supertuxkart_1024.png \
data/supertuxkart_128.png \
data/supertuxkart_16.png \
data/supertuxkart_256.png \
data/supertuxkart_32.png \
data/supertuxkart_48.png \
data/supertuxkart_512.png \
data/supertuxkart_64.png"
################################################################################
export LANG=C
cd "`dirname "$0"`"
# Set default configuration if not changed outside of the script
if [ -z "$KARTS" ]; then
export KARTS="$KARTS_DEFAULT"
fi
if [ -z "$TRACKS" ]; then
export TRACKS="$TRACKS_DEFAULT"
fi
if [ -z "$TEXTURE_SIZE" ]; then
export TEXTURE_SIZE="$TEXTURE_SIZE_DEFAULT"
fi
if [ -z "$JPEG_QUALITY" ]; then
export JPEG_QUALITY="$JPEG_QUALITY_DEFAULT"
fi
if [ -z "$PNG_QUALITY" ]; then
export PNG_QUALITY="$PNG_QUALITY_DEFAULT"
fi
if [ -z "$PNGQUANT_QUALITY" ]; then
export PNGQUANT_QUALITY="$PNGQUANT_QUALITY_DEFAULT"
fi
if [ -z "$SOUND_QUALITY" ]; then
export SOUND_QUALITY="$SOUND_QUALITY_DEFAULT"
fi
if [ -z "$SOUND_MONO" ]; then
export SOUND_MONO="$SOUND_MONO_DEFAULT"
fi
if [ -z "$SOUND_SAMPLE" ]; then
export SOUND_SAMPLE="$SOUND_SAMPLE_DEFAULT"
fi
if [ -z "$RUN_OPTIMIZE_SCRIPT" ]; then
export RUN_OPTIMIZE_SCRIPT="$RUN_OPTIMIZE_SCRIPT_DEFAULT"
fi
if [ -z "$DECREASE_QUALITY" ]; then
export DECREASE_QUALITY="$DECREASE_QUALITY_DEFAULT"
fi
if [ -z "$CONVERT_TO_JPG" ]; then
export CONVERT_TO_JPG="$CONVERT_TO_JPG_DEFAULT"
fi
if [ -z "$ONLY_ASSETS" ]; then
export ONLY_ASSETS="$ONLY_ASSETS_DEFAULT"
fi
if [ -z "$ASSETS_PATHS" ]; then
export ASSETS_PATHS="$ASSETS_PATHS_DEFAULT"
fi
if [ -z "$OUTPUT_PATH" ]; then
export OUTPUT_PATH="$OUTPUT_PATH_DEFAULT"
fi
# Find assets path
for ASSETS_PATH in $ASSETS_PATHS; do
if [ -d $ASSETS_PATH ] && [ `ls $ASSETS_PATH | grep -c tracks` -gt 0 ]; then
echo "Assets found in $ASSETS_PATH"
ASSETS_PATH_FOUND=1
break
fi
done
if [ -z $ASSETS_PATH_FOUND ]; then
echo "Couldn't find assets path"
exit 1
fi
if [ ! -d "../data" ]; then
echo "Couldn't find data directory"
exit 1
fi
# Clear previous assets directory
echo "Clear previous assets directory"
rm -rf "$OUTPUT_PATH"
# Copy all assets
echo "Copy all assets"
mkdir -p "$OUTPUT_PATH/data"
for DIR in `ls $ASSETS_PATH`; do
CAN_BE_COPIED=0
for ASSETS_DIR in $ASSETS_DIRS; do
if [ $DIR = $ASSETS_DIR ]; then
CAN_BE_COPIED=1
break
fi
done;
# Don't copy karts and tracks. It will be handled later
BLACKLIST_ASSETS="karts tracks"
for ASSETS_DIR in $BLACKLIST_ASSETS; do
if [ $DIR = $ASSETS_DIR ]; then
CAN_BE_COPIED=0
break
fi
done;
if [ $CAN_BE_COPIED -gt 0 ]; then
cp -a "$ASSETS_PATH/$DIR" "$OUTPUT_PATH/data/"
fi
done;
# Copy selected tracks
echo "Copy selected tracks"
mkdir -p "$OUTPUT_PATH/data/tracks"
for DIR in `ls $ASSETS_PATH/tracks`; do
CAN_BE_COPIED=0
if [ "$TRACKS" != "all" ]; then
for TRACK in $TRACKS; do
if [ $DIR = $TRACK ]; then
CAN_BE_COPIED=1
break
fi
done;
else
CAN_BE_COPIED=1
fi
if [ $CAN_BE_COPIED -gt 0 ]; then
cp -a "$ASSETS_PATH/tracks/$DIR" "$OUTPUT_PATH/data/tracks/"
fi
done
# Copy selected karts
echo "Copy selected karts"
mkdir -p "$OUTPUT_PATH/data/karts"
for DIR in `ls $ASSETS_PATH/karts`; do
CAN_BE_COPIED=0
if [ "$KARTS" != "all" ]; then
for KART in $KARTS; do
if [ $DIR = $KART ]; then
CAN_BE_COPIED=1
break
fi
done;
else
CAN_BE_COPIED=1
fi
if [ $CAN_BE_COPIED -gt 0 ]; then
cp -a "$ASSETS_PATH/karts/$DIR" "$OUTPUT_PATH/data/karts/"
fi
done
# Decrease assets quality in order to save some disk space and RAM
echo "Decrease assets quality"
convert_image()
{
FILE="$1"
FILE_TYPE="$2"
echo "Convert file: $FILE"
if [ ! -f "$FILE" ]; then
echo " File doesn't exist."
return
fi
W=`identify -format "%[fx:w]" "$FILE"`
H=`identify -format "%[fx:h]" "$FILE"`
if [ -z $W ] || [ -z $H ]; then
echo "Couldn't convert $FILE file"
return
fi
SCALE_CMD=""
QUALITY_CMD=""
if [ $W -gt $TEXTURE_SIZE ] || [ $H -gt $TEXTURE_SIZE ]; then
if [ $W -gt $H ]; then
SCALED_W=$TEXTURE_SIZE
SCALED_H=$(($TEXTURE_SIZE * $H / $W))
else
SCALED_W=$(($TEXTURE_SIZE * $W / $H))
SCALED_H=$TEXTURE_SIZE
fi
SCALE_CMD="-scale ${SCALED_W}x${SCALED_H}"
fi
if [ "$FILE_TYPE" = "jpg" ]; then
QUALITY_CMD="-quality $JPEG_QUALITY"
elif [ "$FILE_TYPE" = "png" ]; then
QUALITY_CMD="-quality $PNG_QUALITY"
fi
convert $SCALE_CMD $QUALITY_CMD "$FILE" "tmp.$FILE_TYPE"
if [ -s "tmp.$FILE_TYPE" ]; then
SIZE_OLD=`du -k "$FILE" | cut -f1`
SIZE_NEW=`du -k "tmp.$FILE_TYPE" | cut -f1`
if [ $SIZE_NEW -lt $SIZE_OLD ]; then
mv "tmp.$FILE_TYPE" "$FILE"
fi
fi
rm -f "tmp.$FILE_TYPE"
}
convert_sound()
{
FILE="$1"
echo "Convert file: $FILE"
if [ ! -f "$FILE" ]; then
echo " File doesn't exist."
return
fi
oggdec "$FILE" -o tmp.wav
if [ -s tmp.wav ]; then
OGGENC_CMD=""
if [ "$SOUND_MONO" -gt 0 ]; then
OGGENC_CMD="$OGGENC_CMD --downmix"
fi
OGG_RATE=`ogginfo "$FILE" | grep "Rate: " | cut -f 2 -d " " \
| grep -o '[0-9]*'`
if [ ! -z "$OGG_RATE" ] && [ "$OGG_RATE" -gt "$SOUND_SAMPLE" ]; then
OGGENC_CMD="$OGGENC_CMD --resample $SOUND_SAMPLE"
fi
OGGENC_CMD="$OGGENC_CMD -b $SOUND_QUALITY"
oggenc $OGGENC_CMD tmp.wav -o tmp.ogg
fi
if [ -s tmp.ogg ]; then
SIZE_OLD=`du -k "$FILE" | cut -f1`
SIZE_NEW=`du -k "tmp.ogg" | cut -f1`
if [ $SIZE_NEW -lt $SIZE_OLD ]; then
mv tmp.ogg "$FILE"
fi
fi
rm -f tmp.wav tmp.ogg
}
optimize_png()
{
FILE="$1"
echo "Optimize file: $FILE"
if [ ! -f "$FILE" ]; then
echo " File doesn't exist."
return
fi
pngquant --force --skip-if-larger --quality 0-$PNGQUANT_QUALITY --output "$FILE" -- "$FILE"
}
convert_to_jpg()
{
FILE="$1"
echo "Convert file to jpg: $FILE"
if [ ! -f "$FILE" ]; then
echo " File doesn't exist."
return
fi
ALREADY_CONVERTED=0
if [ -s "./converted_textures" ]; then
while read -r CONVERTED_TEXTURE; do
if [ "$FILE" = "$CONVERTED_TEXTURE" ]; then
ALREADY_CONVERTED=1
break
fi
done < "./converted_textures"
fi
if [ $ALREADY_CONVERTED -eq 1 ]; then
return
fi
BLACKLISTED=0
for BLACKLIST_FILE in $CONVERT_TO_JPG_BLACKLIST; do
if [ "$FILE" = "$OUTPUT_PATH/$BLACKLIST_FILE" ]; then
BLACKLISTED=1
break
fi
done
if [ $BLACKLISTED -eq 1 ]; then
#echo " File is blacklisted. Ignore..."
return
fi
FILE_EXTENSION=`echo "$FILE" | tail -c 5`
if [ `echo "$FILE_EXTENSION" | head -c 1` != "." ]; then
#echo " Unsupported file extension. Ignore..."
return
fi
FILE_FORMAT=`identify -format %m "$FILE"`
if [ "$FILE_FORMAT" = "JPEG" ]; then
#echo " File is already JPEG. Ignore..."
return
fi
IS_OPAQUE=`identify -format '%[opaque]' "$FILE"`
#HAS_ALPHA=`identify -format '%A' "$FILE"`
if [ "$IS_OPAQUE" = "False" ] || [ "$IS_OPAQUE" = "false" ]; then
#echo " File has alpha channel. Ignore..."
return
fi
DIRNAME="`dirname "$FILE"`"
BASENAME="`basename "$FILE"`"
IS_GLOSS_MAP=`find "$DIRNAME" -iname "*.xml" -exec cat {} \; \
| grep -c "gloss-map=\"$BASENAME\""`
if [ $IS_GLOSS_MAP -gt 0 ]; then
#echo " File is a gloss-map. Ignore..."
return
fi
NEW_FILE="`echo $FILE | head -c -5`.jpg"
if [ -f "$NEW_FILE" ]; then
#echo " There is already a file with .jpg extension. Ignore..."
return
fi
# We can check if new file is smaller
convert -quality $JPEG_QUALITY "$FILE" "$NEW_FILE"
rm -f "$FILE"
echo "$FILE" >> "./converted_textures"
}
convert_to_jpg_extract_b3dz()
{
FILE="$1"
echo "Extract b3dz file: $FILE"
if [ ! -f "$FILE" ]; then
echo " File doesn't exist."
return
fi
DIRNAME="`dirname "$FILE"`"
unzip "$FILE" -d "$DIRNAME"
rm -f "$FILE"
TEXNAME="`basename "$FILE"`"
NEWNAME="`echo $TEXNAME | head -c -6`.b3d"
sed -i "s/\"$TEXNAME\"/\"$NEWNAME\"/g" "$DIRNAME/kart.xml"
}
convert_to_jpg_update_b3d()
{
FILE="$1"
echo "Update b3d file: $FILE"
if [ ! -f "$1" ]; then
echo " File doesn't exist."
return
fi
HEX_FILE=`hexdump -ve '1/1 "%.2x"' "$FILE"`
TEXS_CHUNK="54455853"
TEXS_CHUNK_POS=24
FOUND_CHUNK=`echo $HEX_FILE | head -c $(($TEXS_CHUNK_POS + 8)) \
| tail -c +$(($TEXS_CHUNK_POS + 1))`
if [ -z "$FOUND_CHUNK" ] || [ "$FOUND_CHUNK" != "$TEXS_CHUNK" ]; then
echo " File has no textures."
return
fi
TEXS_SIZE=`echo $HEX_FILE | head -c $(($TEXS_CHUNK_POS + 16)) | tail -c 8`
TEXS_SIZE_CONVERTED=`echo $TEXS_SIZE | cut -c7-8`
TEXS_SIZE_CONVERTED=$TEXS_SIZE_CONVERTED`echo $TEXS_SIZE | cut -c5-6`
TEXS_SIZE_CONVERTED=$TEXS_SIZE_CONVERTED`echo $TEXS_SIZE | cut -c3-4`
TEXS_SIZE_CONVERTED=$TEXS_SIZE_CONVERTED`echo $TEXS_SIZE | cut -c1-2`
TEXS_SIZE_CONVERTED=`echo $((0x$TEXS_SIZE_CONVERTED))`
if [ $TEXS_SIZE_CONVERTED -le 0 ]; then
echo " Invalid TEXS size value."
return
fi
TEXS_BEGIN=$(($TEXS_CHUNK_POS + 16))
TEXS_END=$(($TEXS_BEGIN + $TEXS_SIZE_CONVERTED * 2))
HEX_TEXS=`echo $HEX_FILE | head -c $TEXS_END | tail -c +$(($TEXS_BEGIN+1))`
CURR_POS=0
while [ $CURR_POS -lt $TEXS_END ]; do
NULL_POS=`echo $HEX_TEXS | tail -c +$(($CURR_POS+1)) | grep -b -o "00" \
| head -n 1 | cut -f1 -d":"`
if [ -z $NULL_POS ]; then
#echo " Done."
break
fi
if [ $NULL_POS -lt 4 ]; then
echo " Something went wrong..."
break
fi
TEXNAME_BEGIN=$((($TEXS_BEGIN + $CURR_POS) / 2))
TEXNAME_END=$((($TEXS_BEGIN + $CURR_POS + $NULL_POS) / 2))
CURR_POS=$(($CURR_POS + $NULL_POS + 58))
TEXTURE_NAME=`dd if="$FILE" bs=1 skip=$TEXNAME_BEGIN \
count=$(($TEXNAME_END - $TEXNAME_BEGIN)) 2> /dev/null`
DIRNAME="`dirname "$FILE"`"
TEXTURE_PATH="$DIRNAME/$TEXTURE_NAME"
IS_CONVERTED=0
while read -r CONVERTED_TEXTURE; do
if [ "$TEXTURE_PATH" = "$CONVERTED_TEXTURE" ]; then
IS_CONVERTED=1
break
fi
done < "./converted_textures"
if [ $IS_CONVERTED -eq 1 ]; then
echo -n ".jpg" | dd of="$FILE" bs=1 seek=$(($TEXNAME_END - 4)) \
conv=notrunc 2> /dev/null
fi;
done
}
convert_to_jpg_update_spm()
{
FILE="$1"
echo "Update spm file: $FILE"
if [ ! -f "$1" ]; then
echo " File doesn't exist."
return
fi
HEX_FILE=`hexdump -ve '1/1 "%.2x"' "$FILE"`
SP_HEADER="5350"
SP_FOUND=`echo $HEX_FILE | head -c 4`
if [ -z "$SP_FOUND" ] || [ "$SP_FOUND" != "$SP_HEADER" ]; then
echo " Unsupported format."
return
fi
TEXS_BEGIN=60
TEXS_COUNT=`echo $HEX_FILE | head -c $TEXS_BEGIN | tail -c 4`
TEXS_COUNT_CONVERTED=`echo $TEXS_COUNT | cut -c3-4`
TEXS_COUNT_CONVERTED=$TEXS_COUNT_CONVERTED`echo $TEXS_COUNT | cut -c1-2`
TEXS_COUNT_CONVERTED=`echo $((0x$TEXS_COUNT_CONVERTED))`
TEXS_COUNT_CONVERTED=$(($TEXS_COUNT_CONVERTED * 2))
if [ $TEXS_COUNT_CONVERTED -le 0 ]; then
echo " Invalid textures count value."
return
fi
CURR_POS=$(($TEXS_BEGIN + 2))
while [ $TEXS_COUNT_CONVERTED -gt 0 ]; do
TEXS_COUNT_CONVERTED=$(($TEXS_COUNT_CONVERTED - 1))
TEX_LEN=`echo $HEX_FILE | head -c $(($CURR_POS)) | tail -c 2`
TEX_LEN=`echo $((0x$TEX_LEN))`
TEXNAME_BEGIN=$(($CURR_POS / 2))
TEXNAME_END=$(($CURR_POS / 2 + $TEX_LEN))
CURR_POS=$(($CURR_POS + 2 + $TEX_LEN * 2))
if [ $TEX_LEN -eq 0 ]; then
#echo " Empty texture name, ignore..."
continue
fi
TEXTURE_NAME=`dd if="$FILE" bs=1 skip=$TEXNAME_BEGIN \
count=$(($TEXNAME_END - $TEXNAME_BEGIN)) 2> /dev/null`
DIRNAME="`dirname "$FILE"`"
TEXTURE_PATH="$DIRNAME/$TEXTURE_NAME"
IS_CONVERTED=0
while read -r CONVERTED_TEXTURE; do
if [ "$TEXTURE_PATH" = "$CONVERTED_TEXTURE" ]; then
IS_CONVERTED=1
break
fi
done < "./converted_textures"
if [ $IS_CONVERTED -eq 1 ]; then
echo -n ".jpg" | dd of="$FILE" bs=1 seek=$(($TEXNAME_END - 4)) \
conv=notrunc 2> /dev/null
fi
done
}
convert_to_jpg_update_xml()
{
FILE="$1"
echo "Update xml file: $FILE"
if [ ! -f "$FILE" ]; then
echo " File doesn't exist."
return
fi
DIRNAME="`dirname "$FILE"`"
while read -r CONVERTED_TEXTURE; do
DIRNAME_TEX="`dirname "$CONVERTED_TEXTURE"`"
if [ "$DIRNAME_TEX" != "$DIRNAME" ]; then
continue;
fi
TEXNAME="`basename "$CONVERTED_TEXTURE" | head -c -5`"
sed -i "s/\"$TEXNAME.[pP][nN][gG]/\"$TEXNAME.jpg/g" "$FILE"
sed -i "s/ $TEXNAME.[pP][nN][gG]/ $TEXNAME.jpg/g" "$FILE"
done < "./converted_textures"
}
if [ $DECREASE_QUALITY -gt 0 ]; then
find "$OUTPUT_PATH/data" -iname "*.png" | while read f; do convert_image "$f" "png"; done
find "$OUTPUT_PATH/data" -iname "*.jpg" | while read f; do convert_image "$f" "jpg"; done
find "$OUTPUT_PATH/data" -iname "*.ogg" | while read f; do convert_sound "$f"; done
fi
if [ $CONVERT_TO_JPG -gt 0 ]; then
rm -f "./converted_textures"
find "$OUTPUT_PATH/data" -not -path "$OUTPUT_PATH/data/textures/*" \
-not -path "$OUTPUT_PATH/data/karts/*" \
-iname "*.png" | while read f; do convert_to_jpg "$f"; done
find "$OUTPUT_PATH/data" -iname "*.b3dz" | while read f; do convert_to_jpg_extract_b3dz "$f"; done
find "$OUTPUT_PATH/data" -iname "*.b3d" | while read f; do convert_to_jpg_update_b3d "$f"; done
find "$OUTPUT_PATH/data" -iname "*.spm" | while read f; do convert_to_jpg_update_spm "$f"; done
find "$OUTPUT_PATH/data" -iname "*.xml" | while read f; do convert_to_jpg_update_xml "$f"; done
if [ -s "./converted_textures" ]; then
echo "Converted textures:"
cat "./converted_textures"
rm -f "./converted_textures"
fi
fi
if [ $DECREASE_QUALITY -gt 0 ]; then
find "$OUTPUT_PATH/data" -iname "*.png" | while read f; do optimize_png "$f" "png"; done
fi
# Copy data directory
if [ $ONLY_ASSETS -eq 0 ]; then
echo "Copy data directory"
cp -a ../data/* "$OUTPUT_PATH/data"
fi
# Remove unused files
for BLACKLIST_FILE in $BLACKLIST_FILES; do
rm -f "$OUTPUT_PATH/$BLACKLIST_FILE"
done
# Run optimize_data.sh script
if [ $RUN_OPTIMIZE_SCRIPT -gt 0 ]; then
echo "Run optimize_data.sh script"
sh -c "cd "$OUTPUT_PATH/data"; ../../../data/optimize_data.sh"
fi
# Generate files list
echo "Generate files list"
find "$OUTPUT_PATH"/* -type d| sort > tmp1.txt
sed -i 's/$/\//' tmp1.txt
find "$OUTPUT_PATH"/* -type f| sort > tmp2.txt
cat tmp1.txt tmp2.txt | sort > "$OUTPUT_PATH/files.txt"
rm tmp1.txt tmp2.txt
sed -i s/".\/$OUTPUT_PATH\/"// "$OUTPUT_PATH/files.txt"
sed -i s/"$OUTPUT_PATH\/"// "$OUTPUT_PATH/files.txt"
# A file that can be used to check if apk has assets
echo "has_assets" > "$OUTPUT_PATH/has_assets.txt"
# It will be probably ignored by ant, but create it anyway...
touch "$OUTPUT_PATH/.nomedia"
echo "Done."
exit 0

Binary file not shown.

View File

@@ -0,0 +1,6 @@
#Mon Oct 23 13:51:26 PDT 2017
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-all.zip

160
android/gradlew vendored Executable file
View File

@@ -0,0 +1,160 @@
#!/usr/bin/env bash
##############################################################################
##
## Gradle start up script for UN*X
##
##############################################################################
# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
DEFAULT_JVM_OPTS=""
APP_NAME="Gradle"
APP_BASE_NAME=`basename "$0"`
# Use the maximum available, or set MAX_FD != -1 to use that value.
MAX_FD="maximum"
warn ( ) {
echo "$*"
}
die ( ) {
echo
echo "$*"
echo
exit 1
}
# OS specific support (must be 'true' or 'false').
cygwin=false
msys=false
darwin=false
case "`uname`" in
CYGWIN* )
cygwin=true
;;
Darwin* )
darwin=true
;;
MINGW* )
msys=true
;;
esac
# Attempt to set APP_HOME
# Resolve links: $0 may be a link
PRG="$0"
# Need this for relative symlinks.
while [ -h "$PRG" ] ; do
ls=`ls -ld "$PRG"`
link=`expr "$ls" : '.*-> \(.*\)$'`
if expr "$link" : '/.*' > /dev/null; then
PRG="$link"
else
PRG=`dirname "$PRG"`"/$link"
fi
done
SAVED="`pwd`"
cd "`dirname \"$PRG\"`/" >/dev/null
APP_HOME="`pwd -P`"
cd "$SAVED" >/dev/null
CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar
# Determine the Java command to use to start the JVM.
if [ -n "$JAVA_HOME" ] ; then
if [ -x "$JAVA_HOME/jre/sh/java" ] ; then
# IBM's JDK on AIX uses strange locations for the executables
JAVACMD="$JAVA_HOME/jre/sh/java"
else
JAVACMD="$JAVA_HOME/bin/java"
fi
if [ ! -x "$JAVACMD" ] ; then
die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation."
fi
else
JAVACMD="java"
which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation."
fi
# Increase the maximum file descriptors if we can.
if [ "$cygwin" = "false" -a "$darwin" = "false" ] ; then
MAX_FD_LIMIT=`ulimit -H -n`
if [ $? -eq 0 ] ; then
if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then
MAX_FD="$MAX_FD_LIMIT"
fi
ulimit -n $MAX_FD
if [ $? -ne 0 ] ; then
warn "Could not set maximum file descriptor limit: $MAX_FD"
fi
else
warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT"
fi
fi
# For Darwin, add options to specify how the application appears in the dock
if $darwin; then
GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\""
fi
# For Cygwin, switch paths to Windows format before running java
if $cygwin ; then
APP_HOME=`cygpath --path --mixed "$APP_HOME"`
CLASSPATH=`cygpath --path --mixed "$CLASSPATH"`
JAVACMD=`cygpath --unix "$JAVACMD"`
# We build the pattern for arguments to be converted via cygpath
ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null`
SEP=""
for dir in $ROOTDIRSRAW ; do
ROOTDIRS="$ROOTDIRS$SEP$dir"
SEP="|"
done
OURCYGPATTERN="(^($ROOTDIRS))"
# Add a user-defined pattern to the cygpath arguments
if [ "$GRADLE_CYGPATTERN" != "" ] ; then
OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)"
fi
# Now convert the arguments - kludge to limit ourselves to /bin/sh
i=0
for arg in "$@" ; do
CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -`
CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option
if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition
eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"`
else
eval `echo args$i`="\"$arg\""
fi
i=$((i+1))
done
case $i in
(0) set -- ;;
(1) set -- "$args0" ;;
(2) set -- "$args0" "$args1" ;;
(3) set -- "$args0" "$args1" "$args2" ;;
(4) set -- "$args0" "$args1" "$args2" "$args3" ;;
(5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;;
(6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;;
(7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;;
(8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;;
(9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;;
esac
fi
# Split up the JVM_OPTS And GRADLE_OPTS values into an array, following the shell quoting and substitution rules
function splitJvmOpts() {
JVM_OPTS=("$@")
}
eval splitJvmOpts $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS
JVM_OPTS[${#JVM_OPTS[*]}]="-Dorg.gradle.appname=$APP_BASE_NAME"
exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" org.gradle.wrapper.GradleWrapperMain "$@"

BIN
android/icon-dbg.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

BIN
android/icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

472
android/make.sh Executable file
View File

@@ -0,0 +1,472 @@
#!/bin/bash
#
# (C) 2016-2017 Dawid Gan, under the GPLv3
#
# A script that creates the apk build
export DIRNAME=$(realpath "$(dirname "$0")")
export NDK_PATH_DEFAULT="$DIRNAME/android-ndk"
export SDK_PATH_DEFAULT="$DIRNAME/android-sdk"
export NDK_BUILD_SCRIPT="$DIRNAME/Android.mk"
#export NDK_CCACHE=ccache
export CPU_CORE="-j$(($(nproc) + 1))"
if [ -z "$STK_MIN_ANDROID_SDK" ]; then
export STK_MIN_ANDROID_SDK=16
fi
if [ -z "$STK_TARGET_ANDROID_SDK" ]; then
export STK_TARGET_ANDROID_SDK=30
fi
if [ -z "$STK_NDK_VERSION" ]; then
export STK_NDK_VERSION=23.1.7779620
fi
export APP_NAME_RELEASE="SuperTuxKart"
export PACKAGE_NAME_RELEASE="org.supertuxkart.stk"
export PACKAGE_CLASS_NAME_RELEASE="org/supertuxkart/stk"
export APP_DIR_NAME_RELEASE="supertuxkart"
export APP_ICON_RELEASE="$DIRNAME/icon.png"
export APP_ICON_ADAPTIVE_BG_RELEASE="$DIRNAME/icon_adaptive_bg.png"
export APP_ICON_ADAPTIVE_FG_RELEASE="$DIRNAME/icon_adaptive_fg.png"
export APP_NAME_BETA="SuperTuxKart Beta"
export PACKAGE_NAME_BETA="org.supertuxkart.stk_beta"
export PACKAGE_CLASS_NAME_BETA="org/supertuxkart/stk_beta"
export APP_DIR_NAME_BETA="supertuxkart-beta"
export APP_ICON_BETA="$DIRNAME/icon-dbg.png"
export APP_ICON_ADAPTIVE_BG_BETA="$DIRNAME/icon_adaptive_bg-dbg.png"
export APP_ICON_ADAPTIVE_FG_BETA="$DIRNAME/icon_adaptive_fg-dbg.png"
export APP_NAME_DEBUG="SuperTuxKart Debug"
export PACKAGE_NAME_DEBUG="org.supertuxkart.stk_dbg"
export PACKAGE_CLASS_NAME_DEBUG="org/supertuxkart/stk_dbg"
export APP_DIR_NAME_DEBUG="supertuxkart-dbg"
export APP_ICON_DEBUG="$DIRNAME/icon-dbg.png"
export APP_ICON_ADAPTIVE_BG_DEBUG="$DIRNAME/icon_adaptive_bg-dbg.png"
export APP_ICON_ADAPTIVE_FG_DEBUG="$DIRNAME/icon_adaptive_fg-dbg.png"
# A helper function that checks if error ocurred
check_error()
{
if [ $? -gt 0 ]; then
echo "Error ocurred."
exit
fi
}
# Handle clean command
if [ ! -z "$1" ] && [ "$1" = "clean" ]; then
rm -rf "$DIRNAME/bin"
rm -rf "$DIRNAME/build"
rm -rf "$DIRNAME/libs"
rm -rf "$DIRNAME/obj"
rm -rf "$DIRNAME/res"
rm -rf "$DIRNAME/.gradle"
rm -rf "$DIRNAME/.cxx"
exit
fi
# Update variables for selected architecture
if [ -z "$COMPILE_ARCH" ]; then
COMPILE_ARCH="all"
fi
if [ "$COMPILE_ARCH" = "armv7" ]; then
COMPILE_ARCH="armeabi-v7a"
elif [ "$COMPILE_ARCH" = "aarch64" ]; then
COMPILE_ARCH="arm64-v8a"
elif [ "$COMPILE_ARCH" != "x86" ] && [ "$COMPILE_ARCH" != "x86_64" ] && \
[ "$COMPILE_ARCH" != "all" ]; then
echo "Unknown COMPILE_ARCH: $COMPILE_ARCH. Possible values are:" \
"all, armv7, aarch64, x86, x86_64"
exit
fi
# Update variables for selected build type
if [ -z "$BUILD_TYPE" ]; then
BUILD_TYPE="debug"
fi
if [ "$BUILD_TYPE" = "debug" ] || [ "$BUILD_TYPE" = "Debug" ]; then
export GRADLE_BUILD_TYPE="assembleDebug"
export IS_DEBUG_BUILD=1
export APP_NAME="$APP_NAME_DEBUG"
export PACKAGE_NAME="$PACKAGE_NAME_DEBUG"
export PACKAGE_CLASS_NAME="$PACKAGE_CLASS_NAME_DEBUG"
export APP_DIR_NAME="$APP_DIR_NAME_DEBUG"
export APP_ICON="$APP_ICON_DEBUG"
export APP_ICON_ADAPTIVE_BG="$APP_ICON_ADAPTIVE_BG_DEBUG"
export APP_ICON_ADAPTIVE_FG="$APP_ICON_ADAPTIVE_FG_DEBUG"
elif [ "$BUILD_TYPE" = "release" ] || [ "$BUILD_TYPE" = "Release" ]; then
export GRADLE_BUILD_TYPE="assembleRelease"
export IS_DEBUG_BUILD=0
export APP_NAME="$APP_NAME_RELEASE"
export PACKAGE_NAME="$PACKAGE_NAME_RELEASE"
export PACKAGE_CLASS_NAME="$PACKAGE_CLASS_NAME_RELEASE"
export APP_DIR_NAME="$APP_DIR_NAME_RELEASE"
export APP_ICON="$APP_ICON_RELEASE"
export APP_ICON_ADAPTIVE_BG="$APP_ICON_ADAPTIVE_BG_RELEASE"
export APP_ICON_ADAPTIVE_FG="$APP_ICON_ADAPTIVE_FG_RELEASE"
elif [ "$BUILD_TYPE" = "beta" ] || [ "$BUILD_TYPE" = "Beta" ]; then
export GRADLE_BUILD_TYPE="assembleRelease"
export IS_DEBUG_BUILD=0
export APP_NAME="$APP_NAME_BETA"
export PACKAGE_NAME="$PACKAGE_NAME_BETA"
export PACKAGE_CLASS_NAME="$PACKAGE_CLASS_NAME_BETA"
export APP_DIR_NAME="$APP_DIR_NAME_BETA"
export APP_ICON="$APP_ICON_BETA"
export APP_ICON_ADAPTIVE_BG="$APP_ICON_ADAPTIVE_BG_BETA"
export APP_ICON_ADAPTIVE_FG="$APP_ICON_ADAPTIVE_FG_BETA"
else
echo "Unsupported BUILD_TYPE: $BUILD_TYPE. Possible values are: " \
"debug, release"
exit
fi
# Check if we have access to the Android NDK and SDK
if [ -z "$NDK_PATH" ]; then
export NDK_PATH="$NDK_PATH_DEFAULT"
fi
if [ -z "$SDK_PATH" ]; then
export SDK_PATH="$SDK_PATH_DEFAULT"
fi
NDK_PATH="$(realpath "$NDK_PATH")/${STK_NDK_VERSION}"
SDK_PATH=$(realpath "$SDK_PATH")
if [ ! -d "$NDK_PATH" ]; then
echo "Error: Couldn't find $NDK_PATH directory. Please create a symlink" \
"to your Android NDK installation in the $NDK_PATH_DEFAULT or set" \
"proper path in the NDK_PATH variable"
exit
fi
if [ ! -d "$SDK_PATH" ]; then
echo "Error: Couldn't find $SDK_PATH directory. Please create a symlink" \
"to your Android SDK installation in the $SDK_PATH_DEFAULT or set" \
"proper path in the SDK_PATH variable"
exit
fi
# Check if we have key for signing in release build
if [ "$GRADLE_BUILD_TYPE" = "assembleRelease" ]; then
if [ -z "$STK_KEYSTORE" ]; then
echo "Error: STK_KEYSTORE variable is empty."
exit
fi
if [ ! -f "$STK_KEYSTORE" ]; then
echo "Error: Couldn't find $STK_KEYSTORE file."
exit
fi
if [ -z "$STK_STOREPASS" ]; then
echo "Error: STK_STOREPASS variable is empty"
exit
fi
if [ -z "$STK_ALIAS" ]; then
echo "Error: STK_ALIAS variable is empty."
exit
fi
else
STK_KEYSTORE="empty"
STK_STOREPASS="empty"
STK_ALIAS="empty"
fi
# Find newest build-tools version
if [ -z "$BUILD_TOOLS_VER" ]; then
BUILD_TOOLS_DIRS=`ls -1 "$SDK_PATH/build-tools" | sort -V -r`
for DIR in $BUILD_TOOLS_DIRS; do
if [ "$DIR" = "`echo $DIR | sed 's/[^0-9,.]//g'`" ]; then
BUILD_TOOLS_VER="$DIR"
break
fi
done
fi
if [ -z "$BUILD_TOOLS_VER" ] || [ ! -d "$SDK_PATH/build-tools/$BUILD_TOOLS_VER" ]; then
echo "Error: Couldn't detect build-tools version."
exit
fi
BUILD_TOOLS_FULL=(${BUILD_TOOLS_VER//./ })
export COMPILE_SDK_VERSION="${BUILD_TOOLS_FULL[0]}"
# Set project version and code
if [ -f "$DIRNAME/obj/project_version" ]; then
PROJECT_VERSION_PREV=$(cat "$DIRNAME/obj/project_version")
if [ -z "$PROJECT_VERSION" ]; then
export PROJECT_VERSION="$PROJECT_VERSION_PREV"
elif [ "$PROJECT_VERSION" != "$PROJECT_VERSION_PREV" ]; then
echo "Different project version has been set. Forcing recompilation..."
touch -c "$DIRNAME/Android.mk"
fi
fi
if [ -z "$PROJECT_VERSION" ]; then
if [ $IS_DEBUG_BUILD -ne 0 ]; then
export PROJECT_VERSION="git"
else
echo "Error: Variable PROJECT_VERSION is not set. It must have unique" \
"value for release build."
exit
fi
fi
if [ -z "$PROJECT_CODE" ]; then
if [ $IS_DEBUG_BUILD -ne 0 ]; then
PROJECT_CODE="1"
else
echo "Error: Variable PROJECT_CODE is not set."
exit
fi
fi
if [ -d "$DIRNAME/assets/data" ]; then
if [ ! -f "$DIRNAME/assets/data/supertuxkart.$PROJECT_VERSION" ]; then
echo "Error: supertuxkart.$PROJECT_VERSION doesn't exist in" \
"assets/data directory."
exit
fi
fi
# Standalone toolchain
if [ ! -f "$DIRNAME/obj/make_standalone_toolchain.stamp" ]; then
echo "Creating standalone toolchain"
rm -rf "$DIRNAME/obj"
mkdir "$DIRNAME/obj"
touch "$DIRNAME/obj/make_standalone_toolchain.stamp"
fi
echo "$PROJECT_VERSION" > "$DIRNAME/obj/project_version"
# Build apk
echo "Building APK"
mkdir -p "$DIRNAME/res/drawable/"
mkdir -p "$DIRNAME/res/drawable-anydpi-v26/"
mkdir -p "$DIRNAME/res/drawable-mdpi/"
mkdir -p "$DIRNAME/res/drawable-hdpi/"
mkdir -p "$DIRNAME/res/drawable-xhdpi/"
mkdir -p "$DIRNAME/res/drawable-xxhdpi/"
mkdir -p "$DIRNAME/res/drawable-xxxhdpi/"
rm -rf "$DIRNAME/res/values*"
mkdir -p "$DIRNAME/res/values/"
STYLES_FILE="$DIRNAME/res/values/styles.xml"
echo "<?xml version=\"1.0\" encoding=\"utf-8\"?>" > "$STYLES_FILE"
echo "<!--Generated by make.sh-->" >> "$STYLES_FILE"
echo "<resources>" >> "$STYLES_FILE"
echo " <style name=\"Theme.STKSplashScreen\" parent=\"android:style/Theme.Holo\">" >> "$STYLES_FILE"
echo " <item name=\"android:windowBackground\">#A8A8A8</item>" >> "$STYLES_FILE"
echo " <item name=\"android:windowFullscreen\">true</item>" >> "$STYLES_FILE"
echo " <item name=\"android:windowNoTitle\">true</item>" >> "$STYLES_FILE"
echo " <item name=\"android:windowLayoutInDisplayCutoutMode\">shortEdges</item>" >> "$STYLES_FILE"
echo " <item name=\"android:windowContentOverlay\">@null</item>" >> "$STYLES_FILE"
echo " </style>" >> "$STYLES_FILE"
echo "</resources>" >> "$STYLES_FILE"
STRINGS_FILE="$DIRNAME/res/values/strings.xml"
# Strings used in stk android ui (when extracting game data first time)
PO_EXTRACT_GAME_DATA="po_extract_game_data"
PO_EXTRACT_GAME_DATA_STR="Extracting game data..."
PO_EXTRACT_ERROR="po_extract_error"
PO_EXTRACT_ERROR_STR="Game data extraction error"
PO_EXTRACT_ERROR_MSG="po_extract_error_msg"
PO_EXTRACT_ERROR_MSG_STR="Check remaining device space or reinstall SuperTuxKart."
PO_QUIT="po_quit"
PO_QUIT_STR="Quit"
echo "<?xml version=\"1.0\" encoding=\"utf-8\"?>" > "$STRINGS_FILE"
echo "<!--Generated by make.sh-->" >> "$STRINGS_FILE"
echo "<resources>" >> "$STRINGS_FILE"
echo " <string name=\"app_name\">$APP_NAME</string>" >> "$STRINGS_FILE"
echo " <string name=\"$PO_EXTRACT_GAME_DATA\">$PO_EXTRACT_GAME_DATA_STR</string>" >> "$STRINGS_FILE"
echo " <string name=\"$PO_EXTRACT_ERROR\">$PO_EXTRACT_ERROR_STR</string>" >> "$STRINGS_FILE"
echo " <string name=\"$PO_EXTRACT_ERROR_MSG\">$PO_EXTRACT_ERROR_MSG_STR</string>" >> "$STRINGS_FILE"
echo " <string name=\"$PO_QUIT\">$PO_QUIT_STR</string>" >> "$STRINGS_FILE"
echo "</resources>" >> "$STRINGS_FILE"
translate_str()
{
echo $(grep -A 1 -e "msgid \"$1\"" "$2" \
| sed -n 's/msgstr "\(.*\)"/\1/p' | sed "s/'/\\\'/g")
}
create_translation()
{
PO="$1"
CUR_LANG=$(basename -- "$PO" | cut -f 1 -d '.')
# Skip english po file
if [ "$CUR_LANG" = "en" ]; then
continue
fi
# Fix some difference in language code
if [ "$CUR_LANG" = "he" ]; then
# Hebrew
CUR_LANG="iw"
fi
if [ "$CUR_LANG" = "id" ]; then
# Indonesian
CUR_LANG="in"
fi
if [ "$CUR_LANG" = "yi" ]; then
# Yiddish
CUR_LANG="ji"
fi
CUR_LANG=$(echo "$CUR_LANG" | sed 's/_/-r/g')
EXTRACT_GAME_DATA_STR=$(translate_str "$PO_EXTRACT_GAME_DATA_STR" "$PO")
EXTRACT_ERROR_STR=$(translate_str "$PO_EXTRACT_ERROR_STR" "$PO")
EXTRACT_ERROR_MSG_STR=$(translate_str "$PO_EXTRACT_ERROR_MSG_STR" "$PO")
QUIT_STR=$(translate_str "$PO_QUIT_STR" "$PO")
if [ -n "$EXTRACT_GAME_DATA_STR" ] \
|| [ -n "$EXTRACT_ERROR_STR" ] \
|| [ -n "$EXTRACT_ERROR_MSG_STR" ] \
|| [ -n "$QUIT_STR" ]; then
mkdir -p "$DIRNAME/res/values-$CUR_LANG"
TRANSLATION="$DIRNAME/res/values-$CUR_LANG/strings.xml"
echo "<?xml version=\"1.0\" encoding=\"utf-8\"?>" > "$TRANSLATION"
echo "<!--Generated by make.sh-->" >> "$TRANSLATION"
echo "<resources>" >> "$TRANSLATION"
if [ -n "$EXTRACT_GAME_DATA_STR" ] ; then
echo " <string name=\"$PO_EXTRACT_GAME_DATA\">$EXTRACT_GAME_DATA_STR</string>" >> "$TRANSLATION"
fi
if [ -n "$EXTRACT_ERROR_STR" ] ; then
echo " <string name=\"$PO_EXTRACT_ERROR\">$EXTRACT_ERROR_STR</string>" >> "$TRANSLATION"
fi
if [ -n "$EXTRACT_ERROR_MSG_STR" ] ; then
echo " <string name=\"$PO_EXTRACT_ERROR_MSG\">$EXTRACT_ERROR_MSG_STR</string>" >> "$TRANSLATION"
fi
if [ -n "$QUIT_STR" ] ; then
echo " <string name=\"$PO_QUIT\">$QUIT_STR</string>" >> "$TRANSLATION"
fi
echo "</resources>" >> "$TRANSLATION"
fi
}
find "$DIRNAME/assets/data/po" -type f -name '*.po' | while read f; do create_translation "$f"; done
ADAPTIVE_ICON_FILE="$DIRNAME/res/drawable-anydpi-v26/icon.xml"
echo "<?xml version=\"1.0\" encoding=\"utf-8\"?>" > "$ADAPTIVE_ICON_FILE"
echo "<adaptive-icon" >> "$ADAPTIVE_ICON_FILE"
echo " xmlns:android=\"http://schemas.android.com/apk/res/android\">" >> "$ADAPTIVE_ICON_FILE"
echo " <background android:drawable=\"@drawable/icon_bg\" />" >> "$ADAPTIVE_ICON_FILE"
echo " <foreground android:drawable=\"@drawable/icon_fg\" />" >> "$ADAPTIVE_ICON_FILE"
echo "</adaptive-icon>" >> "$ADAPTIVE_ICON_FILE"
sed -i "s/package=\".*\"/package=\"$PACKAGE_NAME\"/g" \
"$DIRNAME/AndroidManifest.xml"
sed -i "s/package org.supertuxkart.*/package $PACKAGE_NAME;/g" \
"$DIRNAME/src/main/java/STKEditText.java"
sed -i "s/import org.supertuxkart.*/import $PACKAGE_NAME.STKInputConnection;/g" \
"$DIRNAME/src/main/java/STKEditText.java"
sed -i "s/package org.supertuxkart.*/package $PACKAGE_NAME;/g" \
"$DIRNAME/src/main/java/STKInputConnection.java"
sed -i "s/import org.supertuxkart.*.STKEditText;/import $PACKAGE_NAME.STKEditText;/g" \
"$DIRNAME/src/main/java/STKInputConnection.java"
sed -i "s/package org.supertuxkart.*/package $PACKAGE_NAME;/g" \
"$DIRNAME/src/main/java/SuperTuxKartActivity.java"
sed -i "s/import org.supertuxkart.*/import $PACKAGE_NAME.STKEditText;/g" \
"$DIRNAME/src/main/java/SuperTuxKartActivity.java"
sed -i "s/versionName=\".*\"/versionName=\"$PROJECT_VERSION\"/g" \
"$DIRNAME/AndroidManifest.xml"
sed -i "s/versionCode=\".*\"/versionCode=\"$PROJECT_CODE\"/g" \
"$DIRNAME/AndroidManifest.xml"
cp -f "$DIRNAME/../lib/sdl2/android-project/app/src/main/java/org/libsdl/app/HIDDevice.java" \
"$DIRNAME/src/main/java/"
cp -f "$DIRNAME/../lib/sdl2/android-project/app/src/main/java/org/libsdl/app/HIDDeviceBLESteamController.java" \
"$DIRNAME/src/main/java/"
cp -f "$DIRNAME/../lib/sdl2/android-project/app/src/main/java/org/libsdl/app/HIDDeviceManager.java" \
"$DIRNAME/src/main/java/"
cp -f "$DIRNAME/../lib/sdl2/android-project/app/src/main/java/org/libsdl/app/HIDDeviceUSB.java" \
"$DIRNAME/src/main/java/"
cp -f "$DIRNAME/../lib/sdl2/android-project/app/src/main/java/org/libsdl/app/SDLActivity.java" \
"$DIRNAME/src/main/java/"
cp -f "$DIRNAME/../lib/sdl2/android-project/app/src/main/java/org/libsdl/app/SDLAudioManager.java" \
"$DIRNAME/src/main/java/"
cp -f "$DIRNAME/../lib/sdl2/android-project/app/src/main/java/org/libsdl/app/SDLControllerManager.java" \
"$DIRNAME/src/main/java/"
cp -f "$DIRNAME/../lib/sdl2/android-project/app/src/main/java/org/libsdl/app/SDL.java" \
"$DIRNAME/src/main/java/"
cp "banner.png" "$DIRNAME/res/drawable/banner.png"
cp "$APP_ICON" "$DIRNAME/res/drawable/icon.png"
convert -scale 48x48 "$APP_ICON" "$DIRNAME/res/drawable-mdpi/icon.png"
convert -scale 72x72 "$APP_ICON" "$DIRNAME/res/drawable-hdpi/icon.png"
convert -scale 96x96 "$APP_ICON" "$DIRNAME/res/drawable-xhdpi/icon.png"
convert -scale 144x144 "$APP_ICON" "$DIRNAME/res/drawable-xxhdpi/icon.png"
convert -scale 192x192 "$APP_ICON" "$DIRNAME/res/drawable-xxxhdpi/icon.png"
#convert -scale 108x108 "$APP_ICON_ADAPTIVE_BG" "$DIRNAME/res/drawable-mdpi/icon_bg.png"
#convert -scale 162x162 "$APP_ICON_ADAPTIVE_BG" "$DIRNAME/res/drawable-hdpi/icon_bg.png"
#convert -scale 216x216 "$APP_ICON_ADAPTIVE_BG" "$DIRNAME/res/drawable-xhdpi/icon_bg.png"
#convert -scale 324x324 "$APP_ICON_ADAPTIVE_BG" "$DIRNAME/res/drawable-xxhdpi/icon_bg.png"
#convert -scale 432x432 "$APP_ICON_ADAPTIVE_BG" "$DIRNAME/res/drawable-xxxhdpi/icon_bg.png"
convert -scale 108x108 xc:"rgba(255,255,255,255)" "$DIRNAME/res/drawable-mdpi/icon_bg.png"
convert -scale 162x162 xc:"rgba(255,255,255,255)" "$DIRNAME/res/drawable-hdpi/icon_bg.png"
convert -scale 216x216 xc:"rgba(255,255,255,255)" "$DIRNAME/res/drawable-xhdpi/icon_bg.png"
convert -scale 324x324 xc:"rgba(255,255,255,255)" "$DIRNAME/res/drawable-xxhdpi/icon_bg.png"
convert -scale 432x432 xc:"rgba(255,255,255,255)" "$DIRNAME/res/drawable-xxxhdpi/icon_bg.png"
convert -scale 108x108 "$APP_ICON_ADAPTIVE_FG" "$DIRNAME/res/drawable-mdpi/icon_fg.png"
convert -scale 162x162 "$APP_ICON_ADAPTIVE_FG" "$DIRNAME/res/drawable-hdpi/icon_fg.png"
convert -scale 216x216 "$APP_ICON_ADAPTIVE_FG" "$DIRNAME/res/drawable-xhdpi/icon_fg.png"
convert -scale 324x324 "$APP_ICON_ADAPTIVE_FG" "$DIRNAME/res/drawable-xxhdpi/icon_fg.png"
convert -scale 432x432 "$APP_ICON_ADAPTIVE_FG" "$DIRNAME/res/drawable-xxxhdpi/icon_fg.png"
if [ -f "/usr/lib/jvm/java-8-openjdk-amd64/bin/java" ]; then
export JAVA_HOME="/usr/lib/jvm/java-8-openjdk-amd64"
export PATH=$JAVA_HOME/bin:$PATH
fi
export ANDROID_HOME="$SDK_PATH"
./gradlew -Pcompile_sdk_version="$COMPILE_SDK_VERSION" \
-Pmin_sdk_version="$STK_MIN_ANDROID_SDK" \
-Ptarget_sdk_version="$STK_TARGET_ANDROID_SDK" \
-Pstorepass="$STK_STOREPASS" \
-Pkeystore="$STK_KEYSTORE" \
-Palias="$STK_ALIAS" \
-Pndk_version="$STK_NDK_VERSION" \
-Pcompile_arch="$COMPILE_ARCH" \
-Pcpu_core="$CPU_CORE" \
$GRADLE_BUILD_TYPE
if [ "$GRADLE_BUILD_TYPE" = "assembleRelease" ]; then
./gradlew -Pcompile_sdk_version="$COMPILE_SDK_VERSION" \
-Pmin_sdk_version="$STK_MIN_ANDROID_SDK" \
-Ptarget_sdk_version="$STK_TARGET_ANDROID_SDK" \
-Pstorepass="$STK_STOREPASS" \
-Pkeystore="$STK_KEYSTORE" \
-Palias="$STK_ALIAS" \
-Pndk_version="$STK_NDK_VERSION" \
-Pcompile_arch="$COMPILE_ARCH" \
-Pcpu_core="$CPU_CORE" \
"bundleRelease"
fi
check_error

376
android/make_deps.sh Executable file
View File

@@ -0,0 +1,376 @@
#!/bin/sh
# Tested with NDK 22.1.7171670
export DIRNAME=$(realpath "$(dirname "$0")")
export NDK_PATH_DEFAULT="$DIRNAME/android-ndk"
export ARCH_ARMV7=arm
export HOST_ARMV7=arm-linux-androideabi
export ARCH_AARCH64=arm64
export HOST_AARCH64=aarch64-linux-android
export ARCH_X86=x86
export HOST_X86=i686-linux-android
export ARCH_X86_64=x86_64
export HOST_X86_64=x86_64-linux-android
# A helper function that checks if error ocurred
check_error()
{
if [ $? -gt 0 ]; then
echo "Error ocurred."
exit
fi
}
# Handle clean command
if [ ! -z "$1" ] && [ "$1" = "clean" ]; then
rm -rf "$DIRNAME/deps-armeabi-v7a"
rm -rf "$DIRNAME/deps-arm64-v8a"
rm -rf "$DIRNAME/deps-x86"
rm -rf "$DIRNAME/deps-x86_64"
exit
fi
if [ -z "$NDK_PATH" ]; then
export NDK_PATH="$NDK_PATH_DEFAULT"
fi
if [ -z "$STK_NDK_VERSION" ]; then
export STK_NDK_VERSION=23.1.7779620
fi
NDK_PATH="$(realpath "$NDK_PATH")/${STK_NDK_VERSION}"
if [ ! -d "$NDK_PATH" ]; then
echo "Error: Couldn't find $NDK_PATH directory. Please create a symlink" \
"to your Android NDK installation in the $NDK_PATH_DEFAULT or set" \
"proper path in the NDK_PATH variable"
exit
fi
export NDK_TOOLCHAIN_PATH="$NDK_PATH/toolchains/llvm/prebuilt/linux-x86_64/bin"
export NDK_SYSROOT="$NDK_PATH/toolchains/llvm/prebuilt/linux-x86_64/sysroot"
export PATH="$NDK_TOOLCHAIN_PATH:$PATH"
build_deps()
{
export ARCH_OPTION=$1
if [ "$ARCH_OPTION" = "armv7" ]; then
ARCH_OPTION="armeabi-v7a"
export ARCH=$ARCH_ARMV7
# Special case
export HOST=armv7a-linux-androideabi16
export HOST_DIR=$HOST_ARMV7
elif [ "$ARCH_OPTION" = "aarch64" ]; then
ARCH_OPTION="arm64-v8a"
export ARCH=$ARCH_AARCH64
export HOST_DIR=$HOST_AARCH64
export HOST="${HOST_DIR}21"
elif [ "$ARCH_OPTION" = "x86" ]; then
export ARCH=$ARCH_X86
export HOST_DIR=$HOST_X86
export HOST="${HOST_DIR}16"
elif [ "$ARCH_OPTION" = "x86_64" ]; then
export ARCH=$ARCH_X86_64
export HOST_DIR=$HOST_X86_64
export HOST="${HOST_DIR}21"
else
echo "Unknown architecture: $1. Possible values are:"\
"all, armv7, aarch64, x86, x86_64"
exit
fi
# Zlib
if [ ! -f "$DIRNAME/deps-$ARCH_OPTION/zlib.stamp" ]; then
echo "Compiling $ARCH_OPTION zlib"
mkdir -p "$DIRNAME/deps-$ARCH_OPTION/zlib"
cp -a -f "$DIRNAME/../lib/zlib/"* "$DIRNAME/deps-$ARCH_OPTION/zlib"
cd "$DIRNAME/deps-$ARCH_OPTION/zlib"
cmake . -DCMAKE_TOOLCHAIN_FILE=../../../cmake/Toolchain-android.cmake \
-DHOST=$HOST -DARCH=$ARCH -DCMAKE_C_FLAGS="-fpic -O3 -g" &&
make -j $(($(nproc) + 1))
check_error
touch "$DIRNAME/deps-$ARCH_OPTION/zlib.stamp"
fi
# Libpng
if [ ! -f "$DIRNAME/deps-$ARCH_OPTION/libpng.stamp" ]; then
echo "Compiling $ARCH_OPTION libpng"
mkdir -p "$DIRNAME/deps-$ARCH_OPTION/libpng"
mkdir -p "$DIRNAME/deps-$ARCH_OPTION/libpng/lib"
cp -a -f "$DIRNAME/../lib/libpng/"* "$DIRNAME/deps-$ARCH_OPTION/libpng"
cd "$DIRNAME/deps-$ARCH_OPTION/libpng"
MLIBRARY="$NDK_SYSROOT/usr/lib/$HOST_DIR/libm.a"
cmake . -DCMAKE_TOOLCHAIN_FILE=../../../cmake/Toolchain-android.cmake \
-DHOST=$HOST -DARCH=$ARCH \
-DZLIB_LIBRARY="$DIRNAME/deps-$ARCH_OPTION/zlib/libz.a" \
-DZLIB_INCLUDE_DIR="$DIRNAME/deps-$ARCH_OPTION/zlib/" \
-DM_LIBRARY="$MLIBRARY" \
-DPNG_TESTS=0 -DCMAKE_C_FLAGS="-fpic -O3 -g" &&
make -j $(($(nproc) + 1))
check_error
touch "$DIRNAME/deps-$ARCH_OPTION/libpng.stamp"
fi
# Freetype bootstrap
if [ ! -f "$DIRNAME/deps-$ARCH_OPTION/freetype_bootstrap.stamp" ]; then
echo "Compiling $ARCH_OPTION freetype bootstrap"
mkdir -p "$DIRNAME/deps-$ARCH_OPTION/freetype/build"
cp -a -f "$DIRNAME/../lib/freetype/"* "$DIRNAME/deps-$ARCH_OPTION/freetype"
cd "$DIRNAME/deps-$ARCH_OPTION/freetype/build"
cmake .. -DCMAKE_TOOLCHAIN_FILE=../../../cmake/Toolchain-android.cmake \
-DHOST=$HOST -DARCH=$ARCH \
-DZLIB_LIBRARY="$DIRNAME/deps-$ARCH_OPTION/zlib/libz.a" \
-DZLIB_INCLUDE_DIR="$DIRNAME/deps-$ARCH_OPTION/zlib/" \
-DPNG_LIBRARY="$DIRNAME/deps-$ARCH_OPTION/libpng/libpng.a" \
-DPNG_PNG_INCLUDE_DIR="$DIRNAME/deps-$ARCH_OPTION/libpng/" \
-DFT_WITH_HARFBUZZ=OFF -DFT_WITH_BZIP2=OFF \
-DFT_WITH_BROTLI=OFF -DFT_WITH_ZLIB=ON -DFT_WITH_PNG=ON \
-DCMAKE_C_FLAGS="-fpic -O3 -g" &&
make -j $(($(nproc) + 1))
check_error
# We need to rebuild freetype after harfbuzz is compiled
touch "$DIRNAME/deps-$ARCH_OPTION/freetype_bootstrap.stamp"
fi
# Harfbuzz
if [ ! -f "$DIRNAME/deps-$ARCH_OPTION/harfbuzz.stamp" ]; then
echo "Compiling $ARCH_OPTION harfbuzz"
mkdir -p "$DIRNAME/deps-$ARCH_OPTION/harfbuzz/build"
cp -a -f "$DIRNAME/../lib/harfbuzz/"* "$DIRNAME/deps-$ARCH_OPTION/harfbuzz"
cd "$DIRNAME/deps-$ARCH_OPTION/harfbuzz/build"
cmake .. -DCMAKE_TOOLCHAIN_FILE=../../../cmake/Toolchain-android.cmake \
-DHOST=$HOST -DARCH=$ARCH -DBUILD_SHARED_LIBS=OFF \
-DFREETYPE_LIBRARY="$DIRNAME/deps-$ARCH_OPTION/freetype/build/libfreetype.a $DIRNAME/deps-$ARCH_OPTION/libpng/libpng.a $DIRNAME/deps-$ARCH_OPTION/zlib/libz.a" \
-DFREETYPE_INCLUDE_DIRS="$DIRNAME/deps-$ARCH_OPTION/freetype/include/" \
-DHB_HAVE_GLIB=OFF -DHB_HAVE_GOBJECT=OFF -DHB_HAVE_ICU=OFF \
-DHB_HAVE_FREETYPE=ON -DHB_BUILD_SUBSET=OFF \
-DCMAKE_C_FLAGS="-fpic -O3 -g" -DCMAKE_CXX_FLAGS="-std=gnu++0x -fpic -O3 -g" &&
make -j $(($(nproc) + 1))
check_error
mkdir -p "$DIRNAME/deps-$ARCH_OPTION/harfbuzz/include/harfbuzz"
cp $DIRNAME/deps-$ARCH_OPTION/harfbuzz/src/*.h "$DIRNAME/deps-$ARCH_OPTION/harfbuzz/include/harfbuzz"
touch "$DIRNAME/deps-$ARCH_OPTION/harfbuzz.stamp"
fi
# Freetype
if [ ! -f "$DIRNAME/deps-$ARCH_OPTION/freetype.stamp" ]; then
echo "Compiling $ARCH_OPTION freetype"
cd "$DIRNAME/deps-$ARCH_OPTION/freetype/build"
rm -rf *
cmake .. -DCMAKE_TOOLCHAIN_FILE=../../../cmake/Toolchain-android.cmake \
-DHOST=$HOST -DARCH=$ARCH \
-DZLIB_LIBRARY="$DIRNAME/deps-$ARCH_OPTION/zlib/libz.a" \
-DZLIB_INCLUDE_DIR="$DIRNAME/deps-$ARCH_OPTION/zlib/" \
-DPNG_LIBRARY="$DIRNAME/deps-$ARCH_OPTION/libpng/libpng.a" \
-DPNG_PNG_INCLUDE_DIR="$DIRNAME/deps-$ARCH_OPTION/libpng/" \
-DHarfBuzz_LIBRARY="$DIRNAME/deps-$ARCH_OPTION/harfbuzz/build/libharfbuzz.a" \
-DHarfBuzz_INCLUDE_DIR="$DIRNAME/deps-$ARCH_OPTION/harfbuzz/src/" \
-DFT_WITH_HARFBUZZ=ON -DFT_WITH_BZIP2=OFF \
-DFT_WITH_BROTLI=OFF -DFT_WITH_ZLIB=ON -DFT_WITH_PNG=ON \
-DCMAKE_C_FLAGS="-fpic -O3 -g" &&
make -j $(($(nproc) + 1))
check_error
touch "$DIRNAME/deps-$ARCH_OPTION/freetype.stamp"
fi
# Openal
if [ ! -f "$DIRNAME/deps-$ARCH_OPTION/openal.stamp" ]; then
echo "Compiling $ARCH_OPTION openal"
mkdir -p "$DIRNAME/deps-$ARCH_OPTION/openal"
cp -a -f "$DIRNAME/../lib/openal/"* "$DIRNAME/deps-$ARCH_OPTION/openal"
cd "$DIRNAME/deps-$ARCH_OPTION/openal"
cmake . -DCMAKE_TOOLCHAIN_FILE=../../../cmake/Toolchain-android.cmake \
-DHOST=$HOST -DARCH=$ARCH -DALSOFT_UTILS=0 -DALSOFT_EXAMPLES=0 \
-DLIBTYPE=STATIC -DOPENSL_LIBRARY="-lOpenSLES" \
-DOPENSL_INCLUDE_DIR="$NDK_SYSROOT/usr/include/SLES/" \
-DOPENSL_ANDROID_INCLUDE_DIR="$NDK_SYSROOT/usr/include/SLES/" \
-DCMAKE_C_FLAGS="-fpic -O3 -g" -DCMAKE_CXX_FLAGS="-fpic -O3 -g" &&
make -j $(($(nproc) + 1))
check_error
touch "$DIRNAME/deps-$ARCH_OPTION/openal.stamp"
fi
# MbedTLS
if [ ! -f "$DIRNAME/deps-$ARCH_OPTION/mbedtls.stamp" ]; then
echo "Compiling $ARCH_OPTION mbedtls"
mkdir -p "$DIRNAME/deps-$ARCH_OPTION/mbedtls"
cp -a -f "$DIRNAME/../lib/mbedtls/"* "$DIRNAME/deps-$ARCH_OPTION/mbedtls"
cd "$DIRNAME/deps-$ARCH_OPTION/mbedtls"
cmake . -DCMAKE_TOOLCHAIN_FILE=../../../cmake/Toolchain-android.cmake \
-DHOST=$HOST -DARCH=$ARCH -DBUILD_SHARED_LIBS=OFF \
-DENABLE_TESTING=OFF -DENABLE_PROGRAMS=OFF \
-DCMAKE_C_FLAGS="-fpic -O3 -g" &&
make -j $(($(nproc) + 1))
check_error
touch "$DIRNAME/deps-$ARCH_OPTION/mbedtls.stamp"
fi
# Curl
if [ ! -f "$DIRNAME/deps-$ARCH_OPTION/curl.stamp" ]; then
echo "Compiling $ARCH_OPTION curl"
mkdir -p "$DIRNAME/deps-$ARCH_OPTION/curl"
cp -a -f "$DIRNAME/../lib/curl/"* "$DIRNAME/deps-$ARCH_OPTION/curl"
cd "$DIRNAME/deps-$ARCH_OPTION/curl"
cmake . -DCMAKE_TOOLCHAIN_FILE=../../../cmake/Toolchain-android.cmake \
-DHOST=$HOST -DARCH=$ARCH -DBUILD_SHARED_LIBS=OFF \
-DZLIB_LIBRARY="$DIRNAME/deps-$ARCH_OPTION/zlib/libz.a" \
-DZLIB_INCLUDE_DIR="$DIRNAME/deps-$ARCH_OPTION/zlib/" \
-DMBEDCRYPTO_LIBRARY="$DIRNAME/deps-$ARCH_OPTION/mbedtls/library/libmbedcrypto.a" \
-DMBEDTLS_LIBRARY="$DIRNAME/deps-$ARCH_OPTION/mbedtls/library/libmbedtls.a" \
-DMBEDX509_LIBRARY="$DIRNAME/deps-$ARCH_OPTION/mbedtls/library/libmbedx509.a" \
-DMBEDTLS_INCLUDE_DIRS="$DIRNAME/deps-$ARCH_OPTION/mbedtls/include/" \
-DBUILD_TESTING=OFF -DBUILD_CURL_EXE=OFF \
-DCURL_USE_MBEDTLS=ON -DUSE_ZLIB=ON -DCURL_USE_OPENSSL=OFF \
-DCURL_USE_LIBSSH=OFF -DCURL_USE_LIBSSH2=OFF \
-DCURL_USE_GSSAPI=OFF -DUSE_NGHTTP2=OFF -DUSE_QUICHE=OFF \
-DHTTP_ONLY=ON -DCURL_CA_BUNDLE=none -DCURL_CA_PATH=none \
-DENABLE_THREADED_RESOLVER=ON -DCMAKE_C_FLAGS="-fpic -O3 -g" &&
make -j $(($(nproc) + 1))
check_error
touch "$DIRNAME/deps-$ARCH_OPTION/curl.stamp"
fi
# Libjpeg
if [ ! -f "$DIRNAME/deps-$ARCH_OPTION/libjpeg.stamp" ]; then
echo "Compiling $ARCH_OPTION libjpeg"
mkdir -p "$DIRNAME/deps-$ARCH_OPTION/libjpeg"
cp -a -f "$DIRNAME/../lib/libjpeg/"* "$DIRNAME/deps-$ARCH_OPTION/libjpeg"
cd "$DIRNAME/deps-$ARCH_OPTION/libjpeg"
cmake . -DCMAKE_TOOLCHAIN_FILE=../../../cmake/Toolchain-android.cmake \
-DHOST=$HOST -DARCH=$ARCH -DCMAKE_C_FLAGS="-fpic -O3 -g" &&
make -j $(($(nproc) + 1))
check_error
touch "$DIRNAME/deps-$ARCH_OPTION/libjpeg.stamp"
fi
# Libogg
if [ ! -f "$DIRNAME/deps-$ARCH_OPTION/libogg.stamp" ]; then
echo "Compiling $ARCH_OPTION libogg"
mkdir -p "$DIRNAME/deps-$ARCH_OPTION/libogg"
cp -a -f "$DIRNAME/../lib/libogg/"* "$DIRNAME/deps-$ARCH_OPTION/libogg"
cd "$DIRNAME/deps-$ARCH_OPTION/libogg"
cmake . -DCMAKE_TOOLCHAIN_FILE=../../../cmake/Toolchain-android.cmake \
-DHOST=$HOST -DARCH=$ARCH -DCMAKE_C_FLAGS="-fpic -O3 -g" &&
make -j $(($(nproc) + 1))
check_error
touch "$DIRNAME/deps-$ARCH_OPTION/libogg.stamp"
fi
# Libvorbis
if [ ! -f "$DIRNAME/deps-$ARCH_OPTION/libvorbis.stamp" ]; then
echo "Compiling $ARCH_OPTION libvorbis"
mkdir -p "$DIRNAME/deps-$ARCH_OPTION/libvorbis"
cp -a -f "$DIRNAME/../lib/libvorbis/"* "$DIRNAME/deps-$ARCH_OPTION/libvorbis"
cd "$DIRNAME/deps-$ARCH_OPTION/libvorbis"
cmake . -DCMAKE_TOOLCHAIN_FILE=../../../cmake/Toolchain-android.cmake \
-DHOST=$HOST -DARCH=$ARCH -DCMAKE_C_FLAGS="-fpic -O3 -g" \
-DOGG_LIBRARY="$DIRNAME/deps-$ARCH_OPTION/libogg/libogg.a" \
-DOGG_INCLUDE_DIR="$DIRNAME/deps-$ARCH_OPTION/libogg/include" &&
make -j $(($(nproc) + 1))
check_error
touch "$DIRNAME/deps-$ARCH_OPTION/libvorbis.stamp"
fi
# Shaderc
if [ ! -f "$DIRNAME/deps-$ARCH_OPTION/shaderc.stamp" ]; then
echo "Compiling $ARCH_OPTION shaderc"
mkdir -p "$DIRNAME/deps-$ARCH_OPTION/shaderc"
cp -a -f "$DIRNAME/../lib/shaderc/"* "$DIRNAME/deps-$ARCH_OPTION/shaderc"
cd "$DIRNAME/deps-$ARCH_OPTION/shaderc"
cmake . -DCMAKE_TOOLCHAIN_FILE=../../../cmake/Toolchain-android.cmake \
-DHOST=$HOST -DARCH=$ARCH -DCMAKE_C_FLAGS="-fpic -O3" \
-DCMAKE_CXX_FLAGS="-fpic -O3" -DSHADERC_SKIP_INSTALL=1 \
-DCMAKE_BUILD_TYPE=Release \
-DSHADERC_SKIP_TESTS=1 -DSHADERC_SKIP_EXAMPLES=1 \
-DSPIRV_HEADERS_SKIP_INSTALL=1 -DSPIRV_HEADERS_SKIP_EXAMPLES=1 \
-DSKIP_SPIRV_TOOLS_INSTALL=1 -DSPIRV_SKIP_TESTS=1 \
-DSPIRV_SKIP_EXECUTABLES=1 -DENABLE_GLSLANG_BINARIES=0 \
-DENABLE_CTEST=0 &&
make -j $(($(nproc) + 1))
# Strip debug symbol to make app bundle smaller
llvm-strip --strip-debug "$DIRNAME/deps-$ARCH_OPTION/shaderc/libshaderc/libshaderc_combined.a"
check_error
touch "$DIRNAME/deps-$ARCH_OPTION/shaderc.stamp"
fi
# Libsquish
if [ ! -f "$DIRNAME/deps-$ARCH_OPTION/libsquish.stamp" ]; then
echo "Compiling $ARCH_OPTION libsquish"
mkdir -p "$DIRNAME/deps-$ARCH_OPTION/libsquish"
cp -a -f "$DIRNAME/../lib/libsquish/"* "$DIRNAME/deps-$ARCH_OPTION/libsquish"
cd "$DIRNAME/deps-$ARCH_OPTION/libsquish"
if [[ "$ARCH_OPTION" = "x86" || "$ARCH_OPTION" = "x86_64" ]]; then
cmake . -DCMAKE_TOOLCHAIN_FILE=../../../cmake/Toolchain-android.cmake \
-DHOST=$HOST -DARCH=$ARCH \
-DCMAKE_C_FLAGS="-fpic -O3 -g -DSQUISH_USE_SSE=2 -msse2" \
-DCMAKE_CXX_FLAGS="-fpic -O3 -g -DSQUISH_USE_SSE=2 -msse2"
else
cmake . -DCMAKE_TOOLCHAIN_FILE=../../../cmake/Toolchain-android.cmake \
-DHOST=$HOST -DARCH=$ARCH -DCMAKE_C_FLAGS="-fpic -O3 -g" \
-DCMAKE_CXX_FLAGS="-fpic -O3 -g"
fi
make -j $(($(nproc) + 1))
check_error
touch "$DIRNAME/deps-$ARCH_OPTION/libsquish.stamp"
fi
# ASTC-encoder
if [ ! -f "$DIRNAME/deps-$ARCH_OPTION/astc-encoder.stamp" ]; then
echo "Compiling $ARCH_OPTION astc-encoder"
mkdir -p "$DIRNAME/deps-$ARCH_OPTION/astc-encoder"
cp -a -f "$DIRNAME/../lib/astc-encoder/"* "$DIRNAME/deps-$ARCH_OPTION/astc-encoder"
cd "$DIRNAME/deps-$ARCH_OPTION/astc-encoder"
sed -i '/-Werror/d' Source/cmake_core.cmake
sed -i 's|${ASTC_TARGET}-static|astcenc|g' Source/cmake_core.cmake
if [ "$ARCH_OPTION" = "armeabi-v7a" ]; then
cmake . -DCMAKE_TOOLCHAIN_FILE=../../../cmake/Toolchain-android.cmake \
-DHOST=$HOST -DARCH=$ARCH -DSTK_ARM_NEON=ON \
-DCMAKE_C_FLAGS="-fpic -O3 -g -mfpu=neon" \
-DCMAKE_CXX_FLAGS="-fpic -O3 -g -mfpu=neon" \
-DNO_INVARIANCE=ON -DCLI=OFF
elif [ "$ARCH_OPTION" = "arm64-v8a" ]; then
cmake . -DCMAKE_TOOLCHAIN_FILE=../../../cmake/Toolchain-android.cmake \
-DHOST=$HOST -DARCH=$ARCH -DCMAKE_C_FLAGS="-fpic -O3 -g" \
-DCMAKE_CXX_FLAGS="-fpic -O3 -g" \
-DISA_NEON=ON -DNO_INVARIANCE=ON -DCLI=OFF
elif [ "$ARCH_OPTION" = "x86" ]; then
cmake . -DCMAKE_TOOLCHAIN_FILE=../../../cmake/Toolchain-android.cmake \
-DHOST=$HOST -DARCH=$ARCH -DCMAKE_C_FLAGS="-fpic -O3 -g" \
-DCMAKE_CXX_FLAGS="-fpic -O3 -g" \
-DISA_SSE2=ON -DNO_INVARIANCE=ON -DCLI=OFF
else
cmake . -DCMAKE_TOOLCHAIN_FILE=../../../cmake/Toolchain-android.cmake \
-DHOST=$HOST -DARCH=$ARCH -DCMAKE_C_FLAGS="-fpic -O3 -g" \
-DCMAKE_CXX_FLAGS="-fpic -O3 -g" \
-DISA_SSE41=ON -DNO_INVARIANCE=ON -DCLI=OFF
fi
make -j $(($(nproc) + 1))
check_error
touch "$DIRNAME/deps-$ARCH_OPTION/astc-encoder.stamp"
fi
}
if [ -z "$COMPILE_ARCH" ] || [ "$COMPILE_ARCH" = "all" ]; then
build_deps armv7
build_deps aarch64
build_deps x86
build_deps x86_64
else
build_deps "$COMPILE_ARCH"
fi

View File

@@ -0,0 +1,298 @@
package org.supertuxkart.stk_dbg;
import org.libsdl.app.SDLActivity;
import org.supertuxkart.stk_dbg.STKInputConnection;
import android.content.Context;
import android.text.InputType;
import android.view.inputmethod.EditorInfo;
import android.view.inputmethod.InputConnection;
import android.view.inputmethod.InputMethodManager;
import android.view.KeyEvent;
import android.view.View;
import android.widget.EditText;
import android.widget.TextView;
// We need to extend EditText instead of view to allow copying to our STK
// editbox
public class STKEditText extends EditText
{
private int m_composing_start;
private int m_composing_end;
/* Used to prevent copying text to non focused widget in STK. */
private int m_stk_widget_id;
private STKInputConnection m_stk_input_connection;
/* Used to avoid infinite calling updateSTKEditBox if setText currently
* by jni or clearing text when out focus. */
private boolean m_from_stk_editbox;
// ------------------------------------------------------------------------
private native static void editText2STKEditbox(int widget_id,
String full_text, int start,
int end,
int composing_start,
int composing_end);
// ------------------------------------------------------------------------
private native static void handleActionNext(int widget_id);
// ------------------------------------------------------------------------
private native static void handleLeftRight(boolean left, int widget_id);
// ------------------------------------------------------------------------
public STKEditText(Context context)
{
super(context);
setInputType(InputType.TYPE_CLASS_TEXT);
setFocusableInTouchMode(true);
m_composing_start = 0;
m_composing_end = 0;
m_stk_widget_id = -1;
m_from_stk_editbox = false;
m_stk_input_connection = null;
setOnEditorActionListener(new EditText.OnEditorActionListener()
{
@Override
public boolean onEditorAction(TextView v, int action_id,
KeyEvent event)
{
if (action_id == EditorInfo.IME_ACTION_NEXT)
{
handleActionNext(m_stk_widget_id);
// STK will handle the closing of the screen keyboard
return true;
}
return false;
}
});
setOnKeyListener(new EditText.OnKeyListener()
{
@Override
public boolean onKey(View v, int keyCode, KeyEvent event)
{
// Up or down pressed, leave focus
if (keyCode == KeyEvent.KEYCODE_DPAD_UP ||
keyCode == KeyEvent.KEYCODE_DPAD_DOWN)
{
if (event.getAction() == KeyEvent.ACTION_DOWN)
{
beforeHideKeyboard(true/*clear_text*/);
SDLActivity.onNativeKeyDown(keyCode);
SDLActivity.onNativeKeyUp(keyCode);
}
return true;
}
// For left or right let STK decides
else if (keyCode == KeyEvent.KEYCODE_DPAD_LEFT &&
getSelectionStart() == 0)
{
if (event.getAction() == KeyEvent.ACTION_DOWN)
{
beforeHideKeyboard(true/*clear_text*/);
handleLeftRight(true, m_stk_widget_id);
}
else
updateSTKEditBox();
return true;
}
else if (keyCode == KeyEvent.KEYCODE_DPAD_RIGHT &&
getSelectionEnd() == getText().length())
{
if (event.getAction() == KeyEvent.ACTION_DOWN)
{
beforeHideKeyboard(true/*clear_text*/);
handleLeftRight(false, m_stk_widget_id);
}
else
updateSTKEditBox();
return true;
}
else if (keyCode == KeyEvent.KEYCODE_ENTER)
{
if (event.getAction() == KeyEvent.ACTION_DOWN)
handleActionNext(m_stk_widget_id);
return true;
}
// Requires for hardware key like "Ctrl-a" so it will select
// all text in stk edit box
updateSTKEditBox();
return false;
}
});
}
// ------------------------------------------------------------------------
@Override
public InputConnection onCreateInputConnection(EditorInfo out_attrs)
{
if (m_stk_input_connection == null)
{
m_stk_input_connection = new STKInputConnection(
super.onCreateInputConnection(out_attrs), this);
}
out_attrs.actionLabel = null;
out_attrs.inputType = getInputType();
out_attrs.imeOptions = EditorInfo.IME_ACTION_NEXT |
EditorInfo.IME_FLAG_NO_FULLSCREEN |
EditorInfo.IME_FLAG_NO_EXTRACT_UI;
return m_stk_input_connection;
}
// ------------------------------------------------------------------------
@Override
public boolean onCheckIsTextEditor() { return true; }
// ------------------------------------------------------------------------
@Override
public boolean onKeyPreIme(int key_code, KeyEvent event)
{
// Always remove the focus on STKEdit when pressing back button in
// phone, which hideSoftInputFromWindow is called by java itself
if (event.getKeyCode() == KeyEvent.KEYCODE_BACK &&
event.getAction() == KeyEvent.ACTION_UP)
beforeHideKeyboard(false/*clear_text*/);
return false;
}
// ------------------------------------------------------------------------
public void setComposingRegion(int start, int end)
{
// From doc of InputConnectionWrapper, it says:
// Editor authors, be ready to accept a start that is greater than end.
if (start != end && start > end)
{
m_composing_end = start;
m_composing_start = end;
}
else
{
m_composing_start = start;
m_composing_end = end;
}
}
// ------------------------------------------------------------------------
public void updateSTKEditBox()
{
if (!isFocused() || m_from_stk_editbox)
return;
editText2STKEditbox(m_stk_widget_id, getText().toString(),
getSelectionStart(), getSelectionEnd(), m_composing_start,
m_composing_end);
}
// ------------------------------------------------------------------------
public void beforeHideKeyboard(final boolean clear_text)
{
try
{
if (clear_text)
{
// No need updating stk editbox on clearing text when out focus
m_from_stk_editbox = true;
{
super.clearComposingText();
super.getText().clear();
}
m_from_stk_editbox = false;
}
clearFocus();
setVisibility(View.GONE);
SDLActivity.reFocusAfterSTKEditText();
}
catch (Exception e)
{
m_from_stk_editbox = false;
}
}
// ------------------------------------------------------------------------
/* Called by STK with JNI to set this view with new text (like user focus
* a new editbox in stk, or change cursor / selection). */
public void setTextFromSTK(int widget_id, final String text,
int selection_start, int selection_end)
{
m_stk_widget_id = widget_id;
// Avoid sending the newly set text back to STK at the same time
m_from_stk_editbox = true;
try
{
String old_text = getText().toString();
boolean text_changed = !text.equals(old_text);
if (text_changed)
{
super.clearComposingText();
super.setText(text);
m_stk_input_connection.setComposingRegion(0, 0);
}
if (selection_start != selection_end &&
selection_start > selection_end)
{
int temp = selection_end;
selection_end = selection_start;
selection_start = temp;
}
if (selection_start < 0)
selection_start = 0;
if (selection_end > length())
selection_end = length();
if (text_changed)
{
InputMethodManager imm = (InputMethodManager)getContext()
.getSystemService(Context.INPUT_METHOD_SERVICE);
if (imm != null)
{
// From google, You should call this when the text within
// your view changes outside of the normal input method or
// key input flow, such as when an application calls
// TextView.setText().
imm.restartInput(this);
}
}
setSelection(selection_start, selection_end);
}
catch (Exception e)
{
m_from_stk_editbox = false;
}
m_from_stk_editbox = false;
}
// ------------------------------------------------------------------------
public STKInputConnection getSTKInputConnection()
{ return m_stk_input_connection; }
// ------------------------------------------------------------------------
public void configType(final int type)
{
int it = InputType.TYPE_CLASS_TEXT;
// Check text_box_widget.hpp for definition
switch (type)
{
case 0:
{
it = InputType.TYPE_CLASS_TEXT;
break;
}
case 1:
{
it = InputType.TYPE_CLASS_TEXT |
InputType.TYPE_TEXT_FLAG_CAP_SENTENCES;
break;
}
case 2:
{
it = InputType.TYPE_TEXT_VARIATION_PASSWORD;
break;
}
case 3:
{
it = InputType.TYPE_CLASS_NUMBER;
break;
}
case 4:
{
it = InputType.TYPE_TEXT_VARIATION_EMAIL_ADDRESS;
break;
}
default:
break;
}
if (it != getInputType())
setInputType(it);
}
}

View File

@@ -0,0 +1,68 @@
package org.supertuxkart.stk_dbg;
import org.supertuxkart.stk_dbg.STKEditText;
import android.view.inputmethod.InputConnection;
import android.view.inputmethod.InputConnectionWrapper;
public class STKInputConnection extends InputConnectionWrapper
{
/* The global edittext which will be "copied" to the current focused STK
* box. */
final private STKEditText m_stk_edittext;
// ------------------------------------------------------------------------
public STKInputConnection(InputConnection target, STKEditText stk_edittext)
{
super(target, true/*mutable*/);
m_stk_edittext = stk_edittext;
}
// ------------------------------------------------------------------------
@Override
public boolean setComposingText(CharSequence text, int new_cursor_position)
{
boolean ret = super.setComposingText(text, new_cursor_position);
String composing_text = text.toString();
String new_text = m_stk_edittext.getText().toString();
int composing_start = 0;
int composing_end = 0;
// Test last char
if (!composing_text.isEmpty() && !new_text.isEmpty() &&
composing_text.charAt(composing_text.length() - 1) ==
new_text.charAt(new_text.length() - 1))
{
composing_start = new_text.length() - composing_text.length();
composing_end = composing_start + composing_text.length();
}
m_stk_edittext.setComposingRegion(composing_start, composing_end);
m_stk_edittext.updateSTKEditBox();
return ret;
}
// ------------------------------------------------------------------------
@Override
public boolean finishComposingText()
{
m_stk_edittext.setComposingRegion(0, 0);
m_stk_edittext.updateSTKEditBox();
return super.finishComposingText();
}
// ------------------------------------------------------------------------
@Override
public boolean setComposingRegion(int start, int end)
{
m_stk_edittext.setComposingRegion(start, end);
m_stk_edittext.updateSTKEditBox();
return super.setComposingRegion(start, end);
}
// ------------------------------------------------------------------------
@Override
public boolean commitText(CharSequence text, int new_cursor_position)
{
// Usually only a single character, so dismiss composing region
boolean ret = super.commitText(text, new_cursor_position);
m_stk_edittext.setComposingRegion(0, 0);
m_stk_edittext.updateSTKEditBox();
return ret;
}
}

View File

@@ -0,0 +1,528 @@
package org.supertuxkart.stk_dbg;
import org.supertuxkart.stk_dbg.STKEditText;
import org.libsdl.app.SDLActivity;
import org.libsdl.app.SDL;
import android.animation.Animator;
import android.animation.AnimatorListenerAdapter;
import android.app.AlertDialog;
import android.app.AlertDialog.Builder;
import android.content.ActivityNotFoundException;
import android.content.Context;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.pm.PackageManager;
import android.content.res.AssetManager;
import android.content.res.Configuration;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;
import android.graphics.Color;
import android.graphics.drawable.BitmapDrawable;
import android.graphics.Rect;
import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.os.Handler;
import android.os.Process;
import android.text.Editable;
import android.text.TextWatcher;
import android.view.Display;
import android.view.DisplayCutout;
import android.view.Gravity;
import android.view.inputmethod.InputMethodManager;
import android.view.KeyEvent;
import android.view.LayoutInflater;
import android.view.MotionEvent;
import android.view.ViewGroup;
import android.view.ViewGroup.MarginLayoutParams;
import android.view.ViewTreeObserver.OnGlobalLayoutListener;
import android.view.View;
import android.view.Window;
import android.view.WindowInsets;
import android.view.WindowManager;
import android.view.WindowManager.LayoutParams;
import android.widget.FrameLayout;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.ProgressBar;
import android.widget.TextView;
import android.util.DisplayMetrics;
import java.io.InputStream;
import java.util.concurrent.atomic.AtomicInteger;
import java.util.Set;
import org.minidns.hla.DnssecResolverApi;
import org.minidns.hla.ResolverResult;
import org.minidns.record.SRV;
import org.minidns.record.TXT;
public class SuperTuxKartActivity extends SDLActivity
{
private AlertDialog m_progress_dialog;
private ProgressBar m_progress_bar;
private ImageView m_splash_screen;
private STKEditText m_stk_edittext;
private int m_bottom_y;
private int m_intial_orientation;
private float m_top_padding;
private float m_bottom_padding;
private float m_left_padding;
private float m_right_padding;
private AtomicInteger m_keyboard_height;
private AtomicInteger m_moved_height;
// ------------------------------------------------------------------------
public native static void debugMsg(String msg);
// ------------------------------------------------------------------------
private native static void handlePadding(boolean val);
// ------------------------------------------------------------------------
private native static void saveKeyboardHeight(int height);
// ------------------------------------------------------------------------
private native static void saveMovedHeight(int height);
// ------------------------------------------------------------------------
private native static void addDNSSrvRecords(String name, int weight);
// ------------------------------------------------------------------------
private native static void pauseRenderingJNI();
// ------------------------------------------------------------------------
private void showExtractProgressPrivate()
{
WindowManager wm =
(WindowManager)getSystemService(Context.WINDOW_SERVICE);
DisplayMetrics display_metrics = new DisplayMetrics();
wm.getDefaultDisplay().getMetrics(display_metrics);
int padding = display_metrics.widthPixels / 64;
LinearLayout ll = new LinearLayout(this);
ll.setOrientation(LinearLayout.VERTICAL);
ll.setPadding(padding, padding, padding, padding);
ll.setGravity(Gravity.CENTER);
LinearLayout.LayoutParams ll_param = new LinearLayout.LayoutParams(
ViewGroup.LayoutParams.WRAP_CONTENT,
ViewGroup.LayoutParams.WRAP_CONTENT);
ll_param.gravity = Gravity.CENTER;
TextView tv = new TextView(this);
// From values strings.xml which is generated by make.sh
tv.setText(getString(R.string.po_extract_game_data));
tv.setLayoutParams(ll_param);
ll_param = new LinearLayout.LayoutParams(
display_metrics.widthPixels,
LinearLayout.LayoutParams.WRAP_CONTENT);
ll_param.gravity = Gravity.CENTER;
ll.setLayoutParams(ll_param);
m_progress_bar = new ProgressBar(this, null,
android.R.attr.progressBarStyleHorizontal);
m_progress_bar.setIndeterminate(false);
m_progress_bar.setPadding(0, padding, 0, padding);
m_progress_bar.setLayoutParams(ll_param);
ll.addView(tv);
ll.addView(m_progress_bar);
AlertDialog.Builder builder = new AlertDialog.Builder(this);
builder.setCancelable(false);
builder.setView(ll);
m_progress_dialog = builder.create();
m_progress_dialog.show();
Window window = m_progress_dialog.getWindow();
if (window != null)
{
WindowManager.LayoutParams layout_params =
new WindowManager.LayoutParams();
layout_params.copyFrom(
m_progress_dialog.getWindow().getAttributes());
layout_params.width = WindowManager.LayoutParams.MATCH_PARENT;
layout_params.height = LinearLayout.LayoutParams.WRAP_CONTENT;
m_progress_dialog.getWindow().setAttributes(layout_params);
}
}
// ------------------------------------------------------------------------
private void hideKeyboardNative(final boolean clear_text)
{
if (m_stk_edittext == null)
return;
m_stk_edittext.beforeHideKeyboard(clear_text);
InputMethodManager imm = (InputMethodManager)
getSystemService(Context.INPUT_METHOD_SERVICE);
if (imm == null)
return;
imm.hideSoftInputFromWindow(m_stk_edittext.getWindowToken(), 0);
}
// ------------------------------------------------------------------------
private void createSTKEditText()
{
FrameLayout.LayoutParams params = new FrameLayout.LayoutParams(
FrameLayout.LayoutParams.WRAP_CONTENT,
FrameLayout.LayoutParams.WRAP_CONTENT);
// We move the dummy edittext out of the android screen because we draw
// our own manually
params.setMargins(0, -100000, 1, -100010);
m_stk_edittext = new STKEditText(this);
// For some copy-and-paste text are not done by commitText in
// STKInputConnection, so we need an extra watcher
m_stk_edittext.addTextChangedListener(new TextWatcher()
{
@Override
public void onTextChanged(CharSequence s, int start, int before,
int count) {}
@Override
public void beforeTextChanged(CharSequence s, int start, int count,
int after) {}
@Override
public void afterTextChanged(Editable edit)
{
if (m_stk_edittext != null)
m_stk_edittext.updateSTKEditBox();
}
});
addContentView(m_stk_edittext, params);
// Only focus it and make visible when soft keybord is opened
m_stk_edittext.setVisibility(View.GONE);
}
// ------------------------------------------------------------------------
@Override
public void onCreate(Bundle instance)
{
super.onCreate(instance);
m_keyboard_height = new AtomicInteger();
m_moved_height = new AtomicInteger();
m_progress_dialog = null;
m_progress_bar = null;
m_splash_screen = null;
m_bottom_y = m_intial_orientation = 0;
m_top_padding = m_bottom_padding = m_left_padding = m_right_padding =
0.0f;
final View root = getWindow().getDecorView().findViewById(
android.R.id.content);
root.getViewTreeObserver().addOnGlobalLayoutListener(new
OnGlobalLayoutListener()
{
@Override
public void onGlobalLayout()
{
Rect r = new Rect();
root.getWindowVisibleDisplayFrame(r);
int screen_height = root.getRootView().getHeight();
int keyboard_height = screen_height - (r.bottom);
m_keyboard_height.set(keyboard_height);
int moved_height = 0;
int margin = screen_height - m_bottom_y;
if (keyboard_height > margin)
moved_height = -keyboard_height + margin;
m_moved_height.set(-moved_height);
SDLActivity.moveView(moved_height);
}
});
InputStream istr = null;
try
{
LinearLayout ll = new LinearLayout(this);
LinearLayout.LayoutParams ll_param = new LinearLayout.LayoutParams(
ViewGroup.LayoutParams.MATCH_PARENT,
ViewGroup.LayoutParams.MATCH_PARENT);
ll.setLayoutParams(ll_param);
WindowManager wm =
(WindowManager)getSystemService(Context.WINDOW_SERVICE);
DisplayMetrics display_metrics = new DisplayMetrics();
wm.getDefaultDisplay().getMetrics(display_metrics);
Bitmap.Config conf = Bitmap.Config.ARGB_8888;
int w = display_metrics.widthPixels;
int h = display_metrics.heightPixels;
Bitmap scaled = Bitmap.createBitmap(w, h, conf);
Canvas canvas = new Canvas(scaled);
istr = getAssets().open("data/gui/icons/logo.png");
Bitmap logo = BitmapFactory.decodeStream(istr);
Rect src = new Rect(0, 0, logo.getWidth(), logo.getHeight());
// STK logo is a square
int target_size = w;
if (target_size > h)
target_size = h;
target_size /= 2;
Rect dest = new Rect(w / 2 - target_size / 2,
h / 2 - target_size / 2,
w / 2 - target_size / 2 + target_size,
h / 2 - target_size / 2 + target_size);
canvas.drawBitmap(logo, src, dest, null);
m_splash_screen = new ImageView(this);
m_splash_screen.setBackgroundColor(Color.argb(255, 168, 168, 168));
m_splash_screen.setImageDrawable(new BitmapDrawable(getResources(),
scaled));
addContentView(m_splash_screen, ll_param);
}
catch (Exception e) {}
finally
{
try
{
if (istr != null)
istr.close();
}
catch(Exception e) {}
}
}
// ------------------------------------------------------------------------
@Override
public void onStart()
{
super.onStart();
m_keyboard_height.set(0);
m_moved_height.set(0);
}
// ------------------------------------------------------------------------
@Override
public void onPause()
{
super.onPause();
hideKeyboardNative(false/*clear_text*/);
if (SDLActivity.mSDLThread != null)
pauseRenderingJNI();
}
// ------------------------------------------------------------------------
/* SDL manually dlopen main to allow unload after main thread exit. */
protected String[] getLibraries()
{
return new String[]{ "SDL2" };
}
// ------------------------------------------------------------------------
protected String getMainSharedObject()
{
return getContext().getApplicationInfo().nativeLibraryDir + "/libmain.so";
}
// ------------------------------------------------------------------------
public void showKeyboard(final int type, final int y)
{
final Context context = this;
// Need to run in ui thread as it access the view m_stk_edittext
runOnUiThread(new Runnable()
{
@Override
public void run()
{
m_bottom_y = y;
InputMethodManager imm = (InputMethodManager)
getSystemService(Context.INPUT_METHOD_SERVICE);
if (imm == null)
return;
if (m_stk_edittext == null)
createSTKEditText();
m_stk_edittext.configType(type);
m_stk_edittext.setVisibility(View.VISIBLE);
m_stk_edittext.requestFocus();
imm.showSoftInput(m_stk_edittext,
InputMethodManager.SHOW_FORCED);
}
});
}
// ------------------------------------------------------------------------
/* Called by STK in JNI. */
public void hideKeyboard(final boolean clear_text)
{
runOnUiThread(new Runnable()
{
@Override
public void run()
{
m_bottom_y = 0;
hideKeyboardNative(clear_text);
}
});
}
// ------------------------------------------------------------------------
/* Called by STK in JNI. */
public void fromSTKEditBox(final int widget_id, final String text,
final int selection_start,
final int selection_end, final int type)
{
runOnUiThread(new Runnable()
{
@Override
public void run()
{
if (m_stk_edittext == null)
createSTKEditText();
m_stk_edittext.configType(type);
m_stk_edittext.setTextFromSTK(widget_id, text, selection_start,
selection_end);
}
});
}
// ------------------------------------------------------------------------
public String[] getDNSTxtRecords(String domain)
{
try
{
ResolverResult<TXT> txts =
DnssecResolverApi.INSTANCE.resolve(domain, TXT.class);
Set<TXT> ans = txts.getAnswers();
String[] result = new String[ans.size()];
int i = 0;
for (TXT t : ans)
result[i++] = t.getText();
return result;
}
catch (Exception e)
{
e.printStackTrace();
return new String[0];
}
}
// ------------------------------------------------------------------------
public void getDNSSrvRecords(String domain)
{
try
{
ResolverResult<SRV> srvs =
DnssecResolverApi.INSTANCE.resolve(domain, SRV.class);
Set<SRV> ans = srvs.getAnswers();
for (SRV s : ans)
addDNSSrvRecords(s.target.toString() + ":" + s.port, s.weight);
}
catch (Exception e)
{
e.printStackTrace();
}
}
// ------------------------------------------------------------------------
public boolean isHardwareKeyboardConnected()
{
return getResources().getConfiguration()
.keyboard == Configuration.KEYBOARD_QWERTY;
}
// ------------------------------------------------------------------------
public int getScreenSize()
{
return getResources().getConfiguration().screenLayout &
Configuration.SCREENLAYOUT_SIZE_MASK;
}
// ------------------------------------------------------------------------
public float getTopPadding() { return m_top_padding; }
// ------------------------------------------------------------------------
public float getBottomPadding() { return m_bottom_padding; }
// ------------------------------------------------------------------------
public float getLeftPadding() { return m_left_padding; }
// ------------------------------------------------------------------------
public float getRightPadding() { return m_right_padding; }
// ------------------------------------------------------------------------
public int getInitialOrientation() { return m_intial_orientation; }
// ------------------------------------------------------------------------
public void showExtractProgress(final int progress)
{
runOnUiThread(new Runnable()
{
@Override
public void run()
{
if (progress == -1)
{
if (m_progress_dialog != null)
{
m_progress_dialog.dismiss();
m_progress_dialog = null;
m_progress_bar = null;
}
AlertDialog.Builder error =
new AlertDialog.Builder(SDL.getContext());
error.setMessage(getString(R.string.po_extract_error_msg));
error.setTitle(getString(R.string.po_extract_error));
error.setPositiveButton(getString(R.string.po_quit),
new DialogInterface.OnClickListener()
{
@Override
public void onClick(DialogInterface dialog,
int id)
{
android.os.Process.killProcess(
android.os.Process.myPid());
}
});
error.setCancelable(false);
error.create().show();
return;
}
if (progress == 0 && m_progress_dialog == null)
showExtractProgressPrivate();
else if (progress == 100 && m_progress_dialog != null)
{
m_progress_dialog.dismiss();
m_progress_dialog = null;
m_progress_bar = null;
}
else if (m_progress_bar != null &&
m_progress_bar.getProgress() != progress)
{
m_progress_bar.setProgress(progress);
}
}
});
}
// ------------------------------------------------------------------------
public void hideSplashScreen()
{
if (m_splash_screen != null)
{
m_splash_screen.animate().setDuration(200).alpha(0).setListener(
new AnimatorListenerAdapter()
{
@Override
public void onAnimationEnd(Animator animation)
{
if (m_splash_screen.getParent() instanceof ViewGroup)
{
ViewGroup view = (ViewGroup)m_splash_screen.getParent();
view.removeView(m_splash_screen);
m_splash_screen = null;
}
}
});
}
}
// ------------------------------------------------------------------------
@Override
public void onAttachedToWindow()
{
super.onAttachedToWindow();
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q)
{
DisplayCutout dc = getWindow().getDecorView().getRootWindowInsets()
.getDisplayCutout();
if (dc != null)
{
m_top_padding = (float)dc.getBoundingRectTop().height();
m_bottom_padding = (float)dc.getBoundingRectBottom().height();
m_left_padding = (float)dc.getBoundingRectLeft().width();
m_right_padding = (float)dc.getBoundingRectRight().width();
// Left or right will depend on the device initial orientation
// So save it for dealing with device rotation later
m_intial_orientation = SDLActivity.getCurrentOrientation();
}
}
}
// ------------------------------------------------------------------------
@Override
public void onMultiWindowModeChanged(boolean isInMultiWindowMode,
Configuration newConfig)
{
handlePadding(isInMultiWindowMode);
}
// ------------------------------------------------------------------------
public int getKeyboardHeight() { return m_keyboard_height.get(); }
// ------------------------------------------------------------------------
public int getMovedHeight() { return m_moved_height.get(); }
}

View File

@@ -14,11 +14,11 @@ FIND_PATH(Angelscript_INCLUDE_DIRS angelscript.h
) )
FIND_LIBRARY(Angelscript_LIBRARY FIND_LIBRARY(Angelscript_LIBRARY
NAMES angelscript NAMES angelscript angelscript_s
PATHS PATHS
/usr/local /usr/local
/usr /usr
PATH_SUFFIXES lib PATH_SUFFIXES lib lib64 lib32
) )
# handle the QUIETLY and REQUIRED arguments and set ANGELSCRIPT_FOUND to TRUE if # handle the QUIETLY and REQUIRED arguments and set ANGELSCRIPT_FOUND to TRUE if

18
cmake/FindEGL.cmake Normal file
View File

@@ -0,0 +1,18 @@
# - Find EGL
# Find the EGL includes and libraries
#
# Following variables are provided:
# EGL_FOUND
# True if EGL has been found
# EGL_INCLUDE_DIR
# The include directory of EGL
# EGL_LIBRARY
# EGL library list
find_path(EGL_INCLUDE_DIR EGL/egl.h)
find_library(EGL_LIBRARY NAMES EGL)
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(EGL DEFAULT_MSG EGL_LIBRARY EGL_INCLUDE_DIR)
mark_as_advanced(EGL_LIBRARY EGL_INCLUDE_DIR)

25
cmake/FindFreetype.cmake Normal file
View File

@@ -0,0 +1,25 @@
# - 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/freetype2")
find_library(FREETYPE_LIBRARY NAMES freetype libfreetype PATHS "${PROJECT_SOURCE_DIR}/${DEPENDENCIES}/lib")
set(FREETYPE_FOUND 1)
set(FREETYPE_LIBRARIES ${FREETYPE_LIBRARY})
elseif(APPLE OR ${CMAKE_SYSTEM_NAME} MATCHES "SunOS")
find_path(FREETYPE_INCLUDE_DIRS NAMES ft2build.h PATH_SUFFIXES freetype2 include/freetype2 include)
find_library(FREETYPE_LIBRARY NAMES freetype)
set(FREETYPE_FOUND 1)
set(FREETYPE_LIBRARIES ${FREETYPE_LIBRARY})
else()
pkg_check_modules(FREETYPE freetype2)
endif()

View File

@@ -1,42 +0,0 @@
# - Find Fribidi
# Find the Fribidi includes and libraries
#
# Following variables are provided:
# FRIBIDI_FOUND
# True if Fribidi has been found
# FRIBIDI_INCLUDE_DIRS
# The include directories of Fribidi
# FRIBIDI_LIBRARIES
# Fribidi library list
if(APPLE)
set(FRIBIDI_INCLUDE_DIR NAMES fribidi/fribidi.h PATHS /Library/Frameworks/fribidi.framework/Headers)
find_library(FRIBIDI_LIBRARY NAMES fribidi PATHS /Library/Frameworks/fribidi.framework)
set(FRIBIDI_LIBRARIES ${FRIBIDI_LIBRARY})
include_directories(/Library/Frameworks/fribidi.framework/Headers)
#add_definitions(-framework fribidi)
set(FRIBIDI_FOUND 1)
elseif(UNIX)
include(FindPkgConfig)
pkg_check_modules(FRIBIDI fribidi)
else()
set(FRIBIDI_FOUND 0)
endif()
if(NOT FRIBIDI_FOUND)
find_path(FRIBIDI_INCLUDE_DIR NAMES fribidi/fribidi.h PATHS /Library/Frameworks/fribidi.framework/Headers "${PROJECT_SOURCE_DIR}/dependencies/include")
find_library(FRIBIDI_LIBRARY NAMES fribidi PATHS /Library/Frameworks/fribidi.framework "${PROJECT_SOURCE_DIR}/dependencies/lib")
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(Fribidi DEFAULT_MSG FRIBIDI_INCLUDE_DIR FRIBIDI_LIBRARY)
if(APPLE)
set(FRIBIDI_INCLUDE_DIR "/Library/Frameworks/fribidi.framework/Headers")
endif()
# Publish variables
set(FRIBIDI_INCLUDE_DIRS ${FRIBIDI_INCLUDE_DIR})
set(FRIBIDI_LIBRARIES ${FRIBIDI_LIBRARY})
endif()
mark_as_advanced(FRIBIDI_INCLUDE_DIR FRIBIDI_LIBRARY)

89
cmake/FindLibbfd.cmake Normal file
View File

@@ -0,0 +1,89 @@
# - Try to find libbfd
# Once done this will define
#
# LIBBFD_FOUND - system has libbfd
# LIBBFD_INCLUDE_DIRS - the libbfd include directory
# LIBBFD_LIBRARIES - Link these to use libbfd
# LIBBFD_DEFINITIONS - Compiler switches required for using libbfd
#
# Based on:
#
# Copyright (c) 2008 Bernhard Walle <bernhard.walle@gmx.de>
#
# Redistribution and use is allowed according to the terms of the New
# BSD license.
# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
#
if (LIBBFD_LIBRARIES AND LIBBFD_INCLUDE_DIRS)
set (LIBBFD_FIND_QUIETLY TRUE)
endif ()
find_path (LIBBFD_INCLUDE_DIRS
NAMES
bfd.h
dis-asm.h
PATHS
/usr/include
/usr/local/include
/opt/local/include
/opt/include
ENV CPATH)
# Ugly, yes ugly...
find_library (LIBBFD_BFD_LIBRARY
NAMES
bfd
PATHS
/usr/lib
/usr/lib64
/usr/local/lib
/usr/local/lib64
/usr/include
/opt/local/lib
/opt/usr/lib64
ENV LIBRARY_PATH
ENV LD_LIBRARY_PATH)
#find_library (LIBBFD_IBERTY_LIBRARY
# NAMES
# iberty
# PATHS
# /usr/lib
# /usr/lib64
# /usr/local/lib
# /usr/local/lib64
# /usr/include
# /opt/local/lib
# /opt/usr/lib64
# ENV LIBRARY_PATH
# ENV LD_LIBRARY_PATH)
#find_library (LIBBFD_OPCODES_LIBRARY
# NAMES
# opcodes
# PATHS
# /usr/lib
# /usr/lib64
# /usr/local/lib
# /usr/local/lib64
# /usr/include
# /opt/local/lib
# /opt/usr/lib64
# ENV LIBRARY_PATH
# ENV LD_LIBRARY_PATH)
include (FindPackageHandleStandardArgs)
# handle the QUIETLY and REQUIRED arguments and set LIBBFD_FOUND to TRUE if all listed variables are TRUE
FIND_PACKAGE_HANDLE_STANDARD_ARGS(LIBBFD DEFAULT_MSG
LIBBFD_BFD_LIBRARY
# LIBBFD_IBERTY_LIBRARY
# LIBBFD_OPCODES_LIBRARY
LIBBFD_INCLUDE_DIRS)
set(LIBBFD_LIBRARIES "${LIBBFD_BFD_LIBRARY}")
mark_as_advanced(LIBBFD_INCLUDE_DIRS LIBBFD_LIBRARIES LIBBFD_BFD_LIBRARY)

View File

@@ -10,21 +10,17 @@
# OggVorbis library list # OggVorbis library list
find_path(OGGVORBIS_OGG_INCLUDE_DIR NAMES ogg/ogg.h PATHS "${PROJECT_SOURCE_DIR}/dependencies/include") if((UNIX AND NOT APPLE) OR NINTENDO_SWITCH)
find_path(OGGVORBIS_VORBIS_INCLUDE_DIR NAMES vorbis/vorbisfile.h PATHS "${PROJECT_SOURCE_DIR}/dependencies/include") pkg_check_modules(OGGVORBIS vorbisfile)
find_library(OGGVORBIS_OGG_LIBRARY NAMES ogg Ogg libogg PATHS "${PROJECT_SOURCE_DIR}/dependencies/lib") else()
find_library(OGGVORBIS_VORBIS_LIBRARY NAMES vorbis Vorbis libvorbis PATHS "${PROJECT_SOURCE_DIR}/dependencies/lib")
find_library(OGGVORBIS_VORBISFILE_LIBRARY NAMES vorbisfile libvorbisfile PATHS "${PROJECT_SOURCE_DIR}/dependencies/lib")
if (APPLE) find_path(OGGVORBIS_OGG_INCLUDE_DIR NAMES ogg/ogg.h PATHS "${PROJECT_SOURCE_DIR}/${DEPENDENCIES}/include")
set(OGGVORBIS_OGG_INCLUDE_DIR "/Library/Frameworks/Ogg.framework/Headers/") find_path(OGGVORBIS_VORBIS_INCLUDE_DIR NAMES vorbis/vorbisfile.h PATHS "${PROJECT_SOURCE_DIR}/${DEPENDENCIES}/include")
set(OGGVORBIS_VORBIS_INCLUDE_DIR "/Library/Frameworks/Vorbis.framework/Headers/") find_library(OGGVORBIS_OGG_LIBRARY NAMES ogg Ogg libogg PATHS "${PROJECT_SOURCE_DIR}/${DEPENDENCIES}/lib")
endif() find_library(OGGVORBIS_VORBIS_LIBRARY NAMES vorbis Vorbis libvorbis PATHS "${PROJECT_SOURCE_DIR}/${DEPENDENCIES}/lib")
find_library(OGGVORBIS_VORBISFILE_LIBRARY NAMES vorbisfile libvorbisfile PATHS "${PROJECT_SOURCE_DIR}/${DEPENDENCIES}/lib")
find_library(OGGVORBIS_VORBISENC_LIBRARY NAMES vorbisenc libvorbisenc PATHS "${PROJECT_SOURCE_DIR}/${DEPENDENCIES}/lib")
if(APPLE AND NOT OGGVORBIS_VORBISFILE_LIBRARY)
# Seems to be the same on Apple systems
set(OGGVORBIS_VORBISFILE_LIBRARY ${OGGVORBIS_VORBIS_LIBRARY})
endif()
include(FindPackageHandleStandardArgs) include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(OggVorbis DEFAULT_MSG find_package_handle_standard_args(OggVorbis DEFAULT_MSG
@@ -33,8 +29,9 @@ find_package_handle_standard_args(OggVorbis DEFAULT_MSG
# Publish variables # Publish variables
set(OGGVORBIS_INCLUDE_DIRS ${OGGVORBIS_OGG_INCLUDE_DIR} ${OGGVORBIS_VORBIS_INCLUDE_DIR}) set(OGGVORBIS_INCLUDE_DIRS ${OGGVORBIS_OGG_INCLUDE_DIR} ${OGGVORBIS_VORBIS_INCLUDE_DIR})
set(OGGVORBIS_LIBRARIES ${OGGVORBIS_OGG_LIBRARY} ${OGGVORBIS_VORBIS_LIBRARY} ${OGGVORBIS_VORBISFILE_LIBRARY}) set(OGGVORBIS_LIBRARIES ${OGGVORBIS_OGG_LIBRARY} ${OGGVORBIS_VORBIS_LIBRARY} ${OGGVORBIS_VORBISFILE_LIBRARY} ${OGGVORBIS_VORBISENC_LIBRARY})
list(REMOVE_DUPLICATES OGGVORBIS_INCLUDE_DIRS) list(REMOVE_DUPLICATES OGGVORBIS_INCLUDE_DIRS)
list(REMOVE_DUPLICATES OGGVORBIS_LIBRARIES) list(REMOVE_DUPLICATES OGGVORBIS_LIBRARIES)
mark_as_advanced(OGGVORBIS_OGG_INCLUDE_DIR OGGVORBIS_VORBIS_INCLUDE_DIR) mark_as_advanced(OGGVORBIS_OGG_INCLUDE_DIR OGGVORBIS_VORBIS_INCLUDE_DIR)
mark_as_advanced(OGGVORBIS_OGG_LIBRARY OGGVORBIS_VORBIS_LIBRARY OGGVORBIS_VORBISFILE_LIBRARY) mark_as_advanced(OGGVORBIS_OGG_LIBRARY OGGVORBIS_VORBIS_LIBRARY OGGVORBIS_VORBISFILE_LIBRARY OGGVORBIS_VORBISENC_LIBRARY)
endif()

66
cmake/FindWayland.cmake Normal file
View File

@@ -0,0 +1,66 @@
# - Find Wayland
# Find the Wayland includes and libraries
#
# Following variables are provided:
# WAYLAND_FOUND
# True if Wayland has been found
# WAYLAND_INCLUDE_DIRS
# The include directories of Wayland
# WAYLAND_LIBRARIES
# Wayland library list
find_package(PkgConfig REQUIRED)
if(NOT PKGCONFIG_FOUND)
message(FATAL_ERROR "Pkg-config not found.")
endif()
pkg_check_modules(PKG_WAYLAND QUIET wayland-client)
if(PKG_WAYLAND_FOUND)
set(WAYLAND_VERSION ${PKG_WAYLAND_VERSION})
else()
set(WAYLAND_VERSION 0)
endif()
find_path(WAYLAND_CLIENT_INCLUDE_DIR wayland-client.h)
find_path(WAYLAND_CURSOR_INCLUDE_DIR wayland-cursor.h)
find_path(WAYLAND_EGL_INCLUDE_DIR wayland-egl.h)
find_path(XKBCOMMON_INCLUDE_DIR xkbcommon/xkbcommon.h)
find_library(WAYLAND_CLIENT_LIBRARY NAMES wayland-client)
find_library(WAYLAND_CURSOR_LIBRARY NAMES wayland-cursor)
find_library(WAYLAND_EGL_LIBRARY NAMES wayland-egl)
find_library(XKBCOMMON_LIBRARY NAMES xkbcommon)
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(Wayland DEFAULT_MSG WAYLAND_CLIENT_LIBRARY
WAYLAND_CURSOR_LIBRARY
WAYLAND_EGL_LIBRARY
XKBCOMMON_LIBRARY
WAYLAND_CLIENT_INCLUDE_DIR
WAYLAND_CURSOR_INCLUDE_DIR
WAYLAND_EGL_INCLUDE_DIR
XKBCOMMON_INCLUDE_DIR)
set(WAYLAND_INCLUDE_DIRS ${WAYLAND_CLIENT_INCLUDE_DIR}
${WAYLAND_CURSOR_INCLUDE_DIR}
${WAYLAND_EGL_INCLUDE_DIR}
${XKBCOMMON_INCLUDE_DIR})
set(WAYLAND_LIBRARIES ${WAYLAND_CLIENT_LIBRARY}
${WAYLAND_CURSOR_LIBRARY}
${WAYLAND_EGL_LIBRARY}
${XKBCOMMON_LIBRARY})
list(REMOVE_DUPLICATES WAYLAND_INCLUDE_DIRS)
list(REMOVE_DUPLICATES WAYLAND_LIBRARIES)
mark_as_advanced(WAYLAND_CLIENT_LIBRARY
WAYLAND_CURSOR_LIBRARY
WAYLAND_EGL_LIBRARY
XKBCOMMON_LIBRARY
WAYLAND_CLIENT_INCLUDE_DIR
WAYLAND_CURSOR_INCLUDE_DIR
WAYLAND_EGL_INCLUDE_DIR
XKBCOMMON_INCLUDE_DIR)

99
cmake/FindWiiUse.cmake Normal file
View File

@@ -0,0 +1,99 @@
# - try to find WiiUse library
#
# Cache Variables: (probably not for direct use in your scripts)
# WIIUSE_INCLUDE_DIR
# WIIUSE_LIBRARY
#
# Non-cache variables you might use in your CMakeLists.txt:
# WIIUSE_FOUND
# WIIUSE_INCLUDE_DIRS
# WIIUSE_LIBRARIES
# WIIUSE_RUNTIME_LIBRARIES - aka the dll for installing
# WIIUSE_RUNTIME_LIBRARY_DIRS
#
# Requires these CMake modules:
# FindPackageHandleStandardArgs (known included with CMake >=2.6.2)
#
# Original Author:
# 2009-2010 Ryan Pavlik <rpavlik@iastate.edu> <abiryan@ryand.net>
# http://academic.cleardefinition.com
# Iowa State University HCI Graduate Program/VRAC
#
# Copyright Iowa State University 2009-2010.
# Distributed under the Boost Software License, Version 1.0.
# (See accompanying file LICENSE_1_0.txt or copy at
# http://www.boost.org/LICENSE_1_0.txt)
set(WIIUSE_ROOT_DIR
"${WIIUSE_ROOT_DIR}"
CACHE
PATH
"Directory to search for WiiUse")
if(CMAKE_SIZEOF_VOID_P MATCHES "8")
set(_LIBSUFFIXES /lib64 /lib)
else()
set(_LIBSUFFIXES /lib)
endif()
find_library(WIIUSE_LIBRARY
NAMES
wiiuse
PATHS
"${WIIUSE_ROOT_DIR}"
PATH_SUFFIXES
"${_LIBSUFFIXES}")
get_filename_component(_libdir "${WIIUSE_LIBRARY}" PATH)
find_path(WIIUSE_INCLUDE_DIR
NAMES
wiiuse.h
HINTS
"${_libdir}"
"${_libdir}/.."
PATHS
"${WIIUSE_ROOT_DIR}"
PATH_SUFFIXES
include/)
set(_deps_check)
if(WIN32)
find_file(WIIUSE_RUNTIME_LIBRARY
NAMES
wiiuse.dll
HINTS
"${_libdir}"
"${_libdir}/.."
PATH_SUFFIXES
bin)
set(WIIUSE_RUNTIME_LIBRARIES "${WIIUSE_RUNTIME_LIBRARY}")
get_filename_component(WIIUSE_RUNTIME_LIBRARY_DIRS
"${WIIUSE_RUNTIME_LIBRARY}"
PATH)
list(APPEND _deps_check WIIUSE_RUNTIME_LIBRARY)
else()
set(WIIUSE_RUNTIME_LIBRARY "${WIIUSE_LIBRARY}")
set(WIIUSE_RUNTIME_LIBRARIES "${WIIUSE_RUNTIME_LIBRARY}")
get_filename_component(WIIUSE_RUNTIME_LIBRARY_DIRS
"${WIIUSE_LIBRARY}"
PATH)
endif()
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(WiiUse
DEFAULT_MSG
WIIUSE_LIBRARY
WIIUSE_INCLUDE_DIR
${_deps_check})
if(WIIUSE_FOUND)
set(WIIUSE_LIBRARIES "${WIIUSE_LIBRARY}")
set(WIIUSE_INCLUDE_DIRS "${WIIUSE_INCLUDE_DIR}")
mark_as_advanced(WIIUSE_ROOT_DIR)
endif()
mark_as_advanced(WIIUSE_INCLUDE_DIR
WIIUSE_LIBRARY
WIIUSE_RUNTIME_LIBRARY)

View File

@@ -1,18 +0,0 @@
find_path(XRANDR_INCLUDE_DIR NAMES X11/extensions/Xrandr.h
PATH_SUFFIXES X11/extensions
DOC "The XRANDR include directory"
)
find_library(XRANDR_LIBRARY NAMES Xrandr
DOC "The XRANDR library"
)
include(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(XRANDR DEFAULT_MSG XRANDR_LIBRARY XRANDR_INCLUDE_DIR)
if(XRANDR_FOUND)
set( XRANDR_LIBRARIES ${XRANDR_LIBRARY} )
set( XRANDR_INCLUDE_DIRS ${XRANDR_INCLUDE_DIR} )
endif()
mark_as_advanced(XRANDR_INCLUDE_DIR XRANDR_LIBRARY)

View File

@@ -0,0 +1,40 @@
# Cross-compiling requires CMake 2.6 or newer. Example:
# cmake .. -DCMAKE_TOOLCHAIN_FILE=../XCompile-Android.txt -DHOST=arm-linux-androideabi
# Where 'arm-linux-androideabi' is the host prefix for the cross-compiler. If
# you already have a toolchain file setup, you may use that instead of this
# file. Make sure to set CMAKE_FIND_ROOT_PATH to where the NDK toolchain was
# installed (e.g. "$ENV{HOME}/toolchains/arm-linux-androideabi-r10c-21").
# the name of the target operating system
SET(CMAKE_SYSTEM_NAME Linux)
# which compilers to use for C and C++
SET(CMAKE_C_COMPILER "${HOST}-clang")
SET(CMAKE_CXX_COMPILER "${HOST}-clang++")
set(CMAKE_SYSTEM_PROCESSOR ${ARCH})
# Starting NDK21 it enables NEON by default on 32-bit ARM target
# Disable it to support more devices
if("${ARCH}" STREQUAL "arm" AND NOT STK_ARM_NEON)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -mfpu=vfpv3-d16")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mfpu=vfpv3-d16")
endif()
# here is the target environment located
SET(CMAKE_FIND_ROOT_PATH $ENV{NDK_TOOLCHAIN_PATH})
# here is where stuff gets installed to
SET(CMAKE_INSTALL_PREFIX "${CMAKE_FIND_ROOT_PATH}" CACHE STRING "Install path prefix, prepended onto install directories." FORCE)
# 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 ONLY)
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
# set env vars so that pkg-config will look in the appropriate directory for
# .pc files (as there seems to be no way to force using ${HOST}-pkg-config)
set(ENV{PKG_CONFIG_LIBDIR} "${CMAKE_INSTALL_PREFIX}/lib/pkgconfig")
set(ENV{PKG_CONFIG_PATH} "")

View File

@@ -0,0 +1,48 @@
# Usage:
# cmake .. -DCCTOOLS_PREFIX=/path/to/cctools -DCCTOOLS_ARCH=arch -DCCTOOLS_PLATFORM=platform \
# -DRT=/path/to/cctools/darwin/libclang_rt.{ios, iossim, osx, tvos, tvossim}.a -DCMAKE_TOOLCHAIN_FILE=../cmake/Toolchain-cctools.cmake
# Download precompiled cctools at https://github.com/supertuxkart/dependencies/releases/download/preview/cctools.tar.xz
# Compiled in Ubuntu 18.04
# the name of the target operating system
SET(CMAKE_SYSTEM_NAME Darwin)
# which compilers to use for C and C++
string(TOLOWER "${CCTOOLS_PLATFORM}" platform_lower)
set(CLANG_ARCH ${CCTOOLS_ARCH})
if(CCTOOLS_ARCH MATCHES ^arm)
set(CLANG_ARCH arm)
else()
set(CLANG_ARCH ${CCTOOLS_ARCH})
endif()
SET(CMAKE_C_COMPILER ${CCTOOLS_PREFIX}/bin/${CCTOOLS_ARCH}-${platform_lower}-clang)
SET(CMAKE_CXX_COMPILER ${CCTOOLS_PREFIX}/bin/${CCTOOLS_ARCH}-${platform_lower}-clang++)
SET(CMAKE_RANLIB ${CCTOOLS_PREFIX}/bin/${CLANG_ARCH}-apple-darwin11-ranlib)
SET(CMAKE_AR ${CCTOOLS_PREFIX}/bin/${CLANG_ARCH}-apple-darwin11-ar)
SET(CMAKE_INSTALL_NAME_TOOL ${CCTOOLS_PREFIX}/bin/${CLANG_ARCH}-apple-darwin11-install_name_tool)
SET(CMAKE_SYSTEM_PROCESSOR ${CCTOOLS_ARCH})
SET(CMAKE_MACOSX_RPATH TRUE)
SET(CMAKE_EXE_LINKER_FLAGS ${RT})
# here is the target environment located
SET(CMAKE_FIND_ROOT_PATH ${PROJECT_SOURCE_DIR}/dependencies-${platform_lower} ${CCTOOLS_PREFIX}/sdk/${CCTOOLS_PLATFORM}.sdk)
# 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)
# fix statically linking because of order
if (NOT CCTOOLS_PLATFORM MATCHES MacOSX)
set(CURL_LIBRARY "${PROJECT_SOURCE_DIR}/dependencies-${platform_lower}/lib/libcurl.a;${PROJECT_SOURCE_DIR}/dependencies-${platform_lower}/lib/libmbedtls.a;${PROJECT_SOURCE_DIR}/dependencies-${platform_lower}/lib/libmbedx509.a")
endif()
set(USE_CRYPTO_OPENSSL FALSE CACHE BOOL "")
if (NOT CCTOOLS_PLATFORM MATCHES MacOSX)
set(USE_WIIUSE FALSE CACHE BOOL "")
set(USE_SQLITE3 FALSE CACHE BOOL "")
set(IOS TRUE CACHE BOOL "")
endif()

View File

@@ -0,0 +1,125 @@
# Usage:
# cmake .. -DDEPS_PATH=/path/to/dependencies -DIOS_ASSETS=/path/to/generated/assets -DCMAKE_TOOLCHAIN_FILE=../cmake/Toolchain-ios-xcode.cmake -G Xcode
# Need to use ../android/generate_assets.sh for assets first
# In Xcode you need to choose Product -> Scheme -> supertuxkart
# And then Signing & Capabilities choose a suitable team
# You may need to use another bundle identifier as the current one is already used by STK team
# You can also use -DCMAKE_XCODE_ATTRIBUTE_DEVELOPMENT_TEAM=xxxxxxxxxx to specify team
# Increase every upload to App store
SET(IOS_BUILD_VERSION 26)
# Get SDK path
execute_process(COMMAND xcodebuild -version -sdk iphoneos Path
OUTPUT_VARIABLE CMAKE_OSX_SYSROOT_IOS
ERROR_QUIET
OUTPUT_STRIP_TRAILING_WHITESPACE)
execute_process(COMMAND xcodebuild -version -sdk iphonesimulator Path
OUTPUT_VARIABLE CMAKE_OSX_SYSROOT_SIMULATOR
ERROR_QUIET
OUTPUT_STRIP_TRAILING_WHITESPACE)
execute_process(COMMAND xcodebuild -sdk ${CMAKE_OSX_SYSROOT} -version SDKVersion
OUTPUT_VARIABLE SDK_VERSION
ERROR_QUIET
OUTPUT_STRIP_TRAILING_WHITESPACE)
if (NOT DEFINED CMAKE_OSX_SYSROOT_IOS OR NOT DEFINED CMAKE_OSX_SYSROOT_SIMULATOR OR NOT DEFINED SDK_VERSION)
message(FATAL_ERROR "Cannot find iphoneos or iphonesimulator sdk location and their version info.")
else()
message(STATUS "Using SDK path: ${CMAKE_OSX_SYSROOT_IOS}.")
endif()
set(CMAKE_OSX_SYSROOT "iphoneos" CACHE INTERNAL "")
# Manaully set the values for both arm64 and simulator
set(JPEG_LIBRARY ${PROJECT_SOURCE_DIR}/dependencies\${EFFECTIVE_PLATFORM_NAME}/lib/libjpeg.a CACHE STRING "")
set(JPEG_INCLUDE_DIR ${PROJECT_SOURCE_DIR}/dependencies-iphoneos/include CACHE STRING "")
set(ZLIB_LIBRARY ${PROJECT_SOURCE_DIR}/dependencies\${EFFECTIVE_PLATFORM_NAME}/lib/libz.a CACHE STRING "")
set(ZLIB_INCLUDE_DIR ${PROJECT_SOURCE_DIR}/dependencies-iphoneos/include CACHE STRING "")
set(PNG_LIBRARY ${PROJECT_SOURCE_DIR}/dependencies\${EFFECTIVE_PLATFORM_NAME}/lib/libpng16.a CACHE STRING "")
set(PNG_INCLUDE_DIRS ${PROJECT_SOURCE_DIR}/dependencies-iphoneos/include CACHE STRING "")
set(PNG_PNG_INCLUDE_DIR ${PROJECT_SOURCE_DIR}/dependencies-iphoneos/include CACHE STRING "")
set(OGGVORBIS_OGG_LIBRARY ${PROJECT_SOURCE_DIR}/dependencies\${EFFECTIVE_PLATFORM_NAME}/lib/libogg.a CACHE STRING "")
set(OGGVORBIS_OGG_INCLUDE_DIR ${PROJECT_SOURCE_DIR}/dependencies-iphoneos/include/ogg CACHE STRING "")
set(OGGVORBIS_VORBIS_LIBRARY ${PROJECT_SOURCE_DIR}/dependencies\${EFFECTIVE_PLATFORM_NAME}/lib/libvorbis.a CACHE STRING "")
set(OGGVORBIS_VORBIS_INCLUDE_DIR ${PROJECT_SOURCE_DIR}/dependencies-iphoneos/include/vorbis CACHE STRING "")
set(OGGVORBIS_VORBISFILE_LIBRARY ${PROJECT_SOURCE_DIR}/dependencies\${EFFECTIVE_PLATFORM_NAME}/lib/libvorbisfile.a CACHE STRING "")
set(OGGVORBIS_VORBISFILE_INCLUDE_DIR ${PROJECT_SOURCE_DIR}/dependencies-iphoneos/include/vorbis CACHE STRING "")
set(OGGVORBIS_VORBISENC_LIBRARY ${PROJECT_SOURCE_DIR}/dependencies\${EFFECTIVE_PLATFORM_NAME}/lib/libvorbisenc.a CACHE STRING "")
set(OGGVORBIS_VORBISENC_INCLUDE_DIR ${PROJECT_SOURCE_DIR}/dependencies-iphoneos/include/vorbis CACHE STRING "")
set(HARFBUZZ_LIBRARY ${PROJECT_SOURCE_DIR}/dependencies\${EFFECTIVE_PLATFORM_NAME}/lib/libharfbuzz.a CACHE STRING "")
set(HARFBUZZ_INCLUDEDIR ${PROJECT_SOURCE_DIR}/dependencies-iphoneos/include CACHE STRING "")
set(FREETYPE_LIBRARY ${PROJECT_SOURCE_DIR}/dependencies\${EFFECTIVE_PLATFORM_NAME}/lib/libfreetype.a CACHE STRING "")
set(FREETYPE_INCLUDE_DIRS ${PROJECT_SOURCE_DIR}/dependencies-iphoneos/include/freetype2 CACHE STRING "")
set(CURL_LIBRARY "${PROJECT_SOURCE_DIR}/dependencies\${EFFECTIVE_PLATFORM_NAME}/lib/libcurl.a;${PROJECT_SOURCE_DIR}/dependencies\${EFFECTIVE_PLATFORM_NAME}/lib/libmbedtls.a;${PROJECT_SOURCE_DIR}/dependencies\${EFFECTIVE_PLATFORM_NAME}/lib/libmbedx509.a;${PROJECT_SOURCE_DIR}/dependencies\${EFFECTIVE_PLATFORM_NAME}/lib/libmbedcrypto.a" CACHE STRING "")
set(CURL_INCLUDE_DIR ${PROJECT_SOURCE_DIR}/dependencies-iphoneos/include CACHE STRING "")
set(MBEDCRYPTO_LIBRARY ${PROJECT_SOURCE_DIR}/dependencies\${EFFECTIVE_PLATFORM_NAME}/lib/libmbedcrypto.a CACHE STRING "")
set(MBEDTLS_INCLUDE_DIRS ${PROJECT_SOURCE_DIR}/dependencies-iphoneos/include CACHE STRING "")
set(SDL2_LIBRARY ${PROJECT_SOURCE_DIR}/dependencies\${EFFECTIVE_PLATFORM_NAME}/lib/libSDL2.a CACHE STRING "")
set(SDL2_INCLUDEDIR ${PROJECT_SOURCE_DIR}/dependencies-iphoneos/include/SDL2 CACHE STRING "")
set(LIBSAMPLERATE_LIBRARY ${PROJECT_SOURCE_DIR}/dependencies\${EFFECTIVE_PLATFORM_NAME}/lib/libsamplerate.a CACHE STRING "")
set(LIBSAMPLERATE_INCLUDEDIR ${PROJECT_SOURCE_DIR}/dependencies-iphoneos/include CACHE STRING "")
set(MOLTENVK_LIBRARY ${PROJECT_SOURCE_DIR}/dependencies\${EFFECTIVE_PLATFORM_NAME}/lib/libMoltenVK.a CACHE STRING "")
set(VULKAN_INCLUDEDIR ${PROJECT_SOURCE_DIR}/dependencies-iphoneos/include CACHE STRING "")
set(LIBASTCENC_LIBRARY ${PROJECT_SOURCE_DIR}/dependencies\${EFFECTIVE_PLATFORM_NAME}/lib/libastcenc.a CACHE STRING "")
set(LIBASTCENC_INCLUDEDIR ${PROJECT_SOURCE_DIR}/dependencies-iphoneos/include CACHE STRING "")
# For universal iOS and simulator
set(LIBRESOLV_LIBRARY -lresolv CACHE STRING "")
set(PTHREAD_LIBRARY -lpthread CACHE STRING "")
# Standard config
set(CMAKE_SYSTEM_VERSION ${SDK_VERSION} CACHE INTERNAL "")
set(UNIX TRUE CACHE BOOL "")
set(APPLE TRUE CACHE BOOL "")
set(IOS TRUE CACHE BOOL "")
set(CMAKE_AR ar CACHE FILEPATH "" FORCE)
set(CMAKE_RANLIB ranlib CACHE FILEPATH "" FORCE)
set(CMAKE_STRIP strip CACHE FILEPATH "" FORCE)
# Set the architectures for which to build
set(CMAKE_OSX_ARCHITECTURES "arm64 x86_64" CACHE STRING "Build architecture for iOS")
set(CMAKE_C_SIZEOF_DATA_PTR 8)
set(CMAKE_CXX_SIZEOF_DATA_PTR 8)
set(CMAKE_SYSTEM_PROCESSOR "arm64")
set(CMAKE_SYSTEM_NAME iOS CACHE INTERNAL "" FORCE)
# Change the type of target generated for try_compile() so it'll work when cross-compiling
set(CMAKE_TRY_COMPILE_TARGET_TYPE STATIC_LIBRARY)
# All iOS/Darwin specific settings - some may be redundant.
set(CMAKE_SHARED_LIBRARY_PREFIX "lib")
set(CMAKE_SHARED_LIBRARY_SUFFIX ".dylib")
set(CMAKE_SHARED_MODULE_PREFIX "lib")
set(CMAKE_SHARED_MODULE_SUFFIX ".so")
set(CMAKE_C_COMPILER_ABI ELF)
set(CMAKE_CXX_COMPILER_ABI ELF)
set(CMAKE_C_HAS_ISYSROOT 1)
set(CMAKE_CXX_HAS_ISYSROOT 1)
set(CMAKE_MODULE_EXISTS 1)
set(CMAKE_DL_LIBS "")
set(CMAKE_C_OSX_COMPATIBILITY_VERSION_FLAG "-compatibility_version ")
set(CMAKE_C_OSX_CURRENT_VERSION_FLAG "-current_version ")
set(CMAKE_CXX_OSX_COMPATIBILITY_VERSION_FLAG "${CMAKE_C_OSX_COMPATIBILITY_VERSION_FLAG}")
set(CMAKE_CXX_OSX_CURRENT_VERSION_FLAG "${CMAKE_C_OSX_CURRENT_VERSION_FLAG}")
# Fixed variables in iOS STK
set(CMAKE_XCODE_ATTRIBUTE_CLANG_ENABLE_OBJC_ARC NO CACHE INTERNAL "")
set(CMAKE_XCODE_ATTRIBUTE_GCC_SYMBOLS_PRIVATE_EXTERN YES CACHE INTERNAL "")
set(USE_WIIUSE FALSE CACHE BOOL "")
set(USE_SQLITE3 FALSE CACHE BOOL "")
set(USE_CRYPTO_OPENSSL FALSE CACHE BOOL "")
set(IOS_LAUNCHSCREEN ${DEPS_PATH}/ios-icon/launch_screen.storyboard)
set(IOS_IMAGES_XCASSETS ${DEPS_PATH}/ios-icon/Images.xcassets)
set(SDK_NAME_VERSION_FLAGS "-miphoneos-version-min=9.0")
set(CMAKE_OSX_DEPLOYMENT_TARGET 9.0 CACHE STRING "Set CMake deployment target" FORCE)
set(CMAKE_XCODE_ATTRIBUTE_ARCHS[sdk=iphoneos*] "arm64")
set(CMAKE_XCODE_ATTRIBUTE_VALID_ARCHS[sdk=iphoneos*] "arm64")
set(CMAKE_XCODE_ATTRIBUTE_ARCHS[sdk=iphonesimulator*] "x86_64")
set(CMAKE_XCODE_ATTRIBUTE_VALID_ARCHS[sdk=iphonesimulator*] "x86_64")
set(CMAKE_XCODE_ATTRIBUTE_DEBUG_INFORMATION_FORMAT "dwarf-with-dsym" CACHE INTERNAL "")
# Replace the above two with these if you use an apple silicon
#set(CMAKE_XCODE_ATTRIBUTE_ARCHS[sdk=iphonesimulator*] "arm64")
#set(CMAKE_XCODE_ATTRIBUTE_VALID_ARCHS[sdk=iphonesimulator*] "arm64")

View File

@@ -0,0 +1,28 @@
# Usage:
# cmake .. -DLLVM_ARCH=aarch64 i686 or x86_64 -DLLVM_PREFIX=/path/to/llvm-mingw-prefix -DCMAKE_TOOLCHAIN_FILE=../cmake/Toolchain-llvm-mingw.cmake
# the name of the target operating system
if(WIN32)
SET(PATH_EXE .exe)
endif()
SET(CMAKE_SYSTEM_NAME Windows)
# which compilers to use for C and C++
SET(CMAKE_C_COMPILER ${LLVM_PREFIX}/bin/${LLVM_ARCH}-w64-mingw32-clang${PATH_EXE})
SET(CMAKE_CXX_COMPILER ${LLVM_PREFIX}/bin/${LLVM_ARCH}-w64-mingw32-clang++${PATH_EXE})
SET(CMAKE_RC_COMPILER ${LLVM_PREFIX}/bin/${LLVM_ARCH}-w64-mingw32-windres${PATH_EXE})
SET(CMAKE_SYSTEM_PROCESSOR ${LLVM_ARCH})
SET(CMAKE_BUILD_TYPE RelWithDebInfo)
set(CMAKE_EXE_LINKER_FLAGS "-static-libgcc -static-libstdc++ -Wl,-pdb=")
SET(CMAKE_C_FLAGS -gcodeview)
SET(CMAKE_CXX_FLAGS -gcodeview)
# here is the target environment located
SET(CMAKE_FIND_ROOT_PATH ${LLVM_PREFIX}/generic-w64-mingw32 ${LLVM_PREFIX}/${LLVM_ARCH}-w64-mingw32/bin ${PROJECT_SOURCE_DIR}/dependencies-win-${LLVM_ARCH})
# 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)

View File

@@ -0,0 +1,23 @@
# 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)
# figure out folder to look in
execute_process(COMMAND sh -c "ls /usr/lib/gcc/x86_64-w64-mingw32/ | grep posix | tr -d '\n'" OUTPUT_VARIABLE MINGW_DEPS_FOLDER)
# here is the target environment located
SET(CMAKE_FIND_ROOT_PATH /usr/x86_64-w64-mingw32 /usr/lib/gcc/x86_64-w64-mingw32/${MINGW_DEPS_FOLDER}/ ${PROJECT_SOURCE_DIR}/dependencies-win-x86_64)
# 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)

View File

@@ -1,3 +1,6 @@
# Usage:
# cmake .. -DCMAKE_TOOLCHAIN_FILE=../cmake/Toolchain-mingw.cmake
# the name of the target operating system # the name of the target operating system
SET(CMAKE_SYSTEM_NAME Windows) SET(CMAKE_SYSTEM_NAME Windows)
@@ -6,8 +9,11 @@ SET(CMAKE_C_COMPILER i686-w64-mingw32-gcc-posix)
SET(CMAKE_CXX_COMPILER i686-w64-mingw32-g++-posix) SET(CMAKE_CXX_COMPILER i686-w64-mingw32-g++-posix)
SET(CMAKE_RC_COMPILER i686-w64-mingw32-windres) SET(CMAKE_RC_COMPILER i686-w64-mingw32-windres)
# figure out folder to look in
execute_process(COMMAND sh -c "ls /usr/lib/gcc/i686-w64-mingw32/ | grep posix | tr -d '\n'" OUTPUT_VARIABLE MINGW_DEPS_FOLDER)
# here is the target environment located # here is the target environment located
SET(CMAKE_FIND_ROOT_PATH /usr/i686-w64-mingw32 /usr/lib/gcc/i686-w64-mingw32/4.9-posix ${PROJECT_SOURCE_DIR}/dependencies) SET(CMAKE_FIND_ROOT_PATH /usr/i686-w64-mingw32 /usr/lib/gcc/i686-w64-mingw32/${MINGW_DEPS_FOLDER}/ ${PROJECT_SOURCE_DIR}/dependencies-win-i686)
# adjust the default behaviour of the FIND_XXX() commands: # adjust the default behaviour of the FIND_XXX() commands:
# search headers and libraries in the target environment, search # search headers and libraries in the target environment, search

31
cmake/XcodeHelper.cmake Normal file
View File

@@ -0,0 +1,31 @@
# Collect all currently added targets in all subdirectories
#
# Parameters:
# - _result the list containing all found targets
# - _dir root directory to start looking from
function(get_all_targets _result _dir)
get_property(_subdirs DIRECTORY "${_dir}" PROPERTY SUBDIRECTORIES)
foreach(_subdir IN LISTS _subdirs)
get_all_targets(${_result} "${_subdir}")
endforeach()
get_directory_property(_sub_targets DIRECTORY "${_dir}" BUILDSYSTEM_TARGETS)
set(${_result} ${${_result}} ${_sub_targets} PARENT_SCOPE)
endfunction()
# set(CMAKE_XCODE_ATTRIBUTE_GCC_GENERATE_DEBUGGING_SYMBOLS doesn't work in ios toolchain, below fixed it
macro(configure_xcode_defaults _EXE_NAME)
if (APPLE)
macro(set_xcode_property TARGET XCODE_PROPERTY XCODE_VALUE)
set_property(TARGET ${TARGET} PROPERTY XCODE_ATTRIBUTE_${XCODE_PROPERTY} ${XCODE_VALUE})
endmacro()
endif()
if (APPLE)
set_xcode_property(${_EXE_NAME} GCC_GENERATE_DEBUGGING_SYMBOLS[variant=Debug] YES)
set_xcode_property(${_EXE_NAME} GCC_GENERATE_DEBUGGING_SYMBOLS[variant=MinSizeRel] YES)
set_xcode_property(${_EXE_NAME} GCC_GENERATE_DEBUGGING_SYMBOLS[variant=RelWithDebInfo] YES)
set_xcode_property(${_EXE_NAME} GCC_GENERATE_DEBUGGING_SYMBOLS[variant=Release] YES)
endif()
endmacro()

Binary file not shown.

View File

@@ -0,0 +1,46 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDisplayName</key>
<string>SuperTuxKart</string>
<key>CFBundleExecutable</key>
<string>supertuxkart</string>
<key>CFBundleIdentifier</key>
<string>net.supertuxkart.stkios</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>SuperTuxKart </string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>${PROJECT_VERSION}</string>
<key>CFBundleVersion</key>
<string>${IOS_BUILD_VERSION}</string>
<key>CSResourcesFileMapped</key>
<true/>
<key>UIRequiredDeviceCapabilities</key>
<array>
<string>arm64</string>
</array>
<key>UILaunchStoryboardName</key>
<string>launch_screen</string>
<key>UIStatusBarHidden</key>
<true/>
<key>UIRequiresFullScreen</key>
<true/>
<key>UISupportedInterfaceOrientations</key>
<array>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>UISupportedInterfaceOrientations~ipad</key>
<array>
<string>UIInterfaceOrientationLandscapeLeft</string>
<string>UIInterfaceOrientationLandscapeRight</string>
</array>
<key>UIApplicationSupportsIndirectInputEvents</key>
<true/>
</dict>
</plist>

View File

@@ -5,7 +5,7 @@
<key>CFBundleDevelopmentRegion</key> <key>CFBundleDevelopmentRegion</key>
<string>English</string> <string>English</string>
<key>CFBundleExecutable</key> <key>CFBundleExecutable</key>
<string>SuperTuxKart</string> <string>supertuxkart</string>
<key>CFBundleIconFile</key> <key>CFBundleIconFile</key>
<string>supertuxkart.icns</string> <string>supertuxkart.icns</string>
<key>CFBundleIdentifier</key> <key>CFBundleIdentifier</key>
@@ -17,14 +17,16 @@
<key>CFBundlePackageType</key> <key>CFBundlePackageType</key>
<string>APPL</string> <string>APPL</string>
<key>CFBundleShortVersionString</key> <key>CFBundleShortVersionString</key>
<string>0.8.1</string> <string>${PROJECT_VERSION}</string>
<key>CFBundleSignature</key> <key>CFBundleSignature</key>
<string>SPTK</string> <string>SPTK</string>
<key>CFBundleVersion</key> <key>CFBundleVersion</key>
<string>0.8.1</string> <string>${PROJECT_VERSION}</string>
<key>CSResourcesFileMapped</key> <key>CSResourcesFileMapped</key>
<true/> <true/>
<key>LSMinimumSystemVersion</key> <key>LSMinimumSystemVersion</key>
<string>10.9</string> <string>10.9</string>
<key>NSHighResolutionCapable</key>
<true/>
</dict> </dict>
</plist> </plist>

View File

@@ -1,68 +1,178 @@
<?xml version="1.0"?> <?xml version="1.0"?>
<achievements> <!-- List of counters the achievements can query.
<achievement id="1" check-type="all-at-least" reset-type="never" The format to use is <goal type="name_of_the_counter" value="X"/>
name="Christoffel Columbus" description="Play every official track at least once." > where X is the desired value of the counter ;e.g. <won_races value="10"/>
<city goal="1"/>
<cocoa_temple goal="1"/> WARNING! If a goal node is malformed, it is ignored.
<farm goal="1"/> ___________________________________________________________________________
<fortmagma goal="1"/>
<gran_paradiso_island goal="1"/> S - Logical relations and subgoals
<greenvalley goal="1"/>
<hacienda goal="1"/> When you define multiple goals, the achievement will be completed
<lighthouse goal="1"/> if they are all met, but they don't need to be met at once.
<mansion goal="1"/> To have more possibilities, you can define subgoals and the
<mines goal="1"/> logical relationship they need to meet.
<minigolf goal="1"/>
<olivermath goal="1"/> The available relations are :
<sandtrack goal="1"/>
<scotland goal="1"/> AND // The subgoals have to be met, but not necessarily at once
<snowmountain goal="1"/> AND-AT-ONCE // The subgoals have to be met at the same time.
<snowtuxpeak goal="1"/> OR // One of the subgoal has to be met
<stk_enterprise goal="1"/> SUM // The subgoals sum must reach a certain (positive !) number.
<subsea goal="1"/>
<xr591 goal="1"/> The format to use for AND, AND-AT-ONCE and OR is :
<zengarden goal="1"/> <goal type="AND">
<goal type="name_of_counter" value="X"/>
<goal type="name_of_counter" value="Y"/>
</goal>
For SUM, it is :
<goal type="SUM" value="X">
<goal type="name_of_counter" operation="+"/>
<goal type="name_of_counter" operation="-"/>
</goal>
With the value of operation (+ or -) defining if the subgoal is added
or subtracted from the total.
Sub-goals can also have their own sub-goals,
however a AND, AND-AT-ONCE or OR can't have a SUM goal for parent.
___________________________________________________________________________
I - Won races (normal, time-trial, FTL) counters.
Require to beat at least 3 AIs in any difficulty.
won-races : total number of races won
won-normal-races
won-tt-races
won-ftl-races
II - Consecutive won races counters.
These counters are reset if a race is restarted,
or if a race is lost even if the AI count to increment
is not met.
cons-won-races
cons-won-races-hard // This requires 5+ AIs and expert+ difficulty
III - Race started and finished counters, by difficulty (linear races only)
easy-started
easy-finished
medium-started
medium-finished
hard-started
hard-finished
best-started
best-finished
IV - Race started and finished counters, by game mode.
Races against a ghost are counted both in the base mode counter,
either time-trial or egg hunt, and in their own specific counter.
normal-started
normal-finished
tt-started
tt-finished
ftl-started
ftl-finished
three-strikes-started
three-strikes-finished
soccer-started
soccer-finished
egg-hunt-started
egg-hunt-finished
with-ghost-started
with-ghost-finished
ctf-started
ctf-finished
ffa-started
ffa-finished
IV - Counters related to powerup use. The hit counters reference how many
times the player kart has hit other karts, not how often it was hit.
powerup-used
powerup-used-1race
bowling-hit
bowling-hit-1race
swatter-hit
swatter-hit-1race
all-hits // hits from bowling ball, cake and swatter
all-hits-1race
hit-same-kart-1race
V - Counters related to other race events.
banana // counts how many banana the player's kart has hit
banana-1race
skidding
skidding-1race
skidding-1lap
VI - Per-track counters (at least one track reach the value)
race-started
race-finished
race-won
race-finished-reverse
race-finished-alone
less-laps
more-laps
twice-laps
egg-hunt-started
egg-hunt-finished
VII - Per-track counters (all non-addon tracks reach the value)
race-started-all
race-finished-all
race-won-all
race-finished-reverse-all
race-finished-alone-all
less-laps-all
more-laps-all
twice-laps-all
// For egg hunts, all non-addon tracks with egg hunt support
// must reach the value
egg-hunt-started-all
egg-hunt-finished-all
-->
<achievements version="1">
<achievement id="1" name="Christoffel Columbus" description="Play every official track at least once." >
<goal type="race-finished-all" value="1"/>
</achievement> </achievement>
<achievement id="2" check-type="all-at-least" reset-type="never" <achievement id="2" name="Strike!" description="Hit 10 karts with a bowling-ball.">
name="Strike!" description="Hit 10 karts with a bowling-ball."> <goal type="bowling-hit" value="10"/>
<ball goal="10"/>
</achievement> </achievement>
<achievement id="3" check-type="one-at-least" reset-type="race" <achievement id="3" name="Arch Enemy" description="Hit the same kart at least 5 times in one race.">
name="Arch Enemy" description="Hit the same kart at least 5 times in one race."> <goal type="hit-same-kart-1race" value="5"/>
<hit goal="5"/>
</achievement> </achievement>
<achievement id="4" check-type="all-at-least" reset-type="race" <achievement id="4" name="Marathoner" description="Finish a race with at least twice the track's default lap number.">
name="Marathoner" description="Make a race with 5 laps or more."> <goal type="twice-laps" value="1"/>
<laps goal="5"/>
</achievement> </achievement>
<achievement id="5" check-type="all-at-least" reset-type="lap" <achievement id="5" name="Skid-row" description="Skid 5 times in a single lap.">
name="Skid-row" description="Make 5 skidding in a single lap."> <goal type="skidding-1lap" value="5"/>
<skidding goal="5"/>
</achievement> </achievement>
<achievement id="6" check-type="all-at-least" reset-type="never" <achievement id="6" name="Gold driver" description="Win against at least 3 AIs in normal race, time-trial, and follow the leader.">
name="Gold driver" description="Win against at least 3 opponents in all single player modes."> <goal type="won-normal-races" value="1"/>
<standard goal="1"/> <goal type="won-tt-races" value="1"/>
<std_timetrial goal="1"/> <goal type="won-ftl-races" value="1"/>
<follow_leader goal="1"/>
<opponents goal="3"/>
</achievement> </achievement>
<achievement id="7" check-type="all-at-least" reset-type="race" <achievement id="7" name="Powerup Love" description="Use 10 or more powerups in a race.">
name="Powerup Love" description="Use 10 or more powerups in a race."> <goal type="powerup-used-1race" value="10"/>
<poweruplover goal="10"/>
</achievement> </achievement>
<achievement id="8" check-type="all-at-least" reset-type="never" <achievement id="8" name="Unstoppable" description="Win 5 single races in a row against at least 3 AIs. Beware, restarting a race counts as a loss.">
name="Unstoppable" description="Win 5 single races in a row."> <goal type="cons-won-races" value="5"/>
<wins goal="5"/>
</achievement> </achievement>
<achievement id="9" check-type="all-at-least" reset-type="race" <achievement id="9" name="Banana Lover" description="Collect at least 5 bananas in one race.">
name="Banana Lover" description="Collect at least 5 bananas in one race."> <goal type="banana-1race" value="5"/>
<banana goal="5"/>
</achievement> </achievement>
<achievement id="10" secret="yes" check-type="all-at-least" reset-type="race" <achievement id="10" name="It's secret" description="Really ... a secret." secret="yes">
name="It's secret" description="Really ... a secret.">
</achievement> </achievement>
<achievement id="11" check-type="all-at-least" reset-type="race" <achievement id="11" name="Mosquito Hunter" description="Take your opponents for mosquitos! With the swatter, squash them at least 5 times in a race.">
name="Mosquito Hunter" description="Take your opponents for mosquitos! With the swatter, squash at least 5 of them in a race."> <goal type="swatter-hit-1race" value="5"/>
<swatter goal="5"/> </achievement>
<achievement id="12" name="Beyond Luck" description="Win 10 single races in a row in Expert or SuperTux against at least 5 AIs. Beware, restarting a race counts as a loss.">
<goal type="cons-won-races-hard" value="10"/>
</achievement> </achievement>
</achievements> </achievements>

View File

@@ -1,21 +0,0 @@
-----BEGIN CERTIFICATE-----
MIIDezCCAmOgAwIBAgIJAO+A8uXtEMRsMA0GCSqGSIb3DQEBCwUAMFQxCzAJBgNV
BAYTAlVTMQwwCgYDVQQIDANTVEsxFTATBgNVBAoMDFN1cGVyVHV4S2FydDEgMB4G
A1UEAwwXYWRkb25zLnN1cGVydHV4a2FydC5uZXQwHhcNMTQxMjEwMTEzMTAwWhcN
MjQxMjA3MTEzMTAwWjBUMQswCQYDVQQGEwJVUzEMMAoGA1UECAwDU1RLMRUwEwYD
VQQKDAxTdXBlclR1eEthcnQxIDAeBgNVBAMMF2FkZG9ucy5zdXBlcnR1eGthcnQu
bmV0MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA2ysZE9rb4y0tHOhk
wxYpqsvDv5LCRFTAeyfAfyBVDcOn+4A3sX8MkQdoH/QDi823z4bn9ZsGV8T444FN
S4yK/aSRv3eAKkkJm5TUxbs3crATVt3JYusMr5W4wHvRVyDe0DlulSdW4EUEklMP
iPat/jwlDZRvZueio3wJoOhZXnl8E8EfnuYtlNONIB1nYGdUHD9xeNyKSPr4zTEp
brjvSw0l5G88LmQOROQBDbTDknAcIQwsFT1mf9Bt+N9LK14r95GWRmL3ZtfbrJn4
ZEfkOjl0Abv6gET4sQOXv0KioUdEJwzFCwKFLZVcuOrscmcHBOhgD3EruVvprIJ0
wZ3z1wIDAQABo1AwTjAdBgNVHQ4EFgQUmQwaPsD+ylVUUsUXMAYpUlnVbNwwHwYD
VR0jBBgwFoAUmQwaPsD+ylVUUsUXMAYpUlnVbNwwDAYDVR0TBAUwAwEB/zANBgkq
hkiG9w0BAQsFAAOCAQEASyl6BMpnZhJlirDL84/RkVeVjBkr7x68UFAblmKjgfGg
pRbYPNSld0IrfZ4pcrDAUkg9WJb0Zxuh0oYiV+RjdW/6s5mF/qiSv8V60xb2myRd
z90ZGfhB5SAECI5zfIZSmsMjOEjKjuz8S26aEtJe8Vq7GF2P7/889lfNXrbvIkZX
HQpx2P+T07zy++6Ca/K2vmWcf1a+GrN+o0nZTYbz/2r/JJwXdWqT1ZmtEA9GNwvZ
J8HhgvspgjgVP/EURUUhOaQ8zfhriU5CJAIuhMhzW7oOBPHxxtxme3auAfxi5zpK
wRNluCayrrjhy2I8mABRnBqgMwAQUIrgk9IU6SyQxw==
-----END CERTIFICATE-----

3154
data/cacert.pem Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,24 @@
<?xml version="1.0"?>
<challenge version="3">
<unlock_list list="false"/>
<track id="abyss" laps="3" reverse="false"/>
<mode major="single" minor="quickrace"/>
<requirements trophies="0"/>
<best>
<karts number="7"/>
<requirements position="1" time="130"/>
</best>
<hard>
<karts number="6"/>
<requirements position="1"/>
</hard>
<medium>
<karts number="5"/>
<requirements position="1"/>
</medium>
<easy>
<karts number="4"/>
<requirements position="1"/>
</easy>
</challenge>

View File

@@ -0,0 +1,26 @@
<?xml version="1.0"?>
<challenge version="3">
<unlock_list list="false"/>
<track id="candela_city" laps="3" reverse="false"/>
<mode major="single" minor="quickrace"/>
<requirements trophies="90"/>
<best>
<karts number="9"/>
<requirements position="1" time="112"/>
</best>
<hard>
<karts number="8"/>
<requirements position="1"/>
</hard>
<medium>
<karts number="7"/>
<requirements position="1"/>
</medium>
<easy>
<karts number="6"/>
<requirements position="1"/>
</easy>
<unlock kart="sara_the_racer"/>
</challenge>

View File

@@ -1,19 +0,0 @@
<?xml version="1.0"?>
<challenge version="2">
<track id="city" laps="3"/>
<mode major="single" minor="quickrace"/>
<requirements trophies="70"/>
<hard>
<karts number="5"/>
<requirements position="1"/>
</hard>
<medium>
<karts number="4"/>
<requirements position="1"/>
</medium>
<easy>
<karts number="3"/>
<requirements position="1"/>
</easy>
</challenge>

View File

@@ -0,0 +1,31 @@
<?xml version="1.0"?>
<challenge version="3">
<unlock_list list="false"/>
<track id="cocoa_temple" laps="3" reverse="false"/>
<mode major="single" minor="timetrial"/>
<requirements trophies="45"/>
<best>
<karts number="1"
replay_file="challenge_cocoa_temple_supertux.replay"/>
<requirements position="1"/>
</best>
<hard>
<karts number="1"
replay_file="challenge_cocoa_temple_expert.replay"/>
<requirements position="1"/>
</hard>
<medium>
<karts number="1"
replay_file="challenge_cocoa_temple_intermediate.replay"/>
<requirements position="1"/>
</medium>
<easy>
<karts number="1"
replay_file="challenge_cocoa_temple_novice.replay"/>
<karts number="1"/>
<requirements position="1"/>
</easy>
<unlock kart="suzanne"/>
</challenge>

View File

@@ -0,0 +1,24 @@
<?xml version="1.0"?>
<challenge version="3">
<unlock_list list="false"/>
<track id="cornfield_crossing" laps="3" reverse="false"/>
<mode major="single" minor="quickrace"/>
<requirements trophies="0"/>
<best>
<karts number="8"/>
<requirements position="1" time="128"/>
</best>
<hard>
<karts number="7"/>
<requirements position="1"/>
</hard>
<medium>
<karts number="6"/>
<requirements position="1"/>
</medium>
<easy>
<karts number="5"/>
<requirements position="1"/>
</easy>
</challenge>

View File

@@ -1,19 +0,0 @@
<?xml version="1.0"?>
<challenge version="2">
<track id="farm" laps="3"/>
<mode major="single" minor="quickrace"/>
<requirements trophies="0"/>
<hard>
<karts number="5"/>
<requirements position="1" time="110"/>
</hard>
<medium>
<karts number="4"/>
<requirements time="125"/>
</medium>
<easy>
<karts number="4"/>
<requirements time="155"/>
</easy>
</challenge>

View File

@@ -1,9 +1,14 @@
<?xml version="1.0"?> <?xml version="1.0"?>
<challenge version="2"> <challenge version="3">
<track id="fortmagma" laps="3"/> <unlock_list list="false"/>
<track id="fortmagma" laps="3" reverse="false"/>
<mode major="single" minor="quickrace"/> <mode major="single" minor="quickrace"/>
<requirements trophies="180"/> <requirements trophies="190" challenges="24"/>
<best>
<karts number="2" aiIdent="nolok" superPower="nolokBoss"/>
<requirements position="1"/>
</best>
<hard> <hard>
<karts number="2" aiIdent="nolok" superPower="nolokBoss"/> <karts number="2" aiIdent="nolok" superPower="nolokBoss"/>
<requirements position="1"/> <requirements position="1"/>
@@ -19,6 +24,5 @@
<unlock kart="gnu"/> <unlock kart="gnu"/>
<unlock kart="nolok"/> <unlock kart="nolok"/>
<unlock difficulty="difficulty_best"/>
<unlock track="fortmagma"/> <unlock track="fortmagma"/>
</challenge> </challenge>

View File

@@ -1,19 +1,24 @@
<?xml version="1.0"?> <?xml version="1.0"?>
<challenge version="2"> <challenge version="3">
<unlock_list list="false"/>
<grandprix id="1_penguinplayground"/> <grandprix id="1_penguinplayground"/>
<mode major="grandprix" minor="quickrace"/> <mode major="grandprix" minor="quickrace"/>
<requirements trophies="40"/> <requirements trophies="30"/>
<best>
<karts number="7"/>
<requirements position="1"/>
</best>
<hard> <hard>
<karts number="5"/> <karts number="6"/>
<requirements position="1"/> <requirements position="1"/>
</hard> </hard>
<medium> <medium>
<karts number="4"/> <karts number="5"/>
<requirements position="1"/> <requirements position="1"/>
</medium> </medium>
<easy> <easy>
<karts number="3"/> <karts number="4"/>
<requirements position="1"/> <requirements position="1"/>
</easy> </easy>
</challenge> </challenge>

View File

@@ -1,19 +1,24 @@
<?xml version="1.0"?> <?xml version="1.0"?>
<challenge version="2"> <challenge version="3">
<unlock_list list="false"/>
<grandprix id="2_offthebeatentrack"/> <grandprix id="2_offthebeatentrack"/>
<mode major="grandprix" minor="quickrace"/> <mode major="grandprix" minor="quickrace"/>
<requirements trophies="85"/> <requirements trophies="70"/>
<best>
<karts number="8"/>
<requirements position="1"/>
</best>
<hard> <hard>
<karts number="5"/> <karts number="7"/>
<requirements position="1"/> <requirements position="1"/>
</hard> </hard>
<medium> <medium>
<karts number="4"/> <karts number="6"/>
<requirements position="1"/> <requirements position="1"/>
</medium> </medium>
<easy> <easy>
<karts number="3"/> <karts number="5"/>
<requirements position="1"/> <requirements position="1"/>
</easy> </easy>
</challenge> </challenge>

View File

@@ -1,19 +1,24 @@
<?xml version="1.0"?> <?xml version="1.0"?>
<challenge version="2"> <challenge version="3">
<unlock_list list="false"/>
<grandprix id="3_tothemoonandback"/> <grandprix id="3_tothemoonandback"/>
<mode major="grandprix" minor="quickrace"/> <mode major="grandprix" minor="timetrial"/>
<requirements trophies="125"/> <requirements trophies="120"/>
<best>
<karts number="9"/>
<requirements position="1"/>
</best>
<hard> <hard>
<karts number="5"/> <karts number="8"/>
<requirements position="1"/> <requirements position="1"/>
</hard> </hard>
<medium> <medium>
<karts number="4"/> <karts number="7"/>
<requirements position="1"/> <requirements position="1"/>
</medium> </medium>
<easy> <easy>
<karts number="3"/> <karts number="6"/>
<requirements position="1"/> <requirements position="1"/>
</easy> </easy>
</challenge> </challenge>

View File

@@ -1,19 +1,24 @@
<?xml version="1.0"?> <?xml version="1.0"?>
<challenge version="2"> <challenge version="3">
<unlock_list list="false"/>
<grandprix id="4_atworldsend"/> <grandprix id="4_atworldsend"/>
<mode major="grandprix" minor="quickrace"/> <mode major="grandprix" minor="quickrace"/>
<requirements trophies="165"/> <requirements trophies="165"/>
<best>
<karts number="10"/>
<requirements position="1"/>
</best>
<hard> <hard>
<karts number="5"/> <karts number="9"/>
<requirements position="1"/> <requirements position="1"/>
</hard> </hard>
<medium> <medium>
<karts number="4"/> <karts number="8"/>
<requirements position="1"/> <requirements position="1"/>
</medium> </medium>
<easy> <easy>
<karts number="3"/> <karts number="7"/>
<requirements position="1"/> <requirements position="1"/>
</easy> </easy>
</challenge> </challenge>

View File

@@ -0,0 +1,24 @@
<?xml version="1.0"?>
<challenge version="3">
<unlock_list list="false"/>
<track id="gran_paradiso_island" laps="3" reverse="false"/>
<mode major="single" minor="quickrace"/>
<requirements trophies="80"/>
<best>
<karts number="9"/>
<requirements position="1" time="134"/>
</best>
<hard>
<karts number="8"/>
<requirements position="1"/>
</hard>
<medium>
<karts number="7"/>
<requirements position="1"/>
</medium>
<easy>
<karts number="6"/>
<requirements position="1"/>
</easy>
</challenge>

View File

@@ -0,0 +1,24 @@
<?xml version="1.0"?>
<challenge version="3">
<unlock_list list="false"/>
<track id="black_forest" laps="2" reverse="false"/>
<mode major="single" minor="quickrace"/>
<requirements trophies="130"/>
<best>
<karts number="10"/>
<requirements position="1" time="170"/>
</best>
<hard>
<karts number="9"/>
<requirements position="1"/>
</hard>
<medium>
<karts number="8"/>
<requirements position="1"/>
</medium>
<easy>
<karts number="7"/>
<requirements position="1"/>
</easy>
</challenge>

View File

@@ -1,19 +1,24 @@
<?xml version="1.0"?> <?xml version="1.0"?>
<challenge version="2"> <challenge version="3">
<track id="hacienda" laps="3"/> <unlock_list list="false"/>
<track id="hacienda" laps="3" reverse="false"/>
<mode major="single" minor="quickrace"/> <mode major="single" minor="quickrace"/>
<requirements trophies="45"/> <requirements trophies="0"/>
<best>
<karts number="7"/>
<requirements position="1" time="124"/>
</best>
<hard> <hard>
<karts number="5"/> <karts number="6"/>
<requirements position="2" time="170"/> <requirements position="1"/>
</hard> </hard>
<medium> <medium>
<karts number="4"/> <karts number="5"/>
<requirements time="185"/> <requirements position="1"/>
</medium> </medium>
<easy> <easy>
<karts number="4"/> <karts number="4"/>
<requirements time="220"/> <requirements position="1"/>
</easy> </easy>
</challenge> </challenge>

View File

@@ -1,20 +0,0 @@
<?xml version="1.0"?>
<challenge version="2">
<track id="gran_paradiso_island" laps="3"/>
<mode major="single" minor="quickrace"/>
<requirements trophies="95"/>
<hard>
<karts number="5"/>
<requirements position="1"/>
</hard>
<medium>
<karts number="4"/>
<requirements position="1"/>
</medium>
<easy>
<karts number="3"/>
<requirements position="1"/>
</easy>
</challenge>

View File

@@ -1,19 +0,0 @@
<?xml version="1.0"?>
<challenge version="2">
<track id="cocoa_temple" laps="3"/>
<mode major="single" minor="quickrace"/>
<requirements trophies="15"/>
<hard>
<karts number="5"/>
<requirements position="1" time="170"/>
</hard>
<medium>
<karts number="4"/>
<requirements time="210"/>
</medium>
<easy>
<karts number="4"/>
<requirements time="300"/>
</easy>
</challenge>

View File

@@ -1,20 +1,24 @@
<?xml version="1.0"?> <?xml version="1.0"?>
<challenge version="2"> <challenge version="3">
<track id="lighthouse" laps="3"/> <unlock_list list="false"/>
<track id="lighthouse" laps="4" reverse="false"/>
<mode major="single" minor="quickrace"/> <mode major="single" minor="quickrace"/>
<requirements trophies="135"/> <requirements trophies="95"/>
<best>
<karts number="9"/>
<requirements position="1" time="120"/>
</best>
<hard> <hard>
<karts number="5"/> <karts number="8"/>
<requirements time="110" position="1"/> <requirements position="1"/>
</hard> </hard>
<medium> <medium>
<karts number="4"/> <karts number="7"/>
<requirements time="145" position="1"/> <requirements position="1"/>
</medium> </medium>
<easy> <easy>
<karts number="3"/> <karts number="6"/>
<requirements time="185"/> <requirements position="1"/>
</easy> </easy>
</challenge> </challenge>

View File

@@ -1,19 +1,24 @@
<?xml version="1.0"?> <?xml version="1.0"?>
<challenge version="2"> <challenge version="3">
<track id="mansion" laps="3"/> <unlock_list list="false"/>
<track id="ravenbridge_mansion" laps="3" reverse="false"/>
<mode major="single" minor="quickrace"/> <mode major="single" minor="quickrace"/>
<requirements trophies="110"/> <requirements trophies="0"/>
<best>
<karts number="8"/>
<requirements position="1" time="130"/>
</best>
<hard> <hard>
<karts number="5"/> <karts number="7"/>
<requirements time="130"/> <requirements position="1"/>
</hard> </hard>
<medium> <medium>
<karts number="4"/> <karts number="6"/>
<requirements time="130"/> <requirements position="1"/>
</medium> </medium>
<easy> <easy>
<karts number="4"/> <karts number="5"/>
<requirements time="160"/> <requirements position="1"/>
</easy> </easy>
</challenge> </challenge>

View File

@@ -1,19 +1,24 @@
<?xml version="1.0"?> <?xml version="1.0"?>
<challenge version="2"> <challenge version="3">
<track id="mines" laps="3"/> <unlock_list list="false"/>
<track id="mines" laps="3" reverse="false"/>
<mode major="single" minor="quickrace"/> <mode major="single" minor="quickrace"/>
<requirements trophies="150"/> <requirements trophies="140"/>
<best>
<karts number="10"/>
<requirements position="1" time="122"/>
</best>
<hard> <hard>
<karts number="4"/> <karts number="9"/>
<requirements time="170"/> <requirements position="1"/>
</hard> </hard>
<medium> <medium>
<karts number="4"/> <karts number="8"/>
<requirements time="190"/> <requirements position="1"/>
</medium> </medium>
<easy> <easy>
<karts number="4"/> <karts number="7"/>
<requirements time="255"/> <requirements position="1"/>
</easy> </easy>
</challenge> </challenge>

View File

@@ -1,19 +1,24 @@
<?xml version="1.0"?> <?xml version="1.0"?>
<challenge version="2"> <challenge version="3">
<track id="minigolf" laps="3"/> <unlock_list list="false"/>
<track id="minigolf" laps="4" reverse="false"/>
<mode major="single" minor="quickrace"/> <mode major="single" minor="quickrace"/>
<requirements trophies="150"/> <requirements trophies="125"/>
<best>
<karts number="10"/>
<requirements position="1" time="116"/>
</best>
<hard> <hard>
<karts number="5"/> <karts number="9"/>
<requirements position="1"/> <requirements position="1"/>
</hard> </hard>
<medium> <medium>
<karts number="4"/> <karts number="8"/>
<requirements position="1"/> <requirements position="1"/>
</medium> </medium>
<easy> <easy>
<karts number="3"/> <karts number="7"/>
<requirements position="1"/> <requirements position="1"/>
</easy> </easy>
</challenge> </challenge>

View File

@@ -1,20 +1,24 @@
<?xml version="1.0"?> <?xml version="1.0"?>
<challenge version="2"> <challenge version="3">
<track id="olivermath" laps="3"/> <unlock_list list="false"/>
<track id="olivermath" laps="5" reverse="false"/>
<mode major="single" minor="quickrace"/> <mode major="single" minor="quickrace"/>
<requirements trophies="0"/> <requirements trophies="75"/>
<best>
<karts number="9"/>
<requirements position="1" time="77"/>
</best>
<hard> <hard>
<karts number="5"/> <karts number="8"/>
<requirements position="1" time="65"/> <requirements position="1"/>
</hard> </hard>
<medium> <medium>
<karts number="5"/> <karts number="7"/>
<requirements position="1" time="85"/> <requirements position="1"/>
</medium> </medium>
<easy> <easy>
<karts number="5"/> <karts number="6"/>
<requirements position="1" time="105"/> <requirements position="1"/>
</easy> </easy>
</challenge> </challenge>

View File

@@ -1,16 +1,21 @@
<?xml version="1.0"?> <?xml version="1.0"?>
<challenge version="2"> <challenge version="3">
<track id="sandtrack" laps="3"/> <unlock_list list="false"/>
<mode major="single" minor="quickrace"/> <track id="sandtrack" laps="3" reverse="false"/>
<mode major="single" minor="timetrial"/>
<requirements trophies="0"/> <requirements trophies="0"/>
<best>
<karts number="1"/>
<requirements energy="20" time="128"/>
</best>
<hard> <hard>
<karts number="1"/> <karts number="1"/>
<requirements energy="18" time="167"/> <requirements energy="18" time="155"/>
</hard> </hard>
<medium> <medium>
<karts number="1"/> <karts number="1"/>
<requirements energy="15" time="195"/> <requirements energy="15" time="190"/>
</medium> </medium>
<easy> <easy>
<karts number="1"/> <karts number="1"/>

View File

@@ -1,19 +1,24 @@
<?xml version="1.0"?> <?xml version="1.0"?>
<challenge version="2"> <challenge version="3">
<track id="scotland" laps="3"/> <unlock_list list="false"/>
<track id="scotland" laps="3" reverse="false"/>
<mode major="single" minor="quickrace"/> <mode major="single" minor="quickrace"/>
<requirements trophies="0"/> <requirements trophies="0"/>
<best>
<karts number="7"/>
<requirements position="1" time="125"/>
</best>
<hard> <hard>
<karts number="5"/> <karts number="6"/>
<requirements position="1" time="165"/> <requirements position="1" time="150"/>
</hard> </hard>
<medium> <medium>
<karts number="4"/> <karts number="5"/>
<requirements time="185"/> <requirements position="1"/>
</medium> </medium>
<easy> <easy>
<karts number="4"/> <karts number="4"/>
<requirements time="270"/> <requirements position="1"/>
</easy> </easy>
</challenge> </challenge>

View File

@@ -1,19 +1,24 @@
<?xml version="1.0"?> <?xml version="1.0"?>
<challenge version="2"> <challenge version="3">
<track id="snowmountain" laps="3"/> <unlock_list list="false"/>
<track id="snowmountain" laps="3" reverse="false"/>
<mode major="single" minor="quickrace"/> <mode major="single" minor="quickrace"/>
<requirements trophies="60"/> <requirements trophies="105"/>
<best>
<karts number="9"/>
<requirements position="1" time="110"/>
</best>
<hard> <hard>
<karts number="5"/> <karts number="8"/>
<requirements time="160"/> <requirements position="1"/>
</hard> </hard>
<medium> <medium>
<karts number="4"/> <karts number="7"/>
<requirements time="187"/> <requirements position="1"/>
</medium> </medium>
<easy> <easy>
<karts number="4"/> <karts number="6"/>
<requirements time="250"/> <requirements position="1"/>
</easy> </easy>
</challenge> </challenge>

View File

@@ -1,19 +1,24 @@
<?xml version="1.0"?> <?xml version="1.0"?>
<challenge version="2"> <challenge version="3">
<track id="snowtuxpeak" laps="3"/> <unlock_list list="false"/>
<track id="snowtuxpeak" laps="3" reverse="false"/>
<mode major="single" minor="quickrace"/> <mode major="single" minor="quickrace"/>
<requirements trophies="60"/> <requirements trophies="0"/>
<best>
<karts number="8"/>
<requirements position="1" time="105"/>
</best>
<hard> <hard>
<karts number="5"/> <karts number="7"/>
<requirements position="1" time="145"/> <requirements position="1"/>
</hard> </hard>
<medium> <medium>
<karts number="4"/> <karts number="6"/>
<requirements time="170"/> <requirements position="1"/>
</medium> </medium>
<easy> <easy>
<karts number="4"/> <karts number="5"/>
<requirements time="195"/> <requirements position="1"/>
</easy> </easy>
</challenge> </challenge>

View File

@@ -1,19 +0,0 @@
<?xml version="1.0"?>
<challenge version="2">
<track id="stk_enterprise" laps="3"/>
<mode major="single" minor="followtheleader"/>
<requirements trophies="110"/>
<hard>
<karts number="6"/>
<requirements position="2"/>
</hard>
<medium>
<karts number="6"/>
<requirements position="2"/>
</medium>
<easy>
<karts number="5"/>
<requirements position="2"/>
</easy>
</challenge>

View File

@@ -0,0 +1,24 @@
<?xml version="1.0"?>
<challenge version="3">
<unlock_list list="false"/>
<track id="stk_enterprise" laps="3" reverse="false"/>
<mode major="single" minor="timetrial"/>
<requirements trophies="145"/>
<best>
<karts number="10"/>
<requirements position="1" time="132"/>
</best>
<hard>
<karts number="9"/>
<requirements position="1"/>
</hard>
<medium>
<karts number="8"/>
<requirements position="1"/>
</medium>
<easy>
<karts number="7"/>
<requirements position="1"/>
</easy>
</challenge>

View File

@@ -1,19 +0,0 @@
<?xml version="1.0"?>
<challenge version="2">
<track id="subsea" laps="2"/>
<mode major="single" minor="quickrace"/>
<requirements trophies="0"/>
<hard>
<karts number="5"/>
<requirements position="1" time="205"/>
</hard>
<medium>
<karts number="4"/>
<requirements time="225"/>
</medium>
<easy>
<karts number="4"/>
<requirements time="290"/>
</easy>
</challenge>

View File

@@ -1,19 +0,0 @@
<?xml version="1.0"?>
<challenge version="2">
<track id="greenvalley" laps="3"/>
<mode major="single" minor="quickrace"/>
<requirements trophies="95"/>
<hard>
<karts number="5"/>
<requirements position="1"/>
</hard>
<medium>
<karts number="4"/>
<requirements position="1"/>
</medium>
<easy>
<karts number="4"/>
<requirements position="1"/>
</easy>
</challenge>

View File

@@ -0,0 +1,8 @@
<?xml version="1.0"?>
<challenge version="3">
<unlock_list list="true"/>
<!-- This is the (rounded) point equivalent of finishing all challenges
in easy, except the final challenge -->
<requirements trophies="190"/>
<unlock kart="amanda"/>
</challenge>

View File

@@ -0,0 +1,8 @@
<?xml version="1.0"?>
<challenge version="3">
<unlock_list list="true"/>
<!-- This is the point equivalent of finishing the
story mode with 8 supertux challenges and the rest in gold -->
<requirements trophies="280"/>
<unlock kart="sara_the_wizard"/>
</challenge>

View File

@@ -0,0 +1,9 @@
<?xml version="1.0"?>
<challenge version="3">
<unlock_list list="true"/>
<!-- This is the point equivalent of finishing the
story mode with all gold except 14 silver challenges -->
<requirements trophies="250"/>
<alt_requirements max-req-in-lower-diff="5"/>
<unlock difficulty="difficulty_best"/>
</challenge>

View File

@@ -0,0 +1,24 @@
<?xml version="1.0"?>
<challenge version="3">
<unlock_list list="false"/>
<track id="volcano_island" laps="2" reverse="false"/>
<mode major="single" minor="quickrace"/>
<requirements trophies="0"/>
<best>
<karts number="7"/>
<requirements position="1" time="138"/>
</best>
<hard>
<karts number="6"/>
<requirements position="1"/>
</hard>
<medium>
<karts number="5"/>
<requirements position="1"/>
</medium>
<easy>
<karts number="4"/>
<requirements position="1"/>
</easy>
</challenge>

View File

@@ -1,12 +1,17 @@
<?xml version="1.0"?> <?xml version="1.0"?>
<challenge version="2"> <challenge version="3">
<track id="xr591" laps="2"/> <unlock_list list="false"/>
<mode major="single" minor="quickrace"/> <track id="xr591" laps="2" reverse="false"/>
<requirements trophies="135"/> <mode major="single" minor="timetrial"/>
<requirements trophies="150"/>
<best>
<karts number="1"/>
<requirements energy="20" time="92"/>
</best>
<hard> <hard>
<karts number="1"/> <karts number="1"/>
<requirements energy="18" time="120"/> <requirements energy="18" time="112"/>
</hard> </hard>
<medium> <medium>
<karts number="1"/> <karts number="1"/>
@@ -17,5 +22,3 @@
<requirements energy="12" time="180"/> <requirements energy="12" time="180"/>
</easy> </easy>
</challenge> </challenge>

View File

@@ -1,19 +1,24 @@
<?xml version="1.0"?> <?xml version="1.0"?>
<challenge version="2"> <challenge version="3">
<track id="zengarden" laps="3"/> <unlock_list list="false"/>
<track id="zengarden" laps="4" reverse="false"/>
<mode major="single" minor="timetrial"/> <mode major="single" minor="timetrial"/>
<requirements trophies="45"/> <requirements trophies="35"/>
<best>
<karts number="8"/>
<requirements position="1" time="105"/>
</best>
<hard> <hard>
<karts number="2"/> <karts number="7"/>
<requirements position="1"/> <requirements position="1"/>
</hard> </hard>
<medium> <medium>
<karts number="2"/> <karts number="6"/>
<requirements position="1"/> <requirements position="1"/>
</medium> </medium>
<easy> <easy>
<karts number="2"/> <karts number="5"/>
<requirements position="1"/> <requirements position="1"/>
</easy> </easy>
</challenge> </challenge>

259
data/country_names.tsv Normal file
View File

@@ -0,0 +1,259 @@
country_code ar be bg br bs ca cs da de el en eo es et eu fa fi fr fr-CA ga gd gl he hr hu ia id is it ja ko kw ky lt lv ml mn-MN nb nl nn os pl pt pt-BR ro ru sk sl sq sr sv sw th tr tt uk uz vi zh-CN zh-TW
AC جزيرة أسينشيون Востраў Узнясення остров Възнесение Enez Ascension Ostrvo Ascension Illa de lAscensió Ascension Ascensionøen Ascension Νήσος Ασενσιόν Ascension Island Ascension Island Isla de la Ascensión Ascensioni saar Ascension uhartea جزایر آسنسیون Ascension-saari Île de lAscension Île de lAscension Oileán na Deascabhála Eilean na Deasgabhalach Illa de Ascensión האי אסנשן Otok Ascension Ascension-sziget Ascension Island Pulau Ascension Ascension-eyja Isola Ascensione アセンション島 어센션 섬 Ascension Island Вознесение аралы Dangun Žengimo sala Debesbraukšanas sala അസൻഷൻ ദ്വീപ് Асенсион арал Ascension Ascension Ascension Ascension Island Wyspa Wniebowstąpienia Ilha de Ascensão Ilha de Ascensão Insula Ascension о-в Вознесения Ascension Otok Ascension Ishulli Asenshion Острво Асенсион Ascension Kisiwa cha Ascension เกาะแอสเซนชัน Ascension Adası Ascension Island Острів Вознесіння Meroj oroli Đảo Ascension 阿森松岛 阿森松島
AD أندورا Андора Андора Andorra Andora Andorra Andorra Andorra Andorra Ανδόρα Andorra Andoro Andorra Andorra Andorra آندورا Andorra Andorre Andorre Andóra Andorra Andorra אנדורה Andora Andorra Andorra Andorra Andorra Andorra アンドラ 안도라 Andorra Андорра Andora Andora അൻഡോറ Андорра Andorra Andorra Andorra Andorra Andora Andorra Andorra Andorra Андорра Andorra Andora Andorrë Андора Andorra Andorra อันดอร์รา Andorra Андорра Андорра Andorra Andorra 安道尔 安道爾
AE الإمارات العربية المتحدة Аб’яднаныя Арабскія Эміраты Обединени арабски емирства Emirelezhioù Arab Unanet Ujedinjeni Arapski Emirati Emirats Àrabs Units Spojené arabské emiráty De Forenede Arabiske Emirater Vereinigte Arabische Emirate Ηνωμένα Αραβικά Εμιράτα United Arab Emirates Unuiĝintaj Arabaj Emirlandoj Emiratos Árabes Unidos Araabia Ühendemiraadid Arabiar Emirerri Batuak امارات متحدهٔ عربی Arabiemiirikunnat Émirats arabes unis Émirats arabes unis Aontas na nÉimíríochtaí Arabacha Na h-Iomaratan Arabach Aonaichte Os Emiratos Árabes Unidos איחוד האמירויות הערביות Ujedinjeni Arapski Emirati Egyesült Arab Emírségek Emiratos Arabe Unite Uni Emirat Arab Sameinuðu arabísku furstadæmin Emirati Arabi Uniti アラブ首長国連邦 아랍에미리트 United Arab Emirates Бириккен Араб Эмираттары Jungtiniai Arabų Emyratai Apvienotie Arābu Emirāti യുണൈറ്റഡ് അറബ് എമിറൈറ്റ്‌സ് Арабын Нэгдсэн Эмирт Улс De forente arabiske emirater Verenigde Arabische Emiraten Dei sameinte arabiske emirata United Arab Emirates Zjednoczone Emiraty Arabskie Emirados Árabes Unidos Emirados Árabes Unidos Emiratele Arabe Unite ОАЭ Spojené arabské emiráty Združeni arabski emirati Emiratet e Bashkuara Arabe Уједињени Арапски Емирати Förenade Arabemiraten Falme za Kiarabu สหรัฐอาหรับเอมิเรตส์ Birleşik Arap Emirlikleri Берләшкән Гарәп Әмирлекләре Обʼєднані Арабські Емірати Birlashgan Arab Amirliklari Các Tiểu Vương quốc Ả Rập Thống nhất 阿拉伯联合酋长国 阿拉伯聯合大公國
AF أفغانستان Афганістан Афганистан Afghanistan Afganistan Afganistan Afghánistán Afghanistan Afghanistan Αφγανιστάν Afghanistan Afganujo Afganistán Afganistan Afganistan افغانستان Afganistan Afghanistan Afghanistan an Afganastáin Afghanastàn Afganistán אפגניסטן Afganistan Afganisztán Afghanistan Afganistan Afganistan Afghanistan アフガニスタン 아프가니스탄 Afghanistan Афганистан Afganistanas Afganistāna അഫ്‌ഗാനിസ്ഥാൻ Афганистан Afghanistan Afghanistan Afghanistan Afghanistan Afganistan Afeganistão Afeganistão Afganistan Афганистан Afganistan Afganistan Afganistan Авганистан Afghanistan Afghanistan อัฟกานิสถาน Afganistan Әфганстан Афганістан Afgʻoniston Afghanistan 阿富汗 阿富汗
AG أنتيغوا وبربودا Антыгуа і Барбуда Антигуа и Барбуда Antigua ha Barbuda Antigva i Barbuda Antigua i Barbuda Antigua a Barbuda Antigua og Barbuda Antigua und Barbuda Αντίγκουα και Μπαρμπούντα Antigua & Barbuda Antigvo-Barbudo Antigua y Barbuda Antigua ja Barbuda Antigua eta Barbuda آنتیگوا و باربودا Antigua ja Barbuda Antigua-et-Barbuda Antigua-et-Barbuda Antigua agus Barbúda Aintìoga is Barbuda Antigua e Barbuda אנטיגואה וברבודה Antigva i Barbuda Antigua és Barbuda Antigua e Barbuda Antigua dan Barbuda Antígva og Barbúda Antigua e Barbuda アンティグア・バーブーダ 앤티가 바부다 Antigua & Barbuda Антигуа жана Барбуда Antigva ir Barbuda Antigva un Barbuda ആൻറിഗ്വയും ബർബുഡയും Антигуа ба Барбуда Antigua og Barbuda Antigua en Barbuda Antigua og Barbuda Antigua & Barbuda Antigua i Barbuda Antígua e Barbuda Antígua e Barbuda Antigua și Barbuda Антигуа и Барбуда Antigua a Barbuda Antigva in Barbuda Antigua e Barbuda Антигва и Барбуда Antigua och Barbuda Antigua na Barbuda แอนติกาและบาร์บูดา Antigua ve Barbuda Антигуа һәм Барбуда Антиґуа і Барбуда Antigua va Barbuda Antigua và Barbuda 安提瓜和巴布达 安地卡及巴布達
AI أنغويلا Ангілья Ангуила Anguilla Angvila Anguilla Anguilla Anguilla Anguilla Ανγκουίλα Anguilla Angvilo Anguila Anguilla Aingira آنگویلا Anguilla Anguilla Anguilla Angaíle Anguillia Anguila אנגווילה Angvila Anguilla Anguilla Anguilla Angvilla Anguilla アンギラ 앵귈라 Anguilla Ангилья Angilija Angilja ആൻഗ്വില്ല Ангилья Anguilla Anguilla Anguilla Anguilla Anguilla Anguila Anguila Anguilla Ангилья Anguilla Angvila Anguilë Ангвила Anguilla Anguilla แองกวิลลา Anguilla Ангилья Анґілья Angilya Anguilla 安圭拉 安奎拉
AL ألبانيا Албанія Албания Albania Albanija Albània Albánie Albanien Albanien Αλβανία Albania Albanujo Albania Albaania Albania آلبانی Albania Albanie Albanie an Albáin Albàinia Albania אלבניה Albanija Albánia Albania Albania Albanía Albania アルバニア 알바니아 Albania Албания Albanija Albānija അൽബേനിയ Албани Albania Albanië Albania Albania Albania Albânia Albânia Albania Албания Albánsko Albanija Shqipëri Албанија Albanien Albania แอลเบเนีย Arnavutluk Албания Албанія Albaniya Albania 阿尔巴尼亚 阿爾巴尼亞
AM أرمينيا Арменія Армения Armenia Armenija Armènia Arménie Armenien Armenien Αρμενία Armenia Armenujo Armenia Armeenia Armenia ارمنستان Armenia Arménie Arménie an Airméin Airmeinea Armenia ארמניה Armenija Örményország Armenia Armenia Armenía Armenia アルメニア 아르메니아 Armenia Армения Armėnija Armēnija അർമേനിയ Армени Armenia Armenië Armenia Armenia Armenia Armênia Armênia Armenia Армения Arménsko Armenija Armeni Јерменија Armenien Armenia อาร์เมเนีย Ermenistan Әрмәнстан Вірменія Armaniston Armenia 亚美尼亚 亞美尼亞
AO أنغولا Ангола Ангола Angola Angola Angola Angola Angola Angola Αγκόλα Angola Angolo Angola Angola Angola آنگولا Angola Angola Angola Angóla Angòla Angola אנגולה Angola Angola Angola Angola Angóla Angola アンゴラ 앙골라 Angola Ангола Angola Angola അംഗോള Ангол Angola Angola Angola Angola Angola Angola Angola Angola Ангола Angola Angola Angolë Ангола Angola Angola แองโกลา Angola Ангола Ангола Angola Angola 安哥拉 安哥拉
AQ أنتاركتيكا Антарктыка Антарктика Antarktika Antarktika Antàrtida Antarktida Antarktis Antarktis Ανταρκτική Antarctica Antarkto Antártida Antarktika Antartika جنوبگان Antarktis Antarctique Antarctique an Antartaice An Antartaig A Antártida אנטארקטיקה Antarktika Antarktisz Antarctica Antarktika Suðurskautslandið Antartide 南極 남극 대륙 Antarctica Антарктида Antarktida Antarktika അന്റാർട്ടിക്ക Антарктид Antarktis Antarctica Antarktis Antarctica Antarktyda Antártida Antártida Antarctica Антарктида Antarktída Antarktika Antarktikë Антарктик Antarktis Antaktiki แอนตาร์กติกา Antarktika Антарктика Антарктика Antarktida Nam Cực 南极洲 南極洲
AR الأرجنتين Аргенціна Аржентина Arcʼhantina Argentina Argentina Argentina Argentina Argentinien Αργεντινή Argentina Argentino Argentina Argentina Argentina آرژانتین Argentiina Argentine Argentine an Airgintín An Argantain A Arxentina ארגנטינה Argentina Argentína Argentina Argentina Argentína Argentina アルゼンチン 아르헨티나 Argentina Аргентина Argentina Argentīna അർജന്റീന Аргентин Argentina Argentinië Argentina Argentina Argentyna Argentina Argentina Argentina Аргентина Argentína Argentina Argjentinë Аргентина Argentina Ajentina อาร์เจนตินา Arjantin Аргентина Аргентина Argentina Argentina 阿根廷 阿根廷
AS ساموا الأمريكية Амерыканскае Самоа Американска Самоа Samoa Amerikan Američka Samoa Samoa Nord-americana Americká Samoa Amerikansk Samoa Amerikanisch-Samoa Αμερικανική Σαμόα American Samoa American Samoa Samoa Americana Ameerika Samoa Samoa Estatubatuarra ساموآی امریکا Amerikan Samoa Samoa américaines Samoa américaines Samó Mheiriceá Samotha na h-Aimeireaga Samoa Americana סמואה האמריקנית Američka Samoa Amerikai Szamoa Samoa american Samoa Amerika Bandaríska Samóa Samoa americane 米領サモア 아메리칸 사모아 American Samoa Америкалык Самоа Amerikos Samoa ASV Samoa അമേരിക്കൻ സമോവ Америкийн Самоа Amerikansk Samoa Amerikaans-Samoa Amerikansk Samoa American Samoa Samoa Amerykańskie Samoa Americana Samoa Americana Samoa Americană Американское Самоа Americká Samoa Ameriška Samoa Samoa Amerikane Америчка Самоа Amerikanska Samoa Samoa ya Marekani อเมริกันซามัว Amerikan Samoası Америка Самоасы Американське Самоа Amerika Samoasi Samoa thuộc Mỹ 美属萨摩亚 美屬薩摩亞
AT النمسا Аўстрыя Австрия Aostria Austrija Àustria Rakousko Østrig Österreich Αυστρία Austria Aŭstrujo Austria Austria Austria اتریش Itävalta Autriche Autriche an Ostair An Ostair Austria אוסטריה Austrija Ausztria Austria Austria Austurríki Austria オーストリア 오스트리아 Austria Австрия Austrija Austrija ഓസ്ട്രിയ Австри Østerrike Oostenrijk Austerrike Austria Austria Áustria Áustria Austria Австрия Rakúsko Avstrija Austri Аустрија Österrike Austria ออสเตรีย Avusturya Австрия Австрія Avstriya Áo 奥地利 奧地利
AU أستراليا Аўстралія Австралия Aostralia Australija Austràlia Austrálie Australien Australien Αυστραλία Australia Aŭstralio Australia Austraalia Australia استرالیا Australia Australie Australie an Astráil Astràilia Australia אוסטרליה Australija Ausztrália Australia Australia Ástralía Australia オーストラリア 오스트레일리아 Australia Австралия Australija Austrālija ഓസ്‌ട്രേലിയ Австрали Australia Australië Australia Australia Australia Austrália Austrália Australia Австралия Austrália Avstralija Australi Аустралија Australien Australia ออสเตรเลีย Avustralya Австралия Австралія Avstraliya Australia 澳大利亚 澳洲
AW أروبا Аруба Аруба Aruba Aruba Aruba Aruba Aruba Aruba Αρούμπα Aruba Arubo Aruba Aruba Aruba آروبا Aruba Aruba Aruba Arúba Arùba Aruba ארובה Aruba Aruba Aruba Aruba Arúba Aruba アルバ 아루바 Aruba Аруба Aruba Aruba അറൂബ Аруба Aruba Aruba Aruba Aruba Aruba Aruba Aruba Aruba Аруба Aruba Aruba Arubë Аруба Aruba Aruba อารูบา Aruba Аруба Аруба Aruba Aruba 阿鲁巴 荷屬阿魯巴
AX جزر آلاند Аландскія астравы Оландски острови Inizi Åland Olandska ostrva Illes Åland Ålandy Åland Ålandinseln Νήσοι Όλαντ Åland Islands Åland Islands Islas Åland Ahvenamaa Åland جزایر آلاند Ahvenanmaa Îles Åland Îles Åland Oileáin Åland Na h-Eileanan Åland Illas Åland איי אולנד Ålandski otoci Åland-szigetek Insulas Åland Kepulauan Aland Álandseyjar Isole Åland オーランド諸島 올란드 제도 Åland Islands Аланд аралдары Alandų Salos Olandes salas അലൻഡ് ദ്വീപുകൾ Аландын арлууд Åland Åland Åland Åland Islands Wyspy Alandzkie Ilhas Aland Ilhas Aland Insulele Åland Аландские о-ва Alandy Ålandski otoki Ishujt Alandë Оландска Острва Åland Visiwa vya Aland หมู่เกาะโอลันด์ Åland Adaları Аланд утраулары Аландські Острови Aland orollari Quần đảo Åland 奥兰群岛 奧蘭群島
AZ أذربيجان Азербайджан Азербайджан Azerbaidjan Azerbejdžan Azerbaidjan Ázerbájdžán Aserbajdsjan Aserbaidschan Αζερμπαϊτζάν Azerbaijan Azerbajĝano Azerbaiyán Aserbaidžaan Azerbaijan جمهوری آذربایجان Azerbaidžan Azerbaïdjan Azerbaïdjan an Asarbaiseáin Asarbaideàn Acerbaixán אזרבייג׳ן Azerbajdžan Azerbajdzsán Azerbaidzhan Azerbaijan Aserbaídsjan Azerbaigian アゼルバイジャン 아제르바이잔 Azerbaijan Азербайжан Azerbaidžanas Azerbaidžāna അസർബൈജാൻ Азербайжан Aserbajdsjan Azerbeidzjan Aserbajdsjan Azerbaijan Azerbejdżan Azerbaijão Azerbaijão Azerbaidjan Азербайджан Azerbajdžan Azerbajdžan Azerbajxhan Азербејџан Azerbajdzjan Azerbaijani อาเซอร์ไบจาน Azerbaycan Әзәрбайҗан Азербайджан Ozarbayjon Azerbaijan 阿塞拜疆 亞塞拜然
BA البوسنة والهرسك Боснія і Герцагавіна Босна и Херцеговина Bosnia ha Herzegovina Bosna i Hercegovina Bòsnia i Hercegovina Bosna a Hercegovina Bosnien-Hercegovina Bosnien und Herzegowina Βοσνία - Ερζεγοβίνη Bosnia & Herzegovina Bosnio-Hercegovino Bosnia y Herzegovina Bosnia ja Hertsegoviina Bosnia-Herzegovina بوسنی و هرزگوین Bosnia ja Hertsegovina Bosnie-Herzégovine Bosnie-Herzégovine an Bhoisnia agus an Heirseagaivéin Bosna is Hearsagobhana Bosnia e Hercegovina בוסניה והרצגובינה Bosna i Hercegovina Bosznia-Hercegovina Bosnia e Herzegovina Bosnia dan Herzegovina Bosnía og Hersegóvína Bosnia ed Erzegovina ボスニア・ヘルツェゴビナ 보스니아 헤르체고비나 Bosnia & Herzegovina Босния жана Герцеговина Bosnija ir Hercegovina Bosnija un Hercegovina ബോസ്നിയയും ഹെർസഗോവിനയും Босни-Герцеговин Bosnia-Hercegovina Bosnië en Herzegovina Bosnia-Hercegovina Bosnia & Herzegovina Bośnia i Hercegowina Bósnia e Herzegovina Bósnia e Herzegovina Bosnia și Herțegovina Босния и Герцеговина Bosna a Hercegovina Bosna in Hercegovina Bosnjë-Hercegovinë Босна и Херцеговина Bosnien och Hercegovina Bosnia na Hezegovina บอสเนียและเฮอร์เซโกวีนา Bosna-Hersek Босния һәм Герцеговина Боснія і Герцеґовина Bosniya va Gertsegovina Bosnia và Herzegovina 波斯尼亚和黑塞哥维那 波士尼亞與赫塞哥維納
BB بربادوس Барбадас Барбадос Barbados Barbados Barbados Barbados Barbados Barbados Μπαρμπέιντος Barbados Barbado Barbados Barbados Barbados باربادوس Barbados Barbade Barbade Barbadós Barbados Barbados ברבדוס Barbados Barbados Barbados Barbados Barbados Barbados バルバドス 바베이도스 Barbados Барбадос Barbadosas Barbadosa ബാർബഡോസ് Барбадос Barbados Barbados Barbados Barbados Barbados Barbados Barbados Barbados Барбадос Barbados Barbados Barbados Барбадос Barbados Babadosi บาร์เบโดส Barbados Барбадос Барбадос Barbados Barbados 巴巴多斯 巴貝多
BD بنغلاديش Бангладэш Бангладеш Bangladesh Bangladeš Bangladesh Bangladéš Bangladesh Bangladesch Μπανγκλαντές Bangladesh Bangladeŝo Bangladés Bangladesh Bangladesh بنگلادش Bangladesh Bangladesh Bangladesh an Bhanglaidéis Bangladais Bangladesh בנגלדש Bangladeš Banglades Bangladesh Bangladesh Bangladess Bangladesh バングラデシュ 방글라데시 Bangladesh Бангладеш Bangladešas Bangladeša ബംഗ്ലാദേശ് Бангладеш Bangladesh Bangladesh Bangladesh Bangladesh Bangladesz Bangladesh Bangladesh Bangladesh Бангладеш Bangladéš Bangladeš Bangladesh Бангладеш Bangladesh Bangladeshi บังกลาเทศ Bangladeş Бангладеш Бангладеш Bangladesh Bangladesh 孟加拉国 孟加拉
BE بلجيكا Бельгія Белгия Belgia Belgija Bèlgica Belgie Belgien Belgien Βέλγιο Belgium Belgujo Bélgica Belgia Belgika بلژیک Belgia Belgique Belgique an Bheilg A Bheilg Bélxica בלגיה Belgija Belgium Belgica Belgia Belgía Belgio ベルギー 벨기에 Belgium Бельгия Belgija Beļģija ബെൽജിയം Бельги Belgia België Belgia Belgium Belgia Bélgica Bélgica Belgia Бельгия Belgicko Belgija Belgjikë Белгија Belgien Ubelgiji เบลเยียม Belçika Бельгия Бельґія Belgiya Bỉ 比利时 比利時
BF بوركينا فاسو Буркіна-Фасо Буркина Фасо Burkina Faso Burkina Faso Burkina Faso Burkina Faso Burkina Faso Burkina Faso Μπουρκίνα Φάσο Burkina Faso Burkino Burkina Faso Burkina Faso Burkina Faso بورکینافاسو Burkina Faso Burkina Faso Burkina Faso Buircíne Fasó Buirciona Faso Burkina Faso בורקינה פאסו Burkina Faso Burkina Faso Burkina Faso Burkina Faso Búrkína Fasó Burkina Faso ブルキナファソ 부르키나파소 Burkina Faso Буркина-Фасо Burkina Fasas Burkinafaso ബർക്കിന ഫാസോ Буркина Фасо Burkina Faso Burkina Faso Burkina Faso Burkina Faso Burkina Faso Burquina Faso Burquina Faso Burkina Faso Буркина-Фасо Burkina Faso Burkina Faso Burkina-Faso Буркина Фасо Burkina Faso Bukinafaso บูร์กินาฟาโซ Burkina Faso Буркина-Фасо Буркіна-Фасо Burkina-Faso Burkina Faso 布基纳法索 布吉納法索
BG بلغاريا Балгарыя България Bulgaria Bugarska Bulgària Bulharsko Bulgarien Bulgarien Βουλγαρία Bulgaria Bulgarujo Bulgaria Bulgaaria Bulgaria بلغارستان Bulgaria Bulgarie Bulgarie an Bhulgáir A Bhulgair Bulgaria בולגריה Bugarska Bulgária Bulgaria Bulgaria Búlgaría Bulgaria ブルガリア 불가리아 Bulgaria Болгария Bulgarija Bulgārija ബൾഗേറിയ Болгар Bulgaria Bulgarije Bulgaria Bulgaria Bułgaria Bulgária Bulgária Bulgaria Болгария Bulharsko Bolgarija Bullgari Бугарска Bulgarien Bulgaria บัลแกเรีย Bulgaristan Болгария Болгарія Bolgariya Bulgaria 保加利亚 保加利亞
BH البحرين Бахрэйн Бахрейн Bahrein Bahrein Bahrain Bahrajn Bahrain Bahrain Μπαχρέιν Bahrain Barejno Baréin Bahrein Bahrain بحرین Bahrain Bahreïn Bahreïn Bairéin Bachrain Bahrain בחריין Bahrein Bahrein Bahrain Bahrain Barein Bahrein バーレーン 바레인 Bahrain Бахрейн Bahreinas Bahreina ബഹ്റിൻ Бахрейн Bahrain Bahrein Bahrain Bahrain Bahrajn Bahrein Bahrein Bahrain Бахрейн Bahrajn Bahrajn Bahrejn Бахреин Bahrain Bahareni บาห์เรน Bahreyn Бәхрәйн Бахрейн Bahrayn Bahrain 巴林 巴林
BI بوروندي Бурундзі Бурунди Burundi Burundi Burundi Burundi Burundi Burundi Μπουρούντι Burundi Burundo Burundi Burundi Burundi بوروندی Burundi Burundi Burundi an Bhurúin Burundaidh Burundi בורונדי Burundi Burundi Burundi Burundi Búrúndí Burundi ブルンジ 부룬디 Burundi Бурунди Burundis Burundija ബറുണ്ടി Бурунди Burundi Burundi Burundi Burundi Burundi Burundi Burundi Burundi Бурунди Burundi Burundi Burundi Бурунди Burundi Burundi บุรุนดี Burundi Бурунди Бурунді Burundi Burundi 布隆迪 蒲隆地
BJ بنين Бенін Бенин Benin Benin Benín Benin Benin Benin Μπενίν Benin Benino Benín Benin Benin بنین Benin Bénin Bénin Beinin Beinin Benín בנין Benin Benin Benin Benin Benín Benin ベナン 베냉 Benin Бенин Beninas Benina ബെനിൻ Бенин Benin Benin Benin Benin Benin Benin Benin Benin Бенин Benin Benin Benin Бенин Benin Benin เบนิน Benin Бенин Бенін Benin Benin 贝宁 貝南
BL سان بارتليمي Сен-Бартэльмі Сен Бартелеми Saint Barthélemy Sveti Bartolomej Saint Barthélemy Svatý Bartoloměj Saint Barthélemy St. Barthélemy Άγιος Βαρθολομαίος St. Barthélemy St. Barthélemy San Bartolomé Saint-Barthélemy Saint Barthélemy سن بارتلمی Saint-Barthélemy Saint-Barthélemy Saint-Barthélemy Saint Barthélemy Saint Barthélemy Saint Barthélemy סנט ברתולומיאו Saint Barthélemy Saint-Barthélemy St. Barthélemy Saint Barthélemy Sankti Bartólómeusareyjar Saint-Barthélemy サン・バルテルミー 생바르텔레미 St. Barthélemy Сент Бартелеми Sen Bartelemi Senbartelmī സെന്റ് ബാർത്തലമി Сент-Бартельми Saint-Barthélemy Saint-Barthélemy Saint Barthélemy St. Barthélemy Saint-Barthélemy São Bartolomeu São Bartolomeu Saint-Barthélemy Сен-Бартелеми Svätý Bartolomej Saint Barthélemy Sen-Bartelemi Свети Бартоломеј S:t Barthélemy St. Barthelemy เซนต์บาร์เธเลมี Saint Barthelemy Сен-Бартельми Сен-Бартельмі Sen-Bartelemi St. Barthélemy 圣巴泰勒米 聖巴瑟米
BM برمودا Бермудскія астравы Бермудски острови Bermuda Bermuda Bermudes Bermudy Bermuda Bermuda Βερμούδες Bermuda Bermudoj Bermudas Bermuda Bermuda برمودا Bermuda Bermudes Bermudes Beirmiúda Bearmùda Illas Bermudas ברמודה Bermudi Bermuda Bermuda Bermuda Bermúdaeyjar Bermuda バミューダ 버뮤다 Bermuda Бермуд аралдары Bermuda Bermudu salas ബർമുഡ Бермуда Bermuda Bermuda Bermuda Bermuda Bermudy Bermudas Bermudas Bermuda Бермудские о-ва Bermudy Bermudi Bermude Бермуда Bermuda Bermuda เบอร์มิวดา Bermuda Бермуд утраулары Бермудські Острови Bermuda orollari Bermuda 百慕大 百慕達
BN بروناي Бруней Бруней Даруссалам Brunei Brunej Brunei Brunej Brunei Brunei Darussalam Μπρουνέι Brunei Brunejo Brunéi Brunei Brunei برونئی Brunei Brunéi Darussalam Brunéi Darussalam Brúiné Brùnaigh Brunei ברוניי Brunej Brunei Brunei Brunei Brúnei Brunei ブルネイ 브루나이 Brunei Бруней Brunėjus Bruneja ബ്രൂണൈ Бруней Brunei Brunei Brunei Brunei Brunei Brunei Brunei Brunei Бруней-Даруссалам Brunej Brunej Brunei Брунеј Brunei Brunei บรูไน Brunei Бруней Бруней Bruney Brunei 文莱 汶萊
BO بوليفيا Балівія Боливия Bolivia Bolivija Bolívia Bolívie Bolivia Bolivien Βολιβία Bolivia Bolivio Bolivia Boliivia Bolivia بولیوی Bolivia Bolivie Bolivie an Bholaiv Boilibhia Bolivia בוליביה Bolivija Bolívia Bolivia Bolivia Bólivía Bolivia ボリビア 볼리비아 Bolivia Боливия Bolivija Bolīvija ബൊളീവിയ Боливи Bolivia Bolivia Bolivia Bolivia Boliwia Bolívia Bolívia Bolivia Боливия Bolívia Bolivija Bolivi Боливија Bolivia Bolivia โบลิเวีย Bolivya Боливия Болівія Boliviya Bolivia 玻利维亚 玻利維亞
BQ هولندا الكاريبية Карыбскія Нідэрланды Карибска Нидерландия Karib Nederlandat Karipska Holandija Carib Neerlandès Karibské Nizozemsko De tidligere Nederlandske Antiller Bonaire, Sint Eustatius und Saba Ολλανδία Καραϊβικής Caribbean Netherlands Caribbean Netherlands Caribe neerlandés Hollandi Kariibi mere saared Karibeko Herbehereak جزایر کارائیب هلند Karibian Alankomaat Pays-Bas caribéens Pays-Bas caribéens an Ísiltír Chairibeach Na Tìrean Ìsle Caraibeach Caribe Neerlandés האיים הקריביים ההולנדיים Karipski otoci Nizozemske Holland Karib-térség Caribbean Netherlands Belanda Karibia Karíbahafshluti Hollands Caraibi olandesi オランダ領カリブ 네덜란드령 카리브 Caribbean Netherlands Кариб Нидерланддары Karibų Nyderlandai Nīderlandes Karību salas കരീബിയൻ നെതർലാൻഡ്സ് Карибын Нидерланд Karibisk Nederland Caribisch Nederland Karibisk Nederland Caribbean Netherlands Niderlandy Karaibskie Países Baixos Caribenhos Países Baixos Caribenhos Insulele Caraibe Olandeze Бонэйр, Синт-Эстатиус и Саба Karibské Holandsko Nizozemski Karibi Karaibet holandeze Карипска Холандија Karibiska Nederländerna Uholanzi ya Karibiani เนเธอร์แลนด์แคริบเบียน Karayip Hollandası Caribbean Netherlands Нідерландські Карибські острови Boneyr, Sint-Estatius va Saba Ca-ri-bê Hà Lan 荷属加勒比区 荷蘭加勒比區
BR البرازيل Бразілія Бразилия Brazil Brazil Brasil Brazílie Brasilien Brasilien Βραζιλία Brazil Brazilo Brasil Brasiilia Brasil برزیل Brasilia Brésil Brésil an Bhrasaíl Braisil O Brasil ברזיל Brazil Brazília Brasil Brasil Brasilía Brasile ブラジル 브라질 Brasil Бразилия Brazilija Brazīlija ബ്രസീൽ Бразил Brasil Brazilië Brasil Бразили Brazylia Brasil Brasil Brazilia Бразилия Brazília Brazilija Brazil Бразил Brasilien Brazil บราซิล Brezilya Бразилия Бразілія Braziliya Brazil 巴西 巴西
BS جزر البهاما Багамскія астравы Бахамски острови Bahamas Bahami Bahames Bahamy Bahamas Bahamas Μπαχάμες Bahamas Bahamoj Bahamas Bahama Bahamak باهاما Bahama Bahamas Bahamas na Bahámaí Na h-Eileanan Bhathama Bahamas איי בהאמה Bahami Bahama-szigetek Bahamas Bahama Bahamaeyjar Bahamas バハマ 바하마 Bahamas Багама аралдары Bahamos Bahamu salas ബഹാമാസ് Багамын арлууд Bahamas Bahamas Bahamas Bahamas Bahamy Bahamas Bahamas Bahamas Багамы Bahamy Bahami Bahama Бахами Bahamas Bahama บาฮามาส Bahamalar Багам утраулары Багамські Острови Bagama orollari Bahamas 巴哈马 巴哈馬
BT بوتان Бутан Бутан Bhoutan Butan Bhutan Bhútán Bhutan Bhutan Μπουτάν Bhutan Butano Bután Bhutan Bhutan بوتان Bhutan Bhoutan Bhoutan an Bhútáin Butàn Bután בהוטן Butan Bhután Bhutan Bhutan Bútan Bhutan ブータン 부탄 Bhutan Бутан Butanas Butāna ഭൂട്ടാൻ Бутан Bhutan Bhutan Bhutan Bhutan Bhutan Butão Butão Bhutan Бутан Bhután Butan Butan Бутан Bhutan Bhutan ภูฏาน Butan Бутан Бутан Butan Bhutan 不丹 不丹
BV جزيرة بوفيه Востраў Бувэ остров Буве Enez Bouvet Ostrvo Buve Bouvet Bouvetův ostrov Bouvetøen Bouvetinsel Νήσος Μπουβέ Bouvet Island Bouvet Island Isla Bouvet Bouvet saar Bouvet uhartea جزیرهٔ بووه Bouvetnsaari Île Bouvet Île Bouvet Oileán Bouvet Eilean Bouvet Illa Bouvet האי בובה Otok Bouvet Bouvet-sziget Insula de Bouvet Pulau Bouvet Bouveteyja Isola Bouvet ブーベ島 부베섬 Bouvet Island Буве аралы Buvė Sala Buvē sala ബൗവെട്ട് ദ്വീപ് Буве арал Bouvetøya Bouveteiland Bouvetøya Bouvet Island Wyspa Bouveta Ilha Bouvet Ilha Bouvet Insula Bouvet о-в Буве Bouvetov ostrov Bouvetov otok Ishulli Bove Острво Буве Bouvetön Kisiwa cha Bouvet เกาะบูเว Bouvet Adası Буве утравы Острів Буве Buve oroli Đảo Bouvet 布韦岛 布威島
BW بوتسوانا Батсвана Ботсвана Botswana Bocvana Botswana Botswana Botswana Botsuana Μποτσουάνα Botswana Bocvano Botsuana Botswana Botswana بوتسوانا Botswana Botswana Botswana an Bhotsuáin Botsuana Botswana בוצוואנה Bocvana Botswana Botswana Botswana Botsvana Botswana ボツワナ 보츠와나 Botswana Ботсвана Botsvana Botsvāna ബോട്സ്വാന Ботсван Botswana Botswana Botswana Botswana Botswana Botsuana Botsuana Botswana Ботсвана Botswana Bocvana Botsvanë Боцвана Botswana Botswana บอตสวานา Botsvana Ботсвана Ботсвана Botsvana Botswana 博茨瓦纳 波札那
BY بيلاروس Беларусь Беларус Belarus Bjelorusija Belarús Bělorusko Hviderusland Belarus Λευκορωσία Belarus Belorusujo Bielorrusia Valgevene Bielorrusia بلاروس Valko-Venäjä Biélorussie Biélorussie an Bhealarúis A Bhealaruis Belarús בלארוס Bjelorusija Belarusz Bielorussia Belarus Hvíta-Rússland Bielorussia ベラルーシ 벨라루스 Belarus Беларусь Baltarusija Baltkrievija ബെലറൂസ് Беларусь Hviterussland Belarus Kviterussland Belarus Białoruś Bielorrússia Bielorrússia Belarus Беларусь Bielorusko Belorusija Bjellorusi Белорусија Vitryssland Belarus เบลารุส Belarus Беларусь Білорусь Belarus Belarus 白俄罗斯 白俄羅斯
BZ بليز Беліз Белиз Belize Belize Belize Belize Belize Belize Μπελίζ Belize Belizo Belice Belize Belize بلیز Belize Belize Belize an Bheilís A Bheilìs Belize בליז Belize Belize Belize Belize Belís Belize ベリーズ 벨리즈 Belize Белиз Belizas Beliza ബെലീസ് Белизе Belize Belize Belize Belize Belize Belize Belize Belize Белиз Belize Belize Belizë Белизе Belize Belize เบลีซ Belize Белиз Беліз Beliz Belize 伯利兹 貝里斯
CA كندا Канада Канада Kanada Kanada Canadà Kanada Canada Kanada Καναδάς Canada Kanado Canadá Kanada Kanada کانادا Kanada Canada Canada Ceanada Canada O Canadá קנדה Kanada Kanada Canada Kanada Kanada Canada カナダ 캐나다 Canada Канада Kanada Kanāda കാനഡ Канад Canada Canada Canada Canada Kanada Canadá Canadá Canada Канада Kanada Kanada Kanada Канада Kanada Kanada แคนาดา Kanada Канада Канада Kanada Canada 加拿大 加拿大
CC جزر كوكوس (كيلينغ) Какосавыя (Кілінг) астравы Кокосови острови (острови Кийлинг) Inizi Kokoz Kokosova (Keelingova) ostrva Illes Cocos Kokosové ostrovy Cocosøerne Kokosinseln Νήσοι Κόκος (Κίλινγκ) Cocos (Keeling) Islands Cocos (Keeling) Islands Islas Cocos Kookossaared Cocos (Keeling) uharteak جزایر کوکوس Kookossaaret (Keelingsaaret) Îles Cocos Îles Cocos Oileáin Cocos (Keeling) Na h-Eileanan Chocos (Keeling) Illas Cocos (Keeling) איי קוקוס (קילינג) Kokosovi (Keelingovi) otoci Kókusz (Keeling)-szigetek Cocos (Keeling) Islands Kepulauan Cocos (Keeling) Kókoseyjar (Keeling) Isole Cocos (Keeling) ココス(キーリング)諸島 코코스 제도 Cocos (Keeling) Islands Кокос (Килинг) аралдары Kokosų (Kilingo) Salos Kokosu (Kīlinga) salas കോക്കസ് (കീലിംഗ്) ദ്വീപുകൾ Кокос (Кийлинг) арлууд Kokosøyene Cocoseilanden Kokosøyane Cocos (Keeling) Islands Wyspy Kokosowe Ilhas Cocos (Keeling) Ilhas Cocos (Keeling) Insulele Cocos (Keeling) Кокосовые о-ва Kokosové ostrovy Kokosovi otoki Ishujt Kokos Кокосова (Килингова) Острва Kokosöarna Visiwa vya Cocos (Keeling) หมู่เกาะโคโคส (คีลิง) Cocos (Keeling) Adaları Кокос (Килинг) утраулары Кокосові (Кілінґ) Острови Kokos (Kiling) orollari Quần đảo Cocos (Keeling) 科科斯(基林)群岛 科克斯(基靈)群島
CD الكونغو - كينشاسا Конга (Кіншаса) Конго (Киншаса) Kongo - Kinshasa Demokratska Republika Kongo Congo - Kinshasa Kongo Kinshasa Congo-Kinshasa Kongo-Kinshasa Κονγκό - Κινσάσα Congo - Kinshasa Congo - Kinshasa República Democrática del Congo Kongo DV Kongoko Errepublika Demokratikoa کنگو - کینشاسا Kongon demokraattinen tasavalta Congo-Kinshasa Congo-Kinshasa Poblacht Dhaonlathach an Chongó Congo - Kinshasa República Democrática do Congo קונגו - קינשאסה Kongo - Kinshasa Kongó - Kinshasa Congo - Kinshasa Kongo - Kinshasa Kongó-Kinshasa Congo - Kinshasa コンゴ民主共和国(キンシャサ) 콩고-킨샤사 Congo - Kinshasa Конго-Киншаса Kongas-Kinšasa Kongo (Kinšasa) കോംഗോ - കിൻഷാസ Конго-Киншаса Kongo-Kinshasa Congo-Kinshasa Kongo-Kinshasa Congo - Kinshasa Demokratyczna Republika Konga Congo - Kinshasa Congo - Kinshasa Congo - Kinshasa Конго - Киншаса Konžská demokratická republika Demokratična republika Kongo Kongo-Kinshasa Конго - Киншаса Kongo-Kinshasa Jamhuri ya Kidemokrasia ya Kongo คองโก - กินชาซา Kongo - Kinşasa Congo - Kinshasa Конго Кіншаса Kongo Kinshasa Congo - Kinshasa 刚果(金) 剛果(金夏沙)
CF جمهورية أفريقيا الوسطى Цэнтральна-Афрыканская Рэспубліка Централноафриканска република Republik Kreizafrikan Centralnoafrička Republika República Centreafricana Středoafrická republika Den Centralafrikanske Republik Zentralafrikanische Republik Κεντροαφρικανική Δημοκρατία Central African Republic Centr-Afrika Respubliko República Centroafricana Kesk-Aafrika Vabariik Afrika Erdiko Errepublika جمهوری افریقای مرکزی Keski-Afrikan tasavalta République centrafricaine République centrafricaine Poblacht na hAfraice Láir Poblachd Meadhan Afraga República Centroafricana הרפובליקה המרכז-אפריקאית Srednjoafrička Republika Közép-afrikai Köztársaság Republica African Central Republik Afrika Tengah Mið-Afríkulýðveldið Repubblica Centrafricana 中央アフリカ共和国 중앙 아프리카 공화국 Central African Republic Борбордук Африка Республикасы Centrinės Afrikos Respublika Centrālāfrikas Republika സെൻട്രൽ ആഫ്രിക്കൻ റിപ്പബ്ലിക്ക് Төв Африкийн Бүгд Найрамдах Улс Den sentralafrikanske republikk Centraal-Afrikaanse Republiek Den sentralafrikanske republikken Central African Republic Republika Środkowoafrykańska República Centro-Africana República Centro-Africana Republica Centrafricană Центрально-Африканская Республика Stredoafrická republika Centralnoafriška republika Republika e Afrikës Qendrore Централноафричка Република Centralafrikanska republiken Jamhuri ya Afrika ya Kati สาธารณรัฐแอฟริกากลาง Orta Afrika Cumhuriyeti Үзәк Африка Республикасы Центральноафриканська Республіка Markaziy Afrika Respublikasi Cộng hòa Trung Phi 中非共和国 中非共和國
CG الكونغو - برازافيل Конга - Бразавіль Конго (Бразавил) Kongo - Brazzaville Kongo Congo - Brazzaville Kongo Brazzaville Congo-Brazzaville Kongo-Brazzaville Κονγκό - Μπραζαβίλ Congo - Brazzaville Kongolo Congo Kongo Vabariik Kongo کنگو - برازویل Kongon tasavalta Congo-Brazzaville Congo-Brazzaville an Congó A Chongo - Brazzaville República do Congo קונגו - ברזאויל Kongo - Brazzaville Kongó - Brazzaville Congo Kongo - Brazzaville Kongó-Brazzaville Congo-Brazzaville コンゴ共和国(ブラザビル) 콩고-브라자빌 Congo - Brazzaville Конго-Браззавил Kongas-Brazavilis Kongo (Brazavila) കോംഗോ - ബ്രാസവില്ലി Конго-Браззавиль Kongo-Brazzaville Congo-Brazzaville Kongo-Brazzaville Congo - Brazzaville Kongo República do Congo República do Congo Congo - Brazzaville Конго - Браззавиль Konžská republika Kongo - Brazzaville Kongo-Brazavilë Конго - Бразавил Kongo-Brazzaville Kongo - Brazzaville คองโก - บราซซาวิล Kongo - Brazavil Congo - Brazzaville Конго Браззавіль Kongo Brazzavil Congo - Brazzaville 刚果(布) 剛果(布拉薩)
CH سويسرا Швейцарыя Швейцария Suis Švicarska Suïssa Švýcarsko Schweiz Schweiz Ελβετία Switzerland Svisujo Suiza Šveits Suitza سوئیس Sveitsi Suisse Suisse an Eilvéis An Eilbheis Suíza שווייץ Švicarska Svájc Suissa Swiss Sviss Svizzera スイス 스위스 Switzerland Швейцария Šveicarija Šveice സ്വിറ്റ്സർലാൻഡ് Швейцарь Sveits Zwitserland Sveits Switzerland Szwajcaria Suíça Suíça Elveția Швейцария Švajčiarsko Švica Zvicër Швајцарска Schweiz Uswisi สวิตเซอร์แลนด์ İsviçre Швейцария Швейцарія Shveytsariya Thụy Sĩ 瑞士 瑞士
CI ساحل العاج Кот-д’Івуар Кот д’Ивоар Aod an Olifant Obala Slonovače Côte dIvoire Pobřeží slonoviny Elfenbenskysten Côte dIvoire Ακτή Ελεφαντοστού Côte dIvoire Ebur-Bordo Côte dIvoire Côte dIvoire Boli Kosta ساحل عاج Norsunluurannikko Côte dIvoire Côte dIvoire an Cósta Eabhair Côte dIvoire Côte dIvoire חוף השנהב Obala Bjelokosti Elefántcsontpart Côte dIvoire Côte dIvoire Fílabeinsströndin Costa dAvorio コートジボワール 코트디부아르 Côte dIvoire Кот-д’Ивуар Dramblio Kaulo Krantas Kotdivuāra കോട്ട് ഡി വാർ Кот-д’Ивуар Elfenbenskysten Ivoorkust Elfenbeinskysten Côte dIvoire Côte dIvoire Costa do Marfim Costa do Marfim Côte dIvoire Кот-д’Ивуар Pobrežie Slonoviny Slonokoščena obala Côte dIvoire Обала Слоноваче (Кот д’Ивоар) Côte dIvoire Cote dIvoire โกตดิวัวร์ Côte dIvoire Кот-д’Ивуар Кот-дʼІвуар Kot-dIvuar Côte dIvoire 科特迪瓦 象牙海岸
CK جزر كوك Астравы Кука острови Кук Inizi Cook Kukova ostrva Illes Cook Cookovy ostrovy Cookøerne Cookinseln Νήσοι Κουκ Cook Islands Kukinsuloj Islas Cook Cooki saared Cook uharteak جزایر کوک Cookinsaaret Îles Cook Îles Cook Oileáin Cook Eileanan Cook Illas Cook איי קוק Cookovi Otoci Cook-szigetek Insulas Cook Kepulauan Cook Cooks-eyjar Isole Cook クック諸島 쿡 제도 Cook Islands Кук аралдары Kuko Salos Kuka salas കുക്ക് ദ്വീപുകൾ Күүкийн арлууд Cookøyene Cookeilanden Cookøyane Cook Islands Wyspy Cooka Ilhas Cook Ilhas Cook Insulele Cook Острова Кука Cookove ostrovy Cookovi otoki Ishujt Kuk Кукова Острва Cooköarna Visiwa vya Cook หมู่เกาะคุก Cook Adaları Кук утраулары Острови Кука Kuk orollari Quần đảo Cook 库克群岛 庫克群島
CL تشيلي Чылі Чили Chile Čile Xile Chile Chile Chile Χιλή Chile Ĉilio Chile Tšiili Txile شیلی Chile Chili Chili an tSile An t-Sile Chile צ׳ילה Čile Chile Chile Cile Síle Cile チリ 칠레 Chile Чили Čilė Čīle ചിലി Чили Chile Chili Chile Chile Chile Chile Chile Chile Чили Čile Čile Kili Чиле Chile Chile ชิลี Şili Чили Чілі Chili Chile 智利 智利
CM الكاميرون Камерун Камерун Kameroun Kamerun Camerun Kamerun Cameroun Kamerun Καμερούν Cameroon Kameruno Camerún Kamerun Kamerun کامرون Kamerun Cameroun Cameroun Camarún Camarun Camerún קמרון Kamerun Kamerun Camerun Kamerun Kamerún Camerun カメルーン 카메룬 Cameroon Камерун Kamerūnas Kamerūna കാമറൂൺ Камерун Kamerun Kameroen Kamerun Cameroon Kamerun Camarões Camarões Camerun Камерун Kamerun Kamerun Kamerun Камерун Kamerun Kameruni แคเมอรูน Kamerun Камерун Камерун Kamerun Cameroon 喀麦隆 喀麥隆
CN الصين Кітай Китай Sina Kina Xina Čína Kina China Κίνα China Ĉinujo China Hiina Txina چین Kiina Chine Chine an tSín An t-Sìn A China סין Kina Kína China Tiongkok Kína Cina 中国 중국 China Кытай Kinija Ķīna ചൈന Хятад Kina China Kina Китай Chiny China China China Китай Čína Kitajska Kinë Кина Kina Uchina จีน Çin Кытай Китай Xitoy Trung Quốc 中国 中國
CO كولومبيا Калумбія Колумбия Kolombia Kolumbija Colòmbia Kolumbie Colombia Kolumbien Κολομβία Colombia Kolombio Colombia Colombia Kolonbia کلمبیا Kolumbia Colombie Colombie an Cholóim Coloimbia Colombia קולומביה Kolumbija Kolumbia Colombia Kolombia Kólumbía Colombia コロンビア 콜롬비아 Colombia Колумбия Kolumbija Kolumbija കൊളംബിയ Колумби Colombia Colombia Colombia Colombia Kolumbia Colômbia Colômbia Columbia Колумбия Kolumbia Kolumbija Kolumbi Колумбија Colombia Kolombia โคลอมเบีย Kolombiya Колумбия Колумбія Kolumbiya Colombia 哥伦比亚 哥倫比亞
CP جزيرة كليبيرتون Востраў Кліпертан остров Клипертон Enez Clipperton Ostrvo Kliperton Illa Clipperton Clippertonův ostrov Clippertonøen Clipperton-Insel Νήσος Κλίπερτον Clipperton Island Clipperton Island Isla Clipperton Clippertoni saar Clipperton uhartea جزایر کلیپرتون Clippertoninsaari Île Clipperton Île Clipperton Oileán Clipperton Eilean Clipperton Illa Clipperton האי קליפרטון Otok Clipperton Clipperton-sziget Clipperton Island Pulau Clipperton Clipperton-eyja Isola di Clipperton クリッパートン島 클립퍼튼 섬 Clipperton Island Клиппертон аралы Klipertono sala Klipertona sala ക്ലിപ്പെർട്ടൻ ദ്വീപ് Клиппертон арал Clippertonøya Clipperton Clippertonøya Clipperton Island Wyspa Clippertona Ilha de Clipperton Ilha de Clipperton Insula Clipperton о-в Клиппертон Clipperton Otok Clipperton Ishulli Klipërton Острво Клипертон Clippertonön Kisiwa cha Clipperton เกาะคลิปเปอร์ตัน Clipperton Adası Clipperton Island Острів Кліппертон Klipperton oroli Đảo Clipperton 克利珀顿岛 克里派頓島
CR كوستاريكا Коста-Рыка Коста Рика Costa Rica Kostarika Costa Rica Kostarika Costa Rica Costa Rica Κόστα Ρίκα Costa Rica Kostariko Costa Rica Costa Rica Costa Rica کاستاریکا Costa Rica Costa Rica Costa Rica Cósta Ríce Costa Rìcea Costa Rica קוסטה ריקה Kostarika Costa Rica Costa Rica Kosta Rika Kostaríka Costa Rica コスタリカ 코스타리카 Costa Rica Коста-Рика Kosta Rika Kostarika കോസ്റ്ററിക്ക Коста-Рика Costa Rica Costa Rica Costa Rica Costa Rica Kostaryka Costa Rica Costa Rica Costa Rica Коста-Рика Kostarika Kostarika Kosta-Rikë Костарика Costa Rica Kostarika คอสตาริกา Kosta Rika Коста-Рика Коста-Ріка Kosta-Rika Costa Rica 哥斯达黎加 哥斯大黎加
CU كوبا Куба Куба Kuba Kuba Cuba Kuba Cuba Kuba Κούβα Cuba Kubo Cuba Kuuba Kuba کوبا Kuuba Cuba Cuba Cúba Cùba Cuba קובה Kuba Kuba Cuba Kuba Kúba Cuba キューバ 쿠바 Cuba Куба Kuba Kuba ക്യൂബ Куба Cuba Cuba Cuba Cuba Kuba Cuba Cuba Cuba Куба Kuba Kuba Kubë Куба Kuba Cuba คิวบา Küba Куба Куба Kuba Cuba 古巴 古巴
CV الرأس الأخضر Каба-Вердэ Кабо Верде Kab-Glas Kape Verde Cap Verd Kapverdy Kap Verde Cabo Verde Πράσινο Ακρωτήριο Cape Verde Kabo-Verdo Cabo Verde Roheneemesaared Cabo Verde کیپ‌ورد Kap Verde Cap-Vert Cap-Vert Rinn Verde An Ceap Uaine Cabo Verde כף ורדה Zelenortska Republika Zöld-foki Köztársaság Cape Verde Tanjung Verde Grænhöfðaeyjar Capo Verde カーボベルデ 카보베르데 Cape Verde Кабо-Верде Žaliasis Kyšulys Kaboverde കേപ്പ് വേർഡ് Кабо-Верде Kapp Verde Kaapverdië Kapp Verde Cape Verde Republika Zielonego Przylądka Cabo Verde Cabo Verde Capul Verde Кабо-Верде Kapverdy Zelenortski otoki Kepi i Gjelbër Зеленортска Острва Kap Verde Cape Verde เคปเวิร์ด Cape Verde Кабо-Верде Кабо-Верде Kabo-Verde Cape Verde 佛得角 維德角
CW كوراساو Кюрасаа Кюрасао Curaçao Kurasao Curaçao Curaçao Curaçao Curaçao Κουρασάο Curaçao Curaçao Curazao Curaçao Curaçao کوراسائو Curaçao Curaçao Curaçao Curaçao Curaçao Curaçao קוראסאו Curaçao Curaçao Curaçao Curaçao Curacao Curaçao キュラソー 퀴라소 Curaçao Кюрасао Kiurasao Kirasao കുറാകാവോ Кюрасао Curaçao Curaçao Curaçao Curaçao Curaçao Curaçao Curaçao Curaçao Кюрасао Curaçao Curaçao Kurasao Курасао Curaçao Curacao คูราเซา Curaçao Кюрасао Кюрасао Kyurasao Curaçao 库拉索 庫拉索
CX جزيرة كريسماس Востраў Каляд остров Рождество Enez Christmas Božićno ostrvo Illa Christmas Vánoční ostrov Juleøen Weihnachtsinsel Νήσος των Χριστουγέννων Christmas Island Christmas Island Isla de Navidad Jõulusaar Christmas uhartea جزیرهٔ کریسمس Joulusaari Île Christmas Île Christmas Oileán na Nollag Eilean na Nollaig Illa Christmas אי חג המולד Božićni otok Karácsony-sziget Insula de Natal Pulau Natal Jólaey Isola Christmas クリスマス島 크리스마스섬 Christmas Island Рождество аралы Kalėdų Sala Ziemsvētku sala ക്രിസ്മസ് ദ്വീപ് Зул сарын арал Christmasøya Christmaseiland Christmasøya Christmas Island Wyspa Bożego Narodzenia Ilha Christmas Ilha Christmas Insula Christmas о-в Рождества Vianočný ostrov Božični otok Ishulli i Krishtlindjes Божићно Острво Julön Kisiwa cha Krismasi เกาะคริสต์มาส Christmas Adası Раштуа утравы Острів Різдва Rojdestvo oroli Đảo Giáng Sinh 圣诞岛 聖誕島
CY قبرص Кіпр Кипър Kiprenez Kipar Xipre Kypr Cypern Zypern Κύπρος Cyprus Kipro Chipre Küpros Zipre قبرس Kypros Chypre Chypre an Chipir Cìopras Chipre קפריסין Cipar Ciprus Cypro Siprus Kýpur Cipro キプロス 키프로스 Cyprus Кипр Kipras Kipra സൈപ്രസ് Кипр Kypros Cyprus Kypros Cyprus Cypr Chipre Chipre Cipru Кипр Cyprus Ciper Qipro Кипар Cypern Cyprus ไซปรัส Kıbrıs Кипр Кіпр Kipr Síp 塞浦路斯 賽普勒斯
CZ التشيك Чэхія Чехия Tchekia Češka Txèquia Česko Tjekkiet Tschechien Τσεχία Czechia Ĉeĥujo Chequia Tšehhi Txekia چک Tšekki Tchéquie Tchéquie an tSeicia An t-Seic Chequia צ׳כיה Češka Csehország Chechia Ceko Tékkland Cechia チェコ 체코 Czechia Чехия Čekija Čehija ചെക്കിയ Чех Tsjekkia Tsjechië Tsjekkia Czechia Czechy Tchéquia Tchéquia Cehia Чехия Česko Češka Çeki Чешка Tjeckien Chechia เช็ก Çekya Чехия Республикасы Чехія Chexiya Séc 捷克 捷克
DE ألمانيا Германія Германия Alamagn Njemačka Alemanya Německo Tyskland Deutschland Γερμανία Germany Germanujo Alemania Saksamaa Alemania آلمان Saksa Allemagne Allemagne an Ghearmáin A Ghearmailt Alemaña גרמניה Njemačka Németország Germania Jerman Þýskaland Germania ドイツ 독일 Almayn Германия Vokietija Vācija ജർമ്മനി Герман Tyskland Duitsland Tyskland Герман Niemcy Alemanha Alemanha Germania Германия Nemecko Nemčija Gjermani Немачка Tyskland Ujerumani เยอรมนี Almanya Германия Німеччина Germaniya Đức 德国 德國
DG دييغو غارسيا Востраў Дыега-Гарсія Диего Гарсия Diego Garcia Dijego Garsija Diego Garcia Diego García Diego Garcia Diego Garcia Ντιέγκο Γκαρσία Diego Garcia Diego Garcia Diego García Diego Garcia Diego García دیه‌گو گارسیا Diego Garcia Diego Garcia Diego Garcia Diego Garcia Diego Garcia Diego García דייגו גרסיה Diego Garcia Diego Garcia Diego Garcia Diego Garcia Diego Garcia Diego Garcia ディエゴガルシア島 디에고 가르시아 Diego Garcia Диего Гарсия Diego Garsija Djego Garsijas atols ഡീഗോ ഗ്രാഷ്യ Диего Гарсиа Diego Garcia Diego Garcia Diego Garcia Diego Garcia Diego Garcia Diego Garcia Diego Garcia Diego Garcia Диего-Гарсия Diego Garcia Diego Garcia Diego-Garsia Дијего Гарсија Diego Garcia Diego Garcia ดิเอโกการ์เซีย Diego Garcia Diego Garcia Дієго-Гарсія Diyego-Garsiya Diego Garcia 迪戈加西亚岛 迪亞哥加西亞島
DJ جيبوتي Джыбуці Джибути Djibouti Džibuti Djibouti Džibutsko Djibouti Dschibuti Τζιμπουτί Djibouti Ĝibutio Yibuti Djibouti Djibuti جیبوتی Djibouti Djibouti Djibouti Djibouti Diobùtaidh Djibuti ג׳יבוטי Džibuti Dzsibuti Djibouti Jibuti Djíbútí Gibuti ジブチ 지부티 Djibouti Джибути Džibutis Džibutija ജിബൂത്തി Джибути Djibouti Djibouti Djibouti Djibouti Dżibuti Djibuti Djibuti Djibouti Джибути Džibutsko Džibuti Xhibuti Џибути Djibouti Jibuti จิบูตี Cibuti Җибүти Джибуті Jibuti Djibouti 吉布提 吉布地
DK الدانمرك Данія Дания Danmark Danska Dinamarca Dánsko Danmark Dänemark Δανία Denmark Danujo Dinamarca Taani Danimarka دانمارک Tanska Danemark Danemark an Danmhairg An Danmhairg Dinamarca דנמרק Danska Dánia Danmark Denmark Danmörk Danimarca デンマーク 덴마크 Denmark Дания Danija Dānija ഡെൻമാർക്ക് Дани Danmark Denemarken Danmark Denmark Dania Dinamarca Dinamarca Danemarca Дания Dánsko Danska Danimarkë Данска Danmark Denmark เดนมาร์ก Danimarka Дания Данія Daniya Đan Mạch 丹麦 丹麥
DM دومينيكا Дамініка Доминика Dominica Dominika Dominica Dominika Dominica Dominica Ντομίνικα Dominica Dominiko Dominica Dominica Dominika دومینیکا Dominica Dominique Dominique Doiminice Doiminicea Dominica דומיניקה Dominika Dominika Dominica Dominika Dóminíka Dominica ドミニカ国 도미니카 Dominica Доминика Dominika Dominika ഡൊമിനിക്ക Доминика Dominica Dominica Dominica Dominica Dominika Dominica Dominica Dominica Доминика Dominika Dominika Dominikë Доминика Dominica Dominika โดมินิกา Dominika Доминика Домініка Dominika Dominica 多米尼克 多米尼克
DO جمهورية الدومينيكان Дамініканская Рэспубліка Доминиканска република Republik Dominikan Dominikanska Republika República Dominicana Dominikánská republika Den Dominikanske Republik Dominikanische Republik Δομινικανή Δημοκρατία Dominican Republic Domingo República Dominicana Dominikaani Vabariik Dominikar Errepublika جمهوری دومینیکن Dominikaaninen tasavalta République dominicaine République dominicaine an Phoblacht Dhoiminiceach A Phoblachd Dhoiminiceach República Dominicana הרפובליקה הדומיניקנית Dominikanska Republika Dominikai Köztársaság Republica Dominican Republik Dominika Dóminíska lýðveldið Repubblica Dominicana ドミニカ共和国 도미니카 공화국 Dominican Republic Доминика Республикасы Dominikos Respublika Dominikāna ഡൊമിനിക്കൻ റിപ്പബ്ലിക്ക് Бүгд Найрамдах Доминикан Улс Den dominikanske republikk Dominicaanse Republiek Den dominikanske republikken Dominican Republic Dominikana República Dominicana República Dominicana Republica Dominicană Доминиканская Республика Dominikánska republika Dominikanska republika Republika Dominikane Доминиканска Република Dominikanska republiken Jamhuri ya Dominika สาธารณรัฐโดมินิกัน Dominik Cumhuriyeti Доминикана Республикасы Домініканська Республіка Dominikan Respublikasi Cộng hòa Dominica 多米尼加共和国 多明尼加共和國
DZ الجزائر Алжыр Алжир Aljeria Alžir Algèria Alžírsko Algeriet Algerien Αλγερία Algeria Alĝerio Argelia Alžeeria Aljeria الجزایر Algeria Algérie Algérie an Ailgéir Aildiria Alxeria אלג׳יריה Alžir Algéria Algeria Aljazair Alsír Algeria アルジェリア 알제리 Algeria Алжир Alžyras Alžīrija അൾജീരിയ Алжир Algerie Algerije Algerie Algeria Algieria Argélia Argélia Algeria Алжир Alžírsko Alžirija Algjeri Алжир Algeriet Aljeria แอลจีเรีย Cezayir Алжир Алжир Jazoir Algeria 阿尔及利亚 阿爾及利亞
EA سيوتا وميليلا Сеута і Мелілья Сеута и Мелия Ceuta ha Melilla Seuta i Melilja Ceuta i Melilla Ceuta a Melilla Ceuta og Melilla Ceuta und Melilla Θέουτα και Μελίγια Ceuta & Melilla Ceuta & Melilla Ceuta y Melilla Ceuta ja Melilla Ceuta eta Melilla سبته و ملیله Ceuta ja Melilla Ceuta et Melilla Ceuta et Melilla Ceuta agus Melilla Ceuta agus Melilla Ceuta e Melilla סאוטה ומלייה Ceuta i Melilla Ceuta és Melilla Ceuta & Melilla Ceuta dan Melilla Ceuta og Melilla Ceuta e Melilla セウタ・メリリャ 세우타 및 멜리야 Ceuta & Melilla Сеута жана Мелилла Seuta ir Melila Seūta un Melilja സെയൂത്ത ആൻഡ് മെലിയ Сеута ба Мелилья Ceuta og Melilla Ceuta en Melilla Ceuta og Melilla Ceuta & Melilla Ceuta i Melilla Ceuta e Melilla Ceuta e Melilla Ceuta și Melilla Сеута и Мелилья Ceuta a Melilla Ceuta in Melilla Theuta e Melila Сеута и Мелиља Ceuta och Melilla Ceuta na Melilla เซวตาและเมลียา Ceuta ve Melilla Ceuta & Melilla Сеута і Мелілья Seuta va Melilya Ceuta và Melilla 休达及梅利利亚 休達與梅利利亞
EC الإكوادور Эквадор Еквадор Ecuador Ekvador Equador Ekvádor Ecuador Ecuador Ισημερινός Ecuador Ekvadoro Ecuador Ecuador Ekuador اکوادور Ecuador Équateur Équateur Eacuadór Eacuador Ecuador אקוודור Ekvador Ecuador Ecuador Ekuador Ekvador Ecuador エクアドル 에콰도르 Ecuador Эквадор Ekvadoras Ekvadora ഇക്വഡോർ Эквадор Ecuador Ecuador Ecuador Ecuador Ekwador Equador Equador Ecuador Эквадор Ekvádor Ekvador Ekuador Еквадор Ecuador Ecuador เอกวาดอร์ Ekvador Эквадор Еквадор Ekvador Ecuador 厄瓜多尔 厄瓜多
EE إستونيا Эстонія Естония Estonia Estonija Estònia Estonsko Estland Estland Εσθονία Estonia Estonujo Estonia Eesti Estonia استونی Viro Estonie Estonie an Eastóin An Eastoin Estonia אסטוניה Estonija Észtország Estonia Estonia Eistland Estonia エストニア 에스토니아 Estonia Эстония Estija Igaunija എസ്റ്റോണിയ‍ Эстони Estland Estland Estland Estonia Estonia Estônia Estônia Estonia Эстония Estónsko Estonija Estoni Естонија Estland Estonia เอสโตเนีย Estonya Эстония Естонія Estoniya Estonia 爱沙尼亚 愛沙尼亞
EG مصر Егіпет Египет Egipt Egipat Egipte Egypt Egypten Ägypten Αίγυπτος Egypt Egipto Egipto Egiptus Egipto مصر Egypti Égypte Égypte an Éigipt An Èiphit Exipto מצרים Egipat Egyiptom Egypto Mesir Egyptaland Egitto エジプト 이집트 Egypt Египет Egiptas Ēģipte ഈജിപ്ത് Египет Egypt Egypte Egypt Egypt Egipt Egito Egito Egipt Египет Egypt Egipt Egjipt Египат Egypten Misri อียิปต์ Mısır Мисыр Єгипет Misr Ai Cập 埃及 埃及
EH الصحراء الغربية Заходняя Сахара Западна Сахара Sahara ar Cʼhornôg Zapadna Sahara Sàhara Occidental Západní Sahara Vestsahara Westsahara Δυτική Σαχάρα Western Sahara Okcidenta Saharo Sáhara Occidental Lääne-Sahara Mendebaldeko Sahara صحرای غربی Länsi-Sahara Sahara occidental Sahara occidental an Sahára Thiar Sathara an Iar O Sáhara Occidental סהרה המערבית Zapadna Sahara Nyugat-Szahara Sahara occidental Sahara Barat Vestur-Sahara Sahara occidentale 西サハラ 서사하라 Western Sahara Батыш Сахара Vakarų Sachara Rietumsahāra പശ്ചിമ സഹാറ Баруун Сахар Vest-Sahara Westelijke Sahara Vest-Sahara Western Sahara Sahara Zachodnia Saara Ocidental Saara Ocidental Sahara Occidentală Западная Сахара Západná Sahara Zahodna Sahara Saharaja Perëndimore Западна Сахара Västsahara Sahara Magharibi ซาฮาราตะวันตก Batı Sahra Western Sahara Західна Сахара Garbiy Sahroi Kabir Tây Sahara 西撒哈拉 西撒哈拉
ER إريتريا Эрытрэя Еритрея Eritrea Eritreja Eritrea Eritrea Eritrea Eritrea Ερυθραία Eritrea Eritreo Eritrea Eritrea Eritrea اریتره Eritrea Érythrée Érythrée an Eiritré Eartra Eritrea אריתריאה Eritreja Eritrea Eritrea Eritrea Erítrea Eritrea エリトリア 에리트리아 Eritrea Эритрея Eritrėja Eritreja എറിത്രിയ Эритрей Eritrea Eritrea Eritrea Eritrea Erytrea Eritreia Eritreia Eritreea Эритрея Eritrea Eritreja Eritre Еритреја Eritrea Eritrea เอริเทรีย Eritre Эритрея Еритрея Eritreya Eritrea 厄立特里亚 厄利垂亞
ES إسبانيا Іспанія Испания Spagn Španija Espanya Španělsko Spanien Spanien Ισπανία Spain Hispanujo España Hispaania Espainia اسپانیا Espanja Espagne Espagne an Spáinn An Spàinnt España ספרד Španjolska Spanyolország Espania Spanyol Spánn Spagna スペイン 스페인 Spain Испания Ispanija Spānija സ്‌പെയിൻ Испани Spania Spanje Spania Spain Hiszpania Espanha Espanha Spania Испания Španielsko Španija Spanjë Шпанија Spanien Uhispania สเปน İspanya Испания Іспанія Ispaniya Tây Ban Nha 西班牙 西班牙
ET إثيوبيا Эфіопія Етиопия Etiopia Etiopija Etiòpia Etiopie Etiopien Äthiopien Αιθιοπία Ethiopia Etiopujo Etiopía Etioopia Etiopia اتیوپی Etiopia Éthiopie Éthiopie an Aetóip An Itiop Etiopía אתיופיה Etiopija Etiópia Ethiopia Etiopia Eþíópía Etiopia エチオピア 에티오피아 Ethiopia Эфиопия Etiopija Etiopija എത്യോപ്യ Этиоп Etiopia Ethiopië Etiopia Ethiopia Etiopia Etiópia Etiópia Etiopia Эфиопия Etiópia Etiopija Etiopi Етиопија Etiopien Ethiopia เอธิโอเปีย Etiyopya Эфиопия Ефіопія Efiopiya Ethiopia 埃塞俄比亚 衣索比亞
EU الاتحاد الأوروبي Еўрапейскі саюз Европейски съюз Unaniezh Europa Evropska unija Unió Europea Evropská unie Den Europæiske Union Europäische Union Ευρωπαϊκή Ένωση European Union European Union Unión Europea Euroopa Liit Europar Batasuna اتحادیهٔ اروپا Euroopan unioni Union européenne Union européenne an tAontas Eorpach An t-Aonadh Eòrpach Unión Europea האיחוד האירופי Europska unija Európai Unió Union Europee Uni Eropa Evrópusambandið Unione Europea 欧州連合 유럽 연합 Unyans Europek Европа Биримдиги Europos Sąjunga Eiropas Savienība യൂറോപ്യൻ യൂണിയൻ Европын Холбоо Den europeiske union Europese Unie European Union European Union Unia Europejska União Europeia União Europeia Uniunea Europeană Европейский союз Európska únia Evropska unija Bashkimi Evropian Европска унија Europeiska unionen Umoja wa Ulaya สหภาพยุโรป Avrupa Birliği European Union Європейський Союз Yevropa Ittifoqi Liên Minh Châu Âu 欧盟 歐盟
FI فنلندا Фінляндыя Финландия Finland Finska Finlàndia Finsko Finland Finnland Φινλανδία Finland Finnlando Finlandia Soome Finlandia فنلاند Suomi Finlande Finlande an Fhionlainn An Fhionnlann Finlandia פינלנד Finska Finnország Finlandia Finlandia Finnland Finlandia フィンランド 핀란드 Finland Финляндия Suomija Somija ഫിൻലാൻഡ് Финлянд Finland Finland Finland Finland Finlandia Finlândia Finlândia Finlanda Финляндия Fínsko Finska Finlandë Финска Finland Ufini ฟินแลนด์ Finlandiya Финляндия Фінляндія Finlandiya Phần Lan 芬兰 芬蘭
FJ فيجي Фіджы Фиджи Fidji Fidži Fiji Fidži Fiji Fidschi Φίτζι Fiji Fiĝoj Fiyi Fidži Fiji فیجی Fidži Fidji Fidji Fidsí Fìdi Fixi פיג׳י Fidži Fidzsi Fiji Fiji Fídjíeyjar Figi フィジー 피지 Fiji Фиджи Fidžis Fidži ഫിജി Фижи Fiji Fiji Fiji Fiji Fidżi Fiji Fiji Fiji Фиджи Fidži Fidži Fixhi Фиџи Fiji Fiji ฟิจิ Fiji Фиджи Фіджі Fiji Fiji 斐济 斐濟
FK جزر فوكلاند Фалклендскія астравы Фолкландски острови Inizi Falkland Folklandska ostrva Illes Malvines Falklandské ostrovy Falklandsøerne Falklandinseln Νήσοι Φόκλαντ Falkland Islands Falkland Islands Islas Malvinas Falklandi saared Falklandak جزایر فالکلند Falklandinsaaret Îles Malouines Îles Malouines Oileáin Fháclainne Na h-Eileanan Fàclannach Illas Malvinas איי פוקלנד Falklandski otoci Falkland-szigetek Falkland Islands Kepulauan Falkland Falklandseyjar Isole Falkland フォークランド諸島 포클랜드 제도 Falkland Islands Фолкленд аралдары Folklando Salos Folklenda salas ഫാക്ക്‌ലാന്റ് ദ്വീപുകൾ Фолклендийн арлууд Falklandsøyene Falklandeilanden Falklandsøyane Falkland Islands Falklandy Ilhas Malvinas Ilhas Malvinas Insulele Falkland Фолклендские о-ва Falklandy Falklandski otoki Ishujt Falkland Фокландска Острва Falklandsöarna Visiwa vya Falkland หมู่เกาะฟอล์กแลนด์ Falkland Adaları Фолкленд утраулары Фолклендські Острови Folklend orollari Quần đảo Falkland 福克兰群岛 福克蘭群島
FM ميكرونيزيا Мікранезія Микронезия Mikronezia Mikronezija Micronèsia Mikronésie Mikronesien Mikronesien Μικρονησία Micronesia Mikronezio Micronesia Mikroneesia Mikronesia میکرونزی Mikronesian liittovaltio États fédérés de Micronésie États fédérés de Micronésie an Mhicrinéis Na Meanbh-eileanan Micronesia מיקרונזיה Mikronezija Mikronézia Micronesia Mikronesia Míkrónesía Micronesia ミクロネシア連邦 미크로네시아 Micronesia Микронезия Mikronezija Mikronēzija മൈക്രോനേഷ്യ Микронези Mikronesiaføderasjonen Micronesia Mikronesiaføderasjonen Micronesia Mikronezja Micronésia Micronésia Micronezia Федеративные Штаты Микронезии Mikronézia Mikronezija Mikronezi Микронезија Mikronesien Micronesia ไมโครนีเซีย Mikronezya Микронезия Мікронезія Mikroneziya Micronesia 密克罗尼西亚 密克羅尼西亞
FO جزر فارو Фарэрскія астравы Фарьорски острови Inizi Faero Farska ostrva Illes Fèroe Faerské ostrovy Færøerne Färöer Νήσοι Φερόες Faroe Islands Ferooj Islas Feroe Fääri saared Faroe uharteak جزایر فارو Färsaaret Îles Féroé Îles Féroé Oileáin Fharó Na h-Eileanan Fàro Illas Feroe איי פארו Farski otoci Feröer szigetek Insulas Feroe Kepulauan Faroe Færeyjar Isole Fær Øer フェロー諸島 페로 제도 Faroe Islands Фарер аралдары Farerų Salos Fēru salas ഫറോ ദ്വീപുകൾ Фарерын арлууд Færøyene Faeröer Færøyane Faroe Islands Wyspy Owcze Ilhas Faroe Ilhas Faroe Insulele Feroe Фарерские о-ва Faerské ostrovy Ferski otoki Ishujt Faroe Фарска Острва Färöarna Visiwa vya Faroe หมู่เกาะแฟโร Faroe Adaları Фарер утраулары Фарерські Острови Farer orollari Quần đảo Faroe 法罗群岛 法羅群島
FR فرنسا Францыя Франция Frañs Francuska França Francie Frankrig Frankreich Γαλλία France Francujo Francia Prantsusmaa Frantzia فرانسه Ranska France France an Fhrainc An Fhraing Francia צרפת Francuska Franciaország Francia Prancis Frakkland Francia フランス 프랑스 Pow Frenk Франция Prancūzija Francija ഫ്രാൻസ് Франц Frankrike Frankrijk Frankrike Франц Francja França França Franța Франция Francúzsko Francija Francë Француска Frankrike Ufaransa ฝรั่งเศส Fransa Франция Франція Fransiya Pháp 法国 法國
GA الغابون Габон Габон Gabon Gabon Gabon Gabon Gabon Gabun Γκαμπόν Gabon Gabono Gabón Gabon Gabon گابن Gabon Gabon Gabon an Ghabúin Gabon Gabón גבון Gabon Gabon Gabon Gabon Gabon Gabon ガボン 가봉 Gabon Габон Gabonas Gabona ഗാബൺ Габон Gabon Gabon Gabon Gabon Gabon Gabão Gabão Gabon Габон Gabon Gabon Gabon Габон Gabon Gabon กาบอง Gabon Габон Габон Gabon Gabon 加蓬 加彭
GB المملكة المتحدة Вялікабрытанія Обединеното кралство Rouantelezh-Unanet Ujedinjeno Kraljevstvo Regne Unit Spojené království Storbritannien Vereinigtes Königreich Ηνωμένο Βασίλειο United Kingdom Unuiĝinta Reĝlando Reino Unido Suurbritannia Erresuma Batua بریتانیا Iso-Britannia Royaume-Uni Royaume-Uni an Ríocht Aontaithe An Rìoghachd Aonaichte O Reino Unido בריטניה Ujedinjeno Kraljevstvo Egyesült Királyság Regno Unite Inggris Raya Bretland Regno Unito イギリス 영국 Rywvaneth Unys Улуу Британия Jungtinė Karalystė Apvienotā Karaliste യുണൈറ്റഡ് കിംഗ്ഡം Их Британи Storbritannia Verenigd Koninkrijk Storbritannia Стыр Британи Wielka Brytania Reino Unido Reino Unido Regatul Unit Великобритания Spojené kráľovstvo Združeno kraljestvo Mbretëria e Bashkuar Уједињено Краљевство Storbritannien Ufalme wa Muungano สหราชอาณาจักร Birleşik Krallık Берләшкән Корольлек Велика Британія Buyuk Britaniya Vương quốc Anh 英国 英國
GD غرينادا Грэнада Гренада Grenada Grenada Grenada Grenada Grenada Grenada Γρενάδα Grenada Grenado Granada Grenada Grenada گرنادا Grenada Grenade Grenade Greanáda Greanàda Granada גרנדה Grenada Grenada Grenada Grenada Grenada Grenada グレナダ 그레나다 Grenada Гренада Grenada Grenāda ഗ്രനേഡ Гренада Grenada Grenada Grenada Grenada Grenada Granada Granada Grenada Гренада Grenada Grenada Granadë Гренада Grenada Grenada เกรเนดา Grenada Гренада Ґренада Grenada Grenada 格林纳达 格瑞那達
GE جورجيا Грузія Грузия Jorjia Gruzija Geòrgia Gruzie Georgien Georgien Γεωργία Georgia Kartvelujo Georgia Gruusia Georgia گرجستان Georgia Géorgie Géorgie an tSeoirsia A Chairtbheil Xeorxia גאורגיה Gruzija Grúzia Georgia Georgia Georgía Georgia ジョージア 조지아 Georgia Грузия Gruzija Gruzija ജോർജ്ജിയ Гүрж Georgia Georgië Georgia Гуырдзыстон Gruzja Geórgia Geórgia Georgia Грузия Gruzínsko Gruzija Gjeorgji Грузија Georgien Jojia จอร์เจีย Gürcistan Грузия Грузія Gruziya Georgia 格鲁吉亚 喬治亞
GF غويانا الفرنسية Французская Гвіяна Френска Гвиана Gwiana cʼhall Francuska Gvajana Guaiana Francesa Francouzská Guyana Fransk Guyana Französisch-Guayana Γαλλική Γουιάνα French Guiana Franca Gviano Guayana Francesa Prantsuse Guajaana Guyana Frantsesa گویان فرانسه Ranskan Guayana Guyane française Guyane française Guáin na Fraince Guidheàna na Frainge Güiana Francesa גיאנה הצרפתית Francuska Gijana Francia Guyana Guyana francese Guyana Prancis Franska Gvæjana Guyana francese 仏領ギアナ 프랑스령 기아나 French Guiana Француздук Гвиана Prancūzijos Gviana Francijas Gviāna ഫ്രഞ്ച് ഗയാന Францын Гвиана Fransk Guyana Frans-Guyana Fransk Guyana French Guiana Gujana Francuska Guiana Francesa Guiana Francesa Guyana Franceză Французская Гвиана Francúzska Guyana Francoska Gvajana Guajana Franceze Француска Гвајана Franska Guyana Guiana ya Ufaransa เฟรนช์เกียนา Fransız Guyanası Француз Гвианасы Французька Ґвіана Fransuz Gvianasi Guiana thuộc Pháp 法属圭亚那 法屬圭亞那
GG غيرنزي Гернсі Гърнзи Gwernenez Gernzi Guernsey Guernsey Guernsey Guernsey Γκέρνζι Guernsey Guernsey Guernsey Guernsey Guernesey گرنزی Guernsey Guernesey Guernesey Geansaí Geàrnsaidh Guernsey גרנזי Guernsey Guernsey Guernsey Guernsey Guernsey Guernsey ガーンジー 건지 Guernsey Гернси Gernsis Gērnsija ഗേൺസി Гернси Guernsey Guernsey Guernsey Guernsey Guernsey Guernsey Guernsey Guernsey Гернси Guernsey Guernsey Gernsej Гернзи Guernsey Guernsey เกิร์นซีย์ Guernsey Гернси Ґернсі Gernsi Guernsey 根西岛 根息
GH غانا Гана Гана Ghana Gana Ghana Ghana Ghana Ghana Γκάνα Ghana Ganao Ghana Ghana Ghana غنا Ghana Ghana Ghana Gána Gàna Ghana גאנה Gana Ghána Ghana Ghana Gana Ghana ガーナ 가나 Ghana Гана Gana Gana ഘാന Гана Ghana Ghana Ghana Ghana Ghana Gana Gana Ghana Гана Ghana Gana Ganë Гана Ghana Ghana กานา Gana Гана Гана Gana Ghana 加纳 迦納
GI جبل طارق Гібралтар Гибралтар Jibraltar Gibraltar Gibraltar Gibraltar Gibraltar Gibraltar Γιβραλτάρ Gibraltar Ĝibraltaro Gibraltar Gibraltar Gibraltar جبل‌الطارق Gibraltar Gibraltar Gibraltar Giobráltar Diobraltar Xibraltar גיברלטר Gibraltar Gibraltár Gibraltar Gibraltar Gíbraltar Gibilterra ジブラルタル 지브롤터 Gibraltar Гибралтар Gibraltaras Gibraltārs ജിബ്രാൾട്ടർ Гибралтар Gibraltar Gibraltar Gibraltar Gibraltar Gibraltar Gibraltar Gibraltar Gibraltar Гибралтар Gibraltár Gibraltar Gjibraltar Гибралтар Gibraltar Gibraltar ยิบรอลตาร์ Cebelitarık Гибралтар Ґібралтар Gibraltar Gibraltar 直布罗陀 直布羅陀
GL غرينلاند Грэнландыя Гренландия Greunland Grenland Groenlàndia Grónsko Grønland Grönland Γροιλανδία Greenland Gronlando Groenlandia Gröönimaa Groenlandia گرینلند Grönlanti Groenland Groenland an Ghraonlainn A Ghraonlann Groenlandia גרינלנד Grenland Grönland Groenlandia Grinlandia Grænland Groenlandia グリーンランド 그린란드 Greenland Гренландия Grenlandija Grenlande ഗ്രീൻലാൻറ് Гренланд Grønland Groenland Grønland Greenland Grenlandia Groenlândia Groenlândia Groenlanda Гренландия Grónsko Grenlandija Grënlandë Гренланд Grönland Greenland กรีนแลนด์ Grönland Гренландия Ґренландія Grenlandiya Greenland 格陵兰 格陵蘭
GM غامبيا Гамбія Гамбия Gambia Gambija Gàmbia Gambie Gambia Gambia Γκάμπια Gambia Gambio Gambia Gambia Gambia گامبیا Gambia Gambie Gambie an Ghaimbia A Ghaimbia Gambia גמביה Gambija Gambia Gambia Gambia Gambía Gambia ガンビア 감비아 Gambia Гамбия Gambija Gambija ഗാംബിയ Гамби Gambia Gambia Gambia Gambia Gambia Gâmbia Gâmbia Gambia Гамбия Gambia Gambija Gambi Гамбија Gambia Gambia แกมเบีย Gambiya Гамбия Гамбія Gambiya Gambia 冈比亚 甘比亞
GN غينيا Гвінея Гвинея Ginea Gvineja Guinea Guinea Guinea Guinea Γουινέα Guinea Gvineo Guinea Guinea Ginea گینه Guinea Guinée Guinée an Ghuine Gini Guinea גינאה Gvineja Guinea Guinea Guinea Gínea Guinea ギニア 기니 Guinea Гвинея Gvinėja Gvineja ഗിനിയ Гвиней Guinea Guinee Guinea Guinea Gwinea Guiné Guiné Guineea Гвинея Guinea Gvineja Guine Гвинеја Guinea Gine กินี Gine Гвинея Гвінея Gvineya Guinea 几内亚 幾內亞
GP غوادلوب Гвадэлупа Гваделупа Gwadeloup Gvadalupe Guadeloupe Guadeloupe Guadeloupe Guadeloupe Γουαδελούπη Guadeloupe Gvadelupo Guadalupe Guadeloupe Guadalupe گوادلوپ Guadeloupe Guadeloupe Guadeloupe Guadalúip Guadalup Guadalupe גוואדלופ Guadalupe Guadeloupe Guadeloupe Guadeloupe Gvadelúpeyjar Guadalupa グアドループ 과들루프 Guadeloupe Гваделупа Gvadelupa Gvadelupa ഗ്വാഡലൂപ്പ് Гваделуп Guadeloupe Guadeloupe Guadeloupe Guadeloupe Gwadelupa Guadalupe Guadalupe Guadelupa Гваделупа Guadeloupe Guadeloupe Guadelupë Гваделуп Guadeloupe Guadeloupe กวาเดอลูป Guadeloupe Гваделупа Ґваделупа Gvadelupe Guadeloupe 瓜德罗普 瓜地洛普
GQ غينيا الاستوائية Экватарыяльная Гвінея Екваториална Гвинея Ginea ar Cʼheheder Ekvatorijalna Gvineja Guinea Equatorial Rovníková Guinea Ækvatorialguinea Äquatorialguinea Ισημερινή Γουινέα Equatorial Guinea Ekvatora Gvineo Guinea Ecuatorial Ekvatoriaal-Guinea Ekuatore Ginea گینهٔ استوایی Päiväntasaajan Guinea Guinée équatoriale Guinée équatoriale an Ghuine Mheánchiorclach Gini Mheadhan-Chriosach Guinea Ecuatorial גינאה המשוונית Ekvatorska Gvineja Egyenlítői-Guinea Guinea equatorial Guinea Ekuatorial Miðbaugs-Gínea Guinea Equatoriale 赤道ギニア 적도 기니 Equatorial Guinea Экватордук Гвинея Pusiaujo Gvinėja Ekvatoriālā Gvineja ഇക്വറ്റോറിയൽ ഗിനിയ Экваторын Гвиней Ekvatorial-Guinea Equatoriaal-Guinea Ekvatorial-Guinea Equatorial Guinea Gwinea Równikowa Guiné Equatorial Guiné Equatorial Guineea Ecuatorială Экваториальная Гвинея Rovníková Guinea Ekvatorialna Gvineja Guineja Ekuatoriale Екваторијална Гвинеја Ekvatorialguinea Guinea ya Ikweta อิเควทอเรียลกินี Ekvator Ginesi Экваториаль Гвинея Екваторіальна Гвінея Ekvatorial Gvineya Guinea Xích Đạo 赤道几内亚 赤道幾內亞
GR اليونان Грэцыя Гърция Gres Grčka Grècia Řecko Grækenland Griechenland Ελλάδα Greece Grekujo Grecia Kreeka Grezia یونان Kreikka Grèce Grèce an Ghréig A Ghreug Grecia יוון Grčka Görögország Grecia Yunani Grikkland Grecia ギリシャ 그리스 Greece Греция Graikija Grieķija ഗ്രീസ് Грек Hellas Griekenland Hellas Greece Grecja Grécia Grécia Grecia Греция Grécko Grčija Greqi Грчка Grekland Ugiriki กรีซ Yunanistan Греция Греція Gretsiya Hy Lạp 希腊 希臘
GS جورجيا الجنوبية وجزر ساندويتش الجنوبية Паўднёвая Георгія і Паўднёвыя Сандвічавы астравы Южна Джорджия и Южни Сандвичеви острови Inizi Georgia ar Su hag Inizi Sandwich ar Su Južna Džordžija i Južna Sendvič ostrva Illes Geòrgia del Sud i Sandwich del Sud Jižní Georgie a Jižní Sandwichovy ostrovy South Georgia og De Sydlige Sandwichøer Südgeorgien und die Südlichen Sandwichinseln Νήσοι Νότια Γεωργία και Νότιες Σάντουιτς South Georgia & South Sandwich Islands Sud-Georgio kaj Sud-Sandviĉinsuloj Islas Georgia del Sur y Sandwich del Sur Lõuna-Georgia ja Lõuna-Sandwichi saared Hegoaldeko Georgia eta Hegoaldeko Sandwich uharteak جورجیای جنوبی و جزایر ساندویچ جنوبی Etelä-Georgia ja Eteläiset Sandwichsaaret Géorgie du Sud et îles Sandwich du Sud Géorgie du Sud et îles Sandwich du Sud an tSeoirsia Theas agus Oileáin Sandwich Theas Seòirsea a Deas is na h-Eileanan Sandwich a Deas Illas Xeorxia do Sur e Sandwich do Sur ג׳ורג׳יה הדרומית ואיי סנדוויץ׳ הדרומיים Južna Georgija i Južni Sendvički Otoci Déli-Georgia és Déli-Sandwich-szigetek South Georgia & South Sandwich Islands Georgia Selatan & Kep. Sandwich Selatan Suður-Georgía og Suður-Sandvíkureyjar Georgia del Sud e Sandwich australi サウスジョージア・サウスサンドウィッチ諸島 사우스조지아 사우스샌드위치 제도 South Georgia & South Sandwich Islands Түштүк Жоржия жана Түштүк Сэндвич аралдары Pietų Džordžija ir Pietų Sandvičo salos Dienviddžordžija un Dienvidsendviču salas ദക്ഷിണ ജോർജ്ജിയയും ദക്ഷിണ സാൻഡ്‌വിച്ച് ദ്വീപുകളും Өмнөд Жоржиа ба Өмнөд Сэндвичийн арлууд Sør-Georgia og Sør-Sandwichøyene Zuid-Georgia en Zuidelijke Sandwicheilanden Sør-Georgia og Sør-Sandwichøyene South Georgia & South Sandwich Islands Georgia Południowa i Sandwich Południowy Ilhas Geórgia do Sul e Sandwich do Sul Ilhas Geórgia do Sul e Sandwich do Sul Georgia de Sud și Insulele Sandwich de Sud Южная Георгия и Южные Сандвичевы о-ва Južná Georgia a Južné Sandwichove ostrovy Južna Georgia in Južni Sandwichevi otoki Xhorxha Jugore dhe Ishujt Senduiçë të Jugut Јужна Џорџија и Јужна Сендвичка Острва Sydgeorgien och Sydsandwichöarna Visiwa vya Georgia Kusini na Sandwich Kusini เกาะเซาท์จอร์เจียและหมู่เกาะเซาท์แซนด์วิช Güney Georgia ve Güney Sandwich Adaları Көньяк Георгия һәм Көньяк Сандвич утраулары Південна Джорджія та Південні Сандвічеві Острови Janubiy Georgiya va Janubiy Sendvich orollari Nam Georgia & Quần đảo Nam Sandwich 南乔治亚和南桑威奇群岛 南喬治亞與南三明治群島
GT غواتيمالا Гватэмала Гватемала Guatemala Gvatemala Guatemala Guatemala Guatemala Guatemala Γουατεμάλα Guatemala Gvatemalo Guatemala Guatemala Guatemala گواتمالا Guatemala Guatemala Guatemala Guatamala Guatamala Guatemala גואטמלה Gvatemala Guatemala Guatemala Guatemala Gvatemala Guatemala グアテマラ 과테말라 Guatemala Гватемала Gvatemala Gvatemala ഗ്വാട്ടിമാല Гватемал Guatemala Guatemala Guatemala Guatemala Gwatemala Guatemala Guatemala Guatemala Гватемала Guatemala Gvatemala Guatemalë Гватемала Guatemala Guatemala กัวเตมาลา Guatemala Гватемала Ґватемала Gvatemala Guatemala 危地马拉 瓜地馬拉
GU غوام Гуам Гуам Guam Guam Guam Guam Guam Guam Γκουάμ Guam Gvamo Guam Guam Guam گوام Guam Guam Guam Guam Guam Guam גואם Guam Guam Guam Guam Gvam Guam グアム 괌 Guam Гуам Guamas Guama ഗ്വാം Гуам Guam Guam Guam Guam Guam Guam Guam Guam Гуам Guam Guam Guam Гуам Guam Guam กวม Guam Гуам Ґуам Guam Guam 关岛 關島
GW غينيا بيساو Гвінея-Бісау Гвинея-Бисау Ginea-Bissau Gvineja-Bisao Guinea Bissau Guinea-Bissau Guinea-Bissau Guinea-Bissau Γουινέα Μπισάου Guinea-Bissau Gvineo-Bisaŭo Guinea-Bisáu Guinea-Bissau Ginea Bissau گینهٔ بیسائو Guinea-Bissau Guinée-Bissau Guinée-Bissau Guine Bissau Gini-Bioso A Guinea Bissau גינאה-ביסאו Gvineja Bisau Bissau-Guinea Guinea-Bissau Guinea-Bissau Gínea-Bissá Guinea-Bissau ギニアビサウ 기니비사우 Guinea-Bissau Гвинея-Бисау Bisau Gvinėja Gvineja-Bisava ഗിനിയ-ബിസൗ Гвиней-Бисау Guinea-Bissau Guinee-Bissau Guinea-Bissau Guinea-Bissau Gwinea Bissau Guiné-Bissau Guiné-Bissau Guineea-Bissau Гвинея-Бисау Guinea-Bissau Gvineja Bissau Guine-Bisau Гвинеја-Бисао Guinea-Bissau Ginebisau กินี-บิสเซา Gine-Bissau Гвинея-Бисау Гвінея-Бісау Gvineya-Bisau Guinea-Bissau 几内亚比绍 幾內亞比索
GY غيانا Гаяна Гаяна Guyana Gvajana Guyana Guyana Guyana Guyana Γουιάνα Guyana Gujano Guyana Guyana Guyana گویان Guyana Guyana Guyana an Ghuáin Guidheàna Güiana גיאנה Gvajana Guyana Guyana Guyana Gvæjana Guyana ガイアナ 가이아나 Guyana Гайана Gajana Gajāna ഗയാന Гайана Guyana Guyana Guyana Guyana Gujana Guiana Guiana Guyana Гайана Guyana Gvajana Guajanë Гвајана Guyana Guyana กายอานา Guyana Гайана Ґайана Gayana Guyana 圭亚那 蓋亞那
HK هونغ كونغ Ганконг Хонконг Hong Kong Hong Kong Hong Kong Hongkong Hongkong Hongkong Χονγκ Κονγκ Hong Kong Hong Kong Hong Kong Hongkong Hong Kong هنگ‌کنگ Hongkong Hong Kong Hong Kong Hong Cong Hong Kong Hong Kong הונג קונג Hong Kong Hongkong Hong Kong Hong Kong Hong Kong Hong Kong 香港 홍콩 Hong Kong Гонконг Honkongas Honkonga ഹോങ്കോങ് Хонг Конг Hongkong Hongkong Hongkong Hong Kong Hongkong Hong Kong Hong Kong Hong Kong Гонконг Hongkong Hongkong Hong-Kong Хонгконг Hong Kong Hong Kong ฮ่องกง Hong Kong Гонконг Гонконг Gonkong Hồng Kông 香港 香港
HM جزيرة هيرد وجزر ماكدونالد Астравы Херд і Макдональд острови Хърд и Макдоналд Inizi Heard ha McDonald Herd i arhipelag MekDonald Illa Heard i Illes McDonald Heardův ostrov a McDonaldovy ostrovy Heard Island og McDonald Islands Heard und McDonaldinseln Νήσοι Χερντ και Μακντόναλντ Heard & McDonald Islands Herda kaj Makdonaldaj Insuloj Islas Heard y McDonald Heardi ja McDonaldi saared Heard eta McDonald uharteak هرد و جزایر مک‌دونالد Heard ja McDonaldinsaaret Îles Heard et McDonald Îles Heard et McDonald Oileán Heard agus Oileáin McDonald Eilean Heard is MhicDhòmhnaill Illa Heard e Illas McDonald איי הרד ומקדונלד Otoci Heard i McDonald Heard-sziget és McDonald-szigetek Heard & McDonald Islands Pulau Heard dan Kepulauan McDonald Heard og McDonaldseyjar Isole Heard e McDonald ハード島・マクドナルド諸島 허드 맥도널드 제도 Heard & McDonald Islands Херд жана Макдональд аралдары Herdo ir Makdonaldo Salos Hērda sala un Makdonalda salas ഹിയേർഡും മക്‌ഡൊണാൾഡ് ദ്വീപുകളും Херд ба Макдональдийн арлууд Heard- og McDonaldøyene Heard en McDonaldeilanden Heardøya og McDonaldøyane Heard & McDonald Islands Wyspy Heard i McDonalda Ilhas Heard e McDonald Ilhas Heard e McDonald Insula Heard și Insulele McDonald о-ва Херд и Макдональд Heardov ostrov a Macdonaldove ostrovy Heardov otok in McDonaldovi otoki Ishujt Hërd e Mekdonald Острво Херд и Мекдоналдова острва Heardön och McDonaldöarna Kisiwa cha Heard na Visiwa vya McDonald เกาะเฮิร์ดและหมู่เกาะแมกดอนัลด์ Heard Adası ve McDonald Adaları Херд утравы һәм Макдональд утраулары Острови Герд і Макдоналд Xerd va Makdonald orollari Quần đảo Heard và McDonald 赫德岛和麦克唐纳群岛 赫德島及麥唐納群島
HN هندوراس Гандурас Хондурас Honduras Honduras Hondures Honduras Honduras Honduras Ονδούρα Honduras Honduro Honduras Honduras Honduras هندوراس Honduras Honduras Honduras Hondúras Hondùras Honduras הונדורס Honduras Honduras Honduras Honduras Hondúras Honduras ホンジュラス 온두라스 Honduras Гондурас Hondūras Hondurasa ഹോണ്ടുറാസ് Гондурас Honduras Honduras Honduras Honduras Honduras Honduras Honduras Honduras Гондурас Honduras Honduras Honduras Хондурас Honduras Honduras ฮอนดูรัส Honduras Гондурас Гондурас Gonduras Honduras 洪都拉斯 宏都拉斯
HR كرواتيا Харватыя Хърватия Kroatia Hrvatska Croàcia Chorvatsko Kroatien Kroatien Κροατία Croatia Kroatujo Croacia Horvaatia Kroazia کرواسی Kroatia Croatie Croatie an Chróit A Chròthais Croacia קרואטיה Hrvatska Horvátország Croatia Kroasia Króatía Croazia クロアチア 크로아티아 Croatia Хорватия Kroatija Horvātija ക്രൊയേഷ്യ Хорват Kroatia Kroatië Kroatia Croatia Chorwacja Croácia Croácia Croația Хорватия Chorvátsko Hrvaška Kroaci Хрватска Kroatien Croatia โครเอเชีย Hırvatistan Хорватия Хорватія Xorvatiya Croatia 克罗地亚 克羅埃西亞
HT هايتي Гаіці Хаити Haiti Haiti Haití Haiti Haiti Haiti Αϊτή Haiti Haitio Haití Haiti Haiti هائیتی Haiti Haïti Haïti Háítí Haidhti Haití האיטי Haiti Haiti Haiti Haiti Haítí Haiti ハイチ 아이티 Haiti Гаити Haitis Haiti ഹെയ്തി Гаити Haiti Haïti Haiti Haiti Haiti Haiti Haiti Haiti Гаити Haiti Haiti Haiti Хаити Haiti Haiti เฮติ Haiti Гаити Гаїті Gaiti Haiti 海地 海地
HU هنغاريا Венгрыя Унгария Hungaria Mađarska Hongria Maďarsko Ungarn Ungarn Ουγγαρία Hungary Hungarujo Hungría Ungari Hungaria مجارستان Unkari Hongrie Hongrie an Ungáir An Ungair Hungría הונגריה Mađarska Magyarország Hungaria Hungaria Ungverjaland Ungheria ハンガリー 헝가리 Hungary Венгрия Vengrija Ungārija ഹംഗറി Унгар Ungarn Hongarije Ungarn Hungary Węgry Hungria Hungria Ungaria Венгрия Maďarsko Madžarska Hungari Мађарска Ungern Hungaria ฮังการี Macaristan Венгрия Угорщина Vengriya Hungary 匈牙利 匈牙利
IC جزر الكناري Канарскія астравы Канарски острови Inizi Kanariez Kanarska ostrva Illes Canàries Kanárské ostrovy Kanariske øer Kanarische Inseln Κανάριοι Νήσοι Canary Islands Canary Islands Canarias Kanaari saared Kanariak جزایر قناری Kanariansaaret Îles Canaries Îles Canaries na hOileáin Chanáracha Na h-Eileanan Canàrach Illas Canarias האיים הקנריים Kanarski otoci Kanári-szigetek Canary Islands Kepulauan Canaria Kanaríeyjar Isole Canarie カナリア諸島 카나리아 제도 Canary Islands Канар аралдары Kanarų salos Kanāriju salas കാനറി ദ്വീപുകൾ Канарын арлууд Kanariøyene Canarische Eilanden Kanariøyane Canary Islands Wyspy Kanaryjskie Ilhas Canárias Ilhas Canárias Insulele Canare Канарские о-ва Kanárske ostrovy Kanarski otoki Ishujt Kanarie Канарска Острва Kanarieöarna Visiwa vya Kanari หมู่เกาะคานารี Kanarya Adaları Canary Islands Канарські Острови Kanar orollari Quần đảo Canary 加纳利群岛 加那利群島
ID إندونيسيا Інданезія Индонезия Indonezia Indonezija Indonèsia Indonésie Indonesien Indonesien Ινδονησία Indonesia Indonezio Indonesia Indoneesia Indonesia اندونزی Indonesia Indonésie Indonésie an Indinéis Na h-Innd-innse Indonesia אינדונזיה Indonezija Indonézia Indonesia Indonesia Indónesía Indonesia インドネシア 인도네시아 Indonesia Индонезия Indonezija Indonēzija ഇന്തോനേഷ്യ Индонез Indonesia Indonesië Indonesia Indonesia Indonezja Indonésia Indonésia Indonezia Индонезия Indonézia Indonezija Indonezi Индонезија Indonesien Indonesia อินโดนีเซีย Endonezya Индонезия Індонезія Indoneziya Indonesia 印度尼西亚 印尼
IE أيرلندا Ірландыя Ирландия Iwerzhon Irska Irlanda Irsko Irland Irland Ιρλανδία Ireland Irlando Irlanda Iirimaa Irlanda ایرلند Irlanti Irlande Irlande Éire Èirinn Irlanda אירלנד Irska Írország Irlanda Irlandia Írland Irlanda アイルランド 아일랜드 Ireland Ирландия Airija Īrija അയർലൻഡ് Ирланд Irland Ierland Irland Ireland Irlandia Irlanda Irlanda Irlanda Ирландия Írsko Irska Irlandë Ирска Irland Ayalandi ไอร์แลนด์ İrlanda Ирландия Ірландія Irlandiya Ireland 爱尔兰 愛爾蘭
IL إسرائيل Ізраіль Израел Israel Izrael Israel Izrael Israel Israel Ισραήλ Israel Israelo Israel Iisrael Israel اسرائیل Israel Israël Israël Iosrael Iosrael Israel ישראל Izrael Izrael Israel Israel Ísrael Israele イスラエル 이스라엘 Israel Израиль Izraelis Izraēla ഇസ്രായേൽ Израиль Israel Israël Israel Israel Izrael Israel Israel Israel Израиль Izrael Izrael Izrael Израел Israel Israeli อิสราเอล İsrail Израиль Ізраїль Isroil Israel 以色列 以色列
IM جزيرة مان Востраў Мэн остров Ман Enez Vanav Ostrvo Man Illa de Man Ostrov Man Isle of Man Isle of Man Νήσος του Μαν Isle of Man Isle of Man Isla de Man Mani saar Man uhartea جزیرهٔ من Mansaari Île de Man Île de Man Oileán Mhanann Eilean Mhanainn Illa de Man האי מאן Otok Man Man-sziget Insula de Man Pulau Man Mön Isola di Man マン島 맨 섬 Isle of Man Мэн аралы Meno Sala Mena ഐൽ ഓഫ് മാൻ Мэн Арал Man Isle of Man Man Isle of Man Wyspa Man Ilha de Man Ilha de Man Insula Man о-в Мэн Ostrov Man Otok Man Ishulli i Manit Острво Ман Isle of Man Kisiwa cha Man เกาะแมน Man Adası Мэн утравы Острів Мен Men oroli Đảo Man 马恩岛 曼島
IN الهند Індыя Индия India Indija Índia Indie Indien Indien Ινδία India Hindujo India India India هند Intia Inde Inde an India Na h-Innseachan A India הודו Indija India India India Indland India インド 인도 Eynda Индия Indija Indija ഇന്ത്യ Энэтхэг India India India Инди Indie Índia Índia India Индия India Indija Indi Индија Indien India อินเดีย Hindistan Индия Індія Hindiston Ấn Độ 印度 印度
IO الإقليم البريطاني في المحيط الهندي Брытанская тэрыторыя ў Індыйскім акіяне Британска територия в Индийския океан Tiriad breizhveurat Meurvor Indez Britanska Teritorija u Indijskom Okeanu Territori Britànic de lOceà Índic Britské indickooceánské území Det Britiske Territorium i Det Indiske Ocean Britisches Territorium im Indischen Ozean Βρετανικά Εδάφη Ινδικού Ωκεανού British Indian Ocean Territory Brita Hindoceana Teritorio Territorio Británico del Océano Índico Briti India ookeani ala Indiako Ozeanoko lurralde britainiarra قلمرو بریتانیا در اقیانوس هند Brittiläinen Intian valtameren alue Territoire britannique de locéan Indien Territoire britannique de locéan Indien Críoch Aigéan Indiach na Breataine Ranntair Breatannach Cuan nan Innseachan Territorio Británico do Océano Índico הטריטוריה הבריטית באוקיינוס ההודי Britanski Indijskooceanski teritorij Brit Indiai-óceáni Terület Territorio oceanic britanno-indian Wilayah Inggris di Samudra Hindia Bresku Indlandshafseyjar Territorio britannico dellOceano Indiano 英領インド洋地域 영국령 인도양 식민지 British Indian Ocean Territory Инди океанындагы Британ территориясы Indijos Vandenyno Britų Sritis Indijas okeāna Britu teritorija ബ്രിട്ടീഷ് ഇന്ത്യൻ മഹാസമുദ്ര പ്രദേശം Британийн харьяа Энэтхэгийн далай дахь нутаг дэвсгэр Det britiske territoriet i Indiahavet Brits Indische Oceaanterritorium Det britiske territoriet I Indiahavet British Indian Ocean Territory Brytyjskie Terytorium Oceanu Indyjskiego Território Britânico do Oceano Índico Território Britânico do Oceano Índico Teritoriul Britanic din Oceanul Indian Британская территория в Индийском океане Britské indickooceánske územie Britansko ozemlje v Indijskem oceanu Territori Britanik i Oqeanit Indian Британска територија Индијског океана Brittiska territoriet i Indiska oceanen Eneo la Uingereza katika Bahari Hindi บริติชอินเดียนโอเชียนเทร์ริทอรี Britanya Hint Okyanusu Toprakları Британиянең Һинд Океанындагы Территориясе Британська територія в Індійському Океані Britaniyaning Hind okeanidagi hududi Lãnh thổ Ấn Độ Dương thuộc Anh 英属印度洋领地 英屬印度洋領地
IQ العراق Ірак Ирак Iraq Irak Iraq Irák Irak Irak Ιράκ Iraq Irako Irak Iraak Irak عراق Irak Irak Irak an Iaráic Ioràc Iraq עיראק Irak Irak Irak Irak Írak Iraq イラク 이라크 Iraq Ирак Irakas Irāka ഇറാഖ് Ирак Irak Irak Irak Iraq Irak Iraque Iraque Irak Ирак Irak Irak Irak Ирак Irak Iraki อิรัก Irak Гыйрак Ірак Iroq Iraq 伊拉克 伊拉克
IR إيران Іран Иран Iran Iran Iran Írán Iran Iran Ιράν Iran Irano Irán Iraan Iran ایران Iran Iran Iran an Iaráin Ioràn Irán איראן Iran Irán Iran Iran Íran Iran イラン 이란 Iran Иран Iranas Irāna ഇറാൻ Иран Iran Iran Iran Iran Iran Irã Irã Iran Иран Irán Iran Iran Иран Iran Iran อิหร่าน İran Иран Іран Eron Iran 伊朗 伊朗
IS آيسلندا Ісландыя Исландия Island Island Islàndia Island Island Island Ισλανδία Iceland Islando Islandia Island Islandia ایسلند Islanti Islande Islande an Íoslainn Innis Tìle Islandia איסלנד Island Izland Islanda Islandia Ísland Islanda アイスランド 아이슬란드 Iceland Исландия Islandija Islande ഐസ്‌ലാന്റ് Исланд Island IJsland Island Iceland Islandia Islândia Islândia Islanda Исландия Island Islandija Islandë Исланд Island Aisilandi ไอซ์แลนด์ İzlanda Исландия Ісландія Islandiya Iceland 冰岛 冰島
IT إيطاليا Італія Италия Italia Italija Itàlia Itálie Italien Italien Ιταλία Italy Italujo Italia Itaalia Italia ایتالیا Italia Italie Italie an Iodáil An Eadailt Italia איטליה Italija Olaszország Italia Italia Ítalía Italia イタリア 이탈리아 Itali Италия Italija Itālija ഇറ്റലി Итали Italia Italië Italia Итали Włochy Itália Itália Italia Италия Taliansko Italija Itali Италија Italien Italia อิตาลี İtalya Италия Італія Italiya Italy 意大利 義大利
JE جيرسي Джэрсі Джърси Jerzenez Jersey Jersey Jersey Jersey Jersey Τζέρζι Jersey Jersey Jersey Jersey Jersey جرزی Jersey Jersey Jersey Geirsí Deàrsaidh Jersey ג׳רזי Jersey Jersey Jersey Jersey Jersey Jersey ジャージー 저지 Jersey Жерси Džersis Džērsija ജേഴ്സി Жерси Jersey Jersey Jersey Jersey Jersey Jersey Jersey Jersey Джерси Jersey Jersey Xhersej Џерзи Jersey Jersey เจอร์ซีย์ Jersey Джерси Джерсі Jersi Jersey 泽西岛 澤西島
JM جامايكا Ямайка Ямайка Jamaika Jamajka Jamaica Jamajka Jamaica Jamaika Τζαμάικα Jamaica Jamajko Jamaica Jamaica Jamaika جامائیکا Jamaika Jamaïque Jamaïque Iamáice Diameuga Xamaica ג׳מייקה Jamajka Jamaica Jamaica Jamaika Jamaíka Giamaica ジャマイカ 자메이카 Jamaica Ямайка Jamaika Jamaika ജമൈക്ക Ямайка Jamaica Jamaica Jamaica Jamaica Jamajka Jamaica Jamaica Jamaica Ямайка Jamajka Jamajka Xhamajkë Јамајка Jamaica Jamaika จาเมกา Jamaika Ямайка Ямайка Yamayka Jamaica 牙买加 牙買加
JO الأردن Іарданія Йордания Jordania Jordan Jordània Jordánsko Jordan Jordanien Ιορδανία Jordan Jordanio Jordania Jordaania Jordania اردن Jordania Jordanie Jordanie an Iordáin Iòrdan Xordania ירדן Jordan Jordánia Jordania Yordania Jórdanía Giordania ヨルダン 요르단 Jordan Иордания Jordanija Jordānija ജോർദ്ദാൻ Йордан Jordan Jordanië Jordan Jordan Jordania Jordânia Jordânia Iordania Иордания Jordánsko Jordanija Jordani Јордан Jordanien Jordan จอร์แดน Ürdün Иордания Йорданія Iordaniya Jordan 约旦 約旦
JP اليابان Японія Япония Japan Japan Japó Japonsko Japan Japan Ιαπωνία Japan Japanujo Japón Jaapan Japonia ژاپن Japani Japon Japon an tSeapáin An t-Seapan O Xapón יפן Japan Japán Japon Jepang Japan Giappone 日本 일본 Japan Япония Japonija Japāna ജപ്പാൻ Япон Japan Japan Japan Япон Japonia Japão Japão Japonia Япония Japonsko Japonska Japoni Јапан Japan Japani ญี่ปุ่น Japonya Япония Японія Yaponiya Nhật Bản 日本 日本
KE كينيا Кенія Кения Kenya Kenija Kenya Keňa Kenya Kenia Κένυα Kenya Kenjo Kenia Keenia Kenya کنیا Kenia Kenya Kenya an Chéinia Ceinia Kenya קניה Kenija Kenya Kenya Kenya Kenía Kenya ケニア 케냐 Kenya Кения Kenija Kenija കെനിയ Кени Kenya Kenia Kenya Kenya Kenia Quênia Quênia Kenya Кения Keňa Kenija Kenia Кенија Kenya Kenya เคนยา Kenya Кения Кенія Keniya Kenya 肯尼亚 肯亞
KG قيرغيزستان Кыргызстан Киргизстан Kyrgyzstan Kirgistan Kirguizistan Kyrgyzstán Kirgisistan Kirgisistan Κιργιστάν Kyrgyzstan Kirgizistano Kirguistán Kõrgõzstan Kirgizistan قرقیزستان Kirgisia Kirghizistan Kirghizistan an Chirgeastáin Cìorgastan Kirguizistán קירגיזסטן Kirgistan Kirgizisztán Kirghizistan Kirgistan Kirgistan Kirghizistan キルギス 키르기스스탄 Kyrgyzstan Кыргызстан Kirgizija Kirgizstāna കിർഗിസ്ഥാൻ Кыргызстан Kirgisistan Kirgizië Kirgisistan Kyrgyzstan Kirgistan Quirguistão Quirguistão Kârgâzstan Киргизия Kirgizsko Kirgizistan Kirgizi Киргистан Kirgizistan Kirigizistani คีร์กีซสถาน Kırgızistan Кыргызстан Киргизстан Qirgʻiziston Kyrgyzstan 吉尔吉斯斯坦 吉爾吉斯
KH كمبوديا Камбоджа Камбоджа Kambodja Kambodža Cambodja Kambodža Cambodja Kambodscha Καμπότζη Cambodia Kamboĝo Camboya Kambodža Kanbodia کامبوج Kambodža Cambodge Cambodge an Chambóid Cambuidea Camboxa קמבודיה Kambodža Kambodzsa Cambodgia Kamboja Kambódía Cambogia カンボジア 캄보디아 Cambodia Камбоджа Kambodža Kambodža കംബോഡിയ Камбож Kambodsja Cambodja Kambodsja Cambodia Kambodża Camboja Camboja Cambodgia Камбоджа Kambodža Kambodža Kamboxhia Камбоџа Kambodja Kambodia กัมพูชา Kamboçya Камбоджа Камбоджа Kambodja Campuchia 柬埔寨 柬埔寨
KI كيريباتي Кірыбаці Кирибати Kiribati Kiribati Kiribati Kiribati Kiribati Kiribati Κιριμπάτι Kiribati Kiribato Kiribati Kiribati Kiribati کیریباتی Kiribati Kiribati Kiribati Cireabaití Ciribeas Kiribati קיריבאטי Kiribati Kiribati Kiribati Kiribati Kíribatí Kiribati キリバス 키리바시 Kiribati Кирибати Kiribatis Kiribati കിരിബാട്ടി Кирибати Kiribati Kiribati Kiribati Kiribati Kiribati Quiribati Quiribati Kiribati Кирибати Kiribati Kiribati Kiribati Кирибати Kiribati Kiribati คิริบาส Kiribati Кирибати Кірібаті Kiribati Kiribati 基里巴斯 吉里巴斯
KM جزر القمر Каморскія астравы Коморски острови Komorez Komori Comores Komory Comorerne Komoren Κομόρες Comoros Komoroj Comoras Komoorid Komoreak کومور Komorit Comores Comores Oileáin Chomóra Comoros Comores קומורו Komori Comore-szigetek Comoros Komoro Kómoreyjar Comore コモロ 코모로 Comoros Коморос Komorai Komoru salas കോമൊറോസ് Коморын арлууд Komorene Comoren Komorane Comoros Komory Comores Comores Comore Коморы Komory Komori Komore Коморска Острва Komorerna Komoro คอโมโรส Komorlar Комор утраулары Комори Komor orollari Comoros 科摩罗 葛摩
KN سانت كيتس ونيفيس Сент-Кітс і Невіс Сейнт Китс и Невис Saint Kitts ha Nevis Sveti Kits i Nevis Saint Christopher i Nevis Svatý Kryštof a Nevis Saint Kitts og Nevis St. Kitts und Nevis Σεν Κιτς και Νέβις St. Kitts & Nevis Sent-Kristofo kaj Neviso San Cristóbal y Nieves Saint Kitts ja Nevis Saint Kitts eta Nevis سنت کیتس و نویس Saint Kitts ja Nevis Saint-Christophe-et-Niévès Saint-Christophe-et-Niévès San Críostóir-Nimheas Naomh Crìstean is Nibheis Saint Kitts e Nevis סנט קיטס ונוויס Sveti Kristofor i Nevis Saint Kitts és Nevis Sancte Christophoro e Nevis Saint Kitts dan Nevis Sankti Kitts og Nevis Saint Kitts e Nevis セントクリストファー・ネーヴィス 세인트키츠 네비스 St. Kitts & Nevis Сент-Китс жана Невис Sent Kitsas ir Nevis Sentkitsa un Nevisa സെന്റ് കിറ്റ്‌സും നെവിസും Сент-Киттс ба Невис Saint Kitts og Nevis Saint Kitts en Nevis Saint Kitts og Nevis St. Kitts & Nevis Saint Kitts i Nevis São Cristóvão e Névis São Cristóvão e Névis Saint Kitts și Nevis Сент-Китс и Невис Svätý Krištof a Nevis Saint Kitts in Nevis Shën-Kits dhe Nevis Сент Китс и Невис S:t Kitts och Nevis St. Kitts na Nevis เซนต์คิตส์และเนวิส Saint Kitts ve Nevis Сент-Китс һәм Невис Сент-Кітс і Невіс Sent-Kits va Nevis St. Kitts và Nevis 圣基茨和尼维斯 聖克里斯多福及尼維斯
KP كوريا الشمالية Паўночная Карэя Северна Корея Korea an Norzh Sjeverna Koreja Corea del Nord Severní Korea Nordkorea Nordkorea Βόρεια Κορέα North Korea Nord-Koreo Corea del Norte Põhja-Korea Ipar Korea کرهٔ شمالی Pohjois-Korea Corée du Nord Corée du Nord an Chóiré Thuaidh Coirèa a Tuath Corea do Norte קוריאה הצפונית Sjeverna Koreja Észak-Korea Corea del Nord Korea Utara Norður-Kórea Corea del Nord 北朝鮮 북한 North Korea Түндүк Корея Šiaurės Korėja Ziemeļkoreja ഉത്തരകൊറിയ Хойд Солонгос Nord-Korea Noord-Korea Nord-Korea North Korea Korea Północna Coreia do Norte Coreia do Norte Coreea de Nord КНДР Severná Kórea Severna Koreja Kore e Veriut Северна Кореја Nordkorea Korea Kaskazini เกาหลีเหนือ Kuzey Kore Төньяк Корея Північна Корея Shimoliy Koreya Triều Tiên 朝鲜 北韓
KR كوريا الجنوبية Паўднёвая Карэя Южна Корея Korea ar Su Južna Koreja Corea del Sud Jižní Korea Sydkorea Südkorea Νότια Κορέα South Korea Sud-Koreo Corea del Sur Lõuna-Korea Hego Korea کرهٔ جنوبی Etelä-Korea Corée du Sud Corée du Sud an Chóiré Theas Coirèa Corea do Sur קוריאה הדרומית Južna Koreja Dél-Korea Corea del Sud Korea Selatan Suður-Kórea Corea del Sud 韓国 대한민국 South Korea Түштүк Корея Pietų Korėja Dienvidkoreja ദക്ഷിണകൊറിയ Өмнөд Солонгос Sør-Korea Zuid-Korea Sør-Korea South Korea Korea Południowa Coreia do Sul Coreia do Sul Coreea de Sud Республика Корея Južná Kórea Južna Koreja Kore e Jugut Јужна Кореја Sydkorea Korea Kusini เกาหลีใต้ Güney Kore South Korea Південна Корея Janubiy Koreya Hàn Quốc 韩国 南韓
KW الكويت Кувейт Кувейт Koweit Kuvajt Kuwait Kuvajt Kuwait Kuwait Κουβέιτ Kuwait Kuvajto Kuwait Kuveit Kuwait کویت Kuwait Koweït Koweït Cuáit Cuibhèit Kuwait כווית Kuvajt Kuvait Kuwait Kuwait Kúveit Kuwait クウェート 쿠웨이트 Kuwait Кувейт Kuveitas Kuveita കുവൈറ്റ് Кувейт Kuwait Koeweit Kuwait Kuwait Kuwejt Kuwait Kuwait Kuweit Кувейт Kuvajt Kuvajt Kuvajt Кувајт Kuwait Kuwait คูเวต Kuveyt Күвәйт Кувейт Quvayt Kuwait 科威特 科威特
KY جزر كايمان Кайманавы астравы Кайманови острови Inizi Cayman Kajmanska ostrva Illes Caiman Kajmanské ostrovy Caymanøerne Kaimaninseln Νήσοι Κέιμαν Cayman Islands Kejmanoj Islas Caimán Kaimanisaared Kaiman uharteak جزایر کِیمن Caymansaaret Îles Caïmans Îles Caïmans Oileáin Cayman Na h-Eileanan Caimean Illas Caimán איי קיימן Kajmanski otoci Kajmán-szigetek Insulas de Caiman Kepulauan Cayman Caymaneyjar Isole Cayman ケイマン諸島 케이맨 제도 Cayman Islands Кайман аралдары Kaimanų Salos Kaimanu salas കേയ്മാൻ ദ്വീപുകൾ Кайманы арлууд Caymanøyene Kaaimaneilanden Caymanøyane Cayman Islands Kajmany Ilhas Cayman Ilhas Cayman Insulele Cayman Острова Кайман Kajmanie ostrovy Kajmanski otoki Ishujt Kajman Кајманска Острва Caymanöarna Visiwa vya Cayman หมู่เกาะเคย์แมน Cayman Adaları Кайман утраулары Кайманові Острови Kayman orollari Quần đảo Cayman 开曼群岛 開曼群島
KZ كازاخستان Казахстан Казахстан Kazakstan Kazahstan Kazakhstan Kazachstán Kasakhstan Kasachstan Καζακστάν Kazakhstan Kazaĥstano Kazajistán Kasahstan Kazakhstan قزاقستان Kazakstan Kazakhstan Kazakhstan an Chasacstáin Casachstàn Kazakistán קזחסטן Kazahstan Kazahsztán Kazakhstan Kazakstan Kasakstan Kazakistan カザフスタン 카자흐스탄 Kazakhstan Казакстан Kazachstanas Kazahstāna കസാഖിസ്ഥാൻ Казахстан Kasakhstan Kazachstan Kasakhstan Kazakhstan Kazachstan Cazaquistão Cazaquistão Kazahstan Казахстан Kazachstan Kazahstan Kazakistan Казахстан Kazakstan Kazakistani คาซัคสถาน Kazakistan Казахстан Казахстан Qozogʻiston Kazakhstan 哈萨克斯坦 哈薩克
LA لاوس Лаос Лаос Laos Laos Laos Laos Laos Laos Λάος Laos Laoso Laos Laos Laos لائوس Laos Laos Laos Laos Làthos Laos לאוס Laos Laosz Laos Laos Laos Laos ラオス 라오스 Laos Лаос Laosas Laosa ലാവോസ് Лаос Laos Laos Laos Laos Laos Laos Laos Laos Лаос Laos Laos Laos Лаос Laos Laos ลาว Laos Лаос Лаос Laos Lào 老挝 寮國
LB لبنان Ліван Ливан Liban Liban Líban Libanon Libanon Libanon Λίβανος Lebanon Libano Líbano Liibanon Libano لبنان Libanon Liban Liban an Liobáin Leabanon O Líbano לבנון Libanon Libanon Libano Lebanon Líbanon Libano レバノン 레바논 Lebanon Ливан Libanas Libāna ലെബനൻ Ливан Libanon Libanon Libanon Lebanon Liban Líbano Líbano Liban Ливан Libanon Libanon Liban Либан Libanon Lebanon เลบานอน Lübnan Ливан Ліван Livan Li-băng 黎巴嫩 黎巴嫩
LC سانت لوسيا Сент-Люсія Сейнт Лусия Saint Lucia Sveta Lucija Saint Lucia Svatá Lucie Saint Lucia St. Lucia Αγία Λουκία St. Lucia Sent-Lucio Santa Lucía Saint Lucia Santa Luzia سنت لوسیا Saint Lucia Sainte-Lucie Sainte-Lucie Saint Lucia Naomh Lùisea Santa Lucía סנט לוסיה Sveta Lucija Saint Lucia Sancte Lucia Saint Lucia Sankti Lúsía Saint Lucia セントルシア 세인트루시아 St. Lucia Сент-Люсия Sent Lusija Sentlūsija സെന്റ് ലൂസിയ Сент Люсиа St. Lucia Saint Lucia St. Lucia St. Lucia Saint Lucia Santa Lúcia Santa Lúcia Sfânta Lucia Сент-Люсия Svätá Lucia Saint Lucia Shën-Luçia Света Луција S:t Lucia St. Lucia เซนต์ลูเซีย Saint Lucia Сент-Люсия Сент-Люсія Sent-Lyusiya St. Lucia 圣卢西亚 聖露西亞
LI ليختنشتاين Ліхтэнштэйн Лихтенщайн Liechtenstein Lihtenštajn Liechtenstein Lichtenštejnsko Liechtenstein Liechtenstein Λιχτενστάιν Liechtenstein Liĥtenŝtejno Liechtenstein Liechtenstein Liechtenstein لیختن‌اشتاین Liechtenstein Liechtenstein Liechtenstein Lichtinstéin Lichtenstein Liechtenstein ליכטנשטיין Lihtenštajn Liechtenstein Liechtenstein Liechtenstein Liechtenstein Liechtenstein リヒテンシュタイン 리히텐슈타인 Liechtenstein Лихтенштейн Lichtenšteinas Lihtenšteina ലിച്ചൺസ്റ്റൈൻ Лихтенштейн Liechtenstein Liechtenstein Liechtenstein Liechtenstein Liechtenstein Liechtenstein Liechtenstein Liechtenstein Лихтенштейн Lichtenštajnsko Lihtenštajn Lihtenshtajn Лихтенштајн Liechtenstein Liechtenstein ลิกเตนสไตน์ Liechtenstein Лихтенштейн Ліхтенштейн Lixtenshteyn Liechtenstein 列支敦士登 列支敦斯登
LK سريلانكا Шры-Ланка Шри Ланка Sri Lanka Šri Lanka Sri Lanka Srí Lanka Sri Lanka Sri Lanka Σρι Λάνκα Sri Lanka Sri-Lanko Sri Lanka Sri Lanka Sri Lanka سری‌لانکا Sri Lanka Sri Lanka Sri Lanka Srí Lanca Sri Lanca Sri Lanka סרי לנקה Šri Lanka Srí Lanka Sri Lanka Sri Lanka Srí Lanka Sri Lanka スリランカ 스리랑카 Sri Lanka Шри-Ланка Šri Lanka Šrilanka ശ്രീലങ്ക Шри-Ланка Sri Lanka Sri Lanka Sri Lanka Sri Lanka Sri Lanka Sri Lanka Sri Lanka Sri Lanka Шри-Ланка Srí Lanka Šrilanka Sri-Lankë Шри Ланка Sri Lanka Sri Lanka ศรีลังกา Sri Lanka Шри-Ланка Шрі-Ланка Shri-Lanka Sri Lanka 斯里兰卡 斯里蘭卡
LR ليبيريا Ліберыя Либерия Liberia Liberija Libèria Libérie Liberia Liberia Λιβερία Liberia Liberio Liberia Libeeria Liberia لیبریا Liberia Libéria Libéria an Libéir Libèir Liberia ליבריה Liberija Libéria Liberia Liberia Líbería Liberia リベリア 라이베리아 Liberia Либерия Liberija Libērija ലൈബീരിയ Либери Liberia Liberia Liberia Liberia Liberia Libéria Libéria Liberia Либерия Libéria Liberija Liberi Либерија Liberia Liberia ไลบีเรีย Liberya Либерия Ліберія Liberiya Liberia 利比里亚 賴比瑞亞
LS ليسوتو Лесота Лесото Lesotho Lesoto Lesotho Lesotho Lesotho Lesotho Λεσότο Lesotho Lesoto Lesoto Lesotho Lesotho لسوتو Lesotho Lesotho Lesotho Leosóta Leasoto Lesotho לסוטו Lesoto Lesotho Lesotho Lesotho Lesótó Lesotho レソト 레소토 Lesotho Лесото Lesotas Lesoto ലെസോതോ Лесото Lesotho Lesotho Lesotho Lesotho Lesotho Lesoto Lesoto Lesotho Лесото Lesotho Lesoto Lesoto Лесото Lesotho Lesoto เลโซโท Lesotho Лесото Лесото Lesoto Lesotho 莱索托 賴索托
LT ليتوانيا Літва Литва Lituania Litvanija Lituània Litva Litauen Litauen Λιθουανία Lithuania Litovujo Lituania Leedu Lituania لیتوانی Liettua Lituanie Lituanie an Liotuáin An Liotuain Lituania ליטא Litva Litvánia Lituania Lituania Litháen Lituania リトアニア 리투아니아 Lithuania Литва Lietuva Lietuva ലിത്വാനിയ Литва Litauen Litouwen Litauen Lithuania Litwa Lituânia Lituânia Lituania Литва Litva Litva Lituani Литванија Litauen Lithuania ลิทัวเนีย Litvanya Литва Литва Litva Litva 立陶宛 立陶宛
LU لوكسمبورغ Люксембург Люксембург Luksembourg Luksemburg Luxemburg Lucembursko Luxembourg Luxemburg Λουξεμβούργο Luxembourg Luksemburgo Luxemburgo Luksemburg Luxenburgo لوکزامبورگ Luxemburg Luxembourg Luxembourg Lucsamburg Lugsamburg Luxemburgo לוקסמבורג Luksemburg Luxemburg Luxemburg Luksemburg Lúxemborg Lussemburgo ルクセンブルク 룩셈부르크 Luxembourg Люксембург Liuksemburgas Luksemburga ലക്സംബർഗ് Люксембург Luxemburg Luxemburg Luxembourg Luxembourg Luksemburg Luxemburgo Luxemburgo Luxemburg Люксембург Luxembursko Luksemburg Luksemburg Луксембург Luxemburg Luxembourg ลักเซมเบิร์ก Lüksemburg Люксембург Люксембурґ Lyuksemburg Luxembourg 卢森堡 盧森堡
LV لاتفيا Латвія Латвия Latvia Latvija Letònia Lotyšsko Letland Lettland Λετονία Latvia Latvujo Letonia Läti Letonia لتونی Latvia Lettonie Lettonie an Laitvia An Laitbhe Letonia לטביה Latvija Lettország Lettonia Latvia Lettland Lettonia ラトビア 라트비아 Latvia Латвия Latvija Latvija ലാറ്റ്വിയ Латви Latvia Letland Latvia Latvia Łotwa Letônia Letônia Letonia Латвия Lotyšsko Latvija Letoni Летонија Lettland Latvia ลัตเวีย Letonya Латвия Латвія Latviya Latvia 拉脱维亚 拉脫維亞
LY ليبيا Лівія Либия Libia Libija Líbia Libye Libyen Libyen Λιβύη Libya Libio Libia Liibüa Libia لیبی Libya Libye Libye an Libia Libia Libia לוב Libija Líbia Libya Libia Líbía Libia リビア 리비아 Libya Ливия Libija Lībija ലിബിയ Ливи Libya Libië Libya Libya Libia Líbia Líbia Libia Ливия Líbya Libija Libi Либија Libyen Libya ลิเบีย Libya Ливия Лівія Liviya Libya 利比亚 利比亞
MA المغرب Марока Мароко Maroko Maroko Marroc Maroko Marokko Marokko Μαρόκο Morocco Maroko Marruecos Maroko Maroko مراکش Marokko Maroc Maroc Maracó Moroco Marrocos מרוקו Maroko Marokkó Marocco Maroko Marokkó Marocco モロッコ 모로코 Morocco Марокко Marokas Maroka മൊറോക്കൊ Морокко Marokko Marokko Marokko Morocco Maroko Marrocos Marrocos Maroc Марокко Maroko Maroko Marok Мароко Marocko Morocco โมร็อกโก Fas Марокко Марокко Marokash Ma-rốc 摩洛哥 摩洛哥
MC موناكو Манака Монако Monaco Monako Mònaco Monako Monaco Monaco Μονακό Monaco Monako Mónaco Monaco Monako موناکو Monaco Monaco Monaco Monacó Monaco Mónaco מונקו Monako Monaco Monaco Monako Mónakó Monaco モナコ 모나코 Monaco Монако Monakas Monako മൊണാക്കോ Монако Monaco Monaco Monaco Monaco Monako Mônaco Mônaco Monaco Монако Monako Monako Monako Монако Monaco Monaco โมนาโก Monako Монако Монако Monako Monaco 摩纳哥 摩納哥
MD مولدوفا Малдова Молдова Moldova Moldavija Moldàvia Moldavsko Moldova Republik Moldau Μολδαβία Moldova Moldavujo Moldavia Moldova Moldavia مولداوی Moldova Moldavie Moldavie an Mholdóiv A Mholdobha Moldavia מולדובה Moldavija Moldova Moldavia Moldova Moldóva Moldavia モルドバ 몰도바 Moldova Молдова Moldova Moldova മൾഡോവ Молдова Moldova Moldavië Moldova Moldova Mołdawia Moldova Moldova Republica Moldova Молдова Moldavsko Moldavija Moldavi Молдавија Moldavien Moldova มอลโดวา Moldova Молдова Молдова Moldova Moldova 摩尔多瓦 摩爾多瓦
ME الجبل الأسود Чарнагорыя Черна гора Montenegro Crna Gora Montenegro Černá Hora Montenegro Montenegro Μαυροβούνιο Montenegro Montenegro Montenegro Montenegro Montenegro مونته‌نگرو Montenegro Monténégro Monténégro Montainéagró Am Monadh Neagrach Montenegro מונטנגרו Crna Gora Montenegró Montenegro Montenegro Svartfjallaland Montenegro モンテネグロ 몬테네그로 Montenegro Черногория Juodkalnija Melnkalne മോണ്ടെനെഗ്രോ Монтенегро Montenegro Montenegro Montenegro Montenegro Czarnogóra Montenegro Montenegro Muntenegru Черногория Čierna Hora Črna gora Mal i Zi Црна Гора Montenegro Montenegro มอนเตเนโกร Karadağ Черногория Чорногорія Chernogoriya Montenegro 黑山 蒙特內哥羅
MF سان مارتن Сен-Мартэн Сен Мартен Saint Martin Sveti Martin Saint Martin Svatý Martin (Francie) Saint Martin St. Martin Άγιος Μαρτίνος (Γαλλικό τμήμα) St. Martin St. Martin San Martín Saint-Martin San Martin سنت مارتین Saint-Martin Saint-Martin Saint-Martin Saint-Martin Naomh Màrtainn Saint Martin סן מרטן Saint Martin Saint Martin St. Martin Saint Martin Saint-Martin Saint Martin サン・マルタン 생마르탱 St. Martin Сент-Мартин Sen Martenas Senmartēna സെന്റ് മാർട്ടിൻ Сент-Мартин Saint-Martin Saint-Martin Saint Martin St. Martin Saint-Martin São Martinho São Martinho Sfântul Martin Сен-Мартен Svätý Martin (fr.) Saint Martin Sen-Marten Свети Мартин (Француска) Saint-Martin St. Martin เซนต์มาร์ติน Saint Martin Сент-Мартин Сен-Мартен Sent-Martin St. Martin 法属圣马丁 法屬聖馬丁
MG مدغشقر Мадагаскар Мадагаскар Madagaskar Madagaskar Madagascar Madagaskar Madagaskar Madagaskar Μαδαγασκάρη Madagascar Madagaskaro Madagascar Madagaskar Madagaskar ماداگاسکار Madagaskar Madagascar Madagascar Madagascar Madagasgar Madagascar מדגסקר Madagaskar Madagaszkár Madagascar Madagaskar Madagaskar Madagascar マダガスカル 마다가스카르 Madagascar Мадагаскар Madagaskaras Madagaskara മഡഗാസ്കർ Мадагаскар Madagaskar Madagaskar Madagaskar Madagascar Madagaskar Madagascar Madagascar Madagascar Мадагаскар Madagaskar Madagaskar Madagaskar Мадагаскар Madagaskar Madagaska มาดากัสการ์ Madagaskar Мадагаскар Мадагаскар Madagaskar Madagascar 马达加斯加 馬達加斯加
MH جزر مارشال Маршалавы астравы Маршалови острови Inizi Marshall Maršalova ostrva Illes Marshall Marshallovy ostrovy Marshalløerne Marshallinseln Νήσοι Μάρσαλ Marshall Islands Marŝaloj Islas Marshall Marshalli Saared Marshall Uharteak جزایر مارشال Marshallinsaaret Îles Marshall Îles Marshall Oileáin Marshall Eileanan Mharshall Illas Marshall איי מרשל Maršalovi Otoci Marshall-szigetek Insulas Marshall Kepulauan Marshall Marshalleyjar Isole Marshall マーシャル諸島 마셜 제도 Marshall Islands Маршалл аралдары Maršalo Salos Māršala salas മാർഷൽ ദ്വീപുകൾ Маршаллын арлууд Marshalløyene Marshalleilanden Marshalløyane Marshall Islands Wyspy Marshalla Ilhas Marshall Ilhas Marshall Insulele Marshall Маршалловы Острова Marshallove ostrovy Marshallovi otoki Ishujt Marshall Маршалска Острва Marshallöarna Visiwa vya Marshall หมู่เกาะมาร์แชลล์ Marshall Adaları Маршалл утраулары Маршаллові Острови Marshall orollari Quần đảo Marshall 马绍尔群岛 馬紹爾群島
MK مقدونيا الشمالية Паўночная Македонія Северна Македония Makedonia an Norzh Sjeverna Makedonija Macedònia del Nord Severní Makedonie Nordmakedonien Nordmazedonien Βόρεια Μακεδονία North Macedonia North Macedonia Macedonia del Norte Põhja-Makedoonia Ipar Mazedonia مقدونیهٔ شمالی Pohjois-Makedonia Macédoine du Nord Macédoine du Nord an Mhacadóin Thuaidh A Mhasadon a Tuath Macedonia do Norte מקדוניה הצפונית Sjeverna Makedonija Észak-Macedónia Macedonia Makedonia Utara Norður-Makedónía Macedonia del Nord 北マケドニア 북마케도니아 North Macedonia Түндүк Македония Šiaurės Makedonija Ziemeļmaķedonija നോർത്ത് മാസിഡോണിയ Хойд Македон Nord-Makedonia Noord-Macedonië Nord-Makedonia North Macedonia Macedonia Północna Macedônia do Norte Macedônia do Norte Macedonia de Nord Северная Македония Severné Macedónsko Severna Makedonija Maqedonia e Veriut Северна Македонија Nordmakedonien Masedonia ya Kaskazini มาซิโดเนียเหนือ Kuzey Makedonya Төньяк Македония Північна Македонія Shimoliy Makedoniya Bắc Macedonia 北马其顿 北馬其頓
ML مالي Малі Мали Mali Mali Mali Mali Mali Mali Μάλι Mali Malio Mali Mali Mali مالی Mali Mali Mali Mailí Màili Malí מאלי Mali Mali Mali Mali Malí Mali マリ 말리 Mali Мали Malis Mali മാലി Мали Mali Mali Mali Mali Mali Mali Mali Mali Мали Mali Mali Mali Мали Mali Mali มาลี Mali Мали Малі Mali Mali 马里 馬利
MM ميانمار (بورما) М’янма (Бірма) Мианмар (Бирма) Myanmar (Birmania) Mjanmar Myanmar (Birmània) Myanmar (Barma) Myanmar (Burma) Myanmar Μιανμάρ (Βιρμανία) Myanmar (Burma) Mjanmao Myanmar (Birmania) Myanmar (Birma) Myanmar (Birmania) میانمار (برمه) Myanmar (Burma) Myanmar (Birmanie) Myanmar (Birmanie) Maenmar (Burma) Miànmar Myanmar (Birmania) מיאנמר (בורמה) Mjanmar (Burma) Mianmar Birmania/Myanmar Myanmar (Burma) Mjanmar (Búrma) Myanmar (Birmania) ミャンマー (ビルマ) 미얀마 Myanmar (Burma) Мьянма (Бирма) Mianmaras (Birma) Mjanma (Birma) മ്യാൻമാർ (ബർമ്മ) Мьянмар Myanmar (Burma) Myanmar (Birma) Myanmar (Burma) Myanmar (Burma) Mjanma (Birma) Mianmar (Birmânia) Mianmar (Birmânia) Myanmar (Birmania) Мьянма (Бирма) Mjanmarsko Mjanmar (Burma) Mianmar (Burmë) Мијанмар (Бурма) Myanmar (Burma) Myanmar (Burma) เมียนมาร์ (พม่า) Myanmar (Burma) Myanmar (Burma) Мʼянма (Бірма) Myanma (Birma) Myanmar (Miến Điện) 缅甸 緬甸
MN منغوليا Манголія Монголия Mongolia Mongolija Mongòlia Mongolsko Mongoliet Mongolei Μογγολία Mongolia Mongolujo Mongolia Mongoolia Mongolia مغولستان Mongolia Mongolie Mongolie an Mhongóil Dùthaich nam Mongol Mongolia מונגוליה Mongolija Mongólia Mongolia Mongolia Mongólía Mongolia モンゴル 몽골 Mongolia Монголия Mongolija Mongolija മംഗോളിയ Монгол Mongolia Mongolië Mongolia Mongolia Mongolia Mongólia Mongólia Mongolia Монголия Mongolsko Mongolija Mongoli Монголија Mongoliet Mongolia มองโกเลีย Moğolistan Монголия Монголія Mongoliya Mông Cổ 蒙古 蒙古
MO مكاو Макаа Макао Macau Makao Macau Macao Macao Macau Μακάο Macao Macao Macao Macau Macau ماکائو Macao Macao Macao Macao Macàthu Macau מקאו Makao Makaó Macao Makau Makaó Macao マカオ 마카오 Macao Макау Makao Makao മക്കാവു Макао Macao Macau Macao Macao Makau Macau Macau Macao Макао Macao Macao Makao Макао Macao Makau มาเก๊า Makao Макао Макао Makao Macao 澳门 澳門
MP جزر ماريانا الشمالية Паўночныя Марыянскія астравы Северни Мариански острови Inizi Mariana an Norzh Sjeverna Marijanska ostrva Illes Mariannes del Nord Severní Mariany Nordmarianerne Nördliche Marianen Νήσοι Βόρειες Μαριάνες Northern Mariana Islands Nord-Marianoj Islas Marianas del Norte Põhja-Mariaanid Ipar Mariana uharteak جزایر ماریانای شمالی Pohjois-Mariaanit Îles Mariannes du Nord Îles Mariannes du Nord na hOileáin Mháirianacha Thuaidh Na h-Eileanan Mairianach a Tuath Illas Marianas do Norte איי מריאנה הצפוניים Sjevernomarijanski otoci Északi Mariana-szigetek Insulas Marianna del Nord Kepulauan Mariana Utara Norður-Maríanaeyjar Isole Marianne settentrionali 北マリアナ諸島 북마리아나제도 Northern Mariana Islands Түндүк Мариана аралдары Marianos Šiaurinės Salos Ziemeļu Marianas salas ഉത്തര മറിയാനാ ദ്വീപുകൾ Хойд Марианы арлууд Nord-Marianene Noordelijke Marianen Nord-Marianane Northern Mariana Islands Mariany Północne Ilhas Marianas do Norte Ilhas Marianas do Norte Insulele Mariane de Nord Северные Марианские о-ва Severné Mariány Severni Marianski otoki Ishujt e Marianës Veriore Северна Маријанска Острва Nordmarianerna Visiwa vya Mariana vya Kaskazini หมู่เกาะนอร์เทิร์นมาเรียนา Kuzey Mariana Adaları Төньяк Мариана утраулары Північні Маріанські Острови Shimoliy Mariana orollari Quần đảo Bắc Mariana 北马里亚纳群岛 北馬利安納群島
MQ جزر المارتينيك Марцініка Мартиника Martinik Martinik Martinica Martinik Martinique Martinique Μαρτινίκα Martinique Martiniko Martinica Martinique Martinika مارتینیک Martinique Martinique Martinique Martinique Mairtinic Martinica מרטיניק Martinique Martinique Martinique Martinik Martiník Martinica マルティニーク 마르티니크 Martinique Мартиника Martinika Martinika മാർട്ടിനിക്ക് Мартиник Martinique Martinique Martinique Martinique Martynika Martinica Martinica Martinica Мартиника Martinik Martinik Martinikë Мартиник Martinique Martinique มาร์ตินีก Martinik Мартиника Мартініка Martinika Martinique 马提尼克 馬丁尼克
MR موريتانيا Маўрытанія Мавритания Maouritania Mauritanija Mauritània Mauritánie Mauretanien Mauretanien Μαυριτανία Mauritania Maŭritanujo Mauritania Mauritaania Mauritania موریتانی Mauritania Mauritanie Mauritanie an Mháratáin Moratàinea Mauritania מאוריטניה Mauretanija Mauritánia Mauritania Mauritania Máritanía Mauritania モーリタニア 모리타니 Mauritania Мавритания Mauritanija Mauritānija മൗറിറ്റാനിയ Мавритани Mauritania Mauritanië Mauritania Mauritania Mauretania Mauritânia Mauritânia Mauritania Мавритания Mauritánia Mavretanija Mauritani Мауританија Mauretanien Moritania มอริเตเนีย Moritanya Мавритания Мавританія Mavritaniya Mauritania 毛里塔尼亚 茅利塔尼亞
MS مونتسرات Мантсерат Монтсерат Montserrat Monserat Montserrat Montserrat Montserrat Montserrat Μονσεράτ Montserrat Montserrat Montserrat Montserrat Montserrat مونت‌سرات Montserrat Montserrat Montserrat Montsarat Montsarat Montserrat מונסראט Montserrat Montserrat Montserrat Montserrat Montserrat Montserrat モントセラト 몬트세라트 Montserrat Монтсеррат Montseratas Montserrata മൊണ്ടെസരത്ത് Монтсеррат Montserrat Montserrat Montserrat Montserrat Montserrat Montserrat Montserrat Montserrat Монтсеррат Montserrat Montserrat Montserat Монсерат Montserrat Montserrat มอนต์เซอร์รัต Montserrat Монтсеррат Монтсеррат Montserrat Montserrat 蒙特塞拉特 蒙哲臘
MT مالطا Мальта Малта Malta Malta Malta Malta Malta Malta Μάλτα Malta Malto Malta Malta Malta مالت Malta Malte Malte Málta Malta Malta מלטה Malta Málta Malta Malta Malta Malta マルタ 몰타 Malta Мальта Malta Malta മാൾട്ട Мальта Malta Malta Malta Malta Malta Malta Malta Malta Мальта Malta Malta Maltë Малта Malta Malta มอลตา Malta Мальта Мальта Malta Malta 马耳他 馬爾他
MU موريشيوس Маўрыкій Мавриций Moris Mauricijus Maurici Mauricius Mauritius Mauritius Μαυρίκιος Mauritius Maŭricio Mauricio Mauritius Maurizio موریس Mauritius Maurice Maurice Oileán Mhuirís Na h-Eileanan Mhoiriseas Mauricio מאוריציוס Mauricijus Mauritius Mauritius Mauritius Máritíus Mauritius モーリシャス 모리셔스 Mauritius Маврикий Mauricijus Maurīcija മൗറീഷ്യസ് Маврикий Mauritius Mauritius Mauritius Mauritius Mauritius Maurício Maurício Mauritius Маврикий Maurícius Mauritius Mauritius Маурицијус Mauritius Morisi มอริเชียส Mauritius Маврикий Маврікій Mavrikiy Mauritius 毛里求斯 模里西斯
MV جزر المالديف Мальдывы Малдиви Maldivez Maldivi Maldives Maledivy Maldiverne Malediven Μαλδίβες Maldives Maldivoj Maldivas Maldiivid Maldivak مالدیو Malediivit Maldives Maldives Oileáin Mhaildíve Na h-Eileanan Mhaladaibh Maldivas האיים המלדיביים Maldivi Maldív-szigetek Maldives Maladewa Maldíveyjar Maldive モルディブ 몰디브 Maldives Мальдив Maldyvai Maldīvija മാലിദ്വീപ് Мальдив Maldivene Maldiven Maldivane Maldives Malediwy Maldivas Maldivas Maldive Мальдивы Maldivy Maldivi Maldive Малдиви Maldiverna Maldives มัลดีฟส์ Maldivler Мальдив утраулары Мальдіви Maldiv orollari Maldives 马尔代夫 馬爾地夫
MW ملاوي Малаві Малави Malawi Malavi Malawi Malawi Malawi Malawi Μαλάουι Malawi Malavio Malaui Malawi Malawi مالاوی Malawi Malawi Malawi an Mhaláiv Malabhaidh Malawi מלאווי Malavi Malawi Malawi Malawi Malaví Malawi マラウイ 말라위 Malawi Малави Malavis Malāvija മലാവി Малави Malawi Malawi Malawi Malawi Malawi Malaui Malaui Malawi Малави Malawi Malavi Malavi Малави Malawi Malawi มาลาวี Malavi Малави Малаві Malavi Malawi 马拉维 馬拉威
MX المكسيك Мексіка Мексико Mecʼhiko Meksiko Mèxic Mexiko Mexico Mexiko Μεξικό Mexico Meksiko México Mehhiko Mexiko مکزیک Meksiko Mexique Mexique Meicsiceo Meagsago México מקסיקו Meksiko Mexikó Mexico Meksiko Mexíkó Messico メキシコ 멕시코 Mexico Мексика Meksika Meksika മെക്സിക്കോ Мексик Mexico Mexico Mexico Mexico Meksyk México México Mexic Мексика Mexiko Mehika Meksikë Мексико Mexiko Meksiko เม็กซิโก Meksika Мексика Мексика Meksika Mexico 墨西哥 墨西哥
MY ماليزيا Малайзія Малайзия Malaysia Malezija Malàisia Malajsie Malaysia Malaysia Μαλαισία Malaysia Malajzio Malasia Malaisia Malaysia مالزی Malesia Malaisie Malaisie an Mhalaeisia Malaidhsea Malaisia מלזיה Malezija Malajzia Malaysia Malaysia Malasía Malaysia マレーシア 말레이시아 Malaysia Малайзия Malaizija Malaizija മലേഷ്യ Малайз Malaysia Maleisië Malaysia Malaysia Malezja Malásia Malásia Malaysia Малайзия Malajzia Malezija Malajzi Малезија Malaysia Malesia มาเลเซีย Malezya Малайзия Малайзія Malayziya Malaysia 马来西亚 馬來西亞
MZ موزمبيق Мазамбік Мозамбик Mozambik Mozambik Moçambic Mosambik Mozambique Mosambik Μοζαμβίκη Mozambique Mozambiko Mozambique Mosambiik Mozambike موزامبیک Mosambik Mozambique Mozambique Mósaimbíc Mòsaimbic Mozambique מוזמביק Mozambik Mozambik Mozambique Mozambik Mósambík Mozambico モザンビーク 모잠비크 Mozambique Мозамбик Mozambikas Mozambika മൊസാംബിക്ക് Мозамбик Mosambik Mozambique Mosambik Mozambique Mozambik Moçambique Moçambique Mozambic Мозамбик Mozambik Mozambik Mozambik Мозамбик Moçambique Msumbiji โมซัมบิก Mozambik Мозамбик Мозамбік Mozambik Mozambique 莫桑比克 莫三比克
NA ناميبيا Намібія Намибия Namibia Namibija Namíbia Namibie Namibia Namibia Ναμίμπια Namibia Namibio Namibia Namiibia Namibia نامیبیا Namibia Namibie Namibie an Namaib An Namaib Namibia נמיביה Namibija Namíbia Namibia Namibia Namibía Namibia ナミビア 나미비아 Namibia Намибия Namibija Namībija നമീബിയ Намиби Namibia Namibië Namibia Namibia Namibia Namíbia Namíbia Namibia Намибия Namíbia Namibija Namibi Намибија Namibia Namibia นามิเบีย Namibya Намибия Намібія Namibiya Namibia 纳米比亚 納米比亞
NC كاليدونيا الجديدة Новая Каледонія Нова Каледония Kaledonia Nevez Nova Kaledonija Nova Caledònia Nová Kaledonie Ny Kaledonien Neukaledonien Νέα Καληδονία New Caledonia Nov-Kaledonio Nueva Caledonia Uus-Kaledoonia Kaledonia Berria کالدونیای جدید Uusi-Kaledonia Nouvelle-Calédonie Nouvelle-Calédonie an Nua-Chaladóin Cailleann Nuadh Nova Caledonia קלדוניה החדשה Nova Kaledonija Új-Kaledónia Nove Caledonia Kaledonia Baru Nýja-Kaledónía Nuova Caledonia ニューカレドニア 뉴칼레도니아 New Caledonia Жаңы Каледония Naujoji Kaledonija Jaunkaledonija ന്യൂ കാലിഡോണിയ Шинэ Каледони Ny-Caledonia Nieuw-Caledonië Ny-Caledonia New Caledonia Nowa Kaledonia Nova Caledônia Nova Caledônia Noua Caledonie Новая Каледония Nová Kaledónia Nova Kaledonija Kaledoni e Re Нова Каледонија Nya Kaledonien New Caledonia นิวแคลิโดเนีย Yeni Kaledonya Яңа Каледония Нова Каледонія Yangi Kaledoniya New Caledonia 新喀里多尼亚 新喀里多尼亞
NE النيجر Нігер Нигер Niger Niger Níger Niger Niger Niger Νίγηρας Niger Niĝero Níger Niger Niger نیجر Niger Niger Niger an Nígir Nìgeir Níxer ניז׳ר Niger Niger Niger Niger Níger Niger ニジェール 니제르 Niger Нигер Nigeris Nigēra നൈജർ Нигер Niger Niger Niger Niger Niger Níger Níger Niger Нигер Niger Niger Niger Нигер Niger Niger ไนเจอร์ Nijer Нигер Нігер Niger Niger 尼日尔 尼日
NF جزيرة نورفولك Востраў Норфалк остров Норфолк Enez Norfolk Ostrvo Norfolk Norfolk Norfolk Norfolk Island Norfolkinsel Νήσος Νόρφολκ Norfolk Island Norfolkinsulo Isla Norfolk Norfolk Norfolk uhartea جزیرهٔ نورفولک Norfolkinsaari Île Norfolk Île Norfolk Oileán Norfolk Eilean Norfolk Illa Norfolk האי נורפוק Otok Norfolk Norfolk-sziget Insula Norfolk Kepulauan Norfolk Norfolkeyja Isola Norfolk ノーフォーク島 노퍽섬 Norfolk Island Норфолк аралы Norfolko sala Norfolkas sala നോർഫോക് ദ്വീപ് Норфолк арал Norfolkøya Norfolk Norfolkøya Norfolk Island Norfolk Ilha Norfolk Ilha Norfolk Insula Norfolk о-в Норфолк Norfolk Norfolški otok Ishulli Norfolk Острво Норфок Norfolkön Kisiwa cha Norfolk เกาะนอร์ฟอล์ก Norfolk Adası Норфолк утравы Острів Норфолк Norfolk oroli Đảo Norfolk 诺福克岛 諾福克島
NG نيجيريا Нігерыя Нигерия Nigeria Nigerija Nigèria Nigérie Nigeria Nigeria Νιγηρία Nigeria Niĝerio Nigeria Nigeeria Nigeria نیجریه Nigeria Nigéria Nigéria an Nigéir Nigèiria Nixeria ניגריה Nigerija Nigéria Nigeria Nigeria Nígería Nigeria ナイジェリア 나이지리아 Nigeria Нигерия Nigerija Nigērija നൈജീരിയ Нигери Nigeria Nigeria Nigeria Nigeria Nigeria Nigéria Nigéria Nigeria Нигерия Nigéria Nigerija Nigeri Нигерија Nigeria Nigeria ไนจีเรีย Nijerya Нигерия Нігерія Nigeriya Nigeria 尼日利亚 奈及利亞
NI نيكاراغوا Нікарагуа Никарагуа Nicaragua Nikaragva Nicaragua Nikaragua Nicaragua Nicaragua Νικαράγουα Nicaragua Nikaragvo Nicaragua Nicaragua Nikaragua نیکاراگوئه Nicaragua Nicaragua Nicaragua Nicearagua Niocaragua Nicaragua ניקרגואה Nikaragva Nicaragua Nicaragua Nikaragua Níkaragva Nicaragua ニカラグア 니카라과 Nicaragua Никарагуа Nikaragva Nikaragva നിക്കരാഗ്വ Никарагуа Nicaragua Nicaragua Nicaragua Nicaragua Nikaragua Nicarágua Nicarágua Nicaragua Никарагуа Nikaragua Nikaragva Nikaragua Никарагва Nicaragua Nikaragwa นิการากัว Nikaragua Никарагуа Нікараґуа Nikaragua Nicaragua 尼加拉瓜 尼加拉瓜
NL هولندا Нідэрланды Нидерландия Izelvroioù Holandija Països Baixos Nizozemsko Holland Niederlande Ολλανδία Netherlands Nederlando Países Bajos Holland Herbehereak هلند Alankomaat Pays-Bas Pays-Bas an Ísiltír Na Tìrean Ìsle Países Baixos הולנד Nizozemska Hollandia Nederlandia Belanda Holland Paesi Bassi オランダ 네덜란드 Netherlands Нидерланд Nyderlandai Nīderlande നെതർലാൻഡ്‌സ് Нидерланд Nederland Nederland Nederland Netherlands Holandia Países Baixos Países Baixos Țările de Jos Нидерланды Holandsko Nizozemska Holandë Холандија Nederländerna Uholanzi เนเธอร์แลนด์ Hollanda Нидерланд Нідерланди Niderlandiya Hà Lan 荷兰 荷蘭
NO النرويج Нарвегія Норвегия Norvegia Norveška Noruega Norsko Norge Norwegen Νορβηγία Norway Norvegujo Noruega Norra Norvegia نروژ Norja Norvège Norvège an Iorua Nirribhidh Noruega נורווגיה Norveška Norvégia Norvegia Norwegia Noregur Norvegia ノルウェー 노르웨이 Norway Норвегия Norvegija Norvēģija നോർവെ Норвеги Norge Noorwegen Noreg Norway Norwegia Noruega Noruega Norvegia Норвегия Nórsko Norveška Norvegji Норвешка Norge Norway นอร์เวย์ Norveç Норвегия Норвеґія Norvegiya Na Uy 挪威 挪威
NP نيبال Непал Непал Nepal Nepal Nepal Nepál Nepal Nepal Νεπάλ Nepal Nepalo Nepal Nepal Nepal نپال Nepal Népal Népal Neipeal Neapàl Nepal נפאל Nepal Nepál Nepal Nepal Nepal Nepal ネパール 네팔 Nepal Непал Nepalas Nepāla നേപ്പാൾ Балба Nepal Nepal Nepal Nepal Nepal Nepal Nepal Nepal Непал Nepál Nepal Nepal Непал Nepal Nepal เนปาล Nepal Непал Непал Nepal Nepal 尼泊尔 尼泊爾
NR ناورو Науру Науру Nauru Nauru Nauru Nauru Nauru Nauru Ναουρού Nauru Nauro Nauru Nauru Nauru نائورو Nauru Nauru Nauru Nárú Nabhru Nauru נאורו Nauru Nauru Nauru Nauru Nárú Nauru ナウル 나우루 Nauru Науру Nauru Nauru നൗറു Науру Nauru Nauru Nauru Nauru Nauru Nauru Nauru Nauru Науру Nauru Nauru Nauru Науру Nauru Nauru นาอูรู Nauru Науру Науру Nauru Nauru 瑙鲁 諾魯
NU نيوي Ніуэ Ниуе Niue Niue Niue Niue Niue Niue Νιούε Niue Niuo Niue Niue Niue نیوئه Niue Niue Niue Niue Niue Niue ניווה Niue Niue Niue Niue Niue Niue ニウエ 니우에 Niue Ниуэ Niujė Niue ന്യൂയി Ниуэ Niue Niue Niue Niue Niue Niue Niue Niue Ниуэ Niue Niue Niue Ниуе Niue Niue นีอูเอ Niue Ниуэ Ніуе Niue Niue 纽埃 紐埃島
NZ نيوزيلندا Новая Зеландыя Нова Зеландия Zeland-Nevez Novi Zeland Nova Zelanda Nový Zéland New Zealand Neuseeland Νέα Ζηλανδία New Zealand Nov-Zelando Nueva Zelanda Uus-Meremaa Zeelanda Berria نیوزیلند Uusi-Seelanti Nouvelle-Zélande Nouvelle-Zélande an Nua-Shéalainn Sealainn Nuadh Nova Zelandia ניו זילנד Novi Zeland Új-Zéland Nove Zelanda Selandia Baru Nýja-Sjáland Nuova Zelanda ニュージーランド 뉴질랜드 New Zealand Жаңы Зеландия Naujoji Zelandija Jaunzēlande ന്യൂസിലാൻറ് Шинэ Зеланд New Zealand Nieuw-Zeeland New Zealand New Zealand Nowa Zelandia Nova Zelândia Nova Zelândia Noua Zeelandă Новая Зеландия Nový Zéland Nova Zelandija Zelandë e Re Нови Зеланд Nya Zeeland Nyuzilandi นิวซีแลนด์ Yeni Zelanda Яңа Зеландия Нова Зеландія Yangi Zelandiya New Zealand 新西兰 紐西蘭
OM عُمان Аман Оман Oman Oman Oman Omán Oman Oman Ομάν Oman Omano Omán Omaan Oman عمان Oman Oman Oman Óman Omàn Omán עומאן Oman Omán Oman Oman Óman Oman オマーン 오만 Oman Оман Omanas Omāna ഒമാൻ Оман Oman Oman Oman Oman Oman Omã Omã Oman Оман Omán Oman Oman Оман Oman Oman โอมาน Umman Оман Оман Ummon Oman 阿曼 阿曼
PA بنما Панама Панама Panamá Panama Panamà Panama Panama Panama Παναμάς Panama Panamo Panamá Panama Panama پاناما Panama Panama Panama Panama Panama Panamá פנמה Panama Panama Panama Panama Panama Panamá パナマ 파나마 Panama Панама Panama Panama പനാമ Панам Panama Panama Panama Panama Panama Panamá Panamá Panama Панама Panama Panama Panama Панама Panama Panama ปานามา Panama Панама Панама Panama Panama 巴拿马 巴拿馬
PE بيرو Перу Перу Perou Peru Perú Peru Peru Peru Περού Peru Peruo Perú Peruu Peru پرو Peru Pérou Pérou Peiriú Pearù O Perú פרו Peru Peru Peru Peru Perú Perù ペルー 페루 Peru Перу Peru Peru പെറു Перу Peru Peru Peru Peru Peru Peru Peru Peru Перу Peru Peru Peru Перу Peru Peru เปรู Peru Перу Перу Peru Peru 秘鲁 秘魯
PF بولينيزيا الفرنسية Французская Палінезія Френска Полинезия Polinezia Cʼhall Francuska Polinezija Polinèsia Francesa Francouzská Polynésie Fransk Polynesien Französisch-Polynesien Γαλλική Πολυνησία French Polynesia Franca Polinezio Polinesia Francesa Prantsuse Polüneesia Polinesia Frantsesa پلی‌نزی فرانسه Ranskan Polynesia Polynésie française Polynésie française Polainéis na Fraince Poilinèis na Frainge A Polinesia Francesa פולינזיה הצרפתית Francuska Polinezija Francia Polinézia Polynesia francese Polinesia Prancis Franska Pólýnesía Polinesia francese 仏領ポリネシア 프랑스령 폴리네시아 French Polynesia Полинезия (франциялык) Prancūzijos Polinezija Francijas Polinēzija ഫ്രഞ്ച് പോളിനേഷ്യ Францын Полинез Fransk Polynesia Frans-Polynesië Fransk Polynesia French Polynesia Polinezja Francuska Polinésia Francesa Polinésia Francesa Polinezia Franceză Французская Полинезия Francúzska Polynézia Francoska Polinezija Polinezia Franceze Француска Полинезија Franska Polynesien Polynesia ya Ufaransa เฟรนช์โปลินีเซีย Fransız Polinezyası Француз Полинезиясе Французька Полінезія Fransuz Polineziyasi Polynesia thuộc Pháp 法属波利尼西亚 法屬玻里尼西亞
PG بابوا غينيا الجديدة Папуа-Новая Гвінея Папуа-Нова Гвинея Papoua Ginea-Nevez Papua Nova Gvineja Papua Nova Guinea Papua-Nová Guinea Papua Ny Guinea Papua-Neuguinea Παπούα Νέα Γουινέα Papua New Guinea Papuo-Nov-Gvineo Papúa Nueva Guinea Paapua Uus-Guinea Papua Ginea Berria پاپوا گینهٔ نو Papua-Uusi-Guinea Papouasie-Nouvelle-Guinée Papouasie-Nouvelle-Guinée Nua-Ghuine Phapua Gini Nuadh Phaputhach Papúa-Nova Guinea פפואה גינאה החדשה Papua Nova Gvineja Pápua Új-Guinea Papua Nove Guinea Papua Nugini Papúa Nýja-Gínea Papua Nuova Guinea パプアニューギニア 파푸아뉴기니 Papua New Guinea Папуа-Жаңы Гвинея Papua Naujoji Gvinėja Papua-Jaungvineja പാപ്പുവ ന്യൂ ഗിനിയ Папуа Шинэ Гвиней Papua Ny-Guinea Papoea-Nieuw-Guinea Papua Ny-Guinea Papua New Guinea Papua-Nowa Gwinea Papua-Nova Guiné Papua-Nova Guiné Papua-Noua Guinee Папуа — Новая Гвинея Papua-Nová Guinea Papua Nova Gvineja Guineja e Re-Papua Папуа Нова Гвинеја Papua Nya Guinea Papua New Guinea ปาปัวนิวกินี Papua Yeni Gine Папуа - Яңа Гвинея Папуа-Нова Ґвінея Papua Yangi Gvineya Papua New Guinea 巴布亚新几内亚 巴布亞紐幾內亞
PH الفلبين Філіпіны Филипини Filipinez Filipini Filipines Filipíny Filippinerne Philippinen Φιλιππίνες Philippines Filipinoj Filipinas Filipiinid Filipinak فیلیپین Filippiinit Philippines Philippines na hOileáin Fhilipíneacha Na h-Eileanan Filipineach Filipinas הפיליפינים Filipini Fülöp-szigetek Philippinas Filipina Filippseyjar Filippine フィリピン 필리핀 Philippines Филиппин Filipinai Filipīnas ഫിലിപ്പീൻസ് Филиппин Filippinene Filipijnen Filippinane Philippines Filipiny Filipinas Filipinas Filipine Филиппины Filipíny Filipini Filipine Филипини Filippinerna Ufilipino ฟิลิปปินส์ Filipinler Филиппин Філіппіни Filippin Philippines 菲律宾 菲律賓
PK باكستان Пакістан Пакистан Pakistan Pakistan Pakistan Pákistán Pakistan Pakistan Πακιστάν Pakistan Pakistano Pakistán Pakistan Pakistan پاکستان Pakistan Pakistan Pakistan an Phacastáin Pagastàn Paquistán פקיסטן Pakistan Pakisztán Pakistan Pakistan Pakistan Pakistan パキスタン 파키스탄 Pakistan Пакистан Pakistanas Pakistāna പാക്കിസ്ഥാൻ Пакистан Pakistan Pakistan Pakistan Pakistan Pakistan Paquistão Paquistão Pakistan Пакистан Pakistan Pakistan Pakistan Пакистан Pakistan Pakistani ปากีสถาน Pakistan Пакистан Пакистан Pokiston Pakistan 巴基斯坦 巴基斯坦
PL بولندا Польшча Полша Polonia Poljska Polònia Polsko Polen Polen Πολωνία Poland Pollando Polonia Poola Polonia لهستان Puola Pologne Pologne an Pholainn A Phòlainn Polonia פולין Poljska Lengyelország Polonia Polandia Pólland Polonia ポーランド 폴란드 Poland Польша Lenkija Polija പോളണ്ട് Польш Polen Polen Polen Poland Polska Polônia Polônia Polonia Польша Poľsko Poljska Poloni Пољска Polen Poland โปแลนด์ Polonya Польша Польща Polsha Ba Lan 波兰 波蘭
PM سان بيير ومكويلون Сен-П’ер і Мікелон Сен Пиер и Микелон Sant-Pêr-ha-Mikelon Sveti Petar i Mikelon Saint-Pierre-et-Miquelon Saint-Pierre a Miquelon Saint Pierre og Miquelon St. Pierre und Miquelon Σεν Πιερ και Μικελόν St. Pierre & Miquelon Sent-Piero kaj Mikelono San Pedro y Miquelón Saint-Pierre ja Miquelon Saint-Pierre eta Mikelune سن پیر و میکلن Saint-Pierre ja Miquelon Saint-Pierre-et-Miquelon Saint-Pierre-et-Miquelon San Pierre agus Miquelon Saint Pierre agus Miquelon Saint Pierre et Miquelon סנט פייר ומיקלון Saint-Pierre-et-Miquelon Saint-Pierre és Miquelon St. Pierre e Miquelon Saint Pierre dan Miquelon Sankti Pierre og Miquelon Saint-Pierre e Miquelon サンピエール島・ミクロン島 생피에르 미클롱 St. Pierre & Miquelon Сен-Пьер жана Микелон Sen Pjeras ir Mikelonas Senpjēra un Mikelona സെന്റ് പിയറി ആൻഡ് മിക്വലൻ Сент-Пьер ба Микело Saint-Pierre-et-Miquelon Saint-Pierre en Miquelon Saint-Pierre-et-Miquelon St. Pierre & Miquelon Saint-Pierre i Miquelon São Pedro e Miquelão São Pedro e Miquelão Saint-Pierre și Miquelon Сен-Пьер и Микелон Saint Pierre a Miquelon Saint Pierre in Miquelon Shën-Pier dhe Mikelon Сен Пјер и Микелон S:t Pierre och Miquelon Santapierre na Miquelon แซงปีแยร์และมีเกอลง Saint Pierre ve Miquelon Сен-Пьер һәм Микелон Сен-Пʼєр і Мікелон Sen-Pyer va Mikelon Saint Pierre và Miquelon 圣皮埃尔和密克隆群岛 聖皮埃與密克隆群島
PN جزر بيتكيرن Астравы Піткэрн Острови Питкерн Enez Pitcairn Pitkernska Ostrva Illes Pitcairn Pitcairnovy ostrovy Pitcairn Pitcairninseln Νήσοι Πίτκερν Pitcairn Islands Pitkarna Insulo Islas Pitcairn Pitcairni saared Pitcairn uharteak جزایر پیت‌کرن Pitcairn Îles Pitcairn Îles Pitcairn Oileáin Pitcairn Eileanan Pheit a Chàirn Illas Pitcairn איי פיטקרן Otoci Pitcairn Pitcairn-szigetek Pitcairn Islands Kepulauan Pitcairn Pitcairn-eyjar Isole Pitcairn ピトケアン諸島 핏케언 섬 Pitcairn Islands Питкэрн аралдары Pitkerno salos Pitkērnas salas പിറ്റ്‌കെയ്‌ൻ ദ്വീപുകൾ Питкэрн арлууд Pitcairnøyene Pitcairneilanden Pitcairn Pitcairn Islands Pitcairn Ilhas Pitcairn Ilhas Pitcairn Insulele Pitcairn о-ва Питкэрн Pitcairnove ostrovy Pitcairn Ishujt Pitkern Питкерн Pitcairnöarna Visiwa vya Pitcairn หมู่เกาะพิตแคร์น Pitcairn Adaları Питкэрн утраулары Острови Піткерн Pitkern orollari Quần đảo Pitcairn 皮特凯恩群岛 皮特肯群島
PR بورتوريكو Пуэрта-Рыка Пуерто Рико Puerto Rico Porto Riko Puerto Rico Portoriko Puerto Rico Puerto Rico Πουέρτο Ρίκο Puerto Rico Puerto-Riko Puerto Rico Puerto Rico Puerto Rico پورتوریکو Puerto Rico Porto Rico Porto Rico Pórtó Ríce Porto Rìceo Porto Rico פוארטו ריקו Portoriko Puerto Rico Puerto Rico Puerto Riko Púertó Ríkó Portorico プエルトリコ 푸에르토리코 Puerto Rico Пуэрто-Рико Puerto Rikas Puertoriko പോർട്ടോ റിക്കോ Пуэрто-Рико Puerto Rico Puerto Rico Puerto Rico Puerto Rico Portoryko Porto Rico Porto Rico Puerto Rico Пуэрто-Рико Portoriko Portoriko Porto-Riko Порторико Puerto Rico Puerto Rico เปอร์โตริโก Porto Riko Пуэрто-Рико Пуерто-Ріко Puerto-Riko Puerto Rico 波多黎各 波多黎各
PS فلسطين Палесціна Палестина Palestina Palestina Palestina Palestina Palæstina Palästina Παλαιστίνη Palestine Palestine Palestina Palestiina Palestina فلسطین Palestiina Palestine Palestine an Phalaistín Palastain Palestina פלסטין Palestina Palesztina Palestine Palestina Palestína Palestina パレスチナ 팔레스타인 Palestine Палестина Palestina Palestine പലസ്‌തീൻ Палестин Palestina Palestina Palestina Palestine Palestyna Palestina Palestina Palestina Палестина Palestínska samospráva Palestina Palestinë Палестина Palestina Palestina ปาเลสไตน์ Filistin Palestine Палестина Falastin Palestine 巴勒斯坦 巴勒斯坦
PT البرتغال Партугалія Португалия Portugal Portugal Portugal Portugalsko Portugal Portugal Πορτογαλία Portugal Portugalujo Portugal Portugal Portugal پرتغال Portugali Portugal Portugal an Phortaingéil A Phortagail Portugal פורטוגל Portugal Portugália Portugal Portugal Portúgal Portogallo ポルトガル 포르투갈 Portugal Португалия Portugalija Portugāle പോർച്ചുഗൽ Португал Portugal Portugal Portugal Portugal Portugalia Portugal Portugal Portugalia Португалия Portugalsko Portugalska Portugali Португалија Portugal Ureno โปรตุเกส Portekiz Португалия Портуґалія Portugaliya Bồ Đào Nha 葡萄牙 葡萄牙
PW بالاو Палау Палау Palau Palau Palau Palau Palau Palau Παλάου Palau Belaŭo Palaos Belau Palau پالائو Palau Palaos Palaos Oileáin Palau Palabh Palau פלאו Palau Palau Palau Palau Palá Palau パラオ 팔라우 Palau Палау Palau Palau പലാവു Палау Palau Palau Palau Palau Palau Palau Palau Palau Палау Palau Palau Palau Палау Palau Palau ปาเลา Palau Палау Палау Palau Palau 帕劳 帛琉
PY باراغواي Парагвай Парагвай Paraguay Paragvaj Paraguai Paraguay Paraguay Paraguay Παραγουάη Paraguay Paragvajo Paraguay Paraguay Paraguai پاراگوئه Paraguay Paraguay Paraguay Paragua Paraguaidh O Paraguai פרגוואי Paragvaj Paraguay Paraguay Paraguay Paragvæ Paraguay パラグアイ 파라과이 Paraguay Парагвай Paragvajus Paragvaja പരാഗ്വേ Парагвай Paraguay Paraguay Paraguay Paraguay Paragwaj Paraguai Paraguai Paraguay Парагвай Paraguaj Paragvaj Paraguai Парагвај Paraguay Paraguay ปารากวัย Paraguay Парагвай Параґвай Paragvay Paraguay 巴拉圭 巴拉圭
QA قطر Катар Катар Qatar Katar Qatar Katar Qatar Katar Κατάρ Qatar Kataro Catar Katar Qatar قطر Qatar Qatar Qatar Catar Catar Qatar קטאר Katar Katar Qatar Qatar Katar Qatar カタール 카타르 Qatar Катар Kataras Katara ഖത്തർ Катар Qatar Qatar Qatar Qatar Katar Catar Catar Qatar Катар Katar Katar Katar Катар Qatar Qatar กาตาร์ Katar Катар Катар Qatar Qatar 卡塔尔 卡達
QO أوقيانوسيا النائية Аддаленыя тэрыторыі Акіяніі Отдалечени острови на Океания Oseania diabell Vanjska Okeanija Territoris allunyats dOceania vnější Oceánie Ydre Oceanien Äußeres Ozeanien Περιφερειακή Ωκεανία Outlying Oceania Outlying Oceania Territorios alejados de Oceanía Okeaania hajasaared Mugaz kanpoko Ozeania بخش‌های دورافتادهٔ اقیانوسیه ulkomeri régions éloignées de lOcéanie régions éloignées de lOcéanie an Aigéine Imeallach Roinn Iomallach a Chuain Sèimh Territorios afastados de Oceanía טריטוריות באוקיאניה Vanjska područja Oceanije Külső-Óceánia Oceania remote Oseania Luar Ytri Eyjaálfa Oceania lontana オセアニア周辺地域 오세아니아 외곽 Outlying Oceania Алыскы Океания Nuošali Okeanija Okeānijas attālās salas ദ്വീപസമൂഹം Номхон далайг тойрсон улс орнууд Ytre Oseania overig Oceanië Ytre Oseania Outlying Oceania Oceania — wyspy dalekie Oceania Remota Oceania Remota Oceania Periferică Внешняя Океания ostatné Tichomorie Ostala oceanija Oqeania e Largët (Lindja e Largët) Океанија (удаљена острва) yttre öar i Oceanien Oceania ya Nje เอาต์ไลอิงโอเชียเนีย Uzak Okyanusya Outlying Oceania Віддалена Океанія Tashqi Okeaniya Vùng xa xôi thuộc Châu Đại Dương 大洋洲边远群岛 大洋洲邊疆群島
RE روينيون Рэюньён Реюнион Ar Reünion Reunion Illa de la Reunió Réunion Réunion Réunion Ρεϊνιόν Réunion Reunio Reunión Réunion Reunion رئونیون Réunion La Réunion La Réunion Réunion Réunion Reunión ראוניון Réunion Réunion Réunion Réunion Réunion Riunione レユニオン 리유니온 Réunion Реюньон Reunjonas Reinjona റീയൂണിയൻ Реюнион Réunion Réunion Réunion Réunion Reunion Reunião Reunião Réunion Реюньон Réunion Reunion Reunion Реинион Réunion Reunion เรอูนียง Reunion Реюньон Реюньйон Reyunion Réunion 留尼汪 留尼旺
RO رومانيا Румынія Румъния Roumania Rumunija Romania Rumunsko Rumænien Rumänien Ρουμανία Romania Rumanujo Rumanía Rumeenia Errumania رومانی Romania Roumanie Roumanie an Rómáin Romàinia Romanía רומניה Rumunjska Románia Romania Rumania Rúmenía Romania ルーマニア 루마니아 Romania Румыния Rumunija Rumānija റൊമാനിയ Румын Romania Roemenië Romania Romania Rumunia Romênia Romênia România Румыния Rumunsko Romunija Rumani Румунија Rumänien Romania โรมาเนีย Romanya Румыния Румунія Ruminiya Romania 罗马尼亚 羅馬尼亞
RS صربيا Сербія Сърбия Serbia Srbija Sèrbia Srbsko Serbien Serbien Σερβία Serbia Serbia Serbia Serbia Serbia صربستان Serbia Serbie Serbie an tSeirbia An t-Sèirb Serbia סרביה Srbija Szerbia Serbia Serbia Serbía Serbia セルビア 세르비아 Serbia Сербия Serbija Serbija സെർബിയ Серби Serbia Servië Serbia Serbia Serbia Sérvia Sérvia Serbia Сербия Srbsko Srbija Serbi Србија Serbien Serbia เซอร์เบีย Sırbistan Сербия Сербія Serbiya Serbia 塞尔维亚 塞爾維亞
RU روسيا Расія Русия Rusia Rusija Rússia Rusko Rusland Russland Ρωσία Russia Rusujo Rusia Venemaa Errusia روسیه Venäjä Russie Russie an Rúis An Ruis Rusia רוסיה Rusija Oroszország Russia Rusia Rússland Russia ロシア 러시아 Russi Россия Rusija Krievija റഷ്യ Орос Russland Rusland Russland Уӕрӕсе Rosja Rússia Rússia Rusia Россия Rusko Rusija Rusi Русија Ryssland Urusi รัสเซีย Rusya Россия Росія Rossiya Nga 俄罗斯 俄羅斯
RW رواندا Руанда Руанда Rwanda Ruanda Ruanda Rwanda Rwanda Ruanda Ρουάντα Rwanda Ruando Ruanda Rwanda Ruanda رواندا Ruanda Rwanda Rwanda Ruanda Rubhanda Ruanda רואנדה Ruanda Ruanda Ruanda Rwanda Rúanda Ruanda ルワンダ 르완다 Rwanda Руанда Ruanda Ruanda റുവാണ്ട Руанда Rwanda Rwanda Rwanda Rwanda Rwanda Ruanda Ruanda Rwanda Руанда Rwanda Ruanda Ruandë Руанда Rwanda Rwanda รวันดา Ruanda Руанда Руанда Ruanda Rwanda 卢旺达 盧安達
SA المملكة العربية السعودية Саудаўская Аравія Саудитска Арабия Arabia Saoudat Saudijska Arabija Aràbia Saudita Saúdská Arábie Saudi-Arabien Saudi-Arabien Σαουδική Αραβία Saudi Arabia Saŭda Arabujo Arabia Saudí Saudi Araabia Saudi Arabia عربستان سعودی Saudi-Arabia Arabie saoudite Arabie saoudite an Araib Shádach Aràibia nan Sabhd Arabia Saudita ערב הסעודית Saudijska Arabija Szaúd-Arábia Arabia Saudita Arab Saudi Sádi-Arabía Arabia Saudita サウジアラビア 사우디아라비아 Saudi Arabia Сауд Арабиясы Saudo Arabija Saūda Arābija സൗദി അറേബ്യ Саудын Араб Saudi-Arabia Saoedi-Arabië Saudi-Arabia Saudi Arabia Arabia Saudyjska Arábia Saudita Arábia Saudita Arabia Saudită Саудовская Аравия Saudská Arábia Saudova Arabija Arabi Saudite Саудијска Арабија Saudiarabien Saudia ซาอุดีอาระเบีย Suudi Arabistan Согуд Гарәбстаны Саудівська Аравія Saudiya Arabistoni Ả Rập Xê-út 沙特阿拉伯 沙烏地阿拉伯
SB جزر سليمان Саламонавы астравы Соломонови острови Inizi Salomon Solomonska Ostrva Illes Salomó Šalamounovy ostrovy Salomonøerne Salomonen Νήσοι Σολομώντος Solomon Islands Salomonoj Islas Salomón Saalomoni Saared Salomon Uharteak جزایر سلیمان Salomonsaaret Îles Salomon Îles Salomon Oileáin Sholomón Eileanan Sholaimh Illas Salomón איי שלמה Salomonski Otoci Salamon-szigetek Insulas Solomon Kepulauan Solomon Salómonseyjar Isole Salomone ソロモン諸島 솔로몬 제도 Solomon Islands Соломон аралдары Saliamono Salos Zālamana salas സോളമൻ ദ്വീപുകൾ Соломоны арлууд Salomonøyene Salomonseilanden Salomonøyane Solomon Islands Wyspy Salomona Ilhas Salomão Ilhas Salomão Insulele Solomon Соломоновы Острова Šalamúnove ostrovy Salomonovi otoki Ishujt Solomon Соломонска Острва Salomonöarna Visiwa vya Solomon หมู่เกาะโซโลมอน Solomon Adaları Сөләйман утраулары Соломонові Острови Solomon orollari Quần đảo Solomon 所罗门群岛 索羅門群島
SC سيشل Сейшэльскія астравы Сейшели Sechelez Sejšeli Seychelles Seychely Seychellerne Seychellen Σεϋχέλλες Seychelles Sejŝeloj Seychelles Seišellid Seychelleak سیشل Seychellit Seychelles Seychelles na Séiséil Na h-Eileanan Sheiseall Seychelles איי סיישל Sejšeli Seychelle-szigetek Seychelles Seychelles Seychelles-eyjar Seychelles セーシェル 세이셸 Seychelles Сейшел аралдары Seišeliai Seišelu salas സീഷെൽസ് Сейшелийн арлууд Seychellene Seychellen Seychellane Seychelles Seszele Seicheles Seicheles Seychelles Сейшельские Острова Seychely Sejšeli Sejshelle Сејшели Seychellerna Ushelisheli เซเชลส์ Seyşeller Сейшел утраулары Сейшельські Острови Seyshel orollari Seychelles 塞舌尔 塞席爾
SD السودان Судан Судан Soudan Sudan Sudan Súdán Sudan Sudan Σουδάν Sudan Sudano Sudán Sudaan Sudan سودان Sudan Soudan Soudan an tSúdáin Sudàn O Sudán סודן Sudan Szudán Sudan Sudan Súdan Sudan スーダン 수단 Sudan Судан Sudanas Sudāna സുഡാൻ Судан Sudan Soedan Sudan Sudan Sudan Sudão Sudão Sudan Судан Sudán Sudan Sudan Судан Sudan Sudan ซูดาน Sudan Судан Судан Sudan Sudan 苏丹 蘇丹
SE السويد Швецыя Швеция Sveden Švedska Suècia Švédsko Sverige Schweden Σουηδία Sweden Svedujo Suecia Rootsi Suedia سوئد Ruotsi Suède Suède an tSualainn An t-Suain Suecia שוודיה Švedska Svédország Svedia Swedia Svíþjóð Svezia スウェーデン 스웨덴 Sweden Швеция Švedija Zviedrija സ്വീഡൻ Швед Sverige Zweden Sverige Sweden Szwecja Suécia Suécia Suedia Швеция Švédsko Švedska Suedi Шведска Sverige Uswidi สวีเดน İsveç Швеция Швеція Shvetsiya Thụy Điển 瑞典 瑞典
SG سنغافورة Сінгапур Сингапур Singapour Singapur Singapur Singapur Singapore Singapur Σιγκαπούρη Singapore Singapuro Singapur Singapur Singapur سنگاپور Singapore Singapour Singapour Singeapór Singeapòr Singapur סינגפור Singapur Szingapúr Singapore Singapura Singapúr Singapore シンガポール 싱가포르 Singapore Сингапур Singapūras Singapūra സിംഗപ്പൂർ Сингапур Singapore Singapore Singapore Singapore Singapur Singapura Singapura Singapore Сингапур Singapur Singapur Singapor Сингапур Singapore Singapore สิงคโปร์ Singapur Сингапур Сінгапур Singapur Singapore 新加坡 新加坡
SH سانت هيلينا Востраў Святой Алены Света Елена Saint-Helena Sveta Helena Saint Helena Svatá Helena St. Helena St. Helena Αγία Ελένη St. Helena Sent-Heleno Santa Elena Saint Helena Santa Helena سنت هلن Saint Helena Sainte-Hélène Sainte-Hélène San Héilin Eilean Naomh Eilidh Santa Helena סנט הלנה Sveta Helena Szent Ilona St. Helena Saint Helena Sankti Helena SantElena セントヘレナ 세인트헬레나 St. Helena Ыйык Елена Šv. Elenos Sala Sv.Helēnas sala സെന്റ് ഹെലീന Сент Хелена St. Helena Sint-Helena Saint Helena St. Helena Wyspa Świętej Heleny Santa Helena Santa Helena Sfânta Elena о-в Св. Елены Svätá Helena Sveta Helena Shën-Elenë Света Јелена S:t Helena St. Helena เซนต์เฮเลนา Saint Helena St. Helena Острів Святої Єлени Muqaddas Yelena oroli St. Helena 圣赫勒拿 聖赫勒拿島
SI سلوفينيا Славенія Словения Slovenia Slovenija Eslovènia Slovinsko Slovenien Slowenien Σλοβενία Slovenia Slovenujo Eslovenia Sloveenia Eslovenia اسلوونی Slovenia Slovénie Slovénie an tSlóivéin An t-Slòbhain Eslovenia סלובניה Slovenija Szlovénia Slovenia Slovenia Slóvenía Slovenia スロベニア 슬로베니아 Slovenia Словения Slovėnija Slovēnija സ്ലോവേനിയ Словени Slovenia Slovenië Slovenia Slovenia Słowenia Eslovênia Eslovênia Slovenia Словения Slovinsko Slovenija Slloveni Словенија Slovenien Slovenia สโลวีเนีย Slovenya Словения Словенія Sloveniya Slovenia 斯洛文尼亚 斯洛維尼亞
SJ سفالبارد وجان ماين Шпіцберген і Ян-Маен Свалбард и Ян Майен Svalbard Svalbard i Jan Majen Svalbard i Jan Mayen Špicberky a Jan Mayen Svalbard og Jan Mayen Spitzbergen und Jan Mayen Σβάλμπαρντ και Γιαν Μαγιέν Svalbard & Jan Mayen Svalbardo kaj Jan-Majen-insulo Svalbard y Jan Mayen Svalbard ja Jan Mayen Svalbard eta Jan Mayen uharteak سوالبارد و یان ماین Huippuvuoret ja Jan Mayen Svalbard et Jan Mayen Svalbard et Jan Mayen Svalbard agus Jan Mayen Svalbard agus Jan Mayen Svalbard e Jan Mayen סבאלברד ויאן מאיין Svalbard i Jan Mayen Svalbard és Jan Mayen Svalbard e Jan Mayen Kepulauan Svalbard dan Jan Mayen Svalbarði og Jan Mayen Svalbard e Jan Mayen スバールバル諸島・ヤンマイエン島 스발바르제도-얀마웬섬 Svalbard & Jan Mayen Шпицберген жана Ян-Майен Svalbardas ir Janas Majenas Svalbāra un Jana Majena sala സ്വാൽബാഡും ജാൻ മായേനും Свалбард ба Ян Майен Svalbard og Jan Mayen Spitsbergen en Jan Mayen Svalbard og Jan Mayen Svalbard & Jan Mayen Svalbard i Jan Mayen Svalbard e Jan Mayen Svalbard e Jan Mayen Svalbard și Jan Mayen Шпицберген и Ян-Майен Svalbard a Jan Mayen Svalbard in Jan Mayen Svalbard e Jan-Majen Свалбард и Јан Мајен Svalbard och Jan Mayen Svalbard na Jan Mayen สฟาลบาร์และยานไมเอน Svalbard ve Jan Mayen Шпицберген һәм Ян-Майен Шпіцберген та Ян-Маєн Shpitsbergen va Yan-Mayen Svalbard và Jan Mayen 斯瓦尔巴和扬马延 挪威屬斯瓦巴及尖棉
SK سلوفاكيا Славакія Словакия Slovakia Slovačka Eslovàquia Slovensko Slovakiet Slowakei Σλοβακία Slovakia Slovakujo Eslovaquia Slovakkia Eslovakia اسلواکی Slovakia Slovaquie Slovaquie an tSlóvaic An t-Slòbhac Eslovaquia סלובקיה Slovačka Szlovákia Slovachia Slovakia Slóvakía Slovacchia スロバキア 슬로바키아 Slovakia Словакия Slovakija Slovākija സ്ലോവാക്യ Словак Slovakia Slowakije Slovakia Slovakia Słowacja Eslováquia Eslováquia Slovacia Словакия Slovensko Slovaška Sllovaki Словачка Slovakien Slovakia สโลวะเกีย Slovakya Словакия Словаччина Slovakiya Slovakia 斯洛伐克 斯洛伐克
SL سيراليون Сьера-Леонэ Сиера Леоне Sierra Leone Sijera Leone Sierra Leone Sierra Leone Sierra Leone Sierra Leone Σιέρα Λεόνε Sierra Leone Siera-Leono Sierra Leona Sierra Leone Sierra Leona سیرالئون Sierra Leone Sierra Leone Sierra Leone Siarra Leon Siarra Leòmhann Serra Leoa סיירה לאונה Sijera Leone Sierra Leone Sierra Leone Sierra Leone Síerra Leóne Sierra Leone シエラレオネ 시에라리온 Sierra Leone Сьерра-Леоне Siera Leonė Sjerraleone സിയെറ ലിയോൺ Сьерра-Леоне Sierra Leone Sierra Leone Sierra Leone Sierra Leone Sierra Leone Serra Leoa Serra Leoa Sierra Leone Сьерра-Леоне Sierra Leone Sierra Leone Sierra-Leone Сијера Леоне Sierra Leone Siera Leoni เซียร์ราลีโอน Sierra Leone Сьерра-Леоне Сьєрра-Леоне Syerra-Leone Sierra Leone 塞拉利昂 獅子山
SM سان مارينو Сан-Марына Сан Марино San Marino San Marino San Marino San Marino San Marino San Marino Άγιος Μαρίνος San Marino San-Marino San Marino San Marino San Marino سان‌مارینو San Marino Saint-Marin Saint-Marin San Mairíne San Marino San Marino סן מרינו San Marino San Marino San Marino San Marino San Marínó San Marino サンマリノ 산마리노 San Marino Сан Марино San Marinas Sanmarīno സാൻ മറിനോ Сан-Марино San Marino San Marino San Marino San Marino San Marino San Marino San Marino San Marino Сан-Марино San Maríno San Marino San-Marino Сан Марино San Marino San Marino ซานมาริโน San Marino Сан-Марино Сан-Маріно San-Marino San Marino 圣马力诺 聖馬利諾
SN السنغال Сенегал Сенегал Senegal Senegal Senegal Senegal Senegal Senegal Σενεγάλη Senegal Senegalo Senegal Senegal Senegal سنگال Senegal Sénégal Sénégal an tSeineagáil Seanagal Senegal סנגל Senegal Szenegál Senegal Senegal Senegal Senegal セネガル 세네갈 Senegal Сенегал Senegalas Senegāla സെനഗൽ Сенегал Senegal Senegal Senegal Senegal Senegal Senegal Senegal Senegal Сенегал Senegal Senegal Senegal Сенегал Senegal Senegali เซเนกัล Senegal Сенегал Сенегал Senegal Senegal 塞内加尔 塞內加爾
SO الصومال Самалі Сомалия Somalia Somalija Somàlia Somálsko Somalia Somalia Σομαλία Somalia Somalujo Somalia Somaalia Somalia سومالی Somalia Somalie Somalie an tSomáil Somàilia Somalia סומליה Somalija Szomália Somalia Somalia Sómalía Somalia ソマリア 소말리아 Somalia Сомали Somalis Somālija സോമാലിയ Сомали Somalia Somalië Somalia Somalia Somalia Somália Somália Somalia Сомали Somálsko Somalija Somali Сомалија Somalia Somalia โซมาเลีย Somali Сомали Сомалі Somali Somalia 索马里 索馬利亞
SR سورينام Сурынам Суринам Surinam Surinam Surinam Surinam Surinam Suriname Σουρινάμ Suriname Surinamo Surinam Suriname Surinam سورینام Suriname Suriname Suriname Suranam Suranam Suriname סורינאם Surinam Suriname Suriname Suriname Súrínam Suriname スリナム 수리남 Suriname Суринам Surinamas Surinama സുരിനാം Суринам Surinam Suriname Surinam Suriname Surinam Suriname Suriname Suriname Суринам Surinam Surinam Surinami Суринам Surinam Suriname ซูรินาเม Surinam Суринам Сурінам Surinam Suriname 苏里南 蘇利南
SS جنوب السودان Паўднёвы Судан Южен Судан Susoudan Južni Sudan Sudan del Sud Jižní Súdán Sydsudan Südsudan Νότιο Σουδάν South Sudan Sud-Sudano Sudán del Sur Lõuna-Sudaan Hego Sudan سودان جنوبی Etelä-Sudan Soudan du Sud Soudan du Sud an tSúdáin Theas Sudàn a Deas O Sudán do Sur דרום סודן Južni Sudan Dél-Szudán Sudan del Sud Sudan Selatan Suður-Súdan Sud Sudan 南スーダン 남수단 South Sudan Түштүк Судан Pietų Sudanas Dienvidsudāna ദക്ഷിണ സുഡാൻ Өмнөд Судан Sør-Sudan Zuid-Soedan Sør-Sudan South Sudan Sudan Południowy Sudão do Sul Sudão do Sul Sudanul de Sud Южный Судан Južný Sudán Južni Sudan Sudani i Jugut Јужни Судан Sydsudan Sudan Kusini ซูดานใต้ Güney Sudan Көньяк Судан Південний Судан Janubiy Sudan Nam Sudan 南苏丹 南蘇丹
ST ساو تومي وبرينسيبي Сан-Тамэ і Прынсіпі Сао Томе и Принсипи São Tomé ha Príncipe Sao Tome i Principe São Tomé i Príncipe Svatý Tomáš a Princův ostrov São Tomé og Príncipe São Tomé und Príncipe Σάο Τομέ και Πρίνσιπε São Tomé & Príncipe Sao-Tomeo kaj Principeo Santo Tomé y Príncipe São Tomé ja Príncipe Sao Tome eta Principe سائوتومه و پرینسیپ São Tomé ja Príncipe Sao Tomé-et-Principe Sao Tomé-et-Principe São Tomé agus Príncipe São Tomé agus Príncipe San Tomé e Príncipe סאו טומה ופרינסיפה Sveti Toma i Princip São Tomé és Príncipe São Tomé & Príncipe Sao Tome dan Principe Saó Tóme og Prinsípe São Tomé e Príncipe サントメ・プリンシペ 상투메 프린시페 São Tomé & Príncipe Сан-Томе жана Принсипи San Tomė ir Prinsipė Santome un Prinsipi സാവോ ടോമും പ്രിൻസിപെയും Сан-Томе ба Принсипи São Tomé og Príncipe Sao Tomé en Principe São Tomé og Príncipe São Tomé & Príncipe Wyspy Świętego Tomasza i Książęca São Tomé e Príncipe São Tomé e Príncipe São Tomé și Príncipe Сан-Томе и Принсипи Svätý Tomáš a Princov ostrov Sao Tome in Principe Sao-Tome e Principe Сао Томе и Принципе São Tomé och Príncipe São Tomé na Príncipe เซาตูเมและปรินซิปี Sao Tome ve Principe Сан-Томе һәм Принсипи Сан-Томе і Прінсіпі San-Tome va Prinsipi São Tomé và Príncipe 圣多美和普林西比 聖多美普林西比
SV السلفادور Сальвадор Салвадор Salvador Salvador El Salvador Salvador El Salvador El Salvador Ελ Σαλβαδόρ El Salvador Salvadoro El Salvador El Salvador El Salvador السالوادور El Salvador Salvador Salvador an tSalvadóir An Salbhador O Salvador אל סלבדור Salvador Salvador El Salvador El Salvador El Salvador El Salvador エルサルバドル 엘살바도르 El Salvador Эль-Сальвадор Salvadoras Salvadora എൽ സാൽവദോർ Эль Сальвадор El Salvador El Salvador El Salvador El Salvador Salwador El Salvador El Salvador El Salvador Сальвадор Salvádor Salvador Salvador Салвадор El Salvador El Salvador เอลซัลวาดอร์ El Salvador Сальвадор Сальвадор Salvador El Salvador 萨尔瓦多 薩爾瓦多
SX سانت مارتن Сінт-Мартэн Синт Мартен Sint Maarten Sint Marten Sint Maarten Svatý Martin (Nizozemsko) Sint Maarten Sint Maarten Άγιος Μαρτίνος (Ολλανδικό τμήμα) Sint Maarten Sint Maarten Sint Maarten Sint Maarten Sint Maarten سنت مارتن Sint Maarten Saint-Martin (partie néerlandaise) Saint-Martin (partie néerlandaise) Sint Maarten Sint Maarten Sint Maarten סנט מארטן Sint Maarten Sint Maarten Sint Maarten Sint Maarten Sankti Martin Sint Maarten シント・マールテン 신트마르턴 Sint Maarten Синт-Мартен Sint Martenas Sintmārtena സിന്റ് മാർട്ടെൻ Синт Мартен Sint Maarten Sint-Maarten Sint Maarten Sint Maarten Sint Maarten Sint Maarten Sint Maarten Sint-Maarten Синт-Мартен Svätý Martin (hol.) Sint Maarten Sint-Marten Свети Мартин (Холандија) Sint Maarten Sint Maarten ซินต์มาร์เทน Sint Maarten Синт-Мартен Сінт-Мартен Sint-Marten Sint Maarten 荷属圣马丁 荷屬聖馬丁
SY سوريا Сірыя Сирия Siria Sirija Síria Sýrie Syrien Syrien Συρία Syria Sirio Siria Süüria Siria سوریه Syyria Syrie Syrie an tSiria Siridhea Siria סוריה Sirija Szíria Syria Suriah Sýrland Siria シリア 시리아 Syria Сирия Sirija Sīrija സിറിയ Сири Syria Syrië Syria Syria Syria Síria Síria Siria Сирия Sýria Sirija Siri Сирија Syrien Syria ซีเรีย Suriye Сүрия Сирія Suriya Syria 叙利亚 敘利亞
SZ إسواتيني Эсватыні Есватини Eswatini Esvatini eSwatini Svazijsko Eswatini Eswatini Σουαζιλάνδη Eswatini Svazilando Esuatini Svaasimaa Swazilandia اسواتینی Swazimaa Eswatini Eswatini eSuaitíní eSwatini Eswatini אסוואטיני Esvatini Szváziföld Swazilandia eSwatini Svasíland Swaziland エスワティニ 에스와티니 Eswatini Свазиленд Svazilandas Svatini സ്വാസിലാന്റ് Эсватини Eswatini eSwatini Swaziland Eswatini Eswatini Essuatíni Essuatíni eSwatini Эсватини Eswatini Esvatini Esvatini Свазиленд Swaziland Uswazi เอสวาตีนี Esvatini Свазиленд Есватіні Svazilend Swaziland 斯威士兰 史瓦帝尼
TA تريستان دا كونا Трыстан-да-Кунья Тристан да Куня Tristan da Cunha Tristan da Cunha Tristan da Cunha Tristan da Cunha Tristan da Cunha Tristan da Cunha Τριστάν ντα Κούνια Tristan da Cunha Tristan da Cunha Tristán de Acuña Tristan da Cunha Tristan da Cunha تریستان دا کونا Tristan da Cunha Tristan da Cunha Tristan da Cunha Tristan da Cunha Tristan da Cunha Tristán da Cunha טריסטן דה קונה Tristan da Cunha Tristan da Cunha Tristan da Cunha Tristan da Cunha Tristan da Cunha Tristan da Cunha トリスタン・ダ・クーニャ 트리스탄다쿠나 Tristan da Cunha Тристан-да-Кунья Tristanas da Kunja Tristana da Kuņas salas ട്രിസ്റ്റൻ ഡ കൂന Тристан да Кунъя Tristan da Cunha Tristan da Cunha Tristan da Cunha Tristan da Cunha Tristan da Cunha Tristão da Cunha Tristão da Cunha Tristan da Cunha Тристан-да-Кунья Tristan da Cunha Tristan da Cunha Tristan-da-Kuna Тристан да Куња Tristan da Cunha Tristan da Cunha ทริสตันดาคูนา Tristan da Cunha Tristan da Cunha Трістан-да-Кунья Tristan-da-Kunya Tristan da Cunha 特里斯坦-达库尼亚群岛 特里斯坦達庫尼亞群島
TC جزر توركس وكايكوس Астравы Цёркс і Кайкас острови Търкс и Кайкос Inizi Turks ha Caicos Ostrva Turks i Kaikos Illes Turks i Caicos Turks a Caicos Turks- og Caicosøerne Turks- und Caicosinseln Νήσοι Τερκς και Κάικος Turks & Caicos Islands Turks & Caicos Islands Islas Turcas y Caicos Turks ja Caicos Turk eta Caico uharteak جزایر تورکس و کایکوس Turks- ja Caicossaaret Îles Turques-et-Caïques Îles Turques-et-Caïques Oileáin na dTurcach agus Caicos Na h-Eileanan Turcach is Caiceo Illas Turks e Caicos איי טרקס וקייקוס Otoci Turks i Caicos Turks- és Caicos-szigetek Insulas Turcos e Caicos Kepulauan Turks dan Caicos Turks- og Caicoseyjar Isole Turks e Caicos タークス・カイコス諸島 터크스 케이커스 제도 Turks & Caicos Islands Түркс жана Кайкос аралдары Terkso ir Kaikoso Salos Tērksas un Kaikosas salas ടർക്ക്‌സും കെയ്‌ക്കോ ദ്വീപുകളും Турк ба Кайкосын Арлууд Turks- og Caicosøyene Turks- en Caicoseilanden Turks- og Caicosøyane Turks & Caicos Islands Turks i Caicos Ilhas Turcas e Caicos Ilhas Turcas e Caicos Insulele Turks și Caicos о-ва Тёркс и Кайкос Turks a Caicos Otoki Turks in Caicos Ishujt Turks dhe Kaikos Острва Туркс и Каикос Turks- och Caicosöarna Visiwa vya Turks na Caicos หมู่เกาะเติกส์และหมู่เกาะเคคอส Turks ve Caicos Adaları Теркс һәм Кайкос утраулары Острови Теркс і Кайкос Turks va Kaykos orollari Quần đảo Turks và Caicos 特克斯和凯科斯群岛 土克斯及開科斯群島
TD تشاد Чад Чад Tchad Čad Txad Čad Tchad Tschad Τσαντ Chad Ĉado Chad Tšaad Txad چاد Tšad Tchad Tchad Sead An t-Seàd Chad צ׳אד Čad Csád Tchad Cad Tsjad Ciad チャド 차드 Chad Чад Čadas Čada ഛാഡ് Чад Tsjad Tsjaad Tsjad Chad Czad Chade Chade Ciad Чад Čad Čad Çad Чад Tchad Chad ชาด Çad Чад Чад Chad Chad 乍得 查德
TF الأقاليم الجنوبية الفرنسية Французскія паўднёвыя тэрыторыі Френски южни територии Douaroù aostral Frañs Francuske Južne Teritorije Territoris Australs Francesos Francouzská jižní území De Franske Besiddelser i Det Sydlige Indiske Ocean og Antarktis Französische Süd- und Antarktisgebiete Γαλλικά Νότια Εδάφη French Southern Territories French Southern Territories Territorios Australes Franceses Prantsuse Lõunaalad Hegoaldeko lurralde frantsesak سرزمین‌های جنوب فرانسه Ranskan eteläiset alueet Terres australes françaises Terres australes françaises Críocha Francacha Dheisceart an Domhain Ranntairean a Deas na Frainge Territorios Austrais Franceses הטריטוריות הדרומיות של צרפת Francuski južni i antarktički teritoriji Francia Déli Területek Territorios meridional francese Wilayah Selatan Perancis Frönsku suðlægu landsvæðin Terre australi francesi 仏領極南諸島 프랑스 남부 지방 French Southern Territories Франциянын Түштүктөгү аймактары Prancūzijos Pietų sritys Francijas Dienvidjūru teritorija ഫ്രഞ്ച് ദക്ഷിണ ഭൂപ്രദേശം Францын өмнөд газар нутаг De franske sørterritorier Franse Gebieden in de zuidelijke Indische Oceaan Dei franske sørterritoria French Southern Territories Francuskie Terytoria Południowe i Antarktyczne Territórios Franceses do Sul Territórios Franceses do Sul Teritoriile Australe și Antarctice Franceze Французские Южные территории Francúzske južné a antarktické územia Francosko južno ozemlje Territoret Jugore Franceze Француске Јужне Територије Franska sydterritorierna Himaya za Kusini za Kifaranza เฟรนช์เซาเทิร์นเทร์ริทอรีส์ Fransız Güney Toprakları Франциянең Көньяк Территорияләре Французькі Південні Території Fransuz Janubiy hududlari Lãnh thổ phía Nam Thuộc Pháp 法属南部领地 法屬南部屬地
TG توغو Тога Того Togo Togo Togo Togo Togo Togo Τόγκο Togo Togolo Togo Togo Togo توگو Togo Togo Togo Tóga Togo Togo טוגו Togo Togo Togo Togo Tógó Togo トーゴ 토고 Togo Того Togas Togo ടോഗോ Того Togo Togo Togo Togo Togo Togo Togo Togo Того Togo Togo Togo Того Togo Togo โตโก Togo Того Того Togo Togo 多哥 多哥
TH تايلاند Тайланд Тайланд Thailand Tajland Tailàndia Thajsko Thailand Thailand Ταϊλάνδη Thailand Tajlando Tailandia Tai Thailandia تایلند Thaimaa Thaïlande Thaïlande an Téalainn Dùthaich nan Tàidh Tailandia תאילנד Tajland Thaiföld Thailandia Thailand Taíland Thailandia タイ 태국 Thailand Тайланд Tailandas Taizeme തായ്‌ലാൻഡ് Тайланд Thailand Thailand Thailand Thailand Tajlandia Tailândia Tailândia Thailanda Таиланд Thajsko Tajska Tajlandë Тајланд Thailand Tailandi ไทย Tayland Тайланд Таїланд Tailand Thái Lan 泰国 泰國
TJ طاجيكستان Таджыкістан Таджикистан Tadjikistan Tadžikistan Tadjikistan Tádžikistán Tadsjikistan Tadschikistan Τατζικιστάν Tajikistan Taĝikujo Tayikistán Tadžikistan Tajikistan تاجیکستان Tadžikistan Tadjikistan Tadjikistan an Táidsíceastáin Taidigeastàn Taxiquistán טג׳יקיסטן Tadžikistan Tádzsikisztán Tadzhikistan Tajikistan Tadsjikistan Tagikistan タジキスタン 타지키스탄 Tajikistan Тажикстан Tadžikija Tadžikistāna താജിക്കിസ്ഥാൻ Тажикистан Tadsjikistan Tadzjikistan Tadsjikistan Tajikistan Tadżykistan Tadjiquistão Tadjiquistão Tadjikistan Таджикистан Tadžikistan Tadžikistan Taxhikistan Таџикистан Tadzjikistan Tajikistani ทาจิกิสถาน Tacikistan Таҗикстан Таджикистан Tojikiston Tajikistan 塔吉克斯坦 塔吉克
TK توكيلو Такелау Токелау Tokelau Tokelau Tokelau Tokelau Tokelau Tokelau Τοκελάου Tokelau Tokelau Tokelau Tokelau Tokelau توکلائو Tokelau Tokelau Tokelau Tócalá Tokelau Tokelau טוקלאו Tokelau Tokelau Tokelau Tokelau Tókelá Tokelau トケラウ 토켈라우 Tokelau Токелау Tokelau Tokelau ടോക്കെലൂ Токелау Tokelau Tokelau Tokelau Tokelau Tokelau Tokelau Tokelau Tokelau Токелау Tokelau Tokelau Tokelau Токелау Tokelau Tokelau โตเกเลา Tokelau Токелау Токелау Tokelau Tokelau 托克劳 托克勞群島
TL تيمور - ليشتي Тымор-Лешці Източен Тимор Timor-Leste Istočni Timor Timor Oriental Východní Timor Timor-Leste Timor-Leste Τιμόρ-Λέστε Timor-Leste Timor-Leste Timor-Leste Ida-Timor Ekialdeko Timor تیمور-لسته Itä-Timor Timor oriental Timor oriental Tíomór Thoir Timor-Leste Timor Leste טימור-לסטה Timor-Leste Kelet-Timor Timor del Est Timor Leste Tímor-Leste Timor Est 東ティモール 동티모르 Timor-Leste Тимор-Лесте Rytų Timoras Austrumtimora തിമോർ-ലെസ്റ്റെ Тимор-Лесте Øst-Timor Oost-Timor Timor-Leste (Aust-Timor) Timor-Leste Timor Wschodni Timor-Leste Timor-Leste Timor-Leste Восточный Тимор Východný Timor Timor-Leste Timor-Leste Тимор-Лесте (Источни Тимор) Östtimor Timor-Leste ติมอร์-เลสเต Timor-Leste Тимор-Лесте Тімор-Лешті Timor-Leste Timor-Leste 东帝汶 東帝汶
TM تركمانستان Туркменістан Туркменистан Turkmenistan Turkmenistan Turkmenistan Turkmenistán Turkmenistan Turkmenistan Τουρκμενιστάν Turkmenistan Turkmenujo Turkmenistán Türkmenistan Turkmenistan ترکمنستان Turkmenistan Turkménistan Turkménistan an Tuircméanastáin Turcmanastàn Turkmenistán טורקמניסטן Turkmenistan Türkmenisztán Turkmenistan Turkimenistan Túrkmenistan Turkmenistan トルクメニスタン 투르크메니스탄 Turkmenistan Түркмөнстан Turkmėnistanas Turkmenistāna തുർക്ക്മെനിസ്ഥാൻ Туркменистан Turkmenistan Turkmenistan Turkmenistan Turkmenistan Turkmenistan Turcomenistão Turcomenistão Turkmenistan Туркменистан Turkménsko Turkmenistan Turkmenistan Туркменистан Turkmenistan Turkmenistan เติร์กเมนิสถาน Türkmenistan Төркмәнстан Туркменістан Turkmaniston Turkmenistan 土库曼斯坦 土庫曼
TN تونس Туніс Тунис Tunizia Tunis Tunísia Tunisko Tunesien Tunesien Τυνησία Tunisia Tunizio Túnez Tuneesia Tunisia تونس Tunisia Tunisie Tunisie an Túinéis Tuinisea Tunisia תוניסיה Tunis Tunézia Tunisia Tunisia Túnis Tunisia チュニジア 튀니지 Tunisia Тунис Tunisas Tunisija ടുണീഷ്യ Тунис Tunisia Tunesië Tunisia Tunisia Tunezja Tunísia Tunísia Tunisia Тунис Tunisko Tunizija Tunizi Тунис Tunisien Tunisia ตูนิเซีย Tunus Тунис Туніс Tunis Tunisia 突尼斯 突尼西亞
TO تونغا Тонга Тонга Tonga Tonga Tonga Tonga Tonga Tonga Τόνγκα Tonga Tongo Tonga Tonga Tonga تونگا Tonga Tonga Tonga Tonga Tonga Tonga טונגה Tonga Tonga Tonga Tonga Tonga Tonga トンガ 통가 Tonga Тонга Tonga Tonga ടോംഗ Тонга Tonga Tonga Tonga Tonga Tonga Tonga Tonga Tonga Тонга Tonga Tonga Tonga Тонга Tonga Tonga ตองกา Tonga Тонга Тонґа Tonga Tonga 汤加 東加
TR تركيا Турцыя Турция Turkia Turska Turquia Turecko Tyrkiet Türkei Τουρκία Turkey Turkujo Turquía Türgi Turkia ترکیه Turkki Turquie Turquie an Tuirc An Tuirc Turquía טורקיה Turska Törökország Turchia Turki Tyrkland Turchia トルコ 터키 Turkey Түркия Turkija Turcija തുർക്കി Турк Tyrkia Turkije Tyrkia Turkey Turcja Turquia Turquia Turcia Турция Turecko Turčija Turqi Турска Turkiet Uturuki ตุรกี Türkiye Төркия Туреччина Turkiya Thổ Nhĩ Kỳ 土耳其 土耳其
TT ترينيداد وتوباغو Трынідад і Табага Тринидад и Тобаго Trinidad ha Tobago Trinidad i Tobago Trinitat i Tobago Trinidad a Tobago Trinidad og Tobago Trinidad und Tobago Τρινιντάντ και Τομπάγκο Trinidad & Tobago Trinidado kaj Tobago Trinidad y Tobago Trinidad ja Tobago Trinidad eta Tobago ترینیداد و توباگو Trinidad ja Tobago Trinité-et-Tobago Trinité-et-Tobago Oileán na Tríonóide agus Tobága Trianaid agus Tobago Trinidad e Tobago טרינידד וטובגו Trinidad i Tobago Trinidad és Tobago Trinidad e Tobago Trinidad dan Tobago Trínidad og Tóbagó Trinidad e Tobago トリニダード・トバゴ 트리니다드 토바고 Trinidad & Tobago Тринидад жана Тобаго Trinidadas ir Tobagas Trinidāda un Tobāgo ട്രിനിഡാഡും ടുബാഗോയും Тринидад ба Тобаго Trinidad og Tobago Trinidad en Tobago Trinidad og Tobago Trinidad & Tobago Trynidad i Tobago Trinidad e Tobago Trinidad e Tobago Trinidad și Tobago Тринидад и Тобаго Trinidad a Tobago Trinidad in Tobago Trinidad e Tobago Тринидад и Тобаго Trinidad och Tobago Trinidad na Tobago ตรินิแดดและโตเบโก Trinidad ve Tobago Тринидад һәм Тобаго Трінідад і Тобаґо Trinidad va Tobago Trinidad và Tobago 特立尼达和多巴哥 千里達及托巴哥
TV توفالو Тувалу Тувалу Tuvalu Tuvalu Tuvalu Tuvalu Tuvalu Tuvalu Τουβαλού Tuvalu Tuvalo Tuvalu Tuvalu Tuvalu تووالو Tuvalu Tuvalu Tuvalu Tuvalu Tubhalu Tuvalu טובאלו Tuvalu Tuvalu Tuvalu Tuvalu Túvalú Tuvalu ツバル 투발루 Tuvalu Тувалу Tuvalu Tuvalu ടുവാലു Тувалу Tuvalu Tuvalu Tuvalu Tuvalu Tuvalu Tuvalu Tuvalu Tuvalu Тувалу Tuvalu Tuvalu Tuvalu Тувалу Tuvalu Tuvalu ตูวาลู Tuvalu Тувалу Тувалу Tuvalu Tuvalu 图瓦卢 吐瓦魯
TW تايوان Тайвань Тайван Taiwan Tajvan Taiwan Tchaj-wan Taiwan Taiwan Ταϊβάν Taiwan Tajvano Taiwán Taiwan Taiwan تایوان Taiwan Taïwan Taïwan an Téaváin Taidh-Bhàn Taiwán טייוואן Tajvan Tajvan Taiwan Taiwan Taívan Taiwan 台湾 대만 Taiwan Тайвань Taivanas Taivāna തായ്‌വാൻ Тайвань Taiwan Taiwan Taiwan Taiwan Tajwan Taiwan Taiwan Taiwan Тайвань Taiwan Tajvan Tajvan Тајван Taiwan Taiwan ไต้หวัน Tayvan Тайвань Тайвань Tayvan Đài Loan 台湾 台灣
TZ تنزانيا Танзанія Танзания Tanzania Tanzanija Tanzània Tanzanie Tanzania Tansania Τανζανία Tanzania Tanzanio Tanzania Tansaania Tanzania تانزانیا Tansania Tanzanie Tanzanie an Tansáin An Tansan Tanzania טנזניה Tanzanija Tanzánia Tanzania Tanzania Tansanía Tanzania タンザニア 탄자니아 Tanzania Танзания Tanzanija Tanzānija ടാൻസാനിയ Танзани Tanzania Tanzania Tanzania Tanzania Tanzania Tanzânia Tanzânia Tanzania Танзания Tanzánia Tanzanija Tanzani Танзанија Tanzania Tanzania แทนซาเนีย Tanzanya Танзания Танзанія Tanzaniya Tanzania 坦桑尼亚 坦尚尼亞
UA أوكرانيا Украіна Украйна Ukraina Ukrajina Ucraïna Ukrajina Ukraine Ukraine Ουκρανία Ukraine Ukrajno Ucrania Ukraina Ukraina اوکراین Ukraina Ukraine Ukraine an Úcráin An Ucràin Ucraína אוקראינה Ukrajina Ukrajna Ukraina Ukraina Úkraína Ucraina ウクライナ 우크라이나 Ukraine Украина Ukraina Ukraina ഉക്രെയ്‌ൻ Украин Ukraina Oekraïne Ukraina Ukraine Ukraina Ucrânia Ucrânia Ucraina Украина Ukrajina Ukrajina Ukrainë Украјина Ukraina Ukraine ยูเครน Ukrayna Украина Україна Ukraina Ukraina 乌克兰 烏克蘭
UG أوغندا Уганда Уганда Ouganda Uganda Uganda Uganda Uganda Uganda Ουγκάντα Uganda Ugando Uganda Uganda Uganda اوگاندا Uganda Ouganda Ouganda Uganda Uganda Uganda אוגנדה Uganda Uganda Uganda Uganda Úganda Uganda ウガンダ 우간다 Uganda Уганда Uganda Uganda ഉഗാണ്ട Уганда Uganda Oeganda Uganda Uganda Uganda Uganda Uganda Uganda Уганда Uganda Uganda Ugandë Уганда Uganda Uganda ยูกันดา Uganda Уганда Уганда Uganda Uganda 乌干达 烏干達
UM جزر الولايات المتحدة النائية Малыя Аддаленыя астравы ЗША Отдалечени острови на САЩ Inizi diabell ar Stadoù-Unanet Američka Vanjska Ostrva Illes Perifèriques Menors dels EUA Menší odlehlé ostrovy USA Amerikanske oversøiske øer Amerikanische Überseeinseln Απομακρυσμένες Νησίδες ΗΠΑ U.S. Outlying Islands Usonaj malgrandaj insuloj Islas menores alejadas de EE. UU. Ühendriikide hajasaared Ameriketako Estatu Batuetako Kanpoaldeko Uharte Txikiak جزایر دورافتادهٔ ایالات متحده Yhdysvaltain erillissaaret Îles mineures éloignées des États-Unis Îles mineures éloignées des États-Unis Oileáin Imeallacha S.A.M. Meanbh-Eileanan Iomallach nan SA Illas Menores Distantes dos Estados Unidos האיים המרוחקים הקטנים של ארה״ב Mali udaljeni otoci SAD-a Az USA lakatlan külbirtokai U.S. Outlying Islands Kepulauan Terluar A.S. Smáeyjar Bandaríkjanna Altre isole americane del Pacifico 合衆国領有小離島 미국령 해외 제도 U.S. Outlying Islands АКШнын сырткы аралдары Jungtinių Valstijų Mažosios Tolimosios Salos ASV Mazās Aizjūras salas യു.എസ്. ദ്വീപസമൂഹങ്ങൾ Америкийн Нэгдсэн Улсын бага арлууд USAs ytre øyer Kleine afgelegen eilanden van de Verenigde Staten USAs ytre småøyar U.S. Outlying Islands Dalekie Wyspy Mniejsze Stanów Zjednoczonych Ilhas Menores Distantes dos EUA Ilhas Menores Distantes dos EUA Insulele Îndepărtate ale S.U.A. Внешние малые о-ва (США) Menšie odľahlé ostrovy USA Stranski zunanji otoki Združenih držav Ishujt Periferikë të SHBA-së Удаљена острва САД USA:s yttre öar Visiwa Vidogo vya Nje vya Marekani หมู่เกาะรอบนอกของสหรัฐอเมริกา ABD Küçük Harici Adaları АКШ Кече Читтәге утраулары Віддалені острови США AQSH yondosh orollari Các tiểu đảo xa của Hoa Kỳ 美国本土外小岛屿 美國本土外小島嶼
US الولايات المتحدة Злучаныя Штаты Съединени щати Stadoù-Unanet Sjedinjene Države Estats Units Spojené státy USA Vereinigte Staaten Ηνωμένες Πολιτείες United States Usono Estados Unidos Ameerika Ühendriigid Ameriketako Estatu Batuak ایالات متحده Yhdysvallat États-Unis États-Unis Stáit Aontaithe Mheiriceá Na Stàitean Aonaichte Os Estados Unidos ארצות הברית Sjedinjene Američke Države Egyesült Államok Statos Unite Amerika Serikat Bandaríkin Stati Uniti アメリカ合衆国 미국 Statys Unys Кошмо Штаттар Jungtinės Valstijos Amerikas Savienotās Valstis അമേരിക്കൻ ഐക്യനാടുകൾ Америкийн Нэгдсэн Улс USA Verenigde Staten USA АИШ Stany Zjednoczone Estados Unidos Estados Unidos Statele Unite ale Americii Соединенные Штаты Spojené štáty Združene države Amerike SHBA Сједињене Државе USA Marekani สหรัฐอเมริกา Amerika Birleşik Devletleri АКШ Сполучені Штати Amerika Qoshma Shtatlari Hoa Kỳ 美国 美國
UY أورغواي Уругвай Уругвай Uruguay Urugvaj Uruguai Uruguay Uruguay Uruguay Ουρουγουάη Uruguay Urugvajo Uruguay Uruguay Uruguai اروگوئه Uruguay Uruguay Uruguay Uragua Uruguaidh O Uruguai אורוגוואי Urugvaj Uruguay Uruguay Uruguay Úrúgvæ Uruguay ウルグアイ 우루과이 Uruguay Уругвай Urugvajus Urugvaja ഉറുഗ്വേ Уругвай Uruguay Uruguay Uruguay Uruguay Urugwaj Uruguai Uruguai Uruguay Уругвай Uruguaj Urugvaj Uruguai Уругвај Uruguay Uruguay อุรุกวัย Uruguay Уругвай Уруґвай Urugvay Uruguay 乌拉圭 烏拉圭
UZ أوزبكستان Узбекістан Узбекистан Ouzbekistan Uzbekistan Uzbekistan Uzbekistán Usbekistan Usbekistan Ουζμπεκιστάν Uzbekistan Uzbekujo Uzbekistán Usbekistan Uzbekistan ازبکستان Uzbekistan Ouzbékistan Ouzbékistan an Úisbéiceastáin Usbagastàn Uzbekistán אוזבקיסטן Uzbekistan Üzbegisztán Uzbekistan Uzbekistan Úsbekistan Uzbekistan ウズベキスタン 우즈베키스탄 Uzbekistan Өзбекстан Uzbekistanas Uzbekistāna ഉസ്‌ബെക്കിസ്ഥാൻ Узбекистан Usbekistan Oezbekistan Usbekistan Uzbekistan Uzbekistan Uzbequistão Uzbequistão Uzbekistan Узбекистан Uzbekistan Uzbekistan Uzbekistan Узбекистан Uzbekistan Uzibekistani อุซเบกิสถาน Özbekistan Үзбәкстан Узбекистан Oʻzbekiston Uzbekistan 乌兹别克斯坦 烏茲別克
VA الفاتيكان Ватыкан Ватикан Vatikan Vatikan Ciutat del Vaticà Vatikán Vatikanstaten Vatikanstadt Βατικανό Vatican City Vatikano Ciudad del Vaticano Vatikan Vatikano Hiria واتیکان Vatikaani État de la Cité du Vatican État de la Cité du Vatican Cathair na Vatacáine Cathair na Bhatacain Cidade do Vaticano הוותיקן Vatikanski Grad Vatikán Citate del Vaticano Vatikan Vatíkanið Città del Vaticano バチカン市国 바티칸 시국 Vatican City Ватикан Vatikano Miesto Valstybė Vatikāns വത്തിക്കാൻ Ватикан хот улс Vatikanstaten Vaticaanstad Vatikanstaten Vatican City Watykan Cidade do Vaticano Cidade do Vaticano Statul Cetății Vaticanului Ватикан Vatikán Vatikan Vatikan Ватикан Vatikanstaten Mji wa Vatican นครวาติกัน Vatikan Vatican City Ватикан Vatikan Thành Vatican 梵蒂冈 梵蒂岡
VC سانت فنسنت وجزر غرينادين Сент-Вінсент і Грэнадзіны Сейнт Винсънт и Гренадини Sant Visant hag ar Grenadinez Sveti Vinsent i Grenadin Saint Vincent i les Grenadines Svatý Vincenc a Grenadiny Saint Vincent og Grenadinerne St. Vincent und die Grenadinen Άγιος Βικέντιος και Γρεναδίνες St. Vincent & Grenadines Sent-Vincento kaj la Grenadinoj San Vicente y las Granadinas Saint Vincent ja Grenadiinid Saint Vincent eta Grenadinak سنت وینسنت و گرنادین Saint Vincent ja Grenadiinit Saint-Vincent-et-les-Grenadines Saint-Vincent-et-les-Grenadines San Uinseann agus na Greanáidíní Naomh Bhionsant agus Eileanan Greanadach San Vicente e As Granadinas סנט וינסנט והגרנדינים Sveti Vincent i Grenadini Saint Vincent és a Grenadine-szigetek Sancte Vincente e le Grenadinas Saint Vincent dan Grenadine Sankti Vinsent og Grenadíneyjar Saint Vincent e Grenadine セントビンセント及びグレナディーン諸島 세인트빈센트그레나딘 St. Vincent & Grenadines Сент-Винсент жана Гренадиндер Šventasis Vincentas ir Grenadinai Sentvinsenta un Grenadīnas സെന്റ് വിൻസെന്റും ഗ്രനെഡൈൻസും Сент-Винсент ба Гренадин St. Vincent og Grenadinene Saint Vincent en de Grenadines St. Vincent og Grenadinane St. Vincent & Grenadines Saint Vincent i Grenadyny São Vicente e Granadinas São Vicente e Granadinas Saint Vincent și Grenadinele Сент-Винсент и Гренадины Svätý Vincent a Grenadíny Saint Vincent in Grenadine Shën-Vincent dhe Grenadine Сент Винсент и Гренадини S:t Vincent och Grenadinerna St. Vincent na Grenadines เซนต์วินเซนต์และเกรนาดีนส์ Saint Vincent ve Grenadinler Сент-Винсент һәм Гренадин Сент-Вінсент і Ґренадіни Sent-Vinsent va Grenadin St. Vincent và Grenadines 圣文森特和格林纳丁斯 聖文森及格瑞那丁
VE فنزويلا Венесуэла Венецуела Venezuela Venecuela Veneçuela Venezuela Venezuela Venezuela Βενεζουέλα Venezuela Venezuelo Venezuela Venezuela Venezuela ونزوئلا Venezuela Venezuela Venezuela Veiniséala A Bheiniseala Venezuela ונצואלה Venezuela Venezuela Venezuela Venezuela Venesúela Venezuela ベネズエラ 베네수엘라 Venezuela Венесуэла Venesuela Venecuēla വെനിസ്വേല Венесуэл Venezuela Venezuela Venezuela Venezuela Wenezuela Venezuela Venezuela Venezuela Венесуэла Venezuela Venezuela Venezuelë Венецуела Venezuela Venezuela เวเนซุเอลา Venezuela Венесуэла Венесуела Venesuela Venezuela 委内瑞拉 委內瑞拉
VG جزر فيرجن البريطانية Брытанскія Віргінскія астравы Британски Вирджински острови Inizi Gwercʼh Breizh-Veur Britanska Djevičanska ostrva Illes Verges Britàniques Britské Panenské ostrovy De Britiske Jomfruøer Britische Jungferninseln Βρετανικές Παρθένες Νήσοι British Virgin Islands Britaj Virgulininsuloj Islas Vírgenes Británicas Briti Neitsisaared Birjina uharte britainiarrak جزایر ویرجین بریتانیا Brittiläiset Neitsytsaaret Îles Vierges britanniques Îles Vierges britanniques Oileáin Bhriotanacha na Maighdean Eileanan Breatannach na Maighdinn Illas Virxes Británicas איי הבתולה הבריטיים Britanski Djevičanski otoci Brit Virgin-szigetek British Virgin Islands Kepulauan Virgin Britania Raya Bresku Jómfrúaeyjar Isole Vergini Britanniche 英領ヴァージン諸島 영국령 버진아일랜드 British Virgin Islands Виргин аралдары (Британия) Didžiosios Britanijos Mergelių Salos Britu Virdžīnas ബ്രിട്ടീഷ് വെർജിൻ ദ്വീപുകൾ Британийн Виржиний арлууд De britiske jomfruøyene Britse Maagdeneilanden Dei britiske Jomfruøyane British Virgin Islands Brytyjskie Wyspy Dziewicze Ilhas Virgens Britânicas Ilhas Virgens Britânicas Insulele Virgine Britanice Виргинские о-ва (Великобритания) Britské Panenské ostrovy Britanski Deviški otoki Ishujt e Virgjër Britanikë Британска Девичанска Острва Brittiska Jungfruöarna Visiwa vya Virgin, Uingereza หมู่เกาะบริติชเวอร์จิน Britanya Virjin Adaları Британия Виргин утраулары Британські Віргінські острови Britaniya Virgin orollari Quần đảo Virgin thuộc Anh 英属维尔京群岛 英屬維京群島
VI جزر فيرجن التابعة للولايات المتحدة Амерыканскія Віргінскія астравы Американски Вирджински острови Inizi Gwercʼh ar Stadoù-Unanet Američka Djevičanska ostrva Illes Verges Nord-americanes Americké Panenské ostrovy De Amerikanske Jomfruøer Amerikanische Jungferninseln Αμερικανικές Παρθένες Νήσοι U.S. Virgin Islands Usonaj Virgulininsuloj Islas Vírgenes de EE. UU. USA Neitsisaared Birjina uharte amerikarrak جزایر ویرجین ایالات متحده Yhdysvaltain Neitsytsaaret Îles Vierges des États-Unis Îles Vierges des États-Unis Oileáin Mheiriceánacha na Maighdean Eileanan na Maighdinn aig na SA Illas Virxes Estadounidenses איי הבתולה של ארצות הברית Američki Djevičanski otoci Amerikai Virgin-szigetek U.S. Virgin Islands Kepulauan Virgin Amerika Serikat Bandarísku Jómfrúaeyjar Isole Vergini Americane 米領ヴァージン諸島 미국령 버진아일랜드 U.S. Virgin Islands Виргин аралдары (АКШ) Jungtinių Valstijų Mergelių Salos ASV Virdžīnas യു.എസ്. വെർജിൻ ദ്വീപുകൾ АНУ-ын Виржиний арлууд De amerikanske jomfruøyene Amerikaanse Maagdeneilanden Dei amerikanske Jomfruøyane U.S. Virgin Islands Wyspy Dziewicze Stanów Zjednoczonych Ilhas Virgens Americanas Ilhas Virgens Americanas Insulele Virgine Americane Виргинские о-ва (США) Americké Panenské ostrovy Ameriški Deviški otoki Ishujt e Virgjër të SHBA-së Америчка Девичанска Острва Amerikanska Jungfruöarna Visiwa vya Virgin, Marekani หมู่เกาะเวอร์จินของสหรัฐอเมริกา ABD Virjin Adaları АКШ Виргин утраулары Віргінські острови, США AQSH Virgin orollari Quần đảo Virgin thuộc Mỹ 美属维尔京群岛 美屬維京群島
VN فيتنام В’етнам Виетнам Viêt Nam Vijetnam Vietnam Vietnam Vietnam Vietnam Βιετνάμ Vietnam Vjetnamo Vietnam Vietnam Vietnam ویتنام Vietnam Vietnam Vietnam Vítneam Bhiet-Nam Vietnam וייטנאם Vijetnam Vietnám Vietnam Vietnam Víetnam Vietnam ベトナム 베트남 Vietnam Вьетнам Vietnamas Vjetnama വിയറ്റ്നാം Вьетнам Vietnam Vietnam Vietnam Vietnam Wietnam Vietnã Vietnã Vietnam Вьетнам Vietnam Vietnam Vietnam Вијетнам Vietnam Vietnam เวียดนาม Vietnam Вьетнам Вʼєтнам Vyetnam Việt Nam 越南 越南
VU فانواتو Вануату Вануату Vanuatu Vanuatu Vanuatu Vanuatu Vanuatu Vanuatu Βανουάτου Vanuatu Vanuatuo Vanuatu Vanuatu Vanuatu وانواتو Vanuatu Vanuatu Vanuatu Vanuatú Vanuatu Vanuatu ונואטו Vanuatu Vanuatu Vanuatu Vanuatu Vanúatú Vanuatu バヌアツ 바누아투 Vanuatu Вануату Vanuatu Vanuatu വന്വാതു Вануату Vanuatu Vanuatu Vanuatu Vanuatu Vanuatu Vanuatu Vanuatu Vanuatu Вануату Vanuatu Vanuatu Vanuatu Вануату Vanuatu Vanuatu วานูอาตู Vanuatu Вануату Вануату Vanuatu Vanuatu 瓦努阿图 萬那杜
WF جزر والس وفوتونا Уоліс і Футуна Уолис и Футуна Wallis ha Futuna Ostrva Valis i Futuna Wallis i Futuna Wallis a Futuna Wallis og Futuna Wallis und Futuna Γουάλις και Φουτούνα Wallis & Futuna Valiso kaj Futuno Wallis y Futuna Wallis ja Futuna Wallis eta Futuna والیس و فوتونا Wallis ja Futuna Wallis-et-Futuna Wallis-et-Futuna Vailís agus Futúna Uallas agus Futuna Wallis e Futuna איי ווליס ופוטונה Wallis i Futuna Wallis és Futuna Wallis & Futuna Kepulauan Wallis dan Futuna Wallis- og Fútúnaeyjar Wallis e Futuna ウォリス・フツナ 왈리스-푸투나 제도 Wallis & Futuna Уоллис жана Футуна Volisas ir Futūna Volisa un Futunas salas വാലിസ് ആന്റ് ഫ്യൂച്യുന Уоллис ба Футуна Wallis og Futuna Wallis en Futuna Wallis og Futuna Wallis & Futuna Wallis i Futuna Wallis e Futuna Wallis e Futuna Wallis și Futuna Уоллис и Футуна Wallis a Futuna Wallis in Futuna Uollis e Futuna Валис и Футуна Wallis- och Futunaöarna Wallis na Futuna วาลลิสและฟุตูนา Wallis ve Futuna Уоллис һәм Футуна Уолліс і Футуна Uollis va Futuna Wallis và Futuna 瓦利斯和富图纳 瓦利斯群島和富圖那群島
WS ساموا Самоа Самоа Samoa Samoa Samoa Samoa Samoa Samoa Σαμόα Samoa Samoo Samoa Samoa Samoa ساموآ Samoa Samoa Samoa Samó Samotha Samoa סמואה Samoa Szamoa Samoa Samoa Samóa Samoa サモア 사모아 Samoa Самоа Samoa Samoa സമോവ Самоа Samoa Samoa Samoa Samoa Samoa Samoa Samoa Samoa Самоа Samoa Samoa Samoa Самоа Samoa Samoa ซามัว Samoa Самоа Самоа Samoa Samoa 萨摩亚 薩摩亞
XK كوسوفو Косава Косово Kosovo Kosovo Kosovo Kosovo Kosovo Kosovo Κοσσυφοπέδιο Kosovo Kosovo Kosovo Kosovo Kosovo کوزوو Kosovo Kosovo Kosovo an Chosaiv A Chosobho Kosovo קוסובו Kosovo Koszovó Kosovo Kosovo Kósóvó Kosovo コソボ 코소보 Kosovo Косово Kosovas Kosova കൊസോവൊ Косово Kosovo Kosovo Kosovo Kosovo Kosowo Kosovo Kosovo Kosovo Косово Kosovo Kosovo Kosovë Косово Kosovo Kosovo โคโซโว Kosova Косово Косово Kosovo Kosovo 科索沃 科索沃
YE اليمن Емен Йемен Yemen Jemen Iemen Jemen Yemen Jemen Υεμένη Yemen Jemeno Yemen Jeemen Yemen یمن Jemen Yémen Yémen Éimin An Eaman O Iemen תימן Jemen Jemen Yemen Yaman Jemen Yemen イエメン 예멘 Yemen Йемен Jemenas Jemena യെമൻ Йемен Jemen Jemen Jemen Yemen Jemen Iêmen Iêmen Yemen Йемен Jemen Jemen Jemen Јемен Jemen Yemeni เยเมน Yemen Йәмән Ємен Yaman Yemen 也门 葉門
YT مايوت Маёта Майот Mayotte Majote Mayotte Mayotte Mayotte Mayotte Μαγιότ Mayotte Majoto Mayotte Mayotte Mayotte مایوت Mayotte Mayotte Mayotte Mayotte Mayotte Mayotte מאיוט Mayotte Mayotte Mayotte Mayotte Mayotte Mayotte マヨット 마요트 Mayotte Майотта Majotas Majota മയോട്ടി Майотта Mayotte Mayotte Mayotte Mayotte Majotta Mayotte Mayotte Mayotte Майотта Mayotte Mayotte Majotë Мајот Mayotte Mayotte มายอต Mayotte Майотта Майотта Mayotta Mayotte 马约特 馬約特島
ZA جنوب أفريقيا Паўднёва-Афрыканская Рэспубліка Южна Африка Suafrika Južnoafrička Republika República de Sud-àfrica Jihoafrická republika Sydafrika Südafrika Νότια Αφρική South Africa Sud-Afriko Sudáfrica Lõuna-Aafrika Vabariik Hegoafrika افریقای جنوبی Etelä-Afrikka Afrique du Sud Afrique du Sud an Afraic Theas Afraga a Deas Suráfrica דרום אפריקה Južnoafrička Republika Dél-afrikai Köztársaság Sudafrica Afrika Selatan Suður-Afríka Sudafrica 南アフリカ 남아프리카 South Africa Түштүк-Африка Республикасы Pietų Afrika Dienvidāfrikas Republika ദക്ഷിണാഫ്രിക്ക Өмнөд Африк Sør-Afrika Zuid-Afrika Sør-Afrika South Africa Republika Południowej Afryki África do Sul África do Sul Africa de Sud Южно-Африканская Республика Južná Afrika Južnoafriška republika Afrika e Jugut Јужноафричка Република Sydafrika Afrika Kusini แอฟริกาใต้ Güney Afrika Көньяк Африка Південно-Африканська Республіка Janubiy Afrika Respublikasi Nam Phi 南非 南非
ZM زامبيا Замбія Замбия Zambia Zambija Zàmbia Zambie Zambia Sambia Ζάμπια Zambia Zambio Zambia Sambia Zambia زامبیا Sambia Zambie Zambie an tSaimbia Sàimbia Zambia זמביה Zambija Zambia Zambia Zambia Sambía Zambia ザンビア 잠비아 Zambia Замбия Zambija Zambija സാംബിയ Замби Zambia Zambia Zambia Zambia Zambia Zâmbia Zâmbia Zambia Замбия Zambia Zambija Zambi Замбија Zambia Zambia แซมเบีย Zambiya Замбия Замбія Zambiya Zambia 赞比亚 尚比亞
ZW زيمبابوي Зімбабвэ Зимбабве Zimbabwe Zimbabve Zimbàbue Zimbabwe Zimbabwe Simbabwe Ζιμπάμπουε Zimbabwe Zimbabvo Zimbabue Zimbabwe Zimbabwe زیمبابوه Zimbabwe Zimbabwe Zimbabwe an tSiombáib An t-Sìombab Zimbabwe זימבבואה Zimbabve Zimbabwe Zimbabwe Zimbabwe Simbabve Zimbabwe ジンバブエ 짐바브웨 Zimbabwe Зимбабве Zimbabvė Zimbabve സിംബാബ്‌വേ Зимбабве Zimbabwe Zimbabwe Zimbabwe Zimbabwe Zimbabwe Zimbábue Zimbábue Zimbabwe Зимбабве Zimbabwe Zimbabve Zimbabve Зимбабве Zimbabwe Zimbabwe ซิมบับเว Zimbabve Зимбабве Зімбабве Zimbabve Zimbabwe 津巴布韦 辛巴威
1 country_code ar be bg br bs ca cs da de el en eo es et eu fa fi fr fr-CA ga gd gl he hr hu ia id is it ja ko kw ky lt lv ml mn-MN nb nl nn os pl pt pt-BR ro ru sk sl sq sr sv sw th tr tt uk uz vi zh-CN zh-TW
2 AC جزيرة أسينشيون Востраў Узнясення остров Възнесение Enez Ascension Ostrvo Ascension Illa de l’Ascensió Ascension Ascensionøen Ascension Νήσος Ασενσιόν Ascension Island Ascension Island Isla de la Ascensión Ascensioni saar Ascension uhartea جزایر آسنسیون Ascension-saari Île de l’Ascension Île de l’Ascension Oileán na Deascabhála Eilean na Deasgabhalach Illa de Ascensión האי אסנשן Otok Ascension Ascension-sziget Ascension Island Pulau Ascension Ascension-eyja Isola Ascensione アセンション島 어센션 섬 Ascension Island Вознесение аралы Dangun Žengimo sala Debesbraukšanas sala അസൻഷൻ ദ്വീപ് Асенсион арал Ascension Ascension Ascension Ascension Island Wyspa Wniebowstąpienia Ilha de Ascensão Ilha de Ascensão Insula Ascension о-в Вознесения Ascension Otok Ascension Ishulli Asenshion Острво Асенсион Ascension Kisiwa cha Ascension เกาะแอสเซนชัน Ascension Adası Ascension Island Острів Вознесіння Me’roj oroli Đảo Ascension 阿森松岛 阿森松島
3 AD أندورا Андора Андора Andorra Andora Andorra Andorra Andorra Andorra Ανδόρα Andorra Andoro Andorra Andorra Andorra آندورا Andorra Andorre Andorre Andóra Andorra Andorra אנדורה Andora Andorra Andorra Andorra Andorra Andorra アンドラ 안도라 Andorra Андорра Andora Andora അൻഡോറ Андорра Andorra Andorra Andorra Andorra Andora Andorra Andorra Andorra Андорра Andorra Andora Andorrë Андора Andorra Andorra อันดอร์รา Andorra Андорра Андорра Andorra Andorra 安道尔 安道爾
4 AE الإمارات العربية المتحدة Аб’яднаныя Арабскія Эміраты Обединени арабски емирства Emirelezhioù Arab Unanet Ujedinjeni Arapski Emirati Emirats Àrabs Units Spojené arabské emiráty De Forenede Arabiske Emirater Vereinigte Arabische Emirate Ηνωμένα Αραβικά Εμιράτα United Arab Emirates Unuiĝintaj Arabaj Emirlandoj Emiratos Árabes Unidos Araabia Ühendemiraadid Arabiar Emirerri Batuak امارات متحدهٔ عربی Arabiemiirikunnat Émirats arabes unis Émirats arabes unis Aontas na nÉimíríochtaí Arabacha Na h-Iomaratan Arabach Aonaichte Os Emiratos Árabes Unidos איחוד האמירויות הערביות Ujedinjeni Arapski Emirati Egyesült Arab Emírségek Emiratos Arabe Unite Uni Emirat Arab Sameinuðu arabísku furstadæmin Emirati Arabi Uniti アラブ首長国連邦 아랍에미리트 United Arab Emirates Бириккен Араб Эмираттары Jungtiniai Arabų Emyratai Apvienotie Arābu Emirāti യുണൈറ്റഡ് അറബ് എമിറൈറ്റ്‌സ് Арабын Нэгдсэн Эмирт Улс De forente arabiske emirater Verenigde Arabische Emiraten Dei sameinte arabiske emirata United Arab Emirates Zjednoczone Emiraty Arabskie Emirados Árabes Unidos Emirados Árabes Unidos Emiratele Arabe Unite ОАЭ Spojené arabské emiráty Združeni arabski emirati Emiratet e Bashkuara Arabe Уједињени Арапски Емирати Förenade Arabemiraten Falme za Kiarabu สหรัฐอาหรับเอมิเรตส์ Birleşik Arap Emirlikleri Берләшкән Гарәп Әмирлекләре Обʼєднані Арабські Емірати Birlashgan Arab Amirliklari Các Tiểu Vương quốc Ả Rập Thống nhất 阿拉伯联合酋长国 阿拉伯聯合大公國
5 AF أفغانستان Афганістан Афганистан Afghanistan Afganistan Afganistan Afghánistán Afghanistan Afghanistan Αφγανιστάν Afghanistan Afganujo Afganistán Afganistan Afganistan افغانستان Afganistan Afghanistan Afghanistan an Afganastáin Afghanastàn Afganistán אפגניסטן Afganistan Afganisztán Afghanistan Afganistan Afganistan Afghanistan アフガニスタン 아프가니스탄 Afghanistan Афганистан Afganistanas Afganistāna അഫ്‌ഗാനിസ്ഥാൻ Афганистан Afghanistan Afghanistan Afghanistan Afghanistan Afganistan Afeganistão Afeganistão Afganistan Афганистан Afganistan Afganistan Afganistan Авганистан Afghanistan Afghanistan อัฟกานิสถาน Afganistan Әфганстан Афганістан Afgʻoniston Afghanistan 阿富汗 阿富汗
6 AG أنتيغوا وبربودا Антыгуа і Барбуда Антигуа и Барбуда Antigua ha Barbuda Antigva i Barbuda Antigua i Barbuda Antigua a Barbuda Antigua og Barbuda Antigua und Barbuda Αντίγκουα και Μπαρμπούντα Antigua & Barbuda Antigvo-Barbudo Antigua y Barbuda Antigua ja Barbuda Antigua eta Barbuda آنتیگوا و باربودا Antigua ja Barbuda Antigua-et-Barbuda Antigua-et-Barbuda Antigua agus Barbúda Aintìoga is Barbuda Antigua e Barbuda אנטיגואה וברבודה Antigva i Barbuda Antigua és Barbuda Antigua e Barbuda Antigua dan Barbuda Antígva og Barbúda Antigua e Barbuda アンティグア・バーブーダ 앤티가 바부다 Antigua & Barbuda Антигуа жана Барбуда Antigva ir Barbuda Antigva un Barbuda ആൻറിഗ്വയും ബർബുഡയും Антигуа ба Барбуда Antigua og Barbuda Antigua en Barbuda Antigua og Barbuda Antigua & Barbuda Antigua i Barbuda Antígua e Barbuda Antígua e Barbuda Antigua și Barbuda Антигуа и Барбуда Antigua a Barbuda Antigva in Barbuda Antigua e Barbuda Антигва и Барбуда Antigua och Barbuda Antigua na Barbuda แอนติกาและบาร์บูดา Antigua ve Barbuda Антигуа һәм Барбуда Антиґуа і Барбуда Antigua va Barbuda Antigua và Barbuda 安提瓜和巴布达 安地卡及巴布達
7 AI أنغويلا Ангілья Ангуила Anguilla Angvila Anguilla Anguilla Anguilla Anguilla Ανγκουίλα Anguilla Angvilo Anguila Anguilla Aingira آنگویلا Anguilla Anguilla Anguilla Angaíle Anguillia Anguila אנגווילה Angvila Anguilla Anguilla Anguilla Angvilla Anguilla アンギラ 앵귈라 Anguilla Ангилья Angilija Angilja ആൻഗ്വില്ല Ангилья Anguilla Anguilla Anguilla Anguilla Anguilla Anguila Anguila Anguilla Ангилья Anguilla Angvila Anguilë Ангвила Anguilla Anguilla แองกวิลลา Anguilla Ангилья Анґілья Angilya Anguilla 安圭拉 安奎拉
8 AL ألبانيا Албанія Албания Albania Albanija Albània Albánie Albanien Albanien Αλβανία Albania Albanujo Albania Albaania Albania آلبانی Albania Albanie Albanie an Albáin Albàinia Albania אלבניה Albanija Albánia Albania Albania Albanía Albania アルバニア 알바니아 Albania Албания Albanija Albānija അൽബേനിയ Албани Albania Albanië Albania Albania Albania Albânia Albânia Albania Албания Albánsko Albanija Shqipëri Албанија Albanien Albania แอลเบเนีย Arnavutluk Албания Албанія Albaniya Albania 阿尔巴尼亚 阿爾巴尼亞
9 AM أرمينيا Арменія Армения Armenia Armenija Armènia Arménie Armenien Armenien Αρμενία Armenia Armenujo Armenia Armeenia Armenia ارمنستان Armenia Arménie Arménie an Airméin Airmeinea Armenia ארמניה Armenija Örményország Armenia Armenia Armenía Armenia アルメニア 아르메니아 Armenia Армения Armėnija Armēnija അർമേനിയ Армени Armenia Armenië Armenia Armenia Armenia Armênia Armênia Armenia Армения Arménsko Armenija Armeni Јерменија Armenien Armenia อาร์เมเนีย Ermenistan Әрмәнстан Вірменія Armaniston Armenia 亚美尼亚 亞美尼亞
10 AO أنغولا Ангола Ангола Angola Angola Angola Angola Angola Angola Αγκόλα Angola Angolo Angola Angola Angola آنگولا Angola Angola Angola Angóla Angòla Angola אנגולה Angola Angola Angola Angola Angóla Angola アンゴラ 앙골라 Angola Ангола Angola Angola അംഗോള Ангол Angola Angola Angola Angola Angola Angola Angola Angola Ангола Angola Angola Angolë Ангола Angola Angola แองโกลา Angola Ангола Ангола Angola Angola 安哥拉 安哥拉
11 AQ أنتاركتيكا Антарктыка Антарктика Antarktika Antarktika Antàrtida Antarktida Antarktis Antarktis Ανταρκτική Antarctica Antarkto Antártida Antarktika Antartika جنوبگان Antarktis Antarctique Antarctique an Antartaice An Antartaig A Antártida אנטארקטיקה Antarktika Antarktisz Antarctica Antarktika Suðurskautslandið Antartide 南極 남극 대륙 Antarctica Антарктида Antarktida Antarktika അന്റാർട്ടിക്ക Антарктид Antarktis Antarctica Antarktis Antarctica Antarktyda Antártida Antártida Antarctica Антарктида Antarktída Antarktika Antarktikë Антарктик Antarktis Antaktiki แอนตาร์กติกา Antarktika Антарктика Антарктика Antarktida Nam Cực 南极洲 南極洲
12 AR الأرجنتين Аргенціна Аржентина Arcʼhantina Argentina Argentina Argentina Argentina Argentinien Αργεντινή Argentina Argentino Argentina Argentina Argentina آرژانتین Argentiina Argentine Argentine an Airgintín An Argantain A Arxentina ארגנטינה Argentina Argentína Argentina Argentina Argentína Argentina アルゼンチン 아르헨티나 Argentina Аргентина Argentina Argentīna അർജന്റീന Аргентин Argentina Argentinië Argentina Argentina Argentyna Argentina Argentina Argentina Аргентина Argentína Argentina Argjentinë Аргентина Argentina Ajentina อาร์เจนตินา Arjantin Аргентина Аргентина Argentina Argentina 阿根廷 阿根廷
13 AS ساموا الأمريكية Амерыканскае Самоа Американска Самоа Samoa Amerikan Američka Samoa Samoa Nord-americana Americká Samoa Amerikansk Samoa Amerikanisch-Samoa Αμερικανική Σαμόα American Samoa American Samoa Samoa Americana Ameerika Samoa Samoa Estatubatuarra ساموآی امریکا Amerikan Samoa Samoa américaines Samoa américaines Samó Mheiriceá Samotha na h-Aimeireaga Samoa Americana סמואה האמריקנית Američka Samoa Amerikai Szamoa Samoa american Samoa Amerika Bandaríska Samóa Samoa americane 米領サモア 아메리칸 사모아 American Samoa Америкалык Самоа Amerikos Samoa ASV Samoa അമേരിക്കൻ സമോവ Америкийн Самоа Amerikansk Samoa Amerikaans-Samoa Amerikansk Samoa American Samoa Samoa Amerykańskie Samoa Americana Samoa Americana Samoa Americană Американское Самоа Americká Samoa Ameriška Samoa Samoa Amerikane Америчка Самоа Amerikanska Samoa Samoa ya Marekani อเมริกันซามัว Amerikan Samoası Америка Самоасы Американське Самоа Amerika Samoasi Samoa thuộc Mỹ 美属萨摩亚 美屬薩摩亞
14 AT النمسا Аўстрыя Австрия Aostria Austrija Àustria Rakousko Østrig Österreich Αυστρία Austria Aŭstrujo Austria Austria Austria اتریش Itävalta Autriche Autriche an Ostair An Ostair Austria אוסטריה Austrija Ausztria Austria Austria Austurríki Austria オーストリア 오스트리아 Austria Австрия Austrija Austrija ഓസ്ട്രിയ Австри Østerrike Oostenrijk Austerrike Austria Austria Áustria Áustria Austria Австрия Rakúsko Avstrija Austri Аустрија Österrike Austria ออสเตรีย Avusturya Австрия Австрія Avstriya Áo 奥地利 奧地利
15 AU أستراليا Аўстралія Австралия Aostralia Australija Austràlia Austrálie Australien Australien Αυστραλία Australia Aŭstralio Australia Austraalia Australia استرالیا Australia Australie Australie an Astráil Astràilia Australia אוסטרליה Australija Ausztrália Australia Australia Ástralía Australia オーストラリア 오스트레일리아 Australia Австралия Australija Austrālija ഓസ്‌ട്രേലിയ Австрали Australia Australië Australia Australia Australia Austrália Austrália Australia Австралия Austrália Avstralija Australi Аустралија Australien Australia ออสเตรเลีย Avustralya Австралия Австралія Avstraliya Australia 澳大利亚 澳洲
16 AW أروبا Аруба Аруба Aruba Aruba Aruba Aruba Aruba Aruba Αρούμπα Aruba Arubo Aruba Aruba Aruba آروبا Aruba Aruba Aruba Arúba Arùba Aruba ארובה Aruba Aruba Aruba Aruba Arúba Aruba アルバ 아루바 Aruba Аруба Aruba Aruba അറൂബ Аруба Aruba Aruba Aruba Aruba Aruba Aruba Aruba Aruba Аруба Aruba Aruba Arubë Аруба Aruba Aruba อารูบา Aruba Аруба Аруба Aruba Aruba 阿鲁巴 荷屬阿魯巴
17 AX جزر آلاند Аландскія астравы Оландски острови Inizi Åland Olandska ostrva Illes Åland Ålandy Åland Ålandinseln Νήσοι Όλαντ Åland Islands Åland Islands Islas Åland Ahvenamaa Åland جزایر آلاند Ahvenanmaa Îles Åland Îles Åland Oileáin Åland Na h-Eileanan Åland Illas Åland איי אולנד Ålandski otoci Åland-szigetek Insulas Åland Kepulauan Aland Álandseyjar Isole Åland オーランド諸島 올란드 제도 Åland Islands Аланд аралдары Alandų Salos Olandes salas അലൻഡ് ദ്വീപുകൾ Аландын арлууд Åland Åland Åland Åland Islands Wyspy Alandzkie Ilhas Aland Ilhas Aland Insulele Åland Аландские о-ва Alandy Ålandski otoki Ishujt Alandë Оландска Острва Åland Visiwa vya Aland หมู่เกาะโอลันด์ Åland Adaları Аланд утраулары Аландські Острови Aland orollari Quần đảo Åland 奥兰群岛 奧蘭群島
18 AZ أذربيجان Азербайджан Азербайджан Azerbaidjan Azerbejdžan Azerbaidjan Ázerbájdžán Aserbajdsjan Aserbaidschan Αζερμπαϊτζάν Azerbaijan Azerbajĝano Azerbaiyán Aserbaidžaan Azerbaijan جمهوری آذربایجان Azerbaidžan Azerbaïdjan Azerbaïdjan an Asarbaiseáin Asarbaideàn Acerbaixán אזרבייג׳ן Azerbajdžan Azerbajdzsán Azerbaidzhan Azerbaijan Aserbaídsjan Azerbaigian アゼルバイジャン 아제르바이잔 Azerbaijan Азербайжан Azerbaidžanas Azerbaidžāna അസർബൈജാൻ Азербайжан Aserbajdsjan Azerbeidzjan Aserbajdsjan Azerbaijan Azerbejdżan Azerbaijão Azerbaijão Azerbaidjan Азербайджан Azerbajdžan Azerbajdžan Azerbajxhan Азербејџан Azerbajdzjan Azerbaijani อาเซอร์ไบจาน Azerbaycan Әзәрбайҗан Азербайджан Ozarbayjon Azerbaijan 阿塞拜疆 亞塞拜然
19 BA البوسنة والهرسك Боснія і Герцагавіна Босна и Херцеговина Bosnia ha Herzegovina Bosna i Hercegovina Bòsnia i Hercegovina Bosna a Hercegovina Bosnien-Hercegovina Bosnien und Herzegowina Βοσνία - Ερζεγοβίνη Bosnia & Herzegovina Bosnio-Hercegovino Bosnia y Herzegovina Bosnia ja Hertsegoviina Bosnia-Herzegovina بوسنی و هرزگوین Bosnia ja Hertsegovina Bosnie-Herzégovine Bosnie-Herzégovine an Bhoisnia agus an Heirseagaivéin Bosna is Hearsagobhana Bosnia e Hercegovina בוסניה והרצגובינה Bosna i Hercegovina Bosznia-Hercegovina Bosnia e Herzegovina Bosnia dan Herzegovina Bosnía og Hersegóvína Bosnia ed Erzegovina ボスニア・ヘルツェゴビナ 보스니아 헤르체고비나 Bosnia & Herzegovina Босния жана Герцеговина Bosnija ir Hercegovina Bosnija un Hercegovina ബോസ്നിയയും ഹെർസഗോവിനയും Босни-Герцеговин Bosnia-Hercegovina Bosnië en Herzegovina Bosnia-Hercegovina Bosnia & Herzegovina Bośnia i Hercegowina Bósnia e Herzegovina Bósnia e Herzegovina Bosnia și Herțegovina Босния и Герцеговина Bosna a Hercegovina Bosna in Hercegovina Bosnjë-Hercegovinë Босна и Херцеговина Bosnien och Hercegovina Bosnia na Hezegovina บอสเนียและเฮอร์เซโกวีนา Bosna-Hersek Босния һәм Герцеговина Боснія і Герцеґовина Bosniya va Gertsegovina Bosnia và Herzegovina 波斯尼亚和黑塞哥维那 波士尼亞與赫塞哥維納
20 BB بربادوس Барбадас Барбадос Barbados Barbados Barbados Barbados Barbados Barbados Μπαρμπέιντος Barbados Barbado Barbados Barbados Barbados باربادوس Barbados Barbade Barbade Barbadós Barbados Barbados ברבדוס Barbados Barbados Barbados Barbados Barbados Barbados バルバドス 바베이도스 Barbados Барбадос Barbadosas Barbadosa ബാർബഡോസ് Барбадос Barbados Barbados Barbados Barbados Barbados Barbados Barbados Barbados Барбадос Barbados Barbados Barbados Барбадос Barbados Babadosi บาร์เบโดส Barbados Барбадос Барбадос Barbados Barbados 巴巴多斯 巴貝多
21 BD بنغلاديش Бангладэш Бангладеш Bangladesh Bangladeš Bangladesh Bangladéš Bangladesh Bangladesch Μπανγκλαντές Bangladesh Bangladeŝo Bangladés Bangladesh Bangladesh بنگلادش Bangladesh Bangladesh Bangladesh an Bhanglaidéis Bangladais Bangladesh בנגלדש Bangladeš Banglades Bangladesh Bangladesh Bangladess Bangladesh バングラデシュ 방글라데시 Bangladesh Бангладеш Bangladešas Bangladeša ബംഗ്ലാദേശ് Бангладеш Bangladesh Bangladesh Bangladesh Bangladesh Bangladesz Bangladesh Bangladesh Bangladesh Бангладеш Bangladéš Bangladeš Bangladesh Бангладеш Bangladesh Bangladeshi บังกลาเทศ Bangladeş Бангладеш Бангладеш Bangladesh Bangladesh 孟加拉国 孟加拉
22 BE بلجيكا Бельгія Белгия Belgia Belgija Bèlgica Belgie Belgien Belgien Βέλγιο Belgium Belgujo Bélgica Belgia Belgika بلژیک Belgia Belgique Belgique an Bheilg A’ Bheilg Bélxica בלגיה Belgija Belgium Belgica Belgia Belgía Belgio ベルギー 벨기에 Belgium Бельгия Belgija Beļģija ബെൽജിയം Бельги Belgia België Belgia Belgium Belgia Bélgica Bélgica Belgia Бельгия Belgicko Belgija Belgjikë Белгија Belgien Ubelgiji เบลเยียม Belçika Бельгия Бельґія Belgiya Bỉ 比利时 比利時
23 BF بوركينا فاسو Буркіна-Фасо Буркина Фасо Burkina Faso Burkina Faso Burkina Faso Burkina Faso Burkina Faso Burkina Faso Μπουρκίνα Φάσο Burkina Faso Burkino Burkina Faso Burkina Faso Burkina Faso بورکینافاسو Burkina Faso Burkina Faso Burkina Faso Buircíne Fasó Buirciona Faso Burkina Faso בורקינה פאסו Burkina Faso Burkina Faso Burkina Faso Burkina Faso Búrkína Fasó Burkina Faso ブルキナファソ 부르키나파소 Burkina Faso Буркина-Фасо Burkina Fasas Burkinafaso ബർക്കിന ഫാസോ Буркина Фасо Burkina Faso Burkina Faso Burkina Faso Burkina Faso Burkina Faso Burquina Faso Burquina Faso Burkina Faso Буркина-Фасо Burkina Faso Burkina Faso Burkina-Faso Буркина Фасо Burkina Faso Bukinafaso บูร์กินาฟาโซ Burkina Faso Буркина-Фасо Буркіна-Фасо Burkina-Faso Burkina Faso 布基纳法索 布吉納法索
24 BG بلغاريا Балгарыя България Bulgaria Bugarska Bulgària Bulharsko Bulgarien Bulgarien Βουλγαρία Bulgaria Bulgarujo Bulgaria Bulgaaria Bulgaria بلغارستان Bulgaria Bulgarie Bulgarie an Bhulgáir A’ Bhulgair Bulgaria בולגריה Bugarska Bulgária Bulgaria Bulgaria Búlgaría Bulgaria ブルガリア 불가리아 Bulgaria Болгария Bulgarija Bulgārija ബൾഗേറിയ Болгар Bulgaria Bulgarije Bulgaria Bulgaria Bułgaria Bulgária Bulgária Bulgaria Болгария Bulharsko Bolgarija Bullgari Бугарска Bulgarien Bulgaria บัลแกเรีย Bulgaristan Болгария Болгарія Bolgariya Bulgaria 保加利亚 保加利亞
25 BH البحرين Бахрэйн Бахрейн Bahrein Bahrein Bahrain Bahrajn Bahrain Bahrain Μπαχρέιν Bahrain Barejno Baréin Bahrein Bahrain بحرین Bahrain Bahreïn Bahreïn Bairéin Bachrain Bahrain בחריין Bahrein Bahrein Bahrain Bahrain Barein Bahrein バーレーン 바레인 Bahrain Бахрейн Bahreinas Bahreina ബഹ്റിൻ Бахрейн Bahrain Bahrein Bahrain Bahrain Bahrajn Bahrein Bahrein Bahrain Бахрейн Bahrajn Bahrajn Bahrejn Бахреин Bahrain Bahareni บาห์เรน Bahreyn Бәхрәйн Бахрейн Bahrayn Bahrain 巴林 巴林
26 BI بوروندي Бурундзі Бурунди Burundi Burundi Burundi Burundi Burundi Burundi Μπουρούντι Burundi Burundo Burundi Burundi Burundi بوروندی Burundi Burundi Burundi an Bhurúin Burundaidh Burundi בורונדי Burundi Burundi Burundi Burundi Búrúndí Burundi ブルンジ 부룬디 Burundi Бурунди Burundis Burundija ബറുണ്ടി Бурунди Burundi Burundi Burundi Burundi Burundi Burundi Burundi Burundi Бурунди Burundi Burundi Burundi Бурунди Burundi Burundi บุรุนดี Burundi Бурунди Бурунді Burundi Burundi 布隆迪 蒲隆地
27 BJ بنين Бенін Бенин Benin Benin Benín Benin Benin Benin Μπενίν Benin Benino Benín Benin Benin بنین Benin Bénin Bénin Beinin Beinin Benín בנין Benin Benin Benin Benin Benín Benin ベナン 베냉 Benin Бенин Beninas Benina ബെനിൻ Бенин Benin Benin Benin Benin Benin Benin Benin Benin Бенин Benin Benin Benin Бенин Benin Benin เบนิน Benin Бенин Бенін Benin Benin 贝宁 貝南
28 BL سان بارتليمي Сен-Бартэльмі Сен Бартелеми Saint Barthélemy Sveti Bartolomej Saint Barthélemy Svatý Bartoloměj Saint Barthélemy St. Barthélemy Άγιος Βαρθολομαίος St. Barthélemy St. Barthélemy San Bartolomé Saint-Barthélemy Saint Barthélemy سن بارتلمی Saint-Barthélemy Saint-Barthélemy Saint-Barthélemy Saint Barthélemy Saint Barthélemy Saint Barthélemy סנט ברתולומיאו Saint Barthélemy Saint-Barthélemy St. Barthélemy Saint Barthélemy Sankti Bartólómeusareyjar Saint-Barthélemy サン・バルテルミー 생바르텔레미 St. Barthélemy Сент Бартелеми Sen Bartelemi Senbartelmī സെന്റ് ബാർത്തലമി Сент-Бартельми Saint-Barthélemy Saint-Barthélemy Saint Barthélemy St. Barthélemy Saint-Barthélemy São Bartolomeu São Bartolomeu Saint-Barthélemy Сен-Бартелеми Svätý Bartolomej Saint Barthélemy Sen-Bartelemi Свети Бартоломеј S:t Barthélemy St. Barthelemy เซนต์บาร์เธเลมี Saint Barthelemy Сен-Бартельми Сен-Бартельмі Sen-Bartelemi St. Barthélemy 圣巴泰勒米 聖巴瑟米
29 BM برمودا Бермудскія астравы Бермудски острови Bermuda Bermuda Bermudes Bermudy Bermuda Bermuda Βερμούδες Bermuda Bermudoj Bermudas Bermuda Bermuda برمودا Bermuda Bermudes Bermudes Beirmiúda Bearmùda Illas Bermudas ברמודה Bermudi Bermuda Bermuda Bermuda Bermúdaeyjar Bermuda バミューダ 버뮤다 Bermuda Бермуд аралдары Bermuda Bermudu salas ബർമുഡ Бермуда Bermuda Bermuda Bermuda Bermuda Bermudy Bermudas Bermudas Bermuda Бермудские о-ва Bermudy Bermudi Bermude Бермуда Bermuda Bermuda เบอร์มิวดา Bermuda Бермуд утраулары Бермудські Острови Bermuda orollari Bermuda 百慕大 百慕達
30 BN بروناي Бруней Бруней Даруссалам Brunei Brunej Brunei Brunej Brunei Brunei Darussalam Μπρουνέι Brunei Brunejo Brunéi Brunei Brunei برونئی Brunei Brunéi Darussalam Brunéi Darussalam Brúiné Brùnaigh Brunei ברוניי Brunej Brunei Brunei Brunei Brúnei Brunei ブルネイ 브루나이 Brunei Бруней Brunėjus Bruneja ബ്രൂണൈ Бруней Brunei Brunei Brunei Brunei Brunei Brunei Brunei Brunei Бруней-Даруссалам Brunej Brunej Brunei Брунеј Brunei Brunei บรูไน Brunei Бруней Бруней Bruney Brunei 文莱 汶萊
31 BO بوليفيا Балівія Боливия Bolivia Bolivija Bolívia Bolívie Bolivia Bolivien Βολιβία Bolivia Bolivio Bolivia Boliivia Bolivia بولیوی Bolivia Bolivie Bolivie an Bholaiv Boilibhia Bolivia בוליביה Bolivija Bolívia Bolivia Bolivia Bólivía Bolivia ボリビア 볼리비아 Bolivia Боливия Bolivija Bolīvija ബൊളീവിയ Боливи Bolivia Bolivia Bolivia Bolivia Boliwia Bolívia Bolívia Bolivia Боливия Bolívia Bolivija Bolivi Боливија Bolivia Bolivia โบลิเวีย Bolivya Боливия Болівія Boliviya Bolivia 玻利维亚 玻利維亞
32 BQ هولندا الكاريبية Карыбскія Нідэрланды Карибска Нидерландия Karib Nederlandat Karipska Holandija Carib Neerlandès Karibské Nizozemsko De tidligere Nederlandske Antiller Bonaire, Sint Eustatius und Saba Ολλανδία Καραϊβικής Caribbean Netherlands Caribbean Netherlands Caribe neerlandés Hollandi Kariibi mere saared Karibeko Herbehereak جزایر کارائیب هلند Karibian Alankomaat Pays-Bas caribéens Pays-Bas caribéens an Ísiltír Chairibeach Na Tìrean Ìsle Caraibeach Caribe Neerlandés האיים הקריביים ההולנדיים Karipski otoci Nizozemske Holland Karib-térség Caribbean Netherlands Belanda Karibia Karíbahafshluti Hollands Caraibi olandesi オランダ領カリブ 네덜란드령 카리브 Caribbean Netherlands Кариб Нидерланддары Karibų Nyderlandai Nīderlandes Karību salas കരീബിയൻ നെതർലാൻഡ്സ് Карибын Нидерланд Karibisk Nederland Caribisch Nederland Karibisk Nederland Caribbean Netherlands Niderlandy Karaibskie Países Baixos Caribenhos Países Baixos Caribenhos Insulele Caraibe Olandeze Бонэйр, Синт-Эстатиус и Саба Karibské Holandsko Nizozemski Karibi Karaibet holandeze Карипска Холандија Karibiska Nederländerna Uholanzi ya Karibiani เนเธอร์แลนด์แคริบเบียน Karayip Hollandası Caribbean Netherlands Нідерландські Карибські острови Boneyr, Sint-Estatius va Saba Ca-ri-bê Hà Lan 荷属加勒比区 荷蘭加勒比區
33 BR البرازيل Бразілія Бразилия Brazil Brazil Brasil Brazílie Brasilien Brasilien Βραζιλία Brazil Brazilo Brasil Brasiilia Brasil برزیل Brasilia Brésil Brésil an Bhrasaíl Braisil O Brasil ברזיל Brazil Brazília Brasil Brasil Brasilía Brasile ブラジル 브라질 Brasil Бразилия Brazilija Brazīlija ബ്രസീൽ Бразил Brasil Brazilië Brasil Бразили Brazylia Brasil Brasil Brazilia Бразилия Brazília Brazilija Brazil Бразил Brasilien Brazil บราซิล Brezilya Бразилия Бразілія Braziliya Brazil 巴西 巴西
34 BS جزر البهاما Багамскія астравы Бахамски острови Bahamas Bahami Bahames Bahamy Bahamas Bahamas Μπαχάμες Bahamas Bahamoj Bahamas Bahama Bahamak باهاما Bahama Bahamas Bahamas na Bahámaí Na h-Eileanan Bhathama Bahamas איי בהאמה Bahami Bahama-szigetek Bahamas Bahama Bahamaeyjar Bahamas バハマ 바하마 Bahamas Багама аралдары Bahamos Bahamu salas ബഹാമാസ് Багамын арлууд Bahamas Bahama’s Bahamas Bahamas Bahamy Bahamas Bahamas Bahamas Багамы Bahamy Bahami Bahama Бахами Bahamas Bahama บาฮามาส Bahamalar Багам утраулары Багамські Острови Bagama orollari Bahamas 巴哈马 巴哈馬
35 BT بوتان Бутан Бутан Bhoutan Butan Bhutan Bhútán Bhutan Bhutan Μπουτάν Bhutan Butano Bután Bhutan Bhutan بوتان Bhutan Bhoutan Bhoutan an Bhútáin Butàn Bután בהוטן Butan Bhután Bhutan Bhutan Bútan Bhutan ブータン 부탄 Bhutan Бутан Butanas Butāna ഭൂട്ടാൻ Бутан Bhutan Bhutan Bhutan Bhutan Bhutan Butão Butão Bhutan Бутан Bhután Butan Butan Бутан Bhutan Bhutan ภูฏาน Butan Бутан Бутан Butan Bhutan 不丹 不丹
36 BV جزيرة بوفيه Востраў Бувэ остров Буве Enez Bouvet Ostrvo Buve Bouvet Bouvetův ostrov Bouvetøen Bouvetinsel Νήσος Μπουβέ Bouvet Island Bouvet Island Isla Bouvet Bouvet’ saar Bouvet uhartea جزیرهٔ بووه Bouvet’nsaari Île Bouvet Île Bouvet Oileán Bouvet Eilean Bouvet Illa Bouvet האי בובה Otok Bouvet Bouvet-sziget Insula de Bouvet Pulau Bouvet Bouveteyja Isola Bouvet ブーベ島 부베섬 Bouvet Island Буве аралы Buvė Sala Buvē sala ബൗവെട്ട് ദ്വീപ് Буве арал Bouvetøya Bouveteiland Bouvetøya Bouvet Island Wyspa Bouveta Ilha Bouvet Ilha Bouvet Insula Bouvet о-в Буве Bouvetov ostrov Bouvetov otok Ishulli Bove Острво Буве Bouvetön Kisiwa cha Bouvet เกาะบูเว Bouvet Adası Буве утравы Острів Буве Buve oroli Đảo Bouvet 布韦岛 布威島
37 BW بوتسوانا Батсвана Ботсвана Botswana Bocvana Botswana Botswana Botswana Botsuana Μποτσουάνα Botswana Bocvano Botsuana Botswana Botswana بوتسوانا Botswana Botswana Botswana an Bhotsuáin Botsuana Botswana בוצוואנה Bocvana Botswana Botswana Botswana Botsvana Botswana ボツワナ 보츠와나 Botswana Ботсвана Botsvana Botsvāna ബോട്സ്വാന Ботсван Botswana Botswana Botswana Botswana Botswana Botsuana Botsuana Botswana Ботсвана Botswana Bocvana Botsvanë Боцвана Botswana Botswana บอตสวานา Botsvana Ботсвана Ботсвана Botsvana Botswana 博茨瓦纳 波札那
38 BY بيلاروس Беларусь Беларус Belarus Bjelorusija Belarús Bělorusko Hviderusland Belarus Λευκορωσία Belarus Belorusujo Bielorrusia Valgevene Bielorrusia بلاروس Valko-Venäjä Biélorussie Biélorussie an Bhealarúis A’ Bhealaruis Belarús בלארוס Bjelorusija Belarusz Bielorussia Belarus Hvíta-Rússland Bielorussia ベラルーシ 벨라루스 Belarus Беларусь Baltarusija Baltkrievija ബെലറൂസ് Беларусь Hviterussland Belarus Kviterussland Belarus Białoruś Bielorrússia Bielorrússia Belarus Беларусь Bielorusko Belorusija Bjellorusi Белорусија Vitryssland Belarus เบลารุส Belarus Беларусь Білорусь Belarus Belarus 白俄罗斯 白俄羅斯
39 BZ بليز Беліз Белиз Belize Belize Belize Belize Belize Belize Μπελίζ Belize Belizo Belice Belize Belize بلیز Belize Belize Belize an Bheilís A’ Bheilìs Belize בליז Belize Belize Belize Belize Belís Belize ベリーズ 벨리즈 Belize Белиз Belizas Beliza ബെലീസ് Белизе Belize Belize Belize Belize Belize Belize Belize Belize Белиз Belize Belize Belizë Белизе Belize Belize เบลีซ Belize Белиз Беліз Beliz Belize 伯利兹 貝里斯
40 CA كندا Канада Канада Kanada Kanada Canadà Kanada Canada Kanada Καναδάς Canada Kanado Canadá Kanada Kanada کانادا Kanada Canada Canada Ceanada Canada O Canadá קנדה Kanada Kanada Canada Kanada Kanada Canada カナダ 캐나다 Canada Канада Kanada Kanāda കാനഡ Канад Canada Canada Canada Canada Kanada Canadá Canadá Canada Канада Kanada Kanada Kanada Канада Kanada Kanada แคนาดา Kanada Канада Канада Kanada Canada 加拿大 加拿大
41 CC جزر كوكوس (كيلينغ) Какосавыя (Кілінг) астравы Кокосови острови (острови Кийлинг) Inizi Kokoz Kokosova (Keelingova) ostrva Illes Cocos Kokosové ostrovy Cocosøerne Kokosinseln Νήσοι Κόκος (Κίλινγκ) Cocos (Keeling) Islands Cocos (Keeling) Islands Islas Cocos Kookossaared Cocos (Keeling) uharteak جزایر کوکوس Kookossaaret (Keelingsaaret) Îles Cocos Îles Cocos Oileáin Cocos (Keeling) Na h-Eileanan Chocos (Keeling) Illas Cocos (Keeling) איי קוקוס (קילינג) Kokosovi (Keelingovi) otoci Kókusz (Keeling)-szigetek Cocos (Keeling) Islands Kepulauan Cocos (Keeling) Kókoseyjar (Keeling) Isole Cocos (Keeling) ココス(キーリング)諸島 코코스 제도 Cocos (Keeling) Islands Кокос (Килинг) аралдары Kokosų (Kilingo) Salos Kokosu (Kīlinga) salas കോക്കസ് (കീലിംഗ്) ദ്വീപുകൾ Кокос (Кийлинг) арлууд Kokosøyene Cocoseilanden Kokosøyane Cocos (Keeling) Islands Wyspy Kokosowe Ilhas Cocos (Keeling) Ilhas Cocos (Keeling) Insulele Cocos (Keeling) Кокосовые о-ва Kokosové ostrovy Kokosovi otoki Ishujt Kokos Кокосова (Килингова) Острва Kokosöarna Visiwa vya Cocos (Keeling) หมู่เกาะโคโคส (คีลิง) Cocos (Keeling) Adaları Кокос (Килинг) утраулары Кокосові (Кілінґ) Острови Kokos (Kiling) orollari Quần đảo Cocos (Keeling) 科科斯(基林)群岛 科克斯(基靈)群島
42 CD الكونغو - كينشاسا Конга (Кіншаса) Конго (Киншаса) Kongo - Kinshasa Demokratska Republika Kongo Congo - Kinshasa Kongo – Kinshasa Congo-Kinshasa Kongo-Kinshasa Κονγκό - Κινσάσα Congo - Kinshasa Congo - Kinshasa República Democrática del Congo Kongo DV Kongoko Errepublika Demokratikoa کنگو - کینشاسا Kongon demokraattinen tasavalta Congo-Kinshasa Congo-Kinshasa Poblacht Dhaonlathach an Chongó Congo - Kinshasa República Democrática do Congo קונגו - קינשאסה Kongo - Kinshasa Kongó - Kinshasa Congo - Kinshasa Kongo - Kinshasa Kongó-Kinshasa Congo - Kinshasa コンゴ民主共和国(キンシャサ) 콩고-킨샤사 Congo - Kinshasa Конго-Киншаса Kongas-Kinšasa Kongo (Kinšasa) കോംഗോ - കിൻഷാസ Конго-Киншаса Kongo-Kinshasa Congo-Kinshasa Kongo-Kinshasa Congo - Kinshasa Demokratyczna Republika Konga Congo - Kinshasa Congo - Kinshasa Congo - Kinshasa Конго - Киншаса Konžská demokratická republika Demokratična republika Kongo Kongo-Kinshasa Конго - Киншаса Kongo-Kinshasa Jamhuri ya Kidemokrasia ya Kongo คองโก - กินชาซา Kongo - Kinşasa Congo - Kinshasa Конго – Кіншаса Kongo – Kinshasa Congo - Kinshasa 刚果(金) 剛果(金夏沙)
43 CF جمهورية أفريقيا الوسطى Цэнтральна-Афрыканская Рэспубліка Централноафриканска република Republik Kreizafrikan Centralnoafrička Republika República Centreafricana Středoafrická republika Den Centralafrikanske Republik Zentralafrikanische Republik Κεντροαφρικανική Δημοκρατία Central African Republic Centr-Afrika Respubliko República Centroafricana Kesk-Aafrika Vabariik Afrika Erdiko Errepublika جمهوری افریقای مرکزی Keski-Afrikan tasavalta République centrafricaine République centrafricaine Poblacht na hAfraice Láir Poblachd Meadhan Afraga República Centroafricana הרפובליקה המרכז-אפריקאית Srednjoafrička Republika Közép-afrikai Köztársaság Republica African Central Republik Afrika Tengah Mið-Afríkulýðveldið Repubblica Centrafricana 中央アフリカ共和国 중앙 아프리카 공화국 Central African Republic Борбордук Африка Республикасы Centrinės Afrikos Respublika Centrālāfrikas Republika സെൻട്രൽ ആഫ്രിക്കൻ റിപ്പബ്ലിക്ക് Төв Африкийн Бүгд Найрамдах Улс Den sentralafrikanske republikk Centraal-Afrikaanse Republiek Den sentralafrikanske republikken Central African Republic Republika Środkowoafrykańska República Centro-Africana República Centro-Africana Republica Centrafricană Центрально-Африканская Республика Stredoafrická republika Centralnoafriška republika Republika e Afrikës Qendrore Централноафричка Република Centralafrikanska republiken Jamhuri ya Afrika ya Kati สาธารณรัฐแอฟริกากลาง Orta Afrika Cumhuriyeti Үзәк Африка Республикасы Центральноафриканська Республіка Markaziy Afrika Respublikasi Cộng hòa Trung Phi 中非共和国 中非共和國
44 CG الكونغو - برازافيل Конга - Бразавіль Конго (Бразавил) Kongo - Brazzaville Kongo Congo - Brazzaville Kongo – Brazzaville Congo-Brazzaville Kongo-Brazzaville Κονγκό - Μπραζαβίλ Congo - Brazzaville Kongolo Congo Kongo Vabariik Kongo کنگو - برازویل Kongon tasavalta Congo-Brazzaville Congo-Brazzaville an Congó A’ Chongo - Brazzaville República do Congo קונגו - ברזאויל Kongo - Brazzaville Kongó - Brazzaville Congo Kongo - Brazzaville Kongó-Brazzaville Congo-Brazzaville コンゴ共和国(ブラザビル) 콩고-브라자빌 Congo - Brazzaville Конго-Браззавил Kongas-Brazavilis Kongo (Brazavila) കോംഗോ - ബ്രാസവില്ലി Конго-Браззавиль Kongo-Brazzaville Congo-Brazzaville Kongo-Brazzaville Congo - Brazzaville Kongo República do Congo República do Congo Congo - Brazzaville Конго - Браззавиль Konžská republika Kongo - Brazzaville Kongo-Brazavilë Конго - Бразавил Kongo-Brazzaville Kongo - Brazzaville คองโก - บราซซาวิล Kongo - Brazavil Congo - Brazzaville Конго – Браззавіль Kongo – Brazzavil Congo - Brazzaville 刚果(布) 剛果(布拉薩)
45 CH سويسرا Швейцарыя Швейцария Suis Švicarska Suïssa Švýcarsko Schweiz Schweiz Ελβετία Switzerland Svisujo Suiza Šveits Suitza سوئیس Sveitsi Suisse Suisse an Eilvéis An Eilbheis Suíza שווייץ Švicarska Svájc Suissa Swiss Sviss Svizzera スイス 스위스 Switzerland Швейцария Šveicarija Šveice സ്വിറ്റ്സർലാൻഡ് Швейцарь Sveits Zwitserland Sveits Switzerland Szwajcaria Suíça Suíça Elveția Швейцария Švajčiarsko Švica Zvicër Швајцарска Schweiz Uswisi สวิตเซอร์แลนด์ İsviçre Швейцария Швейцарія Shveytsariya Thụy Sĩ 瑞士 瑞士
46 CI ساحل العاج Кот-д’Івуар Кот д’Ивоар Aod an Olifant Obala Slonovače Côte d’Ivoire Pobřeží slonoviny Elfenbenskysten Côte d’Ivoire Ακτή Ελεφαντοστού Côte d’Ivoire Ebur-Bordo Côte d’Ivoire Côte d’Ivoire Boli Kosta ساحل عاج Norsunluurannikko Côte d’Ivoire Côte d’Ivoire an Cósta Eabhair Côte d’Ivoire Côte d’Ivoire חוף השנהב Obala Bjelokosti Elefántcsontpart Côte d’Ivoire Côte d’Ivoire Fílabeinsströndin Costa d’Avorio コートジボワール 코트디부아르 Côte d’Ivoire Кот-д’Ивуар Dramblio Kaulo Krantas Kotdivuāra കോട്ട് ഡി വാർ Кот-д’Ивуар Elfenbenskysten Ivoorkust Elfenbeinskysten Côte d’Ivoire Côte d’Ivoire Costa do Marfim Costa do Marfim Côte d’Ivoire Кот-д’Ивуар Pobrežie Slonoviny Slonokoščena obala Côte d’Ivoire Обала Слоноваче (Кот д’Ивоар) Côte d’Ivoire Cote d’Ivoire โกตดิวัวร์ Côte d’Ivoire Кот-д’Ивуар Кот-дʼІвуар Kot-d’Ivuar Côte d’Ivoire 科特迪瓦 象牙海岸
47 CK جزر كوك Астравы Кука острови Кук Inizi Cook Kukova ostrva Illes Cook Cookovy ostrovy Cookøerne Cookinseln Νήσοι Κουκ Cook Islands Kukinsuloj Islas Cook Cooki saared Cook uharteak جزایر کوک Cookinsaaret Îles Cook Îles Cook Oileáin Cook Eileanan Cook Illas Cook איי קוק Cookovi Otoci Cook-szigetek Insulas Cook Kepulauan Cook Cooks-eyjar Isole Cook クック諸島 쿡 제도 Cook Islands Кук аралдары Kuko Salos Kuka salas കുക്ക് ദ്വീപുകൾ Күүкийн арлууд Cookøyene Cookeilanden Cookøyane Cook Islands Wyspy Cooka Ilhas Cook Ilhas Cook Insulele Cook Острова Кука Cookove ostrovy Cookovi otoki Ishujt Kuk Кукова Острва Cooköarna Visiwa vya Cook หมู่เกาะคุก Cook Adaları Кук утраулары Острови Кука Kuk orollari Quần đảo Cook 库克群岛 庫克群島
48 CL تشيلي Чылі Чили Chile Čile Xile Chile Chile Chile Χιλή Chile Ĉilio Chile Tšiili Txile شیلی Chile Chili Chili an tSile An t-Sile Chile צ׳ילה Čile Chile Chile Cile Síle Cile チリ 칠레 Chile Чили Čilė Čīle ചിലി Чили Chile Chili Chile Chile Chile Chile Chile Chile Чили Čile Čile Kili Чиле Chile Chile ชิลี Şili Чили Чілі Chili Chile 智利 智利
49 CM الكاميرون Камерун Камерун Kameroun Kamerun Camerun Kamerun Cameroun Kamerun Καμερούν Cameroon Kameruno Camerún Kamerun Kamerun کامرون Kamerun Cameroun Cameroun Camarún Camarun Camerún קמרון Kamerun Kamerun Camerun Kamerun Kamerún Camerun カメルーン 카메룬 Cameroon Камерун Kamerūnas Kamerūna കാമറൂൺ Камерун Kamerun Kameroen Kamerun Cameroon Kamerun Camarões Camarões Camerun Камерун Kamerun Kamerun Kamerun Камерун Kamerun Kameruni แคเมอรูน Kamerun Камерун Камерун Kamerun Cameroon 喀麦隆 喀麥隆
50 CN الصين Кітай Китай Sina Kina Xina Čína Kina China Κίνα China Ĉinujo China Hiina Txina چین Kiina Chine Chine an tSín An t-Sìn A China סין Kina Kína China Tiongkok Kína Cina 中国 중국 China Кытай Kinija Ķīna ചൈന Хятад Kina China Kina Китай Chiny China China China Китай Čína Kitajska Kinë Кина Kina Uchina จีน Çin Кытай Китай Xitoy Trung Quốc 中国 中國
51 CO كولومبيا Калумбія Колумбия Kolombia Kolumbija Colòmbia Kolumbie Colombia Kolumbien Κολομβία Colombia Kolombio Colombia Colombia Kolonbia کلمبیا Kolumbia Colombie Colombie an Cholóim Coloimbia Colombia קולומביה Kolumbija Kolumbia Colombia Kolombia Kólumbía Colombia コロンビア 콜롬비아 Colombia Колумбия Kolumbija Kolumbija കൊളംബിയ Колумби Colombia Colombia Colombia Colombia Kolumbia Colômbia Colômbia Columbia Колумбия Kolumbia Kolumbija Kolumbi Колумбија Colombia Kolombia โคลอมเบีย Kolombiya Колумбия Колумбія Kolumbiya Colombia 哥伦比亚 哥倫比亞
52 CP جزيرة كليبيرتون Востраў Кліпертан остров Клипертон Enez Clipperton Ostrvo Kliperton Illa Clipperton Clippertonův ostrov Clippertonøen Clipperton-Insel Νήσος Κλίπερτον Clipperton Island Clipperton Island Isla Clipperton Clippertoni saar Clipperton uhartea جزایر کلیپرتون Clippertoninsaari Île Clipperton Île Clipperton Oileán Clipperton Eilean Clipperton Illa Clipperton האי קליפרטון Otok Clipperton Clipperton-sziget Clipperton Island Pulau Clipperton Clipperton-eyja Isola di Clipperton クリッパートン島 클립퍼튼 섬 Clipperton Island Клиппертон аралы Klipertono sala Klipertona sala ക്ലിപ്പെർട്ടൻ ദ്വീപ് Клиппертон арал Clippertonøya Clipperton Clippertonøya Clipperton Island Wyspa Clippertona Ilha de Clipperton Ilha de Clipperton Insula Clipperton о-в Клиппертон Clipperton Otok Clipperton Ishulli Klipërton Острво Клипертон Clippertonön Kisiwa cha Clipperton เกาะคลิปเปอร์ตัน Clipperton Adası Clipperton Island Острів Кліппертон Klipperton oroli Đảo Clipperton 克利珀顿岛 克里派頓島
53 CR كوستاريكا Коста-Рыка Коста Рика Costa Rica Kostarika Costa Rica Kostarika Costa Rica Costa Rica Κόστα Ρίκα Costa Rica Kostariko Costa Rica Costa Rica Costa Rica کاستاریکا Costa Rica Costa Rica Costa Rica Cósta Ríce Costa Rìcea Costa Rica קוסטה ריקה Kostarika Costa Rica Costa Rica Kosta Rika Kostaríka Costa Rica コスタリカ 코스타리카 Costa Rica Коста-Рика Kosta Rika Kostarika കോസ്റ്ററിക്ക Коста-Рика Costa Rica Costa Rica Costa Rica Costa Rica Kostaryka Costa Rica Costa Rica Costa Rica Коста-Рика Kostarika Kostarika Kosta-Rikë Костарика Costa Rica Kostarika คอสตาริกา Kosta Rika Коста-Рика Коста-Ріка Kosta-Rika Costa Rica 哥斯达黎加 哥斯大黎加
54 CU كوبا Куба Куба Kuba Kuba Cuba Kuba Cuba Kuba Κούβα Cuba Kubo Cuba Kuuba Kuba کوبا Kuuba Cuba Cuba Cúba Cùba Cuba קובה Kuba Kuba Cuba Kuba Kúba Cuba キューバ 쿠바 Cuba Куба Kuba Kuba ക്യൂബ Куба Cuba Cuba Cuba Cuba Kuba Cuba Cuba Cuba Куба Kuba Kuba Kubë Куба Kuba Cuba คิวบา Küba Куба Куба Kuba Cuba 古巴 古巴
55 CV الرأس الأخضر Каба-Вердэ Кабо Верде Kab-Glas Kape Verde Cap Verd Kapverdy Kap Verde Cabo Verde Πράσινο Ακρωτήριο Cape Verde Kabo-Verdo Cabo Verde Roheneemesaared Cabo Verde کیپ‌ورد Kap Verde Cap-Vert Cap-Vert Rinn Verde An Ceap Uaine Cabo Verde כף ורדה Zelenortska Republika Zöld-foki Köztársaság Cape Verde Tanjung Verde Grænhöfðaeyjar Capo Verde カーボベルデ 카보베르데 Cape Verde Кабо-Верде Žaliasis Kyšulys Kaboverde കേപ്പ് വേർഡ് Кабо-Верде Kapp Verde Kaapverdië Kapp Verde Cape Verde Republika Zielonego Przylądka Cabo Verde Cabo Verde Capul Verde Кабо-Верде Kapverdy Zelenortski otoki Kepi i Gjelbër Зеленортска Острва Kap Verde Cape Verde เคปเวิร์ด Cape Verde Кабо-Верде Кабо-Верде Kabo-Verde Cape Verde 佛得角 維德角
56 CW كوراساو Кюрасаа Кюрасао Curaçao Kurasao Curaçao Curaçao Curaçao Curaçao Κουρασάο Curaçao Curaçao Curazao Curaçao Curaçao کوراسائو Curaçao Curaçao Curaçao Curaçao Curaçao Curaçao קוראסאו Curaçao Curaçao Curaçao Curaçao Curacao Curaçao キュラソー 퀴라소 Curaçao Кюрасао Kiurasao Kirasao കുറാകാവോ Кюрасао Curaçao Curaçao Curaçao Curaçao Curaçao Curaçao Curaçao Curaçao Кюрасао Curaçao Curaçao Kurasao Курасао Curaçao Curacao คูราเซา Curaçao Кюрасао Кюрасао Kyurasao Curaçao 库拉索 庫拉索
57 CX جزيرة كريسماس Востраў Каляд остров Рождество Enez Christmas Božićno ostrvo Illa Christmas Vánoční ostrov Juleøen Weihnachtsinsel Νήσος των Χριστουγέννων Christmas Island Christmas Island Isla de Navidad Jõulusaar Christmas uhartea جزیرهٔ کریسمس Joulusaari Île Christmas Île Christmas Oileán na Nollag Eilean na Nollaig Illa Christmas אי חג המולד Božićni otok Karácsony-sziget Insula de Natal Pulau Natal Jólaey Isola Christmas クリスマス島 크리스마스섬 Christmas Island Рождество аралы Kalėdų Sala Ziemsvētku sala ക്രിസ്മസ് ദ്വീപ് Зул сарын арал Christmasøya Christmaseiland Christmasøya Christmas Island Wyspa Bożego Narodzenia Ilha Christmas Ilha Christmas Insula Christmas о-в Рождества Vianočný ostrov Božični otok Ishulli i Krishtlindjes Божићно Острво Julön Kisiwa cha Krismasi เกาะคริสต์มาส Christmas Adası Раштуа утравы Острів Різдва Rojdestvo oroli Đảo Giáng Sinh 圣诞岛 聖誕島
58 CY قبرص Кіпр Кипър Kiprenez Kipar Xipre Kypr Cypern Zypern Κύπρος Cyprus Kipro Chipre Küpros Zipre قبرس Kypros Chypre Chypre an Chipir Cìopras Chipre קפריסין Cipar Ciprus Cypro Siprus Kýpur Cipro キプロス 키프로스 Cyprus Кипр Kipras Kipra സൈപ്രസ് Кипр Kypros Cyprus Kypros Cyprus Cypr Chipre Chipre Cipru Кипр Cyprus Ciper Qipro Кипар Cypern Cyprus ไซปรัส Kıbrıs Кипр Кіпр Kipr Síp 塞浦路斯 賽普勒斯
59 CZ التشيك Чэхія Чехия Tchekia Češka Txèquia Česko Tjekkiet Tschechien Τσεχία Czechia Ĉeĥujo Chequia Tšehhi Txekia چک Tšekki Tchéquie Tchéquie an tSeicia An t-Seic Chequia צ׳כיה Češka Csehország Chechia Ceko Tékkland Cechia チェコ 체코 Czechia Чехия Čekija Čehija ചെക്കിയ Чех Tsjekkia Tsjechië Tsjekkia Czechia Czechy Tchéquia Tchéquia Cehia Чехия Česko Češka Çeki Чешка Tjeckien Chechia เช็ก Çekya Чехия Республикасы Чехія Chexiya Séc 捷克 捷克
60 DE ألمانيا Германія Германия Alamagn Njemačka Alemanya Německo Tyskland Deutschland Γερμανία Germany Germanujo Alemania Saksamaa Alemania آلمان Saksa Allemagne Allemagne an Ghearmáin A’ Ghearmailt Alemaña גרמניה Njemačka Németország Germania Jerman Þýskaland Germania ドイツ 독일 Almayn Германия Vokietija Vācija ജർമ്മനി Герман Tyskland Duitsland Tyskland Герман Niemcy Alemanha Alemanha Germania Германия Nemecko Nemčija Gjermani Немачка Tyskland Ujerumani เยอรมนี Almanya Германия Німеччина Germaniya Đức 德国 德國
61 DG دييغو غارسيا Востраў Дыега-Гарсія Диего Гарсия Diego Garcia Dijego Garsija Diego Garcia Diego García Diego Garcia Diego Garcia Ντιέγκο Γκαρσία Diego Garcia Diego Garcia Diego García Diego Garcia Diego García دیه‌گو گارسیا Diego Garcia Diego Garcia Diego Garcia Diego Garcia Diego Garcia Diego García דייגו גרסיה Diego Garcia Diego Garcia Diego Garcia Diego Garcia Diego Garcia Diego Garcia ディエゴガルシア島 디에고 가르시아 Diego Garcia Диего Гарсия Diego Garsija Djego Garsijas atols ഡീഗോ ഗ്രാഷ്യ Диего Гарсиа Diego Garcia Diego Garcia Diego Garcia Diego Garcia Diego Garcia Diego Garcia Diego Garcia Diego Garcia Диего-Гарсия Diego Garcia Diego Garcia Diego-Garsia Дијего Гарсија Diego Garcia Diego Garcia ดิเอโกการ์เซีย Diego Garcia Diego Garcia Дієго-Гарсія Diyego-Garsiya Diego Garcia 迪戈加西亚岛 迪亞哥加西亞島
62 DJ جيبوتي Джыбуці Джибути Djibouti Džibuti Djibouti Džibutsko Djibouti Dschibuti Τζιμπουτί Djibouti Ĝibutio Yibuti Djibouti Djibuti جیبوتی Djibouti Djibouti Djibouti Djibouti Diobùtaidh Djibuti ג׳יבוטי Džibuti Dzsibuti Djibouti Jibuti Djíbútí Gibuti ジブチ 지부티 Djibouti Джибути Džibutis Džibutija ജിബൂത്തി Джибути Djibouti Djibouti Djibouti Djibouti Dżibuti Djibuti Djibuti Djibouti Джибути Džibutsko Džibuti Xhibuti Џибути Djibouti Jibuti จิบูตี Cibuti Җибүти Джибуті Jibuti Djibouti 吉布提 吉布地
63 DK الدانمرك Данія Дания Danmark Danska Dinamarca Dánsko Danmark Dänemark Δανία Denmark Danujo Dinamarca Taani Danimarka دانمارک Tanska Danemark Danemark an Danmhairg An Danmhairg Dinamarca דנמרק Danska Dánia Danmark Denmark Danmörk Danimarca デンマーク 덴마크 Denmark Дания Danija Dānija ഡെൻമാർക്ക് Дани Danmark Denemarken Danmark Denmark Dania Dinamarca Dinamarca Danemarca Дания Dánsko Danska Danimarkë Данска Danmark Denmark เดนมาร์ก Danimarka Дания Данія Daniya Đan Mạch 丹麦 丹麥
64 DM دومينيكا Дамініка Доминика Dominica Dominika Dominica Dominika Dominica Dominica Ντομίνικα Dominica Dominiko Dominica Dominica Dominika دومینیکا Dominica Dominique Dominique Doiminice Doiminicea Dominica דומיניקה Dominika Dominika Dominica Dominika Dóminíka Dominica ドミニカ国 도미니카 Dominica Доминика Dominika Dominika ഡൊമിനിക്ക Доминика Dominica Dominica Dominica Dominica Dominika Dominica Dominica Dominica Доминика Dominika Dominika Dominikë Доминика Dominica Dominika โดมินิกา Dominika Доминика Домініка Dominika Dominica 多米尼克 多米尼克
65 DO جمهورية الدومينيكان Дамініканская Рэспубліка Доминиканска република Republik Dominikan Dominikanska Republika República Dominicana Dominikánská republika Den Dominikanske Republik Dominikanische Republik Δομινικανή Δημοκρατία Dominican Republic Domingo República Dominicana Dominikaani Vabariik Dominikar Errepublika جمهوری دومینیکن Dominikaaninen tasavalta République dominicaine République dominicaine an Phoblacht Dhoiminiceach A’ Phoblachd Dhoiminiceach República Dominicana הרפובליקה הדומיניקנית Dominikanska Republika Dominikai Köztársaság Republica Dominican Republik Dominika Dóminíska lýðveldið Repubblica Dominicana ドミニカ共和国 도미니카 공화국 Dominican Republic Доминика Республикасы Dominikos Respublika Dominikāna ഡൊമിനിക്കൻ റിപ്പബ്ലിക്ക് Бүгд Найрамдах Доминикан Улс Den dominikanske republikk Dominicaanse Republiek Den dominikanske republikken Dominican Republic Dominikana República Dominicana República Dominicana Republica Dominicană Доминиканская Республика Dominikánska republika Dominikanska republika Republika Dominikane Доминиканска Република Dominikanska republiken Jamhuri ya Dominika สาธารณรัฐโดมินิกัน Dominik Cumhuriyeti Доминикана Республикасы Домініканська Республіка Dominikan Respublikasi Cộng hòa Dominica 多米尼加共和国 多明尼加共和國
66 DZ الجزائر Алжыр Алжир Aljeria Alžir Algèria Alžírsko Algeriet Algerien Αλγερία Algeria Alĝerio Argelia Alžeeria Aljeria الجزایر Algeria Algérie Algérie an Ailgéir Aildiria Alxeria אלג׳יריה Alžir Algéria Algeria Aljazair Alsír Algeria アルジェリア 알제리 Algeria Алжир Alžyras Alžīrija അൾജീരിയ Алжир Algerie Algerije Algerie Algeria Algieria Argélia Argélia Algeria Алжир Alžírsko Alžirija Algjeri Алжир Algeriet Aljeria แอลจีเรีย Cezayir Алжир Алжир Jazoir Algeria 阿尔及利亚 阿爾及利亞
67 EA سيوتا وميليلا Сеута і Мелілья Сеута и Мелия Ceuta ha Melilla Seuta i Melilja Ceuta i Melilla Ceuta a Melilla Ceuta og Melilla Ceuta und Melilla Θέουτα και Μελίγια Ceuta & Melilla Ceuta & Melilla Ceuta y Melilla Ceuta ja Melilla Ceuta eta Melilla سبته و ملیله Ceuta ja Melilla Ceuta et Melilla Ceuta et Melilla Ceuta agus Melilla Ceuta agus Melilla Ceuta e Melilla סאוטה ומלייה Ceuta i Melilla Ceuta és Melilla Ceuta & Melilla Ceuta dan Melilla Ceuta og Melilla Ceuta e Melilla セウタ・メリリャ 세우타 및 멜리야 Ceuta & Melilla Сеута жана Мелилла Seuta ir Melila Seūta un Melilja സെയൂത്ത ആൻഡ് മെലിയ Сеута ба Мелилья Ceuta og Melilla Ceuta en Melilla Ceuta og Melilla Ceuta & Melilla Ceuta i Melilla Ceuta e Melilla Ceuta e Melilla Ceuta și Melilla Сеута и Мелилья Ceuta a Melilla Ceuta in Melilla Theuta e Melila Сеута и Мелиља Ceuta och Melilla Ceuta na Melilla เซวตาและเมลียา Ceuta ve Melilla Ceuta & Melilla Сеута і Мелілья Seuta va Melilya Ceuta và Melilla 休达及梅利利亚 休達與梅利利亞
68 EC الإكوادور Эквадор Еквадор Ecuador Ekvador Equador Ekvádor Ecuador Ecuador Ισημερινός Ecuador Ekvadoro Ecuador Ecuador Ekuador اکوادور Ecuador Équateur Équateur Eacuadór Eacuador Ecuador אקוודור Ekvador Ecuador Ecuador Ekuador Ekvador Ecuador エクアドル 에콰도르 Ecuador Эквадор Ekvadoras Ekvadora ഇക്വഡോർ Эквадор Ecuador Ecuador Ecuador Ecuador Ekwador Equador Equador Ecuador Эквадор Ekvádor Ekvador Ekuador Еквадор Ecuador Ecuador เอกวาดอร์ Ekvador Эквадор Еквадор Ekvador Ecuador 厄瓜多尔 厄瓜多
69 EE إستونيا Эстонія Естония Estonia Estonija Estònia Estonsko Estland Estland Εσθονία Estonia Estonujo Estonia Eesti Estonia استونی Viro Estonie Estonie an Eastóin An Eastoin Estonia אסטוניה Estonija Észtország Estonia Estonia Eistland Estonia エストニア 에스토니아 Estonia Эстония Estija Igaunija എസ്റ്റോണിയ‍ Эстони Estland Estland Estland Estonia Estonia Estônia Estônia Estonia Эстония Estónsko Estonija Estoni Естонија Estland Estonia เอสโตเนีย Estonya Эстония Естонія Estoniya Estonia 爱沙尼亚 愛沙尼亞
70 EG مصر Егіпет Египет Egipt Egipat Egipte Egypt Egypten Ägypten Αίγυπτος Egypt Egipto Egipto Egiptus Egipto مصر Egypti Égypte Égypte an Éigipt An Èiphit Exipto מצרים Egipat Egyiptom Egypto Mesir Egyptaland Egitto エジプト 이집트 Egypt Египет Egiptas Ēģipte ഈജിപ്ത് Египет Egypt Egypte Egypt Egypt Egipt Egito Egito Egipt Египет Egypt Egipt Egjipt Египат Egypten Misri อียิปต์ Mısır Мисыр Єгипет Misr Ai Cập 埃及 埃及
71 EH الصحراء الغربية Заходняя Сахара Западна Сахара Sahara ar Cʼhornôg Zapadna Sahara Sàhara Occidental Západní Sahara Vestsahara Westsahara Δυτική Σαχάρα Western Sahara Okcidenta Saharo Sáhara Occidental Lääne-Sahara Mendebaldeko Sahara صحرای غربی Länsi-Sahara Sahara occidental Sahara occidental an Sahára Thiar Sathara an Iar O Sáhara Occidental סהרה המערבית Zapadna Sahara Nyugat-Szahara Sahara occidental Sahara Barat Vestur-Sahara Sahara occidentale 西サハラ 서사하라 Western Sahara Батыш Сахара Vakarų Sachara Rietumsahāra പശ്ചിമ സഹാറ Баруун Сахар Vest-Sahara Westelijke Sahara Vest-Sahara Western Sahara Sahara Zachodnia Saara Ocidental Saara Ocidental Sahara Occidentală Западная Сахара Západná Sahara Zahodna Sahara Saharaja Perëndimore Западна Сахара Västsahara Sahara Magharibi ซาฮาราตะวันตก Batı Sahra Western Sahara Західна Сахара G‘arbiy Sahroi Kabir Tây Sahara 西撒哈拉 西撒哈拉
72 ER إريتريا Эрытрэя Еритрея Eritrea Eritreja Eritrea Eritrea Eritrea Eritrea Ερυθραία Eritrea Eritreo Eritrea Eritrea Eritrea اریتره Eritrea Érythrée Érythrée an Eiritré Eartra Eritrea אריתריאה Eritreja Eritrea Eritrea Eritrea Erítrea Eritrea エリトリア 에리트리아 Eritrea Эритрея Eritrėja Eritreja എറിത്രിയ Эритрей Eritrea Eritrea Eritrea Eritrea Erytrea Eritreia Eritreia Eritreea Эритрея Eritrea Eritreja Eritre Еритреја Eritrea Eritrea เอริเทรีย Eritre Эритрея Еритрея Eritreya Eritrea 厄立特里亚 厄利垂亞
73 ES إسبانيا Іспанія Испания Spagn Španija Espanya Španělsko Spanien Spanien Ισπανία Spain Hispanujo España Hispaania Espainia اسپانیا Espanja Espagne Espagne an Spáinn An Spàinnt España ספרד Španjolska Spanyolország Espania Spanyol Spánn Spagna スペイン 스페인 Spain Испания Ispanija Spānija സ്‌പെയിൻ Испани Spania Spanje Spania Spain Hiszpania Espanha Espanha Spania Испания Španielsko Španija Spanjë Шпанија Spanien Uhispania สเปน İspanya Испания Іспанія Ispaniya Tây Ban Nha 西班牙 西班牙
74 ET إثيوبيا Эфіопія Етиопия Etiopia Etiopija Etiòpia Etiopie Etiopien Äthiopien Αιθιοπία Ethiopia Etiopujo Etiopía Etioopia Etiopia اتیوپی Etiopia Éthiopie Éthiopie an Aetóip An Itiop Etiopía אתיופיה Etiopija Etiópia Ethiopia Etiopia Eþíópía Etiopia エチオピア 에티오피아 Ethiopia Эфиопия Etiopija Etiopija എത്യോപ്യ Этиоп Etiopia Ethiopië Etiopia Ethiopia Etiopia Etiópia Etiópia Etiopia Эфиопия Etiópia Etiopija Etiopi Етиопија Etiopien Ethiopia เอธิโอเปีย Etiyopya Эфиопия Ефіопія Efiopiya Ethiopia 埃塞俄比亚 衣索比亞
75 EU الاتحاد الأوروبي Еўрапейскі саюз Европейски съюз Unaniezh Europa Evropska unija Unió Europea Evropská unie Den Europæiske Union Europäische Union Ευρωπαϊκή Ένωση European Union European Union Unión Europea Euroopa Liit Europar Batasuna اتحادیهٔ اروپا Euroopan unioni Union européenne Union européenne an tAontas Eorpach An t-Aonadh Eòrpach Unión Europea האיחוד האירופי Europska unija Európai Unió Union Europee Uni Eropa Evrópusambandið Unione Europea 欧州連合 유럽 연합 Unyans Europek Европа Биримдиги Europos Sąjunga Eiropas Savienība യൂറോപ്യൻ യൂണിയൻ Европын Холбоо Den europeiske union Europese Unie European Union European Union Unia Europejska União Europeia União Europeia Uniunea Europeană Европейский союз Európska únia Evropska unija Bashkimi Evropian Европска унија Europeiska unionen Umoja wa Ulaya สหภาพยุโรป Avrupa Birliği European Union Європейський Союз Yevropa Ittifoqi Liên Minh Châu Âu 欧盟 歐盟
76 FI فنلندا Фінляндыя Финландия Finland Finska Finlàndia Finsko Finland Finnland Φινλανδία Finland Finnlando Finlandia Soome Finlandia فنلاند Suomi Finlande Finlande an Fhionlainn An Fhionnlann Finlandia פינלנד Finska Finnország Finlandia Finlandia Finnland Finlandia フィンランド 핀란드 Finland Финляндия Suomija Somija ഫിൻലാൻഡ് Финлянд Finland Finland Finland Finland Finlandia Finlândia Finlândia Finlanda Финляндия Fínsko Finska Finlandë Финска Finland Ufini ฟินแลนด์ Finlandiya Финляндия Фінляндія Finlandiya Phần Lan 芬兰 芬蘭
77 FJ فيجي Фіджы Фиджи Fidji Fidži Fiji Fidži Fiji Fidschi Φίτζι Fiji Fiĝoj Fiyi Fidži Fiji فیجی Fidži Fidji Fidji Fidsí Fìdi Fixi פיג׳י Fidži Fidzsi Fiji Fiji Fídjíeyjar Figi フィジー 피지 Fiji Фиджи Fidžis Fidži ഫിജി Фижи Fiji Fiji Fiji Fiji Fidżi Fiji Fiji Fiji Фиджи Fidži Fidži Fixhi Фиџи Fiji Fiji ฟิจิ Fiji Фиджи Фіджі Fiji Fiji 斐济 斐濟
78 FK جزر فوكلاند Фалклендскія астравы Фолкландски острови Inizi Falkland Folklandska ostrva Illes Malvines Falklandské ostrovy Falklandsøerne Falklandinseln Νήσοι Φόκλαντ Falkland Islands Falkland Islands Islas Malvinas Falklandi saared Falklandak جزایر فالکلند Falklandinsaaret Îles Malouines Îles Malouines Oileáin Fháclainne Na h-Eileanan Fàclannach Illas Malvinas איי פוקלנד Falklandski otoci Falkland-szigetek Falkland Islands Kepulauan Falkland Falklandseyjar Isole Falkland フォークランド諸島 포클랜드 제도 Falkland Islands Фолкленд аралдары Folklando Salos Folklenda salas ഫാക്ക്‌ലാന്റ് ദ്വീപുകൾ Фолклендийн арлууд Falklandsøyene Falklandeilanden Falklandsøyane Falkland Islands Falklandy Ilhas Malvinas Ilhas Malvinas Insulele Falkland Фолклендские о-ва Falklandy Falklandski otoki Ishujt Falkland Фокландска Острва Falklandsöarna Visiwa vya Falkland หมู่เกาะฟอล์กแลนด์ Falkland Adaları Фолкленд утраулары Фолклендські Острови Folklend orollari Quần đảo Falkland 福克兰群岛 福克蘭群島
79 FM ميكرونيزيا Мікранезія Микронезия Mikronezia Mikronezija Micronèsia Mikronésie Mikronesien Mikronesien Μικρονησία Micronesia Mikronezio Micronesia Mikroneesia Mikronesia میکرونزی Mikronesian liittovaltio États fédérés de Micronésie États fédérés de Micronésie an Mhicrinéis Na Meanbh-eileanan Micronesia מיקרונזיה Mikronezija Mikronézia Micronesia Mikronesia Míkrónesía Micronesia ミクロネシア連邦 미크로네시아 Micronesia Микронезия Mikronezija Mikronēzija മൈക്രോനേഷ്യ Микронези Mikronesiaføderasjonen Micronesia Mikronesiaføderasjonen Micronesia Mikronezja Micronésia Micronésia Micronezia Федеративные Штаты Микронезии Mikronézia Mikronezija Mikronezi Микронезија Mikronesien Micronesia ไมโครนีเซีย Mikronezya Микронезия Мікронезія Mikroneziya Micronesia 密克罗尼西亚 密克羅尼西亞
80 FO جزر فارو Фарэрскія астравы Фарьорски острови Inizi Faero Farska ostrva Illes Fèroe Faerské ostrovy Færøerne Färöer Νήσοι Φερόες Faroe Islands Ferooj Islas Feroe Fääri saared Faroe uharteak جزایر فارو Färsaaret Îles Féroé Îles Féroé Oileáin Fharó Na h-Eileanan Fàro Illas Feroe איי פארו Farski otoci Feröer szigetek Insulas Feroe Kepulauan Faroe Færeyjar Isole Fær Øer フェロー諸島 페로 제도 Faroe Islands Фарер аралдары Farerų Salos Fēru salas ഫറോ ദ്വീപുകൾ Фарерын арлууд Færøyene Faeröer Færøyane Faroe Islands Wyspy Owcze Ilhas Faroe Ilhas Faroe Insulele Feroe Фарерские о-ва Faerské ostrovy Ferski otoki Ishujt Faroe Фарска Острва Färöarna Visiwa vya Faroe หมู่เกาะแฟโร Faroe Adaları Фарер утраулары Фарерські Острови Farer orollari Quần đảo Faroe 法罗群岛 法羅群島
81 FR فرنسا Францыя Франция Frañs Francuska França Francie Frankrig Frankreich Γαλλία France Francujo Francia Prantsusmaa Frantzia فرانسه Ranska France France an Fhrainc An Fhraing Francia צרפת Francuska Franciaország Francia Prancis Frakkland Francia フランス 프랑스 Pow Frenk Франция Prancūzija Francija ഫ്രാൻസ് Франц Frankrike Frankrijk Frankrike Франц Francja França França Franța Франция Francúzsko Francija Francë Француска Frankrike Ufaransa ฝรั่งเศส Fransa Франция Франція Fransiya Pháp 法国 法國
82 GA الغابون Габон Габон Gabon Gabon Gabon Gabon Gabon Gabun Γκαμπόν Gabon Gabono Gabón Gabon Gabon گابن Gabon Gabon Gabon an Ghabúin Gabon Gabón גבון Gabon Gabon Gabon Gabon Gabon Gabon ガボン 가봉 Gabon Габон Gabonas Gabona ഗാബൺ Габон Gabon Gabon Gabon Gabon Gabon Gabão Gabão Gabon Габон Gabon Gabon Gabon Габон Gabon Gabon กาบอง Gabon Габон Габон Gabon Gabon 加蓬 加彭
83 GB المملكة المتحدة Вялікабрытанія Обединеното кралство Rouantelezh-Unanet Ujedinjeno Kraljevstvo Regne Unit Spojené království Storbritannien Vereinigtes Königreich Ηνωμένο Βασίλειο United Kingdom Unuiĝinta Reĝlando Reino Unido Suurbritannia Erresuma Batua بریتانیا Iso-Britannia Royaume-Uni Royaume-Uni an Ríocht Aontaithe An Rìoghachd Aonaichte O Reino Unido בריטניה Ujedinjeno Kraljevstvo Egyesült Királyság Regno Unite Inggris Raya Bretland Regno Unito イギリス 영국 Rywvaneth Unys Улуу Британия Jungtinė Karalystė Apvienotā Karaliste യുണൈറ്റഡ് കിംഗ്ഡം Их Британи Storbritannia Verenigd Koninkrijk Storbritannia Стыр Британи Wielka Brytania Reino Unido Reino Unido Regatul Unit Великобритания Spojené kráľovstvo Združeno kraljestvo Mbretëria e Bashkuar Уједињено Краљевство Storbritannien Ufalme wa Muungano สหราชอาณาจักร Birleşik Krallık Берләшкән Корольлек Велика Британія Buyuk Britaniya Vương quốc Anh 英国 英國
84 GD غرينادا Грэнада Гренада Grenada Grenada Grenada Grenada Grenada Grenada Γρενάδα Grenada Grenado Granada Grenada Grenada گرنادا Grenada Grenade Grenade Greanáda Greanàda Granada גרנדה Grenada Grenada Grenada Grenada Grenada Grenada グレナダ 그레나다 Grenada Гренада Grenada Grenāda ഗ്രനേഡ Гренада Grenada Grenada Grenada Grenada Grenada Granada Granada Grenada Гренада Grenada Grenada Granadë Гренада Grenada Grenada เกรเนดา Grenada Гренада Ґренада Grenada Grenada 格林纳达 格瑞那達
85 GE جورجيا Грузія Грузия Jorjia Gruzija Geòrgia Gruzie Georgien Georgien Γεωργία Georgia Kartvelujo Georgia Gruusia Georgia گرجستان Georgia Géorgie Géorgie an tSeoirsia A’ Chairtbheil Xeorxia גאורגיה Gruzija Grúzia Georgia Georgia Georgía Georgia ジョージア 조지아 Georgia Грузия Gruzija Gruzija ജോർജ്ജിയ Гүрж Georgia Georgië Georgia Гуырдзыстон Gruzja Geórgia Geórgia Georgia Грузия Gruzínsko Gruzija Gjeorgji Грузија Georgien Jojia จอร์เจีย Gürcistan Грузия Грузія Gruziya Georgia 格鲁吉亚 喬治亞
86 GF غويانا الفرنسية Французская Гвіяна Френска Гвиана Gwiana cʼhall Francuska Gvajana Guaiana Francesa Francouzská Guyana Fransk Guyana Französisch-Guayana Γαλλική Γουιάνα French Guiana Franca Gviano Guayana Francesa Prantsuse Guajaana Guyana Frantsesa گویان فرانسه Ranskan Guayana Guyane française Guyane française Guáin na Fraince Guidheàna na Frainge Güiana Francesa גיאנה הצרפתית Francuska Gijana Francia Guyana Guyana francese Guyana Prancis Franska Gvæjana Guyana francese 仏領ギアナ 프랑스령 기아나 French Guiana Француздук Гвиана Prancūzijos Gviana Francijas Gviāna ഫ്രഞ്ച് ഗയാന Францын Гвиана Fransk Guyana Frans-Guyana Fransk Guyana French Guiana Gujana Francuska Guiana Francesa Guiana Francesa Guyana Franceză Французская Гвиана Francúzska Guyana Francoska Gvajana Guajana Franceze Француска Гвајана Franska Guyana Guiana ya Ufaransa เฟรนช์เกียนา Fransız Guyanası Француз Гвианасы Французька Ґвіана Fransuz Gvianasi Guiana thuộc Pháp 法属圭亚那 法屬圭亞那
87 GG غيرنزي Гернсі Гърнзи Gwernenez Gernzi Guernsey Guernsey Guernsey Guernsey Γκέρνζι Guernsey Guernsey Guernsey Guernsey Guernesey گرنزی Guernsey Guernesey Guernesey Geansaí Geàrnsaidh Guernsey גרנזי Guernsey Guernsey Guernsey Guernsey Guernsey Guernsey ガーンジー 건지 Guernsey Гернси Gernsis Gērnsija ഗേൺസി Гернси Guernsey Guernsey Guernsey Guernsey Guernsey Guernsey Guernsey Guernsey Гернси Guernsey Guernsey Gernsej Гернзи Guernsey Guernsey เกิร์นซีย์ Guernsey Гернси Ґернсі Gernsi Guernsey 根西岛 根息
88 GH غانا Гана Гана Ghana Gana Ghana Ghana Ghana Ghana Γκάνα Ghana Ganao Ghana Ghana Ghana غنا Ghana Ghana Ghana Gána Gàna Ghana גאנה Gana Ghána Ghana Ghana Gana Ghana ガーナ 가나 Ghana Гана Gana Gana ഘാന Гана Ghana Ghana Ghana Ghana Ghana Gana Gana Ghana Гана Ghana Gana Ganë Гана Ghana Ghana กานา Gana Гана Гана Gana Ghana 加纳 迦納
89 GI جبل طارق Гібралтар Гибралтар Jibraltar Gibraltar Gibraltar Gibraltar Gibraltar Gibraltar Γιβραλτάρ Gibraltar Ĝibraltaro Gibraltar Gibraltar Gibraltar جبل‌الطارق Gibraltar Gibraltar Gibraltar Giobráltar Diobraltar Xibraltar גיברלטר Gibraltar Gibraltár Gibraltar Gibraltar Gíbraltar Gibilterra ジブラルタル 지브롤터 Gibraltar Гибралтар Gibraltaras Gibraltārs ജിബ്രാൾട്ടർ Гибралтар Gibraltar Gibraltar Gibraltar Gibraltar Gibraltar Gibraltar Gibraltar Gibraltar Гибралтар Gibraltár Gibraltar Gjibraltar Гибралтар Gibraltar Gibraltar ยิบรอลตาร์ Cebelitarık Гибралтар Ґібралтар Gibraltar Gibraltar 直布罗陀 直布羅陀
90 GL غرينلاند Грэнландыя Гренландия Greunland Grenland Groenlàndia Grónsko Grønland Grönland Γροιλανδία Greenland Gronlando Groenlandia Gröönimaa Groenlandia گرینلند Grönlanti Groenland Groenland an Ghraonlainn A’ Ghraonlann Groenlandia גרינלנד Grenland Grönland Groenlandia Grinlandia Grænland Groenlandia グリーンランド 그린란드 Greenland Гренландия Grenlandija Grenlande ഗ്രീൻലാൻറ് Гренланд Grønland Groenland Grønland Greenland Grenlandia Groenlândia Groenlândia Groenlanda Гренландия Grónsko Grenlandija Grënlandë Гренланд Grönland Greenland กรีนแลนด์ Grönland Гренландия Ґренландія Grenlandiya Greenland 格陵兰 格陵蘭
91 GM غامبيا Гамбія Гамбия Gambia Gambija Gàmbia Gambie Gambia Gambia Γκάμπια Gambia Gambio Gambia Gambia Gambia گامبیا Gambia Gambie Gambie an Ghaimbia A’ Ghaimbia Gambia גמביה Gambija Gambia Gambia Gambia Gambía Gambia ガンビア 감비아 Gambia Гамбия Gambija Gambija ഗാംബിയ Гамби Gambia Gambia Gambia Gambia Gambia Gâmbia Gâmbia Gambia Гамбия Gambia Gambija Gambi Гамбија Gambia Gambia แกมเบีย Gambiya Гамбия Гамбія Gambiya Gambia 冈比亚 甘比亞
92 GN غينيا Гвінея Гвинея Ginea Gvineja Guinea Guinea Guinea Guinea Γουινέα Guinea Gvineo Guinea Guinea Ginea گینه Guinea Guinée Guinée an Ghuine Gini Guinea גינאה Gvineja Guinea Guinea Guinea Gínea Guinea ギニア 기니 Guinea Гвинея Gvinėja Gvineja ഗിനിയ Гвиней Guinea Guinee Guinea Guinea Gwinea Guiné Guiné Guineea Гвинея Guinea Gvineja Guine Гвинеја Guinea Gine กินี Gine Гвинея Гвінея Gvineya Guinea 几内亚 幾內亞
93 GP غوادلوب Гвадэлупа Гваделупа Gwadeloup Gvadalupe Guadeloupe Guadeloupe Guadeloupe Guadeloupe Γουαδελούπη Guadeloupe Gvadelupo Guadalupe Guadeloupe Guadalupe گوادلوپ Guadeloupe Guadeloupe Guadeloupe Guadalúip Guadalup Guadalupe גוואדלופ Guadalupe Guadeloupe Guadeloupe Guadeloupe Gvadelúpeyjar Guadalupa グアドループ 과들루프 Guadeloupe Гваделупа Gvadelupa Gvadelupa ഗ്വാഡലൂപ്പ് Гваделуп Guadeloupe Guadeloupe Guadeloupe Guadeloupe Gwadelupa Guadalupe Guadalupe Guadelupa Гваделупа Guadeloupe Guadeloupe Guadelupë Гваделуп Guadeloupe Guadeloupe กวาเดอลูป Guadeloupe Гваделупа Ґваделупа Gvadelupe Guadeloupe 瓜德罗普 瓜地洛普
94 GQ غينيا الاستوائية Экватарыяльная Гвінея Екваториална Гвинея Ginea ar Cʼheheder Ekvatorijalna Gvineja Guinea Equatorial Rovníková Guinea Ækvatorialguinea Äquatorialguinea Ισημερινή Γουινέα Equatorial Guinea Ekvatora Gvineo Guinea Ecuatorial Ekvatoriaal-Guinea Ekuatore Ginea گینهٔ استوایی Päiväntasaajan Guinea Guinée équatoriale Guinée équatoriale an Ghuine Mheánchiorclach Gini Mheadhan-Chriosach Guinea Ecuatorial גינאה המשוונית Ekvatorska Gvineja Egyenlítői-Guinea Guinea equatorial Guinea Ekuatorial Miðbaugs-Gínea Guinea Equatoriale 赤道ギニア 적도 기니 Equatorial Guinea Экватордук Гвинея Pusiaujo Gvinėja Ekvatoriālā Gvineja ഇക്വറ്റോറിയൽ ഗിനിയ Экваторын Гвиней Ekvatorial-Guinea Equatoriaal-Guinea Ekvatorial-Guinea Equatorial Guinea Gwinea Równikowa Guiné Equatorial Guiné Equatorial Guineea Ecuatorială Экваториальная Гвинея Rovníková Guinea Ekvatorialna Gvineja Guineja Ekuatoriale Екваторијална Гвинеја Ekvatorialguinea Guinea ya Ikweta อิเควทอเรียลกินี Ekvator Ginesi Экваториаль Гвинея Екваторіальна Гвінея Ekvatorial Gvineya Guinea Xích Đạo 赤道几内亚 赤道幾內亞
95 GR اليونان Грэцыя Гърция Gres Grčka Grècia Řecko Grækenland Griechenland Ελλάδα Greece Grekujo Grecia Kreeka Grezia یونان Kreikka Grèce Grèce an Ghréig A’ Ghreug Grecia יוון Grčka Görögország Grecia Yunani Grikkland Grecia ギリシャ 그리스 Greece Греция Graikija Grieķija ഗ്രീസ് Грек Hellas Griekenland Hellas Greece Grecja Grécia Grécia Grecia Греция Grécko Grčija Greqi Грчка Grekland Ugiriki กรีซ Yunanistan Греция Греція Gretsiya Hy Lạp 希腊 希臘
96 GS جورجيا الجنوبية وجزر ساندويتش الجنوبية Паўднёвая Георгія і Паўднёвыя Сандвічавы астравы Южна Джорджия и Южни Сандвичеви острови Inizi Georgia ar Su hag Inizi Sandwich ar Su Južna Džordžija i Južna Sendvič ostrva Illes Geòrgia del Sud i Sandwich del Sud Jižní Georgie a Jižní Sandwichovy ostrovy South Georgia og De Sydlige Sandwichøer Südgeorgien und die Südlichen Sandwichinseln Νήσοι Νότια Γεωργία και Νότιες Σάντουιτς South Georgia & South Sandwich Islands Sud-Georgio kaj Sud-Sandviĉinsuloj Islas Georgia del Sur y Sandwich del Sur Lõuna-Georgia ja Lõuna-Sandwichi saared Hegoaldeko Georgia eta Hegoaldeko Sandwich uharteak جورجیای جنوبی و جزایر ساندویچ جنوبی Etelä-Georgia ja Eteläiset Sandwichsaaret Géorgie du Sud et îles Sandwich du Sud Géorgie du Sud et îles Sandwich du Sud an tSeoirsia Theas agus Oileáin Sandwich Theas Seòirsea a Deas is na h-Eileanan Sandwich a Deas Illas Xeorxia do Sur e Sandwich do Sur ג׳ורג׳יה הדרומית ואיי סנדוויץ׳ הדרומיים Južna Georgija i Južni Sendvički Otoci Déli-Georgia és Déli-Sandwich-szigetek South Georgia & South Sandwich Islands Georgia Selatan & Kep. Sandwich Selatan Suður-Georgía og Suður-Sandvíkureyjar Georgia del Sud e Sandwich australi サウスジョージア・サウスサンドウィッチ諸島 사우스조지아 사우스샌드위치 제도 South Georgia & South Sandwich Islands Түштүк Жоржия жана Түштүк Сэндвич аралдары Pietų Džordžija ir Pietų Sandvičo salos Dienviddžordžija un Dienvidsendviču salas ദക്ഷിണ ജോർജ്ജിയയും ദക്ഷിണ സാൻഡ്‌വിച്ച് ദ്വീപുകളും Өмнөд Жоржиа ба Өмнөд Сэндвичийн арлууд Sør-Georgia og Sør-Sandwichøyene Zuid-Georgia en Zuidelijke Sandwicheilanden Sør-Georgia og Sør-Sandwichøyene South Georgia & South Sandwich Islands Georgia Południowa i Sandwich Południowy Ilhas Geórgia do Sul e Sandwich do Sul Ilhas Geórgia do Sul e Sandwich do Sul Georgia de Sud și Insulele Sandwich de Sud Южная Георгия и Южные Сандвичевы о-ва Južná Georgia a Južné Sandwichove ostrovy Južna Georgia in Južni Sandwichevi otoki Xhorxha Jugore dhe Ishujt Senduiçë të Jugut Јужна Џорџија и Јужна Сендвичка Острва Sydgeorgien och Sydsandwichöarna Visiwa vya Georgia Kusini na Sandwich Kusini เกาะเซาท์จอร์เจียและหมู่เกาะเซาท์แซนด์วิช Güney Georgia ve Güney Sandwich Adaları Көньяк Георгия һәм Көньяк Сандвич утраулары Південна Джорджія та Південні Сандвічеві Острови Janubiy Georgiya va Janubiy Sendvich orollari Nam Georgia & Quần đảo Nam Sandwich 南乔治亚和南桑威奇群岛 南喬治亞與南三明治群島
97 GT غواتيمالا Гватэмала Гватемала Guatemala Gvatemala Guatemala Guatemala Guatemala Guatemala Γουατεμάλα Guatemala Gvatemalo Guatemala Guatemala Guatemala گواتمالا Guatemala Guatemala Guatemala Guatamala Guatamala Guatemala גואטמלה Gvatemala Guatemala Guatemala Guatemala Gvatemala Guatemala グアテマラ 과테말라 Guatemala Гватемала Gvatemala Gvatemala ഗ്വാട്ടിമാല Гватемал Guatemala Guatemala Guatemala Guatemala Gwatemala Guatemala Guatemala Guatemala Гватемала Guatemala Gvatemala Guatemalë Гватемала Guatemala Guatemala กัวเตมาลา Guatemala Гватемала Ґватемала Gvatemala Guatemala 危地马拉 瓜地馬拉
98 GU غوام Гуам Гуам Guam Guam Guam Guam Guam Guam Γκουάμ Guam Gvamo Guam Guam Guam گوام Guam Guam Guam Guam Guam Guam גואם Guam Guam Guam Guam Gvam Guam グアム Guam Гуам Guamas Guama ഗ്വാം Гуам Guam Guam Guam Guam Guam Guam Guam Guam Гуам Guam Guam Guam Гуам Guam Guam กวม Guam Гуам Ґуам Guam Guam 关岛 關島
99 GW غينيا بيساو Гвінея-Бісау Гвинея-Бисау Ginea-Bissau Gvineja-Bisao Guinea Bissau Guinea-Bissau Guinea-Bissau Guinea-Bissau Γουινέα Μπισάου Guinea-Bissau Gvineo-Bisaŭo Guinea-Bisáu Guinea-Bissau Ginea Bissau گینهٔ بیسائو Guinea-Bissau Guinée-Bissau Guinée-Bissau Guine Bissau Gini-Bioso A Guinea Bissau גינאה-ביסאו Gvineja Bisau Bissau-Guinea Guinea-Bissau Guinea-Bissau Gínea-Bissá Guinea-Bissau ギニアビサウ 기니비사우 Guinea-Bissau Гвинея-Бисау Bisau Gvinėja Gvineja-Bisava ഗിനിയ-ബിസൗ Гвиней-Бисау Guinea-Bissau Guinee-Bissau Guinea-Bissau Guinea-Bissau Gwinea Bissau Guiné-Bissau Guiné-Bissau Guineea-Bissau Гвинея-Бисау Guinea-Bissau Gvineja Bissau Guine-Bisau Гвинеја-Бисао Guinea-Bissau Ginebisau กินี-บิสเซา Gine-Bissau Гвинея-Бисау Гвінея-Бісау Gvineya-Bisau Guinea-Bissau 几内亚比绍 幾內亞比索
100 GY غيانا Гаяна Гаяна Guyana Gvajana Guyana Guyana Guyana Guyana Γουιάνα Guyana Gujano Guyana Guyana Guyana گویان Guyana Guyana Guyana an Ghuáin Guidheàna Güiana גיאנה Gvajana Guyana Guyana Guyana Gvæjana Guyana ガイアナ 가이아나 Guyana Гайана Gajana Gajāna ഗയാന Гайана Guyana Guyana Guyana Guyana Gujana Guiana Guiana Guyana Гайана Guyana Gvajana Guajanë Гвајана Guyana Guyana กายอานา Guyana Гайана Ґайана Gayana Guyana 圭亚那 蓋亞那
101 HK هونغ كونغ Ганконг Хонконг Hong Kong Hong Kong Hong Kong Hongkong Hongkong Hongkong Χονγκ Κονγκ Hong Kong Hong Kong Hong Kong Hongkong Hong Kong هنگ‌کنگ Hongkong Hong Kong Hong Kong Hong Cong Hong Kong Hong Kong הונג קונג Hong Kong Hongkong Hong Kong Hong Kong Hong Kong Hong Kong 香港 홍콩 Hong Kong Гонконг Honkongas Honkonga ഹോങ്കോങ് Хонг Конг Hongkong Hongkong Hongkong Hong Kong Hongkong Hong Kong Hong Kong Hong Kong Гонконг Hongkong Hongkong Hong-Kong Хонгконг Hong Kong Hong Kong ฮ่องกง Hong Kong Гонконг Гонконг Gonkong Hồng Kông 香港 香港
102 HM جزيرة هيرد وجزر ماكدونالد Астравы Херд і Макдональд острови Хърд и Макдоналд Inizi Heard ha McDonald Herd i arhipelag MekDonald Illa Heard i Illes McDonald Heardův ostrov a McDonaldovy ostrovy Heard Island og McDonald Islands Heard und McDonaldinseln Νήσοι Χερντ και Μακντόναλντ Heard & McDonald Islands Herda kaj Makdonaldaj Insuloj Islas Heard y McDonald Heardi ja McDonaldi saared Heard eta McDonald uharteak هرد و جزایر مک‌دونالد Heard ja McDonaldinsaaret Îles Heard et McDonald Îles Heard et McDonald Oileán Heard agus Oileáin McDonald Eilean Heard is MhicDhòmhnaill Illa Heard e Illas McDonald איי הרד ומקדונלד Otoci Heard i McDonald Heard-sziget és McDonald-szigetek Heard & McDonald Islands Pulau Heard dan Kepulauan McDonald Heard og McDonaldseyjar Isole Heard e McDonald ハード島・マクドナルド諸島 허드 맥도널드 제도 Heard & McDonald Islands Херд жана Макдональд аралдары Herdo ir Makdonaldo Salos Hērda sala un Makdonalda salas ഹിയേർഡും മക്‌ഡൊണാൾഡ് ദ്വീപുകളും Херд ба Макдональдийн арлууд Heard- og McDonaldøyene Heard en McDonaldeilanden Heardøya og McDonaldøyane Heard & McDonald Islands Wyspy Heard i McDonalda Ilhas Heard e McDonald Ilhas Heard e McDonald Insula Heard și Insulele McDonald о-ва Херд и Макдональд Heardov ostrov a Macdonaldove ostrovy Heardov otok in McDonaldovi otoki Ishujt Hërd e Mekdonald Острво Херд и Мекдоналдова острва Heardön och McDonaldöarna Kisiwa cha Heard na Visiwa vya McDonald เกาะเฮิร์ดและหมู่เกาะแมกดอนัลด์ Heard Adası ve McDonald Adaları Херд утравы һәм Макдональд утраулары Острови Герд і Макдоналд Xerd va Makdonald orollari Quần đảo Heard và McDonald 赫德岛和麦克唐纳群岛 赫德島及麥唐納群島
103 HN هندوراس Гандурас Хондурас Honduras Honduras Hondures Honduras Honduras Honduras Ονδούρα Honduras Honduro Honduras Honduras Honduras هندوراس Honduras Honduras Honduras Hondúras Hondùras Honduras הונדורס Honduras Honduras Honduras Honduras Hondúras Honduras ホンジュラス 온두라스 Honduras Гондурас Hondūras Hondurasa ഹോണ്ടുറാസ് Гондурас Honduras Honduras Honduras Honduras Honduras Honduras Honduras Honduras Гондурас Honduras Honduras Honduras Хондурас Honduras Honduras ฮอนดูรัส Honduras Гондурас Гондурас Gonduras Honduras 洪都拉斯 宏都拉斯
104 HR كرواتيا Харватыя Хърватия Kroatia Hrvatska Croàcia Chorvatsko Kroatien Kroatien Κροατία Croatia Kroatujo Croacia Horvaatia Kroazia کرواسی Kroatia Croatie Croatie an Chróit A’ Chròthais Croacia קרואטיה Hrvatska Horvátország Croatia Kroasia Króatía Croazia クロアチア 크로아티아 Croatia Хорватия Kroatija Horvātija ക്രൊയേഷ്യ Хорват Kroatia Kroatië Kroatia Croatia Chorwacja Croácia Croácia Croația Хорватия Chorvátsko Hrvaška Kroaci Хрватска Kroatien Croatia โครเอเชีย Hırvatistan Хорватия Хорватія Xorvatiya Croatia 克罗地亚 克羅埃西亞
105 HT هايتي Гаіці Хаити Haiti Haiti Haití Haiti Haiti Haiti Αϊτή Haiti Haitio Haití Haiti Haiti هائیتی Haiti Haïti Haïti Háítí Haidhti Haití האיטי Haiti Haiti Haiti Haiti Haítí Haiti ハイチ 아이티 Haiti Гаити Haitis Haiti ഹെയ്തി Гаити Haiti Haïti Haiti Haiti Haiti Haiti Haiti Haiti Гаити Haiti Haiti Haiti Хаити Haiti Haiti เฮติ Haiti Гаити Гаїті Gaiti Haiti 海地 海地
106 HU هنغاريا Венгрыя Унгария Hungaria Mađarska Hongria Maďarsko Ungarn Ungarn Ουγγαρία Hungary Hungarujo Hungría Ungari Hungaria مجارستان Unkari Hongrie Hongrie an Ungáir An Ungair Hungría הונגריה Mađarska Magyarország Hungaria Hungaria Ungverjaland Ungheria ハンガリー 헝가리 Hungary Венгрия Vengrija Ungārija ഹംഗറി Унгар Ungarn Hongarije Ungarn Hungary Węgry Hungria Hungria Ungaria Венгрия Maďarsko Madžarska Hungari Мађарска Ungern Hungaria ฮังการี Macaristan Венгрия Угорщина Vengriya Hungary 匈牙利 匈牙利
107 IC جزر الكناري Канарскія астравы Канарски острови Inizi Kanariez Kanarska ostrva Illes Canàries Kanárské ostrovy Kanariske øer Kanarische Inseln Κανάριοι Νήσοι Canary Islands Canary Islands Canarias Kanaari saared Kanariak جزایر قناری Kanariansaaret Îles Canaries Îles Canaries na hOileáin Chanáracha Na h-Eileanan Canàrach Illas Canarias האיים הקנריים Kanarski otoci Kanári-szigetek Canary Islands Kepulauan Canaria Kanaríeyjar Isole Canarie カナリア諸島 카나리아 제도 Canary Islands Канар аралдары Kanarų salos Kanāriju salas കാനറി ദ്വീപുകൾ Канарын арлууд Kanariøyene Canarische Eilanden Kanariøyane Canary Islands Wyspy Kanaryjskie Ilhas Canárias Ilhas Canárias Insulele Canare Канарские о-ва Kanárske ostrovy Kanarski otoki Ishujt Kanarie Канарска Острва Kanarieöarna Visiwa vya Kanari หมู่เกาะคานารี Kanarya Adaları Canary Islands Канарські Острови Kanar orollari Quần đảo Canary 加纳利群岛 加那利群島
108 ID إندونيسيا Інданезія Индонезия Indonezia Indonezija Indonèsia Indonésie Indonesien Indonesien Ινδονησία Indonesia Indonezio Indonesia Indoneesia Indonesia اندونزی Indonesia Indonésie Indonésie an Indinéis Na h-Innd-innse Indonesia אינדונזיה Indonezija Indonézia Indonesia Indonesia Indónesía Indonesia インドネシア 인도네시아 Indonesia Индонезия Indonezija Indonēzija ഇന്തോനേഷ്യ Индонез Indonesia Indonesië Indonesia Indonesia Indonezja Indonésia Indonésia Indonezia Индонезия Indonézia Indonezija Indonezi Индонезија Indonesien Indonesia อินโดนีเซีย Endonezya Индонезия Індонезія Indoneziya Indonesia 印度尼西亚 印尼
109 IE أيرلندا Ірландыя Ирландия Iwerzhon Irska Irlanda Irsko Irland Irland Ιρλανδία Ireland Irlando Irlanda Iirimaa Irlanda ایرلند Irlanti Irlande Irlande Éire Èirinn Irlanda אירלנד Irska Írország Irlanda Irlandia Írland Irlanda アイルランド 아일랜드 Ireland Ирландия Airija Īrija അയർലൻഡ് Ирланд Irland Ierland Irland Ireland Irlandia Irlanda Irlanda Irlanda Ирландия Írsko Irska Irlandë Ирска Irland Ayalandi ไอร์แลนด์ İrlanda Ирландия Ірландія Irlandiya Ireland 爱尔兰 愛爾蘭
110 IL إسرائيل Ізраіль Израел Israel Izrael Israel Izrael Israel Israel Ισραήλ Israel Israelo Israel Iisrael Israel اسرائیل Israel Israël Israël Iosrael Iosrael Israel ישראל Izrael Izrael Israel Israel Ísrael Israele イスラエル 이스라엘 Israel Израиль Izraelis Izraēla ഇസ്രായേൽ Израиль Israel Israël Israel Israel Izrael Israel Israel Israel Израиль Izrael Izrael Izrael Израел Israel Israeli อิสราเอล İsrail Израиль Ізраїль Isroil Israel 以色列 以色列
111 IM جزيرة مان Востраў Мэн остров Ман Enez Vanav Ostrvo Man Illa de Man Ostrov Man Isle of Man Isle of Man Νήσος του Μαν Isle of Man Isle of Man Isla de Man Mani saar Man uhartea جزیرهٔ من Mansaari Île de Man Île de Man Oileán Mhanann Eilean Mhanainn Illa de Man האי מאן Otok Man Man-sziget Insula de Man Pulau Man Mön Isola di Man マン島 맨 섬 Isle of Man Мэн аралы Meno Sala Mena ഐൽ ഓഫ് മാൻ Мэн Арал Man Isle of Man Man Isle of Man Wyspa Man Ilha de Man Ilha de Man Insula Man о-в Мэн Ostrov Man Otok Man Ishulli i Manit Острво Ман Isle of Man Kisiwa cha Man เกาะแมน Man Adası Мэн утравы Острів Мен Men oroli Đảo Man 马恩岛 曼島
112 IN الهند Індыя Индия India Indija Índia Indie Indien Indien Ινδία India Hindujo India India India هند Intia Inde Inde an India Na h-Innseachan A India הודו Indija India India India Indland India インド 인도 Eynda Индия Indija Indija ഇന്ത്യ Энэтхэг India India India Инди Indie Índia Índia India Индия India Indija Indi Индија Indien India อินเดีย Hindistan Индия Індія Hindiston Ấn Độ 印度 印度
113 IO الإقليم البريطاني في المحيط الهندي Брытанская тэрыторыя ў Індыйскім акіяне Британска територия в Индийския океан Tiriad breizhveurat Meurvor Indez Britanska Teritorija u Indijskom Okeanu Territori Britànic de l’Oceà Índic Britské indickooceánské území Det Britiske Territorium i Det Indiske Ocean Britisches Territorium im Indischen Ozean Βρετανικά Εδάφη Ινδικού Ωκεανού British Indian Ocean Territory Brita Hindoceana Teritorio Territorio Británico del Océano Índico Briti India ookeani ala Indiako Ozeanoko lurralde britainiarra قلمرو بریتانیا در اقیانوس هند Brittiläinen Intian valtameren alue Territoire britannique de l’océan Indien Territoire britannique de l’océan Indien Críoch Aigéan Indiach na Breataine Ranntair Breatannach Cuan nan Innseachan Territorio Británico do Océano Índico הטריטוריה הבריטית באוקיינוס ההודי Britanski Indijskooceanski teritorij Brit Indiai-óceáni Terület Territorio oceanic britanno-indian Wilayah Inggris di Samudra Hindia Bresku Indlandshafseyjar Territorio britannico dell’Oceano Indiano 英領インド洋地域 영국령 인도양 식민지 British Indian Ocean Territory Инди океанындагы Британ территориясы Indijos Vandenyno Britų Sritis Indijas okeāna Britu teritorija ബ്രിട്ടീഷ് ഇന്ത്യൻ മഹാസമുദ്ര പ്രദേശം Британийн харьяа Энэтхэгийн далай дахь нутаг дэвсгэр Det britiske territoriet i Indiahavet Brits Indische Oceaanterritorium Det britiske territoriet I Indiahavet British Indian Ocean Territory Brytyjskie Terytorium Oceanu Indyjskiego Território Britânico do Oceano Índico Território Britânico do Oceano Índico Teritoriul Britanic din Oceanul Indian Британская территория в Индийском океане Britské indickooceánske územie Britansko ozemlje v Indijskem oceanu Territori Britanik i Oqeanit Indian Британска територија Индијског океана Brittiska territoriet i Indiska oceanen Eneo la Uingereza katika Bahari Hindi บริติชอินเดียนโอเชียนเทร์ริทอรี Britanya Hint Okyanusu Toprakları Британиянең Һинд Океанындагы Территориясе Британська територія в Індійському Океані Britaniyaning Hind okeanidagi hududi Lãnh thổ Ấn Độ Dương thuộc Anh 英属印度洋领地 英屬印度洋領地
114 IQ العراق Ірак Ирак Iraq Irak Iraq Irák Irak Irak Ιράκ Iraq Irako Irak Iraak Irak عراق Irak Irak Irak an Iaráic Ioràc Iraq עיראק Irak Irak Irak Irak Írak Iraq イラク 이라크 Iraq Ирак Irakas Irāka ഇറാഖ് Ирак Irak Irak Irak Iraq Irak Iraque Iraque Irak Ирак Irak Irak Irak Ирак Irak Iraki อิรัก Irak Гыйрак Ірак Iroq Iraq 伊拉克 伊拉克
115 IR إيران Іран Иран Iran Iran Iran Írán Iran Iran Ιράν Iran Irano Irán Iraan Iran ایران Iran Iran Iran an Iaráin Ioràn Irán איראן Iran Irán Iran Iran Íran Iran イラン 이란 Iran Иран Iranas Irāna ഇറാൻ Иран Iran Iran Iran Iran Iran Irã Irã Iran Иран Irán Iran Iran Иран Iran Iran อิหร่าน İran Иран Іран Eron Iran 伊朗 伊朗
116 IS آيسلندا Ісландыя Исландия Island Island Islàndia Island Island Island Ισλανδία Iceland Islando Islandia Island Islandia ایسلند Islanti Islande Islande an Íoslainn Innis Tìle Islandia איסלנד Island Izland Islanda Islandia Ísland Islanda アイスランド 아이슬란드 Iceland Исландия Islandija Islande ഐസ്‌ലാന്റ് Исланд Island IJsland Island Iceland Islandia Islândia Islândia Islanda Исландия Island Islandija Islandë Исланд Island Aisilandi ไอซ์แลนด์ İzlanda Исландия Ісландія Islandiya Iceland 冰岛 冰島
117 IT إيطاليا Італія Италия Italia Italija Itàlia Itálie Italien Italien Ιταλία Italy Italujo Italia Itaalia Italia ایتالیا Italia Italie Italie an Iodáil An Eadailt Italia איטליה Italija Olaszország Italia Italia Ítalía Italia イタリア 이탈리아 Itali Италия Italija Itālija ഇറ്റലി Итали Italia Italië Italia Итали Włochy Itália Itália Italia Италия Taliansko Italija Itali Италија Italien Italia อิตาลี İtalya Италия Італія Italiya Italy 意大利 義大利
118 JE جيرسي Джэрсі Джърси Jerzenez Jersey Jersey Jersey Jersey Jersey Τζέρζι Jersey Jersey Jersey Jersey Jersey جرزی Jersey Jersey Jersey Geirsí Deàrsaidh Jersey ג׳רזי Jersey Jersey Jersey Jersey Jersey Jersey ジャージー 저지 Jersey Жерси Džersis Džērsija ജേഴ്സി Жерси Jersey Jersey Jersey Jersey Jersey Jersey Jersey Jersey Джерси Jersey Jersey Xhersej Џерзи Jersey Jersey เจอร์ซีย์ Jersey Джерси Джерсі Jersi Jersey 泽西岛 澤西島
119 JM جامايكا Ямайка Ямайка Jamaika Jamajka Jamaica Jamajka Jamaica Jamaika Τζαμάικα Jamaica Jamajko Jamaica Jamaica Jamaika جامائیکا Jamaika Jamaïque Jamaïque Iamáice Diameuga Xamaica ג׳מייקה Jamajka Jamaica Jamaica Jamaika Jamaíka Giamaica ジャマイカ 자메이카 Jamaica Ямайка Jamaika Jamaika ജമൈക്ക Ямайка Jamaica Jamaica Jamaica Jamaica Jamajka Jamaica Jamaica Jamaica Ямайка Jamajka Jamajka Xhamajkë Јамајка Jamaica Jamaika จาเมกา Jamaika Ямайка Ямайка Yamayka Jamaica 牙买加 牙買加
120 JO الأردن Іарданія Йордания Jordania Jordan Jordània Jordánsko Jordan Jordanien Ιορδανία Jordan Jordanio Jordania Jordaania Jordania اردن Jordania Jordanie Jordanie an Iordáin Iòrdan Xordania ירדן Jordan Jordánia Jordania Yordania Jórdanía Giordania ヨルダン 요르단 Jordan Иордания Jordanija Jordānija ജോർദ്ദാൻ Йордан Jordan Jordanië Jordan Jordan Jordania Jordânia Jordânia Iordania Иордания Jordánsko Jordanija Jordani Јордан Jordanien Jordan จอร์แดน Ürdün Иордания Йорданія Iordaniya Jordan 约旦 約旦
121 JP اليابان Японія Япония Japan Japan Japó Japonsko Japan Japan Ιαπωνία Japan Japanujo Japón Jaapan Japonia ژاپن Japani Japon Japon an tSeapáin An t-Seapan O Xapón יפן Japan Japán Japon Jepang Japan Giappone 日本 일본 Japan Япония Japonija Japāna ജപ്പാൻ Япон Japan Japan Japan Япон Japonia Japão Japão Japonia Япония Japonsko Japonska Japoni Јапан Japan Japani ญี่ปุ่น Japonya Япония Японія Yaponiya Nhật Bản 日本 日本
122 KE كينيا Кенія Кения Kenya Kenija Kenya Keňa Kenya Kenia Κένυα Kenya Kenjo Kenia Keenia Kenya کنیا Kenia Kenya Kenya an Chéinia Ceinia Kenya קניה Kenija Kenya Kenya Kenya Kenía Kenya ケニア 케냐 Kenya Кения Kenija Kenija കെനിയ Кени Kenya Kenia Kenya Kenya Kenia Quênia Quênia Kenya Кения Keňa Kenija Kenia Кенија Kenya Kenya เคนยา Kenya Кения Кенія Keniya Kenya 肯尼亚 肯亞
123 KG قيرغيزستان Кыргызстан Киргизстан Kyrgyzstan Kirgistan Kirguizistan Kyrgyzstán Kirgisistan Kirgisistan Κιργιστάν Kyrgyzstan Kirgizistano Kirguistán Kõrgõzstan Kirgizistan قرقیزستان Kirgisia Kirghizistan Kirghizistan an Chirgeastáin Cìorgastan Kirguizistán קירגיזסטן Kirgistan Kirgizisztán Kirghizistan Kirgistan Kirgistan Kirghizistan キルギス 키르기스스탄 Kyrgyzstan Кыргызстан Kirgizija Kirgizstāna കിർഗിസ്ഥാൻ Кыргызстан Kirgisistan Kirgizië Kirgisistan Kyrgyzstan Kirgistan Quirguistão Quirguistão Kârgâzstan Киргизия Kirgizsko Kirgizistan Kirgizi Киргистан Kirgizistan Kirigizistani คีร์กีซสถาน Kırgızistan Кыргызстан Киргизстан Qirgʻiziston Kyrgyzstan 吉尔吉斯斯坦 吉爾吉斯
124 KH كمبوديا Камбоджа Камбоджа Kambodja Kambodža Cambodja Kambodža Cambodja Kambodscha Καμπότζη Cambodia Kamboĝo Camboya Kambodža Kanbodia کامبوج Kambodža Cambodge Cambodge an Chambóid Cambuidea Camboxa קמבודיה Kambodža Kambodzsa Cambodgia Kamboja Kambódía Cambogia カンボジア 캄보디아 Cambodia Камбоджа Kambodža Kambodža കംബോഡിയ Камбож Kambodsja Cambodja Kambodsja Cambodia Kambodża Camboja Camboja Cambodgia Камбоджа Kambodža Kambodža Kamboxhia Камбоџа Kambodja Kambodia กัมพูชา Kamboçya Камбоджа Камбоджа Kambodja Campuchia 柬埔寨 柬埔寨
125 KI كيريباتي Кірыбаці Кирибати Kiribati Kiribati Kiribati Kiribati Kiribati Kiribati Κιριμπάτι Kiribati Kiribato Kiribati Kiribati Kiribati کیریباتی Kiribati Kiribati Kiribati Cireabaití Ciribeas Kiribati קיריבאטי Kiribati Kiribati Kiribati Kiribati Kíribatí Kiribati キリバス 키리바시 Kiribati Кирибати Kiribatis Kiribati കിരിബാട്ടി Кирибати Kiribati Kiribati Kiribati Kiribati Kiribati Quiribati Quiribati Kiribati Кирибати Kiribati Kiribati Kiribati Кирибати Kiribati Kiribati คิริบาส Kiribati Кирибати Кірібаті Kiribati Kiribati 基里巴斯 吉里巴斯
126 KM جزر القمر Каморскія астравы Коморски острови Komorez Komori Comores Komory Comorerne Komoren Κομόρες Comoros Komoroj Comoras Komoorid Komoreak کومور Komorit Comores Comores Oileáin Chomóra Comoros Comores קומורו Komori Comore-szigetek Comoros Komoro Kómoreyjar Comore コモロ 코모로 Comoros Коморос Komorai Komoru salas കോമൊറോസ് Коморын арлууд Komorene Comoren Komorane Comoros Komory Comores Comores Comore Коморы Komory Komori Komore Коморска Острва Komorerna Komoro คอโมโรส Komorlar Комор утраулары Комори Komor orollari Comoros 科摩罗 葛摩
127 KN سانت كيتس ونيفيس Сент-Кітс і Невіс Сейнт Китс и Невис Saint Kitts ha Nevis Sveti Kits i Nevis Saint Christopher i Nevis Svatý Kryštof a Nevis Saint Kitts og Nevis St. Kitts und Nevis Σεν Κιτς και Νέβις St. Kitts & Nevis Sent-Kristofo kaj Neviso San Cristóbal y Nieves Saint Kitts ja Nevis Saint Kitts eta Nevis سنت کیتس و نویس Saint Kitts ja Nevis Saint-Christophe-et-Niévès Saint-Christophe-et-Niévès San Críostóir-Nimheas Naomh Crìstean is Nibheis Saint Kitts e Nevis סנט קיטס ונוויס Sveti Kristofor i Nevis Saint Kitts és Nevis Sancte Christophoro e Nevis Saint Kitts dan Nevis Sankti Kitts og Nevis Saint Kitts e Nevis セントクリストファー・ネーヴィス 세인트키츠 네비스 St. Kitts & Nevis Сент-Китс жана Невис Sent Kitsas ir Nevis Sentkitsa un Nevisa സെന്റ് കിറ്റ്‌സും നെവിസും Сент-Киттс ба Невис Saint Kitts og Nevis Saint Kitts en Nevis Saint Kitts og Nevis St. Kitts & Nevis Saint Kitts i Nevis São Cristóvão e Névis São Cristóvão e Névis Saint Kitts și Nevis Сент-Китс и Невис Svätý Krištof a Nevis Saint Kitts in Nevis Shën-Kits dhe Nevis Сент Китс и Невис S:t Kitts och Nevis St. Kitts na Nevis เซนต์คิตส์และเนวิส Saint Kitts ve Nevis Сент-Китс һәм Невис Сент-Кітс і Невіс Sent-Kits va Nevis St. Kitts và Nevis 圣基茨和尼维斯 聖克里斯多福及尼維斯
128 KP كوريا الشمالية Паўночная Карэя Северна Корея Korea an Norzh Sjeverna Koreja Corea del Nord Severní Korea Nordkorea Nordkorea Βόρεια Κορέα North Korea Nord-Koreo Corea del Norte Põhja-Korea Ipar Korea کرهٔ شمالی Pohjois-Korea Corée du Nord Corée du Nord an Chóiré Thuaidh Coirèa a Tuath Corea do Norte קוריאה הצפונית Sjeverna Koreja Észak-Korea Corea del Nord Korea Utara Norður-Kórea Corea del Nord 北朝鮮 북한 North Korea Түндүк Корея Šiaurės Korėja Ziemeļkoreja ഉത്തരകൊറിയ Хойд Солонгос Nord-Korea Noord-Korea Nord-Korea North Korea Korea Północna Coreia do Norte Coreia do Norte Coreea de Nord КНДР Severná Kórea Severna Koreja Kore e Veriut Северна Кореја Nordkorea Korea Kaskazini เกาหลีเหนือ Kuzey Kore Төньяк Корея Північна Корея Shimoliy Koreya Triều Tiên 朝鲜 北韓
129 KR كوريا الجنوبية Паўднёвая Карэя Южна Корея Korea ar Su Južna Koreja Corea del Sud Jižní Korea Sydkorea Südkorea Νότια Κορέα South Korea Sud-Koreo Corea del Sur Lõuna-Korea Hego Korea کرهٔ جنوبی Etelä-Korea Corée du Sud Corée du Sud an Chóiré Theas Coirèa Corea do Sur קוריאה הדרומית Južna Koreja Dél-Korea Corea del Sud Korea Selatan Suður-Kórea Corea del Sud 韓国 대한민국 South Korea Түштүк Корея Pietų Korėja Dienvidkoreja ദക്ഷിണകൊറിയ Өмнөд Солонгос Sør-Korea Zuid-Korea Sør-Korea South Korea Korea Południowa Coreia do Sul Coreia do Sul Coreea de Sud Республика Корея Južná Kórea Južna Koreja Kore e Jugut Јужна Кореја Sydkorea Korea Kusini เกาหลีใต้ Güney Kore South Korea Південна Корея Janubiy Koreya Hàn Quốc 韩国 南韓
130 KW الكويت Кувейт Кувейт Koweit Kuvajt Kuwait Kuvajt Kuwait Kuwait Κουβέιτ Kuwait Kuvajto Kuwait Kuveit Kuwait کویت Kuwait Koweït Koweït Cuáit Cuibhèit Kuwait כווית Kuvajt Kuvait Kuwait Kuwait Kúveit Kuwait クウェート 쿠웨이트 Kuwait Кувейт Kuveitas Kuveita കുവൈറ്റ് Кувейт Kuwait Koeweit Kuwait Kuwait Kuwejt Kuwait Kuwait Kuweit Кувейт Kuvajt Kuvajt Kuvajt Кувајт Kuwait Kuwait คูเวต Kuveyt Күвәйт Кувейт Quvayt Kuwait 科威特 科威特
131 KY جزر كايمان Кайманавы астравы Кайманови острови Inizi Cayman Kajmanska ostrva Illes Caiman Kajmanské ostrovy Caymanøerne Kaimaninseln Νήσοι Κέιμαν Cayman Islands Kejmanoj Islas Caimán Kaimanisaared Kaiman uharteak جزایر کِیمن Caymansaaret Îles Caïmans Îles Caïmans Oileáin Cayman Na h-Eileanan Caimean Illas Caimán איי קיימן Kajmanski otoci Kajmán-szigetek Insulas de Caiman Kepulauan Cayman Caymaneyjar Isole Cayman ケイマン諸島 케이맨 제도 Cayman Islands Кайман аралдары Kaimanų Salos Kaimanu salas കേയ്മാൻ ദ്വീപുകൾ Кайманы арлууд Caymanøyene Kaaimaneilanden Caymanøyane Cayman Islands Kajmany Ilhas Cayman Ilhas Cayman Insulele Cayman Острова Кайман Kajmanie ostrovy Kajmanski otoki Ishujt Kajman Кајманска Острва Caymanöarna Visiwa vya Cayman หมู่เกาะเคย์แมน Cayman Adaları Кайман утраулары Кайманові Острови Kayman orollari Quần đảo Cayman 开曼群岛 開曼群島
132 KZ كازاخستان Казахстан Казахстан Kazakstan Kazahstan Kazakhstan Kazachstán Kasakhstan Kasachstan Καζακστάν Kazakhstan Kazaĥstano Kazajistán Kasahstan Kazakhstan قزاقستان Kazakstan Kazakhstan Kazakhstan an Chasacstáin Casachstàn Kazakistán קזחסטן Kazahstan Kazahsztán Kazakhstan Kazakstan Kasakstan Kazakistan カザフスタン 카자흐스탄 Kazakhstan Казакстан Kazachstanas Kazahstāna കസാഖിസ്ഥാൻ Казахстан Kasakhstan Kazachstan Kasakhstan Kazakhstan Kazachstan Cazaquistão Cazaquistão Kazahstan Казахстан Kazachstan Kazahstan Kazakistan Казахстан Kazakstan Kazakistani คาซัคสถาน Kazakistan Казахстан Казахстан Qozogʻiston Kazakhstan 哈萨克斯坦 哈薩克
133 LA لاوس Лаос Лаос Laos Laos Laos Laos Laos Laos Λάος Laos Laoso Laos Laos Laos لائوس Laos Laos Laos Laos Làthos Laos לאוס Laos Laosz Laos Laos Laos Laos ラオス 라오스 Laos Лаос Laosas Laosa ലാവോസ് Лаос Laos Laos Laos Laos Laos Laos Laos Laos Лаос Laos Laos Laos Лаос Laos Laos ลาว Laos Лаос Лаос Laos Lào 老挝 寮國
134 LB لبنان Ліван Ливан Liban Liban Líban Libanon Libanon Libanon Λίβανος Lebanon Libano Líbano Liibanon Libano لبنان Libanon Liban Liban an Liobáin Leabanon O Líbano לבנון Libanon Libanon Libano Lebanon Líbanon Libano レバノン 레바논 Lebanon Ливан Libanas Libāna ലെബനൻ Ливан Libanon Libanon Libanon Lebanon Liban Líbano Líbano Liban Ливан Libanon Libanon Liban Либан Libanon Lebanon เลบานอน Lübnan Ливан Ліван Livan Li-băng 黎巴嫩 黎巴嫩
135 LC سانت لوسيا Сент-Люсія Сейнт Лусия Saint Lucia Sveta Lucija Saint Lucia Svatá Lucie Saint Lucia St. Lucia Αγία Λουκία St. Lucia Sent-Lucio Santa Lucía Saint Lucia Santa Luzia سنت لوسیا Saint Lucia Sainte-Lucie Sainte-Lucie Saint Lucia Naomh Lùisea Santa Lucía סנט לוסיה Sveta Lucija Saint Lucia Sancte Lucia Saint Lucia Sankti Lúsía Saint Lucia セントルシア 세인트루시아 St. Lucia Сент-Люсия Sent Lusija Sentlūsija സെന്റ് ലൂസിയ Сент Люсиа St. Lucia Saint Lucia St. Lucia St. Lucia Saint Lucia Santa Lúcia Santa Lúcia Sfânta Lucia Сент-Люсия Svätá Lucia Saint Lucia Shën-Luçia Света Луција S:t Lucia St. Lucia เซนต์ลูเซีย Saint Lucia Сент-Люсия Сент-Люсія Sent-Lyusiya St. Lucia 圣卢西亚 聖露西亞
136 LI ليختنشتاين Ліхтэнштэйн Лихтенщайн Liechtenstein Lihtenštajn Liechtenstein Lichtenštejnsko Liechtenstein Liechtenstein Λιχτενστάιν Liechtenstein Liĥtenŝtejno Liechtenstein Liechtenstein Liechtenstein لیختن‌اشتاین Liechtenstein Liechtenstein Liechtenstein Lichtinstéin Lichtenstein Liechtenstein ליכטנשטיין Lihtenštajn Liechtenstein Liechtenstein Liechtenstein Liechtenstein Liechtenstein リヒテンシュタイン 리히텐슈타인 Liechtenstein Лихтенштейн Lichtenšteinas Lihtenšteina ലിച്ചൺസ്റ്റൈൻ Лихтенштейн Liechtenstein Liechtenstein Liechtenstein Liechtenstein Liechtenstein Liechtenstein Liechtenstein Liechtenstein Лихтенштейн Lichtenštajnsko Lihtenštajn Lihtenshtajn Лихтенштајн Liechtenstein Liechtenstein ลิกเตนสไตน์ Liechtenstein Лихтенштейн Ліхтенштейн Lixtenshteyn Liechtenstein 列支敦士登 列支敦斯登
137 LK سريلانكا Шры-Ланка Шри Ланка Sri Lanka Šri Lanka Sri Lanka Srí Lanka Sri Lanka Sri Lanka Σρι Λάνκα Sri Lanka Sri-Lanko Sri Lanka Sri Lanka Sri Lanka سری‌لانکا Sri Lanka Sri Lanka Sri Lanka Srí Lanca Sri Lanca Sri Lanka סרי לנקה Šri Lanka Srí Lanka Sri Lanka Sri Lanka Srí Lanka Sri Lanka スリランカ 스리랑카 Sri Lanka Шри-Ланка Šri Lanka Šrilanka ശ്രീലങ്ക Шри-Ланка Sri Lanka Sri Lanka Sri Lanka Sri Lanka Sri Lanka Sri Lanka Sri Lanka Sri Lanka Шри-Ланка Srí Lanka Šrilanka Sri-Lankë Шри Ланка Sri Lanka Sri Lanka ศรีลังกา Sri Lanka Шри-Ланка Шрі-Ланка Shri-Lanka Sri Lanka 斯里兰卡 斯里蘭卡
138 LR ليبيريا Ліберыя Либерия Liberia Liberija Libèria Libérie Liberia Liberia Λιβερία Liberia Liberio Liberia Libeeria Liberia لیبریا Liberia Libéria Libéria an Libéir Libèir Liberia ליבריה Liberija Libéria Liberia Liberia Líbería Liberia リベリア 라이베리아 Liberia Либерия Liberija Libērija ലൈബീരിയ Либери Liberia Liberia Liberia Liberia Liberia Libéria Libéria Liberia Либерия Libéria Liberija Liberi Либерија Liberia Liberia ไลบีเรีย Liberya Либерия Ліберія Liberiya Liberia 利比里亚 賴比瑞亞
139 LS ليسوتو Лесота Лесото Lesotho Lesoto Lesotho Lesotho Lesotho Lesotho Λεσότο Lesotho Lesoto Lesoto Lesotho Lesotho لسوتو Lesotho Lesotho Lesotho Leosóta Leasoto Lesotho לסוטו Lesoto Lesotho Lesotho Lesotho Lesótó Lesotho レソト 레소토 Lesotho Лесото Lesotas Lesoto ലെസോതോ Лесото Lesotho Lesotho Lesotho Lesotho Lesotho Lesoto Lesoto Lesotho Лесото Lesotho Lesoto Lesoto Лесото Lesotho Lesoto เลโซโท Lesotho Лесото Лесото Lesoto Lesotho 莱索托 賴索托
140 LT ليتوانيا Літва Литва Lituania Litvanija Lituània Litva Litauen Litauen Λιθουανία Lithuania Litovujo Lituania Leedu Lituania لیتوانی Liettua Lituanie Lituanie an Liotuáin An Liotuain Lituania ליטא Litva Litvánia Lituania Lituania Litháen Lituania リトアニア 리투아니아 Lithuania Литва Lietuva Lietuva ലിത്വാനിയ Литва Litauen Litouwen Litauen Lithuania Litwa Lituânia Lituânia Lituania Литва Litva Litva Lituani Литванија Litauen Lithuania ลิทัวเนีย Litvanya Литва Литва Litva Litva 立陶宛 立陶宛
141 LU لوكسمبورغ Люксембург Люксембург Luksembourg Luksemburg Luxemburg Lucembursko Luxembourg Luxemburg Λουξεμβούργο Luxembourg Luksemburgo Luxemburgo Luksemburg Luxenburgo لوکزامبورگ Luxemburg Luxembourg Luxembourg Lucsamburg Lugsamburg Luxemburgo לוקסמבורג Luksemburg Luxemburg Luxemburg Luksemburg Lúxemborg Lussemburgo ルクセンブルク 룩셈부르크 Luxembourg Люксембург Liuksemburgas Luksemburga ലക്സംബർഗ് Люксембург Luxemburg Luxemburg Luxembourg Luxembourg Luksemburg Luxemburgo Luxemburgo Luxemburg Люксембург Luxembursko Luksemburg Luksemburg Луксембург Luxemburg Luxembourg ลักเซมเบิร์ก Lüksemburg Люксембург Люксембурґ Lyuksemburg Luxembourg 卢森堡 盧森堡
142 LV لاتفيا Латвія Латвия Latvia Latvija Letònia Lotyšsko Letland Lettland Λετονία Latvia Latvujo Letonia Läti Letonia لتونی Latvia Lettonie Lettonie an Laitvia An Laitbhe Letonia לטביה Latvija Lettország Lettonia Latvia Lettland Lettonia ラトビア 라트비아 Latvia Латвия Latvija Latvija ലാറ്റ്വിയ Латви Latvia Letland Latvia Latvia Łotwa Letônia Letônia Letonia Латвия Lotyšsko Latvija Letoni Летонија Lettland Latvia ลัตเวีย Letonya Латвия Латвія Latviya Latvia 拉脱维亚 拉脫維亞
143 LY ليبيا Лівія Либия Libia Libija Líbia Libye Libyen Libyen Λιβύη Libya Libio Libia Liibüa Libia لیبی Libya Libye Libye an Libia Libia Libia לוב Libija Líbia Libya Libia Líbía Libia リビア 리비아 Libya Ливия Libija Lībija ലിബിയ Ливи Libya Libië Libya Libya Libia Líbia Líbia Libia Ливия Líbya Libija Libi Либија Libyen Libya ลิเบีย Libya Ливия Лівія Liviya Libya 利比亚 利比亞
144 MA المغرب Марока Мароко Maroko Maroko Marroc Maroko Marokko Marokko Μαρόκο Morocco Maroko Marruecos Maroko Maroko مراکش Marokko Maroc Maroc Maracó Moroco Marrocos מרוקו Maroko Marokkó Marocco Maroko Marokkó Marocco モロッコ 모로코 Morocco Марокко Marokas Maroka മൊറോക്കൊ Морокко Marokko Marokko Marokko Morocco Maroko Marrocos Marrocos Maroc Марокко Maroko Maroko Marok Мароко Marocko Morocco โมร็อกโก Fas Марокко Марокко Marokash Ma-rốc 摩洛哥 摩洛哥
145 MC موناكو Манака Монако Monaco Monako Mònaco Monako Monaco Monaco Μονακό Monaco Monako Mónaco Monaco Monako موناکو Monaco Monaco Monaco Monacó Monaco Mónaco מונקו Monako Monaco Monaco Monako Mónakó Monaco モナコ 모나코 Monaco Монако Monakas Monako മൊണാക്കോ Монако Monaco Monaco Monaco Monaco Monako Mônaco Mônaco Monaco Монако Monako Monako Monako Монако Monaco Monaco โมนาโก Monako Монако Монако Monako Monaco 摩纳哥 摩納哥
146 MD مولدوفا Малдова Молдова Moldova Moldavija Moldàvia Moldavsko Moldova Republik Moldau Μολδαβία Moldova Moldavujo Moldavia Moldova Moldavia مولداوی Moldova Moldavie Moldavie an Mholdóiv A’ Mholdobha Moldavia מולדובה Moldavija Moldova Moldavia Moldova Moldóva Moldavia モルドバ 몰도바 Moldova Молдова Moldova Moldova മൾഡോവ Молдова Moldova Moldavië Moldova Moldova Mołdawia Moldova Moldova Republica Moldova Молдова Moldavsko Moldavija Moldavi Молдавија Moldavien Moldova มอลโดวา Moldova Молдова Молдова Moldova Moldova 摩尔多瓦 摩爾多瓦
147 ME الجبل الأسود Чарнагорыя Черна гора Montenegro Crna Gora Montenegro Černá Hora Montenegro Montenegro Μαυροβούνιο Montenegro Montenegro Montenegro Montenegro Montenegro مونته‌نگرو Montenegro Monténégro Monténégro Montainéagró Am Monadh Neagrach Montenegro מונטנגרו Crna Gora Montenegró Montenegro Montenegro Svartfjallaland Montenegro モンテネグロ 몬테네그로 Montenegro Черногория Juodkalnija Melnkalne മോണ്ടെനെഗ്രോ Монтенегро Montenegro Montenegro Montenegro Montenegro Czarnogóra Montenegro Montenegro Muntenegru Черногория Čierna Hora Črna gora Mal i Zi Црна Гора Montenegro Montenegro มอนเตเนโกร Karadağ Черногория Чорногорія Chernogoriya Montenegro 黑山 蒙特內哥羅
148 MF سان مارتن Сен-Мартэн Сен Мартен Saint Martin Sveti Martin Saint Martin Svatý Martin (Francie) Saint Martin St. Martin Άγιος Μαρτίνος (Γαλλικό τμήμα) St. Martin St. Martin San Martín Saint-Martin San Martin سنت مارتین Saint-Martin Saint-Martin Saint-Martin Saint-Martin Naomh Màrtainn Saint Martin סן מרטן Saint Martin Saint Martin St. Martin Saint Martin Saint-Martin Saint Martin サン・マルタン 생마르탱 St. Martin Сент-Мартин Sen Martenas Senmartēna സെന്റ് മാർട്ടിൻ Сент-Мартин Saint-Martin Saint-Martin Saint Martin St. Martin Saint-Martin São Martinho São Martinho Sfântul Martin Сен-Мартен Svätý Martin (fr.) Saint Martin Sen-Marten Свети Мартин (Француска) Saint-Martin St. Martin เซนต์มาร์ติน Saint Martin Сент-Мартин Сен-Мартен Sent-Martin St. Martin 法属圣马丁 法屬聖馬丁
149 MG مدغشقر Мадагаскар Мадагаскар Madagaskar Madagaskar Madagascar Madagaskar Madagaskar Madagaskar Μαδαγασκάρη Madagascar Madagaskaro Madagascar Madagaskar Madagaskar ماداگاسکار Madagaskar Madagascar Madagascar Madagascar Madagasgar Madagascar מדגסקר Madagaskar Madagaszkár Madagascar Madagaskar Madagaskar Madagascar マダガスカル 마다가스카르 Madagascar Мадагаскар Madagaskaras Madagaskara മഡഗാസ്കർ Мадагаскар Madagaskar Madagaskar Madagaskar Madagascar Madagaskar Madagascar Madagascar Madagascar Мадагаскар Madagaskar Madagaskar Madagaskar Мадагаскар Madagaskar Madagaska มาดากัสการ์ Madagaskar Мадагаскар Мадагаскар Madagaskar Madagascar 马达加斯加 馬達加斯加
150 MH جزر مارشال Маршалавы астравы Маршалови острови Inizi Marshall Maršalova ostrva Illes Marshall Marshallovy ostrovy Marshalløerne Marshallinseln Νήσοι Μάρσαλ Marshall Islands Marŝaloj Islas Marshall Marshalli Saared Marshall Uharteak جزایر مارشال Marshallinsaaret Îles Marshall Îles Marshall Oileáin Marshall Eileanan Mharshall Illas Marshall איי מרשל Maršalovi Otoci Marshall-szigetek Insulas Marshall Kepulauan Marshall Marshalleyjar Isole Marshall マーシャル諸島 마셜 제도 Marshall Islands Маршалл аралдары Maršalo Salos Māršala salas മാർഷൽ ദ്വീപുകൾ Маршаллын арлууд Marshalløyene Marshalleilanden Marshalløyane Marshall Islands Wyspy Marshalla Ilhas Marshall Ilhas Marshall Insulele Marshall Маршалловы Острова Marshallove ostrovy Marshallovi otoki Ishujt Marshall Маршалска Острва Marshallöarna Visiwa vya Marshall หมู่เกาะมาร์แชลล์ Marshall Adaları Маршалл утраулары Маршаллові Острови Marshall orollari Quần đảo Marshall 马绍尔群岛 馬紹爾群島
151 MK مقدونيا الشمالية Паўночная Македонія Северна Македония Makedonia an Norzh Sjeverna Makedonija Macedònia del Nord Severní Makedonie Nordmakedonien Nordmazedonien Βόρεια Μακεδονία North Macedonia North Macedonia Macedonia del Norte Põhja-Makedoonia Ipar Mazedonia مقدونیهٔ شمالی Pohjois-Makedonia Macédoine du Nord Macédoine du Nord an Mhacadóin Thuaidh A’ Mhasadon a Tuath Macedonia do Norte מקדוניה הצפונית Sjeverna Makedonija Észak-Macedónia Macedonia Makedonia Utara Norður-Makedónía Macedonia del Nord 北マケドニア 북마케도니아 North Macedonia Түндүк Македония Šiaurės Makedonija Ziemeļmaķedonija നോർത്ത് മാസിഡോണിയ Хойд Македон Nord-Makedonia Noord-Macedonië Nord-Makedonia North Macedonia Macedonia Północna Macedônia do Norte Macedônia do Norte Macedonia de Nord Северная Македония Severné Macedónsko Severna Makedonija Maqedonia e Veriut Северна Македонија Nordmakedonien Masedonia ya Kaskazini มาซิโดเนียเหนือ Kuzey Makedonya Төньяк Македония Північна Македонія Shimoliy Makedoniya Bắc Macedonia 北马其顿 北馬其頓
152 ML مالي Малі Мали Mali Mali Mali Mali Mali Mali Μάλι Mali Malio Mali Mali Mali مالی Mali Mali Mali Mailí Màili Malí מאלי Mali Mali Mali Mali Malí Mali マリ 말리 Mali Мали Malis Mali മാലി Мали Mali Mali Mali Mali Mali Mali Mali Mali Мали Mali Mali Mali Мали Mali Mali มาลี Mali Мали Малі Mali Mali 马里 馬利
153 MM ميانمار (بورما) М’янма (Бірма) Мианмар (Бирма) Myanmar (Birmania) Mjanmar Myanmar (Birmània) Myanmar (Barma) Myanmar (Burma) Myanmar Μιανμάρ (Βιρμανία) Myanmar (Burma) Mjanmao Myanmar (Birmania) Myanmar (Birma) Myanmar (Birmania) میانمار (برمه) Myanmar (Burma) Myanmar (Birmanie) Myanmar (Birmanie) Maenmar (Burma) Miànmar Myanmar (Birmania) מיאנמר (בורמה) Mjanmar (Burma) Mianmar Birmania/Myanmar Myanmar (Burma) Mjanmar (Búrma) Myanmar (Birmania) ミャンマー (ビルマ) 미얀마 Myanmar (Burma) Мьянма (Бирма) Mianmaras (Birma) Mjanma (Birma) മ്യാൻമാർ (ബർമ്മ) Мьянмар Myanmar (Burma) Myanmar (Birma) Myanmar (Burma) Myanmar (Burma) Mjanma (Birma) Mianmar (Birmânia) Mianmar (Birmânia) Myanmar (Birmania) Мьянма (Бирма) Mjanmarsko Mjanmar (Burma) Mianmar (Burmë) Мијанмар (Бурма) Myanmar (Burma) Myanmar (Burma) เมียนมาร์ (พม่า) Myanmar (Burma) Myanmar (Burma) Мʼянма (Бірма) Myanma (Birma) Myanmar (Miến Điện) 缅甸 緬甸
154 MN منغوليا Манголія Монголия Mongolia Mongolija Mongòlia Mongolsko Mongoliet Mongolei Μογγολία Mongolia Mongolujo Mongolia Mongoolia Mongolia مغولستان Mongolia Mongolie Mongolie an Mhongóil Dùthaich nam Mongol Mongolia מונגוליה Mongolija Mongólia Mongolia Mongolia Mongólía Mongolia モンゴル 몽골 Mongolia Монголия Mongolija Mongolija മംഗോളിയ Монгол Mongolia Mongolië Mongolia Mongolia Mongolia Mongólia Mongólia Mongolia Монголия Mongolsko Mongolija Mongoli Монголија Mongoliet Mongolia มองโกเลีย Moğolistan Монголия Монголія Mongoliya Mông Cổ 蒙古 蒙古
155 MO مكاو Макаа Макао Macau Makao Macau Macao Macao Macau Μακάο Macao Macao Macao Macau Macau ماکائو Macao Macao Macao Macao Macàthu Macau מקאו Makao Makaó Macao Makau Makaó Macao マカオ 마카오 Macao Макау Makao Makao മക്കാവു Макао Macao Macau Macao Macao Makau Macau Macau Macao Макао Macao Macao Makao Макао Macao Makau มาเก๊า Makao Макао Макао Makao Macao 澳门 澳門
156 MP جزر ماريانا الشمالية Паўночныя Марыянскія астравы Северни Мариански острови Inizi Mariana an Norzh Sjeverna Marijanska ostrva Illes Mariannes del Nord Severní Mariany Nordmarianerne Nördliche Marianen Νήσοι Βόρειες Μαριάνες Northern Mariana Islands Nord-Marianoj Islas Marianas del Norte Põhja-Mariaanid Ipar Mariana uharteak جزایر ماریانای شمالی Pohjois-Mariaanit Îles Mariannes du Nord Îles Mariannes du Nord na hOileáin Mháirianacha Thuaidh Na h-Eileanan Mairianach a Tuath Illas Marianas do Norte איי מריאנה הצפוניים Sjevernomarijanski otoci Északi Mariana-szigetek Insulas Marianna del Nord Kepulauan Mariana Utara Norður-Maríanaeyjar Isole Marianne settentrionali 北マリアナ諸島 북마리아나제도 Northern Mariana Islands Түндүк Мариана аралдары Marianos Šiaurinės Salos Ziemeļu Marianas salas ഉത്തര മറിയാനാ ദ്വീപുകൾ Хойд Марианы арлууд Nord-Marianene Noordelijke Marianen Nord-Marianane Northern Mariana Islands Mariany Północne Ilhas Marianas do Norte Ilhas Marianas do Norte Insulele Mariane de Nord Северные Марианские о-ва Severné Mariány Severni Marianski otoki Ishujt e Marianës Veriore Северна Маријанска Острва Nordmarianerna Visiwa vya Mariana vya Kaskazini หมู่เกาะนอร์เทิร์นมาเรียนา Kuzey Mariana Adaları Төньяк Мариана утраулары Північні Маріанські Острови Shimoliy Mariana orollari Quần đảo Bắc Mariana 北马里亚纳群岛 北馬利安納群島
157 MQ جزر المارتينيك Марцініка Мартиника Martinik Martinik Martinica Martinik Martinique Martinique Μαρτινίκα Martinique Martiniko Martinica Martinique Martinika مارتینیک Martinique Martinique Martinique Martinique Mairtinic Martinica מרטיניק Martinique Martinique Martinique Martinik Martiník Martinica マルティニーク 마르티니크 Martinique Мартиника Martinika Martinika മാർട്ടിനിക്ക് Мартиник Martinique Martinique Martinique Martinique Martynika Martinica Martinica Martinica Мартиника Martinik Martinik Martinikë Мартиник Martinique Martinique มาร์ตินีก Martinik Мартиника Мартініка Martinika Martinique 马提尼克 馬丁尼克
158 MR موريتانيا Маўрытанія Мавритания Maouritania Mauritanija Mauritània Mauritánie Mauretanien Mauretanien Μαυριτανία Mauritania Maŭritanujo Mauritania Mauritaania Mauritania موریتانی Mauritania Mauritanie Mauritanie an Mháratáin Moratàinea Mauritania מאוריטניה Mauretanija Mauritánia Mauritania Mauritania Máritanía Mauritania モーリタニア 모리타니 Mauritania Мавритания Mauritanija Mauritānija മൗറിറ്റാനിയ Мавритани Mauritania Mauritanië Mauritania Mauritania Mauretania Mauritânia Mauritânia Mauritania Мавритания Mauritánia Mavretanija Mauritani Мауританија Mauretanien Moritania มอริเตเนีย Moritanya Мавритания Мавританія Mavritaniya Mauritania 毛里塔尼亚 茅利塔尼亞
159 MS مونتسرات Мантсерат Монтсерат Montserrat Monserat Montserrat Montserrat Montserrat Montserrat Μονσεράτ Montserrat Montserrat Montserrat Montserrat Montserrat مونت‌سرات Montserrat Montserrat Montserrat Montsarat Montsarat Montserrat מונסראט Montserrat Montserrat Montserrat Montserrat Montserrat Montserrat モントセラト 몬트세라트 Montserrat Монтсеррат Montseratas Montserrata മൊണ്ടെസരത്ത് Монтсеррат Montserrat Montserrat Montserrat Montserrat Montserrat Montserrat Montserrat Montserrat Монтсеррат Montserrat Montserrat Montserat Монсерат Montserrat Montserrat มอนต์เซอร์รัต Montserrat Монтсеррат Монтсеррат Montserrat Montserrat 蒙特塞拉特 蒙哲臘
160 MT مالطا Мальта Малта Malta Malta Malta Malta Malta Malta Μάλτα Malta Malto Malta Malta Malta مالت Malta Malte Malte Málta Malta Malta מלטה Malta Málta Malta Malta Malta Malta マルタ 몰타 Malta Мальта Malta Malta മാൾട്ട Мальта Malta Malta Malta Malta Malta Malta Malta Malta Мальта Malta Malta Maltë Малта Malta Malta มอลตา Malta Мальта Мальта Malta Malta 马耳他 馬爾他
161 MU موريشيوس Маўрыкій Мавриций Moris Mauricijus Maurici Mauricius Mauritius Mauritius Μαυρίκιος Mauritius Maŭricio Mauricio Mauritius Maurizio موریس Mauritius Maurice Maurice Oileán Mhuirís Na h-Eileanan Mhoiriseas Mauricio מאוריציוס Mauricijus Mauritius Mauritius Mauritius Máritíus Mauritius モーリシャス 모리셔스 Mauritius Маврикий Mauricijus Maurīcija മൗറീഷ്യസ് Маврикий Mauritius Mauritius Mauritius Mauritius Mauritius Maurício Maurício Mauritius Маврикий Maurícius Mauritius Mauritius Маурицијус Mauritius Morisi มอริเชียส Mauritius Маврикий Маврікій Mavrikiy Mauritius 毛里求斯 模里西斯
162 MV جزر المالديف Мальдывы Малдиви Maldivez Maldivi Maldives Maledivy Maldiverne Malediven Μαλδίβες Maldives Maldivoj Maldivas Maldiivid Maldivak مالدیو Malediivit Maldives Maldives Oileáin Mhaildíve Na h-Eileanan Mhaladaibh Maldivas האיים המלדיביים Maldivi Maldív-szigetek Maldives Maladewa Maldíveyjar Maldive モルディブ 몰디브 Maldives Мальдив Maldyvai Maldīvija മാലിദ്വീപ് Мальдив Maldivene Maldiven Maldivane Maldives Malediwy Maldivas Maldivas Maldive Мальдивы Maldivy Maldivi Maldive Малдиви Maldiverna Maldives มัลดีฟส์ Maldivler Мальдив утраулары Мальдіви Maldiv orollari Maldives 马尔代夫 馬爾地夫
163 MW ملاوي Малаві Малави Malawi Malavi Malawi Malawi Malawi Malawi Μαλάουι Malawi Malavio Malaui Malawi Malawi مالاوی Malawi Malawi Malawi an Mhaláiv Malabhaidh Malawi מלאווי Malavi Malawi Malawi Malawi Malaví Malawi マラウイ 말라위 Malawi Малави Malavis Malāvija മലാവി Малави Malawi Malawi Malawi Malawi Malawi Malaui Malaui Malawi Малави Malawi Malavi Malavi Малави Malawi Malawi มาลาวี Malavi Малави Малаві Malavi Malawi 马拉维 馬拉威
164 MX المكسيك Мексіка Мексико Mecʼhiko Meksiko Mèxic Mexiko Mexico Mexiko Μεξικό Mexico Meksiko México Mehhiko Mexiko مکزیک Meksiko Mexique Mexique Meicsiceo Meagsago México מקסיקו Meksiko Mexikó Mexico Meksiko Mexíkó Messico メキシコ 멕시코 Mexico Мексика Meksika Meksika മെക്സിക്കോ Мексик Mexico Mexico Mexico Mexico Meksyk México México Mexic Мексика Mexiko Mehika Meksikë Мексико Mexiko Meksiko เม็กซิโก Meksika Мексика Мексика Meksika Mexico 墨西哥 墨西哥
165 MY ماليزيا Малайзія Малайзия Malaysia Malezija Malàisia Malajsie Malaysia Malaysia Μαλαισία Malaysia Malajzio Malasia Malaisia Malaysia مالزی Malesia Malaisie Malaisie an Mhalaeisia Malaidhsea Malaisia מלזיה Malezija Malajzia Malaysia Malaysia Malasía Malaysia マレーシア 말레이시아 Malaysia Малайзия Malaizija Malaizija മലേഷ്യ Малайз Malaysia Maleisië Malaysia Malaysia Malezja Malásia Malásia Malaysia Малайзия Malajzia Malezija Malajzi Малезија Malaysia Malesia มาเลเซีย Malezya Малайзия Малайзія Malayziya Malaysia 马来西亚 馬來西亞
166 MZ موزمبيق Мазамбік Мозамбик Mozambik Mozambik Moçambic Mosambik Mozambique Mosambik Μοζαμβίκη Mozambique Mozambiko Mozambique Mosambiik Mozambike موزامبیک Mosambik Mozambique Mozambique Mósaimbíc Mòsaimbic Mozambique מוזמביק Mozambik Mozambik Mozambique Mozambik Mósambík Mozambico モザンビーク 모잠비크 Mozambique Мозамбик Mozambikas Mozambika മൊസാംബിക്ക് Мозамбик Mosambik Mozambique Mosambik Mozambique Mozambik Moçambique Moçambique Mozambic Мозамбик Mozambik Mozambik Mozambik Мозамбик Moçambique Msumbiji โมซัมบิก Mozambik Мозамбик Мозамбік Mozambik Mozambique 莫桑比克 莫三比克
167 NA ناميبيا Намібія Намибия Namibia Namibija Namíbia Namibie Namibia Namibia Ναμίμπια Namibia Namibio Namibia Namiibia Namibia نامیبیا Namibia Namibie Namibie an Namaib An Namaib Namibia נמיביה Namibija Namíbia Namibia Namibia Namibía Namibia ナミビア 나미비아 Namibia Намибия Namibija Namībija നമീബിയ Намиби Namibia Namibië Namibia Namibia Namibia Namíbia Namíbia Namibia Намибия Namíbia Namibija Namibi Намибија Namibia Namibia นามิเบีย Namibya Намибия Намібія Namibiya Namibia 纳米比亚 納米比亞
168 NC كاليدونيا الجديدة Новая Каледонія Нова Каледония Kaledonia Nevez Nova Kaledonija Nova Caledònia Nová Kaledonie Ny Kaledonien Neukaledonien Νέα Καληδονία New Caledonia Nov-Kaledonio Nueva Caledonia Uus-Kaledoonia Kaledonia Berria کالدونیای جدید Uusi-Kaledonia Nouvelle-Calédonie Nouvelle-Calédonie an Nua-Chaladóin Cailleann Nuadh Nova Caledonia קלדוניה החדשה Nova Kaledonija Új-Kaledónia Nove Caledonia Kaledonia Baru Nýja-Kaledónía Nuova Caledonia ニューカレドニア 뉴칼레도니아 New Caledonia Жаңы Каледония Naujoji Kaledonija Jaunkaledonija ന്യൂ കാലിഡോണിയ Шинэ Каледони Ny-Caledonia Nieuw-Caledonië Ny-Caledonia New Caledonia Nowa Kaledonia Nova Caledônia Nova Caledônia Noua Caledonie Новая Каледония Nová Kaledónia Nova Kaledonija Kaledoni e Re Нова Каледонија Nya Kaledonien New Caledonia นิวแคลิโดเนีย Yeni Kaledonya Яңа Каледония Нова Каледонія Yangi Kaledoniya New Caledonia 新喀里多尼亚 新喀里多尼亞
169 NE النيجر Нігер Нигер Niger Niger Níger Niger Niger Niger Νίγηρας Niger Niĝero Níger Niger Niger نیجر Niger Niger Niger an Nígir Nìgeir Níxer ניז׳ר Niger Niger Niger Niger Níger Niger ニジェール 니제르 Niger Нигер Nigeris Nigēra നൈജർ Нигер Niger Niger Niger Niger Niger Níger Níger Niger Нигер Niger Niger Niger Нигер Niger Niger ไนเจอร์ Nijer Нигер Нігер Niger Niger 尼日尔 尼日
170 NF جزيرة نورفولك Востраў Норфалк остров Норфолк Enez Norfolk Ostrvo Norfolk Norfolk Norfolk Norfolk Island Norfolkinsel Νήσος Νόρφολκ Norfolk Island Norfolkinsulo Isla Norfolk Norfolk Norfolk uhartea جزیرهٔ نورفولک Norfolkinsaari Île Norfolk Île Norfolk Oileán Norfolk Eilean Norfolk Illa Norfolk האי נורפוק Otok Norfolk Norfolk-sziget Insula Norfolk Kepulauan Norfolk Norfolkeyja Isola Norfolk ノーフォーク島 노퍽섬 Norfolk Island Норфолк аралы Norfolko sala Norfolkas sala നോർഫോക് ദ്വീപ് Норфолк арал Norfolkøya Norfolk Norfolkøya Norfolk Island Norfolk Ilha Norfolk Ilha Norfolk Insula Norfolk о-в Норфолк Norfolk Norfolški otok Ishulli Norfolk Острво Норфок Norfolkön Kisiwa cha Norfolk เกาะนอร์ฟอล์ก Norfolk Adası Норфолк утравы Острів Норфолк Norfolk oroli Đảo Norfolk 诺福克岛 諾福克島
171 NG نيجيريا Нігерыя Нигерия Nigeria Nigerija Nigèria Nigérie Nigeria Nigeria Νιγηρία Nigeria Niĝerio Nigeria Nigeeria Nigeria نیجریه Nigeria Nigéria Nigéria an Nigéir Nigèiria Nixeria ניגריה Nigerija Nigéria Nigeria Nigeria Nígería Nigeria ナイジェリア 나이지리아 Nigeria Нигерия Nigerija Nigērija നൈജീരിയ Нигери Nigeria Nigeria Nigeria Nigeria Nigeria Nigéria Nigéria Nigeria Нигерия Nigéria Nigerija Nigeri Нигерија Nigeria Nigeria ไนจีเรีย Nijerya Нигерия Нігерія Nigeriya Nigeria 尼日利亚 奈及利亞
172 NI نيكاراغوا Нікарагуа Никарагуа Nicaragua Nikaragva Nicaragua Nikaragua Nicaragua Nicaragua Νικαράγουα Nicaragua Nikaragvo Nicaragua Nicaragua Nikaragua نیکاراگوئه Nicaragua Nicaragua Nicaragua Nicearagua Niocaragua Nicaragua ניקרגואה Nikaragva Nicaragua Nicaragua Nikaragua Níkaragva Nicaragua ニカラグア 니카라과 Nicaragua Никарагуа Nikaragva Nikaragva നിക്കരാഗ്വ Никарагуа Nicaragua Nicaragua Nicaragua Nicaragua Nikaragua Nicarágua Nicarágua Nicaragua Никарагуа Nikaragua Nikaragva Nikaragua Никарагва Nicaragua Nikaragwa นิการากัว Nikaragua Никарагуа Нікараґуа Nikaragua Nicaragua 尼加拉瓜 尼加拉瓜
173 NL هولندا Нідэрланды Нидерландия Izelvroioù Holandija Països Baixos Nizozemsko Holland Niederlande Ολλανδία Netherlands Nederlando Países Bajos Holland Herbehereak هلند Alankomaat Pays-Bas Pays-Bas an Ísiltír Na Tìrean Ìsle Países Baixos הולנד Nizozemska Hollandia Nederlandia Belanda Holland Paesi Bassi オランダ 네덜란드 Netherlands Нидерланд Nyderlandai Nīderlande നെതർലാൻഡ്‌സ് Нидерланд Nederland Nederland Nederland Netherlands Holandia Países Baixos Países Baixos Țările de Jos Нидерланды Holandsko Nizozemska Holandë Холандија Nederländerna Uholanzi เนเธอร์แลนด์ Hollanda Нидерланд Нідерланди Niderlandiya Hà Lan 荷兰 荷蘭
174 NO النرويج Нарвегія Норвегия Norvegia Norveška Noruega Norsko Norge Norwegen Νορβηγία Norway Norvegujo Noruega Norra Norvegia نروژ Norja Norvège Norvège an Iorua Nirribhidh Noruega נורווגיה Norveška Norvégia Norvegia Norwegia Noregur Norvegia ノルウェー 노르웨이 Norway Норвегия Norvegija Norvēģija നോർവെ Норвеги Norge Noorwegen Noreg Norway Norwegia Noruega Noruega Norvegia Норвегия Nórsko Norveška Norvegji Норвешка Norge Norway นอร์เวย์ Norveç Норвегия Норвеґія Norvegiya Na Uy 挪威 挪威
175 NP نيبال Непал Непал Nepal Nepal Nepal Nepál Nepal Nepal Νεπάλ Nepal Nepalo Nepal Nepal Nepal نپال Nepal Népal Népal Neipeal Neapàl Nepal נפאל Nepal Nepál Nepal Nepal Nepal Nepal ネパール 네팔 Nepal Непал Nepalas Nepāla നേപ്പാൾ Балба Nepal Nepal Nepal Nepal Nepal Nepal Nepal Nepal Непал Nepál Nepal Nepal Непал Nepal Nepal เนปาล Nepal Непал Непал Nepal Nepal 尼泊尔 尼泊爾
176 NR ناورو Науру Науру Nauru Nauru Nauru Nauru Nauru Nauru Ναουρού Nauru Nauro Nauru Nauru Nauru نائورو Nauru Nauru Nauru Nárú Nabhru Nauru נאורו Nauru Nauru Nauru Nauru Nárú Nauru ナウル 나우루 Nauru Науру Nauru Nauru നൗറു Науру Nauru Nauru Nauru Nauru Nauru Nauru Nauru Nauru Науру Nauru Nauru Nauru Науру Nauru Nauru นาอูรู Nauru Науру Науру Nauru Nauru 瑙鲁 諾魯
177 NU نيوي Ніуэ Ниуе Niue Niue Niue Niue Niue Niue Νιούε Niue Niuo Niue Niue Niue نیوئه Niue Niue Niue Niue Niue Niue ניווה Niue Niue Niue Niue Niue Niue ニウエ 니우에 Niue Ниуэ Niujė Niue ന്യൂയി Ниуэ Niue Niue Niue Niue Niue Niue Niue Niue Ниуэ Niue Niue Niue Ниуе Niue Niue นีอูเอ Niue Ниуэ Ніуе Niue Niue 纽埃 紐埃島
178 NZ نيوزيلندا Новая Зеландыя Нова Зеландия Zeland-Nevez Novi Zeland Nova Zelanda Nový Zéland New Zealand Neuseeland Νέα Ζηλανδία New Zealand Nov-Zelando Nueva Zelanda Uus-Meremaa Zeelanda Berria نیوزیلند Uusi-Seelanti Nouvelle-Zélande Nouvelle-Zélande an Nua-Shéalainn Sealainn Nuadh Nova Zelandia ניו זילנד Novi Zeland Új-Zéland Nove Zelanda Selandia Baru Nýja-Sjáland Nuova Zelanda ニュージーランド 뉴질랜드 New Zealand Жаңы Зеландия Naujoji Zelandija Jaunzēlande ന്യൂസിലാൻറ് Шинэ Зеланд New Zealand Nieuw-Zeeland New Zealand New Zealand Nowa Zelandia Nova Zelândia Nova Zelândia Noua Zeelandă Новая Зеландия Nový Zéland Nova Zelandija Zelandë e Re Нови Зеланд Nya Zeeland Nyuzilandi นิวซีแลนด์ Yeni Zelanda Яңа Зеландия Нова Зеландія Yangi Zelandiya New Zealand 新西兰 紐西蘭
179 OM عُمان Аман Оман Oman Oman Oman Omán Oman Oman Ομάν Oman Omano Omán Omaan Oman عمان Oman Oman Oman Óman Omàn Omán עומאן Oman Omán Oman Oman Óman Oman オマーン 오만 Oman Оман Omanas Omāna ഒമാൻ Оман Oman Oman Oman Oman Oman Omã Omã Oman Оман Omán Oman Oman Оман Oman Oman โอมาน Umman Оман Оман Ummon Oman 阿曼 阿曼
180 PA بنما Панама Панама Panamá Panama Panamà Panama Panama Panama Παναμάς Panama Panamo Panamá Panama Panama پاناما Panama Panama Panama Panama Panama Panamá פנמה Panama Panama Panama Panama Panama Panamá パナマ 파나마 Panama Панама Panama Panama പനാമ Панам Panama Panama Panama Panama Panama Panamá Panamá Panama Панама Panama Panama Panama Панама Panama Panama ปานามา Panama Панама Панама Panama Panama 巴拿马 巴拿馬
181 PE بيرو Перу Перу Perou Peru Perú Peru Peru Peru Περού Peru Peruo Perú Peruu Peru پرو Peru Pérou Pérou Peiriú Pearù O Perú פרו Peru Peru Peru Peru Perú Perù ペルー 페루 Peru Перу Peru Peru പെറു Перу Peru Peru Peru Peru Peru Peru Peru Peru Перу Peru Peru Peru Перу Peru Peru เปรู Peru Перу Перу Peru Peru 秘鲁 秘魯
182 PF بولينيزيا الفرنسية Французская Палінезія Френска Полинезия Polinezia Cʼhall Francuska Polinezija Polinèsia Francesa Francouzská Polynésie Fransk Polynesien Französisch-Polynesien Γαλλική Πολυνησία French Polynesia Franca Polinezio Polinesia Francesa Prantsuse Polüneesia Polinesia Frantsesa پلی‌نزی فرانسه Ranskan Polynesia Polynésie française Polynésie française Polainéis na Fraince Poilinèis na Frainge A Polinesia Francesa פולינזיה הצרפתית Francuska Polinezija Francia Polinézia Polynesia francese Polinesia Prancis Franska Pólýnesía Polinesia francese 仏領ポリネシア 프랑스령 폴리네시아 French Polynesia Полинезия (франциялык) Prancūzijos Polinezija Francijas Polinēzija ഫ്രഞ്ച് പോളിനേഷ്യ Францын Полинез Fransk Polynesia Frans-Polynesië Fransk Polynesia French Polynesia Polinezja Francuska Polinésia Francesa Polinésia Francesa Polinezia Franceză Французская Полинезия Francúzska Polynézia Francoska Polinezija Polinezia Franceze Француска Полинезија Franska Polynesien Polynesia ya Ufaransa เฟรนช์โปลินีเซีย Fransız Polinezyası Француз Полинезиясе Французька Полінезія Fransuz Polineziyasi Polynesia thuộc Pháp 法属波利尼西亚 法屬玻里尼西亞
183 PG بابوا غينيا الجديدة Папуа-Новая Гвінея Папуа-Нова Гвинея Papoua Ginea-Nevez Papua Nova Gvineja Papua Nova Guinea Papua-Nová Guinea Papua Ny Guinea Papua-Neuguinea Παπούα Νέα Γουινέα Papua New Guinea Papuo-Nov-Gvineo Papúa Nueva Guinea Paapua Uus-Guinea Papua Ginea Berria پاپوا گینهٔ نو Papua-Uusi-Guinea Papouasie-Nouvelle-Guinée Papouasie-Nouvelle-Guinée Nua-Ghuine Phapua Gini Nuadh Phaputhach Papúa-Nova Guinea פפואה גינאה החדשה Papua Nova Gvineja Pápua Új-Guinea Papua Nove Guinea Papua Nugini Papúa Nýja-Gínea Papua Nuova Guinea パプアニューギニア 파푸아뉴기니 Papua New Guinea Папуа-Жаңы Гвинея Papua Naujoji Gvinėja Papua-Jaungvineja പാപ്പുവ ന്യൂ ഗിനിയ Папуа Шинэ Гвиней Papua Ny-Guinea Papoea-Nieuw-Guinea Papua Ny-Guinea Papua New Guinea Papua-Nowa Gwinea Papua-Nova Guiné Papua-Nova Guiné Papua-Noua Guinee Папуа — Новая Гвинея Papua-Nová Guinea Papua Nova Gvineja Guineja e Re-Papua Папуа Нова Гвинеја Papua Nya Guinea Papua New Guinea ปาปัวนิวกินี Papua Yeni Gine Папуа - Яңа Гвинея Папуа-Нова Ґвінея Papua – Yangi Gvineya Papua New Guinea 巴布亚新几内亚 巴布亞紐幾內亞
184 PH الفلبين Філіпіны Филипини Filipinez Filipini Filipines Filipíny Filippinerne Philippinen Φιλιππίνες Philippines Filipinoj Filipinas Filipiinid Filipinak فیلیپین Filippiinit Philippines Philippines na hOileáin Fhilipíneacha Na h-Eileanan Filipineach Filipinas הפיליפינים Filipini Fülöp-szigetek Philippinas Filipina Filippseyjar Filippine フィリピン 필리핀 Philippines Филиппин Filipinai Filipīnas ഫിലിപ്പീൻസ് Филиппин Filippinene Filipijnen Filippinane Philippines Filipiny Filipinas Filipinas Filipine Филиппины Filipíny Filipini Filipine Филипини Filippinerna Ufilipino ฟิลิปปินส์ Filipinler Филиппин Філіппіни Filippin Philippines 菲律宾 菲律賓
185 PK باكستان Пакістан Пакистан Pakistan Pakistan Pakistan Pákistán Pakistan Pakistan Πακιστάν Pakistan Pakistano Pakistán Pakistan Pakistan پاکستان Pakistan Pakistan Pakistan an Phacastáin Pagastàn Paquistán פקיסטן Pakistan Pakisztán Pakistan Pakistan Pakistan Pakistan パキスタン 파키스탄 Pakistan Пакистан Pakistanas Pakistāna പാക്കിസ്ഥാൻ Пакистан Pakistan Pakistan Pakistan Pakistan Pakistan Paquistão Paquistão Pakistan Пакистан Pakistan Pakistan Pakistan Пакистан Pakistan Pakistani ปากีสถาน Pakistan Пакистан Пакистан Pokiston Pakistan 巴基斯坦 巴基斯坦
186 PL بولندا Польшча Полша Polonia Poljska Polònia Polsko Polen Polen Πολωνία Poland Pollando Polonia Poola Polonia لهستان Puola Pologne Pologne an Pholainn A’ Phòlainn Polonia פולין Poljska Lengyelország Polonia Polandia Pólland Polonia ポーランド 폴란드 Poland Польша Lenkija Polija പോളണ്ട് Польш Polen Polen Polen Poland Polska Polônia Polônia Polonia Польша Poľsko Poljska Poloni Пољска Polen Poland โปแลนด์ Polonya Польша Польща Polsha Ba Lan 波兰 波蘭
187 PM سان بيير ومكويلون Сен-П’ер і Мікелон Сен Пиер и Микелон Sant-Pêr-ha-Mikelon Sveti Petar i Mikelon Saint-Pierre-et-Miquelon Saint-Pierre a Miquelon Saint Pierre og Miquelon St. Pierre und Miquelon Σεν Πιερ και Μικελόν St. Pierre & Miquelon Sent-Piero kaj Mikelono San Pedro y Miquelón Saint-Pierre ja Miquelon Saint-Pierre eta Mikelune سن پیر و میکلن Saint-Pierre ja Miquelon Saint-Pierre-et-Miquelon Saint-Pierre-et-Miquelon San Pierre agus Miquelon Saint Pierre agus Miquelon Saint Pierre et Miquelon סנט פייר ומיקלון Saint-Pierre-et-Miquelon Saint-Pierre és Miquelon St. Pierre e Miquelon Saint Pierre dan Miquelon Sankti Pierre og Miquelon Saint-Pierre e Miquelon サンピエール島・ミクロン島 생피에르 미클롱 St. Pierre & Miquelon Сен-Пьер жана Микелон Sen Pjeras ir Mikelonas Senpjēra un Mikelona സെന്റ് പിയറി ആൻഡ് മിക്വലൻ Сент-Пьер ба Микело Saint-Pierre-et-Miquelon Saint-Pierre en Miquelon Saint-Pierre-et-Miquelon St. Pierre & Miquelon Saint-Pierre i Miquelon São Pedro e Miquelão São Pedro e Miquelão Saint-Pierre și Miquelon Сен-Пьер и Микелон Saint Pierre a Miquelon Saint Pierre in Miquelon Shën-Pier dhe Mikelon Сен Пјер и Микелон S:t Pierre och Miquelon Santapierre na Miquelon แซงปีแยร์และมีเกอลง Saint Pierre ve Miquelon Сен-Пьер һәм Микелон Сен-Пʼєр і Мікелон Sen-Pyer va Mikelon Saint Pierre và Miquelon 圣皮埃尔和密克隆群岛 聖皮埃與密克隆群島
188 PN جزر بيتكيرن Астравы Піткэрн Острови Питкерн Enez Pitcairn Pitkernska Ostrva Illes Pitcairn Pitcairnovy ostrovy Pitcairn Pitcairninseln Νήσοι Πίτκερν Pitcairn Islands Pitkarna Insulo Islas Pitcairn Pitcairni saared Pitcairn uharteak جزایر پیت‌کرن Pitcairn Îles Pitcairn Îles Pitcairn Oileáin Pitcairn Eileanan Pheit a’ Chàirn Illas Pitcairn איי פיטקרן Otoci Pitcairn Pitcairn-szigetek Pitcairn Islands Kepulauan Pitcairn Pitcairn-eyjar Isole Pitcairn ピトケアン諸島 핏케언 섬 Pitcairn Islands Питкэрн аралдары Pitkerno salos Pitkērnas salas പിറ്റ്‌കെയ്‌ൻ ദ്വീപുകൾ Питкэрн арлууд Pitcairnøyene Pitcairneilanden Pitcairn Pitcairn Islands Pitcairn Ilhas Pitcairn Ilhas Pitcairn Insulele Pitcairn о-ва Питкэрн Pitcairnove ostrovy Pitcairn Ishujt Pitkern Питкерн Pitcairnöarna Visiwa vya Pitcairn หมู่เกาะพิตแคร์น Pitcairn Adaları Питкэрн утраулары Острови Піткерн Pitkern orollari Quần đảo Pitcairn 皮特凯恩群岛 皮特肯群島
189 PR بورتوريكو Пуэрта-Рыка Пуерто Рико Puerto Rico Porto Riko Puerto Rico Portoriko Puerto Rico Puerto Rico Πουέρτο Ρίκο Puerto Rico Puerto-Riko Puerto Rico Puerto Rico Puerto Rico پورتوریکو Puerto Rico Porto Rico Porto Rico Pórtó Ríce Porto Rìceo Porto Rico פוארטו ריקו Portoriko Puerto Rico Puerto Rico Puerto Riko Púertó Ríkó Portorico プエルトリコ 푸에르토리코 Puerto Rico Пуэрто-Рико Puerto Rikas Puertoriko പോർട്ടോ റിക്കോ Пуэрто-Рико Puerto Rico Puerto Rico Puerto Rico Puerto Rico Portoryko Porto Rico Porto Rico Puerto Rico Пуэрто-Рико Portoriko Portoriko Porto-Riko Порторико Puerto Rico Puerto Rico เปอร์โตริโก Porto Riko Пуэрто-Рико Пуерто-Ріко Puerto-Riko Puerto Rico 波多黎各 波多黎各
190 PS فلسطين Палесціна Палестина Palestina Palestina Palestina Palestina Palæstina Palästina Παλαιστίνη Palestine Palestine Palestina Palestiina Palestina فلسطین Palestiina Palestine Palestine an Phalaistín Palastain Palestina פלסטין Palestina Palesztina Palestine Palestina Palestína Palestina パレスチナ 팔레스타인 Palestine Палестина Palestina Palestine പലസ്‌തീൻ Палестин Palestina Palestina Palestina Palestine Palestyna Palestina Palestina Palestina Палестина Palestínska samospráva Palestina Palestinë Палестина Palestina Palestina ปาเลสไตน์ Filistin Palestine Палестина Falastin Palestine 巴勒斯坦 巴勒斯坦
191 PT البرتغال Партугалія Португалия Portugal Portugal Portugal Portugalsko Portugal Portugal Πορτογαλία Portugal Portugalujo Portugal Portugal Portugal پرتغال Portugali Portugal Portugal an Phortaingéil A’ Phortagail Portugal פורטוגל Portugal Portugália Portugal Portugal Portúgal Portogallo ポルトガル 포르투갈 Portugal Португалия Portugalija Portugāle പോർച്ചുഗൽ Португал Portugal Portugal Portugal Portugal Portugalia Portugal Portugal Portugalia Португалия Portugalsko Portugalska Portugali Португалија Portugal Ureno โปรตุเกส Portekiz Португалия Портуґалія Portugaliya Bồ Đào Nha 葡萄牙 葡萄牙
192 PW بالاو Палау Палау Palau Palau Palau Palau Palau Palau Παλάου Palau Belaŭo Palaos Belau Palau پالائو Palau Palaos Palaos Oileáin Palau Palabh Palau פלאו Palau Palau Palau Palau Palá Palau パラオ 팔라우 Palau Палау Palau Palau പലാവു Палау Palau Palau Palau Palau Palau Palau Palau Palau Палау Palau Palau Palau Палау Palau Palau ปาเลา Palau Палау Палау Palau Palau 帕劳 帛琉
193 PY باراغواي Парагвай Парагвай Paraguay Paragvaj Paraguai Paraguay Paraguay Paraguay Παραγουάη Paraguay Paragvajo Paraguay Paraguay Paraguai پاراگوئه Paraguay Paraguay Paraguay Paragua Paraguaidh O Paraguai פרגוואי Paragvaj Paraguay Paraguay Paraguay Paragvæ Paraguay パラグアイ 파라과이 Paraguay Парагвай Paragvajus Paragvaja പരാഗ്വേ Парагвай Paraguay Paraguay Paraguay Paraguay Paragwaj Paraguai Paraguai Paraguay Парагвай Paraguaj Paragvaj Paraguai Парагвај Paraguay Paraguay ปารากวัย Paraguay Парагвай Параґвай Paragvay Paraguay 巴拉圭 巴拉圭
194 QA قطر Катар Катар Qatar Katar Qatar Katar Qatar Katar Κατάρ Qatar Kataro Catar Katar Qatar قطر Qatar Qatar Qatar Catar Catar Qatar קטאר Katar Katar Qatar Qatar Katar Qatar カタール 카타르 Qatar Катар Kataras Katara ഖത്തർ Катар Qatar Qatar Qatar Qatar Katar Catar Catar Qatar Катар Katar Katar Katar Катар Qatar Qatar กาตาร์ Katar Катар Катар Qatar Qatar 卡塔尔 卡達
195 QO أوقيانوسيا النائية Аддаленыя тэрыторыі Акіяніі Отдалечени острови на Океания Oseania diabell Vanjska Okeanija Territoris allunyats d’Oceania vnější Oceánie Ydre Oceanien Äußeres Ozeanien Περιφερειακή Ωκεανία Outlying Oceania Outlying Oceania Territorios alejados de Oceanía Okeaania hajasaared Mugaz kanpoko Ozeania بخش‌های دورافتادهٔ اقیانوسیه ulkomeri régions éloignées de l’Océanie régions éloignées de l’Océanie an Aigéine Imeallach Roinn Iomallach a’ Chuain Sèimh Territorios afastados de Oceanía טריטוריות באוקיאניה Vanjska područja Oceanije Külső-Óceánia Oceania remote Oseania Luar Ytri Eyjaálfa Oceania lontana オセアニア周辺地域 오세아니아 외곽 Outlying Oceania Алыскы Океания Nuošali Okeanija Okeānijas attālās salas ദ്വീപസമൂഹം Номхон далайг тойрсон улс орнууд Ytre Oseania overig Oceanië Ytre Oseania Outlying Oceania Oceania — wyspy dalekie Oceania Remota Oceania Remota Oceania Periferică Внешняя Океания ostatné Tichomorie Ostala oceanija Oqeania e Largët (Lindja e Largët) Океанија (удаљена острва) yttre öar i Oceanien Oceania ya Nje เอาต์ไลอิงโอเชียเนีย Uzak Okyanusya Outlying Oceania Віддалена Океанія Tashqi Okeaniya Vùng xa xôi thuộc Châu Đại Dương 大洋洲边远群岛 大洋洲邊疆群島
196 RE روينيون Рэюньён Реюнион Ar Reünion Reunion Illa de la Reunió Réunion Réunion Réunion Ρεϊνιόν Réunion Reunio Reunión Réunion Reunion رئونیون Réunion La Réunion La Réunion Réunion Réunion Reunión ראוניון Réunion Réunion Réunion Réunion Réunion Riunione レユニオン 리유니온 Réunion Реюньон Reunjonas Reinjona റീയൂണിയൻ Реюнион Réunion Réunion Réunion Réunion Reunion Reunião Reunião Réunion Реюньон Réunion Reunion Reunion Реинион Réunion Reunion เรอูนียง Reunion Реюньон Реюньйон Reyunion Réunion 留尼汪 留尼旺
197 RO رومانيا Румынія Румъния Roumania Rumunija Romania Rumunsko Rumænien Rumänien Ρουμανία Romania Rumanujo Rumanía Rumeenia Errumania رومانی Romania Roumanie Roumanie an Rómáin Romàinia Romanía רומניה Rumunjska Románia Romania Rumania Rúmenía Romania ルーマニア 루마니아 Romania Румыния Rumunija Rumānija റൊമാനിയ Румын Romania Roemenië Romania Romania Rumunia Romênia Romênia România Румыния Rumunsko Romunija Rumani Румунија Rumänien Romania โรมาเนีย Romanya Румыния Румунія Ruminiya Romania 罗马尼亚 羅馬尼亞
198 RS صربيا Сербія Сърбия Serbia Srbija Sèrbia Srbsko Serbien Serbien Σερβία Serbia Serbia Serbia Serbia Serbia صربستان Serbia Serbie Serbie an tSeirbia An t-Sèirb Serbia סרביה Srbija Szerbia Serbia Serbia Serbía Serbia セルビア 세르비아 Serbia Сербия Serbija Serbija സെർബിയ Серби Serbia Servië Serbia Serbia Serbia Sérvia Sérvia Serbia Сербия Srbsko Srbija Serbi Србија Serbien Serbia เซอร์เบีย Sırbistan Сербия Сербія Serbiya Serbia 塞尔维亚 塞爾維亞
199 RU روسيا Расія Русия Rusia Rusija Rússia Rusko Rusland Russland Ρωσία Russia Rusujo Rusia Venemaa Errusia روسیه Venäjä Russie Russie an Rúis An Ruis Rusia רוסיה Rusija Oroszország Russia Rusia Rússland Russia ロシア 러시아 Russi Россия Rusija Krievija റഷ്യ Орос Russland Rusland Russland Уӕрӕсе Rosja Rússia Rússia Rusia Россия Rusko Rusija Rusi Русија Ryssland Urusi รัสเซีย Rusya Россия Росія Rossiya Nga 俄罗斯 俄羅斯
200 RW رواندا Руанда Руанда Rwanda Ruanda Ruanda Rwanda Rwanda Ruanda Ρουάντα Rwanda Ruando Ruanda Rwanda Ruanda رواندا Ruanda Rwanda Rwanda Ruanda Rubhanda Ruanda רואנדה Ruanda Ruanda Ruanda Rwanda Rúanda Ruanda ルワンダ 르완다 Rwanda Руанда Ruanda Ruanda റുവാണ്ട Руанда Rwanda Rwanda Rwanda Rwanda Rwanda Ruanda Ruanda Rwanda Руанда Rwanda Ruanda Ruandë Руанда Rwanda Rwanda รวันดา Ruanda Руанда Руанда Ruanda Rwanda 卢旺达 盧安達
201 SA المملكة العربية السعودية Саудаўская Аравія Саудитска Арабия Arabia Saoudat Saudijska Arabija Aràbia Saudita Saúdská Arábie Saudi-Arabien Saudi-Arabien Σαουδική Αραβία Saudi Arabia Saŭda Arabujo Arabia Saudí Saudi Araabia Saudi Arabia عربستان سعودی Saudi-Arabia Arabie saoudite Arabie saoudite an Araib Shádach Aràibia nan Sabhd Arabia Saudita ערב הסעודית Saudijska Arabija Szaúd-Arábia Arabia Saudita Arab Saudi Sádi-Arabía Arabia Saudita サウジアラビア 사우디아라비아 Saudi Arabia Сауд Арабиясы Saudo Arabija Saūda Arābija സൗദി അറേബ്യ Саудын Араб Saudi-Arabia Saoedi-Arabië Saudi-Arabia Saudi Arabia Arabia Saudyjska Arábia Saudita Arábia Saudita Arabia Saudită Саудовская Аравия Saudská Arábia Saudova Arabija Arabi Saudite Саудијска Арабија Saudiarabien Saudia ซาอุดีอาระเบีย Suudi Arabistan Согуд Гарәбстаны Саудівська Аравія Saudiya Arabistoni Ả Rập Xê-út 沙特阿拉伯 沙烏地阿拉伯
202 SB جزر سليمان Саламонавы астравы Соломонови острови Inizi Salomon Solomonska Ostrva Illes Salomó Šalamounovy ostrovy Salomonøerne Salomonen Νήσοι Σολομώντος Solomon Islands Salomonoj Islas Salomón Saalomoni Saared Salomon Uharteak جزایر سلیمان Salomonsaaret Îles Salomon Îles Salomon Oileáin Sholomón Eileanan Sholaimh Illas Salomón איי שלמה Salomonski Otoci Salamon-szigetek Insulas Solomon Kepulauan Solomon Salómonseyjar Isole Salomone ソロモン諸島 솔로몬 제도 Solomon Islands Соломон аралдары Saliamono Salos Zālamana salas സോളമൻ ദ്വീപുകൾ Соломоны арлууд Salomonøyene Salomonseilanden Salomonøyane Solomon Islands Wyspy Salomona Ilhas Salomão Ilhas Salomão Insulele Solomon Соломоновы Острова Šalamúnove ostrovy Salomonovi otoki Ishujt Solomon Соломонска Острва Salomonöarna Visiwa vya Solomon หมู่เกาะโซโลมอน Solomon Adaları Сөләйман утраулары Соломонові Острови Solomon orollari Quần đảo Solomon 所罗门群岛 索羅門群島
203 SC سيشل Сейшэльскія астравы Сейшели Sechelez Sejšeli Seychelles Seychely Seychellerne Seychellen Σεϋχέλλες Seychelles Sejŝeloj Seychelles Seišellid Seychelleak سیشل Seychellit Seychelles Seychelles na Séiséil Na h-Eileanan Sheiseall Seychelles איי סיישל Sejšeli Seychelle-szigetek Seychelles Seychelles Seychelles-eyjar Seychelles セーシェル 세이셸 Seychelles Сейшел аралдары Seišeliai Seišelu salas സീഷെൽസ് Сейшелийн арлууд Seychellene Seychellen Seychellane Seychelles Seszele Seicheles Seicheles Seychelles Сейшельские Острова Seychely Sejšeli Sejshelle Сејшели Seychellerna Ushelisheli เซเชลส์ Seyşeller Сейшел утраулары Сейшельські Острови Seyshel orollari Seychelles 塞舌尔 塞席爾
204 SD السودان Судан Судан Soudan Sudan Sudan Súdán Sudan Sudan Σουδάν Sudan Sudano Sudán Sudaan Sudan سودان Sudan Soudan Soudan an tSúdáin Sudàn O Sudán סודן Sudan Szudán Sudan Sudan Súdan Sudan スーダン 수단 Sudan Судан Sudanas Sudāna സുഡാൻ Судан Sudan Soedan Sudan Sudan Sudan Sudão Sudão Sudan Судан Sudán Sudan Sudan Судан Sudan Sudan ซูดาน Sudan Судан Судан Sudan Sudan 苏丹 蘇丹
205 SE السويد Швецыя Швеция Sveden Švedska Suècia Švédsko Sverige Schweden Σουηδία Sweden Svedujo Suecia Rootsi Suedia سوئد Ruotsi Suède Suède an tSualainn An t-Suain Suecia שוודיה Švedska Svédország Svedia Swedia Svíþjóð Svezia スウェーデン 스웨덴 Sweden Швеция Švedija Zviedrija സ്വീഡൻ Швед Sverige Zweden Sverige Sweden Szwecja Suécia Suécia Suedia Швеция Švédsko Švedska Suedi Шведска Sverige Uswidi สวีเดน İsveç Швеция Швеція Shvetsiya Thụy Điển 瑞典 瑞典
206 SG سنغافورة Сінгапур Сингапур Singapour Singapur Singapur Singapur Singapore Singapur Σιγκαπούρη Singapore Singapuro Singapur Singapur Singapur سنگاپور Singapore Singapour Singapour Singeapór Singeapòr Singapur סינגפור Singapur Szingapúr Singapore Singapura Singapúr Singapore シンガポール 싱가포르 Singapore Сингапур Singapūras Singapūra സിംഗപ്പൂർ Сингапур Singapore Singapore Singapore Singapore Singapur Singapura Singapura Singapore Сингапур Singapur Singapur Singapor Сингапур Singapore Singapore สิงคโปร์ Singapur Сингапур Сінгапур Singapur Singapore 新加坡 新加坡
207 SH سانت هيلينا Востраў Святой Алены Света Елена Saint-Helena Sveta Helena Saint Helena Svatá Helena St. Helena St. Helena Αγία Ελένη St. Helena Sent-Heleno Santa Elena Saint Helena Santa Helena سنت هلن Saint Helena Sainte-Hélène Sainte-Hélène San Héilin Eilean Naomh Eilidh Santa Helena סנט הלנה Sveta Helena Szent Ilona St. Helena Saint Helena Sankti Helena Sant’Elena セントヘレナ 세인트헬레나 St. Helena Ыйык Елена Šv. Elenos Sala Sv.Helēnas sala സെന്റ് ഹെലീന Сент Хелена St. Helena Sint-Helena Saint Helena St. Helena Wyspa Świętej Heleny Santa Helena Santa Helena Sfânta Elena о-в Св. Елены Svätá Helena Sveta Helena Shën-Elenë Света Јелена S:t Helena St. Helena เซนต์เฮเลนา Saint Helena St. Helena Острів Святої Єлени Muqaddas Yelena oroli St. Helena 圣赫勒拿 聖赫勒拿島
208 SI سلوفينيا Славенія Словения Slovenia Slovenija Eslovènia Slovinsko Slovenien Slowenien Σλοβενία Slovenia Slovenujo Eslovenia Sloveenia Eslovenia اسلوونی Slovenia Slovénie Slovénie an tSlóivéin An t-Slòbhain Eslovenia סלובניה Slovenija Szlovénia Slovenia Slovenia Slóvenía Slovenia スロベニア 슬로베니아 Slovenia Словения Slovėnija Slovēnija സ്ലോവേനിയ Словени Slovenia Slovenië Slovenia Slovenia Słowenia Eslovênia Eslovênia Slovenia Словения Slovinsko Slovenija Slloveni Словенија Slovenien Slovenia สโลวีเนีย Slovenya Словения Словенія Sloveniya Slovenia 斯洛文尼亚 斯洛維尼亞
209 SJ سفالبارد وجان ماين Шпіцберген і Ян-Маен Свалбард и Ян Майен Svalbard Svalbard i Jan Majen Svalbard i Jan Mayen Špicberky a Jan Mayen Svalbard og Jan Mayen Spitzbergen und Jan Mayen Σβάλμπαρντ και Γιαν Μαγιέν Svalbard & Jan Mayen Svalbardo kaj Jan-Majen-insulo Svalbard y Jan Mayen Svalbard ja Jan Mayen Svalbard eta Jan Mayen uharteak سوالبارد و یان ماین Huippuvuoret ja Jan Mayen Svalbard et Jan Mayen Svalbard et Jan Mayen Svalbard agus Jan Mayen Svalbard agus Jan Mayen Svalbard e Jan Mayen סבאלברד ויאן מאיין Svalbard i Jan Mayen Svalbard és Jan Mayen Svalbard e Jan Mayen Kepulauan Svalbard dan Jan Mayen Svalbarði og Jan Mayen Svalbard e Jan Mayen スバールバル諸島・ヤンマイエン島 스발바르제도-얀마웬섬 Svalbard & Jan Mayen Шпицберген жана Ян-Майен Svalbardas ir Janas Majenas Svalbāra un Jana Majena sala സ്വാൽബാഡും ജാൻ മായേനും Свалбард ба Ян Майен Svalbard og Jan Mayen Spitsbergen en Jan Mayen Svalbard og Jan Mayen Svalbard & Jan Mayen Svalbard i Jan Mayen Svalbard e Jan Mayen Svalbard e Jan Mayen Svalbard și Jan Mayen Шпицберген и Ян-Майен Svalbard a Jan Mayen Svalbard in Jan Mayen Svalbard e Jan-Majen Свалбард и Јан Мајен Svalbard och Jan Mayen Svalbard na Jan Mayen สฟาลบาร์และยานไมเอน Svalbard ve Jan Mayen Шпицберген һәм Ян-Майен Шпіцберген та Ян-Маєн Shpitsbergen va Yan-Mayen Svalbard và Jan Mayen 斯瓦尔巴和扬马延 挪威屬斯瓦巴及尖棉
210 SK سلوفاكيا Славакія Словакия Slovakia Slovačka Eslovàquia Slovensko Slovakiet Slowakei Σλοβακία Slovakia Slovakujo Eslovaquia Slovakkia Eslovakia اسلواکی Slovakia Slovaquie Slovaquie an tSlóvaic An t-Slòbhac Eslovaquia סלובקיה Slovačka Szlovákia Slovachia Slovakia Slóvakía Slovacchia スロバキア 슬로바키아 Slovakia Словакия Slovakija Slovākija സ്ലോവാക്യ Словак Slovakia Slowakije Slovakia Slovakia Słowacja Eslováquia Eslováquia Slovacia Словакия Slovensko Slovaška Sllovaki Словачка Slovakien Slovakia สโลวะเกีย Slovakya Словакия Словаччина Slovakiya Slovakia 斯洛伐克 斯洛伐克
211 SL سيراليون Сьера-Леонэ Сиера Леоне Sierra Leone Sijera Leone Sierra Leone Sierra Leone Sierra Leone Sierra Leone Σιέρα Λεόνε Sierra Leone Siera-Leono Sierra Leona Sierra Leone Sierra Leona سیرالئون Sierra Leone Sierra Leone Sierra Leone Siarra Leon Siarra Leòmhann Serra Leoa סיירה לאונה Sijera Leone Sierra Leone Sierra Leone Sierra Leone Síerra Leóne Sierra Leone シエラレオネ 시에라리온 Sierra Leone Сьерра-Леоне Siera Leonė Sjerraleone സിയെറ ലിയോൺ Сьерра-Леоне Sierra Leone Sierra Leone Sierra Leone Sierra Leone Sierra Leone Serra Leoa Serra Leoa Sierra Leone Сьерра-Леоне Sierra Leone Sierra Leone Sierra-Leone Сијера Леоне Sierra Leone Siera Leoni เซียร์ราลีโอน Sierra Leone Сьерра-Леоне Сьєрра-Леоне Syerra-Leone Sierra Leone 塞拉利昂 獅子山
212 SM سان مارينو Сан-Марына Сан Марино San Marino San Marino San Marino San Marino San Marino San Marino Άγιος Μαρίνος San Marino San-Marino San Marino San Marino San Marino سان‌مارینو San Marino Saint-Marin Saint-Marin San Mairíne San Marino San Marino סן מרינו San Marino San Marino San Marino San Marino San Marínó San Marino サンマリノ 산마리노 San Marino Сан Марино San Marinas Sanmarīno സാൻ മറിനോ Сан-Марино San Marino San Marino San Marino San Marino San Marino San Marino San Marino San Marino Сан-Марино San Maríno San Marino San-Marino Сан Марино San Marino San Marino ซานมาริโน San Marino Сан-Марино Сан-Маріно San-Marino San Marino 圣马力诺 聖馬利諾
213 SN السنغال Сенегал Сенегал Senegal Senegal Senegal Senegal Senegal Senegal Σενεγάλη Senegal Senegalo Senegal Senegal Senegal سنگال Senegal Sénégal Sénégal an tSeineagáil Seanagal Senegal סנגל Senegal Szenegál Senegal Senegal Senegal Senegal セネガル 세네갈 Senegal Сенегал Senegalas Senegāla സെനഗൽ Сенегал Senegal Senegal Senegal Senegal Senegal Senegal Senegal Senegal Сенегал Senegal Senegal Senegal Сенегал Senegal Senegali เซเนกัล Senegal Сенегал Сенегал Senegal Senegal 塞内加尔 塞內加爾
214 SO الصومال Самалі Сомалия Somalia Somalija Somàlia Somálsko Somalia Somalia Σομαλία Somalia Somalujo Somalia Somaalia Somalia سومالی Somalia Somalie Somalie an tSomáil Somàilia Somalia סומליה Somalija Szomália Somalia Somalia Sómalía Somalia ソマリア 소말리아 Somalia Сомали Somalis Somālija സോമാലിയ Сомали Somalia Somalië Somalia Somalia Somalia Somália Somália Somalia Сомали Somálsko Somalija Somali Сомалија Somalia Somalia โซมาเลีย Somali Сомали Сомалі Somali Somalia 索马里 索馬利亞
215 SR سورينام Сурынам Суринам Surinam Surinam Surinam Surinam Surinam Suriname Σουρινάμ Suriname Surinamo Surinam Suriname Surinam سورینام Suriname Suriname Suriname Suranam Suranam Suriname סורינאם Surinam Suriname Suriname Suriname Súrínam Suriname スリナム 수리남 Suriname Суринам Surinamas Surinama സുരിനാം Суринам Surinam Suriname Surinam Suriname Surinam Suriname Suriname Suriname Суринам Surinam Surinam Surinami Суринам Surinam Suriname ซูรินาเม Surinam Суринам Сурінам Surinam Suriname 苏里南 蘇利南
216 SS جنوب السودان Паўднёвы Судан Южен Судан Susoudan Južni Sudan Sudan del Sud Jižní Súdán Sydsudan Südsudan Νότιο Σουδάν South Sudan Sud-Sudano Sudán del Sur Lõuna-Sudaan Hego Sudan سودان جنوبی Etelä-Sudan Soudan du Sud Soudan du Sud an tSúdáin Theas Sudàn a Deas O Sudán do Sur דרום סודן Južni Sudan Dél-Szudán Sudan del Sud Sudan Selatan Suður-Súdan Sud Sudan 南スーダン 남수단 South Sudan Түштүк Судан Pietų Sudanas Dienvidsudāna ദക്ഷിണ സുഡാൻ Өмнөд Судан Sør-Sudan Zuid-Soedan Sør-Sudan South Sudan Sudan Południowy Sudão do Sul Sudão do Sul Sudanul de Sud Южный Судан Južný Sudán Južni Sudan Sudani i Jugut Јужни Судан Sydsudan Sudan Kusini ซูดานใต้ Güney Sudan Көньяк Судан Південний Судан Janubiy Sudan Nam Sudan 南苏丹 南蘇丹
217 ST ساو تومي وبرينسيبي Сан-Тамэ і Прынсіпі Сао Томе и Принсипи São Tomé ha Príncipe Sao Tome i Principe São Tomé i Príncipe Svatý Tomáš a Princův ostrov São Tomé og Príncipe São Tomé und Príncipe Σάο Τομέ και Πρίνσιπε São Tomé & Príncipe Sao-Tomeo kaj Principeo Santo Tomé y Príncipe São Tomé ja Príncipe Sao Tome eta Principe سائوتومه و پرینسیپ São Tomé ja Príncipe Sao Tomé-et-Principe Sao Tomé-et-Principe São Tomé agus Príncipe São Tomé agus Príncipe San Tomé e Príncipe סאו טומה ופרינסיפה Sveti Toma i Princip São Tomé és Príncipe São Tomé & Príncipe Sao Tome dan Principe Saó Tóme og Prinsípe São Tomé e Príncipe サントメ・プリンシペ 상투메 프린시페 São Tomé & Príncipe Сан-Томе жана Принсипи San Tomė ir Prinsipė Santome un Prinsipi സാവോ ടോമും പ്രിൻസിപെയും Сан-Томе ба Принсипи São Tomé og Príncipe Sao Tomé en Principe São Tomé og Príncipe São Tomé & Príncipe Wyspy Świętego Tomasza i Książęca São Tomé e Príncipe São Tomé e Príncipe São Tomé și Príncipe Сан-Томе и Принсипи Svätý Tomáš a Princov ostrov Sao Tome in Principe Sao-Tome e Principe Сао Томе и Принципе São Tomé och Príncipe São Tomé na Príncipe เซาตูเมและปรินซิปี Sao Tome ve Principe Сан-Томе һәм Принсипи Сан-Томе і Прінсіпі San-Tome va Prinsipi São Tomé và Príncipe 圣多美和普林西比 聖多美普林西比
218 SV السلفادور Сальвадор Салвадор Salvador Salvador El Salvador Salvador El Salvador El Salvador Ελ Σαλβαδόρ El Salvador Salvadoro El Salvador El Salvador El Salvador السالوادور El Salvador Salvador Salvador an tSalvadóir An Salbhador O Salvador אל סלבדור Salvador Salvador El Salvador El Salvador El Salvador El Salvador エルサルバドル 엘살바도르 El Salvador Эль-Сальвадор Salvadoras Salvadora എൽ സാൽവദോർ Эль Сальвадор El Salvador El Salvador El Salvador El Salvador Salwador El Salvador El Salvador El Salvador Сальвадор Salvádor Salvador Salvador Салвадор El Salvador El Salvador เอลซัลวาดอร์ El Salvador Сальвадор Сальвадор Salvador El Salvador 萨尔瓦多 薩爾瓦多
219 SX سانت مارتن Сінт-Мартэн Синт Мартен Sint Maarten Sint Marten Sint Maarten Svatý Martin (Nizozemsko) Sint Maarten Sint Maarten Άγιος Μαρτίνος (Ολλανδικό τμήμα) Sint Maarten Sint Maarten Sint Maarten Sint Maarten Sint Maarten سنت مارتن Sint Maarten Saint-Martin (partie néerlandaise) Saint-Martin (partie néerlandaise) Sint Maarten Sint Maarten Sint Maarten סנט מארטן Sint Maarten Sint Maarten Sint Maarten Sint Maarten Sankti Martin Sint Maarten シント・マールテン 신트마르턴 Sint Maarten Синт-Мартен Sint Martenas Sintmārtena സിന്റ് മാർട്ടെൻ Синт Мартен Sint Maarten Sint-Maarten Sint Maarten Sint Maarten Sint Maarten Sint Maarten Sint Maarten Sint-Maarten Синт-Мартен Svätý Martin (hol.) Sint Maarten Sint-Marten Свети Мартин (Холандија) Sint Maarten Sint Maarten ซินต์มาร์เทน Sint Maarten Синт-Мартен Сінт-Мартен Sint-Marten Sint Maarten 荷属圣马丁 荷屬聖馬丁
220 SY سوريا Сірыя Сирия Siria Sirija Síria Sýrie Syrien Syrien Συρία Syria Sirio Siria Süüria Siria سوریه Syyria Syrie Syrie an tSiria Siridhea Siria סוריה Sirija Szíria Syria Suriah Sýrland Siria シリア 시리아 Syria Сирия Sirija Sīrija സിറിയ Сири Syria Syrië Syria Syria Syria Síria Síria Siria Сирия Sýria Sirija Siri Сирија Syrien Syria ซีเรีย Suriye Сүрия Сирія Suriya Syria 叙利亚 敘利亞
221 SZ إسواتيني Эсватыні Есватини Eswatini Esvatini eSwatini Svazijsko Eswatini Eswatini Σουαζιλάνδη Eswatini Svazilando Esuatini Svaasimaa Swazilandia اسواتینی Swazimaa Eswatini Eswatini eSuaitíní eSwatini Eswatini אסוואטיני Esvatini Szváziföld Swazilandia eSwatini Svasíland Swaziland エスワティニ 에스와티니 Eswatini Свазиленд Svazilandas Svatini സ്വാസിലാന്റ് Эсватини Eswatini eSwatini Swaziland Eswatini Eswatini Essuatíni Essuatíni eSwatini Эсватини Eswatini Esvatini Esvatini Свазиленд Swaziland Uswazi เอสวาตีนี Esvatini Свазиленд Есватіні Svazilend Swaziland 斯威士兰 史瓦帝尼
222 TA تريستان دا كونا Трыстан-да-Кунья Тристан да Куня Tristan da Cunha Tristan da Cunha Tristan da Cunha Tristan da Cunha Tristan da Cunha Tristan da Cunha Τριστάν ντα Κούνια Tristan da Cunha Tristan da Cunha Tristán de Acuña Tristan da Cunha Tristan da Cunha تریستان دا کونا Tristan da Cunha Tristan da Cunha Tristan da Cunha Tristan da Cunha Tristan da Cunha Tristán da Cunha טריסטן דה קונה Tristan da Cunha Tristan da Cunha Tristan da Cunha Tristan da Cunha Tristan da Cunha Tristan da Cunha トリスタン・ダ・クーニャ 트리스탄다쿠나 Tristan da Cunha Тристан-да-Кунья Tristanas da Kunja Tristana da Kuņas salas ട്രിസ്റ്റൻ ഡ കൂന Тристан да Кунъя Tristan da Cunha Tristan da Cunha Tristan da Cunha Tristan da Cunha Tristan da Cunha Tristão da Cunha Tristão da Cunha Tristan da Cunha Тристан-да-Кунья Tristan da Cunha Tristan da Cunha Tristan-da-Kuna Тристан да Куња Tristan da Cunha Tristan da Cunha ทริสตันดาคูนา Tristan da Cunha Tristan da Cunha Трістан-да-Кунья Tristan-da-Kunya Tristan da Cunha 特里斯坦-达库尼亚群岛 特里斯坦達庫尼亞群島
223 TC جزر توركس وكايكوس Астравы Цёркс і Кайкас острови Търкс и Кайкос Inizi Turks ha Caicos Ostrva Turks i Kaikos Illes Turks i Caicos Turks a Caicos Turks- og Caicosøerne Turks- und Caicosinseln Νήσοι Τερκς και Κάικος Turks & Caicos Islands Turks & Caicos Islands Islas Turcas y Caicos Turks ja Caicos Turk eta Caico uharteak جزایر تورکس و کایکوس Turks- ja Caicossaaret Îles Turques-et-Caïques Îles Turques-et-Caïques Oileáin na dTurcach agus Caicos Na h-Eileanan Turcach is Caiceo Illas Turks e Caicos איי טרקס וקייקוס Otoci Turks i Caicos Turks- és Caicos-szigetek Insulas Turcos e Caicos Kepulauan Turks dan Caicos Turks- og Caicoseyjar Isole Turks e Caicos タークス・カイコス諸島 터크스 케이커스 제도 Turks & Caicos Islands Түркс жана Кайкос аралдары Terkso ir Kaikoso Salos Tērksas un Kaikosas salas ടർക്ക്‌സും കെയ്‌ക്കോ ദ്വീപുകളും Турк ба Кайкосын Арлууд Turks- og Caicosøyene Turks- en Caicoseilanden Turks- og Caicosøyane Turks & Caicos Islands Turks i Caicos Ilhas Turcas e Caicos Ilhas Turcas e Caicos Insulele Turks și Caicos о-ва Тёркс и Кайкос Turks a Caicos Otoki Turks in Caicos Ishujt Turks dhe Kaikos Острва Туркс и Каикос Turks- och Caicosöarna Visiwa vya Turks na Caicos หมู่เกาะเติกส์และหมู่เกาะเคคอส Turks ve Caicos Adaları Теркс һәм Кайкос утраулары Острови Теркс і Кайкос Turks va Kaykos orollari Quần đảo Turks và Caicos 特克斯和凯科斯群岛 土克斯及開科斯群島
224 TD تشاد Чад Чад Tchad Čad Txad Čad Tchad Tschad Τσαντ Chad Ĉado Chad Tšaad Txad چاد Tšad Tchad Tchad Sead An t-Seàd Chad צ׳אד Čad Csád Tchad Cad Tsjad Ciad チャド 차드 Chad Чад Čadas Čada ഛാഡ് Чад Tsjad Tsjaad Tsjad Chad Czad Chade Chade Ciad Чад Čad Čad Çad Чад Tchad Chad ชาด Çad Чад Чад Chad Chad 乍得 查德
225 TF الأقاليم الجنوبية الفرنسية Французскія паўднёвыя тэрыторыі Френски южни територии Douaroù aostral Frañs Francuske Južne Teritorije Territoris Australs Francesos Francouzská jižní území De Franske Besiddelser i Det Sydlige Indiske Ocean og Antarktis Französische Süd- und Antarktisgebiete Γαλλικά Νότια Εδάφη French Southern Territories French Southern Territories Territorios Australes Franceses Prantsuse Lõunaalad Hegoaldeko lurralde frantsesak سرزمین‌های جنوب فرانسه Ranskan eteläiset alueet Terres australes françaises Terres australes françaises Críocha Francacha Dheisceart an Domhain Ranntairean a Deas na Frainge Territorios Austrais Franceses הטריטוריות הדרומיות של צרפת Francuski južni i antarktički teritoriji Francia Déli Területek Territorios meridional francese Wilayah Selatan Perancis Frönsku suðlægu landsvæðin Terre australi francesi 仏領極南諸島 프랑스 남부 지방 French Southern Territories Франциянын Түштүктөгү аймактары Prancūzijos Pietų sritys Francijas Dienvidjūru teritorija ഫ്രഞ്ച് ദക്ഷിണ ഭൂപ്രദേശം Францын өмнөд газар нутаг De franske sørterritorier Franse Gebieden in de zuidelijke Indische Oceaan Dei franske sørterritoria French Southern Territories Francuskie Terytoria Południowe i Antarktyczne Territórios Franceses do Sul Territórios Franceses do Sul Teritoriile Australe și Antarctice Franceze Французские Южные территории Francúzske južné a antarktické územia Francosko južno ozemlje Territoret Jugore Franceze Француске Јужне Територије Franska sydterritorierna Himaya za Kusini za Kifaranza เฟรนช์เซาเทิร์นเทร์ริทอรีส์ Fransız Güney Toprakları Франциянең Көньяк Территорияләре Французькі Південні Території Fransuz Janubiy hududlari Lãnh thổ phía Nam Thuộc Pháp 法属南部领地 法屬南部屬地
226 TG توغو Тога Того Togo Togo Togo Togo Togo Togo Τόγκο Togo Togolo Togo Togo Togo توگو Togo Togo Togo Tóga Togo Togo טוגו Togo Togo Togo Togo Tógó Togo トーゴ 토고 Togo Того Togas Togo ടോഗോ Того Togo Togo Togo Togo Togo Togo Togo Togo Того Togo Togo Togo Того Togo Togo โตโก Togo Того Того Togo Togo 多哥 多哥
227 TH تايلاند Тайланд Тайланд Thailand Tajland Tailàndia Thajsko Thailand Thailand Ταϊλάνδη Thailand Tajlando Tailandia Tai Thailandia تایلند Thaimaa Thaïlande Thaïlande an Téalainn Dùthaich nan Tàidh Tailandia תאילנד Tajland Thaiföld Thailandia Thailand Taíland Thailandia タイ 태국 Thailand Тайланд Tailandas Taizeme തായ്‌ലാൻഡ് Тайланд Thailand Thailand Thailand Thailand Tajlandia Tailândia Tailândia Thailanda Таиланд Thajsko Tajska Tajlandë Тајланд Thailand Tailandi ไทย Tayland Тайланд Таїланд Tailand Thái Lan 泰国 泰國
228 TJ طاجيكستان Таджыкістан Таджикистан Tadjikistan Tadžikistan Tadjikistan Tádžikistán Tadsjikistan Tadschikistan Τατζικιστάν Tajikistan Taĝikujo Tayikistán Tadžikistan Tajikistan تاجیکستان Tadžikistan Tadjikistan Tadjikistan an Táidsíceastáin Taidigeastàn Taxiquistán טג׳יקיסטן Tadžikistan Tádzsikisztán Tadzhikistan Tajikistan Tadsjikistan Tagikistan タジキスタン 타지키스탄 Tajikistan Тажикстан Tadžikija Tadžikistāna താജിക്കിസ്ഥാൻ Тажикистан Tadsjikistan Tadzjikistan Tadsjikistan Tajikistan Tadżykistan Tadjiquistão Tadjiquistão Tadjikistan Таджикистан Tadžikistan Tadžikistan Taxhikistan Таџикистан Tadzjikistan Tajikistani ทาจิกิสถาน Tacikistan Таҗикстан Таджикистан Tojikiston Tajikistan 塔吉克斯坦 塔吉克
229 TK توكيلو Такелау Токелау Tokelau Tokelau Tokelau Tokelau Tokelau Tokelau Τοκελάου Tokelau Tokelau Tokelau Tokelau Tokelau توکلائو Tokelau Tokelau Tokelau Tócalá Tokelau Tokelau טוקלאו Tokelau Tokelau Tokelau Tokelau Tókelá Tokelau トケラウ 토켈라우 Tokelau Токелау Tokelau Tokelau ടോക്കെലൂ Токелау Tokelau Tokelau Tokelau Tokelau Tokelau Tokelau Tokelau Tokelau Токелау Tokelau Tokelau Tokelau Токелау Tokelau Tokelau โตเกเลา Tokelau Токелау Токелау Tokelau Tokelau 托克劳 托克勞群島
230 TL تيمور - ليشتي Тымор-Лешці Източен Тимор Timor-Leste Istočni Timor Timor Oriental Východní Timor Timor-Leste Timor-Leste Τιμόρ-Λέστε Timor-Leste Timor-Leste Timor-Leste Ida-Timor Ekialdeko Timor تیمور-لسته Itä-Timor Timor oriental Timor oriental Tíomór Thoir Timor-Leste Timor Leste טימור-לסטה Timor-Leste Kelet-Timor Timor del Est Timor Leste Tímor-Leste Timor Est 東ティモール 동티모르 Timor-Leste Тимор-Лесте Rytų Timoras Austrumtimora തിമോർ-ലെസ്റ്റെ Тимор-Лесте Øst-Timor Oost-Timor Timor-Leste (Aust-Timor) Timor-Leste Timor Wschodni Timor-Leste Timor-Leste Timor-Leste Восточный Тимор Východný Timor Timor-Leste Timor-Leste Тимор-Лесте (Источни Тимор) Östtimor Timor-Leste ติมอร์-เลสเต Timor-Leste Тимор-Лесте Тімор-Лешті Timor-Leste Timor-Leste 东帝汶 東帝汶
231 TM تركمانستان Туркменістан Туркменистан Turkmenistan Turkmenistan Turkmenistan Turkmenistán Turkmenistan Turkmenistan Τουρκμενιστάν Turkmenistan Turkmenujo Turkmenistán Türkmenistan Turkmenistan ترکمنستان Turkmenistan Turkménistan Turkménistan an Tuircméanastáin Turcmanastàn Turkmenistán טורקמניסטן Turkmenistan Türkmenisztán Turkmenistan Turkimenistan Túrkmenistan Turkmenistan トルクメニスタン 투르크메니스탄 Turkmenistan Түркмөнстан Turkmėnistanas Turkmenistāna തുർക്ക്മെനിസ്ഥാൻ Туркменистан Turkmenistan Turkmenistan Turkmenistan Turkmenistan Turkmenistan Turcomenistão Turcomenistão Turkmenistan Туркменистан Turkménsko Turkmenistan Turkmenistan Туркменистан Turkmenistan Turkmenistan เติร์กเมนิสถาน Türkmenistan Төркмәнстан Туркменістан Turkmaniston Turkmenistan 土库曼斯坦 土庫曼
232 TN تونس Туніс Тунис Tunizia Tunis Tunísia Tunisko Tunesien Tunesien Τυνησία Tunisia Tunizio Túnez Tuneesia Tunisia تونس Tunisia Tunisie Tunisie an Túinéis Tuinisea Tunisia תוניסיה Tunis Tunézia Tunisia Tunisia Túnis Tunisia チュニジア 튀니지 Tunisia Тунис Tunisas Tunisija ടുണീഷ്യ Тунис Tunisia Tunesië Tunisia Tunisia Tunezja Tunísia Tunísia Tunisia Тунис Tunisko Tunizija Tunizi Тунис Tunisien Tunisia ตูนิเซีย Tunus Тунис Туніс Tunis Tunisia 突尼斯 突尼西亞
233 TO تونغا Тонга Тонга Tonga Tonga Tonga Tonga Tonga Tonga Τόνγκα Tonga Tongo Tonga Tonga Tonga تونگا Tonga Tonga Tonga Tonga Tonga Tonga טונגה Tonga Tonga Tonga Tonga Tonga Tonga トンガ 통가 Tonga Тонга Tonga Tonga ടോംഗ Тонга Tonga Tonga Tonga Tonga Tonga Tonga Tonga Tonga Тонга Tonga Tonga Tonga Тонга Tonga Tonga ตองกา Tonga Тонга Тонґа Tonga Tonga 汤加 東加
234 TR تركيا Турцыя Турция Turkia Turska Turquia Turecko Tyrkiet Türkei Τουρκία Turkey Turkujo Turquía Türgi Turkia ترکیه Turkki Turquie Turquie an Tuirc An Tuirc Turquía טורקיה Turska Törökország Turchia Turki Tyrkland Turchia トルコ 터키 Turkey Түркия Turkija Turcija തുർക്കി Турк Tyrkia Turkije Tyrkia Turkey Turcja Turquia Turquia Turcia Турция Turecko Turčija Turqi Турска Turkiet Uturuki ตุรกี Türkiye Төркия Туреччина Turkiya Thổ Nhĩ Kỳ 土耳其 土耳其
235 TT ترينيداد وتوباغو Трынідад і Табага Тринидад и Тобаго Trinidad ha Tobago Trinidad i Tobago Trinitat i Tobago Trinidad a Tobago Trinidad og Tobago Trinidad und Tobago Τρινιντάντ και Τομπάγκο Trinidad & Tobago Trinidado kaj Tobago Trinidad y Tobago Trinidad ja Tobago Trinidad eta Tobago ترینیداد و توباگو Trinidad ja Tobago Trinité-et-Tobago Trinité-et-Tobago Oileán na Tríonóide agus Tobága Trianaid agus Tobago Trinidad e Tobago טרינידד וטובגו Trinidad i Tobago Trinidad és Tobago Trinidad e Tobago Trinidad dan Tobago Trínidad og Tóbagó Trinidad e Tobago トリニダード・トバゴ 트리니다드 토바고 Trinidad & Tobago Тринидад жана Тобаго Trinidadas ir Tobagas Trinidāda un Tobāgo ട്രിനിഡാഡും ടുബാഗോയും Тринидад ба Тобаго Trinidad og Tobago Trinidad en Tobago Trinidad og Tobago Trinidad & Tobago Trynidad i Tobago Trinidad e Tobago Trinidad e Tobago Trinidad și Tobago Тринидад и Тобаго Trinidad a Tobago Trinidad in Tobago Trinidad e Tobago Тринидад и Тобаго Trinidad och Tobago Trinidad na Tobago ตรินิแดดและโตเบโก Trinidad ve Tobago Тринидад һәм Тобаго Трінідад і Тобаґо Trinidad va Tobago Trinidad và Tobago 特立尼达和多巴哥 千里達及托巴哥
236 TV توفالو Тувалу Тувалу Tuvalu Tuvalu Tuvalu Tuvalu Tuvalu Tuvalu Τουβαλού Tuvalu Tuvalo Tuvalu Tuvalu Tuvalu تووالو Tuvalu Tuvalu Tuvalu Tuvalu Tubhalu Tuvalu טובאלו Tuvalu Tuvalu Tuvalu Tuvalu Túvalú Tuvalu ツバル 투발루 Tuvalu Тувалу Tuvalu Tuvalu ടുവാലു Тувалу Tuvalu Tuvalu Tuvalu Tuvalu Tuvalu Tuvalu Tuvalu Tuvalu Тувалу Tuvalu Tuvalu Tuvalu Тувалу Tuvalu Tuvalu ตูวาลู Tuvalu Тувалу Тувалу Tuvalu Tuvalu 图瓦卢 吐瓦魯
237 TW تايوان Тайвань Тайван Taiwan Tajvan Taiwan Tchaj-wan Taiwan Taiwan Ταϊβάν Taiwan Tajvano Taiwán Taiwan Taiwan تایوان Taiwan Taïwan Taïwan an Téaváin Taidh-Bhàn Taiwán טייוואן Tajvan Tajvan Taiwan Taiwan Taívan Taiwan 台湾 대만 Taiwan Тайвань Taivanas Taivāna തായ്‌വാൻ Тайвань Taiwan Taiwan Taiwan Taiwan Tajwan Taiwan Taiwan Taiwan Тайвань Taiwan Tajvan Tajvan Тајван Taiwan Taiwan ไต้หวัน Tayvan Тайвань Тайвань Tayvan Đài Loan 台湾 台灣
238 TZ تنزانيا Танзанія Танзания Tanzania Tanzanija Tanzània Tanzanie Tanzania Tansania Τανζανία Tanzania Tanzanio Tanzania Tansaania Tanzania تانزانیا Tansania Tanzanie Tanzanie an Tansáin An Tansan Tanzania טנזניה Tanzanija Tanzánia Tanzania Tanzania Tansanía Tanzania タンザニア 탄자니아 Tanzania Танзания Tanzanija Tanzānija ടാൻസാനിയ Танзани Tanzania Tanzania Tanzania Tanzania Tanzania Tanzânia Tanzânia Tanzania Танзания Tanzánia Tanzanija Tanzani Танзанија Tanzania Tanzania แทนซาเนีย Tanzanya Танзания Танзанія Tanzaniya Tanzania 坦桑尼亚 坦尚尼亞
239 UA أوكرانيا Украіна Украйна Ukraina Ukrajina Ucraïna Ukrajina Ukraine Ukraine Ουκρανία Ukraine Ukrajno Ucrania Ukraina Ukraina اوکراین Ukraina Ukraine Ukraine an Úcráin An Ucràin Ucraína אוקראינה Ukrajina Ukrajna Ukraina Ukraina Úkraína Ucraina ウクライナ 우크라이나 Ukraine Украина Ukraina Ukraina ഉക്രെയ്‌ൻ Украин Ukraina Oekraïne Ukraina Ukraine Ukraina Ucrânia Ucrânia Ucraina Украина Ukrajina Ukrajina Ukrainë Украјина Ukraina Ukraine ยูเครน Ukrayna Украина Україна Ukraina Ukraina 乌克兰 烏克蘭
240 UG أوغندا Уганда Уганда Ouganda Uganda Uganda Uganda Uganda Uganda Ουγκάντα Uganda Ugando Uganda Uganda Uganda اوگاندا Uganda Ouganda Ouganda Uganda Uganda Uganda אוגנדה Uganda Uganda Uganda Uganda Úganda Uganda ウガンダ 우간다 Uganda Уганда Uganda Uganda ഉഗാണ്ട Уганда Uganda Oeganda Uganda Uganda Uganda Uganda Uganda Uganda Уганда Uganda Uganda Ugandë Уганда Uganda Uganda ยูกันดา Uganda Уганда Уганда Uganda Uganda 乌干达 烏干達
241 UM جزر الولايات المتحدة النائية Малыя Аддаленыя астравы ЗША Отдалечени острови на САЩ Inizi diabell ar Stadoù-Unanet Američka Vanjska Ostrva Illes Perifèriques Menors dels EUA Menší odlehlé ostrovy USA Amerikanske oversøiske øer Amerikanische Überseeinseln Απομακρυσμένες Νησίδες ΗΠΑ U.S. Outlying Islands Usonaj malgrandaj insuloj Islas menores alejadas de EE. UU. Ühendriikide hajasaared Ameriketako Estatu Batuetako Kanpoaldeko Uharte Txikiak جزایر دورافتادهٔ ایالات متحده Yhdysvaltain erillissaaret Îles mineures éloignées des États-Unis Îles mineures éloignées des États-Unis Oileáin Imeallacha S.A.M. Meanbh-Eileanan Iomallach nan SA Illas Menores Distantes dos Estados Unidos האיים המרוחקים הקטנים של ארה״ב Mali udaljeni otoci SAD-a Az USA lakatlan külbirtokai U.S. Outlying Islands Kepulauan Terluar A.S. Smáeyjar Bandaríkjanna Altre isole americane del Pacifico 合衆国領有小離島 미국령 해외 제도 U.S. Outlying Islands АКШнын сырткы аралдары Jungtinių Valstijų Mažosios Tolimosios Salos ASV Mazās Aizjūras salas യു.എസ്. ദ്വീപസമൂഹങ്ങൾ Америкийн Нэгдсэн Улсын бага арлууд USAs ytre øyer Kleine afgelegen eilanden van de Verenigde Staten USAs ytre småøyar U.S. Outlying Islands Dalekie Wyspy Mniejsze Stanów Zjednoczonych Ilhas Menores Distantes dos EUA Ilhas Menores Distantes dos EUA Insulele Îndepărtate ale S.U.A. Внешние малые о-ва (США) Menšie odľahlé ostrovy USA Stranski zunanji otoki Združenih držav Ishujt Periferikë të SHBA-së Удаљена острва САД USA:s yttre öar Visiwa Vidogo vya Nje vya Marekani หมู่เกาะรอบนอกของสหรัฐอเมริกา ABD Küçük Harici Adaları АКШ Кече Читтәге утраулары Віддалені острови США AQSH yondosh orollari Các tiểu đảo xa của Hoa Kỳ 美国本土外小岛屿 美國本土外小島嶼
242 US الولايات المتحدة Злучаныя Штаты Съединени щати Stadoù-Unanet Sjedinjene Države Estats Units Spojené státy USA Vereinigte Staaten Ηνωμένες Πολιτείες United States Usono Estados Unidos Ameerika Ühendriigid Ameriketako Estatu Batuak ایالات متحده Yhdysvallat États-Unis États-Unis Stáit Aontaithe Mheiriceá Na Stàitean Aonaichte Os Estados Unidos ארצות הברית Sjedinjene Američke Države Egyesült Államok Statos Unite Amerika Serikat Bandaríkin Stati Uniti アメリカ合衆国 미국 Statys Unys Кошмо Штаттар Jungtinės Valstijos Amerikas Savienotās Valstis അമേരിക്കൻ ഐക്യനാടുകൾ Америкийн Нэгдсэн Улс USA Verenigde Staten USA АИШ Stany Zjednoczone Estados Unidos Estados Unidos Statele Unite ale Americii Соединенные Штаты Spojené štáty Združene države Amerike SHBA Сједињене Државе USA Marekani สหรัฐอเมริกา Amerika Birleşik Devletleri АКШ Сполучені Штати Amerika Qo‘shma Shtatlari Hoa Kỳ 美国 美國
243 UY أورغواي Уругвай Уругвай Uruguay Urugvaj Uruguai Uruguay Uruguay Uruguay Ουρουγουάη Uruguay Urugvajo Uruguay Uruguay Uruguai اروگوئه Uruguay Uruguay Uruguay Uragua Uruguaidh O Uruguai אורוגוואי Urugvaj Uruguay Uruguay Uruguay Úrúgvæ Uruguay ウルグアイ 우루과이 Uruguay Уругвай Urugvajus Urugvaja ഉറുഗ്വേ Уругвай Uruguay Uruguay Uruguay Uruguay Urugwaj Uruguai Uruguai Uruguay Уругвай Uruguaj Urugvaj Uruguai Уругвај Uruguay Uruguay อุรุกวัย Uruguay Уругвай Уруґвай Urugvay Uruguay 乌拉圭 烏拉圭
244 UZ أوزبكستان Узбекістан Узбекистан Ouzbekistan Uzbekistan Uzbekistan Uzbekistán Usbekistan Usbekistan Ουζμπεκιστάν Uzbekistan Uzbekujo Uzbekistán Usbekistan Uzbekistan ازبکستان Uzbekistan Ouzbékistan Ouzbékistan an Úisbéiceastáin Usbagastàn Uzbekistán אוזבקיסטן Uzbekistan Üzbegisztán Uzbekistan Uzbekistan Úsbekistan Uzbekistan ウズベキスタン 우즈베키스탄 Uzbekistan Өзбекстан Uzbekistanas Uzbekistāna ഉസ്‌ബെക്കിസ്ഥാൻ Узбекистан Usbekistan Oezbekistan Usbekistan Uzbekistan Uzbekistan Uzbequistão Uzbequistão Uzbekistan Узбекистан Uzbekistan Uzbekistan Uzbekistan Узбекистан Uzbekistan Uzibekistani อุซเบกิสถาน Özbekistan Үзбәкстан Узбекистан Oʻzbekiston Uzbekistan 乌兹别克斯坦 烏茲別克
245 VA الفاتيكان Ватыкан Ватикан Vatikan Vatikan Ciutat del Vaticà Vatikán Vatikanstaten Vatikanstadt Βατικανό Vatican City Vatikano Ciudad del Vaticano Vatikan Vatikano Hiria واتیکان Vatikaani État de la Cité du Vatican État de la Cité du Vatican Cathair na Vatacáine Cathair na Bhatacain Cidade do Vaticano הוותיקן Vatikanski Grad Vatikán Citate del Vaticano Vatikan Vatíkanið Città del Vaticano バチカン市国 바티칸 시국 Vatican City Ватикан Vatikano Miesto Valstybė Vatikāns വത്തിക്കാൻ Ватикан хот улс Vatikanstaten Vaticaanstad Vatikanstaten Vatican City Watykan Cidade do Vaticano Cidade do Vaticano Statul Cetății Vaticanului Ватикан Vatikán Vatikan Vatikan Ватикан Vatikanstaten Mji wa Vatican นครวาติกัน Vatikan Vatican City Ватикан Vatikan Thành Vatican 梵蒂冈 梵蒂岡
246 VC سانت فنسنت وجزر غرينادين Сент-Вінсент і Грэнадзіны Сейнт Винсънт и Гренадини Sant Visant hag ar Grenadinez Sveti Vinsent i Grenadin Saint Vincent i les Grenadines Svatý Vincenc a Grenadiny Saint Vincent og Grenadinerne St. Vincent und die Grenadinen Άγιος Βικέντιος και Γρεναδίνες St. Vincent & Grenadines Sent-Vincento kaj la Grenadinoj San Vicente y las Granadinas Saint Vincent ja Grenadiinid Saint Vincent eta Grenadinak سنت وینسنت و گرنادین Saint Vincent ja Grenadiinit Saint-Vincent-et-les-Grenadines Saint-Vincent-et-les-Grenadines San Uinseann agus na Greanáidíní Naomh Bhionsant agus Eileanan Greanadach San Vicente e As Granadinas סנט וינסנט והגרנדינים Sveti Vincent i Grenadini Saint Vincent és a Grenadine-szigetek Sancte Vincente e le Grenadinas Saint Vincent dan Grenadine Sankti Vinsent og Grenadíneyjar Saint Vincent e Grenadine セントビンセント及びグレナディーン諸島 세인트빈센트그레나딘 St. Vincent & Grenadines Сент-Винсент жана Гренадиндер Šventasis Vincentas ir Grenadinai Sentvinsenta un Grenadīnas സെന്റ് വിൻസെന്റും ഗ്രനെഡൈൻസും Сент-Винсент ба Гренадин St. Vincent og Grenadinene Saint Vincent en de Grenadines St. Vincent og Grenadinane St. Vincent & Grenadines Saint Vincent i Grenadyny São Vicente e Granadinas São Vicente e Granadinas Saint Vincent și Grenadinele Сент-Винсент и Гренадины Svätý Vincent a Grenadíny Saint Vincent in Grenadine Shën-Vincent dhe Grenadine Сент Винсент и Гренадини S:t Vincent och Grenadinerna St. Vincent na Grenadines เซนต์วินเซนต์และเกรนาดีนส์ Saint Vincent ve Grenadinler Сент-Винсент һәм Гренадин Сент-Вінсент і Ґренадіни Sent-Vinsent va Grenadin St. Vincent và Grenadines 圣文森特和格林纳丁斯 聖文森及格瑞那丁
247 VE فنزويلا Венесуэла Венецуела Venezuela Venecuela Veneçuela Venezuela Venezuela Venezuela Βενεζουέλα Venezuela Venezuelo Venezuela Venezuela Venezuela ونزوئلا Venezuela Venezuela Venezuela Veiniséala A’ Bheiniseala Venezuela ונצואלה Venezuela Venezuela Venezuela Venezuela Venesúela Venezuela ベネズエラ 베네수엘라 Venezuela Венесуэла Venesuela Venecuēla വെനിസ്വേല Венесуэл Venezuela Venezuela Venezuela Venezuela Wenezuela Venezuela Venezuela Venezuela Венесуэла Venezuela Venezuela Venezuelë Венецуела Venezuela Venezuela เวเนซุเอลา Venezuela Венесуэла Венесуела Venesuela Venezuela 委内瑞拉 委內瑞拉
248 VG جزر فيرجن البريطانية Брытанскія Віргінскія астравы Британски Вирджински острови Inizi Gwercʼh Breizh-Veur Britanska Djevičanska ostrva Illes Verges Britàniques Britské Panenské ostrovy De Britiske Jomfruøer Britische Jungferninseln Βρετανικές Παρθένες Νήσοι British Virgin Islands Britaj Virgulininsuloj Islas Vírgenes Británicas Briti Neitsisaared Birjina uharte britainiarrak جزایر ویرجین بریتانیا Brittiläiset Neitsytsaaret Îles Vierges britanniques Îles Vierges britanniques Oileáin Bhriotanacha na Maighdean Eileanan Breatannach na Maighdinn Illas Virxes Británicas איי הבתולה הבריטיים Britanski Djevičanski otoci Brit Virgin-szigetek British Virgin Islands Kepulauan Virgin Britania Raya Bresku Jómfrúaeyjar Isole Vergini Britanniche 英領ヴァージン諸島 영국령 버진아일랜드 British Virgin Islands Виргин аралдары (Британия) Didžiosios Britanijos Mergelių Salos Britu Virdžīnas ബ്രിട്ടീഷ് വെർജിൻ ദ്വീപുകൾ Британийн Виржиний арлууд De britiske jomfruøyene Britse Maagdeneilanden Dei britiske Jomfruøyane British Virgin Islands Brytyjskie Wyspy Dziewicze Ilhas Virgens Britânicas Ilhas Virgens Britânicas Insulele Virgine Britanice Виргинские о-ва (Великобритания) Britské Panenské ostrovy Britanski Deviški otoki Ishujt e Virgjër Britanikë Британска Девичанска Острва Brittiska Jungfruöarna Visiwa vya Virgin, Uingereza หมู่เกาะบริติชเวอร์จิน Britanya Virjin Adaları Британия Виргин утраулары Британські Віргінські острови Britaniya Virgin orollari Quần đảo Virgin thuộc Anh 英属维尔京群岛 英屬維京群島
249 VI جزر فيرجن التابعة للولايات المتحدة Амерыканскія Віргінскія астравы Американски Вирджински острови Inizi Gwercʼh ar Stadoù-Unanet Američka Djevičanska ostrva Illes Verges Nord-americanes Americké Panenské ostrovy De Amerikanske Jomfruøer Amerikanische Jungferninseln Αμερικανικές Παρθένες Νήσοι U.S. Virgin Islands Usonaj Virgulininsuloj Islas Vírgenes de EE. UU. USA Neitsisaared Birjina uharte amerikarrak جزایر ویرجین ایالات متحده Yhdysvaltain Neitsytsaaret Îles Vierges des États-Unis Îles Vierges des États-Unis Oileáin Mheiriceánacha na Maighdean Eileanan na Maighdinn aig na SA Illas Virxes Estadounidenses איי הבתולה של ארצות הברית Američki Djevičanski otoci Amerikai Virgin-szigetek U.S. Virgin Islands Kepulauan Virgin Amerika Serikat Bandarísku Jómfrúaeyjar Isole Vergini Americane 米領ヴァージン諸島 미국령 버진아일랜드 U.S. Virgin Islands Виргин аралдары (АКШ) Jungtinių Valstijų Mergelių Salos ASV Virdžīnas യു.എസ്. വെർജിൻ ദ്വീപുകൾ АНУ-ын Виржиний арлууд De amerikanske jomfruøyene Amerikaanse Maagdeneilanden Dei amerikanske Jomfruøyane U.S. Virgin Islands Wyspy Dziewicze Stanów Zjednoczonych Ilhas Virgens Americanas Ilhas Virgens Americanas Insulele Virgine Americane Виргинские о-ва (США) Americké Panenské ostrovy Ameriški Deviški otoki Ishujt e Virgjër të SHBA-së Америчка Девичанска Острва Amerikanska Jungfruöarna Visiwa vya Virgin, Marekani หมู่เกาะเวอร์จินของสหรัฐอเมริกา ABD Virjin Adaları АКШ Виргин утраулары Віргінські острови, США AQSH Virgin orollari Quần đảo Virgin thuộc Mỹ 美属维尔京群岛 美屬維京群島
250 VN فيتنام В’етнам Виетнам Viêt Nam Vijetnam Vietnam Vietnam Vietnam Vietnam Βιετνάμ Vietnam Vjetnamo Vietnam Vietnam Vietnam ویتنام Vietnam Vietnam Vietnam Vítneam Bhiet-Nam Vietnam וייטנאם Vijetnam Vietnám Vietnam Vietnam Víetnam Vietnam ベトナム 베트남 Vietnam Вьетнам Vietnamas Vjetnama വിയറ്റ്നാം Вьетнам Vietnam Vietnam Vietnam Vietnam Wietnam Vietnã Vietnã Vietnam Вьетнам Vietnam Vietnam Vietnam Вијетнам Vietnam Vietnam เวียดนาม Vietnam Вьетнам Вʼєтнам Vyetnam Việt Nam 越南 越南
251 VU فانواتو Вануату Вануату Vanuatu Vanuatu Vanuatu Vanuatu Vanuatu Vanuatu Βανουάτου Vanuatu Vanuatuo Vanuatu Vanuatu Vanuatu وانواتو Vanuatu Vanuatu Vanuatu Vanuatú Vanuatu Vanuatu ונואטו Vanuatu Vanuatu Vanuatu Vanuatu Vanúatú Vanuatu バヌアツ 바누아투 Vanuatu Вануату Vanuatu Vanuatu വന്വാതു Вануату Vanuatu Vanuatu Vanuatu Vanuatu Vanuatu Vanuatu Vanuatu Vanuatu Вануату Vanuatu Vanuatu Vanuatu Вануату Vanuatu Vanuatu วานูอาตู Vanuatu Вануату Вануату Vanuatu Vanuatu 瓦努阿图 萬那杜
252 WF جزر والس وفوتونا Уоліс і Футуна Уолис и Футуна Wallis ha Futuna Ostrva Valis i Futuna Wallis i Futuna Wallis a Futuna Wallis og Futuna Wallis und Futuna Γουάλις και Φουτούνα Wallis & Futuna Valiso kaj Futuno Wallis y Futuna Wallis ja Futuna Wallis eta Futuna والیس و فوتونا Wallis ja Futuna Wallis-et-Futuna Wallis-et-Futuna Vailís agus Futúna Uallas agus Futuna Wallis e Futuna איי ווליס ופוטונה Wallis i Futuna Wallis és Futuna Wallis & Futuna Kepulauan Wallis dan Futuna Wallis- og Fútúnaeyjar Wallis e Futuna ウォリス・フツナ 왈리스-푸투나 제도 Wallis & Futuna Уоллис жана Футуна Volisas ir Futūna Volisa un Futunas salas വാലിസ് ആന്റ് ഫ്യൂച്യുന Уоллис ба Футуна Wallis og Futuna Wallis en Futuna Wallis og Futuna Wallis & Futuna Wallis i Futuna Wallis e Futuna Wallis e Futuna Wallis și Futuna Уоллис и Футуна Wallis a Futuna Wallis in Futuna Uollis e Futuna Валис и Футуна Wallis- och Futunaöarna Wallis na Futuna วาลลิสและฟุตูนา Wallis ve Futuna Уоллис һәм Футуна Уолліс і Футуна Uollis va Futuna Wallis và Futuna 瓦利斯和富图纳 瓦利斯群島和富圖那群島
253 WS ساموا Самоа Самоа Samoa Samoa Samoa Samoa Samoa Samoa Σαμόα Samoa Samoo Samoa Samoa Samoa ساموآ Samoa Samoa Samoa Samó Samotha Samoa סמואה Samoa Szamoa Samoa Samoa Samóa Samoa サモア 사모아 Samoa Самоа Samoa Samoa സമോവ Самоа Samoa Samoa Samoa Samoa Samoa Samoa Samoa Samoa Самоа Samoa Samoa Samoa Самоа Samoa Samoa ซามัว Samoa Самоа Самоа Samoa Samoa 萨摩亚 薩摩亞
254 XK كوسوفو Косава Косово Kosovo Kosovo Kosovo Kosovo Kosovo Kosovo Κοσσυφοπέδιο Kosovo Kosovo Kosovo Kosovo Kosovo کوزوو Kosovo Kosovo Kosovo an Chosaiv A’ Chosobho Kosovo קוסובו Kosovo Koszovó Kosovo Kosovo Kósóvó Kosovo コソボ 코소보 Kosovo Косово Kosovas Kosova കൊസോവൊ Косово Kosovo Kosovo Kosovo Kosovo Kosowo Kosovo Kosovo Kosovo Косово Kosovo Kosovo Kosovë Косово Kosovo Kosovo โคโซโว Kosova Косово Косово Kosovo Kosovo 科索沃 科索沃
255 YE اليمن Емен Йемен Yemen Jemen Iemen Jemen Yemen Jemen Υεμένη Yemen Jemeno Yemen Jeemen Yemen یمن Jemen Yémen Yémen Éimin An Eaman O Iemen תימן Jemen Jemen Yemen Yaman Jemen Yemen イエメン 예멘 Yemen Йемен Jemenas Jemena യെമൻ Йемен Jemen Jemen Jemen Yemen Jemen Iêmen Iêmen Yemen Йемен Jemen Jemen Jemen Јемен Jemen Yemeni เยเมน Yemen Йәмән Ємен Yaman Yemen 也门 葉門
256 YT مايوت Маёта Майот Mayotte Majote Mayotte Mayotte Mayotte Mayotte Μαγιότ Mayotte Majoto Mayotte Mayotte Mayotte مایوت Mayotte Mayotte Mayotte Mayotte Mayotte Mayotte מאיוט Mayotte Mayotte Mayotte Mayotte Mayotte Mayotte マヨット 마요트 Mayotte Майотта Majotas Majota മയോട്ടി Майотта Mayotte Mayotte Mayotte Mayotte Majotta Mayotte Mayotte Mayotte Майотта Mayotte Mayotte Majotë Мајот Mayotte Mayotte มายอต Mayotte Майотта Майотта Mayotta Mayotte 马约特 馬約特島
257 ZA جنوب أفريقيا Паўднёва-Афрыканская Рэспубліка Южна Африка Suafrika Južnoafrička Republika República de Sud-àfrica Jihoafrická republika Sydafrika Südafrika Νότια Αφρική South Africa Sud-Afriko Sudáfrica Lõuna-Aafrika Vabariik Hegoafrika افریقای جنوبی Etelä-Afrikka Afrique du Sud Afrique du Sud an Afraic Theas Afraga a Deas Suráfrica דרום אפריקה Južnoafrička Republika Dél-afrikai Köztársaság Sudafrica Afrika Selatan Suður-Afríka Sudafrica 南アフリカ 남아프리카 South Africa Түштүк-Африка Республикасы Pietų Afrika Dienvidāfrikas Republika ദക്ഷിണാഫ്രിക്ക Өмнөд Африк Sør-Afrika Zuid-Afrika Sør-Afrika South Africa Republika Południowej Afryki África do Sul África do Sul Africa de Sud Южно-Африканская Республика Južná Afrika Južnoafriška republika Afrika e Jugut Јужноафричка Република Sydafrika Afrika Kusini แอฟริกาใต้ Güney Afrika Көньяк Африка Південно-Африканська Республіка Janubiy Afrika Respublikasi Nam Phi 南非 南非
258 ZM زامبيا Замбія Замбия Zambia Zambija Zàmbia Zambie Zambia Sambia Ζάμπια Zambia Zambio Zambia Sambia Zambia زامبیا Sambia Zambie Zambie an tSaimbia Sàimbia Zambia זמביה Zambija Zambia Zambia Zambia Sambía Zambia ザンビア 잠비아 Zambia Замбия Zambija Zambija സാംബിയ Замби Zambia Zambia Zambia Zambia Zambia Zâmbia Zâmbia Zambia Замбия Zambia Zambija Zambi Замбија Zambia Zambia แซมเบีย Zambiya Замбия Замбія Zambiya Zambia 赞比亚 尚比亞
259 ZW زيمبابوي Зімбабвэ Зимбабве Zimbabwe Zimbabve Zimbàbue Zimbabwe Zimbabwe Simbabwe Ζιμπάμπουε Zimbabwe Zimbabvo Zimbabue Zimbabwe Zimbabwe زیمبابوه Zimbabwe Zimbabwe Zimbabwe an tSiombáib An t-Sìombab Zimbabwe זימבבואה Zimbabve Zimbabwe Zimbabwe Zimbabwe Simbabve Zimbabwe ジンバブエ 짐바브웨 Zimbabwe Зимбабве Zimbabvė Zimbabve സിംബാബ്‌വേ Зимбабве Zimbabwe Zimbabwe Zimbabwe Zimbabwe Zimbabwe Zimbábue Zimbábue Zimbabwe Зимбабве Zimbabwe Zimbabve Zimbabve Зимбабве Zimbabwe Zimbabwe ซิมบับเว Zimbabve Зимбабве Зімбабве Zimbabve Zimbabwe 津巴布韦 辛巴威

40
data/emoji_used.txt Normal file
View File

@@ -0,0 +1,40 @@
# List of emojis separated with newline used in on-screen keyboard
# Only top 38 will be used
🎉
👀
✌️
👉
👌
👍
👎
👏
❤️
💔
💯
🔥
😁
😂
😄
😅
😉
☺️
😋
🤔
😍
😎
😏
😑
😒
😔
😕
😘
😜
😞
😢
😩
😪
😭
😳
😴
🙌
🙏

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

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