1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00
Commit graph

1677 commits

Author SHA1 Message Date
sfan5
8eceabd812
Make core.get_node_raw a public API (#16265)
Co-authored-by: Erich Schubert <erich.schubert@tu-dortmund.de>
2025-06-25 15:05:22 +02:00
Xeno333
da0f8cd6b5
Add documentation index for doc/ as README.md, and small docs fixes (#16253) 2025-06-24 11:49:59 +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
Miguel P.L
49f48e0a7c
Update links and names in the documentation (#16153) 2025-06-22 22:04:42 +02:00
DS
f75d16c1e6
Fix some misinformation in world_format.md (#16256) 2025-06-13 23:32:55 +02:00
Xeno333
aba2b6638e
Add documentation for ValueNoise during load time (#16235) 2025-06-07 14:44:35 +02:00
jordan4ibanez
29a9056731
Fix 'core.mod_channel_join' return value documentation (#16218) 2025-06-07 14:42:14 +02:00
Lars Müller
fde6384a09
Fix and clean up skeletal animation (#15722)
* Fix attachments lagging behind their parents (#14818)
* Fix animation blending (#14817)
* Bring back cool guy as another .x smoke test
* Add .x mesh loader unittest
* Do bounding box & matrix calculation at proper point in time
* Remove obsolete `SAnimatedMesh`
2025-06-01 23:21:35 +02:00
SmallJoker
fcddac6c07 Formspec: Fix malfunctioning 'Proceed' button on sizeless formspecs 2025-05-30 13:05:13 +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
a5263dc7ed Do not allow vector components to be nil 2025-05-28 13:29:30 +02:00
grorp
986cd32f28
Minor lua_api.md improvements (#16169) 2025-05-28 13:29:03 +02:00
sfan5
66aa5f3fac Continue with 5.13.0-dev 2025-05-23 17:43:09 +02:00
Lars Müller
7ac5502fdf
Fix handling of skinned meshes for nodes
Second try after the revert in 8a28339 due to an unexpected regression.

- Rigidly animated models (e.g. the glTF frog node) were not working correctly,
  since cloning the mesh ignored the transformation matrices.
  Note that scaling the mesh needs to occur *after* transforming the vertices.
- Visual scale did not apply to skinned models,
  as resetting the animation overwrote scaled vertex data with static positions & normals.
  For backwards compatibility, we now apply a 10x scale to static, non-glTF models.

We now do scale static meshes, as the bug that caused meshes not to be scaled was limited to skeletally animated meshes,
hence we ought not to reproduce it for skinned meshes that do not take advantage of skeletal animations (e.g. current MTG doors).

However, glTF models (e.g. Wuzzy's eyeballs) up until recently were always affected due to technical reasons
(using skeletal animation for rigid animation).

Thus, to preserve behavior, we:

1. Do not apply 10x scale to glTF models.
2. Apply 10x scale to obj models.
3. Apply 10x scale to static x or b3d models, but not to animated ones.

See also: #16141
2025-05-20 18:37:33 +02:00
Lars Mueller
e039f4c8af Improve mesh scaling factor documentation 2025-05-14 22:28:33 +02:00
Lars Mueller
9ad23e4384 Revamp dump 2025-05-04 16:32:17 +02:00
sfence
0bdd5f294e
Make SDL2 default on macOS (#16039) 2025-05-02 21:28:13 +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
sfan5
d937cd9b90 Don't restrict multipart requests to POST 2025-05-01 10:46:24 +02:00
minlemon
33ae1af79a Add how to run unit tests after compile instructions 2025-04-25 05:08:31 +02:00
minlemon
3497722a9d
Replace broken "What is Minetest?" link with archived copy 2025-04-24 20:07:51 +02:00
Lars Müller
dd2e45ee82
Deprecate function support in core.[de]serialize 2025-04-23 21:39:27 +02:00
Desour
f2ea4a4565 Improve mod storage doc a little 2025-04-23 09:31:06 +02:00
Desour
75f757ed2b Improve crafting doc 2025-04-23 09:31:06 +02:00
Desour
974d915b19 Remove creative priv from doc
Fixes https://forum.luanti.org/viewtopic.php?p=444099
2025-04-23 09:31:06 +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
grorp
0cf1c47f6c
Fix scrollbar on ContentDB grid by adding an area label (#16042)
Co-authored-by: rubenwardy <rw@rubenwardy.com>
2025-04-21 12:33:41 +02:00
sfan5
4c4e296274
Handle texture filtering sanely to avoid blurriness (#16034) 2025-04-21 12:31:44 +02:00
Jürgen Rühle
2f464843cb
Make it more convenient to customize node drops (#15872)
* Provide tool and digger to get_node_drops

This gives games/mods the ability to modify node drops depending on item
and/or player metadata without overriding node_dig or other workarounds.

* Copy wielded item to prevent modification in get_node_drops

* Also pass node pos to get_node_drops

Allowing properties of the node and its surroundings to affect node drops.

* Copy pos to prevent modification in get_node_drops

Co-authored-by: Lars Müller <34514239+appgurueu@users.noreply.github.com>

* Don't pass empty item stack to get_node_drops if wielded is nil

---------

Co-authored-by: sfan5 <sfan5@live.de>
Co-authored-by: Lars Müller <34514239+appgurueu@users.noreply.github.com>
2025-04-20 20:48:48 +02:00
y5nw
23bfb2db72
Move keybinding settings to (Lua-based) setting menu (#15791) 2025-04-20 20:20:49 +02:00
Vincent Robinson
fd85737460
Add allow_close[] element to formspecs (#15971) 2025-04-16 16:20:39 -07:00
Erich Schubert
78293404c7
Rename perlin noise to value noise (#15858) 2025-04-10 14:39:40 +02:00
grorp
66dedf1e21
lua_api.md: Mapblock-related and misc improvements (#15972)
Co-authored-by: sfan5 <sfan5@live.de>
Co-authored-by: DS <ds.desour@proton.me>
2025-04-03 13:46:06 -04:00
grorp
7dbd3a0744
lua_api.md: More info in LBM run_at_every_load documentation (#15956) 2025-04-02 10:05:23 -04:00
Jisk
0179021acc
lua_api.md: MAX_WORKING_VOLUME is now 150 million 2025-04-01 19:12:22 +02:00
cx384
41d43e8d95
Document server texture pack in texture_packs.md (#15951) 2025-03-30 18:16:34 +02:00
cx384
882f132062 Document special items 2025-03-30 18:15:11 +02:00
cx384
af1ffce084 Improve hand override documentation 2025-03-30 18:15:11 +02:00
sfan5
915446417d Improve warning message for registration table reuse 2025-03-29 10:21:15 +01:00
sfan5
7b746d21f9 Make sure generated blocks have their timestamp set
behavior change: newly generated blocks are no longer momentarily activated.
this shouldn't matter for anyone and did not consistently apply to all blocks anyway

addresses issue from #15902 for new maps(!)
2025-03-26 20:49:43 +01:00
JosiahWI
8fc7bf2af4
Fix core.get_content_info docs and harden implementation (#15925) 2025-03-26 19:03:53 +01:00
grorp
ead44a27ca
TouchControls: Implement an option for dig/place buttons (#15845) 2025-03-21 12:06:44 +01:00
Xiaochuan Ye
d085f0fb52
Document core.MAP_BLOCKSIZE constant in lua_api.md (#15911) 2025-03-16 20:02:42 +01:00
Erich Schubert
8ac7c451e1 update documentation 2025-03-16 17:56:58 +01:00
Lars Müller
077828d0d9
Add table.copy_with_metatables (#15754) 2025-03-14 11:52:42 +01:00
SmallJoker
23d0fb2d3f
builtin: Return 'obj' from 'core.item_drop' (#15880)
This also includes a minor bugfix where 'itemstack' was cleared
even if the object placement failed.
2025-03-11 20:00:35 +01:00
Erich Schubert
58ad604a4b
Note that core.hash_node_position is not a hash function 2025-02-27 12:30:55 +01:00
sfan5
27bbe3a873 CAO 'node' visual (#15683) 2025-02-22 16:19:04 +01:00