rubenwardy
24cc33e704
Add button_url[] and hypertext element to allow mods to open web pages ( #13825 )
...
Fixes #12500
2024-03-24 17:19:23 +00:00
HybridDog
cda112493a
Faster blit_with_alpha() ( #14448 )
...
* Add test nodes for alpha compositing and the fill texture modifier
Texture test nodes can be helpful to test if `blit_with_alpha` works correctly.
The alpha compositing test node covers different cases where pixel colors are mixed with each other.
The test currently fails because `blitPixel` does not work correctly if a semi-transparent color
is drawn on top of another semi-transparent color.
The test nodes for the fill texture modifier show if the size and position arguments of the modifier work correctly.
They do not cover special cases such as very large or negative position or size values.
* Faster blit_with_alpha()
The `blit_with_alpha` function has a noticeable effect on the time it takes to join a game.
To reduce the join times, I replace the `blit_with_alpha` function with a new one:
* It does not uses floating-point numbers.
* It directly operates on the raw pixel data instead of using the comparatively
slow `setPixel` and `getPixel` functions from Irrlicht.
Only ECF_A8R8G8B8 base images are supported now.
If the top image does not have the ECF_A8R8G8B8 color format, it is converted;
I assume that this happens rarely.
* There are case distinctions for fully opaque, fully transparent and semi-transparent pixels.
This empirically increases the performance since the mixing between two semi-transparent happens rarely.
* The new function no longer has the `src_pos` argument since it was always the zero vector.
* The function is only documented once where it is declared.
For backwards compatibility, `blit_with_alpha` still mixes colors without gamma correction.
`blit_with_alpha` nonetheless behaves slightly different than before:
If a semi-transparent pixel is drawn on top of another semi-transparent pixel,
the color is mixed in a way which we can consider to be more correct now.
2024-03-19 19:56:47 +01:00
cx384
234b01a8c2
Item meta pointing range ( #14347 )
2024-03-17 15:55:38 +01:00
SmallJoker
4245a7604b
Inventory: Fix order of callbacks when swapping items
2024-03-16 20:14:05 +01:00
y5nw
fc80f65a6d
Try to preserve metatable when exchanging data with the async env ( #14369 )
...
Co-authored-by: sfan5 <sfan5@live.de>
Co-authored-by: Lars Mueller <appgurulars@gmx.de>
2024-03-06 18:04:49 +01:00
sfan5
91ea47fddf
Fix node callbacks unit test
2024-03-03 20:16:32 +01:00
DS
d4d4712361
Implement get_node with a get_node_raw ( #14384 )
...
Add /bench_bulk_get_node
Considerably improves the execution speed of core.get_node
2024-03-03 15:53:23 +01:00
grorp
e40417f687
Allow giving "pointabilities" to Lua raycasts ( #14390 )
2024-03-01 17:12:13 +01:00
sfan5
762fca538c
Expose SHA256 algorithm to Lua ( #14403 )
...
Co-authored-by: chmodsayshello <chmodsayshello@hotmail.com>
2024-02-25 18:12:23 +01:00
SmallJoker
fa1d80b53b
MetaData: restore undocumented set_string behaviour ( #14396 )
2024-02-25 16:03:05 +01:00
sfan5
6ca214fefc
Introduce std::string_view
into wider use ( #14368 )
2024-02-17 15:35:33 +01:00
sfan5
3cac17d23e
Lua on each mapgen thread ( #13092 )
2024-02-13 22:47:30 +01:00
sfan5
d4b107e2e8
Enable dynamic_add_media to take the file data instead of a path
2024-02-13 22:44:10 +01:00
sfan5
c90ebad46b
Allow specifying name for dynamic media files
2024-02-13 22:44:10 +01:00
sfan5
af69d4f7a9
Allow dynamic_add_media at mod load time
2024-02-13 22:44:10 +01:00
kromka-chleba
6c8ae2b72a
Fix liquid falling if in "float" group ( #13789 )
...
* Make falling liquid source nodes replace flowing nodes
This makes falling liquid source nodes in group:float replace
flowing nodes on the ground instead of being placed above
the flowing node.
* Make flowing liquids "fall through" for source nodes
This makes liquids in float and falling_node groups fall through
flowing liquid nodes instead of being supported by them in the air.
---------
Co-authored-by: SmallJoker <SmallJoker@users.noreply.github.com>
Co-authored-by: Lars Mueller <appgurulars@gmx.de>
2024-02-12 23:24:54 +01:00
grorp
f2b99332d9
Add Lua API function to resolve node/collision/selection boxes ( #13964 )
2024-02-06 20:45:16 +01:00
techno-sam
176e674a51
Add wear bar color API ( #13328 )
...
---------
Co-authored-by: Muhammad Rifqi Priyo Susanto <muhammadrifqipriyosusanto@gmail.com>
Co-authored-by: Lars Müller <34514239+appgurueu@users.noreply.github.com>
Co-authored-by: grorp <gregor.parzefall@posteo.de>
2024-02-02 21:21:00 +01:00
cx384
5958714309
Tool specific pointing and blocking pointable type ( #13992 )
2024-01-22 18:27:08 +01:00
Wuzzy
08ee6d8d4b
Add rotation support for wallmounted nodes in 'ceiling' or 'floor' mode ( #11073 )
2024-01-17 17:47:06 +01:00
sfence
ceaa7e2fb0
Add API for restoring PseudoRandom and PcgRandom state ( #14123 )
2024-01-16 23:20:52 +01:00
cx384
92c55c27cf
Add function to get all HUD elements ( #14042 )
2024-01-14 17:46:29 +01:00
sfan5
e824e9023f
Simplify LuaPseudoRandom::l_next and fix docs
...
Also extends the allowed range on the C++ side. This has no side-effects.
2024-01-14 13:17:53 +01:00
sfan5
d20f1182f2
Fix Lua PseudoRandom seeds being mangled
...
closes #14237
2024-01-14 13:17:53 +01:00
Lars Müller
7bae8ab838
Fix HUD image (waypoint) docs
2024-01-10 19:32:49 +01:00
sfence
d0753dddb1
Method add_pos for object/player ( #14126 )
2024-01-01 22:48:56 +01:00
cx384
467d3a8c62
Rename hud_elem_type
to type
( #14065 )
2023-12-29 21:51:02 +01:00
sfan5
93dfa8a6d8
Optimize and improve built-in PNG writer ( #14020 )
2023-12-27 11:56:48 +01:00
grorp
91ba02449b
Add touch_controls
boolean to get_player_window_information()
( #14092 )
2023-12-17 20:47:07 +01:00
grorp
689aaf50b3
Fix unittest failure for release versions ( #14067 )
2023-12-08 21:13:33 +01:00
updatepo.sh
30769589bf
Remove junk translation file
2023-12-03 19:11:32 +01:00
updatepo.sh
6cf9b7472a
Run mod_translation_updater.py
2023-12-03 19:03:45 +01:00
Desour
7199ee4ff8
Devtest: Fix testnodes bouncy color calculation
...
Values were out of range.
2023-11-19 20:45:18 +01:00
ROllerozxa
570fc90bf6
Debundle Minetest Game ( #13818 )
2023-11-07 22:18:26 +01:00
Desour
64104585c5
Devtest: Add more connected nodebox test nodes
2023-10-30 21:23:47 +01:00
Thresher
352a403bd0
Optimize PNG files ( #13509 )
2023-10-09 17:13:44 +02:00
Gregor Parzefall
56965bc814
Android: Add field_enter_after_edit[]
formspec element ( #13836 )
2023-10-01 11:20:50 +02:00
Gregor Parzefall
aea9242a96
Allow nodes to have their post_effect_color affected by lighting ( #13637 )
...
Co-authored-by: DS <ds.desour@proton.me>
2023-08-24 20:16:36 +02:00
sfan5
43c9c38a28
Fix itemdef defaults not being applied in async env
2023-08-14 18:16:36 +02:00
sfan5
f6bddc4e8d
Fix registered_craftitems not populated in async env
2023-08-14 18:16:36 +02:00
sfan5
f9c881eb5a
Add two missing classes to async environment
2023-08-14 18:16:36 +02:00
doxygen-spammer
9f25378ddd
Add performance test nodes, using complex meshes. ( #13161 )
2023-07-30 14:53:08 +01:00
DS
edcbfa31c9
Sound refactor and improvements ( #12764 )
2023-06-16 20:15:21 +02:00
Wuzzy
8e1af25738
DevTest: Add example nodes for disable_descend
2023-06-16 20:14:08 +02:00
Thresher
180ec92ef9
Remove trailing whitespace ( #13505 )
2023-05-18 20:34:18 +02:00
Buckaroo Banzai
65692ad1b5
Add min/max protocol version to minetest.get_version()
( #13482 )
2023-05-06 16:16:21 +01:00
rubenwardy
4158b72971
Add ability to override item images using meta ( #12614 )
2023-04-17 19:44:41 +01:00
rubenwardy
9d1ae80e89
Add focused styling to buttons ( #13414 )
2023-04-14 00:09:29 +01:00
Desour
7283d2495f
Devtest: Add bigfoot for footstep sounds
2023-04-13 18:12:13 +01:00
rubenwardy
39f4d26177
Add minetest.get_player_window_information() ( #12367 )
2023-02-27 22:58:41 +00:00
Wuzzy
e21d5613a6
Change DevTest header (font = "undefined medium") ( #13147 )
...
Font downloaded from https://undefined-medium.com/
2023-01-16 20:16:45 +01:00
Jude Melton-Houghton
3992a13f24
Improve MetaDataRef:{get,set}_float
precision ( #13130 )
2023-01-12 15:40:34 -05:00
Wuzzy
a3177b89d8
DevTest: chest_of_everything
mod: Add search, bag, improve formspec ( #13064 )
2023-01-09 21:40:41 +01:00
Desour
d603619ad3
Devtest: Add jukebox
2023-01-06 22:38:35 +01:00
Desour
4685849f89
Devtest: Rename soundstuff init.lua
2023-01-06 22:38:35 +01:00
Desour
07624125ef
Devtest: Add branding iron
...
Allows giving names to objects.
2023-01-06 22:38:35 +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
lhofhansl
1e7804aaf6
Allow saturation to be controlled by the server. ( #13075 )
2022-12-25 16:15:32 -08:00
Jude Melton-Houghton
5c248c2d7d
Add callback on_mapblocks_changed
2022-12-24 08:24:59 -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
Jude Melton-Houghton
b3ffc4b327
Add minetest.get_mapgen_edges
( #12999 )
2022-12-03 10:40:46 -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
Wuzzy
3c7f26d937
Add support for attached facedir/4dir nodes ( #11432 )
2022-11-24 17:56:07 -05:00
Jude Melton-Houghton
cd8a7fe472
Add MetaDataRef:get_keys ( #12841 )
2022-11-15 16:45:12 +01:00
Jude Melton-Houghton
408af9d17d
Test metadata value changing
2022-11-10 18:56:48 +01:00
Lars Müller
077627181e
Allow rotating entity selectionboxes ( #12379 )
2022-10-30 16:53:14 +01:00
Wuzzy
0a82cb4072
DevTest: Colorize 2 nodebox nodes
2022-10-23 21:58:56 +02:00
Wuzzy
7a8ac00f9c
DevTest: Cleanup callback logging
2022-10-23 21:58:56 +02:00
Wuzzy
9e186a42bd
DevTest: Fix rendering of 2 texture test nodes
2022-10-23 21:58:56 +02:00
Wuzzy
c73d79841c
DevTest: More node textures to tell them apart
2022-10-23 21:58:56 +02:00
Wuzzy
11d1a9cc37
DevTest: Use 4dir for chests
2022-10-23 21:58:56 +02:00
Wuzzy
9f11753930
DevTest: Restore callback item descriptions
2022-10-23 21:58:56 +02:00
Wuzzy
fd1930142e
DevTest: Fix callback item textures
2022-10-23 21:58:56 +02:00
Wuzzy
0152d39215
DevTest: Refactor testhud features
2022-10-23 21:58:56 +02:00
Wuzzy
c761aa268d
DevTest: Move 2 HUD commands to testhud & improve
2022-10-23 21:58:56 +02:00
Wuzzy
72b83acadc
DevTest: No use privatizer on chest of everything
2022-10-23 21:58:56 +02:00
Wuzzy
998e50725c
DevTest: Remove experimental mod
2022-10-23 21:58:56 +02:00
Wuzzy
a23701b5e6
DevTest: Move detached inv tests to chest mod
2022-10-23 21:58:56 +02:00
Wuzzy
c1e732448c
DevTest: /test_place_node skips dummy/cb nodes
2022-10-23 21:58:56 +02:00
Wuzzy
23ef0d0916
DevTest: Clean up callback textures
2022-10-23 21:58:56 +02:00
Wuzzy
2da92ed81e
DevTest: Move callback entities to callbacks mod
2022-10-23 21:58:56 +02:00
Wuzzy
cb7b96fc90
DevTest: Move callback items to callbacks mod
2022-10-23 21:58:56 +02:00
Wuzzy
68df0fb2ea
DevTest: Move experimental items to other mods
2022-10-23 21:58:56 +02:00
Wuzzy
3a7fffc587
DevTest: Move more logging to log mod
2022-10-23 21:58:56 +02:00
Wuzzy
48530ccbc0
DevTest: Move benchmark commands to new mod
2022-10-23 21:58:56 +02:00
Wuzzy
6b9984b7e7
DevTest: Move /test_place_nodes to testnodes mod
2022-10-23 21:58:56 +02:00
Wuzzy
97a80b4816
DevTest: Move chat command logging to separate mod
2022-10-23 21:58:56 +02:00
Jude Melton-Houghton
c78d565e01
Fix use of unassigned global "check"
2022-10-21 17:12:21 +02: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
Wuzzy
c1c68775b2
DevTest: Explain purpose of most items in tooltips ( #12833 )
2022-10-09 08:05:22 -04:00
Wuzzy
804a318189
DevTest: Change texture for node-aligned node ( #12831 )
2022-10-06 17:25:40 +01:00
Wuzzy
b10d6542db
DevTest: Reject buggy "/hp inf" command ( #12830 )
2022-10-03 12:13:23 -04:00
DS
22cbc05808
Add an item pick up callback (2) ( #7712 )
...
Co-authored-by: SmallJoker <mk939@ymail.com>
Co-authored-by: Jude Melton-Houghton <jwmhjwmh@gmail.com>
2022-10-01 15:21:06 -04:00
sfan5
525fc3833c
Implement tool use sounds
2022-09-30 14:02:14 +02:00
20kdc
b1233056b7
Add zstd compression support ( #12515 )
2022-09-28 09:06:14 -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
310b12b5ed
Content ID caching in Lua ( #12444 )
...
* Cache content IDs in Lua
Co-authored-by: sfan5 <sfan5@live.de>
2022-09-18 17:46:48 +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
Gregor Parzefall
70b71c5013
Fix rotation of falling facedir nodes ( #12587 )
...
in some cases
2022-07-31 15:18:29 +02:00
Lars Müller
b204655081
Fix regression & replace more occurrences of vector.new with vector.copy ( #12539 )
2022-07-14 20:51:42 +02:00