Commit Graph

1038 Commits

Author SHA1 Message Date
sfan5
f4977b1e33 Allow mapgen chunk size to be non-cubic (#16429) 2025-10-22 22:31:23 +02:00
Cora de la Mouche
fc6bef7de6 Extend core.generate_decorations to generate biomes respecting the biome map (#16397)
Large structures which are generated in on_generated callbacks
independently by Lua cannot influence decoration placement. This
change enables such a callback to assume responsibility for generating
decorations itself, presumably after structures are placed, by
disabling decorations in mg_flags and executing
core.generate_decorations.

---------

Co-authored-by: Po Lu <luangruo@yahoo.com>
2025-09-20 13:44:19 +02:00
sfan5
d932f34693 Add core.strip_escapes() (#16485) 2025-09-14 23:01:43 +02:00
sfan5
f714ac0611 Add exclude_player to particle spawners 2025-09-10 20:23:55 +02:00
sfan5
5672b93007 Separate ephemeral from client caching in core.dynamic_add_media() 2025-09-06 11:44:52 +02:00
sfan5
0b66465f33 Adjust Server::dynamicAddMedia() and related parts a bit 2025-09-06 11:44:52 +02:00
SmallJoker
56bc7814de Lua API: Unify server env checks and fix missing ones (#16457)
A few functions tried to dereference a ServerEnvironment nullptr by
calling 'getEnv()'. This change makes use of a macro where possible.

This also cleans up incorrect macro uses, with no functional difference.
2025-09-04 19:00:23 +02:00
y5nw
f390137d6e Add API to cancel async jobs (#14602)
* Implement API to cancel async jobs

Co-authored-by: sfan5 <sfan5@live.de>

* update AsyncJob:cancel documentation from review

* Use IPC to unblock async

* review

* review async unblocking

* review

* Apply suggestions from code review

Co-authored-by: sfan5 <sfan5@live.de>

* minor licensing

---------

Co-authored-by: y5nw <y5nw@protonmail.com>
Co-authored-by: sfan5 <sfan5@live.de>
2025-08-26 12:40:31 +02:00
whosit
7cbe62fe7b Allow float values for HTTPRequest.timeout (#16442) 2025-08-25 21:36:42 +02:00
sfan5
36b5374715 Simplify HUD handling in Player class 2025-08-19 17:34:22 +02:00
Lucas OH
93dd22b901 Clean up unused Forward Declarations (#16324) 2025-08-02 10:07:45 +02:00
Lars Müller
23bf50a07c Document & extend testing for rotation conventions (#16200)
* Document Luanti rotation conventions
* Add test for setPitchYawRollRad (entity) rotation conventions
* Test and document that `vector.rotate` uses (extrinsic) Z-X-Y rotation order
2025-07-13 17:11:12 +02:00
Lars Mueller
37f922b500 Improve some deprecation warnings 2025-07-12 13:23:49 +02:00
Lucas OH
ce2380b58e Include header files in CMake sources (#16297) 2025-07-12 13:23:35 +02:00
sfence
4f42b4308c Add persistent unique identifiers for objects (#14135) 2025-07-09 10:40:26 +02:00
sfan5
fd0ca20ce9 Add core.get_mapgen_chunksize() (#16289) 2025-06-29 17:19:40 +02:00
SmallJoker
fdc149f316 Formspec: Show a player inventory using core.show_formspec (#15963)
'core.show_formspec' now shows and updates the inventory formspec as if
it was opened using the hotkey on client-side.
2025-06-22 22:06:47 +02:00
sfan5
aa1bab2156 Implement API to create empty VoxelManip 2025-05-30 13:03:21 +02:00
sfan5
e03957ec0c Add VoxelManip:close() for explicit free 2025-05-30 13:03:21 +02:00
sfan5
9ce9d7f433 Extend check for lingering clinets 2025-05-30 13:02:24 +02:00
sfan5
5c2599315c Change nil-component error to deprecation warning 2025-05-28 13:29:30 +02:00
sfan5
a5263dc7ed Do not allow vector components to be nil 2025-05-28 13:29:30 +02:00
y5nw
57c1ab905c Migrate existing keycode-based keybindings (#16049)
Co-authored-by: grorp <gregor.parzefall@posteo.de>
Co-authored-by: sfan5 <sfan5@live.de>
2025-05-14 22:15:15 +02:00
Lars Mueller
747857bffa Implement helpful __tostring for all userdata-based classes 2025-05-04 16:32:17 +02:00
z-op
c5abecbd3c Improve log messages for core.clear_craft 2025-05-02 21:27:31 +02:00
Lars Müller
d96f5e1c76 MetaDataRef: Make set_float preserve numbers exactly (#16090) 2025-05-02 21:27:00 +02:00
sfan5
893a74f9d7 Support HEAD and PATCH methods in http api 2025-05-01 10:46:24 +02:00
SmallJoker
d6d045aad4 Script: avoid fatal error in deprecated func handler 2025-04-23 21:41:18 +02:00
y5nw
23bfb2db72 Move keybinding settings to (Lua-based) setting menu (#15791) 2025-04-20 20:20:49 +02:00
y5nw
bf15036831 Show SDL version in the About tab (#16046) 2025-04-20 20:20:22 +02:00
Erich Schubert
78293404c7 Rename perlin noise to value noise (#15858) 2025-04-10 14:39:40 +02:00
sfan5
9d81c02f27 Add/remove/change some log messages for clarity 2025-04-10 14:39:21 +02:00
Lars Müller
7689f1f0fd Improve some warning messages (#15990) 2025-04-08 22:24:00 +02:00
grorp
c30c94dfaa Add server/client annotations to settingtypes.txt and make use of them (#15756) 2025-04-01 07:55:47 -04:00
JosiahWI
8fc7bf2af4 Fix core.get_content_info docs and harden implementation (#15925) 2025-03-26 19:03:53 +01:00
grorp
b99f90ed80 Mainmenu: Trim whitespace from player name, address, port 2025-03-26 18:31:44 +01:00
JosiahWI
4125ce877d Do not discover mod directories that fail parsing (#15917)
The root issue of the unit test failure is that all directories that are found in the mod search are counted as mods, even if they are detected to be invalid as such by the parser. For example, the presence of an init.lua file is required, and the parser will return false if one is not found. This return value was completely ignored. Simply counting the mod conditionally on the parsing success makes the modserver tests pass on MSVC.
2025-03-19 18:43:19 +01:00
sfan5
7892541383 Various random code cleanups 2025-03-04 19:53:01 +01:00
Andrii Nemchenko
e51221d247 Implement metadata-aware version of InvRef:remove_item() (#15771) 2025-02-22 16:18:48 +01:00
sfan5
ba62808fe8 Basic camera control API (#15796) 2025-02-19 18:45:45 +01:00
ROllerozxa
dd0070a6b8 Expose client version information in non-debug builds (#15708)
Co-authored-by: SmallJoker <SmallJoker@users.noreply.github.com>
Co-authored-by: Lars Mueller <appgurulars@gmx.de>
Co-authored-by: sfan5 <sfan5@live.de>
2025-02-09 18:09:07 +01:00
SmallJoker
8caf922df6 InvRef: deduplicate code 2025-02-02 19:05:09 +01:00
wrrrzr
f17498b049 Delete irrlichttypes_extrabloated.h (#15723)
Co-authored-by: cx384 <cx384@proton.me>
2025-02-01 13:41:51 +01:00
Erich Schubert
bee541f378 Lua get_biome_data: calc heat and humidity only once (#15715) 2025-01-26 19:17:02 +01:00
sfan5
a99e985674 Centralize arbitrary area volume limit and raise it (#15696) 2025-01-23 12:18:20 +01:00
SFENCE
af3f696423 Code style fixes. 2025-01-21 16:29:12 +01:00
grorp
eeb6cab4c4 In-game settings menu using separate Lua environment (#15614) 2025-01-19 13:07:04 -05:00
wozrer
a1b8d20f18 Rename getMapSettingNoiseParams to getNoiseParams 2025-01-02 14:59:19 +01:00
DS
bcbee873e8 Use openssl's sha1 and sha256, optionally (#15472) 2024-12-10 22:00:43 +01:00
SmallJoker
50928b9759 Mapgen: Add rudimentary unittests 2024-12-08 20:27:33 +01:00