]> git.lizzy.rs Git - minetest.git/log
minetest.git
20 months agoReduce exposure of various internals (#12885)
Loïc Blot [Thu, 3 Nov 2022 16:35:31 +0000 (17:35 +0100)]
Reduce exposure of various internals (#12885)

* refactoring(StaticObjectList): don't expose m_active and m_stored anymore

This prevents our old crap code where anyone can access to StaticObjectList. use proper modifiers. It also permits to do a short cleanup on MapBlock using a helper

* refactoring(MapBlock): reduce a bit exposed m_active_blocks variable

* refactoring: MapBlock::m_node_timers is now private

We already had various helpers to perform this privatization, just use it. Also factorize the MapBlock stepping code for timers using already existing code and importing them from ServerEnvironment to MapBlock.

It's currently done pretty straight forward without any inheritance as MapBlock is just used everywhere, maybe in a future we'll have ServerMapBlock over MapBlock. Currently for a simple function let's just use proper objects and add a comment warning

* refactoring(Server): fix duplicated function for add/remove node

* refactoring(guiFormSpecMenu): add removeAll function to prevent duplicated code

* refactoring(ShadowRenderer) + perf: code quality  + increase performance

* All callers are already using the point and we should never test a function with nullptr node, it's a bug. Removed workaround which was hacky and fix the bug
* Drop clientmap lookup from shadowrendered, just use directly its
  pointer and forbid to push it in the generic list
* Reduce memory pressure on the renderShadowObject by preventing
  deallocating and reallocating multiple vectors on each node

* refactoring(MapBlock): reduce exposure of MapBlock::m_static_objects

It's not complete as some parts of the code are pretty nested, but it's better than before :)

* fix: better working on new functions & drop unwanted 2 lines

Co-authored-by: Jude Melton-Houghton <jwmhjwmh@gmail.com>
Co-authored-by: Jude Melton-Houghton <jwmhjwmh@gmail.com>
20 months agoReturn correct variable when debugging bloom.
x2048 [Thu, 3 Nov 2022 07:43:31 +0000 (08:43 +0100)]
Return correct variable when debugging bloom.

Fixes #12922

20 months agoImprove bloom effect (#12916)
x2048 [Wed, 2 Nov 2022 08:09:48 +0000 (09:09 +0100)]
Improve bloom effect (#12916)

* Remove the built-in exposure factor of 2.5
* Add physics-based bloom (https://learnopengl.com/Guest-Articles/2022/Phys.-Based-Bloom)
* Add luminance scaling for bloom layer to simulate HDR
* Add setting to control bloom strength

20 months agoAndroid: Increase target/compiled SDK version to 32 (#12911)
Muhammad Rifqi Priyo Susanto [Mon, 31 Oct 2022 13:19:30 +0000 (20:19 +0700)]
Android: Increase target/compiled SDK version to 32 (#12911)

Build Tools, NDK, and Gradle are also updated.
Repositories is changed from jcenter() to mavenCentral().

20 months agoSend crosshair setting after the touch screen GUI has been initialized (#12910)
Muhammad Rifqi Priyo Susanto [Mon, 31 Oct 2022 13:17:50 +0000 (20:17 +0700)]
Send crosshair setting after the touch screen GUI has been initialized (#12910)

20 months agoFix node placement regression
Lars Mueller [Mon, 31 Oct 2022 08:31:21 +0000 (09:31 +0100)]
Fix node placement regression

20 months agoEnable negative values for sun/moon orbit tilt (Northern hemisphere) (#12904)
x2048 [Sun, 30 Oct 2022 15:54:06 +0000 (16:54 +0100)]
Enable negative values for sun/moon orbit tilt (Northern hemisphere) (#12904)

20 months agoAdd comments explaining use of entity glow
x2048 [Fri, 28 Oct 2022 19:50:45 +0000 (21:50 +0200)]
Add comments explaining use of entity glow

20 months agoApply entity glow before translating to color space
x2048 [Sun, 4 Sep 2022 20:17:27 +0000 (22:17 +0200)]
Apply entity glow before translating to color space

20 months agoAlways add increment when getting node interior light
x2048 [Sun, 4 Sep 2022 20:17:04 +0000 (22:17 +0200)]
Always add increment when getting node interior light

20 months agoUse the same light level for non-solid draw types as for solid
x2048 [Sun, 4 Sep 2022 20:15:21 +0000 (22:15 +0200)]
Use the same light level for non-solid draw types as for solid

20 months agoAdd a worlds_here.txt file in the worlds folder and update .gitignore (#12720)
DS [Sun, 30 Oct 2022 15:53:31 +0000 (16:53 +0100)]
Add a worlds_here.txt file in the worlds folder and update .gitignore (#12720)

20 months agoAllow rotating entity selectionboxes (#12379)
Lars Müller [Sun, 30 Oct 2022 15:53:14 +0000 (16:53 +0100)]
Allow rotating entity selectionboxes (#12379)

20 months agoFix incorrect culling introduced by ##12710 (#12887)
lhofhansl [Fri, 28 Oct 2022 16:52:54 +0000 (09:52 -0700)]
Fix incorrect culling introduced by ##12710 (#12887)

20 months agoSafety check the map's blocksize (#12895)
lhofhansl [Fri, 28 Oct 2022 02:31:42 +0000 (19:31 -0700)]
Safety check the map's blocksize (#12895)

20 months agoShadow list improvements (#12898)
x2048 [Wed, 26 Oct 2022 20:26:09 +0000 (22:26 +0200)]
Shadow list improvements (#12898)

* Remove redundant checks when attaching SM texture to entities.
  Some of the checks were broken, leading to crashes when shadow intensity is set to 0
* Avoid memory leak in shadow casters list when wield mesh changes item stacks

20 months agoGUIInventoryList: Keep item size while moving (#12896)
Jean-Patrick Guerrero [Mon, 24 Oct 2022 11:58:56 +0000 (13:58 +0200)]
GUIInventoryList: Keep item size while moving (#12896)

20 months agoFix some outdated stuff about falling node docs
Wuzzy [Sun, 23 Oct 2022 19:59:24 +0000 (21:59 +0200)]
Fix some outdated stuff about falling node docs

20 months agoCheck sizeof(int) and sizeof(size_t)
Jude Melton-Houghton [Sun, 23 Oct 2022 19:59:12 +0000 (15:59 -0400)]
Check sizeof(int) and sizeof(size_t)

20 months agoDevTest: Colorize 2 nodebox nodes
Wuzzy [Sun, 9 Oct 2022 14:50:35 +0000 (16:50 +0200)]
DevTest: Colorize 2 nodebox nodes

20 months agoDevTest: Cleanup callback logging
Wuzzy [Sun, 9 Oct 2022 14:41:55 +0000 (16:41 +0200)]
DevTest: Cleanup callback logging

20 months agoDevTest: Fix rendering of 2 texture test nodes
Wuzzy [Sun, 9 Oct 2022 14:26:16 +0000 (16:26 +0200)]
DevTest: Fix rendering of 2 texture test nodes

20 months agoDevTest: More node textures to tell them apart
Wuzzy [Sun, 9 Oct 2022 14:19:42 +0000 (16:19 +0200)]
DevTest: More node textures to tell them apart

20 months agoDevTest: Use 4dir for chests
Wuzzy [Sun, 9 Oct 2022 12:52:36 +0000 (14:52 +0200)]
DevTest: Use 4dir for chests

20 months agoDevTest: Restore callback item descriptions
Wuzzy [Sun, 9 Oct 2022 12:34:10 +0000 (14:34 +0200)]
DevTest: Restore callback item descriptions

20 months agoDevTest: Fix callback item textures
Wuzzy [Sat, 8 Oct 2022 19:32:27 +0000 (21:32 +0200)]
DevTest: Fix callback item textures

20 months agoRemove credits for 2 images no longer in use
Wuzzy [Sat, 8 Oct 2022 19:26:56 +0000 (21:26 +0200)]
Remove credits for 2 images no longer in use

20 months agoDevTest: Refactor testhud features
Wuzzy [Sat, 8 Oct 2022 18:55:10 +0000 (20:55 +0200)]
DevTest: Refactor testhud features

20 months agoDevTest: Move 2 HUD commands to testhud & improve
Wuzzy [Sat, 8 Oct 2022 18:41:11 +0000 (20:41 +0200)]
DevTest: Move 2 HUD commands to testhud & improve

20 months agoDevTest: No use privatizer on chest of everything
Wuzzy [Sat, 8 Oct 2022 18:01:59 +0000 (20:01 +0200)]
DevTest: No use privatizer on chest of everything

20 months agoDevTest: Remove experimental mod
Wuzzy [Sat, 8 Oct 2022 17:50:23 +0000 (19:50 +0200)]
DevTest: Remove experimental mod

20 months agoDevTest: Move detached inv tests to chest mod
Wuzzy [Sat, 8 Oct 2022 17:49:28 +0000 (19:49 +0200)]
DevTest: Move detached inv tests to chest mod

20 months agoDevTest: /test_place_node skips dummy/cb nodes
Wuzzy [Sat, 8 Oct 2022 16:58:02 +0000 (18:58 +0200)]
DevTest: /test_place_node skips dummy/cb nodes

20 months agoDevTest: Clean up callback textures
Wuzzy [Sat, 8 Oct 2022 16:45:51 +0000 (18:45 +0200)]
DevTest: Clean up callback textures

20 months agoDevTest: Move callback entities to callbacks mod
Wuzzy [Sat, 8 Oct 2022 16:29:22 +0000 (18:29 +0200)]
DevTest: Move callback entities to callbacks mod

20 months agoDevTest: Move callback items to callbacks mod
Wuzzy [Sun, 9 Oct 2022 12:22:42 +0000 (14:22 +0200)]
DevTest: Move callback items to callbacks mod

20 months agoDevTest: Move experimental items to other mods
Wuzzy [Sun, 9 Oct 2022 12:20:35 +0000 (14:20 +0200)]
DevTest: Move experimental items to other mods

20 months agoDevTest: Move more logging to log mod
Wuzzy [Sat, 8 Oct 2022 15:46:03 +0000 (17:46 +0200)]
DevTest: Move more logging to log mod

20 months agoDevTest: Move benchmark commands to new mod
Wuzzy [Sat, 8 Oct 2022 15:41:53 +0000 (17:41 +0200)]
DevTest: Move benchmark commands to new mod

20 months agoDevTest: Move /test_place_nodes to testnodes mod
Wuzzy [Sat, 8 Oct 2022 15:38:50 +0000 (17:38 +0200)]
DevTest: Move /test_place_nodes to testnodes mod

20 months agoDevTest: Move chat command logging to separate mod
Wuzzy [Sat, 8 Oct 2022 15:34:55 +0000 (17:34 +0200)]
DevTest: Move chat command logging to separate mod

20 months agoAdd VoxelArea() constructor (#12886)
Jude Melton-Houghton [Sat, 22 Oct 2022 12:05:45 +0000 (08:05 -0400)]
Add VoxelArea() constructor (#12886)

20 months agoFix typos and en_US/en_GB inconsistency in files inside doc directory (#12882)
Abdou-31 [Fri, 21 Oct 2022 15:12:39 +0000 (16:12 +0100)]
Fix typos and en_US/en_GB inconsistency in files inside doc directory (#12882)

20 months agoFix use of unassigned global "check"
Jude Melton-Houghton [Tue, 18 Oct 2022 22:20:00 +0000 (18:20 -0400)]
Fix use of unassigned global "check"

20 months agoguiChatConsole: fix the unicode characters crowded together on prompt (#12867)
Riceball LEE [Fri, 21 Oct 2022 15:12:07 +0000 (23:12 +0800)]
guiChatConsole: fix the unicode characters crowded together on prompt (#12867)

Co-authored-by: SmallJoker <SmallJoker@users.noreply.github.com>
20 months agoFix formspec focus (#12795)
DS [Fri, 21 Oct 2022 15:11:41 +0000 (17:11 +0200)]
Fix formspec focus (#12795)

20 months agoRevise bump_version.sh script to address shortcomings (#12789)
sfan5 [Fri, 21 Oct 2022 15:09:44 +0000 (17:09 +0200)]
Revise bump_version.sh script to address shortcomings (#12789)

20 months agoCheck for falling `float` nodes in liquid transform (#12862)
Jude Melton-Houghton [Tue, 18 Oct 2022 22:03:05 +0000 (18:03 -0400)]
Check for falling `float` nodes in liquid transform (#12862)

20 months agoImplement vector and node conversion in Lua (#12609)
Jude Melton-Houghton [Tue, 18 Oct 2022 22:01:44 +0000 (18:01 -0400)]
Implement vector and node conversion in Lua (#12609)

Co-authored-by: sfan5 <sfan5@live.de>
20 months agoFix list sorting behaviour with missing geoip
sfan5 [Mon, 17 Oct 2022 18:05:14 +0000 (20:05 +0200)]
Fix list sorting behaviour with missing geoip

20 months agoFix en_US/en_GB inconsistency in lua_api.txt
Abdou-31 [Sun, 16 Oct 2022 09:55:54 +0000 (10:55 +0100)]
Fix en_US/en_GB inconsistency in lua_api.txt

20 months agoFix typos in lua_api.txt
Abdou-31 [Sun, 16 Oct 2022 09:38:45 +0000 (10:38 +0100)]
Fix typos in lua_api.txt

20 months agoTake geographic distance into account for server list ordering (#12790)
sfan5 [Mon, 17 Oct 2022 11:56:28 +0000 (13:56 +0200)]
Take geographic distance into account for server list ordering (#12790)

20 months agoLocalPlayer: Fix sneaking on nodes with large collisionboxes (#12626)
SmallJoker [Mon, 17 Oct 2022 11:56:04 +0000 (13:56 +0200)]
LocalPlayer: Fix sneaking on nodes with large collisionboxes (#12626)

20 months agoExclude MSVC from new Lua sanity check
sfan5 [Sat, 15 Oct 2022 10:02:02 +0000 (12:02 +0200)]
Exclude MSVC from new Lua sanity check

20 months agoOther minor CMake improvements
sfan5 [Mon, 26 Sep 2022 15:02:49 +0000 (17:02 +0200)]
Other minor CMake improvements

20 months agoDefer searching for libintl to CMake
sfan5 [Mon, 26 Sep 2022 14:59:47 +0000 (16:59 +0200)]
Defer searching for libintl to CMake

resolves #12800

20 months agoGet rid of LuaJIT linking workarounds
sfan5 [Mon, 26 Sep 2022 14:05:00 +0000 (16:05 +0200)]
Get rid of LuaJIT linking workarounds

...and replace them with a cautionary warning message if someone uses an old version.
The detection is kind of a hack but no choice as upstream is not interested in version numbering.

20 months agoAdd extra check in case someone tries to unbundle Lua
sfan5 [Mon, 26 Sep 2022 13:26:34 +0000 (15:26 +0200)]
Add extra check in case someone tries to unbundle Lua

20 months agoSpeed up find_nodes_in_area (#12845)
Jude Melton-Houghton [Thu, 13 Oct 2022 13:35:19 +0000 (09:35 -0400)]
Speed up find_nodes_in_area (#12845)

20 months agoobject ids are u16, not s16 (#12848)
fluxionary [Thu, 13 Oct 2022 12:46:48 +0000 (05:46 -0700)]
object ids are u16, not s16 (#12848)

20 months agoUse enum to define custom registry indices
Jude Melton-Houghton [Wed, 12 Oct 2022 18:06:41 +0000 (14:06 -0400)]
Use enum to define custom registry indices

20 months agoTest on-lighting node param1 in lighting test
Jude Melton-Houghton [Wed, 12 Oct 2022 17:48:59 +0000 (13:48 -0400)]
Test on-lighting node param1 in lighting test

20 months agoEmbed data directly in mapblocks
Jude Melton-Houghton [Sun, 9 Oct 2022 15:55:07 +0000 (11:55 -0400)]
Embed data directly in mapblocks

20 months agoRemove unused MapBlock functionality
Jude Melton-Houghton [Wed, 5 Oct 2022 11:55:33 +0000 (07:55 -0400)]
Remove unused MapBlock functionality

20 months agoFix tone mapping being always enabled
sfan5 [Sun, 9 Oct 2022 17:11:04 +0000 (19:11 +0200)]
Fix tone mapping being always enabled

broke in 579fc93c24b030e33a6255d96e773706f6e99c93

20 months agoOptimize lighting calculation (#12797)
Jude Melton-Houghton [Sun, 9 Oct 2022 14:50:26 +0000 (10:50 -0400)]
Optimize lighting calculation (#12797)

20 months agoadd an 'equals' method to ItemStack and compatibility w/ lua '==' (#12771)
fluxionary [Sun, 9 Oct 2022 12:06:09 +0000 (05:06 -0700)]
add an 'equals' method to ItemStack and compatibility w/ lua '==' (#12771)

Co-authored-by: rubenwardy <rw@rubenwardy.com>
Co-authored-by: sfan5 <sfan5@live.de>
20 months agoImprove documentation for `liquid_alternative_*` (#12810)
Wuzzy [Sun, 9 Oct 2022 12:05:40 +0000 (14:05 +0200)]
Improve documentation for `liquid_alternative_*` (#12810)

20 months agoDevTest: Explain purpose of most items in tooltips (#12833)
Wuzzy [Sun, 9 Oct 2022 12:05:22 +0000 (14:05 +0200)]
DevTest: Explain purpose of most items in tooltips (#12833)

20 months agoDevTest: Change texture for node-aligned node (#12831)
Wuzzy [Thu, 6 Oct 2022 16:25:40 +0000 (18:25 +0200)]
DevTest: Change texture for node-aligned node (#12831)

20 months agoOnly set quicktune keybinds in debug builds (#12779)
ROllerozxa [Thu, 6 Oct 2022 16:07:57 +0000 (18:07 +0200)]
Only set quicktune keybinds in debug builds (#12779)

21 months agoUse legacy call when rendering to a single texture
x2048 [Tue, 4 Oct 2022 19:02:42 +0000 (21:02 +0200)]
Use legacy call when rendering to a single texture

Fixes depth buffer in when undersampling > 1

21 months agoMake bloom shaders compatible with GLES2 (#12834)
x2048 [Tue, 4 Oct 2022 12:52:56 +0000 (14:52 +0200)]
Make bloom shaders compatible with GLES2 (#12834)

Co-authored-by: Muhammad Rifqi Priyo Susanto <muhammadrifqipriyosusanto@gmail.com>
21 months agoConsolidate API object code (#12728)
Jude Melton-Houghton [Tue, 4 Oct 2022 12:31:36 +0000 (08:31 -0400)]
Consolidate API object code (#12728)

Co-authored-by: sfan5 <sfan5@live.de>
21 months agoDisable -ffinite-math-only (#12832)
Jude Melton-Houghton [Mon, 3 Oct 2022 16:13:35 +0000 (12:13 -0400)]
Disable -ffinite-math-only (#12832)

21 months agoDevTest: Reject buggy "/hp inf" command (#12830)
Wuzzy [Mon, 3 Oct 2022 16:13:23 +0000 (18:13 +0200)]
DevTest: Reject buggy "/hp inf" command (#12830)

21 months agoAdd an item pick up callback (2) (#7712)
DS [Sat, 1 Oct 2022 19:21:06 +0000 (21:21 +0200)]
Add an item pick up callback (2) (#7712)

Co-authored-by: SmallJoker <mk939@ymail.com>
Co-authored-by: Jude Melton-Houghton <jwmhjwmh@gmail.com>
21 months agoImprove crafting recipe documentation (#12806)
Wuzzy [Sat, 1 Oct 2022 19:20:28 +0000 (21:20 +0200)]
Improve crafting recipe documentation (#12806)

21 months agoImplement tool use sounds
sfan5 [Sun, 11 Sep 2022 19:16:17 +0000 (21:16 +0200)]
Implement tool use sounds

21 months agoClean up Game::handleDigging() and some related parts
sfan5 [Tue, 26 Apr 2022 18:40:52 +0000 (20:40 +0200)]
Clean up Game::handleDigging() and some related parts

21 months agoImprove double tap for jump detection (#12793)
Muhammad Rifqi Priyo Susanto [Fri, 30 Sep 2022 12:02:06 +0000 (19:02 +0700)]
Improve double tap for jump detection (#12793)

21 months agoAvert collision static detection rounding error (#12822)
Jude Melton-Houghton [Fri, 30 Sep 2022 10:31:24 +0000 (06:31 -0400)]
Avert collision static detection rounding error (#12822)

21 months agoFix inconsistent craft replacements (#9250) (#12819)
Wuzzy [Fri, 30 Sep 2022 10:30:39 +0000 (12:30 +0200)]
Fix inconsistent craft replacements (#9250) (#12819)

21 months agoFix error msg if craft replacement w/ full inv (#12820)
Wuzzy [Thu, 29 Sep 2022 18:34:51 +0000 (20:34 +0200)]
Fix error msg if craft replacement w/ full inv (#12820)

21 months agoBloom (#12791)
x2048 [Thu, 29 Sep 2022 18:34:05 +0000 (20:34 +0200)]
Bloom (#12791)

Adds configurable light exposure control and bloom effect (light bleeding) with client-side settings.

21 months agoAdd crosshair support for Android (#7865)
Muhammad Rifqi Priyo Susanto [Thu, 29 Sep 2022 18:30:33 +0000 (01:30 +0700)]
Add crosshair support for Android (#7865)

If enabled, a crosshair will be shown to select object.
This will give Android players a way to play like they play on desktop.
On third-person back camera mode, player is forced to use crosshair.
On third-person front camera mode, player is unable to select anything.

Co-authored-by: ROllerozxa <temporaryemail4meh+github@gmail.com>
Co-authored-by: rubenwardy <rw@rubenwardy.com>
21 months agoAdd zstd compression support (#12515)
20kdc [Wed, 28 Sep 2022 13:06:14 +0000 (14:06 +0100)]
Add zstd compression support (#12515)

21 months agoPause shader animation timer in singleplayer pause menu (#12766)
DS [Tue, 27 Sep 2022 20:23:07 +0000 (22:23 +0200)]
Pause shader animation timer in singleplayer pause menu (#12766)

Co-authored-by: sfan5 <sfan5@live.de>
21 months agoRestore and enhance bouncy behavior (#11939)
pecksin [Tue, 27 Sep 2022 20:22:36 +0000 (16:22 -0400)]
Restore and enhance bouncy behavior (#11939)

21 months agoAdd unittests for item movement code (#11885)
savilli [Tue, 27 Sep 2022 20:22:11 +0000 (22:22 +0200)]
Add unittests for item movement code (#11885)

21 months agoFix liquid drawtype faces sometimes not rendering (#12807)
Wuzzy [Mon, 26 Sep 2022 23:27:47 +0000 (01:27 +0200)]
Fix liquid drawtype faces sometimes not rendering (#12807)

Co-authored-by: SmallJoker <SmallJoker@users.noreply.github.com>
21 months agoAvoid duplication of mod metadata in memory (#12562)
Jude Melton-Houghton [Mon, 26 Sep 2022 21:03:43 +0000 (17:03 -0400)]
Avoid duplication of mod metadata in memory (#12562)

Co-authored-by: sfan5 <sfan5@live.de>
21 months agoModify PUC Lua to wrap C++ exceptions (#12445)
Jude Melton-Houghton [Mon, 26 Sep 2022 11:23:48 +0000 (07:23 -0400)]
Modify PUC Lua to wrap C++ exceptions (#12445)

21 months agoAdd lighting test and benchmark (#12802)
Jude Melton-Houghton [Mon, 26 Sep 2022 10:49:08 +0000 (06:49 -0400)]
Add lighting test and benchmark (#12802)

21 months agoFix double escape in update checker dialog
Lars Mueller [Fri, 23 Sep 2022 09:21:09 +0000 (11:21 +0200)]
Fix double escape in update checker dialog

21 months agoFix two spelling mistakes
Tobias Frost [Sun, 25 Sep 2022 11:45:27 +0000 (13:45 +0200)]
Fix two spelling mistakes

Co-authored-by: Tobias Frost <tobi@debian.org>
21 months agoBriefly explain how facedir rotations work (#11934)
Aritz Erkiaga [Sun, 25 Sep 2022 11:45:02 +0000 (13:45 +0200)]
Briefly explain how facedir rotations work (#11934)

21 months agoFix formula used for acceleration (#12353)
Lars Müller [Tue, 20 Sep 2022 08:55:51 +0000 (10:55 +0200)]
Fix formula used for acceleration (#12353)

21 months agoRename a variable in localplayer.h, resolves a TODO
DS [Tue, 20 Sep 2022 08:55:11 +0000 (10:55 +0200)]
Rename a variable in localplayer.h, resolves a TODO