1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-05 19:31:04 +00:00
Commit graph

286 commits

Author SHA1 Message Date
Desour
2a75ffa38a actually load the code, and make it not crash 2025-09-22 19:08:44 +02:00
Desour
e4a3b631cf mod_vfs stuff from TurkeyMcMac's PR
Co-authored-by: Jude Melton-Houghton <jwmhjwmh@gmail.com>
2025-09-22 19:08:44 +02:00
Desour
d8435dcf8d some error handling stuff 2025-09-22 19:08:44 +02:00
Desour
31513cac6e tmp3 2025-09-22 19:08:44 +02:00
Desour
3725fb1251 tmp2 2025-09-22 19:08:44 +02:00
Desour
0fb8e1b398 tmp 2025-09-22 19:08:44 +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
Lucas OH
93dd22b901
Clean up unused Forward Declarations (#16324) 2025-08-02 10:07:45 +02:00
Lucas OH
ce2380b58e
Include header files in CMake sources (#16297) 2025-07-12 13:23:35 +02:00
sfence
4f42b4308c
Add persistent unique identifiers for objects (#14135) 2025-07-09 10:40:26 +02:00
sfan5
452160cd00 Clean up read_tiledef and related parts a bit 2025-05-24 22:49:04 +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
sfan5
bdaabad53c
Warn if async engine seems stuck (#16010) 2025-04-14 17:18:33 +02:00
sfan5
47c000a293 Add unittest that lints builtin JSON files 2025-03-04 19:53:01 +01:00
sfan5
27bbe3a873 CAO 'node' visual (#15683) 2025-02-22 16:19:04 +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
cx384
e9826f7819
Move EnumString to separate file and add enum_to_string (#15714) 2025-01-26 19:17:14 +01:00
grorp
eeb6cab4c4
In-game settings menu using separate Lua environment (#15614) 2025-01-19 13:07:04 -05:00
sfan5
a4d1b5b155
Fix script security path normalization in presence of links (#15481) 2024-12-03 16:51:34 +01:00
sfan5
ea4ae55e24 Implement script sandboxing for main menu 2024-11-13 14:22:41 +01:00
sfan5
1fd4e0b82d Refactor ScriptApiSecurity for cleaner separation of concerns 2024-11-13 14:22:41 +01:00
sfan5
294a30e445 Fix ScriptApiSecurity::checkPath mangling non-existent paths
bug introduced in 1c1c97cbd1
2024-11-03 19:27:08 +01:00
sfence
d849d51c2d
Replace licensing text in headers (LGPLv2.1) (#15321) 2024-10-28 15:57:39 +01:00
Nathanaëlle Courant
806fba6448
Fix missing rename 2024-10-28 11:02:59 +01:00
sfan5
37095f3e49 Change the preprocessor macro that differs server/client builds 2024-10-16 19:39:59 +02:00
sfan5
c8dc9c2b8d Increase safety checks around ObjectRefs 2024-10-12 22:37:17 +02:00
sfan5
f1a436619f Add generic IPC mechanism between Lua envs 2024-10-11 12:00:59 +02:00
sfence
d08d34d803
ABM without_neighbors (#14116) 2024-09-26 17:32:55 +02:00
grorp
526a2f7b8c
Dehardcode the death formspec (#15155)
Co-authored-by: Paul Ouellette <oue.paul18@gmail.com>
2024-09-24 22:37:44 +02:00
sfan5
811adf5d42 Bulk LBMs (#14954) 2024-09-20 15:05:26 +02:00
sfan5
7ae51382c8 Refactor ABM/LBM related code 2024-09-20 15:05:26 +02:00
DS
4aec4fbe6f
Add support for Tracy profiler (#15113) 2024-09-15 13:47:45 +02:00
Lars Mueller
cc8e7a569e Switch player names to std::string 2024-08-16 22:13:16 +02:00
sfan5
02f40e5b0d
Fix blockseed for on_generated in mapgen env 2024-07-22 16:31:46 +02:00
sfan5
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
sfence
72cb4e9bea
Allow nil puncher in object:punch (#14319) 2024-04-28 17:55:04 +02:00
sfan5
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
sfan5
58eccc7a2a Clean up some getServer() unsafety 2024-04-23 19:03:35 +02:00
rubenwardy
b487341c32
Deprecate writing to mod directories (#14486) 2024-03-27 18:32:05 +00:00
rubenwardy
6c4a110679
Add world-independent storage directory for mods (#12315)
Fixes #4821
2024-03-24 17:18:58 +00:00
SmallJoker
61a5733692 Unittest: Add inventory callback tests 2024-03-16 20:14:05 +01:00
David Heidelberg
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
sfan5
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
sfan5
3cac17d23e
Lua on each mapgen thread (#13092) 2024-02-13 22:47:30 +01:00
sfan5
1ba26d67bd Remove excessive includes from porting.h 2024-01-14 13:17:53 +01:00
sfan5
961652c2e9 Address some clang-tidy warnings 2023-12-25 10:07:28 +01:00
sfan5
c3114132d3
Improve readability and infos in verbose log (#13828) 2023-09-22 18:41:10 +02:00
rubenwardy
c6a0ead72d
Add warning for initial properties directly inside definition (#9650) 2023-08-13 00:19:03 +01:00