452160cd00
Clean up read_tiledef and related parts a bit
2025-05-24 22:49:04 +02:00
4a8f84b259
Mainmenu: Move core.on_before_close to s_mainmenu like other callbacks, and doc
2025-04-23 09:31:06 +02:00
1c5776d13a
FATAL_ERROR
for orphan object refs in objectrefGetOrCreate
2025-04-20 20:49:10 +02:00
bdaabad53c
Warn if async engine seems stuck ( #16010 )
2025-04-14 17:18:33 +02:00
47c000a293
Add unittest that lints builtin JSON files
2025-03-04 19:53:01 +01:00
27bbe3a873
CAO 'node' visual ( #15683 )
2025-02-22 16:19:04 +01:00
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
e9826f7819
Move EnumString to separate file and add enum_to_string ( #15714 )
2025-01-26 19:17:14 +01:00
eeb6cab4c4
In-game settings menu using separate Lua environment ( #15614 )
2025-01-19 13:07:04 -05:00
a4d1b5b155
Fix script security path normalization in presence of links ( #15481 )
2024-12-03 16:51:34 +01:00
ea4ae55e24
Implement script sandboxing for main menu
2024-11-13 14:22:41 +01:00
1fd4e0b82d
Refactor ScriptApiSecurity for cleaner separation of concerns
2024-11-13 14:22:41 +01:00
294a30e445
Fix ScriptApiSecurity::checkPath mangling non-existent paths
...
bug introduced in 1c1c97cbd1
2024-11-03 19:27:08 +01:00
d849d51c2d
Replace licensing text in headers (LGPLv2.1) ( #15321 )
2024-10-28 15:57:39 +01:00
806fba6448
Fix missing rename
2024-10-28 11:02:59 +01:00
37095f3e49
Change the preprocessor macro that differs server/client builds
2024-10-16 19:39:59 +02:00
c8dc9c2b8d
Increase safety checks around ObjectRefs
2024-10-12 22:37:17 +02:00
f1a436619f
Add generic IPC mechanism between Lua envs
2024-10-11 12:00:59 +02:00
d08d34d803
ABM without_neighbors ( #14116 )
2024-09-26 17:32:55 +02:00
526a2f7b8c
Dehardcode the death formspec ( #15155 )
...
Co-authored-by: Paul Ouellette <oue.paul18@gmail.com >
2024-09-24 22:37:44 +02:00
811adf5d42
Bulk LBMs ( #14954 )
2024-09-20 15:05:26 +02:00
7ae51382c8
Refactor ABM/LBM related code
2024-09-20 15:05:26 +02:00
4aec4fbe6f
Add support for Tracy profiler ( #15113 )
2024-09-15 13:47:45 +02:00
cc8e7a569e
Switch player names to std::string
2024-08-16 22:13:16 +02:00
02f40e5b0d
Fix blockseed for on_generated in mapgen env
2024-07-22 16:31:46 +02:00
c24a04d246
Optimize pushing collision data for entity on_step
...
Since this is fixed overhead for every entity, this is important to optimize.
This optimizes one very common case.
before:
push_collision_move_result [us] _____________ 64512x 3.562
after:
push_collision_move_result [us] _____________ 72636x 0.831
2024-05-03 16:28:29 +02:00
72cb4e9bea
Allow nil
puncher in object:punch
( #14319 )
2024-04-28 17:55:04 +02:00
df4c9e2903
Revert "Clean up some getServer() unsafety"
...
Turned out to not be a good idea.
This reverts commit 58eccc7a2a
.
2024-04-28 00:24:22 +02:00
58eccc7a2a
Clean up some getServer() unsafety
2024-04-23 19:03:35 +02:00
b487341c32
Deprecate writing to mod directories ( #14486 )
2024-03-27 18:32:05 +00:00
6c4a110679
Add world-independent storage directory for mods ( #12315 )
...
Fixes #4821
2024-03-24 17:18:58 +00:00
61a5733692
Unittest: Add inventory callback tests
2024-03-16 20:14:05 +01:00
34286d77c7
Allow toggling touchscreen mode at runtime ( #14075 )
...
Signed-off-by: David Heidelberg <david@ixit.cz >
Co-authored-by: Gregor Parzefall <gregor.parzefall@posteo.de >
2024-02-22 15:44:49 +00:00
ce97210eb1
Refactor how script api reads current mod name
...
This is to prevent future mistakes and make it clearer whether
the mod name can be trusted depending on how it is retrieved.
2024-02-15 11:06:21 +01:00
3cac17d23e
Lua on each mapgen thread ( #13092 )
2024-02-13 22:47:30 +01:00
1ba26d67bd
Remove excessive includes from porting.h
2024-01-14 13:17:53 +01:00
961652c2e9
Address some clang-tidy warnings
2023-12-25 10:07:28 +01:00
c3114132d3
Improve readability and infos in verbose log ( #13828 )
2023-09-22 18:41:10 +02:00
c6a0ead72d
Add warning for initial properties directly inside definition ( #9650 )
2023-08-13 00:19:03 +01:00
3b74cc4a41
Replace PP with direct printing
2023-06-26 22:51:32 +02:00
659828b142
Rename ModApiEnvMod and ModApiItemMod
...
The 'mod' could have meant module in the past but no other classes do this.
2023-06-23 09:05:26 +02:00
524d446757
Minor script api fixes/cleanups
2023-06-23 09:05:26 +02:00
e700182f44
Replace Optional with std::optional
2023-06-15 10:38:44 +02:00
a857c46e6e
Make the settings GUI more usable on Android ( #13543 )
2023-06-05 12:01:54 +02:00
00c647e4cc
Convert spaces to tabs ( #13506 )
...
* Convert spaces to tabs
* Desour reviews 1-3 fix
* Desour fixes
* Undo alignment changes
2023-05-26 15:13:57 +02:00
8b73743baa
Reduce number of recursively included headers
...
This should improve compilation speed.
Things changed:
* Prefer forward-declarations in headers.
* Move header-includes out of headers if possible.
* Move some functions definitions out of headers.
* Put some member variables into unique_ptrs (see Client).
2023-04-27 18:50:33 +02:00
73391013f7
Add node pos to node damage HP change reason ( #13196 )
2023-04-10 23:04:52 +01:00
2180dc14ef
Fix safeLoadFile() skipping 2 chars too much from the shebang ( #13310 )
2023-03-27 20:01:05 +02:00
5c248c2d7d
Add callback on_mapblocks_changed
2022-12-24 08:24:59 -05:00
0fc97a1483
Use a Lua error handler that calls tostring ( #11913 )
2022-12-15 07:37:49 -05:00