]> git.lizzy.rs Git - minetest.git/log
minetest.git
3 years agoFix check that given IRRLICHT_LIBRARY exists
sfan5 [Sat, 5 Jun 2021 11:36:52 +0000 (13:36 +0200)]
Fix check that given IRRLICHT_LIBRARY exists

3 years agoAndroid: Do not submit text after pressing Enter key for multi-line text (#11298)
Muhammad Rifqi Priyo Susanto [Fri, 4 Jun 2021 19:22:53 +0000 (02:22 +0700)]
Android: Do not submit text after pressing Enter key for multi-line text (#11298)

Regular EditText is used for multi-line text to not close the dialog after pressing back button.
New button is added for submitting multi-line text.

3 years agoAdd metatables to lua vectors (#11039)
DS [Fri, 4 Jun 2021 19:22:33 +0000 (21:22 +0200)]
Add metatables to lua vectors (#11039)

Add backwards-compatible metatable functions for vectors.

3 years agofontengine: Fix crash loading PNG/XML fonts from paths without dot
sfan5 [Tue, 1 Jun 2021 17:45:45 +0000 (19:45 +0200)]
fontengine: Fix crash loading PNG/XML fonts from paths without dot

fixes #11096

3 years agoAdd core.compare_block_status function (#11247)
SmallJoker [Sun, 30 May 2021 18:24:12 +0000 (20:24 +0200)]
Add core.compare_block_status function (#11247)

Makes it possible to check the status of the mapblock in a future-extensible way.

3 years agoFix base64 validation and add unittests (#10515)
Lars Müller [Sun, 30 May 2021 18:23:12 +0000 (20:23 +0200)]
Fix base64 validation and add unittests (#10515)

Implement proper padding character checks

3 years agoUse safe_file_write to save forceloaded blocks
sfan5 [Sun, 30 May 2021 09:15:02 +0000 (11:15 +0200)]
Use safe_file_write to save forceloaded blocks

3 years agoFix procession ordering issue in content_cao
sfan5 [Sat, 29 May 2021 17:08:16 +0000 (19:08 +0200)]
Fix procession ordering issue in content_cao

3 years agoRemove unused version detection from FindLuaJIT.cmake
sfan5 [Tue, 25 May 2021 19:16:55 +0000 (21:16 +0200)]
Remove unused version detection from FindLuaJIT.cmake

3 years agoFix background color of formspec text fields
sfan5 [Tue, 25 May 2021 19:03:51 +0000 (21:03 +0200)]
Fix background color of formspec text fields

3 years agoscript: Replace calls to depreated luaL_openlib
sfan5 [Tue, 25 May 2021 18:20:16 +0000 (20:20 +0200)]
script: Replace calls to depreated luaL_openlib

3 years agoProvide exact error message if postgres connection string missing
sfan5 [Tue, 25 May 2021 18:03:05 +0000 (20:03 +0200)]
Provide exact error message if postgres connection string missing

3 years agoFix misleading /shutdown command syntax
Wuzzy [Sat, 6 Mar 2021 03:05:14 +0000 (04:05 +0100)]
Fix misleading /shutdown command syntax

3 years agoUnitSAO: Prevent circular attachments
SmallJoker [Sat, 29 May 2021 09:44:48 +0000 (11:44 +0200)]
UnitSAO: Prevent circular attachments

3 years agoFix cloud fog being broken for high clouds
Wuzzy [Tue, 25 May 2021 21:44:41 +0000 (23:44 +0200)]
Fix cloud fog being broken for high clouds

3 years agoFix client crash on when con::PeerNotFoundException is thrown (#11286)
savilli [Mon, 24 May 2021 17:40:35 +0000 (19:40 +0200)]
Fix client crash on when con::PeerNotFoundException is thrown (#11286)

3 years agoGUIEditBox: Allow selecting and copying read-only texts
SmallJoker [Fri, 21 May 2021 15:26:02 +0000 (17:26 +0200)]
GUIEditBox: Allow selecting and copying read-only texts

3 years agoCI: add workaround to fix clang builds
sfan5 [Mon, 17 May 2021 14:55:55 +0000 (16:55 +0200)]
CI: add workaround to fix clang builds

see https://github.com/actions/virtual-environments/issues/3376

3 years agoFix curl_timeout being ignored for Lua HTTP fetches
sfan5 [Sun, 16 May 2021 12:05:43 +0000 (14:05 +0200)]
Fix curl_timeout being ignored for Lua HTTP fetches

3 years agoFix list of libraries included in AppImage
Lejo [Sat, 15 May 2021 21:56:33 +0000 (23:56 +0200)]
Fix list of libraries included in AppImage

3 years agoUse --image-base instead of -Ttext-segment for lld linker on FreeBSD (#9367) (#11263)
Dmitry Marakasov [Sat, 15 May 2021 08:15:03 +0000 (11:15 +0300)]
Use --image-base instead of -Ttext-segment for lld linker on FreeBSD (#9367) (#11263)

3 years agoFix swapped vertex colors on GLES2
sfan5 [Sat, 8 May 2021 18:18:29 +0000 (20:18 +0200)]
Fix swapped vertex colors on GLES2

3 years agoFix overlays for 2D-drawn items
sfan5 [Sat, 8 May 2021 17:33:52 +0000 (19:33 +0200)]
Fix overlays for 2D-drawn items

fixes #11248

3 years agoFix build for newer versions of GCC (#11246)
lhofhansl [Thu, 6 May 2021 17:24:30 +0000 (10:24 -0700)]
Fix build for newer versions of GCC (#11246)

3 years agoImprove liquid documentation (#11158)
Wuzzy [Thu, 6 May 2021 17:24:11 +0000 (17:24 +0000)]
Improve liquid documentation (#11158)

3 years agofix: extractZipFile is not part of Client but more generic.
Loic Blot [Thu, 6 May 2021 07:02:11 +0000 (09:02 +0200)]
fix: extractZipFile is not part of Client but more generic.

This solve a crash from mainmenu while extracting the zip

3 years agoAdd basic client-server test to CI
sfan5 [Wed, 21 Apr 2021 16:21:12 +0000 (18:21 +0200)]
Add basic client-server test to CI

3 years agoUse Irrlicht functions to query npot texture support
sfan5 [Wed, 21 Apr 2021 16:52:14 +0000 (18:52 +0200)]
Use Irrlicht functions to query npot texture support

3 years agofix: some code tidy about includes & irr namespaces
Loic Blot [Mon, 3 May 2021 08:27:00 +0000 (10:27 +0200)]
fix: some code tidy about includes & irr namespaces

3 years agorefacto: remove get_gui_env & draw_load_screen from RenderingEngine singleton
Loic Blot [Thu, 29 Apr 2021 18:38:35 +0000 (20:38 +0200)]
refacto: remove get_gui_env & draw_load_screen from RenderingEngine singleton

3 years agofix: don't use RenderingEngine singleton when it's possible
Loic Blot [Thu, 29 Apr 2021 07:45:49 +0000 (09:45 +0200)]
fix: don't use RenderingEngine singleton when it's possible

3 years agorefacto: RenderingEngine::get_scene_manager() is now not callable from singleton
Loic Blot [Thu, 29 Apr 2021 07:40:56 +0000 (09:40 +0200)]
refacto: RenderingEngine::get_scene_manager() is now not callable from singleton

This permits to make evidence that we have some bad object passing on various code parts. I fixed majority of them to reduce the scope of passed objects

Unfortunately, for some edge cases i should have to expose ISceneManager from client, this should be fixed in the future when our POO will be cleaner client side (we have a mix of rendering and processing in majority of the client objects, it works but it's not clean)

3 years agorefacto: Hud: make driver, client, player, inventory, tsrc private & drop unused...
Loic Blot [Thu, 29 Apr 2021 07:30:19 +0000 (09:30 +0200)]
refacto: Hud: make driver, client, player, inventory, tsrc private & drop unused guienv

also fix c_content.h, on client it includes the src/client/hud.h instead of src/hud.h, which leads to wrong file dependency on the lua stack

3 years agorefacto: drop unused Hud::smgr
Loic Blot [Thu, 29 Apr 2021 07:20:01 +0000 (09:20 +0200)]
refacto: drop unused Hud::smgr

3 years agorefacto: don't use RenderingEngine singleton on CAO
Loic Blot [Thu, 29 Apr 2021 07:07:36 +0000 (09:07 +0200)]
refacto: don't use RenderingEngine singleton on CAO

* we don't need on CAO side more than SceneManager, and temporary. Pass only required SceneManager as a parameter to build CAO and add them to the current scene
* Use temporary the RenderingEngine singleton from ClientEnvironment, waitfor for better solution
* Make ClientActiveObject::addToScene virtual function mandatory to be defined by children to ensure we don't forget to properly define it

3 years agorefacto: protect some RenderingEngine::get_scene_manager
Loic Blot [Thu, 29 Apr 2021 06:51:17 +0000 (08:51 +0200)]
refacto: protect some RenderingEngine::get_scene_manager

* protect it from Camera, Sky, ClientMap object calls
* rename Game::sky to Game::m_sky

3 years agorefacto: RenderingEngine is now better hidden
Loic Blot [Wed, 28 Apr 2021 10:48:13 +0000 (12:48 +0200)]
refacto: RenderingEngine is now better hidden

* No more access to the singleton instance from everywhere (RenderingEngine::get_instance dropped)
* RenderingEngine::get_timer_time is now non static
* RenderingEngine::draw_menu_scene is now non static
* RenderingEngine::draw_scene is now non static
* RenderingEngine::{initialize,finalize} are now non static
* RenderingEngine::run is now non static
* RenderingEngine::getWindowSize now have a static helper. It was mandatory to hide the global get_instance access

3 years agorefacto: hide mesh_cache inside the rendering engine
Loic Blot [Wed, 28 Apr 2021 09:07:28 +0000 (11:07 +0200)]
refacto: hide mesh_cache inside the rendering engine

This permit cleaner access to meshCache and ensure we don't access to it from all the code

3 years agorefacto: add RenderingEngine::cleanupMeshCache
Loic Blot [Wed, 28 Apr 2021 08:53:36 +0000 (10:53 +0200)]
refacto: add RenderingEngine::cleanupMeshCache

This permits to prevent client to own the mesh cache cleanup logic. It's better in RenderingEngine

3 years agorefacto: rendering engine singleton removal step 1 (filesystem)
Loic Blot [Wed, 28 Apr 2021 08:22:13 +0000 (10:22 +0200)]
refacto: rendering engine singleton removal step 1 (filesystem)

Make the RenderingEngine filesystem member non accessible from everywhere

This permits also to determine that some lua code has directly a logic to extract zip file. Move this logic inside client, it's not the lua stack role to perform a such complex operation

Found also another irrlicht <1.8 compat code to remove

3 years agofix: drop old irrlicht <1.8 compat on Client::loadMedia
Loic Blot [Wed, 28 Apr 2021 07:55:51 +0000 (09:55 +0200)]
fix: drop old irrlicht <1.8 compat on Client::loadMedia

3 years agoFix Windows pipelines on Gitlab-CI
sfan5 [Tue, 27 Apr 2021 21:41:35 +0000 (23:41 +0200)]
Fix Windows pipelines on Gitlab-CI

3 years agoFix rotation for falling mesh degrotate nodes (#11159)
Wuzzy [Wed, 28 Apr 2021 06:38:47 +0000 (06:38 +0000)]
Fix rotation for falling mesh degrotate nodes (#11159)

3 years agoAdd helpful error messages if Irrlicht library / include dir are set incorrectly...
sfan5 [Wed, 28 Apr 2021 06:38:18 +0000 (08:38 +0200)]
Add helpful error messages if Irrlicht library / include dir are set incorrectly (#11232)

3 years agoUpdate library versions in buildbot (#11229)
sfan5 [Tue, 27 Apr 2021 09:50:40 +0000 (11:50 +0200)]
Update library versions in buildbot (#11229)

3 years agoRename “Irrlicht” to “IrrlichtMt” in documentation
Wuzzy [Fri, 23 Apr 2021 19:37:45 +0000 (19:37 +0000)]
Rename “Irrlicht” to “IrrlichtMt” in documentation

3 years agoAdd `minetest.colorspec_to_colorstring` (#10425)
Vincent Robinson [Fri, 23 Apr 2021 19:37:24 +0000 (12:37 -0700)]
Add `minetest.colorspec_to_colorstring` (#10425)

3 years agoFix two CMake build issues
sfan5 [Wed, 21 Apr 2021 18:25:18 +0000 (20:25 +0200)]
Fix two CMake build issues

* PostgreSQL fallback code missed the includes (closes #11219)
* build failed when Freetype enabled but not found

3 years agoFix devtest Lua error
sfan5 [Wed, 21 Apr 2021 14:42:34 +0000 (16:42 +0200)]
Fix devtest Lua error

fallback_image() was removed in 3e1904fa8c4aae3448d58b7e60545a4fdd8234f3,
which was written after this PR but merged before it.

3 years agoLook for PostgreSQL library properly and fix CI
sfan5 [Tue, 20 Apr 2021 17:50:34 +0000 (19:50 +0200)]
Look for PostgreSQL library properly and fix CI

3 years agoEnable cleanTransparent filter for mipmapping and improve its' algorithm (#11145)
sfan5 [Tue, 20 Apr 2021 17:50:19 +0000 (19:50 +0200)]
Enable cleanTransparent filter for mipmapping and improve its' algorithm (#11145)

3 years agoPut torch/signlike node on floor if no paramtype2 (#11074)
Wuzzy [Tue, 20 Apr 2021 17:50:03 +0000 (17:50 +0000)]
Put torch/signlike node on floor if no paramtype2 (#11074)

3 years agoAdd a key to toggle map block bounds (#11172)
Seth Traverse [Tue, 20 Apr 2021 17:23:31 +0000 (10:23 -0700)]
Add a key to toggle map block bounds (#11172)

It's often useful to know where the map block boundaries are for doing server admin work and the like.
Adds three modes: single mapblock, range of 5, and disabled.

3 years agoGLES fixes (#11205)
sfan5 [Sun, 18 Apr 2021 14:07:13 +0000 (16:07 +0200)]
GLES fixes (#11205)

* Consistently set float precision for GLES

* Enable DPI scaling on Windows+GLES

3 years agoIsolate library tables between sandbox and insecure env
sfan5 [Sun, 28 Mar 2021 20:53:48 +0000 (22:53 +0200)]
Isolate library tables between sandbox and insecure env

3 years agoFix ignored OpenGLES2 include path and cmake warning
sfan5 [Fri, 16 Apr 2021 21:39:16 +0000 (23:39 +0200)]
Fix ignored OpenGLES2 include path and cmake warning

3 years agoAlso return the ObjectRef from minetest.spawn_falling_node() (#11184)
benrob0329 [Tue, 13 Apr 2021 18:02:43 +0000 (14:02 -0400)]
Also return the ObjectRef from minetest.spawn_falling_node() (#11184)

3 years agoAttachments: Avoid data loss caused by set_attach() in callbacks (#11181)
SmallJoker [Tue, 13 Apr 2021 18:02:18 +0000 (20:02 +0200)]
Attachments: Avoid data loss caused by set_attach() in callbacks (#11181)

3 years agoBuildbot changes to allow out-of-tree builds (#11180)
sfan5 [Sun, 11 Apr 2021 15:10:06 +0000 (17:10 +0200)]
Buildbot changes to allow out-of-tree builds (#11180)

* Do proper out-of-tree builds with buildbot
* Don't write to bin/ for cross builds
     * This allows safely building multiple builds from the same source dir, e.g. with the buildbot.
* Disable Gettext (by default) and Freetype (entirely) for server builds

3 years agoModifying fall damage via armor group (#11080)
Wuzzy [Sun, 11 Apr 2021 15:09:37 +0000 (15:09 +0000)]
Modifying fall damage via armor group (#11080)

Adds a new fall_damage_add_percent armor group which influences the fall damage in addition to the existing node group.

3 years agoFix server favorites not saving when client/serverlist/ doesn't exist already (#11152)
sfan5 [Fri, 9 Apr 2021 20:36:10 +0000 (22:36 +0200)]
Fix server favorites not saving when client/serverlist/ doesn't exist already (#11152)

3 years agoUpdate German builtin translation
Wuzzy [Fri, 2 Apr 2021 14:02:22 +0000 (16:02 +0200)]
Update German builtin translation

3 years agoUpdate builtin locale files
Wuzzy [Fri, 2 Apr 2021 13:59:28 +0000 (15:59 +0200)]
Update builtin locale files

3 years agoDon't reseed stars when changing star count
Wuzzy [Mon, 5 Apr 2021 15:18:45 +0000 (17:18 +0200)]
Don't reseed stars when changing star count

3 years agoUpdate Android build config
sfan5 [Fri, 9 Apr 2021 19:16:45 +0000 (21:16 +0200)]
Update Android build config

3 years agoMake edit boxes respond to string input (IME) (#11156)
yw05 [Mon, 5 Apr 2021 13:56:29 +0000 (15:56 +0200)]
Make edit boxes respond to string input (IME) (#11156)

Make edit boxes respond to string input events (introduced in minetest/irrlicht#23) that are usually triggered by entering text with an IME.

3 years agoAdd vector.to_string and vector.from_string (#10323)
DS [Mon, 5 Apr 2021 13:55:56 +0000 (15:55 +0200)]
Add vector.to_string and vector.from_string (#10323)

Writing vectors as strings is very common and should belong to `vector.*`. `minetest.pos_to_string` is also too long to write, implies that one should only use it for positions and leaves no spaces after the commas.

3 years agoDon't apply connection timeout limit to locally hosted servers
sfan5 [Mon, 5 Apr 2021 13:21:43 +0000 (15:21 +0200)]
Don't apply connection timeout limit to locally hosted servers

fixes #11085

3 years agoGame: Scale damage flash to max HP
SmallJoker [Mon, 5 Apr 2021 11:38:50 +0000 (13:38 +0200)]
Game: Scale damage flash to max HP

The flash intensity is calculated proportionally to the maximal HP.

3 years agoReserve vectors before pushing and other code quality changes (#11161)
sfan5 [Mon, 5 Apr 2021 11:38:31 +0000 (13:38 +0200)]
Reserve vectors before pushing and other code quality changes (#11161)

3 years agoDevtest: Remove testnodes_show_fallback_image
Wuzzy [Mon, 5 Apr 2021 11:37:58 +0000 (11:37 +0000)]
Devtest: Remove testnodes_show_fallback_image

3 years agofix(ci): ensure we build on docker only modifications
Loic Blot [Fri, 2 Apr 2021 12:17:24 +0000 (14:17 +0200)]
fix(ci): ensure we build on docker only modifications

3 years agofix(docker): reduce the number of required libraries on build
Loic Blot [Fri, 2 Apr 2021 10:25:52 +0000 (12:25 +0200)]
fix(docker): reduce the number of required libraries on build

3 years agofix: use irrlicht fork instead of the standard library
Loic Blot [Fri, 2 Apr 2021 07:26:03 +0000 (09:26 +0200)]
fix: use irrlicht fork instead of the standard library

3 years agofix: don't send the whole local context to the docker image
Loic Blot [Fri, 2 Apr 2021 07:25:50 +0000 (09:25 +0200)]
fix: don't send the whole local context to the docker image

3 years agoCGUITTFont optimizations (#11136)
sfan5 [Thu, 1 Apr 2021 22:20:16 +0000 (00:20 +0200)]
CGUITTFont optimizations (#11136)

3 years agoSort out cURL timeouts and increase default
sfan5 [Thu, 1 Apr 2021 22:19:39 +0000 (00:19 +0200)]
Sort out cURL timeouts and increase default

3 years agoAdd `math.round` and fix `vector.round` (#10803)
Vincent Robinson [Thu, 1 Apr 2021 22:18:58 +0000 (15:18 -0700)]
Add `math.round` and fix `vector.round` (#10803)

3 years agoIrrlicht support code maintenance
sfan5 [Wed, 31 Mar 2021 11:15:47 +0000 (13:15 +0200)]
Irrlicht support code maintenance

3 years agoDraw items as 2D images (instead of meshes) when possible
sfan5 [Tue, 30 Mar 2021 19:50:39 +0000 (21:50 +0200)]
Draw items as 2D images (instead of meshes) when possible

3 years agoBlock & report player self-interaction (#11137)
Lars Müller [Tue, 30 Mar 2021 19:49:50 +0000 (21:49 +0200)]
Block & report player self-interaction (#11137)

3 years agoConsistent title bar + render information in mainmenu (#10764)
SmallJoker [Tue, 30 Mar 2021 19:49:15 +0000 (21:49 +0200)]
Consistent title bar + render information in mainmenu (#10764)

3 years agoAdd entry in features table for degrotate changes
sfan5 [Tue, 30 Mar 2021 12:04:14 +0000 (14:04 +0200)]
Add entry in features table for degrotate changes

3 years agoFix wield image of plantlike_rooted (#11067)
Wuzzy [Mon, 29 Mar 2021 22:27:46 +0000 (22:27 +0000)]
Fix wield image of plantlike_rooted (#11067)

3 years agoDegrotate support for mesh nodes (#7840)
Vitaliy [Mon, 29 Mar 2021 22:25:11 +0000 (01:25 +0300)]
Degrotate support for mesh nodes (#7840)

3 years agoUpdate language choices in settingtypes.txt (#11124)
Emojigit [Mon, 29 Mar 2021 17:58:39 +0000 (01:58 +0800)]
Update language choices in settingtypes.txt (#11124)

3 years agoClean up various misleading and/or confusing messages and texts related to priv chang...
Wuzzy [Mon, 29 Mar 2021 17:57:48 +0000 (17:57 +0000)]
Clean up various misleading and/or confusing messages and texts related to priv changes (#11126)

3 years agoUpdate CONTRIBUTING info on translating builtin
Wuzzy [Sun, 28 Mar 2021 19:55:56 +0000 (21:55 +0200)]
Update CONTRIBUTING info on translating builtin

3 years agoReplace fallback font nonsense with automatic per-glyph fallback (#11084)
sfan5 [Mon, 29 Mar 2021 17:55:24 +0000 (19:55 +0200)]
Replace fallback font nonsense with automatic per-glyph fallback (#11084)

3 years agoFix broken include check and correct Gitlab-CI script
sfan5 [Fri, 26 Mar 2021 22:08:39 +0000 (23:08 +0100)]
Fix broken include check and correct Gitlab-CI script

3 years agoTranslate chatcommand delay message and replace minetest with core (#11113)
HybridDog [Fri, 26 Mar 2021 19:59:05 +0000 (20:59 +0100)]
Translate chatcommand delay message and replace minetest with core (#11113)

3 years agoAdjust build config for Irrlicht changes (again)
sfan5 [Thu, 25 Mar 2021 14:09:49 +0000 (15:09 +0100)]
Adjust build config for Irrlicht changes (again)

3 years agoDrop irrUString from MT, it's owned by irrlicht now
Loic Blot [Fri, 19 Mar 2021 17:37:07 +0000 (18:37 +0100)]
Drop irrUString from MT, it's owned by irrlicht now

3 years agoFix attached-to-object sounds having a higher reference distance
Desour [Tue, 23 Mar 2021 00:02:49 +0000 (01:02 +0100)]
Fix attached-to-object sounds having a higher reference distance

3 years agoFix broken `BiomeGen` abstraction (#11107)
sfan5 [Tue, 23 Mar 2021 14:43:26 +0000 (15:43 +0100)]
Fix broken `BiomeGen` abstraction (#11107)

3 years agoFix segfault for model[] without animation speed
Jean-Patrick Guerrero [Sun, 21 Mar 2021 22:23:30 +0000 (23:23 +0100)]
Fix segfault for model[] without animation speed

3 years agolua_api.txt: Fix style selector examples
Hugues Ross [Sun, 21 Mar 2021 22:23:14 +0000 (18:23 -0400)]
lua_api.txt: Fix style selector examples

3 years agoRestore minimal normal texture support (for minimap shading)
Vitaliy [Sun, 21 Mar 2021 22:22:22 +0000 (01:22 +0300)]
Restore minimal normal texture support (for minimap shading)

3 years agoSerialize tool capabilities JSON without whitespace
sfan5 [Sat, 20 Mar 2021 21:06:17 +0000 (22:06 +0100)]
Serialize tool capabilities JSON without whitespace

fixes #11087

3 years agoMainmenu: Improve "Join Game" tab (#11078)
sfan5 [Sat, 20 Mar 2021 18:48:25 +0000 (19:48 +0100)]
Mainmenu: Improve "Join Game" tab (#11078)