lhofhansl
fe3ea090d1
Don't expire blocks visible to the client. ( #13255 )
2023-02-26 14:18:18 -08:00
sofar
2083252c05
Sky: transmit body_orbit_tilt to client. ( #13193 )
...
This obsoletes the current client-side setting entirely. The server can
transmit the tilt to the client directly and will send 0.0f as default
value.
Co-authored-by: x2048 <codeforsmile@gmail.com>
Co-authored-by: sfan5 <sfan5@live.de>
2023-02-26 01:08:33 +01:00
DS
6e1c70e02b
Fix a -Wreorder warning
2023-02-22 11:06:48 +01:00
lhofhansl
63c378fb5b
Reduce client's packet processing budget per iteration from 100 to 10ms. ( #13237 )
2023-02-21 16:33:21 -08:00
x2048
2553db5c81
Fix rounding errors when slicing the shadow draw list ( #13226 )
2023-02-20 21:01:05 +01:00
Alex
af4009d924
Add chat HUD flag ( #13189 )
2023-02-20 21:00:37 +01:00
paradust7
aa5dc0968b
Fix typo and missing entry in serveropcodes
2023-02-18 16:47:08 +01:00
sfan5
3bafbaac49
Remove dead code behind Irrlicht version checks
2023-02-18 16:46:51 +01:00
20kdc
75e6cc190a
Source image tracking in tile generation ( #12514 )
2023-02-18 00:03:03 +01:00
lhofhansl
2a8becd650
Add mesh-holding blocks to shadow drawlist. ( #13203 )
...
When mesh chunking and shadows are enabled, make sure that the mesh-holding blocks are added to the shadow drawlist.
Otherwise those portions of the shadows will not be rendered.
2023-02-16 15:43:08 -10:00
lhofhansl
d3a6ee00e6
Generalize mesh chunking, and make it configurable. ( #13179 )
...
* Generalize mesh chunking. Set 3x3x3 chunks.
* Make mesh chunk size configurable... Default to 1 (off).
* Extract all mesh grid maths into a dedicated class
---------
Co-authored-by: x2048 <codeforsmile@gmail.com>
2023-02-08 13:42:12 -08:00
lhofhansl
56d2567b5d
Separate drawlist from non-rendered blocks. ( #13176 )
2023-02-01 08:41:23 -08:00
x2048
69fc206109
8x block meshes ( #13133 )
...
Reduce the number of drawcalls by generating a mesh per 8 blocks (2x2x2). Only blocks with even coordinates (lowest bit set to 0) will get a mesh.
Note: This also removes the old 'loops' algorithm for building the draw list, because it produces visual artifacts and cannot be made compatible with the approach of having a mesh for every 8th block without hurting performance.
Co-authored-by: Jude Melton-Houghton <jwmhjwmh@gmail.com>
Co-authored-by: Lars <larsh@apache.org>
Co-authored-by: sfan5 <sfan5@live.de>
2023-01-31 17:30:59 +01:00
lhofhansl
cded6a3945
Display whole profiler numbers up to 999999 without scientific notation. ( #13155 )
2023-01-24 17:40:23 -08:00
x2048
b8aaad4f1e
Remove the 'loops' occlusion culler ( #13169 )
2023-01-23 10:58:29 +01:00
DS
8478796226
Decrease minimum for repeat_place_time ( #13165 )
2023-01-23 00:20:12 +01:00
sfan5
87d509e462
Implement --debugger option to improve UX when debugging crashes ( #13157 )
2023-01-23 00:19:30 +01:00
x2048
6f5703baf1
Clear exposure compensation state textures on creation ( #13151 )
2023-01-23 00:18:48 +01:00
x2048
ca13c51024
Fix concurrency in texture source ( #13150 )
2023-01-19 21:44:27 +01:00
SmallJoker
ecd6d61697
Revisit F6 statistics formatting ( #13126 )
2023-01-16 20:16:23 +01:00
Jude Melton-Houghton
2f9f0c0900
Improve chat history ( #12975 )
2023-01-14 16:14:37 -05:00
sfan5
8fded9d990
Disable Prometheus in singleplayer mode
2023-01-14 13:11:15 +01:00
Jude Melton-Houghton
3992a13f24
Improve MetaDataRef:{get,set}_float
precision ( #13130 )
2023-01-12 15:40:34 -05:00
Jude Melton-Houghton
5f2925c59c
Increase ftos
precision ( #13141 )
2023-01-12 14:12:31 -05:00
Jude Melton-Houghton
956026bb6b
Break long lines of option help ( #13136 )
2023-01-12 14:12:05 -05:00
x2048
139db66901
Remove mapblock cache for mesh generation. ( #13124 )
...
Reduces memory consumption and improves performance
2023-01-09 21:40:08 +01:00
ROllerozxa
390b5caaaa
Fix crash on Android with IrrlichtMt9 ( #13123 )
...
Caused by mouse control
2023-01-08 14:04:17 +01:00
iliekprogrammar
fb28ca463e
Clamp player wieldindex when processing hotbar item selection ( #13098 )
2023-01-08 14:03:16 +01:00
lhofhansl
55804c56e9
Report collisionMoveSimple for client and server. ( #13105 )
2023-01-07 16:31:31 -08:00
ROllerozxa
bb74da5903
Remove old rollback migration code ( #13082 )
2023-01-06 22:35:20 +01:00
x2048
6d45c243f8
Add dynamic exposure correction ( #12959 )
...
* Add uniform for frame delta time
* Adjust exposure in logarithmic (EV) space
* Add network support and LUA API
* Add testing mod
2023-01-06 22:33:25 +01:00
x2048
2715cc8bf6
Occlusion culling algorithm based on recursive descend ( #13104 )
...
Co-authored-by: DS <vorunbekannt75@web.de>
2023-01-06 22:31:06 +01:00
sfan5
059f62d7d6
Use consistent optimization flags for *BSD
...
This was added for seemingly no reason in c410e9182d322a8c095ef94fbadf4d8f541e6b98 (2014)
2023-01-05 23:09:51 +01:00
x2048
89e7f72c92
Use multiple threads for mesh generation ( #13062 )
...
Co-authored-by: sfan5 <sfan5@live.de>
2022-12-27 18:44:18 +01:00
SmallJoker
03e710160f
Lua API: Document shader dependencies of set_lighting() ( #13079 )
2022-12-26 21:59:55 +01:00
lhofhansl
1e7804aaf6
Allow saturation to be controlled by the server. ( #13075 )
2022-12-25 16:15:32 -08:00
ROllerozxa
afd5caa26a
Fully remove pageflip 3D mode ( #13074 )
2022-12-25 10:57:39 -05:00
Jean-Patrick Guerrero
33363c2a7e
Fix progress bar look on HiDPI displays ( #13055 )
2022-12-24 12:26:56 -05:00
Jude Melton-Houghton
d13b12b791
Store MapEditEvent
blocks in a vector ( #13071 )
2022-12-24 12:21:59 -05:00
Jude Melton-Houghton
5c248c2d7d
Add callback on_mapblocks_changed
2022-12-24 08:24:59 -05:00
Jude Melton-Houghton
7701e70dc9
Make MapEditEvent more complete
...
SetBlocksNotSent is no longer used.
2022-12-24 08:24:59 -05:00
ndren
62ee02b8ba
Set and unset relative mouse mode where necessary ( #12636 )
...
* Set and unset relative mouse mode where necessary
Co-authored-by: sfan5 <sfan5@live.de>
2022-12-24 09:38:30 +01:00
Jude Melton-Houghton
0fc97a1483
Use a Lua error handler that calls tostring ( #11913 )
2022-12-15 07:37:49 -05:00
Jude Melton-Houghton
1f3b5e553b
Fix plantlike_rooted
world-aligned node base textures ( #12994 )
...
Co-authored-by: Wuzzy <Wuzzy@disroot.org>
2022-12-12 08:45:09 -05:00
updatepo.sh
111d047b0a
Update minetest.conf.example
2022-12-10 15:35:46 +01:00
Jude Melton-Houghton
c18c082059
Prevent air acceleration with 0 jump speed ( #13036 )
2022-12-10 09:08:50 -05:00
Jude Melton-Houghton
1798ad0ec4
Avoid out-of-bounds memory access in attached node placement prediction ( #13038 )
2022-12-10 09:00:27 -05:00
sfan5
37386b9c3c
Expose dtime_s to LBM handler
2022-12-04 12:35:14 +01:00
Jude Melton-Houghton
b3ffc4b327
Add minetest.get_mapgen_edges
( #12999 )
2022-12-03 10:40:46 -05:00
lhofhansl
e84d259ec7
Remove shader caching hack. ( #12991 )
2022-11-30 13:56:14 -08:00
Muhammad Rifqi Priyo Susanto
281f9a9f88
Android: Segmentation fault fix, PendingIntent flag, and other fixes ( #12960 )
...
* Android: Segmentation fault fix, PendingIntent flag, and other fixes
- Information about the crosshair is sent after camera initialization.
- Since API 31, PendingIntent requires mutability flag.
- super (class) is called in onRequestPermissionsResult().
- GameActivity suppresses "unused" warning since most of its methods are called from native code.
- Non-null safety is added for nullable function calls.
- Warning/error logging is added for various function calls' return value.
* Move utility functions into Utils.java
- Some nullable functions are changed to be non-null functions.
- Some null checking outside it is removed.
- More annotations are added to functions and parameters.
2022-11-30 10:50:06 -05:00
Jude Melton-Houghton
055fc69c11
Handle num lock in chat ( #12984 )
2022-11-30 10:43:12 -05:00
Jude Melton-Houghton
38169db765
Wrap debug text on screen ( #12978 )
2022-11-28 12:17:36 -05:00
Jude Melton-Houghton
d0a118f5b1
Add minetest.get_game_info
and allow reading game.conf
( #12989 )
...
Co-authored-by: sfan5 <sfan5@live.de>
2022-11-28 07:21:43 -05:00
Jude Melton-Houghton
3fd5bff128
Abort active ABM iteration when content changes ( #12998 )
2022-11-27 15:55:10 -05:00
Muhammad Rifqi Priyo Susanto
40a45b8c99
Virtual joystick: Use s32 when using m_screensize as a subtrahend ( #12814 )
...
If still uses u32, m_screensize will yield a big value (underflow) when used as a subtrahend.
ETIE_MOVED is allowed to be run if joystick's ID is available and virtual joystick is fixed.
Add .0f for some float values.
2022-11-26 09:16:14 -05:00
savilli
f04d4d0291
Fix touchscreen crash due to missing rangeselect
2022-11-25 19:57:03 +01:00
Jude Melton-Houghton
8b26bab37d
Remove unnecessary bool return types
2022-11-24 17:58:25 -05:00
Jude Melton-Houghton
7c21347a40
Rename "mod metadata" to "mod storage" everywhere
2022-11-24 17:58:25 -05:00
Jude Melton-Houghton
8817af07fb
Deprecate special handling of ${key}
syntax in metadata values ( #12970 )
2022-11-24 17:56:43 -05:00
Wuzzy
3c7f26d937
Add support for attached facedir/4dir nodes ( #11432 )
2022-11-24 17:56:07 -05:00
x2048
1c10988d6a
Fix entity visiblity in bright artificial light ( #12906 )
2022-11-23 22:40:26 +01:00
Jude Melton-Houghton
9527cc3fa0
avoid clearChildAttachments iterator invalidation ( #12987 )
2022-11-23 14:48:12 -05:00
Jude Melton-Houghton
386bfcda2b
Fix reading schematics after their resolution ( #12985 )
2022-11-23 11:53:21 -05:00
Jude Melton-Houghton
4da8a18c8c
Check specific outputs for isatty ( #12980 )
2022-11-21 12:08:40 -05:00
x2048
70a82b0784
Avoid shadow flicker at certain angles ( #12961 )
...
Change the way look direction and camera position are quantized when calculating light frustum
2022-11-20 21:28:01 +01:00
DS
5f24a3c0c7
Object selection: Improve distance checks ( #12974 )
2022-11-20 21:27:47 +01:00
lhofhansl
7bf64fc61a
Add configurable saturation ( #12865 )
...
* Add configurable saturation
Co-authored-by: Pevernow <3450354617@qq.com>
Co-authored-by: x2048 <codeforsmile@gmail.com>
Author: Lars <larsh@apache.org>
2022-11-18 11:49:52 -08:00
Riceball LEE
6bf662cb9e
set_nametag_attributes: don't reset nametags if text param is not touched
...
fixes #12901
2022-11-15 16:46:26 +01:00
SmallJoker
8de9e2ac84
game.conf: Add setting to use volatile a map backend ( #12956 )
2022-11-15 16:45:48 +01:00
Jude Melton-Houghton
cd8a7fe472
Add MetaDataRef:get_keys ( #12841 )
2022-11-15 16:45:12 +01:00
lhofhansl
1a045da0dd
Reduce active mgmt interval for a bit when a player joins. ( #12925 )
2022-11-10 15:25:38 -08:00
Jude Melton-Houghton
00eb65915f
Add PostgreSQL helper pg_to_string
2022-11-10 18:56:48 +01:00
Jude Melton-Houghton
aaa05f901a
Add mod storage PostgreSQL backend
2022-11-10 18:56:48 +01:00
Jude Melton-Houghton
9dbac989bd
Improve testListMods
2022-11-10 18:56:48 +01:00
Gregor Parzefall
88b04eadc9
Fix get_tool_wear_after_use for one use (insta-break) ( #12945 )
2022-11-09 11:58:53 -05:00
x2048
81bfc9c7a2
Resize hotbar immediately before drawing ( #12930 )
2022-11-09 11:57:55 -05:00
Abdou-31
d1b80b462e
Fix typos and en_US/en_GB inconsistency in various files ( #12902 )
2022-11-09 11:57:19 -05:00
Loïc Blot
322c8cf270
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>
2022-11-03 17:35:31 +01:00
x2048
9b24041394
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
2022-11-02 09:09:48 +01:00
Muhammad Rifqi Priyo Susanto
987277de52
Send crosshair setting after the touch screen GUI has been initialized ( #12910 )
2022-10-31 14:17:50 +01:00
Lars Mueller
88af36dd10
Fix node placement regression
2022-10-31 14:17:28 +01:00
x2048
260de1c2b5
Enable negative values for sun/moon orbit tilt (Northern hemisphere) ( #12904 )
2022-10-30 16:54:06 +01:00
x2048
485b3b1203
Add comments explaining use of entity glow
2022-10-30 16:53:45 +01:00
x2048
bf1cc1bb84
Apply entity glow before translating to color space
2022-10-30 16:53:45 +01:00
x2048
3e7ee499d6
Always add increment when getting node interior light
2022-10-30 16:53:45 +01:00
x2048
a075d83752
Use the same light level for non-solid draw types as for solid
2022-10-30 16:53:45 +01:00
Lars Müller
077627181e
Allow rotating entity selectionboxes ( #12379 )
2022-10-30 16:53:14 +01:00
lhofhansl
b829231992
Fix incorrect culling introduced by ##12710 ( #12887 )
2022-10-28 09:52:54 -07:00
lhofhansl
9aaed75eea
Safety check the map's blocksize ( #12895 )
2022-10-27 19:31:42 -07:00
x2048
88820cd31c
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
2022-10-26 22:26:09 +02:00
Jean-Patrick Guerrero
16266397ed
GUIInventoryList: Keep item size while moving ( #12896 )
2022-10-24 13:58:56 +02:00
Jude Melton-Houghton
e86d23daed
Check sizeof(int) and sizeof(size_t)
2022-10-23 21:59:12 +02:00
Riceball LEE
8bdedd2bcf
guiChatConsole: fix the unicode characters crowded together on prompt ( #12867 )
...
Co-authored-by: SmallJoker <SmallJoker@users.noreply.github.com>
2022-10-21 17:12:07 +02:00
DS
7153cb8a0b
Fix formspec focus ( #12795 )
2022-10-21 17:11:41 +02:00
Jude Melton-Houghton
dafdb3edb4
Check for falling float
nodes in liquid transform ( #12862 )
2022-10-18 18:03:05 -04:00
Jude Melton-Houghton
b38ffdec27
Implement vector and node conversion in Lua ( #12609 )
...
Co-authored-by: sfan5 <sfan5@live.de>
2022-10-18 18:01:44 -04:00
sfan5
87051fca26
Take geographic distance into account for server list ordering ( #12790 )
2022-10-17 07:56:28 -04:00
SmallJoker
5d8a4917c5
LocalPlayer: Fix sneaking on nodes with large collisionboxes ( #12626 )
2022-10-17 07:56:04 -04:00
sfan5
25c5400250
Exclude MSVC from new Lua sanity check
2022-10-15 12:02:02 +02:00
sfan5
f680d10259
Other minor CMake improvements
2022-10-13 23:02:11 +02:00
sfan5
e8ee4cb40d
Defer searching for libintl to CMake
...
resolves #12800
2022-10-13 23:02:11 +02:00
sfan5
af38bae57f
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.
2022-10-13 23:02:11 +02:00
sfan5
558cbd89fb
Add extra check in case someone tries to unbundle Lua
2022-10-13 23:02:11 +02:00
Jude Melton-Houghton
cb725a4555
Speed up find_nodes_in_area ( #12845 )
2022-10-13 09:35:19 -04:00
fluxionary
6b6f886bcd
object ids are u16, not s16 ( #12848 )
2022-10-13 08:46:48 -04:00
Jude Melton-Houghton
f7ae70c3d9
Use enum to define custom registry indices
2022-10-13 08:46:16 -04:00
Jude Melton-Houghton
f073e37d2f
Test on-lighting node param1 in lighting test
2022-10-13 08:46:16 -04:00
Jude Melton-Houghton
b3503e7853
Embed data directly in mapblocks
2022-10-09 13:43:48 -04:00
Jude Melton-Houghton
8f996e4a7c
Remove unused MapBlock functionality
2022-10-09 13:43:48 -04:00
Jude Melton-Houghton
9676364c1f
Optimize lighting calculation ( #12797 )
2022-10-09 10:50:26 -04:00
fluxionary
440d966b93
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>
2022-10-09 08:06:09 -04:00
ROllerozxa
be5c675263
Only set quicktune keybinds in debug builds ( #12779 )
2022-10-06 17:07:57 +01:00
x2048
1e96403954
Use legacy call when rendering to a single texture
...
Fixes depth buffer in when undersampling > 1
2022-10-04 21:02:42 +02:00
Jude Melton-Houghton
7632af3c73
Consolidate API object code ( #12728 )
...
Co-authored-by: sfan5 <sfan5@live.de>
2022-10-04 08:31:36 -04:00
Jude Melton-Houghton
b21fb18379
Disable -ffinite-math-only ( #12832 )
2022-10-03 12:13:35 -04:00
sfan5
525fc3833c
Implement tool use sounds
2022-09-30 14:02:14 +02:00
sfan5
bbdb1929c6
Clean up Game::handleDigging() and some related parts
2022-09-30 14:02:14 +02:00
Muhammad Rifqi Priyo Susanto
13a8948edd
Improve double tap for jump detection ( #12793 )
2022-09-30 14:02:06 +02:00
Jude Melton-Houghton
e832cee1e6
Avert collision static detection rounding error ( #12822 )
2022-09-30 06:31:24 -04:00
Wuzzy
6eb7d57ed3
Fix inconsistent craft replacements ( #9250 ) ( #12819 )
2022-09-30 06:30:39 -04:00
Wuzzy
5e7ea0664a
Fix error msg if craft replacement w/ full inv ( #12820 )
2022-09-29 20:34:51 +02:00
x2048
9df79a4b2d
Bloom ( #12791 )
...
Adds configurable light exposure control and bloom effect (light bleeding) with client-side settings.
2022-09-29 20:34:05 +02:00
Muhammad Rifqi Priyo Susanto
3978b9b8ed
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>
2022-09-29 20:30:33 +02:00
20kdc
b1233056b7
Add zstd compression support ( #12515 )
2022-09-28 09:06:14 -04:00
DS
0251b01da6
Pause shader animation timer in singleplayer pause menu ( #12766 )
...
Co-authored-by: sfan5 <sfan5@live.de>
2022-09-27 16:23:07 -04:00
pecksin
6ac38aa2c8
Restore and enhance bouncy behavior ( #11939 )
2022-09-27 16:22:36 -04:00
savilli
907dcdcf7b
Add unittests for item movement code ( #11885 )
2022-09-27 16:22:11 -04:00
Wuzzy
3f801bc096
Fix liquid drawtype faces sometimes not rendering ( #12807 )
...
Co-authored-by: SmallJoker <SmallJoker@users.noreply.github.com>
2022-09-26 19:27:47 -04:00
Jude Melton-Houghton
f4a01f3a5d
Avoid duplication of mod metadata in memory ( #12562 )
...
Co-authored-by: sfan5 <sfan5@live.de>
2022-09-26 17:03:43 -04:00
Jude Melton-Houghton
03428d9825
Modify PUC Lua to wrap C++ exceptions ( #12445 )
2022-09-26 07:23:48 -04:00
Jude Melton-Houghton
f916398a54
Add lighting test and benchmark ( #12802 )
2022-09-26 06:49:08 -04:00
Tobias Frost
7069d99aa6
Fix two spelling mistakes
...
Co-authored-by: Tobias Frost <tobi@debian.org>
2022-09-25 13:45:27 +02:00
Lars Müller
1317cd12d7
Fix formula used for acceleration ( #12353 )
2022-09-20 10:55:51 +02:00
DS
11905a6db6
Rename a variable in localplayer.h, resolves a TODO
2022-09-20 10:55:11 +02:00
ndren
2c3f641e0b
Simplify bit flip in sha1.cpp
2022-09-20 10:54:35 +02:00
Jude Melton-Houghton
006d974c58
Catch exceptions in SQLite3 callback
2022-09-18 17:39:09 +02:00
Jude Melton-Houghton
6f5a68b7f7
Allow getmetatable in CSM ( #12776 )
2022-09-18 17:32:18 +02:00
DS
c9ed059d91
Client map: do frustum culling via planes ( #12710 )
2022-09-18 15:28:53 +02:00
savilli
9428917870
Fix UAF in craft recipes ( #12763 )
...
If you call minetest.clear_craft after minetest.register_alias_force, the craft definition reference may not be removed from m_output_craft_definitions leading to UAF.
2022-09-16 13:20:14 +02:00
William Breathitt Gray
19e936362a
Add support for MINETEST_USERDATA environment variable ( #12639 )
...
The MINETEST_USER_PATH environment variable can be used to define a
custom path for Minetest user data. If MINETEST_USER_PATH is empty or
unset, the HOME (or APPDATA on Windows) environment variable is used as
the default user data path; this ensures backwards compatibility with
existing user setups.
2022-09-16 13:19:44 +02:00
Wuzzy
1d04903c19
Add paramtype2s for 4 horizontal rotations and 64 colors ( #11431 )
...
4dir is like facedir, but only for 4 horizontal directions: NESW. It is identical in behavior to facedir otherwise. The reason why game makers would want to use this over facedir is 1) simplicity and 2) you get 6 free bits.
It can be used for things like chests and furnaces and you don't need or want them to "flip them on the side" (like you could with facedir).
color4dir is like colorfacedir, but you get 64 colors instead of only 8.
2022-09-16 13:18:55 +02:00
DS
f3f3b752f2
Fix tooltips for dropdown, scrollbar and more ( #12747 )
2022-09-13 12:48:28 +01:00
SmallJoker
bc3dccca5c
Mainmenu: Properly sort mods and games ( #12758 )
...
This also removes trivial and unused pkgmgr functions
Fixes a bug caused by sorting in 2133fc8
2022-09-12 19:24:54 +02:00
Jude Melton-Houghton
fe13f9dfd1
Fix potential use-after-free with item metadata ( #12729 )
...
This fixes a use-after-free bug in the case where itemstack metadata is accessed after the itemstack has been garbage-collected.
2022-09-11 19:28:37 +02:00
sfan5
c607bee19e
Allow looped animation to be used safely with old clients
...
fixes #12657
2022-09-10 12:21:29 +02:00
pecksin
adb03ccc6d
Chat weblink: remove comma as delimiter ( #12730 )
2022-09-10 12:21:15 +02:00
DS
643971c948
Add documentation of sun/moon orientation/scale differences ( #12145 )
2022-09-06 11:21:55 +01:00
Herman Semenov
038da00e79
Code optimizations / refactor ( #12704 )
...
Co-authored-by: SmallJoker <SmallJoker@users.noreply.github.com>
Co-authored-by: sfan5 <sfan5@live.de>
2022-09-06 11:21:09 +01:00
x2048
ff6dcfea82
Implement rendering pipeline and post-processing ( #12465 )
...
Co-authored-by: Lars Mueller <appgurulars@gmx.de>
Co-authored-by: sfan5 <sfan5@live.de>
Co-authored-by: lhofhansl <lhofhansl@yahoo.com>
2022-09-06 08:25:18 +02:00
x2048
464043b8ab
Convert entity glow value to color space before adding to the light
2022-09-04 16:00:13 +02:00
fluxionary
0ab9bf926d
Fix texture_min_size
2022-08-24 22:38:14 +02:00
rubenwardy
2d10fa7867
Prevent loading a world with unresolved dependencies ( #12542 )
2022-08-19 12:31:36 +01:00
x2048
8c29c4f620
Use Sky class to obtain directional light source position for shadows ( #12662 )
...
* Also remove unused Sky::getSkyBodyOrbitTilt method
Fixes misalignment of sun position and shadow direction at high tilt values.
2022-08-17 16:30:05 +02:00
celeron55
3f67215df9
Log sockets into tracestream instead of dstream ( #12701 )
2022-08-16 15:18:11 +01:00
Elliott Lester
7c5e3cac6a
Apply DPI Scaling to GUIModalMenu ( #12693 )
...
Co-authored-by: sfan5 <sfan5@live.de>
2022-08-15 21:19:47 +01:00
x2048
aa2fdc6ef6
Limit force shadow update to urgent blocks ( #12692 )
2022-08-14 20:29:20 +02:00
Lion
2690585e99
Add handling of environment variables to control terminal/logging colors ( #12641 )
2022-08-14 20:27:28 +02:00
x2048
d1cbb4bd8a
Reduce the use of porting::getTimeMs() when rendering frames ( #12679 )
...
* Avoid calling TimeTaker too frequently in renderMapXXX
* Calculate animation timer once per frame
* Remove code that breaks rendering frame at 2000ms
Co-authored-by: sfan5 <sfan5@live.de>
Co-authored-by: sfan5 <sfan5@live.de>
2022-08-13 22:33:26 +02:00
Lars Müller
0e439b2fa3
Check hp_max > 0 for entities ( #12667 )
2022-08-13 15:35:41 +01:00
Jude Melton-Houghton
ab8dfb45b4
Allow buffer argument to VoxelManip:get_light_data ( #12682 )
2022-08-13 08:53:47 +02:00
fluxionary
59601eb922
Remove default keybind for range select ( #12632 )
...
Reason: accidental key presses, few use-cases.
2022-08-13 08:53:30 +02:00
SmallJoker
023a1c2427
Textures: introduce world-align overrides ( #12540 )
...
Many games do not care about world align textures, however texture packs should have the capabilities to change that if they have suitable textures. This commmit now introduces a node property override for world-align in particular to force a certain scale on the selected override tiles.
2022-08-13 08:52:16 +02:00
SmallJoker
c8ee755c05
Physics overrides: Move values to a common struct ( #12591 )
...
Co-authored-by: sfan5 <sfan5@live.de>
2022-08-12 10:17:02 +01:00
Zughy
bcc56803d7
Fix crash when stars are reset
2022-08-10 18:03:57 +02:00
sfan5
4fbcc33ee0
Enable C++ stdlib assertions in debug flags
2022-08-05 13:04:01 +02:00
sfan5
c4277877b6
Bump protocol version
...
Better late than never.
2022-08-04 22:45:52 +02:00
ROllerozxa
eb49b6d85c
Disable dynamic shadow dropdown on OGLES2 ( #12637 )
...
Co-authored-by: sfan5 <sfan5@live.de>
2022-08-04 20:42:43 +02:00
x2048
644f145ff2
Explicitly initialize value of particle parameter. Fixes #12621 .
2022-08-02 23:51:50 +02:00
SmallJoker
a81259d19a
Run Minetest update checker on startup ( #7629 )
...
This feature is enabled by default for non-Android release builds. Package
maintainers may use -DENABLE_UPDATE_CHECKER=0 to disable it.
Co-authored-by: rubenwardy <rw@rubenwardy.com>
Co-authored-by: sfan5 <sfan5@live.de>
2022-08-02 21:34:17 +02:00
sfan5
f22d40975e
Switch MeshUpdateQueue to better data structure
2022-08-02 11:58:26 +02:00
sfan5
4c1ef1b72b
Ratelimit MeshUpdateQueue::cleanupCache() runs
2022-08-02 11:58:26 +02:00
AFCMS
6ec6acc539
Add minetest.settings
to CSM API and allow CSMs to provide settingtypes.txt
( #12131 )
...
Co-authored-by: sfan5 <sfan5@live.de>
Co-authored-by: SmallJoker <SmallJoker@users.noreply.github.com>
2022-08-02 11:58:08 +02:00
x2048
839600ed70
Use legacy image implementation (no NNAA filter) when not using 9-slice image ( #12608 )
2022-07-31 21:57:13 +02:00
Mantar
95d7fcb949
Apply NetBSD string conversion workaround to OpenBSD as well ( #12618 )
2022-07-31 15:18:19 +02:00
ROllerozxa
de509d05e6
Fix Android blank screen ( #12604 )
...
Hardcode the variables to 0 on Android
2022-07-31 15:18:04 +02:00
SmallJoker
c14b7536a4
HUD: Fix wrong minimum scale since 051181f
...
Caused by wrong interpretation of the settingtypes.txt format
2022-07-31 14:57:19 +02:00
rubenwardy
a871115889
Fix some warnings ( #12615 )
2022-07-30 12:51:23 +01:00
Lars Müller
99c8295e71
Fix media overriding regression ( #12602 )
2022-07-29 10:19:36 +02:00
sfan5
6611d7e1ee
Allow direction keys with autoforward again
...
This was unintentionally removed in commit 1d69a23.
fixes #12048
2022-07-29 10:19:23 +02:00
Jude Melton-Houghton
d631f21024
Let core.get_mod_storage be called multiple times ( #12572 )
2022-07-23 22:27:07 +02:00
updatepo.sh
eea2a97475
Update minetest.conf.example
2022-07-20 21:36:03 +02:00
x2048
70c54abc2a
Restore flags texture to fix interlaced stereo mode ( #12560 )
2022-07-19 20:26:57 +02:00
x2048
b270a46e53
Offset cuboid origin after scaling the cuboid. ( #12558 )
...
This avoids the problem of offset nodes with visual_scale > 1.
2022-07-19 10:48:00 +02:00
Lars Müller
d400a98ef0
Fix automatic rotate for attached entities ( #12392 )
2022-07-17 14:45:57 +01:00
x2048
7b6c4bf2e0
Remove workaround for normals not matching winding order ( #12460 )
...
Co-authored-by: sfan5 <sfan5@live.de>
2022-07-17 14:45:42 +01:00
rubenwardy
4648d8f499
Deprecate loading a world with unresolved dependencies ( #12541 )
...
Co-authored-by: sfan5 <sfan5@live.de>
2022-07-17 14:45:20 +01:00
rubenwardy
9f41b4f72d
Add check_mod_configuration to main menu
2022-07-14 22:12:54 +01:00
rubenwardy
06de82fd86
Refactor ModConfiguration
2022-07-14 22:12:54 +01:00
sfan5
1d512ef7f4
Reduce code duplication between c_converter.cpp and helper.cpp
2022-07-14 20:55:45 +02:00
sfan5
8ff3fadba0
Remove unnecessary float limits from script API
...
Leaves a check for NaN and inf.
2022-07-14 20:55:45 +02:00
sfan5
137eef6590
Move f1000 sanitizing to the places that still use this type
2022-07-14 20:55:45 +02:00
SmallJoker
f4c6ed863d
GUIFormSpecMenu: Fix label multiline translation ( #12527 )
2022-07-14 20:51:01 +02:00
Dmitry Kostenko
6df69f9b5b
Make BlendMode::alpha the fallback for unknown future blend modes
2022-07-13 22:45:05 +02:00
Lexi Hale
20bd6bdb68
Animated particlespawners and more ( #11545 )
...
Co-authored-by: Lars Mueller <appgurulars@gmx.de>
Co-authored-by: sfan5 <sfan5@live.de>
Co-authored-by: Dmitry Kostenko <codeforsmile@gmail.com>
2022-07-13 11:57:12 +02:00
SmallJoker
8724fe6e3f
GUIFormSpecMenu: Fix parameter order
...
Fixes a regression caused by e51f47461 because C++ implicitly converts boolean to float. no matter what.
2022-07-10 15:34:53 +02:00
SmallJoker
e51f474613
Sounds: Various little improvements ( #12486 )
...
Use SimpleSoundSpec where reasonable (OpenAL)
Ensure the sound IDs do not underflow or get overwritten -> loop in u16
Proper use of an enum.
2022-07-09 22:32:24 +02:00
SmallJoker
051181fa6e
Enforce limits of settings that could cause buggy behaviour ( #12450 )
...
Enforces the setting value bounds that are currently only limited by the GUI (settingtypes.txt).
2022-07-09 22:32:08 +02:00
x2048
7c261118e0
Release shadow mapping resources when not needed ( #12497 )
2022-07-09 22:26:39 +02:00
Vincent Robinson
f7bcf7fa46
FormSpec: 9-slice images, animated_images, and fgimg_middle ( #12453 )
...
* FormSpec: 9-slice images and animated_images
* Add fgimg_middle; clean up code
* Address issues, add tests
* Fix stupid error; bump formspec version
* Re-add image[] elements without a size
2022-07-03 08:52:26 -04:00
Wuzzy
142928e944
Allow to set maximum star opacity at daytime ( #11663 )
2022-07-02 19:57:48 +01:00
sfan5
a5f385917d
Remove an unused method and header includes
2022-06-28 12:21:12 +02:00
Zughy
18fbc0394b
Remove tile_images and special_materials obsolete code ( #12455 )
...
Co-authored-by: Zughy <4279489-marco_a@users.noreply.gitlab.com>
2022-06-28 00:55:01 +01:00
ROllerozxa
35ad006234
Increase max FPS on Android to 60 ( #12373 )
2022-06-26 14:38:11 +01:00
JosiahWI
4163c872af
Fix two memleak reports from Coverity ( #12466 )
2022-06-26 14:37:50 +01:00
SmallJoker
a463620edb
Re-order sound-related code ( #12382 )
...
Dropped ServerSoundParams -> moved to ServerPlayingSound. This gets rid of the duplicated
'fade' and 'pitch' values on server-side where only one was used anyway.
SimpleSoundSpec is the basic sound without positional information, hence 'loop' is included.
Recursively added PROTOCOL_VERSION to most functions to reduce the versioning mess in the
future. Per-type version numbers are kept for now as a safety rope in a special case.
2022-06-20 21:56:12 +02:00
sfan5
0b41533763
Annotate light spread functions with comments
2022-06-20 21:24:28 +02:00
sfan5
e92a217bd1
Fix CAO light calculation issue
2022-06-19 13:30:11 +02:00
sfan5
a83d81ff45
Fix updating glow on entities
...
was broken in #10021 more than 2 years ago(!)
2022-06-17 20:50:24 +02:00
savilli
ae555465ba
Fix zlib (de)compressor memory leaks
2022-06-16 23:53:23 +02:00
Nathanaël Courant
622d857bed
Update my name
2022-06-16 21:38:32 +02:00
sfan5
e9e721b937
Fix entity related bugs
...
* Make minetest.add_entity() binary-safe
* Fix on_death pushing dummy ObjectRef instead of nil
2022-06-15 17:20:07 +02:00
ROllerozxa
992f501159
Fix Android input box crash
2022-06-14 19:22:22 +02:00
paradust7
7ffc0268df
Inline triLinearInterpolationNoEase and triLinearInterpolation ( #12421 )
...
Performance profiling on Linux AMD64 showed this to be a significant bottleneck. The non-inlined functions are expensive due to XMM registers spilling onto the stack.
2022-06-11 20:01:30 +02:00
Lars Müller
e7d4ec6834
on_deactivate: distinguish removal and unloading ( #11931 )
...
Sometimes you need to be able to do removal-related cleanup, such as removing files from disk, or entries from a database. staticdata obviously isn't suitable for large data. The data shouldn't be removed if the entity is unloaded, only if it is removed.
2022-06-11 20:01:14 +02:00
Lars Müller
f4a53f7ee6
No damage effects on hp_max change ( #11846 )
2022-06-11 20:00:40 +02:00
sfan5
3ac5a24b12
Sanitize player position and speed server-side ( #12396 )
2022-06-07 21:27:05 +02:00
x2048
3107c98591
Mapblock Mesh BspTree: Increase the depth of block-level splits
...
... before going node-level triangle search.
Fixes transparent grass on transparent land
2022-06-07 21:26:31 +02:00
paradust7
951604e29f
Remove invalid fps_max on Mac
2022-06-06 12:03:28 +02:00
sfan5
14c283a623
Fix crash in commit a69b7abe00fb818fd88f3cd04e7f9997ffd21072
2022-06-05 19:00:14 +02:00
rubenwardy
4baf56520d
Android: Add support for sharing debug.txt ( #12370 )
2022-06-05 17:42:09 +01:00
sfan5
a69b7abe00
Improve LBMManager::applyLBMs() code
...
Fixes a possible bug for lbms on content ID zero and removes unsafe casts.
2022-06-05 17:48:51 +02:00
rubenwardy
03d86ea0b4
Add register dialog to separate login/register ( #12185 )
...
New users find Minetest's account system confusing.
This change moves username/password to a new dialog,
with login and register buttons added to the Join Game tab.
The old registration confirmation dialog is removed in
favour of the new dialog.
Fixes #8138
2022-06-05 17:47:38 +02:00
savilli
1f39948bc3
Fix BSD iconv declaration
2022-06-05 15:20:29 +02:00
JosiahWI
8e5bd82c4d
fix integer overflow in mapgen ( #11641 )
...
* fix integer overflow in mapgen
Some calculations involving the magic seed had overflow because the result of an intermediate arithmetic step could not fit in an s32. By making the magic seed unsigned, the other operand in the equation will be cast to unsigned, and possibly other operands or intermediate operands. This will result in unexpected behavior if an operand is negative, which is technically possible, but logically should not happen.
* comment noise2d bitshift
While working through the code I was momentarily concerned that the right bitshift in noise2d could fill ones in some cases. It turns out that with signed integers, this is indeed true, but this one is shifting an unsigned integer, so the behavior is as expected. I put a comment here to clarify this, in case someone else wonders the same thing down the line.
* noise2d and noise3d unittests
I have added 3 tests each for noise2d and noise3d, testing all zero inputs, a very large seed (case which caused UB in the old implementation) and some fun primes I picked for no particular reason. This should be sufficient to demonstrate that the behavior of the new implementation has not changed. I used uniform initialization because it is a good feature of C++11. Please do not explode.
* uncomment the noise2d bitshift
This reverts commit 583b77ee9f1ad6bb77340ebb5ba51eb9a88ff51c. It's a
well-defined language semantic; it doesn't need to be commented.
* code cleanliness
2022-06-03 20:51:58 -04:00
sfan5
575caa8015
Properly keep noclip state in Game and ClientMap
2022-06-03 21:48:52 +02:00
sfan5
5f3af7d18b
Remove obsolete eye_height related workaround
...
This was added a long time ago in 42bbd5c9ae06a8d8ffb7915599097ead6f848755
and meant to fix prevent the view becoming black when jumping into a
ceiling, this no longer happens today.
2022-06-03 21:48:52 +02:00
Wuzzy
6a6b579c54
Add helper functions to make tool usable n times ( #12047 )
2022-06-03 21:47:04 +02:00
sfan5
9fc018ded1
Fix use-after-free in node meta cleanup
...
bug introduced in 8908a9101608d3343023b470743ef63f1c44b0b7
2022-05-29 16:30:13 +02:00
sfan5
a9a207685a
Reject registering node with empty name
...
fixes #10769
2022-05-29 14:00:19 +02:00
sfan5
c1d03695d4
Minor code improvements around active block keeping
2022-05-29 14:00:19 +02:00
sfan5
ea74680df4
Immediately activate blocks when a player joins
...
issue: #10884
This makes it possible for objects to immediately be activated,
but doesn't guarantee it since blocks may still need be emerged.
2022-05-29 14:00:19 +02:00
stefan
bb671c3089
Remove debug.get/setmetatable from security whitelist
...
fixes #12216
2022-05-29 14:00:19 +02:00
sfan5
303329f2d6
Handle lua entity HP changes correctly (like punches)
...
fixes #11975
2022-05-29 14:00:19 +02:00
sfan5
85c824ed13
Make sure real disconnect reason isn't overwritten
...
bug introduced in 2f32044273d107e82fb1c35d4a0f616fa480cdf0
2022-05-29 14:00:19 +02:00
sfan5
998e4820c9
Fix linking with Postgres libs on older cmake versions
...
closes #12149
2022-05-29 14:00:19 +02:00
sfan5
5cd7b0c6e4
Remove remains of video mode querying
2022-05-29 14:00:19 +02:00
sfan5
8908a91016
Get rid of node metadata when it becomes empty
...
fixes #8943
2022-05-29 14:00:19 +02:00
sfan5
261a8db9dd
Optimize Server::sendMetadataChanged a bit
...
The distance check also never worked as intended, now fixed.
2022-05-29 14:00:19 +02:00
sfan5
f195db2d14
Add API function to invoke player respawn
...
closes #12272
2022-05-29 14:00:19 +02:00
sfan5
da71e86633
Protect a few more settings from being set from mods
...
Of those settings main_menu_script has concrete security impact, the rest are added out of abundance of caution.
2022-05-29 14:00:19 +02:00
sfan5
bccaf5fc2d
Map opaque waving leaves to allfaces drawtype
...
fixes #9842
2022-05-29 14:00:19 +02:00
sfan5
0c6a029413
Improve a translation string
...
fixes #11442
2022-05-29 14:00:19 +02:00
x2048
ef22c0206f
Force-update shadows when the world is changed ( #12364 )
2022-05-26 22:28:34 +02:00
sfan5
8b74257bf3
Reduce size of ContentFeatures structure
...
On my system this is a reduction from 4664 to 3704 bytes.
This is not for the sake of saving RAM but ensuring
commonly used structures fit into caches better.
2022-05-26 15:49:12 +02:00
sfan5
9a01581cdd
Get rid of global buffer that would ruin concurrent MapBlock serialization
2022-05-26 15:49:12 +02:00
sfan5
5d26ac0088
Improve code in mapblock_mesh.cpp a bit
2022-05-26 15:49:12 +02:00
x2048
ed26ed5a1f
Quantize light frustum calculations ( #12357 )
...
* Quantize light frustum calculations
Reduces shadow flicker
* Fix function name to match conventions
2022-05-23 23:45:18 +02:00
sfan5
5daafc9d33
Fix hash implementation for SerializedBlockCache
2022-05-23 22:50:58 +02:00
Richard Try
e16a470d59
Use unordered_map instead of map for MapSectors
2022-05-23 22:50:49 +02:00
paradust7
367a2d4b29
Add missing concurrency protection in logger ( #12325 )
2022-05-23 22:50:25 +02:00
Wuzzy
0f9c78c3eb
Fix no_texture.png for unknown nodes with ID < 125 ( #12329 )
2022-05-23 22:50:10 +02:00
paradust7
9f338f5a56
Replace all uses of core::list with std::list ( #12313 )
2022-05-22 00:11:59 +02:00
paradust7
2742fef458
Fixes needed to use irrArray backed by std::vector ( #12263 )
2022-05-22 00:11:49 +02:00
sfan5
2f32044273
Don't ignore server disconnects in client code
...
If the server stops talking to us without saying bye we
should actually end the in-game session with an error message.
2022-05-21 17:49:55 +02:00
sfan5
9ee3dc71f1
Optimize JSON string (de)serialization routines
...
stringstreams were shown to be slow when reading/writing single characters
and there is lots of potential by having functions perform on existing
buffers whenever possible.
2022-05-21 17:46:10 +02:00
sfan5
70dc23f996
Improve testSerializeJsonString unit tests
...
this also removes the requirement that / is escaped, there is
no reason for doing so.
2022-05-21 17:46:10 +02:00
rubenwardy
4e9e230e34
Deprecate game.conf name, use title instead ( #12030 )
2022-05-21 16:23:30 +01:00
x2048
dc45b85a54
Improve shadow filters ( #12195 )
...
* Rewrite shadow filtering for the new distortion
* Calculate penumbra radius using a single sample
* Avoid peter-panning effect due to filtering of short shadows
* Add adaptive filter quality for soft shadows
* Avoid sharp shadows on surfaces without normals (e.g. plants)
* Increase default and maximum soft shadow radius
* Make line numbers in shader errors match the code
2022-05-21 16:49:30 +02:00
x2048
a4ef62f5b2
Fix lighting of upright_sprite entities ( #12336 )
...
Use MeshNode materials to set the light since ReadOnlyMaterials is now false
2022-05-20 22:35:03 +02:00
x2048
604fb2b738
Fix lighting of the wield mesh ( #12341 )
...
* Assign node light to player before final color blend.
Fixes day/night lightbank ratio for wield meshes
* Update wield mesh light when changing mesh
2022-05-20 22:33:52 +02:00
paradust7
273bfee9a1
Use std::map instead of core::map ( #12301 )
2022-05-18 12:31:49 +02:00
savilli
af37f9dc54
Remove confusing message in keybindings menu
2022-05-17 20:11:08 +02:00
Dmitry Kostenko
8756b7a735
Initialize wield mesh color when wield_image is set
...
#12245
2022-05-15 21:44:55 +02:00
sfan5
ec9f157512
Use native packer to transfer globals into async env(s)
2022-05-10 22:37:42 +02:00
Jude Melton-Houghton
7f58887ae3
Support packing arbitrary graphs ( #12289 )
2022-05-10 22:37:33 +02:00
Jude Melton-Houghton
d17d7eba14
Fix cooking and fuel crafts with aliases
2022-05-10 22:37:05 +02:00
Octavian
0f8c46771e
Fix possible unreliable behavior due to uninitialized variables
2022-05-10 22:36:25 +02:00
sfan5
f5a8593b11
Add more Prometheus metrics ( #12274 )
2022-05-09 21:20:58 +02:00
Lars Müller
c2898f53bc
HUD: Update selection mesh every frame ( #12270 )
...
Fixes outdated selection boxes after entity property changes.
2022-05-09 20:43:47 +02:00
sfan5
a66e6d4dff
Consolidate some data structures in MapBlockMesh
2022-05-08 19:12:10 +02:00
sfan5
1fa4f58080
Cache serialized mapblocks during sending
...
This reduces the
(absolute) time spent in Server::SendBlocks() from 700ms to 300ms
(relative) share of MapBlock::serialize() from 80% to 60%
in a test setup with 10 players and many block changes
2022-05-08 19:12:10 +02:00
ROllerozxa
f128f4cba1
Fix mapblock geometry optimisation not working
...
Caused by the depth sorting PR marking not only transparent nodes to be ignored but also opaque ones with the TILE_MATERIAL_BASIC material type
2022-05-08 19:11:44 +02:00
paradust7
87472150bc
Add benchmarks for json string serialize/deserialize ( #12258 )
...
Co-authored-by: sfan5 <sfan5@live.de>
2022-05-06 21:17:16 +01:00
Froggo
45d318a773
Enable chat clickable weblinks by default ( #12115 )
...
Co-authored-by: rubenwardy <rw@rubenwardy.com>
2022-05-06 21:15:16 +01:00
LoneWolfHT
47cf257c40
Fix Windows Visual Studio actions ( #11176 )
...
Co-authored-by: rubenwardy <rw@rubenwardy.com>
2022-05-04 22:55:02 +01:00
x2048
cc56ebd90d
Avoid rendering invisible faces of simple nodeboxes ( #12262 )
...
* Skip rendering faces adjacent to opaque nodes
* Cancel out opposite faces of adjacent nodebox nodes of the same type
Fixes #6409
2022-05-04 23:44:55 +02:00
Lars Müller
89c82035d8
hud_get: Return precision field for waypoints ( #12215 )
2022-05-04 20:55:20 +02:00
SmallJoker
3ce5a68cd1
guiScalingFilter: Fix most memory leaks ( #12256 )
...
Calls to the cache function ended up creating a new texture regardless whether
the texture is already cached.
2022-05-04 20:55:13 +02:00
paradust7
0704ca0550
Make logging cost free when there is no output target ( #12247 )
...
The logging streams now do almost no work when there is no output target for them.
For example, if LL_VERBOSE has no output targets, then `verbosestream << x` will return a StreamProxy with a null target. Any further `<<` operations applied to it will do nothing.
2022-05-04 20:55:01 +02:00
sfan5
71a56c3552
Fix broken FPS/dtime counters in debug info
...
was broken by a89afe1229e327da3c397a3912b2d43d2196ea2b
2022-05-03 20:17:43 +02:00
sfan5
e7659883cc
Async environment for mods to do concurrent tasks ( #11131 )
2022-05-02 20:56:06 +02:00
sfan5
663c936428
Fix synchronization issue at thread start
...
If a newly started thread immediately exits then m_running would
immediately be set to false again and the caller would be stuck
waiting for m_running to become true forever.
Since a mutex for synchronizing startup already exists we can
simply move the while loop into it.
see also: #5134 which introduced m_start_finished_mutex
2022-05-02 20:54:55 +02:00
sfan5
56a558baf8
Refactor some Lua API functions in preparation for async env
2022-05-02 20:54:55 +02:00
sfan5
5362f472ff
Remove some unused variable from Lua class wrappers
2022-05-02 20:54:55 +02:00
x2048
c7bcebb628
Initialize wield mesh colors when changing item. ( #12254 )
...
Fixes #12245
2022-05-01 17:21:00 +02:00
sfan5
a89afe1229
Deal with compiler warnings
2022-04-30 16:49:41 +02:00
sfan5
faecff570c
Enable additional warning flags
...
also make them work with the RelWithDebInfo build type
2022-04-30 16:49:41 +02:00
sfan5
a65f6f07f3
Clean up some auth packet handling related code
2022-04-28 20:05:26 +02:00
sfan5
00f71c3b9d
Fix password changing getting stuck if wrong password is entered once
2022-04-28 19:55:36 +02:00
sfan5
3d2bf8fb02
Apply disallow_empty_password to password changes too
2022-04-28 19:55:36 +02:00
sfan5
391eec9ee7
Fix race condition in registration leading to duplicate create_auth calls
2022-04-28 19:55:36 +02:00
Oblomov
0d91ef78dd
Refactor local time getter functions ( #12221 )
...
This commit introduces mt_localtime() in src/gettime.h, a wrapper
around the OS-specific thread-safe versions of localtime()
(resp. localtime_s on Windows and localtime_r in other systems).
Per the Open Group recommendation,
«portable applications should call tzset() explicitly before using
ctime_r() or localtime_r() because setting timezone information is
optional for those functions», so we also do a one-shot
call of tzset() (_tzset() on Windows to avoid warning C4996).
The function is used to replace the localtime() calls in
getTimestamp() and makeScreenshot().
(The only reminaing call to localtime() in the tree now is the one in
the local copy of the Lua source code.)
2022-04-28 18:53:33 +02:00
paradust7
7e18a1f1be
Remove HW_buffer_counter after IrrlichtMt fix to remove HWBufferMap ( #12232 )
...
Keep code and use version check instead, for backwards compatibility
2022-04-28 18:52:19 +02:00
Wuzzy
7f4fc6f8a7
Show unknown node in debug screen ( #12230 )
2022-04-28 18:51:46 +02:00
Lars Müller
fccf1e2eac
Support CSS Color Module Level 4 ( #12204 )
2022-04-27 17:00:02 -04:00
Giuseppe Bilotta
b55d7cd45a
Fix worldaligned textures
...
As reported in #12197 , b0b9732359d43325c8bd820abeb8417353365a0c
introduces a regression in worldalign textures.
The specific change that seems to be responsible for this issue is the
change in order between the computation of the cuboid texture
coordinates and the box edge correction.
Fix #12197 by moving the box edge correction back to before the cuboid
texture coordinates, as it used to be.
2022-04-24 21:11:24 +02:00
Giuseppe Bilotta
23f981c458
Fix some textures not being sent correctly to older clients
...
Since b2eb44afc50976dc0954c868977b5829f3ff8a19, a texture defined as
`[combine:16x512:0,0=some_file.png;etc`
will not be sent correctly from a 5.5 server to a 5.4 client due to the
overeager detection of unsupported base modifier `[` introducing a
spurious `blank.png^` before the modifier.
Fix this by whitelisting which base modifiers can be passed through
unchanged to the client, and prefix `blank.png` for the others
(which at the moment is just [png:, but the list may grow larger
as new base modifiers are added.)
2022-04-24 21:10:23 +02:00
Lars Müller
4558793caf
Fix some debug info showing despite being disabled in the UI ( #12205 )
2022-04-21 21:45:47 +02:00
paradust7
7cea688a1c
Fix '[combine' when EVDF_TEXTURE_NPOT is disabled. ( #12187 )
...
Stop scaling images to POT immediately when loaded. The 'combine'
modifier hardcodes X and Y coordinates, and so behaves incorrectly
if applied to a scaled image. Images emitted by generateImage()
are already scaled to POT before being used as a texture, so
nothing should break.
2022-04-16 18:50:59 +02:00
SmallJoker
1d07a36552
upright_sprite: Fix walk animation in first person ( #12194 )
2022-04-15 18:55:08 +02:00
x2048
a5d29fa1d4
Implement shadow offsets for the new SM distortion function ( #12191 )
...
* Move shadow position calculation to vertex shaders
* Animate entire scene before rendering shadows to prevent lagging of shadows
* Remove unnecessary use of PolygonOffsetFactor
* Apply normal offset to both nodes and objects
* Rename getPerspectiveFactor -> applyPerspectiveDistortion
* Remove perspective distortion from fragment shaders
2022-04-14 22:49:30 +02:00
Lars Müller
1f27bf6380
Remove unneeded ObjectRef setter return values ( #12179 )
2022-04-10 23:20:51 +02:00
ShadowNinja
2d8eac4e0a
Don't test overflow behavior for VoxelArea extents
2022-04-08 14:55:21 +01:00
ShadowNinja
80db8804c7
Fix typo and update settings files
2022-04-08 14:55:21 +01:00
ShadowNinja
f5e54cd398
Fix OOB read in trim("")
2022-04-08 14:55:21 +01:00
ShadowNinja
c9317a16c5
Remove duplicate test for trim
2022-04-08 14:55:21 +01:00
ShadowNinja
dae6fe91a1
Update directory name sanitization
...
Only ASCII spaces have to be handles specially, and leading spaces are
also disallowed.
2022-04-08 14:55:21 +01:00
ShadowNinja
65fdc7ae50
Add tests for sanitizeDirName
2022-04-08 14:55:21 +01:00
ShadowNinja
00ebedad93
Add additional reserved directory names
2022-04-08 14:55:21 +01:00
ShadowNinja
8af332c9a7
Remove duplication in config.h
2022-04-08 14:55:21 +01:00
ShadowNinja
7993909fab
Spacing fixes
2022-04-08 14:55:21 +01:00
ShadowNinja
88b21a72f1
Treat empty XDG_CACHE_HOME same as unset
...
This matches the XDG base directory spec.
2022-04-08 14:55:21 +01:00
ShadowNinja
5683bb76cc
Fix compiler warnings
2022-04-08 14:55:21 +01:00
Dmitry Kostenko
23516acd0b
Remove obsolete commented code (follow up to #12166 )
2022-04-07 22:38:01 +02:00
x2048
48f7c5603e
Adjust shadowmap distortion to use entire SM texture ( #12166 )
2022-04-07 22:13:50 +02:00
Jude Melton-Houghton
0b5b2b2633
Disentangle map implementations ( #12148 )
...
Fixes violation of Liskov substitution principle
Fixes #12144
2022-04-07 21:58:04 +02:00
Jude Melton-Houghton
21f17e871e
Compile Lua as C++ ( #11683 )
...
Co-authored-by: sfan5 <sfan5@live.de>
2022-04-07 15:54:17 +01:00
sfan5
837cea6b4a
Fix -mwindows flag not being applied anymore
...
closes #12165
2022-04-03 21:44:22 +02:00
x2048
b0b9732359
Add depth sorting for node faces ( #11696 )
...
Use BSP tree to order transparent triangles
https://en.wikipedia.org/wiki/Binary_space_partitioning
2022-04-02 10:42:27 +02:00
Dmitry Kostenko
26c046a563
Increase the ratio between shadow range and viewing range
2022-04-02 10:39:43 +02:00
x2048
3dd7d7867b
Limit shadow map to the viewing range ( #12158 )
2022-03-31 22:40:59 +02:00
x2048
31578303a4
Tune shadow perspective distortion ( #12146 )
...
* Pass perspective distortion parameters as uniforms
* Set all perspective bias parameters via ShadowRenderer
* Recalibrate perspective distortion and shadow range to render less shadow geometry with the same quality and observed shadow distance
2022-03-31 22:40:06 +02:00
Jude Melton-Houghton
06d197cdd0
Store vector metatable in registry
2022-03-29 18:07:00 +02:00
Jude Melton-Houghton
11aab4198b
Optimize swapping nodes with equivalent lighting
2022-03-29 18:06:44 +02:00
DS
8d387433b1
Fix the documentation of InvRef:get_lists() and clean up code ( #12150 )
2022-03-29 18:06:16 +02:00
x2048
0f25fa7af6
Add API to control shadow intensity from the game/mod ( #11944 )
...
* Also Disable shadows when sun/moon is hidden. Fixes #11972 .
2022-03-26 16:58:26 +01:00
Daroc Alden
e54f5e544f
Fix memory leak in EmergeManager
...
EmergeManager keeps a copy of the BiomeGen that it creates, but
never deletes it.
2022-03-14 21:01:36 +01:00
Gregor Parzefall
289c3ff377
Fix footsteps for players whose collision box min y != 0 ( #12110 )
2022-03-14 21:01:18 +01:00
Daroc Alden
11f3f72f1c
Fix undefined behavior in TileLayer ( #12125 )
...
Initialize the values properly
2022-03-11 21:22:49 +01:00
sfan5
ad7c72c164
Remove direct OpenGL(ES) dependency
...
IrrlichtMt now provides this for us (see last commit)
fixes #12041
2022-03-09 22:37:34 +01:00
sfan5
51294163bb
Use Irrlicht bindings for GL call
2022-03-09 22:37:34 +01:00
Daroc Alden
598efbf7f9
Fix memory leak from SpatialAreaStore ( #12120 )
2022-03-09 19:28:12 +01:00
Dmitry Kostenko
4801bdf45a
Correct normal bias for entities
...
Remove use of magic constants.
Apply cameraOffset
Calculate distance projected on SM plane
2022-03-07 23:45:26 +01:00
Dmitry Kostenko
8f652f4e31
Fix shadows for upright sprite nodes
...
Avoid using read only materials in mesh scene node, as
it confuses shadow renderer.
2022-03-07 23:45:26 +01:00
Dmitry Kostenko
d2a3bed240
Avoid possible buffer overflow when checking face normals
2022-03-07 23:45:26 +01:00
Dmitry Kostenko
e4583cb9b7
Use correct indexes when checking mesh normals
2022-03-07 23:45:26 +01:00
Dmitry Kostenko
1175f48d05
Detect 'insane' normals in checkMeshNormals.
...
Detect non-zero normals which point in the opposite direction from the
face plane normal.
2022-03-07 23:45:26 +01:00
Dmitry Kostenko
54dccc480e
Improve lighting of entities.
...
Pass correct natural & artificial light to the shaders
Use natural/artificial light ratio for correct rendering of shadows
2022-03-07 23:45:26 +01:00
Dmitry Kostenko
4e39cdef94
Apply shadow texture to wield-based entities
...
For example, dropped nodes and items.
2022-03-07 23:45:26 +01:00
Dmitry Kostenko
2bba53b2c3
Render shadows on entities.
...
Fixes problem with mod 'drawers'.
2022-03-07 23:45:26 +01:00
Lars Müller
b9e886726c
Readd basic_debug as a HUD flag ( #12020 )
2022-03-05 22:16:17 +01:00
Zughy
44fc888bd6
Allow get_sky to return a table ( #11963 )
2022-03-05 22:15:41 +01:00
sfan5
f2d1295fe6
Fix segfault with autoscale_mode (again)
...
closes #12100
This time add some asserts so there is no misunderstanding about the NULL-ness of layer->texture.
2022-03-02 17:49:45 +01:00
sfan5
04bd253390
Move the codebase to C++14
2022-02-26 14:39:41 +01:00
SmallJoker
f7311e0d97
Lua API documentation: Various fixes ( #12059 )
...
Change 1: Clarify when on_step collision information is provided
Change 2: Document PostgreSQL and Redis settings
Change 3: Overall AreaStore documentation improvements including consistent parameter naming based on community suggestions
2022-02-23 21:21:37 +01:00
DS
633e23bd65
FormspecMenu: make drawing of backgrounds less hacky ( #9517 )
2022-02-22 19:17:53 +01:00
sfan5
c31b301722
Clean up ClientReady packet handling
...
fixes #12073
2022-02-17 23:20:33 +01:00
pecksin
5d0b18a0d0
Use absolute value for bouncy in collision ( #11969 )
...
* use abs(bouncy) in collision
* test case for negative bouncy
* send abs(bouncy) to old clients
2022-02-16 17:06:00 -05:00
DS
a8707158a5
Allow to set the displayed item count and its alignment via meta ( #8448 )
...
* Allow to set the displayed item count and its offset via meta
* fix rect constr call
* devtest: add dump_item chatcommand
* fix rect2 constr call (sdim is a position (typedef for v2s32), not a dimension) and remove background because it would work now
* add missing utf8 to wide conversion
* rename to count_meta
2022-02-10 06:17:52 -05:00
Lars Müller
ad1da994b2
Increase max objects per block defaults ( #12055 )
2022-02-08 19:33:10 +01:00
sfan5
ba6fbc417e
Remove awful Mingw32 workarounds
...
Instead a warning is triggered if an affected compiler is detected.
closes #12022
2022-02-08 19:31:24 +01:00
Lars Müller
b9ee29a945
Send HUD flags only if changed
2022-02-08 19:28:32 +01:00
sfan5
afb061c374
Fix broken server startup if curl is disabled ( #12046 )
2022-02-04 20:29:28 +01:00
Lars Müller
1ee37148a8
Fix types of get_mapgen_setting_noiseparams ( #12025 )
2022-02-04 20:28:43 +01:00
Jude Melton-Houghton
1c73902005
Clean up ClientInterface locking
2022-02-03 11:43:51 +01:00
rubenwardy
c61998bd20
Revert "Disable dynamic shadows for the 5.5.0 release" ( #12032 )
2022-01-31 21:48:14 +00:00
Lars Mueller
1e4d6672be
Fix builtin statbar backgrounds
...
see #12000
2022-01-31 16:35:30 -05:00
rubenwardy
128f6359e9
Use virtual paths to specify exact mod to enable ( #11784 )
2022-01-30 22:40:53 +00:00
sfan5
484a4b518f
Add another very awful workaround to prevent a crash on Mingw32
...
This appears to be the same issue as 70df3d54f37c280f7afe60f6e964b8406577f39f.
Hopefully the next MinGW update will remove the need for this.
2022-01-30 22:57:44 +01:00
sfan5
5da204f5bc
Get rid of basic_debug
last minute
...
This isn't a revert but rather just disables the codepaths. also see #12011
2022-01-30 21:32:49 +01:00
sfan5
b66477c29f
Abort raycasts that go out-of-bounds ( #12006 )
2022-01-30 21:31:18 +01:00
sfan5
f69eead62e
Get rid of empty test file
2022-01-30 13:49:26 +01:00
sfan5
a9bccb964f
Raise max mapgen limit constant to align with mapblock size
2022-01-30 13:49:26 +01:00
SmallJoker
a27362de6a
Disable dynamic shadows for the 5.5.0 release
...
The dynamic shadows are yet not in the desired state to justify the
inclusion into version 5.5.0. A stable release is long overdue, hence
this allows fixes to continue in 5.6.0-dev to finally release an
acceptable version of the dynamic shadows feature.
Reverting this commit is highly recommended to proceed in development.
2022-01-29 18:42:55 -05:00
sfan5
66e8aae9f2
Get rid of legacy workaround in SQLite backend
...
tested on Android 11, fixes #11937
2022-01-28 17:16:02 +01:00
sfan5
91c6728eb8
Add game name to server status string
2022-01-28 17:15:10 +01:00
sfan5
22f0c66abb
Request execution on dedicated GPU on Windows
2022-01-27 22:30:02 +01:00
sfan5
7aea5cb88f
Enable high-res timers on Windows
...
This should fix issues like #11891 , caused by the fps limiting
code being unable to operate correctly.
2022-01-27 22:30:02 +01:00
sfan5
058846d687
Rework drawtime and related timekeeping code to use microseconds
2022-01-27 22:30:02 +01:00
Jude Melton-Houghton
fc161e757c
Automatically migrate client mod storage ( #11960 )
2022-01-27 22:24:30 +01:00
Lars Müller
fe0b2d02bf
Define control(bits) as "unset" for entities ( #11995 )
2022-01-27 22:22:58 +01:00
updatepo.sh
0d0786e414
Update example config and translation .cpp
2022-01-25 23:18:50 +01:00
Jude Melton-Houghton
1b2176a426
Cancel emerge callbacks on shutdown
2022-01-23 00:56:17 +01:00
Vincent Robinson
95a775cd3a
Bump formspec version ( #11980 )
2022-01-23 00:55:43 +01:00
sfan5
f8cef52ea0
Fix consistency of sky sun/moon texture behaviour
...
Also cleans up related code somewhat.
2022-01-22 11:18:34 -05:00
Zughy
37d80784dd
Allow resetting celestial vault elements by leaving its arguments empty ( #11922 )
2022-01-22 12:42:49 +01:00
sfan5
f66ed2c27f
Fix local animation not instantly updating after being set
2022-01-19 23:30:18 +01:00
sfan5
42839fa1db
Optimize folder handling in 'files' mod storage backend
...
This regressed in bf22569019749e421e8ffe0a73cff988a9a9c846.
2022-01-17 21:49:18 +01:00
Dmitry Kostenko
b6555ee6af
Reset override material in anaglyph
...
Reset override material properties before applying the color filter.
2022-01-16 13:10:33 +01:00
Alex
7c93b2d7a3
Give the ASCII console splash a facelift
2022-01-15 17:45:33 +01:00
sfan5
9a12e4499e
Minor improvements to Lua sandbox
2022-01-15 17:45:08 +01:00
sfan5
379473b670
Improve situation around race condition with dynamic_add_media during client join
2022-01-15 17:45:08 +01:00
savilli
72b14bd994
Don't call on_dieplayer callback two times ( #11874 )
2022-01-15 17:44:55 +01:00
SmallJoker
b2eb44afc5
Fix NodeDef backwards compatibility to 5.3.0 ( #11942 )
...
1. Fixes crashes on older clients when [png is used as base image
2. Fixes liquid type assertion fails on debug builds
2022-01-12 18:49:14 +01:00
sfan5
4c8c649779
Mainmenu game-related changes ( #11887 )
...
fixes:
* Switching between games does not immediately hide creative mode / damage buttons if so specified
* World creation menu has a game selection list even though the menu already provides a gamebar
* Showing gameid in world list is unnecessary
* Choice of mapgen parameters in menu persists between games (and was half-broken)
2022-01-09 21:15:35 +01:00
SmallJoker
8fab406c28
Formspec: Fix bgcolor and set_focus checks
2022-01-09 18:47:12 +01:00
sfan5
5eb45e1ea0
Restore pass-through of direction keys ( #11924 )
...
This moves relevant code into the PlayerControl class and gets rid of separate keyPressed variable.
2022-01-09 18:46:36 +01:00
sfan5
76dbd0d2d0
Fully remove bitmap font support ( #11863 )
...
Freetype is now a build requirement.
2022-01-08 14:53:25 +01:00
Jude Melton-Houghton
bf22569019
Use a database for mod storage ( #11763 )
2022-01-07 20:28:49 +02:00
Wuzzy
b81948a14c
Fix damage wraparound if very high damage ( #11872 )
2022-01-06 21:16:35 +01:00
Vincent Robinson
e39b159845
Base formspec coordinate size on padded screensize
2022-01-04 17:47:32 -08:00
SmallJoker
d33ab97434
Inventory: Add ServerEnv checks for calls during script init
...
This fixes 'minetest.get_inventory' calls to players or nodes during the load phase.
2022-01-04 18:39:27 +01:00
Wuzzy
84fdd369d4
Cap damage overlay duration to 1 second ( #11871 )
2022-01-02 22:14:02 -05:00
x2048
e030d9cff0
Recalculate normals before adding mesh to the scene
2022-01-02 14:32:13 +01:00
ShadowNinja
29d2b2ccd0
Print announce error response ( #11878 )
...
Fix HTTPFetch caller and request ID to 64 bits
Check that allocated caller ID is not DISCARD
Print body if serverlist request returns error
Don't print control characters from HTTP responses
Document special HTTPFetch caller IDs
Allow unicode to be printed
2022-01-01 22:44:56 +01:00
Vincent Robinson
544b9d5c72
Add padding[] element to formspecs ( #11821 )
2021-12-30 12:54:47 -08:00
Vincent Robinson
4a16ab3585
Improve TTF support for pixel-style fonts ( #11848 )
2021-12-30 12:54:21 -08:00
SmallJoker
14c7fae378
Formspec: Unify argument checks ( #11851 )
2021-12-29 23:58:26 +01:00
sfan5
0ea8df4d64
Socket-related cleanups
...
Improve error handling on Windows and reduce the size of the `Address` class
2021-12-29 23:01:26 +01:00
ROllerozxa
05573d6d8d
Remove unused (de)serializeAttributes() methods
2021-12-29 23:00:16 +01:00
Vitaliy
9b650b9efb
Add more neighbors on mesh update ( #6765 )
2021-12-29 22:59:53 +01:00
SmallJoker
481bb90eac
Fix segfault in drawItems() due to missing inventory list
...
This fixes a nullptr dereference when the specified inventory list is not known.
Happens when HUD elements are sent before the required inventory list is created.
2021-12-29 19:20:49 +01:00
savilli
0fa54531d4
Fix check that denies new clients from a singleplayer session
2021-12-28 14:08:21 +01:00
William L. DeRieux IV
cc64a0405a
Automatically use SSE registers for FP operations on i386 ( #11853 )
...
use SSE for floating-point operations to avoid issues with improper fp-rounding and
loss of precision when moving fp-data to incompatible or less-precise
registers/storage locations
https://gcc.gnu.org/wiki/FloatingPointMath
https://gcc.gnu.org/wiki/x87note
2021-12-28 14:06:24 +01:00
JosiahWI
7f6306ca96
Restore GCC 5 compatibility ( #11778 )
2021-12-28 14:05:49 +01:00
sfan5
49f7d2494c
Protect font initialization with mutex
...
fixes #4532
2021-12-18 20:38:33 +01:00
sfan5
b2409b14d0
Refactor trusted mod checking code
2021-12-18 20:37:13 +01:00
sfan5
f405459548
Remove setlocal and setupvalue from debug
table whitelist
...
It's likely that these could be used trick mods into revealing the insecure
environment even if they do everything right (which is already hard enough).
2021-12-18 20:37:13 +01:00
sfan5
8c99f2232b
Don't let HTTP API pass through untrusted function
...
This has been a problem since the first day, oops.
2021-12-18 20:37:13 +01:00
sfan5
8472141b79
Restructure devtest's unittests and run them in CI ( #11859 )
2021-12-18 20:36:43 +01:00
ROllerozxa
fcf86ded8f
Disable inventory if player's inventory formspec is blank ( #11827 )
2021-12-13 17:43:29 +01:00
Wuzzy
f71091bf52
Remove creative/damage info in Esc/Pause menu
2021-12-13 17:33:21 +01:00
sfan5
d9d219356a
Fix get_bone_position() on unset bones modifying their position
...
closes #11840
2021-12-06 00:06:49 +01:00
sfan5
ff934d538c
Fix various code & correctness issues ( #11815 )
2021-12-05 14:40:30 +01:00
SmallJoker
57a59ae92d
Network: Delete copy constructor and use std::move instead ( #11642 )
...
This is a follow-up change which disables class copies where possible to avoid unnecessary memory movements.
2021-12-01 20:22:33 +01:00
updatepo.sh
a157256706
Update minetest.conf.example and dummy cpp file
2021-11-27 19:41:45 +01:00
Corey Powell
413be76c63
Implemented disconnect_player ( #10492 )
...
Co-authored-by: rubenwardy <rw@rubenwardy.com>
2021-11-26 19:19:40 +00:00
sfan5
87ab97da2a
Fix find_nodes_in_area misbehaving with out-of-map coordinates ( #11770 )
...
This ensures that no overflows (side-effects) happen within the find_nodes_in_area function by limiting coordinates like done in the map generation code.
2021-11-26 19:32:41 +01:00
Lejo
b9051386ae
Add Lua bitop library ( #9847 )
2021-11-26 19:31:05 +01:00
HybridDog
7a1464d783
Minimap: gamma-correct average texture colour calculation ( #9249 )
...
This calculates the average texture colour while heeding the sRGB colourspace.
2021-11-26 19:30:49 +01:00
sfan5
206e131854
Add backwards-compatible behaviour if too few CAO textures specified
...
(#11766 )
2021-11-22 17:27:49 +00:00
ExeVirus
52bfbf6ed0
Allow for Game-Specific Menu Music ( #11241 )
2021-11-22 17:26:46 +00:00
savilli
c9070e54bc
Fix local digging animation ( #11772 )
2021-11-19 22:31:04 +00:00
Elijah Duffy
cbf658f83d
Lua API: Add rmdir
, cpdir
and mvdir
( #9638 )
...
Co-authored-by: rubenwardy <rw@rubenwardy.com>
2021-11-10 19:10:20 +01:00
Riceball LEE
693f98373b
Localize error messages in mainmenu ( #11495 )
...
Co-authored-by: sfan5 <sfan5@live.de>
Co-authored-by: rubenwardy <rw@rubenwardy.com>
2021-11-01 12:27:46 +00:00
Wuzzy
6910c8d920
Fix number of tool uses being off by 1..32767 ( #11110 )
2021-10-31 22:33:33 +00:00
sfan5
0b95da7ad3
Automatically package MinGW runtime in buildbot
2021-10-31 22:32:48 +00:00
Isabelle COWAN-BERGMAN
532d5b21fd
Add joystick layout for DragonRise GameCube controller ( #11467 )
2021-10-31 19:17:47 +01:00
rubenwardy
8dfeba02b9
Fix crash on hypertext[] with not enough parts
...
The length check used < rather than <=, disabling the check when the formspec version
matches the client's FORMSPEC_API_VERSION.
Additionally, it was possible to have fewer parts than required if the formspec version
was greater than the client's FORMSPEC_API_VERSION.
2021-10-25 21:39:40 +01:00
sfan5
4ee643f472
Fixes around emerge handling
2021-10-25 20:31:52 +02:00
Jude Melton-Houghton
1e26e45530
Limit stepheight smoothing to the stepheight and stop smoothing during jumps ( #11705 )
2021-10-25 20:31:14 +02:00
sfan5
660e63dbae
Fix item duplication if player dies during interact callback (alternative) ( #11662 )
2021-10-25 20:30:27 +02:00
Wuzzy
d4b89eb106
Fix no_texture.png activation w/ simple leaves
2021-10-22 11:01:42 +02:00
Lars Müller
0d345dc1bd
Fix view bobbing not resetting when resting
...
partially fixes #11694 , also fixes #11692
2021-10-20 21:51:21 +02:00
Wuzzy
86b44ecd82
Add no_texture.png as fallback for unspecified textures
2021-10-20 21:50:16 +02:00
LoneWolfHT
c82ec8b210
Fix compiling on Windows with Visual Studio
2021-10-15 18:16:09 +02:00
rubenwardy
6901c5fae5
Use scoped app storage on Android ( #11466 )
...
From November 2021, the Play Store will no longer be accepting
apps which use the deprecated getExternalStorageDirectory() API.
Therefore, this commit replaces uses of deprecated API with the new
scoped API (`getExternalFilesDir()` and `getExternalCacheDir()`).
It also provides a temporary migration to move user data from the
shared external directory to new storage.
Fixes #2097 , #11417 and #11118
2021-10-15 18:14:48 +02:00
Wuzzy
fe7195badb
Make /status message easier to read
2021-10-15 18:13:57 +02:00
hecks
02292e03e4
Add embedded PNG texture modifier ( #11498 )
2021-10-13 17:51:37 +02:00
sfan5
fe5cb2cdfb
Remove broken timeout behaviour
...
Code that relies on `resend_count` was added in 7ea4a03 and 247a1eb, but never worked.
This was fixed in #11607 which caused the problem to surface.
Hence undo the first commit entirely and change the logic of the second.
2021-10-12 20:13:09 +02:00
savilli
6ea558f8ac
Fix player HP desync between client and server
2021-10-12 20:12:49 +02:00
SmallJoker
ecc6f4ba25
Remove a few unused functions reported by callcatcher ( #11658 )
2021-10-12 20:12:20 +02:00
sfan5
6de8d77e17
Move instead of copy during content install if possible
2021-10-07 00:20:01 +02:00
sfan5
2b5075f0e2
Move archive extraction in content store to async job
2021-10-07 00:20:01 +02:00
sfan5
2d5b7b5fb4
Make fs::extractZipFile thread-safe
2021-10-07 00:20:01 +02:00
emixa-d
9fab5d594c
Add "MINETEST_MOD_PATH" environment variable ( #11515 )
...
This adds an environment variable MINETEST_MOD_PATH.
When it exists, Minetest will look there for mods in addition to ~/.minetest/mods/.
2021-10-07 00:19:41 +02:00
lhofhansl
b4b9bee5f2
Reduce shadow jitter ( #11668 )
2021-10-05 21:54:01 +02:00
Wuzzy
bc71622d21
Fix crash when calling remove/kick/ban_player on start ( #11672 )
2021-10-05 21:53:47 +02:00
Jude Melton-Houghton
5aa95fef10
Make MetaDataRef:get return nil instead of nothing ( #11666 )
2021-10-05 15:38:33 +03:00
Wuzzy
4fca601e0c
Add get_server_max_lag() ( #11671 )
2021-10-05 15:35:55 +03:00
x2048
982e03f60d
Improvements to colored shadows ( #11516 )
2021-10-01 16:21:53 +02:00
Wuzzy
21113ad410
Split liquid_viscosity to liquid_viscosity and move_resistance ( #10810 )
2021-10-01 16:21:24 +02:00
x2048
f5040707fe
Order drawlist by distance to the camera when rendering ( #11651 )
2021-09-27 17:46:08 +02:00
SmallJoker
d51d0f3a5a
Various code improvements
...
* Camera: Fix division by 0 after view bobbing
* Remove ignored constness
* Connection: Improve window size range limits
2021-09-27 17:45:44 +02:00
TheBrokenRail
3dcf9e963e
Touch UI support for desktop builds ( #10729 )
2021-09-26 18:04:09 +02:00
sfan5
9f85862b7c
Fix "Could not create ITexture, texture needs to have a non-empty name" warning
2021-09-22 18:43:40 +02:00
nia
2628316842
Fix src/util/string.cpp on NetBSD
...
- iconv() prototype changed from traditional Unix defintion
to POSIX definition in 9.99.x.
- wchar_t is not a valid character set for iconv. Share code
with Android for using UTF-32.
2021-09-19 20:23:52 +02:00
DS
e79d6154fc
Fix client-side performance of chat UI ( #11612 )
2021-09-19 20:23:35 +02:00
Lars Müller
40ea4ddef1
Fix HUD multiline text alignment ( #10795 )
2021-09-19 20:23:22 +02:00
sfan5
e0529da5c8
Fix trivial typos
2021-09-19 13:54:20 +02:00
sfan5
ad076ede85
Add preprocessor check for weird (incorrect) build configurations
2021-09-19 13:53:44 +02:00
sfan5
fd8a8501bc
Shave off buffer copies in networking code ( #11607 )
2021-09-17 18:14:25 +02:00
sfan5
ea250ff5c5
Fix GLES2 discard behaviour (texture transparency)
2021-09-17 18:13:50 +02:00
HybridDog
d1e0f73b77
Hide Wself-assign-overloaded and Wself-move unittest compilation warnings
...
The warnings occured with the clang compiler
2021-09-17 18:13:04 +02:00
ROllerozxa
6fedee16f0
Readd TGA to the list of valid texture formats. ( #11598 )
2021-09-15 11:12:24 +01:00
Lars Müller
719a12ecac
Chop game background in mainmenu ( #10796 )
2021-09-14 20:46:02 +02:00
sfan5
4feb799b7e
Add Windows-specific CreateTempFile() implementation
...
Once again MSVC is the only compiler not supporting basic POSIX functionality.
2021-09-14 20:45:41 +02:00
sfan5
b480a3e9fd
Fix broken handling of NodemetaChanged packets
...
fixes #11610
2021-09-12 14:42:01 +02:00
sfan5
75bf9b75ca
Make sure relevant std::stringstreams are set to binary
2021-09-11 21:06:57 +02:00
sfan5
766e885a1b
Clean up/improve some scriptapi error handling code
2021-09-10 23:16:46 +02:00
Jude Melton-Houghton
7423c4c11e
Send to clients node metadata that changed to become empty ( #11597 )
2021-09-10 23:16:34 +02:00
sfan5
bbfae0cc67
Dynamic_Add_Media v2 ( #11550 )
2021-09-09 16:51:35 +02:00
NeroBurner
7f3401412e
Fix movement in random_input mode ( #11592 )
2021-09-05 19:58:50 +02:00
sfan5
31d2b9edcd
Don't look for zlib and zstd manually on Windows
2021-09-01 22:20:38 +02:00
lhofhansl
d1624a5521
Switch MapBlock compression to zstd ( #10788 )
...
* Add zstd support.
* Rearrange serialization order
* Compress entire mapblock
Co-authored-by: sfan5 <sfan5@live.de>
2021-08-31 17:32:31 -07:00
pecksin
040aed37ab
Remove closing paren as weblink delimiter
2021-08-29 19:30:33 +02:00
sfan5
6a1424f2b1
Async-related script cleanups
2021-08-28 12:15:12 +02:00
savilli
3f1adb49ae
Remove redundant on_dieplayer calls
2021-08-28 12:14:16 +02:00
NeroBurner
1d69a23ba4
Joystick sensitivity for player movement ( #11262 )
...
This commit deprecates the forward, backward, left, and right binary
inputs currently used for player movement in the PlayerControl struct.
In their place, it adds the movement_speed and movement_direction
values, which represents the player movement is a polar coordinate
system.
movement_speed is a scalar from 0.0 to 1.0. movement_direction is
an angle from 0 to +-Pi:
FWD
0
_
LFT / \ RGT
-Pi/2 | | +Pi/2
\_/
+-Pi
BCK
Boolean movement bits will still be set for server telegrams and
Lua script invocations to provide full backward compatibility.
When generating these values from an analog input, a direction is
considered active when it is 22.5 degrees away from either
orthogonal axis.
Co-authored-by: Markus Koch <markus@notsyncing.net>
Co-authored-by: sfan5 <sfan5@live.de>
2021-08-27 20:24:24 +02:00
Wuzzy
63e8224636
Fix 6th line of infotext being cut off in half ( #11456 )
2021-08-23 22:13:17 +02:00
SmallJoker
eea488ed75
Inventory: Fix rare out-of-bounds access
...
Co-authored-by: Thomas--S <info@thomas-stangl.de>
2021-08-23 14:10:17 +02:00
DS
dad87a360b
Use utf-8 for the Irrlicht clipboard ( #11538 )
2021-08-23 14:09:50 +02:00
SmallJoker
0c1e9603db
HUD: Reject and warn on invalid stat types ( #11548 )
...
This comes into play on older servers which do not know the "stat" type.
Warnings are only logged once to avoid spam within globalstep callbacks
2021-08-21 20:04:04 +02:00
Wuzzy
6fd8aede48
Show status message when changing block bounds ( #11556 )
2021-08-21 13:53:49 +02:00
sfan5
e7b05beb7d
Validate staticdata and object property length limits ( #11511 )
...
Some games provide users with enough freedom to create items
with metadata longer than 64KB, preventing this from causing
issues is on them but we'll still do the minimum not to abort
the server if this happens.
2021-08-19 20:14:22 +02:00
Wuzzy
1320c51d8e
Fix scaled world-aligned textures being aligned inconsistently for non-normal drawtypes
2021-08-19 20:14:04 +02:00
rubenwardy
24b66dede0
Add fwgettext util function
2021-08-19 20:13:25 +02:00
SmallJoker
3b842a7e02
Fix inconsistent integer comparison warnings
2021-08-17 20:00:47 +02:00
Lean Rada
328d949225
Start sprite animation at the beginning ( #11509 )
...
When setting a sprite animation, do not keep the last animation's frame number. Setting a new animation should start the animation at the start of the new animation.
2021-08-16 17:56:38 +02:00
sfan5
4419e311a9
Cap iterations of imageCleanTransparent sanely
...
fixes #11513 performance regression with 256x textures
2021-08-16 17:56:11 +02:00
Treer
963fbd1572
Fix access violation in create_schematic() ( #11534 )
...
fixes #11533
Schematics saved from y locations greater than 0 would cause an access violation if layer probabilities were specified
2021-08-16 17:55:35 +02:00
SmallJoker
b3b075ea02
Fix segfault caused by shadow map on exit
2021-08-12 20:08:39 +02:00
x2048
442e48b84f
Move updating shadows outside of RenderingCore::drawAll. ( #11491 )
...
Fixes indirect rendering modes such as some 3D modes mentioned in #11437 and undersampled rendering.
Does not fully fix anaglyph 3d mode.
2021-08-12 20:07:09 +02:00
DS
0709946c75
Fix a segfault caused by wrong textdomain lines in translation files ( #11530 )
...
* The problem were lines like these:
"# textdomain:"
* str_split does not add an empty last part if there is a delimiter
at the end, but this was probably assumed here.
2021-08-12 20:06:18 +02:00
DS
1ab29f1716
Fix GUIEditBoxWithScrollBar using a smaller steps than intlGUIEditBox ( #11519 )
2021-08-08 18:59:45 +02:00
Pevernow
c6eddb0bae
Gettext support on Android ( #11435 )
...
Co-authored-by: sfan5 <sfan5@live.de>
Co-authored-by: =?UTF-8?q?Olivier=20Samyn=20=F0=9F=8E=BB?= <code@oleastre.be>
2021-08-08 18:59:07 +02:00
SmallJoker
4a3728d828
OpenAL: Free buffers on quit
2021-08-03 20:29:55 +02:00
SmallJoker
32cb9d0828
Mods: Combine mod loading checks and deprection logging ( #11503 )
...
This limits the logged deprecation messages to the mods that are loaded
Unifies the mod naming convention check for CSM & SSM
2021-07-31 19:54:52 +02:00
Wuzzy
e7cd4cfa25
Fix /emergeblocks crashing in debug builds ( #11461 )
...
The reason for the bug was an u16 overflow, thus failing the assert. This only happened in Debug build but not in Release builds.
2021-07-31 19:54:40 +02:00
hecks
1e2b638881
Remove unsupported formats from the media enumerator
2021-07-29 22:42:47 +02:00
hecktest
28c98f9fa5
Remove unsupported extensions from list in tile.cpp
2021-07-29 21:47:08 +02:00
hecks
80d12dbedb
Add a simple PNG image encoder with Lua API ( #11485 )
...
* Add a simple PNG image encoder with Lua API
Add ColorSpec to RGBA converter
Make a safety wrapper for the encoder
Create devtest examples
Co-authored-by: hecktest <>
Co-authored-by: sfan5 <sfan5@live.de>
2021-07-29 05:10:10 +02:00
sfan5
6e8aebf432
Add bold, italic and monospace font styling for HUD text elements ( #11478 )
...
Co-authored-by: Elias Fleckenstein <eliasfleckenstein@web.de>
2021-07-27 19:11:46 +02:00
JosiahWI
cf136914cf
Take advantage of IrrlichtMt CMake target ( #11287 )
...
With the CMake changes to IrrlichtMt, it's now possible to use a target for IrrlichtMt.
Besides greatly improving the ease of setting up IrrlichtMt for users building the client, it removes the need for Minetest's CMake to include transitive dependencies such as image libraries, cleaning it up a tiny bit. The PR works by finding the IrrlichtMt package and linking to the target it provides. If the package isn't found and it isn't building the client, it will still fall back to using just the headers of old Irrlicht or IrrlichtMt.
2021-07-27 19:11:27 +02:00
x2048
bf3acbf388
Distribute shadow map update over multiple frames to reduce stutter ( #11422 )
...
Reduces stutter and freezes when playing.
* Maintains double SM and SM Color textures
* Light frustum update triggers incremental generation of shadow map into secondary 'future' textures.
* Every incremental update renders a portion of the shadow draw list (split equally).
* After defined number of frames (currently, 4), 'future' and 'current' textures are swapped, and DirectionalLight 'commits' the new frustum to use when rendering shadows on screen.
Co-authored-by: sfan5 <sfan5@live.de>
2021-07-25 12:36:23 +02:00
hecks
a049e8267f
Remove unused ITextSceneNode header ( #11476 )
...
Co-authored-by: hecktest <>
2021-07-22 00:55:20 +02:00
hecks
850293bae6
Remove unused header includes
2021-07-21 22:07:13 +02:00
sfan5
6caed7073c
Fix no locales being generated when APPLY_LOCALE_BLACKLIST=0
...
Also enable `ky` which appears to work fine.
2021-07-20 17:58:47 +02:00
SmallJoker
40bee27e56
CSM: Do not index files within hidden directories
...
CSM would previously scan for files within .git or .svn directories, and also special files such as .gitignore
2021-07-17 16:44:06 +02:00
Wuzzy
f4d8cc0f0b
Add wallmounted support for plantlike and plantlike_rooted nodes ( #11379 )
2021-07-15 21:19:59 +02:00
Wuzzy
b7b5aad027
Fix revoke debug privs not reliably turn off stuff ( #11409 )
2021-07-12 20:32:18 +02:00
sfan5
5c89a0e12a
Fix build on Ubuntu 16.04 and macOS
...
Apparently the C++ standard library is supposed to provide
specializations of std::hash for enums (even in C++11)
but those don't always work for whatever reason.
2021-07-12 12:03:39 +02:00
x2048
effb5356ca
Avoid draw list and shadow map update in the same frame to reduce dtime jitter ( #11393 )
...
* Separate draw list and shadows update to reduce jitter
* Avoid draw list update and shadow update in the same frame
* Force-update shadows when camera offset changes
2021-07-11 10:57:29 -07:00
x2048
f5706d444b
Improve shadow rendering with non-default camera FOV ( #11385 )
...
* Adjust minimum filter radius for perspective
* Expand shadow frustum when camera FOV changes, reuse FOV distance adjustment from numeric.cpp
* Read shadow_soft_radius setting as float
* Use adaptive filter radius to accomodate for PSM distortion
* Adjust filter radius for texture resolution
2021-07-11 08:15:19 -07:00
hecks
1d25d1f7ad
Refactor video driver name retrieval ( #11413 )
...
Co-authored-by: hecktest <>
2021-07-11 09:50:34 +02:00
SmallJoker
b93bbfde2c
Script API: Fix segfault in remove_detached_inventory
...
when minetest.remove_detached_inventory is called on script init, the environment is yet not set up,
hence m_env is still nullptr until all scripts are loaded
2021-07-10 14:34:36 +02:00
Warr1024
52128ae11e
Add API for mods to hook liquid transformation events ( #11405 )
...
Add API for mods to hook liquid transformation events
Without this API, there is no reliable way for mods to be
notified when liquid transform modifies nodes and mods are
forced to poll for changes. This allows mods to detect
changes to flowing liquid nodes and liquid renewal using
event-driven logic.
2021-07-09 09:08:40 -04:00
SmallJoker
062fd2190e
Auth API: Error when accessed prior to ServerEnv init ( #11398 )
2021-06-30 20:42:26 +02:00
hecks
827a7852e2
Remove unsupported video drivers ( #11395 )
...
This completely removes any mention of the software and D3D drivers from MT, preventing the user from accidentally attempting to use them. Users who need a software renderer should be asked to install Mesa drivers which offer superior fidelity and performance over the 'burningsvideo' driver.
2021-06-30 20:42:15 +02:00
SmallJoker
f2fd443262
Inventory: Make addList() consistent ( #11382 )
...
Fixes list clearing for inv:set_list() using same size, since 2db6b07.
addList() now clears the list in all cases. Use setSize() to resize without clearing.
2021-06-30 20:39:38 +02:00
Wuzzy
63fc728a84
Require 'basic_debug' priv to view gameplay-relevant debug info, require 'debug' priv to view wireframe ( #9315 )
...
Fixes #7245 .
2021-06-24 21:21:19 +03:00
Wuzzy
51bf4a6e26
Perform some quality assurance for translation strings ( #11375 )
2021-06-23 17:35:50 +01:00
sfan5
c60a146e22
Rework Settings to support arbitrary hierarchies ( #11352 )
2021-06-23 15:22:31 +02:00
SmallJoker
a8b7c8ff38
Server: Ignore whitespace-only chat messages
2021-06-22 19:47:18 +02:00
SmallJoker
2db6b07de1
Inventory: show error on invalid list names ( #11368 )
2021-06-20 17:21:50 +02:00
sfence
b10091be9b
Add min_y and max_y checks for Active Block Modifiers (ABM) ( #11333 )
...
This check can be used by ABM to reduce CPU usage.
2021-06-20 17:21:35 +02:00
pecksin
1805775f3d
Make chat web links clickable ( #11092 )
...
If enabled in minetest.conf, provides colored, clickable (middle-mouse or ctrl-left-mouse) weblinks in chat output, to open the OS' default web browser.
2021-06-20 17:20:24 +02:00
updatepo.sh
cb5dd0dae4
Update minetest.conf.example and dummy translation file
2021-06-16 18:27:45 +02:00
sfan5
edf098db63
Drop --videomodes, fullscreen_bpp and high_precision_fpu settings
...
These have been pointless for a while.
2021-06-16 17:41:34 +02:00
Liso
c47313db65
Shadow mapping render pass ( #11244 )
...
Co-authored-by: x2048 <codeforsmile@gmail.com>
2021-06-06 18:51:21 +02:00
DS
8f085e02a1
Add metatables to lua vectors ( #11039 )
...
Add backwards-compatible metatable functions for vectors.
2021-06-04 21:22:33 +02:00
sfan5
e15cae9fa0
fontengine: Fix crash loading PNG/XML fonts from paths without dot
...
fixes #11096
2021-06-01 19:47:41 +02:00
SmallJoker
c9144ae5e2
Add core.compare_block_status function ( #11247 )
...
Makes it possible to check the status of the mapblock in a future-extensible way.
2021-05-30 20:24:12 +02:00
Lars Müller
89f3991351
Fix base64 validation and add unittests ( #10515 )
...
Implement proper padding character checks
2021-05-30 20:23:12 +02:00
sfan5
f30dcdb504
Fix procession ordering issue in content_cao
2021-05-30 11:40:14 +02:00
sfan5
758e3aa1ca
Fix background color of formspec text fields
2021-05-30 11:40:14 +02:00
sfan5
a0047d6edc
script: Replace calls to depreated luaL_openlib
2021-05-30 11:40:14 +02:00
sfan5
a12017c564
Provide exact error message if postgres connection string missing
2021-05-30 11:40:14 +02:00
SmallJoker
5bf72468f3
UnitSAO: Prevent circular attachments
2021-05-29 11:44:48 +02:00
Wuzzy
ff48619a85
Fix cloud fog being broken for high clouds
2021-05-29 11:44:31 +02:00
savilli
673c29f7ea
Fix client crash on when con::PeerNotFoundException is thrown ( #11286 )
2021-05-24 19:40:35 +02:00
SmallJoker
93f43c890b
GUIEditBox: Allow selecting and copying read-only texts
2021-05-22 14:39:41 +02:00
sfan5
b56a028d6b
Fix curl_timeout being ignored for Lua HTTP fetches
2021-05-17 17:12:30 +02:00
Dmitry Marakasov
53dca4f95f
Use --image-base instead of -Ttext-segment for lld linker on FreeBSD ( #9367 ) ( #11263 )
2021-05-15 10:15:03 +02:00
sfan5
2443f1e235
Fix overlays for 2D-drawn items
...
fixes #11248
2021-05-08 19:44:43 +02:00
lhofhansl
7c2826cbc0
Fix build for newer versions of GCC ( #11246 )
2021-05-06 19:24:30 +02:00
Loic Blot
225d4541ff
fix: extractZipFile is not part of Client but more generic.
...
This solve a crash from mainmenu while extracting the zip
2021-05-06 16:01:52 +02:00
sfan5
08f1a7fbed
Use Irrlicht functions to query npot texture support
2021-05-05 22:49:44 +02:00
Loic Blot
de85bc9227
fix: some code tidy about includes & irr namespaces
2021-05-03 19:49:19 +02:00
Loic Blot
48d5abd5be
refacto: remove get_gui_env & draw_load_screen from RenderingEngine singleton
2021-05-03 19:49:19 +02:00
Loic Blot
a93712458b
fix: don't use RenderingEngine singleton when it's possible
2021-05-03 19:49:19 +02:00
Loic Blot
5a02c376ea
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)
2021-05-03 19:49:19 +02:00
Loic Blot
ccdd886e27
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
2021-05-03 19:49:19 +02:00
Loic Blot
a47a00228b
refacto: drop unused Hud::smgr
2021-05-03 19:49:19 +02:00
Loic Blot
809e68fdc0
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
2021-05-03 19:49:19 +02:00
Loic Blot
1bc855646e
refacto: protect some RenderingEngine::get_scene_manager
...
* protect it from Camera, Sky, ClientMap object calls
* rename Game::sky to Game::m_sky
2021-05-03 19:49:19 +02:00
Loic Blot
258101a910
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
2021-05-03 19:49:19 +02:00
Loic Blot
74125a74d3
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
2021-05-03 19:49:19 +02:00
Loic Blot
e0716384d6
refacto: add RenderingEngine::cleanupMeshCache
...
This permits to prevent client to own the mesh cache cleanup logic. It's better in RenderingEngine
2021-05-03 19:49:19 +02:00
Loic Blot
e34d28af9f
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
2021-05-03 19:49:19 +02:00
Loic Blot
bc1888ff21
fix: drop old irrlicht <1.8 compat on Client::loadMedia
2021-05-03 19:49:19 +02:00
Vincent Robinson
074e6a67de
Add minetest.colorspec_to_colorstring
( #10425 )
2021-04-23 21:37:24 +02:00
sfan5
3e2145d662
Fix two CMake build issues
...
* PostgreSQL fallback code missed the includes (closes #11219 )
* build failed when Freetype enabled but not found
2021-04-21 20:26:43 +02:00
sfan5
a24899bf2d
Look for PostgreSQL library properly and fix CI
2021-04-20 19:50:34 +02:00
sfan5
1da73418cd
Enable cleanTransparent filter for mipmapping and improve its' algorithm ( #11145 )
2021-04-20 19:50:19 +02:00
Wuzzy
90a7bd6a0a
Put torch/signlike node on floor if no paramtype2 ( #11074 )
2021-04-20 19:50:03 +02:00
Seth Traverse
16e5b39e1d
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.
2021-04-20 19:23:31 +02:00
sfan5
0077982fb7
GLES fixes ( #11205 )
...
* Consistently set float precision for GLES
* Enable DPI scaling on Windows+GLES
2021-04-18 16:07:13 +02:00
sfan5
623f0a8613
Isolate library tables between sandbox and insecure env
2021-04-18 16:06:42 +02:00
sfan5
52c0384bd1
Fix ignored OpenGLES2 include path and cmake warning
2021-04-16 23:39:16 +02:00
SmallJoker
bbe120308f
Attachments: Avoid data loss caused by set_attach() in callbacks ( #11181 )
2021-04-13 20:02:18 +02:00
sfan5
4d0fef8ae8
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
2021-04-11 17:10:06 +02:00
Wuzzy
4b8209d9a4
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.
2021-04-11 17:09:37 +02:00
sfan5
0abc1e98ed
Fix server favorites not saving when client/serverlist/ doesn't exist already ( #11152 )
2021-04-09 22:36:10 +02:00
Wuzzy
e89e6c8380
Don't reseed stars when changing star count
2021-04-09 22:33:45 +02:00
yw05
85163b531f
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.
2021-04-05 15:56:29 +02:00
sfan5
19c283546c
Don't apply connection timeout limit to locally hosted servers
...
fixes #11085
2021-04-05 15:21:43 +02:00
SmallJoker
c11208c4b5
Game: Scale damage flash to max HP
...
The flash intensity is calculated proportionally to the maximal HP.
2021-04-05 13:38:50 +02:00
sfan5
f0bad0e2ba
Reserve vectors before pushing and other code quality changes ( #11161 )
2021-04-05 13:38:31 +02:00
sfan5
024d47e0d3
CGUITTFont optimizations ( #11136 )
2021-04-02 00:20:16 +02:00
sfan5
34888a914e
Sort out cURL timeouts and increase default
2021-04-02 00:19:39 +02:00
sfan5
1e4913cd76
Irrlicht support code maintenance
2021-03-31 13:15:47 +02:00
sfan5
0d90ed6d92
Draw items as 2D images (instead of meshes) when possible
2021-03-30 21:50:39 +02:00
Lars Müller
88d1fcfe23
Block & report player self-interaction ( #11137 )
2021-03-30 21:49:50 +02:00
SmallJoker
f4118a4fde
Consistent title bar + render information in mainmenu ( #10764 )
2021-03-30 21:49:15 +02:00
Wuzzy
6c9be39db0
Fix wield image of plantlike_rooted ( #11067 )
2021-03-30 00:27:46 +02:00
Vitaliy
3b78a22371
Degrotate support for mesh nodes ( #7840 )
2021-03-30 00:25:11 +02:00
sfan5
8d89f5f0cc
Replace fallback font nonsense with automatic per-glyph fallback ( #11084 )
2021-03-29 19:55:24 +02:00
Loic Blot
298bb3d8f7
Drop irrUString from MT, it's owned by irrlicht now
2021-03-26 20:58:45 +01:00
Desour
437d011968
Fix attached-to-object sounds having a higher reference distance
2021-03-23 15:43:40 +01:00
sfan5
2da1eee394
Fix broken BiomeGen
abstraction ( #11107 )
2021-03-23 15:43:26 +01:00
Jean-Patrick Guerrero
c9eba8440d
Fix segfault for model[] without animation speed
2021-03-21 23:23:30 +01:00
Vitaliy
44ed05ddf0
Restore minimal normal texture support (for minimap shading)
2021-03-21 23:22:22 +01:00
sfan5
531e7ef8eb
Serialize tool capabilities JSON without whitespace
...
fixes #11087
2021-03-20 22:06:17 +01:00
SmallJoker
05719913ac
Schematic: Properly deal with before/after node resolving and document ( #11011 )
...
This fixes an out-of-bounds index access when the node resolver was already applied to the schematic (i.e. biome decoration).
Also improves the handling of the two cases: prior node resolving (m_nodenames), and after node resolving (manual lookup)
2021-03-20 13:02:15 +01:00
Elias Fleckenstein
492110a640
Check for duplicate login in TOSERVER_INIT handler ( #11017 )
...
i.e. checks for duplicate logins before sending all media data to the client.
2021-03-19 21:45:29 +01:00
Elias Åström
59a1b53d67
Scale mouse/joystick sensitivity depending on FOV ( #11007 )
2021-03-19 21:43:01 +01:00
sfan5
96d4df995c
Drop old text input workarounds ( #11089 )
...
* Drop unused intlGUIEditBox
* Drop unnecessary Linux text input workarounds
2021-03-19 18:44:32 +01:00
Jean-Patrick Guerrero
285ba74723
GUIScene: Clear depth buffer + replace deprecated clearZBuffer calls
2021-03-16 23:28:16 +01:00
Jean-Patrick Guerrero
66b5c08664
Fix deprecated calls with Irrlicht 1.9
2021-03-16 23:27:15 +01:00
Wuzzy
62e3593944
Tweak duration_to_string formatting
2021-03-16 18:37:46 +01:00
sfan5
051bc9e662
Enable Irrlicht debug logging with --trace
2021-03-12 20:56:02 +01:00
sfan5
1bc85a47cb
Avoid unnecessary copies during media/mesh loading
2021-03-12 20:56:02 +01:00
sfan5
cff35cf0b3
Handle mesh load failure without crashing
2021-03-12 20:56:02 +01:00
sfan5
bb1c4badfb
Clean up cmake DLL installation and other minor things
2021-03-12 20:55:51 +01:00
sfan5
91c9313c87
Switch Irrlicht dependency to our own fork
...
-> https://github.com/minetest/irrlicht
2021-03-09 21:53:17 +01:00
sfan5
3579dd2186
Restore Irrlicht 1.9 support
2021-03-09 21:53:17 +01:00
sfan5
bf8fb2672e
Use place_param2 client-side for item appearance & prediction ( #11024 )
2021-03-09 00:56:53 +01:00
SmallJoker
176f5866cb
Protect dropping from far node inventories
...
Also changes if/if to switch/case
2021-03-07 17:18:02 +01:00
SmallJoker
fc864029b9
Protect per-player detached inventory actions
2021-03-07 17:18:02 +01:00
sfan5
593d5f4465
Clean up ClientEvent hudadd/hudchange internals
2021-03-06 23:02:10 +01:00
sfan5
1c7b69f9cf
Fix function override warnings in mg_ore.h
2021-03-06 14:21:08 +01:00
Vitaliy
abb0c99a6c
Pause animations while game is paused ( #10658 )
...
Pauses all mesh animations while game is paused.
2021-03-05 16:30:01 +01:00
Wuzzy
cafad6ac03
Translate builtin ( #10693 )
...
This PR is the second attempt to translate builtin.
Server-sent translation files can be added to `builtin/locale/`, whereas client-side translations depend on gettext.
2021-03-05 16:29:48 +01:00
sfan5
ac8ac19169
Protect mg_name and mg_flags from being set by Lua ( #11010 )
2021-03-04 20:38:28 +01:00
SmallJoker
3a2f55bc19
Settings: Push groups in to_table as well
2021-03-01 12:14:41 +01:00
hecks
225e69063f
Keep mapblocks in memory if they're in range ( #10714 )
...
Some other minor parts of clientmap.cpp have been cleaned up along the way
2021-02-26 21:23:46 +01:00
savilli
3edb1ddb81
Fix hud_change and hud_remove after hud_add ( #10997 )
2021-02-26 21:21:20 +01:00
Lars Müller
b5eda416ce
Slap u64 on everything time-y ( #10984 )
2021-02-24 12:05:17 +01:00
rubenwardy
9f6167fc3b
Deprecate not providing mod.conf
2021-02-24 11:47:50 +01:00
Wuzzy
827224635b
Use "Aux1" key name consistently everywhere
2021-02-24 11:45:30 +01:00
sfan5
9b59b2f75d
Fix keyWasDown in input handler
...
This was changed 291a6b70d674d9003f522b5875a60f7e2753e32b but should have never been done.
2021-02-23 19:41:38 +01:00
DS
4abe4b87b5
Allow overwriting media files of dependencies ( #10752 )
2021-02-23 19:39:15 +01:00
savilli
29681085b9
Fix wrong number of items in allow_metadata_inventory_put/take callbacks ( #10990 )
2021-02-23 19:36:55 +01:00
updatepo.sh
e86fbf9c06
Update minetest.conf.example and dummy translation file
2021-02-23 19:03:34 +01:00
SmallJoker
bce875fada
Minimap: Fix default label translations
2021-02-22 20:25:16 +01:00
Lars Müller
051e4c2b00
Fix wrong reported item counts for inventory actions using Shift-Move ( #10930 )
2021-02-21 20:02:23 +01:00
Wuzzy
e441ab9675
Fix world-aligned node rendering at bottom ( #10742 )
2021-02-19 19:45:36 +01:00
rubenwardy
f85e9ab925
Add nametag background setting and object property ( #10937 )
2021-02-17 19:51:28 +00:00
rubenwardy
a8f6befd39
Fix short_description fallback order ( #10943 )
2021-02-17 18:53:44 +00:00
SmallJoker
7832b6843e
Server-side authority for attached players ( #10952 )
...
The server must have authority about attachments. This commit ignores any player movement packets as long they're attached.
2021-02-15 20:41:19 +01:00
sfan5
f018737b06
Fix segfault with invalid texture strings and minimap enabled
...
closes #10949
2021-02-14 11:28:02 +01:00
SmallJoker
375bcd65c1
Send attachments instantly before set_pos ( #10235 )
2021-02-12 20:54:06 +01:00
Jean-Patrick Guerrero
1d64e6537c
Pause menu: Fix segfault on u/down key input
2021-02-08 18:56:51 +01:00
Jean-Patrick Guerrero
6591597430
Fix animation_image support in scroll containers
2021-02-08 00:04:38 +00:00
rubenwardy
857dbcd572
Reduce empty translation error to infostream
...
Fixes #10905
2021-02-07 16:03:48 +00:00
rubenwardy
3a8c37181a
Use consistent temp folder path ( #10892 )
2021-02-07 15:27:24 +00:00
Vitaliy
4caf156be5
Rewrite touch event conversion ( #10636 )
2021-02-07 11:48:30 +01:00
Muhammad Rifqi Priyo Susanto
3ac07ad34d
Fall back to default when rendering mode (3d_mode) is set invalid ( #10922 )
2021-02-06 13:47:12 +01:00
rubenwardy
fbb9ef3818
Reduce ore noise_parms error to deprecation warning ( #10921 )
...
Fixes #10914
2021-02-06 13:46:45 +01:00
sfan5
0f74c7a977
Fix double free caused by CGUITTFont code
...
This partially reverts commit 2072afb72b4b3e9c5dcbcec71d824aeae1b35d19.
fixes #10920
2021-02-06 13:34:56 +01:00
SmallJoker
d287da184c
Server: properly delete ServerMap on interrupted startups
...
A static mod error (e.g. typo) would abort the initialization but never free ServerMap
2021-02-05 18:38:34 +01:00
k.h.lai
2072afb72b
Fix memory leak detected by address sanitizer ( #10896 )
2021-02-02 20:56:24 +01:00
Vincent Robinson
f227e40180
Fix list spacing and size (again) ( #10869 )
2021-02-02 20:55:13 +01:00
sfan5
674d67f312
Encode high codepoints as surrogates to safely transport wchar_t over network
...
fixes #7643
2021-02-02 20:46:08 +01:00
sfan5
c834d2ab25
Drop wide/narrow conversion functions
...
The only valid usecase for these is interfacing with OS APIs
that want a locale/OS-specific multibyte encoding.
But they weren't used for that anywhere, instead UTF-8 is pretty
much assumed when it comes to that.
Since these are only a potential source of bugs and do not fulfil
their purpose at all, drop them entirely.
2021-02-02 20:46:08 +01:00
sfan5
5e392cf34f
Refactor utf8_to_wide/wide_to_utf8 functions
2021-02-02 20:46:08 +01:00
SmallJoker
7ebd5da9cd
Server GotBlocks(): Lock clients to avoid multithreading issues
2021-02-02 19:10:35 +01:00
sfan5
40ad976753
Revise dynamic_add_media API to better accomodate future changes
2021-02-01 23:00:13 +01:00
sfan5
a01a02f7a1
Preserve immortal group for players when damage is disabled
2021-01-31 20:38:12 +01:00
sfan5
fd1c1a755e
Readd Client::sendPlayerPos optimization (was part of 81c7f0a)
...
This reverts commit b49dfa92ce3ef37b1b73698906c64191fb47e226.
2021-01-31 20:38:12 +01:00
sfan5
112a6adb10
Cache client IP in RemoteClient so it can always be retrieved ( #10887 )
...
specifically: after the peer has already disappeared
2021-01-31 20:36:47 +01:00
rubenwardy
6e0e0324a4
Fix minetest.dig_node returning true when node isn't diggable ( #10890 )
2021-01-31 18:49:51 +00:00
updatepo.sh
cb807b26e2
Update minetest.conf.example and dummy translation file
2021-01-30 21:12:46 +01:00
SmallJoker
9a177f009b
PlayerDatabaseFiles: Fix segfault while saving a player
...
Corrects a typo introduced in 5e9dd166
2021-01-29 18:02:40 +01:00
sfan5
9c91cbf50c
Handle changes caused by CMake minimum version bump ( #10859 )
...
fixes #10806
2021-01-29 17:35:29 +01:00
sfan5
83229921e5
Rework use_texture_alpha to provide three opaque/clip/blend modes
...
The change that turns nodeboxes and meshes opaque when possible is kept,
as is the compatibility code that warns modders to adjust their nodedefs.
2021-01-29 17:34:41 +01:00
sfan5
edd8c3c664
Drop never documented 'alpha' property from nodedef
...
Includes minimal support code for practical reasons.
We'll need it for a slightly different purpose next commit.
2021-01-29 17:34:41 +01:00
SmallJoker
2760371d8e
Settings: Purge getDefault, clean FontEngine
2021-01-29 17:32:35 +01:00
SmallJoker
37a05ec8d6
Settings: Proper priority hierarchy
...
Remove old defaults system
Introduce priority-based fallback list
Use new functions for map_meta special functions
Change groups to use end tags
Unittest changes:
* Adapt unittest to the new code
* Compare Settings objects
2021-01-29 17:32:35 +01:00
SmallJoker
5e9dd1667b
RemotePlayer: Remove Settings writer to Files database
2021-01-29 17:32:35 +01:00
rubenwardy
b5956bde25
Sanitize ItemStack meta text
2021-01-28 21:33:10 +00:00
Vitaliy
ed0882fd58
Include irrlichttypes.h first to work around Irrlicht#433 ( #10872 )
...
Fixes the PcgRandom::PcgRandom linker issue, caused by inconsistent data type definition.
2021-01-28 21:25:13 +01:00
Zughy
44a9510c81
Consistently use "health points" ( #10868 )
2021-01-27 18:42:02 +00:00
Vitaliy
8dae7b47fc
Improve irr_ptr ( #10808 )
2021-01-24 14:40:34 +00:00
Vincent Robinson
ad9adcb884
Fix formspec list spacing ( #10861 )
2021-01-23 14:49:13 -08:00
Vincent Robinson
6a55c03dab
Make hypertext and textarea have proper scroll event propagation. ( #10860 )
2021-01-23 14:48:57 -08:00
Vincent Robinson
009e39e73b
FormSpec: Add list spacing, slot size, and noclip ( #10083 )
...
* Add list spacing, slot size, and noclip
* Simplify StyleSpec
* Add test cases
Co-authored-by: rubenwardy <rw@rubenwardy.com>
2021-01-23 12:46:19 -08:00
rubenwardy
4c76239818
Remove dead code ( #10845 )
2021-01-22 15:09:26 +00:00
rubenwardy
67aa75d444
Use JSON for favorites, move server list code to Lua ( #10085 )
...
Co-authored-by: sfan5 <sfan5@live.de>
2021-01-22 15:08:57 +00:00
rubenwardy
4fcd000e20
MgOre: Fix invalid field polymorphism ( #10846 )
2021-01-21 19:08:06 +00:00
Zughy
45ccfe26fb
Removed some obsolete code ( #10562 )
...
Co-authored-by: Zughy <4279489-marco_a@users.noreply.gitlab.com>
2021-01-21 18:17:09 +00:00
Zughy
ea5d6312c1
ObjectRef: fix some v3f checks ( #10602 )
2021-01-21 18:37:38 +01:00
sfan5
d92da47697
Improve --version output to include Lua(JIT) version
2021-01-21 00:52:31 +01:00
Wuzzy
7f25823bd4
Allow "liquid" and "flowingliquid" drawtypes even if liquidtype=none ( #10737 )
2021-01-21 00:51:24 +01:00
Loïc Blot
4b01282821
Factorize more guiEditBoxes code ( #10789 )
...
* Factorize more guiEditBoxes code
2021-01-13 09:05:09 +01:00
JDiaz
08ee9794fb
Implement on_rightclickplayer callback ( #10775 )
...
Co-authored-by: rubenwardy <rw@rubenwardy.com>
2021-01-11 18:03:31 +01:00
Loïc Blot
5fcc78a1fe
Refactor/gui editbox ( #10787 )
2021-01-07 13:21:12 +01:00
Loïc Blot
58a709096e
refacto: factorize multiple code parts from guiEditbox childs ( #10782 )
2021-01-04 20:19:20 +01:00
rubenwardy
edd0836011
ContentDB: Add overwrite dialog when content is already installed ( #10768 )
2021-01-04 15:18:31 +00:00
hecks
dd5a732fa9
Add on_deactivate callback for luaentities ( #10723 )
2021-01-02 15:14:29 +01:00
Jean-Patrick Guerrero
ff921f6989
Formspecs: Fix broken texture escaping with model[]
2021-01-01 17:03:34 +01:00
Elias Fleckenstein
9250b5205a
Add minetest.get_objects_in_area ( #10668 )
2020-12-29 16:50:09 +01:00
Lars Mueller
09d7fbd645
Fix item tooltip background color not working
2020-12-28 13:57:45 +01:00
Lars Mueller
8f72d4b294
Fix minetest.is_nan
2020-12-24 22:07:04 +01:00
sfan5
74762470b2
Fix some minor code issues all over the place
2020-12-24 13:44:54 +01:00
Lars
289425f6bd
Minor profiler fixes.
2020-12-23 14:48:08 -08:00
rubenwardy
2c3593b51e
Fix unsafe cast in l_object
2020-12-23 22:24:58 +00:00
Markus
af22dd86e3
Fix some more joystick issues ( #10624 )
2020-12-19 22:01:05 +01:00
Vitaliy
ccbf8029ea
Cleanup shader generation code ( #10663 )
...
Shader generation is a mess. This commit cleans some parts up, including dropping remains of HLSL support which was never actually implemented.
2020-12-19 20:57:10 +01:00
rubenwardy
664f5ce960
Add open user data button to main menu ( #10579 )
2020-12-19 13:27:15 +00:00
DS
6f8a1c99d5
Documentation for highest formspec_version[] and changelog ( #10592 )
2020-12-18 19:38:07 +01:00
Lars
e638056523
Allow configuring block disk and net compression. Change default disk level.
2020-12-15 10:15:25 -08:00
Thomas--S
d0a38f694d
Formspec: Allow to specify frame loop for model[] ( #10679 )
...
Add the ability to specify an animation frame loop range for the model[] formspec element.
2020-12-15 19:06:36 +01:00
Zughy
4d41ed0975
Semi-transparent background for nametags ( #10152 )
2020-12-14 23:49:30 +01:00
SmallJoker
f2c8c6bf51
Revert "GUIFormSpecMenu: Shift+Click listring workaround for MacOS"
...
The commit caused Shift-Clicking issues on Linux due to another Irrlicht bug where
KeyInput.Shift released keys do not trigger OnEvent()
MacOS users should build using a recent Irrlicht 1.8 development version.
See also: https://sourceforge.net/p/irrlicht/patches/321/
2020-12-14 11:05:24 -08:00
SmallJoker
e18b6c5a21
GUIFormSpecMenu: Shift+Click listring workaround for MacOS
...
event.MouseInput.Shift is not implemented for MacOS
2020-12-12 20:55:06 +01:00
hecks
6d7067fd37
Implement mapblock camera offset correctly ( #10702 )
...
Implement mapblock camera offset correctly - reduce client jitter
Co-authored-by: hecktest <>
2020-12-05 15:03:40 -08:00
sfan5
07e0b527cf
Revert "Increase limit for simultaneous blocks sent per client and the meshgen cache."
...
This reverts commit 2f6393f49d5ebf21abfaa7bff876b8c0cf4ca191.
2020-12-04 19:06:16 -08:00
SmallJoker
3176daee79
Input: Fix on_rightclick called when placing into air
2020-11-29 19:20:45 +01:00
Lars
f1d72d212a
Avoid generating the same chunk more than once with multiple emerge threads.
2020-11-26 20:31:20 -08:00
sfan5
9bb381ebd3
Change typedef to normal definitions in GUI code
2020-11-26 22:42:19 +01:00
sfan5
868749b4f8
Return star color calculation to what it previously was
2020-11-26 22:17:11 +01:00
numzero
8689e00fca
Fix style
2020-11-26 12:49:10 -08:00
numzero
c158e20e5b
Provide fallback star color for GLES 2 with MT shaders disabled
2020-11-26 12:49:10 -08:00
numzero
cdcf7dca7c
Sky: support GLES2
...
IrrLicht built-in shader is broken, have to write my own
2020-11-26 12:49:10 -08:00
numzero
be59668f47
Allow missing shaders
2020-11-26 12:49:10 -08:00
numzero
d7cf40a0ce
Replace TriangleFan as poorly supported
2020-11-26 12:49:10 -08:00
numzero
560627eef8
Reuse seed when updating stars
...
The only currently relevant parameter is scale which can now be changed
without resetting stars position
2020-11-26 12:49:10 -08:00
numzero
3077afc0a2
Store stars in a single static mesh buffer
2020-11-26 12:49:10 -08:00
numzero
89cc5bf537
Don't evaluate things many times
2020-11-26 12:49:10 -08:00
numzero
095f82692d
Batch cloud drawing
2020-11-26 12:49:10 -08:00
Lars
f1349be542
Avoid marking map blocks dirty upon deserialization.
2020-11-26 11:41:55 -08:00
Lars
8dc70ebb93
Fix camera panning glitches (partially revert 10489.)
2020-11-25 14:22:36 -08:00
Pierre-Yves Rollo
78273027bf
Add sound to press event of some formspecs elements ( #10402 )
2020-11-23 21:28:25 +01:00
Paramat
872dce5020
Move Mapgen V7 river generation into the main generation loop ( #10639 )
...
All terrain generation now occurs in one loop, instead of rivers being
carved afterwards in a separate loop.
Fixes the removal of nodes added by mods in 'register on generated'.
Avoids other problems and reduces the chance of future bugs.
Mapchunk generation time is reduced.
Also fixes a code mistake which resulted in river channel generation
being disabled at floatland altitudes even when floatlands were disabled.
2020-11-20 16:11:19 +00:00
Lars
2f6393f49d
Increase limit for simultaneous blocks sent per client and the meshgen cache.
2020-11-16 10:30:52 -08:00
sfan5
ad58ece180
serverpackethandler: Minor log message fixes
...
closes #10434
2020-11-12 21:08:26 +01:00
sfan5
b504a1aa4b
Fix player sprite visibility in first person
...
closes #10525
2020-11-12 21:08:26 +01:00
sfan5
c441baa91b
Fix overloaded virtual warnings with get/setAttachment()
2020-11-12 21:08:26 +01:00
red-001
8eb2cbac61
Fix warnings about an unused variables and implicit conversion ( #10586 )
2020-11-12 21:05:47 +01:00
SmallJoker
68139a28eb
Revert "Replace MyEventReceiver KeyList with std::unordered_set" ( #10622 )
...
This reverts commit 787561b29afdbc78769f68c2f5c4f2cff1b32340.
2020-11-12 19:16:02 +01:00
SmallJoker
adffef2b94
PlayerSAO: Run on_player_hpchange raw change values ( #10478 )
...
The callback is only run when a change in HP is to be expected.
Following cases will not trigger the callback:
* Dead player damaged further
* Healing full-health player
* Change of 0 HP
2020-11-12 19:15:41 +01:00
Lars
be8d1d2d99
Increase default emerge queue limits and limit enqueue requests for active blocks.
2020-11-12 09:04:10 -08:00
SmallJoker
fca4db4184
ObjectRef: Re-add legacy code for set_physics_override ( #10585 )
...
These arguments are used at least by MTG beds and homedecor_common. A deprecation warning is shown to safely remove it in a future release.
2020-11-10 21:02:53 +01:00
sfan5
97aefe9b81
Mark additional locales as broken
2020-11-10 10:30:42 +01:00
sfan5
b6e47a30bb
Update fallback font to newer version
2020-11-10 10:30:42 +01:00
Markus Koch
e1142ee57f
Joystick: Remap joystick-specific KeyTypes to generic ones
...
According to the following table:
* MOUSE_L -> DIG
* MOUSE_R -> PLACE
* SCROLL_UP -> HOTBAR_NEXT
* SCROLL_DOWN -> HOTBAR_PREV
This commit entirely removes the special KeyTypes used for joysticks.
Support for the MOUSE KeyTypes had already been removed in the main
game code without adapting the joystick code, breaking joystick
input. This commit restores joystick functionality.
2020-11-09 11:58:50 +01:00
rubenwardy
7589cbe086
Fix object interaction distance not being checked ( #10547 )
2020-11-09 11:55:15 +01:00
SmallJoker
c940a57a38
ContentCAO: Fix segfault when minimap is disabled
2020-11-08 11:30:16 +01:00
Lars
8c1871fa2c
Revert #10495 and simplify.
2020-11-07 08:51:10 -08:00
sfan5
627c22c36e
Fix integer-string conversion for shaders
...
closes #10605
2020-11-05 19:34:40 +01:00
SmallJoker
3356da0151
Add model[] formspec element ( #10320 )
...
Formspec element to display models, written by @kilbith, rebased and tweaked.
Co-authored-by: Jean-Patrick Guerrero <jeanpatrick.guerrero@gmail.com>
Co-authored-by: sfan5 <sfan5@live.de>
2020-11-04 21:46:18 +01:00
Lars Müller
e3bd6704a0
Revert "Fix short 180 degree rotation when using set_bone_position ( #10405 )" ( #10534 )
...
This reverts commit 0f98b54aa4b2361575002d92b29fe222703ba557.
2020-11-04 21:43:32 +01:00
Zughy
72b93ec0d7
Fix ObjectRef errors due to lua_isnil() ( #10564 )
...
Treat 'none' values as 'nil'
2020-11-04 21:43:18 +01:00
Lars
39213bd00a
Slight simplification and optimization of RemoteClient.
2020-11-03 16:23:47 -08:00
Lars
aa4d3cb148
Increase defaults for viewing_range, active_object_range and related settings #10597
2020-11-03 15:55:53 -08:00
red-001
0abb3e89fa
Block attempts to connect to the client ( #10589 )
...
A Minetest peer initiates a connection by sending a packet with an invalid peer_id, for whatever reason the code for doing this ran on both the client and the server meaning you could connect to a client if you knew what the address:port tuple it was listening on.
2020-11-02 22:21:03 +01:00
SmallJoker
9c9344ceb3
Fix incorrect deprecation hints
...
"good" and "bad" were swapped in the process, resulting in wrong deprecation messages
2020-11-01 12:52:14 +01:00
rubenwardy
89dd05fdf3
Fix segfault in deprecation logging due to tail call, log by default ( #10174 )
2020-10-31 18:19:23 +00:00
Lars Müller
2dff3dd03f
Player physics: Ensure larger dtime simulation steps ( #10563 )
2020-10-29 20:15:46 +01:00
Oblomov
a701d24a00
Show RTT in ms with 2 digits of precision ( #10573 )
...
If your ping is in seconds, you probably have other problems.
2020-10-29 20:09:59 +01:00
Lars
68cd93b865
Avoid resending near blocks unnecessarily.
2020-10-27 12:08:44 -07:00
luk3yx
61a196378f
Fix CSMs on arm64 ( #10553 )
2020-10-25 18:01:39 +01:00
Vitaliy
707c8c1e95
Shaders for Android (GLES 2) ( #10506 )
...
Shader support for OpenGL ES 2 devices (Android)
Co-authored-by: sfan5 <sfan5@live.de>
2020-10-25 18:01:03 +01:00
Zughy
33b2c5f5b1
Clean up l_object.cpp ( #10512 )
...
Co-authored-by: Zughy <4279489-marco_a@users.noreply.gitlab.com>
2020-10-22 16:18:01 +01:00
Maksim
5c0a57f606
Fix Media... 0% on loading screen ( #9478 )
2020-10-21 20:42:40 +01:00
sfan5
c7aa92aaed
Fix show_on_minimap default value for local player
...
fixes #10526
2020-10-20 16:36:05 +02:00
sfan5
4f2303849e
Implement unloading of static_save=false objects according to existing docs ( #10485 )
2020-10-19 20:38:33 +02:00