1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-11-26 02:45:30 +01:00
Commit Graph

1335 Commits

Author SHA1 Message Date
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
6ca9d75f0b Reject NaN and Inf in check_v3d() too
check_v2f() was already doing this
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
sfan5
452160cd00 Clean up read_tiledef and related parts a bit 2025-05-24 22:49:04 +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
Desour
4a8f84b259 Mainmenu: Move core.on_before_close to s_mainmenu like other callbacks, and doc 2025-04-23 09:31:06 +02:00
Lars Mueller
1c5776d13a FATAL_ERROR for orphan object refs in objectrefGetOrCreate 2025-04-20 20:49:10 +02:00
Lars Mueller
e1143783e5 Fix some (MSVC) compiler warnings 2025-04-20 20:49:10 +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
sfan5
bdaabad53c Warn if async engine seems stuck (#16010) 2025-04-14 17:18:33 +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
cx384
18ac8b20fa Replace object visual by enum (#15681) 2025-03-06 21:02:11 +01:00
sfan5
7892541383 Various random code cleanups 2025-03-04 19:53:01 +01:00
sfan5
47c000a293 Add unittest that lints builtin JSON files 2025-03-04 19:53:01 +01:00
Joshua Gerrish
8d822d8231 Fix compile error with MSVC: string is not a member of std 2025-03-01 12:26:33 +01:00
sfan5
27bbe3a873 CAO 'node' visual (#15683) 2025-02-22 16:19:04 +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
SmallJoker
5419345dff PauseMenuScripting: resolve absolute 'builtin' path before substring check (#15720)
In 99% of the cases, this behaviour is identical to before.
With this commit, it is again possible to have 'builtin' a symlink that e.g.
points to the engine source directory, which is helpful for development purposes.
2025-02-02 19:04:50 +01:00
wrrrzr
f17498b049 Delete irrlichttypes_extrabloated.h (#15723)
Co-authored-by: cx384 <cx384@proton.me>
2025-02-01 13:41:51 +01:00
cx384
e9826f7819 Move EnumString to separate file and add enum_to_string (#15714) 2025-01-26 19:17:14 +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
sfan5
a2058f7f3a Avoid some inefficiencies when handling ItemStack(Metadata) 2024-12-31 14:47:46 +01:00
sfan5
f2b1cc3e61 Fix situation around aabbox3d default constructor (#15586)
Co-authored-by: JosiahWI <41302989+JosiahWI@users.noreply.github.com>
2024-12-29 14:36:30 +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
cx384
c7fe2ee5c9 Add core.spawn_tree_on_vmanip (#15415)
This function works like `core.spawn_tree`, but spawns an L-system tree onto a VoxelManip object instead on the map.
2024-12-08 20:27:22 +01:00