Commit Graph

264 Commits

Author SHA1 Message Date
Lars Müller 6daf3871e7
Backport PUC Lua 5.4's string.{pack,unpack,packsize} 2025-12-08 23:19:24 +01:00
Lars Müller d30113a70a
Add `/lua` chatcommand to devtest (#16656)
singleplayer-only for security reasons, just in case someone is exposing a devtest server...
2025-11-27 11:27:01 +01:00
fetsorn d959692967
Option to make sky stars deterministic (#16529)
The star constellations are now based on a seed passed in StarParams.
2025-11-22 09:47:15 +01:00
Rising Leaf 44e7c5b9ab
Implement core.path_exists() (#16647) 2025-11-16 15:00:36 +01:00
cx384 d4d3e10531
Fixes and improvements for item image animations (#16620) 2025-10-29 10:26:59 +01:00
cx384 93ccb4b355
Add inventory image animation API (#16538) 2025-10-26 18:48:53 +01:00
Xeno333 dde463635e
Add `default_mapgen` game setting (#16238) 2025-10-26 18:46:54 +01:00
corpserot f1c0f292fa
Correct info about ObjectRef:set_attach() bones `""` default value 2025-10-26 10:28:30 +01:00
sfan5 f4977b1e33
Allow mapgen chunk size to be non-cubic (#16429) 2025-10-22 22:31:23 +02:00
Thomas--S 6b0e1e9b67
Clarify set_yaw() behaviour in documentation 2025-10-17 00:17:52 +02:00
sfan5 db8cd2121c
Allow to scale nametag by distance and set font size (#16267) 2025-09-23 21:07:17 +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
Zughy c9d4c33174
Docs: clarify `stepheight` upper limit 2025-09-07 20:44:48 +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
cx384 c7d45fe51a
Add formspec box color documentation to style section 2025-09-06 11:44:46 +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
sfan5 fd3588d49c Give more infos to on_timer() callback
closes #15817
2025-08-14 12:33:35 +02:00
sfan5 2a96b31ffc
Clarify documentation on node/item callbacks (#16385) 2025-08-13 20:38:41 +02:00
SmallJoker 0deee5eaf0 Bump network/formspec versions for 5.13.0 2025-07-27 09:00:20 +02:00
Zughy 535db2be76
Make `max_formspec_size` docs clearer 2025-07-22 16:40:07 +02:00
Lars Müller 643d1cbd8d
Docs: Remove outdated glTF status notice
glTF now both unlocks (minor) new features, e.g. constant interpolation, and supports animation.
2025-07-19 21:31:45 +02:00
sfan5 251488b3aa Enforce explicit size limit for media files 2025-07-16 11:42:54 +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
sfence 4f42b4308c
Add persistent unique identifiers for objects (#14135) 2025-07-09 10:40:26 +02:00
et e0f8243629
Clarify some documentation (#16301) 2025-07-09 10:36:02 +02:00
sfan5 fd0ca20ce9
Add core.get_mapgen_chunksize() (#16289) 2025-06-29 17:19:40 +02:00
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
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
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
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
grorp 986cd32f28
Minor lua_api.md improvements (#16169) 2025-05-28 13:29:03 +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
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
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
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