sfan5
452160cd00
Clean up read_tiledef and related parts a bit
2025-05-24 22:49:04 +02:00
Lars Mueller
e1143783e5
Fix some (MSVC) compiler warnings
2025-04-20 20:49:10 +02:00
cx384
18ac8b20fa
Replace object visual by enum ( #15681 )
2025-03-06 21:02:11 +01:00
sfan5
7892541383
Various random code cleanups
2025-03-04 19:53:01 +01:00
sfan5
27bbe3a873
CAO 'node' visual ( #15683 )
2025-02-22 16:19:04 +01:00
cx384
e9826f7819
Move EnumString to separate file and add enum_to_string ( #15714 )
2025-01-26 19:17:14 +01:00
SFENCE
af3f696423
Code style fixes.
2025-01-21 16:29:12 +01:00
sfan5
a2058f7f3a
Avoid some inefficiencies when handling ItemStack(Metadata)
2024-12-31 14:47:46 +01:00
cx384
88c845166c
Fix L-System trees fruit node regression ( #15513 )
2024-12-06 18:06:27 +01:00
SmallJoker
c884e7181f
JsonCPP: restore '1.0.0+' compatibility ( #15368 )
...
Previously, compiling on Ubuntu 20.04 would fail with the system-provided JsonCPP
version (1.7.4). Which would satisfy the documented requirement of "1.0.0+".
2024-11-03 15:10:39 +01:00
sfence
d849d51c2d
Replace licensing text in headers (LGPLv2.1) ( #15321 )
2024-10-28 15:57:39 +01:00
sfan5
37095f3e49
Change the preprocessor macro that differs server/client builds
2024-10-16 19:39:59 +02:00
Lars Mueller
e2ea359925
JSON: Support consistent larger max. depth of 1024
2024-10-15 12:19:49 +02:00
sfan5
cbc741f464
Various improvements to push_json_value
2024-10-13 10:57:25 +02:00
sfan5
c8dc9c2b8d
Increase safety checks around ObjectRefs
2024-10-12 22:37:17 +02:00
cx384
52376fd87a
Add hotbar Lua HUD element and replace hardcoded hotbar
2024-08-31 16:04:14 +02:00
sfence
f2c66b9ceb
Add possibility to easier override HP and breath engine logic by Lua ( #14179 )
...
Co-authored-by: Lars Mueller <appgurulars@gmx.de >
2024-08-21 20:24:43 +02:00
1F616EMO~nya
321b217feb
Log node/ore name when detecting deprecated fields ( #14794 )
2024-07-01 17:26:15 +02:00
grorp
af8cb63292
Add object's own position for each collision to moveresult ( #14608 )
2024-05-05 13:28:59 +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
Gregor Parzefall
e79587c934
Add shorthand form for touch_interaction
2024-03-30 11:40:50 +01:00
cx384
60810c2d37
Add L-system trees as decorations ( #14355 )
2024-03-12 20:10:28 +01:00
sfan5
c524c52baa
Fix some common SAO methods to not generate useless update packets
2024-03-06 18:03:57 +01:00
sfan5
6ca214fefc
Introduce std::string_view into wider use ( #14368 )
2024-02-17 15:35:33 +01:00
grorp
f2b99332d9
Add Lua API function to resolve node/collision/selection boxes ( #13964 )
2024-02-06 20:45:16 +01:00
techno-sam
176e674a51
Add wear bar color API ( #13328 )
...
---------
Co-authored-by: Muhammad Rifqi Priyo Susanto <muhammadrifqipriyosusanto@gmail.com >
Co-authored-by: Lars Müller <34514239+appgurueu@users.noreply.github.com >
Co-authored-by: grorp <gregor.parzefall@posteo.de >
2024-02-02 21:21:00 +01:00
cx384
5958714309
Tool specific pointing and blocking pointable type ( #13992 )
2024-01-22 18:27:08 +01:00
Lars Mueller
fb461d21a5
Fix waypoint precision wraparound, add bounds check
2024-01-21 21:00:09 +01:00
grorp
404a063fdf
Touchscreen: Allow mods to swap the meaning of short and long taps (punch with single tap) ( #14087 )
...
This works through a new field "touch_interaction" in item definitions.
The two most important use cases are:
- Punching players/entities with short tap instead of long tap (enabled by default)
- Making items usable that require holding the place button (e.g. bows and shields in MC-like games)
2024-01-21 17:44:08 +01:00
cx384
2ea8d9ca11
Fix out of range enum casts in deSerialize functions ( #14090 )
2024-01-17 20:05:46 +01:00
Wuzzy
08ee6d8d4b
Add rotation support for wallmounted nodes in 'ceiling' or 'floor' mode ( #11073 )
2024-01-17 17:47:06 +01:00
cx384
467d3a8c62
Rename hud_elem_type to type ( #14065 )
2023-12-29 21:51:02 +01:00
SmallJoker
4ef93fe25f
Allow place_param2 = 0 node placement predictions ( #13787 )
...
The placement prediction value 0 was accidentally ignored
and made the clients fall back to automatic rotation based
on the node paramtype2 value.
This now changes the internal representation to properly
indicate the disabled state (e.g. 'nil' in Lua).
2023-09-13 13:57:57 +02:00
Gregor Parzefall
aea9242a96
Allow nodes to have their post_effect_color affected by lighting ( #13637 )
...
Co-authored-by: DS <ds.desour@proton.me >
2023-08-24 20:16:36 +02:00
rubenwardy
c6a0ead72d
Add warning for initial properties directly inside definition ( #9650 )
2023-08-13 00:19:03 +01:00
DS
edcbfa31c9
Sound refactor and improvements ( #12764 )
2023-06-16 20:15:21 +02:00
Desour
5e6d144567
Enable -Wimplicit-fallthrough and use [[fallthrough]] attribute
2023-06-15 10:38:44 +02:00
Desour
e700182f44
Replace Optional with std::optional
2023-06-15 10:38:44 +02:00
Jude Melton-Houghton
1f3b5e553b
Fix plantlike_rooted world-aligned node base textures ( #12994 )
...
Co-authored-by: Wuzzy <Wuzzy@disroot.org >
2022-12-12 08:45:09 -05:00
Lars Müller
077627181e
Allow rotating entity selectionboxes ( #12379 )
2022-10-30 16:53:14 +01:00
Jude Melton-Houghton
b38ffdec27
Implement vector and node conversion in Lua ( #12609 )
...
Co-authored-by: sfan5 <sfan5@live.de >
2022-10-18 18:01:44 -04:00
Jude Melton-Houghton
7632af3c73
Consolidate API object code ( #12728 )
...
Co-authored-by: sfan5 <sfan5@live.de >
2022-10-04 08:31:36 -04:00
sfan5
525fc3833c
Implement tool use sounds
2022-09-30 14:02:14 +02:00
Wuzzy
1d04903c19
Add paramtype2s for 4 horizontal rotations and 64 colors ( #11431 )
...
4dir is like facedir, but only for 4 horizontal directions: NESW. It is identical in behavior to facedir otherwise. The reason why game makers would want to use this over facedir is 1) simplicity and 2) you get 6 free bits.
It can be used for things like chests and furnaces and you don't need or want them to "flip them on the side" (like you could with facedir).
color4dir is like colorfacedir, but you get 64 colors instead of only 8.
2022-09-16 13:18:55 +02:00
Herman Semenov
038da00e79
Code optimizations / refactor ( #12704 )
...
Co-authored-by: SmallJoker <SmallJoker@users.noreply.github.com >
Co-authored-by: sfan5 <sfan5@live.de >
2022-09-06 11:21:09 +01:00
Lars Müller
0e439b2fa3
Check hp_max > 0 for entities ( #12667 )
2022-08-13 15:35:41 +01:00
rubenwardy
9f41b4f72d
Add check_mod_configuration to main menu
2022-07-14 22:12:54 +01:00
Lexi Hale
20bd6bdb68
Animated particlespawners and more ( #11545 )
...
Co-authored-by: Lars Mueller <appgurulars@gmx.de >
Co-authored-by: sfan5 <sfan5@live.de >
Co-authored-by: Dmitry Kostenko <codeforsmile@gmail.com >
2022-07-13 11:57:12 +02:00
SmallJoker
e51f474613
Sounds: Various little improvements ( #12486 )
...
Use SimpleSoundSpec where reasonable (OpenAL)
Ensure the sound IDs do not underflow or get overwritten -> loop in u16
Proper use of an enum.
2022-07-09 22:32:24 +02:00
Zughy
18fbc0394b
Remove tile_images and special_materials obsolete code ( #12455 )
...
Co-authored-by: Zughy <4279489-marco_a@users.noreply.gitlab.com >
2022-06-28 00:55:01 +01:00