sfan5
ef09e8a4d6
Fix code style to make clang-format happy
2020-03-05 20:55:29 +01:00
Jordach
946c03c69b
set_sky improvements, set_sun, set_moon and set_stars
2020-03-05 20:12:19 +01:00
Wuzzy
580e7e8eb9
Fix pathfinder bugs: returning nil frequently, broken A*, jump through solid nodes ( #9339 )
...
* Fix pathfinder fail when startpos is over air
* Note down pathfinder restrictions
* Implement real A* search
* Pathfinder: Implement buildPath non-recursively
* Update find_path documentation
* Pathfinder: Check if jump path is unobstructed
* Pathfinder: Fix drop check first checking upwards
* Pathfinder: Return nil if source or dest are solid
* Pathfinder: Use priority queue for open list
2020-03-05 12:09:44 +01:00
sfan5
6d8e2d2483
Fix core.get_player_by_name() returning unusable ObjectRef
...
Followup to the previous commit.
2020-03-03 21:21:41 +01:00
sfan5
1761d7d0f8
Fix core.get_connected_players() returning unusable ObjectRefs
...
This bug is only exposed by 91eef646a59575bd9ae792e257bb6ad12fafc0b1
independent of the move of get_connected_players from Lua to C++.
Previously, there would be a small time window where the SAO had
its peer ID set to PEER_ID_INEXISTENT but the RemotePlayer was
still linked to the SAO, resulting in an ObjectRef that crashed
on certain function calls (#9387 ).
2020-03-03 21:21:41 +01:00
v-rob
7dffd08c1a
Add multiple element selection to style
and style_type
( #9380 )
2020-03-01 14:39:57 +00:00
DS
0c08f948d7
GUIInventoryList: fix dropping items when clicking outside of formspec window ( #9422 )
2020-02-26 12:18:05 +01:00
Warr1024
244121b964
Allow texture modifiers in hotbar textures. ( #9271 )
2020-02-26 10:26:24 +01:00
sfan5
e2fc93022b
Fix potential problem with core.get_connected_players()
2020-02-25 16:08:47 +01:00
sfan5
0b8d3f99a5
Move core.get_connected_players() implementation to C++
...
Keeping the ObjectRefs around in a table isn't ideal and this allows
removing the somewhat nonsensical is_player_connected() added in 86ef7147.
2020-02-23 22:24:12 +01:00
sfan5
c657fb343f
Refactor Script API's log_deprecated
2020-02-23 22:24:12 +01:00
sfan5
4da057cc49
Script API: Document ObjectRef handling in a comment
2020-02-23 22:24:12 +01:00
SmallJoker
e8a8185d24
Settings: Fix game minetest.conf flags overriding defaults ( #9404 )
...
The game minetest.conf flags directly overwrote the global minetest.conf default values, resulting in unwanted erased mapgen flags.
* Fix set_mapgen_setting
2020-02-17 19:26:32 +01:00
Danila Shutov
6958071f49
Basic model shading ( #9374 )
2020-02-16 20:37:28 +01:00
Hugues Ross
7ce21788f8
Add animated_image[] formspec element ( #9258 )
2020-02-15 15:33:18 +00:00
SmallJoker
ee7d357602
Key settings: Clear with escape ( #8282 )
...
Key ESCAPE -> Cancel change
Key DELETE -> Remove entry
2020-02-14 20:36:58 +01:00
Wuzzy
ac5f53e364
Fix param2 set to 240 if liquid source was renewed
2020-02-13 20:38:13 +01:00
TheTermos
df74d369a3
Collision detection tweak #2 ( #9365 )
2020-02-13 20:13:07 +01:00
Paramat
c2f48eab4d
Display an error when a noise parameter has too many octaves ( #9394 )
...
Display an error and throw exception when one or more octaves of
a noise has spread < 1, causing random looking broken noise.
2020-02-12 23:15:07 +00:00
sfan5
91eef646a5
Script API: Check that SAOs are still usable before attempting to use them
2020-02-11 19:21:12 +01:00
SmallJoker
4eb3baa51e
StaticText: Reset background on EnrichedString change ( #9340 )
...
This also fixes the F6 profiler background color -> now controlled by EnrichedString
2020-02-01 20:41:32 +01:00
sfan5
ace3c76112
Improve core.sound_play with ephemeral sounds and player exclusion
2020-02-01 20:31:41 +01:00
Ben Deutsch
2b3490db1f
Add limit parameter to decompressZlib
...
This can prevent untrusted data, such as sent over the network,
from consuming all memory with a specially crafted payload.
2020-02-01 14:05:26 +01:00
DS
1116918dbb
Formspec: Create a new class for inventorylists ( #9287 )
2020-02-01 13:55:13 +01:00
TheTermos
908e762479
Collision temporary fix for issue #6886
2020-01-27 19:30:11 +01:00
Hugues Ross
60544ac56f
Add 9-slice background support to button formspec elements ( #9290 )
2020-01-26 19:35:26 +00:00
SmallJoker
cde2a7f6f2
Settings: Add get_flags API for mapgen flags (mg_flags, mgv6_spflags, ...) ( #9284 )
...
Unified flags handling in C++ and Lua Settings API
-> Reading only, for now. Writing can be implemented later, if needed.
API function to read the currently active flags
-> was impossible from Lua
Co-authored-by: Wuzzy <wuzzy2@mail.ru>
2020-01-25 16:56:54 +01:00
SmallJoker
9cb3219f34
EnrichedString: Fix substr segfault caused by non-formatted text
2020-01-24 21:06:30 +01:00
rubenwardy
987b2c5f37
Update translation sources
2020-01-24 18:34:11 +00:00
sfan5
273cdb38a9
CMakeLists: Remove some redundant declarations and flags
2020-01-23 21:29:40 +01:00
sfan5
c8583f9a5e
Organize and sort out some library dependency issues
2020-01-23 21:29:40 +01:00
SmallJoker
a1da9caecf
EnrichedString: Fix uninitialized variable m_default_length
2020-01-23 20:14:46 +01:00
SmallJoker
1892ff3c0d
StaticText/EnrichedString: Styling support ( #9187 )
...
* StaticText/EnrichedString: Styling support
* Fix tooltip fg/bgcolor
* Fix default color for substr(), add unittests
2020-01-22 19:09:11 +01:00
Zaoqi
fab3f5f7c8
Remove zh_* from GETTEXT_BLACKLISTED_LOCALES ( #9229 )
2020-01-22 19:08:07 +01:00
Wuzzy
e05b7dbb3c
Remove unused weight property from objects ( #9320 )
2020-01-22 10:19:27 +01:00
Hugues Ross
3dfb6ecbb2
Formspec: Don't start a button click when the pointer isn't on top ( #9332 )
2020-01-22 10:18:09 +01:00
Wuzzy
0877587cce
Resized torchlike sprite now attaches to surface ( #9303 )
2020-01-20 19:17:54 +00:00
ANAND
e8fd1ce623
Replace stray tab with whitespace in guiFormSpecMenu.cpp ( #9317 )
2020-01-18 16:50:57 +00:00
Hugues Ross
680aaa1bd5
Make clipping of formspec elements more consistent ( #9262 )
2020-01-16 18:41:07 +00:00
lhofhansl
cea4fd2b27
Increase star count to 1000 and decrease radius slightly ( #9307 )
...
* Increase star count to 1000 and decrease radius slightly.
* Adjust star width.
2020-01-16 17:12:34 +01:00
Maksim
c396800629
Android: fix cyrillic characters, update iconv lib ( #9117 )
2020-01-13 07:10:15 +01:00
Montandalar
8d75c118d9
Map download: Escape ':' to '_' ( #9235 )
...
This is necessary under Windows systems, and direct IPv6 connections.
Windows universally disallows ':' from occuring in filenames.
Other disallowed characters on Windows:
\ / * ? " < > |
are not relevant to hostnames, IPv4 or IPv6 addresses.
Anyone who has got an existing server map saved on Linux with ':' in
the world save will want to keep that save.
2020-01-11 20:47:34 +01:00
DS
4c8af5492b
Formspec: change the appeareance of the cursor on fields and co. ( #8665 )
2020-01-11 20:17:11 +01:00
DS
7c0e0c34ec
Formspec: Fix clicking on tooltip-obstructed elements ( #9266 )
2020-01-04 15:45:22 +01:00
Paramat
c162340973
Remove Mapgen V7 floatlands in preparation for new implementation ( #9238 )
...
Preserve the floatland flag of existing worlds, to be used again
when the new implementation is added.
2020-01-04 01:23:57 +00:00
Montandalar
44458896d9
Use appropriate LC_ locale macro for Windows ( #9230 )
...
* Wrap LC_ macro in ifdef
Windows does not have LC_MESSAGES in locale.h, so use LC_ALL on that platform
2019-12-24 19:13:22 +01:00
Lejo
37f771a95b
Fix the player information version_string return value ( #8616 )
...
* Give more player information
* Correct lua_api.txt
* Correct keys in lua_api.txt
* Improve Code
* Only Bugfix+ser_vers
* Correct doc
* Fix double
2019-12-20 19:16:29 +01:00
Hugues Ross
b50dc43f67
Don't override the FGIMG style property if the image parameter is null
2019-12-16 19:26:57 +01:00
Hugues Ross
e42faae8d9
Remove the dependency on FGIMG/BGIMG from the hovered/pressed variants
...
- Make guiButtonImage support null images properly
2019-12-16 19:26:57 +01:00
Hugues Ross
bd4b8d40b3
StyleSpec: 0-initialize the property_set array
2019-12-16 19:26:57 +01:00
SmallJoker
c3d0aab0bc
GUIFormSpecMenu: Fix legacy sorting using std::stable_sort
2019-12-14 21:28:07 +01:00
rubenwardy
8e63d22d64
Fix spaces breaking formspec_version[] tag
2019-12-09 21:05:07 +00:00
Hugues Ross
9284313d17
Refactor to centralize GUIButton styling/rendering code ( #9090 )
2019-12-09 20:06:51 +00:00
SmallJoker
a462181e5f
guiConfirmRegistration: Fix hidden error message
2019-12-09 20:01:16 +01:00
DS
8f73ec6c6c
Formspec: make bgcolor element less confusing and allow setting fullscreen color ( #8996 )
2019-12-08 18:59:30 +01:00
Paul Ouellette
27ce6d0ecc
Clean up craft replacements docs
2019-12-07 23:46:24 +01:00
SmallJoker
103d9c5c53
Renaming the function wasn't enough
2019-12-07 15:55:49 +01:00
SmallJoker
aa8df112ff
Attachments: Fix interpolation from (0,0,0) after detach
...
GenericCAO::getPosition() did not take the camera offset into account
LocalPlayer attachment cleanup: Use sane getParent() function
Make that getPosition() (GenericCAO and LocalPlayer) always return the absolute position
2019-12-07 15:12:26 +01:00
rubenwardy
51f230895c
Fix failing build due to code style error
2019-12-06 23:00:54 +00:00
v-rob
4f45bfd08b
Add scrollbaroptions FormSpec element ( #8530 )
2019-12-06 20:51:10 +00:00
Pierre-Yves Rollo
cf7fda0083
Add z-index management to HUD
2019-12-06 20:31:26 +00:00
SmallJoker
f6de86ce4b
Fix LocalPlayer-bound sound playback broken by 81c2370
2019-12-05 20:52:30 +01:00
sfan5
0b2f0914cc
Improve client-side packet receiving
2019-11-25 20:00:24 +01:00
paramat
154080c883
Caves: Fix shadowing of 'large_cave_depth' to avoid confusion
2019-11-23 01:41:27 +00:00
paramat
ec5f591014
Dungeons: Move duplicated y limit checks to generation function
2019-11-23 01:41:27 +00:00
SmallJoker
b50a166bb0
Formspec: Fix priorities for version < 3 ( #9121 )
...
* Formspec: Fix priorities for version < 3
1) Introduce 'priority' to 'FieldSpec'
2) Sort elements based on 'priority'
3) Assign 'name' to the Item Image Button's image to show tooltips again
2019-11-20 19:39:10 +01:00
Lars Hofhansl
60bff1e6cb
Waves generated with Perlin-type noise #8994
2019-11-19 19:42:52 -08:00
Paramat
b3c245bb46
Move duplicated mapgen parameters to class MapgenBasic ( #9134 )
...
'large_cave_depth', 'dungeon_ymin' and 'dungeon_ymax' are duplicated across many mapgens so should have been in class MapgenBasic from the start.
2019-11-19 19:59:17 +00:00
sfan5
c10952b574
Rework packet receiving in ServerThread
...
Notably it tries to receive all queued packets
between server steps, not just one.
2019-11-19 20:27:20 +01:00
Paramat
97764600e2
Randomwalk cave liquids: Remove deprecated 'lava depth' parameter ( #9105 )
...
Low-disruption first step towards removing the hardcoded cave liquid
code. Since MT 5.0.0 cave liquids can be defined and located by
biome definitions instead.
In games that do not yet use biome definitions to define and locate
cave liquids (MTGame does), lava will now appear below
y = water_level - 256 instead of below 'lava depth' (usually y = -256).
Therefore no change in most mapgens if using the default 'lava depth'.
2019-11-18 23:40:01 +00:00
sfan5
49365b25d9
Optimize semaphore wait with zero timeout on POSIX
2019-11-14 20:20:14 +01:00
sfan5
02111e4961
Fix clang-tidy and lint travis checks
2019-11-11 14:06:48 +01:00
sfan5
c44318a253
[CSM] Fix and improve minetest.get_language()
...
Previously this method would accidentally reset the locale
and break everything.
2019-11-11 14:06:48 +01:00
sfan5
2c4cf508a9
[CSM] Implement minetest.get_csm_restrictions()
...
fixes #8068
2019-11-11 14:06:48 +01:00
sfan5
3f271564e0
Run on_item_use CSM callback even if item is not marked usable
...
Mods may want to to handle item interaction even if the item
is not marked usable (= server-side callback exists).
2019-11-11 14:06:48 +01:00
sfan5
682b9de824
Fix camera:get_offset() in CSM
2019-11-11 14:06:48 +01:00
sfan5
b57dc70769
[CSM] Expose more env functions
2019-11-11 14:06:48 +01:00
sfan5
b0260b5ec8
Refactor CSM restriction code a bit
...
This also fixes find_node_near restrictions being ineffective.
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
Paramat
3b0df9760b
Randomwalk caves: Extend beyond mapchunk vertically also ( #9094 )
...
Previously, randomwalk caves only extended beyond the mapchunk
borders horizontally, preventing vertical overlap and
interconnection.
2019-11-10 01:41:20 +00:00
sfan5
d961ece144
Be lenient with extra slashes for CSM paths
2019-11-09 16:08:38 +01:00
sfan5
485b669840
[CSM] Remove non-functional minetest.get_day_count()
2019-11-09 16:08:38 +01:00
sfan5
7e649f985c
Corrections to client_lua_api.txt
2019-11-09 16:08:38 +01:00
sfan5
b1f2a69382
Introduce get_modpath() for CSM
2019-11-09 16:08:38 +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
Paramat
29a4a8e5af
Tunnels: Completely disable generation when 'cave width' >= 10.0 ( #9093 )
...
Previously, the only way to disable the 3D noise tunnels was to set
'cave width' > 1.0, however doing so did not disable the very intensive
noise calculations or the generation loop.
All the other types of cave generation (randomwalk caves, caverns)
can already be independently and completely disabled.
This feature is now needed more because the small randomwalk caves are
now available for use as an alternative to the 3D noise tunnels.
2019-11-09 02:09:52 +00:00
Paul Ouellette
d11bfa3ef5
Make core.get_favorites("local") ignore duplicates ( #7926 )
2019-11-08 22:18:20 +01:00
Paramat
2a74727857
Randomwalk caves: Add parameters for number, proportion flooded. Allow small caves ( #8928 )
...
Add mapgen parameters to set the range of the random number of
randomwalk caves per mapchunk, and to set the proportion that are
flooded with liquids.
Default values are, for now, unchanged from the previous hardcoded
values.
Add parameters to allow small randomwalk caves
Disabled by default for now as they have never been present in the
non-mgv6 mapgens.
2019-11-08 03:09:43 +00:00
DS
5506e97ed8
Formspec: draw order and clipping for all elements ( #8740 )
2019-11-07 20:11:01 +01:00
SmallJoker
2907c0f3a2
Android: Fix broken double-tap after 49 days uptime
2019-11-03 12:59:12 +01:00
SmallJoker
388ea737f5
Clean up font caching, fix bitmap fonts
2019-11-03 11:45:33 +01:00
Pierre-Yves Rollo
72416a6a1f
Formspec: add hypertext element
2019-11-03 11:45:33 +01:00
random-geek
f2e62298a5
Change some usages of "deprecated" to "obsolete" ( #9062 )
...
"Deprecated" means that something is still in use, but is unsupported and needs to be removed.
"Obsolete" means it is already out of use.
2019-10-29 19:23:12 +01:00
random-geek
53ebd803c6
Change some rough/inappropriate language in comments ( #9061 )
2019-10-24 01:17:00 +01:00
Paramat
1f142ec06f
Improve light curve parameter limits and documentation ( #9054 )
...
Revert gamma upper limit to 3.0 because that was raised based on
a misunderstanding and had no benefit. A sane upper limit is
needed as players on a competitive server tend to use the maximum.
Set gamma lower limit to 0.33 for consistency with 3.0.
Set sane limits on alpha, beta, boost and enforce these in code
to limit values entered in minetest.conf and to avoid easy cheating
by editing settingtypes.txt.
Improve documentation and 'readable' setting names.
Clarify that gamma does not significantly affect natural night light.
light.cpp: Various codestyle and comment improvements.
2019-10-24 01:08:49 +01:00
random-geek
2f3c96b38d
Remove legacy flat-file map code
2019-10-23 20:53:24 +02:00
Dmitry Marakasov
2ecf57c640
Fix build issue due to conflicting s64 type definitions ( #9064 )
...
See comment in irrlichttypes.h and https://sourceforge.net/p/irrlicht/bugs/433/
2019-10-23 20:28:55 +02:00
Paul Ouellette
904b05b0d3
Allow calling ItemStack with no arguments ( #8783 )
2019-10-23 19:48:19 +02:00
SmallJoker
a978278bfb
Formspecs: Reset version number on rebuild
2019-10-20 12:44:52 +02:00