sfan5
bbfae0cc67
Dynamic_Add_Media v2 ( #11550 )
2021-09-09 16:51:35 +02:00
sfan5
6a1424f2b1
Async-related script cleanups
2021-08-28 12:15:12 +02:00
Warr1024
52128ae11e
Add API for mods to hook liquid transformation events ( #11405 )
...
Add API for mods to hook liquid transformation events
Without this API, there is no reliable way for mods to be
notified when liquid transform modifies nodes and mods are
forced to poll for changes. This allows mods to detect
changes to flowing liquid nodes and liquid renewal using
event-driven logic.
2021-07-09 09:08:40 -04:00
sfence
b10091be9b
Add min_y and max_y checks for Active Block Modifiers (ABM) ( #11333 )
...
This check can be used by ABM to reduce CPU usage.
2021-06-20 17:21:35 +02:00
sfan5
623f0a8613
Isolate library tables between sandbox and insecure env
2021-04-18 16:06:42 +02:00
Vitaliy
3b78a22371
Degrotate support for mesh nodes ( #7840 )
2021-03-30 00:25:11 +02:00
rubenwardy
6e0e0324a4
Fix minetest.dig_node returning true when node isn't diggable ( #10890 )
2021-01-31 18:49:51 +00:00
sfan5
83229921e5
Rework use_texture_alpha to provide three opaque/clip/blend modes
...
The change that turns nodeboxes and meshes opaque when possible is kept,
as is the compatibility code that warns modders to adjust their nodedefs.
2021-01-29 17:34:41 +01:00
rubenwardy
4c76239818
Remove dead code ( #10845 )
2021-01-22 15:09:26 +00:00
JDiaz
08ee9794fb
Implement on_rightclickplayer callback ( #10775 )
...
Co-authored-by: rubenwardy <rw@rubenwardy.com>
2021-01-11 18:03:31 +01:00
hecks
dd5a732fa9
Add on_deactivate callback for luaentities ( #10723 )
2021-01-02 15:14:29 +01:00
sfan5
74762470b2
Fix some minor code issues all over the place
2020-12-24 13:44:54 +01:00
luk3yx
61a196378f
Fix CSMs on arm64 ( #10553 )
2020-10-25 18:01:39 +01:00
Paul Ouellette
09f9e465e7
Fix Lua panic when error() message is not a string
2020-06-07 18:14:40 +02:00
sfan5
471e567657
Value copy / allocation optimizations mostly in server, SAO and serialize code
2020-05-27 21:58:40 +02:00
sorcerykid
15ba75e4cf
Add on_authplayer callback and 'last_login' to on_joinplayer ( #9574 )
...
Replace on_auth_fail callback with more versatile on_authplayer
Better clarify account login process in Lua API documentation
Change initial timestamp for newly registered accounts to -1
2020-05-23 13:25:29 +02:00
sfan5
3475759d1a
Expose collision information to LuaEntity on_step
2020-04-27 20:45:46 +02:00
sfan5
8a03097450
script: Put getGuiEngine() inside a client-only #ifdef
2020-04-27 06:58:34 +02:00
Loic Blot
5146086a64
Drop content_sao.{cpp,h}
...
Move LuaEntitySAO to a new dedicated file
Drop TestSAO (useless object)
Drop the old static startup initialized SAO factory, which was pretty useless.
This factory was using a std::map for 2 elements, now just use a simple condition owned by ServerEnvironment, which will be lightweight, that will also drop a one time useful test on each LuaEntitySAO creation. This should reduce server load on massive SAO creation
2020-04-11 16:07:17 +02:00
Loic Blot
894a34aef4
Move PlayerSAO to dedicated files
2020-04-11 16:07:17 +02:00
Loic Blot
6d43736172
Move serveractiveobject & unitsao
...
Move serverobject.{cpp,h} to server/serveractiveobject.{cpp,h}
Move UnitSAO class to dedicated files
2020-04-11 16:07:17 +02:00
sfan5
659245acc7
Work around LuaJIT issues on aarch64 ( #9614 )
...
- Move the text segment below the 47-bit limit, needed for script_exception_wrapper which must be lightuserdata
- Replace CUSTOM_RIDX_SCRIPTAPI with full userdata
2020-04-08 20:14:08 +02:00
sfan5
de73f989eb
Overall improvements to log messages ( #9598 )
...
Hide some unnecessarily verbose ones behind --trace or disable them entirely.
Remove duplicate ones. Improve their contents in some places.
2020-04-08 20:13:23 +02:00
sfan5
4da057cc49
Script API: Document ObjectRef handling in a comment
2020-02-23 22:24:12 +01:00
sfan5
b57dc70769
[CSM] Expose more env functions
2019-11-11 14:06:48 +01:00
sfan5
4d668f32a6
Call on_secondary_use when object is right-clicked
2019-11-10 13:12:31 +01:00
sfan5
82a2e02323
Load client mods into memory before execution.
...
Preperation for server-sent CSM which will eventually need this.
2019-11-09 16:08:38 +01:00
sfan5
5ab546f99b
Refactor loading of Lua code with mod security
2019-11-09 16:08:38 +01:00
SmallJoker
b0baa698a4
CSM: Fix itemstack:get_meta() 'metadata' indexing error
2019-09-14 19:42:30 +02:00
SmallJoker
23677be951
Load CSM environment after the restrictions are known
...
Safety-guards for CSM callbacks to abort on a bad implementation
Only run callbacks when the mods are loaded (and with it: builtin)
Duplication checks inside constructors
2019-09-14 19:42:25 +02:00
Jozef Behran
86d7f84b89
Merge pull request #8776 from osjc/FixGetNode
...
Finish getNode cleanup
2019-08-10 19:45:44 +02:00
ANAND
d1c27c7e80
Allow customizing chat message format ( #8529 )
2019-08-08 17:04:46 +01:00
Beha
b8aaef704d
Move the clamping of hp/breath when their maximums change to read_object_properties(). ( #8689 )
...
This prevents set_properties() calls that have nothing to do with hp_max or breath_max overriding the saved hp before another mod has the chance to set a player's intended hp_max (such as in on_joinplayer).
2019-07-30 17:29:45 +02:00
SmallJoker
8efa1de835
Check for 'action' field in ABMs & LBMs
2019-07-27 21:13:47 +02:00
y
ecd20de64d
Removed debug.upvaluejoin to prevent leak of insecure environment
2019-07-24 11:43:09 +02:00
Paul Ouellette
22ad820aa4
Add node field to PlayerHPChangeReason table ( #8368 )
2019-04-11 20:45:39 +01:00
rubenwardy
1e3e4fb649
HPChange Reason: Fix push after free, and type being overwritten ( #8359 )
...
* HPChange Reason: Fix push after free, and type being overwritten
Fixes #8227 and #8344
2019-03-12 08:56:56 +01:00
SmallJoker
ffb17f1c9a
Consistent HP and damage types ( #8167 )
...
Remove deprecated HUDs and chat message handling.
Remove unused m_damage variable (compat break).
HP: s32 for setter/calculations, u16 for getter.
2019-02-10 23:03:26 +00:00
DS
07c1c72aae
Fix wrong code comment ( #8061 )
...
"Get core.registered_on_chat_messages" to "Get core.registered_on_player_receive_fields" where `core.registered_on_player_receive_fields` is gotten
2019-01-06 17:21:04 +01:00
Quentin Bazin
5f1cd555cd
Move client-specific files to 'src/client' ( #7902 )
...
Update Android.mk
Remove 'src/client' from include_directories
2018-11-28 20:01:49 +01:00
Dániel Juhász
325bf68041
Raycast: export exact pointing location ( #6304 )
...
* Return intersection point in node coordinates.
* Clarify 'intersection_point' documentation
2018-08-16 20:10:08 +02:00
nOOb3167
9537cfd3f8
Add a MSVC / Windows compatible snprintf function ( #7353 )
...
Use sizeof where applicable for mt_snprintf
2018-07-22 21:56:06 +02:00
Loïc Blot
eef62c82a2
Modernize lua read (part 2 & 3): C++ templating assurance ( #7410 )
...
* Modernize lua read (part 2 & 3): C++ templating assurance
Implement the boolean reader
Implement the string reader
Also remove unused & unimplemented script_error_handler
Add a reader with default value
2018-06-30 17:11:38 +02:00
Loïc Blot
ccc3af128c
CSM/SSM: Add on_mods_loaded callback ( #7411 )
...
* CSM/SSM: Add on_mods_loaded callback
2018-06-06 12:53:59 +02:00
SmallJoker
d99a033fd6
Fix builtin inventory list crash when size = 0 ( #7297 )
2018-05-05 22:37:07 +02:00
SmallJoker
ba91624d8c
Allow damage for attached objects, add attach/detach callbacks ( #6786 )
...
* Allow right-clicking on attached LuaEntities
2018-04-30 18:43:49 +02:00
rubenwardy
87ad4d8e7f
Add online content repository
...
Replaces mods and texture pack tabs with a single content tab
2018-04-19 20:14:53 +01:00
SmallJoker
9fa547bb80
Run callback in IDropAction, refactor function arguments
2018-04-02 17:18:48 +02:00
SmallJoker
f6eff57f7c
Add player inventory callbacks
2018-04-02 17:18:48 +02:00
Loïc Blot
d88c4e1822
LINT: add clang-tidy step ( #6295 )
...
* Implement new travis clang-tidy build step
* This step enable some rules and enforce one rule as error
* This permits to have some C++ quality rules based on clang & clang contributor guidelines
* Fix clang-tidy reported problems on push_back -> emplace_back
2018-04-01 23:57:55 +02:00