6907 Commits

Author SHA1 Message Date
d99faef084 antihacks: Patch fast/teleport vulnerability when attached to an entity
* backported https://github.com/minetest/minetest/pull/10340/commits
* Fixed God Mode
* use core::radToDeg and a single v3f to multiply attachment_pos with
* Use getLength() for diffvec
2023-09-17 20:06:09 -04:00
c632ff4aa2 antihacks: Protect per-player detached inventory actions
* backported https://github.com/minetest/minetest/pull/10341
  Unfortunately also requires invhack mods to implement workarounds,
  but they seem to already be doing this.
2023-09-17 19:36:01 -04:00
f731e9e171 Slap u64 on everything time-y
* get_us_time() will overflow and reset to zero every now and then.
  Had it happen several times in one day,
  https://github.com/minetest/minetest/issues/10105
* backported b5eda416ce
2023-09-17 15:15:22 -04:00
70fd300c5a Fix linking with Postgres libs on older cmake versions
* integrates https://github.com/minetest/minetest/pull/11215
  so it backported a24899bf2d
* closes https://github.com/minetest/minetest/issues/12149
* closes https://github.com/minetest/minetest/issues/11219
* backported 998e4820c9
2023-09-12 21:43:25 -04:00
9d87cd206c Fix no locales being generated when APPLY_LOCALE_BLACKLIST=0
* backported 6caed7073c
  from upstream
2023-09-12 21:26:12 -04:00
2292239f86 fix find_path for newer jsoncpp installations 2023-09-12 20:20:49 -04:00
a91668bbf6 Fix initialization of variables hardcoded, due hp_max/breath_max
* related to https://codeberg.org/minenux/minetest-engine-minetest/issues/33
* this is becouse previously code was refactored
  in commit 76be103a91d6987527af19e87d93007be8ba8a67
2023-07-21 23:36:51 -04:00
63556217b3 Don't regain breath while in ignore node
* backported https://github.com/minetest/minetest/pull/8218
* Fixed the issue of Player regains a little breath when
  rejoining game into ignore
2023-07-21 22:42:38 -04:00
d07cc1e760 Fix profiler crash by builtin since previous commit
* Commit 1efec3cbf3190a3d7e166c68c4fe766180b326fa involved
* Default to '??' (common Minetest notation) for unknown mods.
* related to https://codeberg.org/minenux/minetest-engine-minetest/issues/33
* backporting 291b2446f1
2023-07-21 22:40:05 -04:00
1efec3cbf3 Statbars: Reduce initial update interval
* Centralize HUD updating in update_builtin_statbars.
* Fixes race condition in 'on joinplayer' that causes stat bar bugs.
* Correctly scales stat bars to custom max values set by mods.
* backport eea1fdaf25
* Related to https://codeberg.org/minenux/minetest-engine-minetest/issues/33
2023-07-21 22:34:57 -04:00
a42c93ac8b Make max breath configurable and respect it
* You can only hold your breath for 20 seconds and
  this should be customizable, this is a implementation
  backporting https://github.com/minetest/minetest/pull/6411
* Customizeable maximal breath for players
  backported dc2314bf7a
* Fix for https://codeberg.org/minenux/minetest-engine-minetest/issues/33
  by closing https://github.com/minetest/minetest/issues/2246
2023-07-21 22:14:24 -04:00
8eac50f8d5 Respect object property hp_max field for players
* backport of commits from
  https://github.com/minetest/minetest/pull/6287/commits
* fix of configure the maximal HP per player
* Statbars: Downscale bar to full 20 HP when exceeding
  this value
* Add default max HP for players and breath constants to builtin
* Document the constants
* Rename PLAYER_MAX_HP -> PLAYER_MAX_HP_DEFAULT
* Fixed https://codeberg.org/minenux/minetest-engine-minetest/issues/33
2023-07-21 21:38:21 -04:00
Герхард PICCORO Lenz McKAY
240bad96f7 Merge branch 'stable-4.0-cifixes' into 'stable-4.0'
Fix gitlab ci build step on stable 0.4/4.0

See merge request minenux/minetest-engine-minetest!2
2023-02-01 03:43:04 +00:00
Герхард PICCORO Lenz McKAY
a0f578e8af Fix gitlab ci build step on stable 0.4/4.0 2023-02-01 03:43:04 +00:00
9ab1d5f689 Don't allow banning in singleplayer
* fixes https://github.com/minetest/minetest/issues/11819)
2023-01-07 18:05:27 -04:00
5ddacb743b prepare release as 0.4.17.3 2023-01-06 18:02:24 -04:00
6ad60370a2 fix instant_dig missing when run RUN_ON_PLACE and there's no config loaded
* added to the settings when are missing the config file
* related to commit 47c2970313cf9f41e8261799c2b4aad4340e96dd
* fix powered client player
2023-01-06 17:10:10 -04:00
5fe9268061 CI finetune, remove packaging we use OBS, add feladora 37, 36, remove olders
* ajust the packages need for build dependencies
* ajust the build parameters for cmake CI build
* remove the packaging and deploy stages
* use only for build checks, gitlab ci are not complety free
2023-01-06 15:35:53 -04:00
98232b1aef optimize png files to reduce size on media loading 2023-01-06 15:22:26 -04:00
22d9153016 fix being stuck at "Configuring tzdata" for winbuntu images
* get solution at  https://t.me/s/vegnuli/1030 telegram channel
2023-01-06 14:32:27 -04:00
5835777690 fix repos for older distros, user archived ones on debian based
* by now debian 8 still have repos over CI
* adapt custom repos on winbuntu CI for zesty
2023-01-06 14:21:42 -04:00
d78faf31f1 Escape special characters when searching the server list
* fix issue from https://github.com/minetest/minetest/issues/7857
* Simple fix to stop searching for "[" or other special characters causing a crash.
2023-01-06 14:08:38 -04:00
ec7fc8c94c Work around LuaJIT issues on aarch64 (issue 9614 at upstream)
* Related to [#9614](https://github.com/minetest/minetest/issues/7842)
  backported commit 1344b5dcc3683153187053afb584701c7d7e20f1
- 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
- Fix FreeBSD aarch64 faulies when use luajit
* FreeBSD uses lld, and lld does not support -Ttext-segment,
  suggesting --image-base instead. Not sure if it's equivalent change
  for the purpose at least if fixes build on FreeBSD/aarch64.
  Note that the code checks for FreeBSD, while it should really check
  for lld on any system, however I don't know any CMake facilities which allow this
* minenux/minetest-engine#16
2023-01-06 14:06:13 -04:00
8cf6e9fe56 use pkg-config to find luajit as last instance
* From: Igor Gnatenko <i.gnatenko.brain@gmail.com>
* Date: Tue, 27 Dec 2016 15:23:09 +0100
* backported from 7336cbdfe2
2023-01-06 13:21:44 -04:00
68acdf12b4 fix the Fix get_server_status() segfault due to uninitialized m_env
* Related to [#7857](https://github.com/minetest/minetest/issues/7857)
  due to uninitialized m_env , so rest of the diff was not necesary
* ajust commit 13ad926546def65f01b5941ebb21493278189bea that was
  incorrectly backported, due t_session variable type from mt 5.X
2023-01-06 12:56:50 -04:00
3206cb8f0f fix CI jobs, use right packages in debian builds 2023-01-05 18:01:43 -04:00
0711676786 configure CI gitlab builder and deployer, use debian 8,9,11 and winbuntu equivalents
* configure debian 8, debian 9 and debian 11, use same packages as my OBS ones
* configure winbuntus 14.10, 17.04, 20.04, sue equivalents to debian stables
* configure feladora shit 32 and fine tune feladora shit 24
2023-01-05 17:39:47 -04:00
d9518b1954 fix misctake from previous commit get_server_status() segfaults m_env
* Fix the fix commit 78d1c731e3181ee77af3dbabcec40b10e473702c
  for Fix get_server_status() segfault due to uninitialized m_env
  that refers to https://github.com/minetest/minetest/issues/7857
2023-01-05 16:56:30 -04:00
78d1c731e3 Fix get_server_status() segfault due to uninitialized m_env
* Fixes [#7857](https://github.com/minetest/minetest/issues/7857)
  minetest.get_server_status() causes a Segmentation fault
  tacken from 81d55338fa
* backported commit 13ad926546def65f01b5941ebb21493278189bea
2023-01-05 16:41:15 -04:00
fa1d056316 Fix core.download_file() creating empty files on HTTP error
* backported commit 55a77e8094994cd5bb970b38b6a2bd394346ec36
2023-01-05 16:34:19 -04:00
512e670de9 link with Intl only from cmake find modules, not assumed
* follow commit 80d97d28d and set as must be
2023-01-05 16:33:23 -04:00
eddb536850 remove rtmp due fails in some linuxes due extra package need
* related to minenux/minetest-engine#13
* backported from commit 3eabd6eba350443ae724f54e65a1a4caee7c5f9f
2023-01-05 16:07:25 -04:00
80d97d28d3 CMake: link with Intl when necessary for kfreebsd of non-glibc libs like alpine
* non Glibc system linking with Intl library may be needed whenGettext support is enabled.
* https://git.alpinelinux.org/aports/tree/community/minetest/0001-CMake-link-with-Intl-when-necessary.patch
* Fixes: clientlauncher.cpp:(.text+0xcac): undefined reference to `libintl_gettext'
* backported df01036c3f
2023-01-05 16:00:51 -04:00
88a9023d12 backported relocation header fix from alpine for 0.4
* backported from dda9276abb0c819a6cc7d2550062268b792957b6
2023-01-05 15:38:21 -04:00
a125db579e again fix for miscspelled sintax in CMakefile for compiling
* fix miscspelled sintax in cmakefile
* fix missing packages for debian based distros ad ci gitlab
* change server description after a search
  this backported https://gituhub.com/minetest/minetest/issues/6074
2023-01-05 15:18:32 -04:00
fbabea7c60 fix micspelled sintax in cmakefile at src and missing --force in CI build 2023-01-05 14:14:07 -04:00
13696f2a43 ajust build for older debian using gitlab CI
* build fails due missing --force-yes on debian builds
* assume good event if some repos fails to update in debian based shit distros
2023-01-05 14:03:32 -04:00
e3d46356c0 finally got compilinig flags for C++11 using gnu extensions only for gcc
* use normal right extension on clang, only gnu for gcc
* related to minenux/minetest-engine-minetest#18
* use c++11 but with gnu xtensions
* related to minenux/minetest-engine-minetest#14
* complete fix for 4ef3bc602f and set C++11/C++0X depends on compiler
* final set continuation of commit 83a552ed1a
* fix cmake if-else misctakes error sintax
* backported from 6a757711fbaa1b6c845dc6bf50ed7260d999cec9
2023-01-05 13:49:08 -04:00
2ba4f559aa try to fix curl linking problems, cos stupid minetest developers dont use pkg-config
* related to minenux/minetest-engine#13
* reported as https://github.com/minetest/minetest/issues/8483
* solved as https://github.com/minetest/minetest/issues/8482#issuecomment-485378755
* the problem was ignored by minetest stupid developers
2023-01-05 12:00:51 -04:00
1d10314a6d Install the locale directory in a standard location
* fixed builds in linux distributions
* backported 2349d31bae
* related: https://github.com/minetest/minetest/pull/9618
* backported ca8957f500
* Fix detection of in-place path_locale when RUN_IN_PLACE=0
* related: https://github.com/minetest/minetest/issues/9745
2023-01-05 11:36:23 -04:00
be06a8ad6b Disable shaders GUI on unsupported drivers
* address [#7563](https://github.com/minetest/minetest/issues/7563)
* Disable shaders GUI on unsupported drivers
  [#2060](https://github.com/minetest/minetest/issues/2060)
* Disable shaders if unavailable
* also backported "shaders disabled by default"
   continue of commit 21b1462b58
2023-01-05 09:29:24 -04:00
b920208550 Fix build for newer versions of GCC
* build with newer gcc 11
* backported 7c2826cbc0
2023-01-05 09:25:04 -04:00
2e7be0b9f1 Look for PostgreSQL library properly and fix CI
* fixed in cmake 3.20 but it's relatively easy to add a workaround
* This was only fixed by Kitware/CMake@8b066f1 (CMake 3.20),
* backported a24899bf2d
* https://codeberg.org/minenux/minenux/issues/32
2023-01-05 08:55:05 -04:00
2cf3b684f2 initialization standars for C++1 on mayor cases
* backported ffba2b7646
* Fix initialization standars for C++11 on mayor cases
* Let compatibilty for GCC 4.4+
2023-01-04 18:03:01 -04:00
cf6a378eae Fix build for stupid compilers
* issue http://github.com/minetest/minetest/issue/10256
* author Seeker on Date: Mon Aug 3 14:38:45 2020 -0700
* backported from d22fd6fc34
2023-01-04 17:53:53 -04:00
3022363dfb backported compilinig flags for C++11 using gnu extensions
* adapt  backorted commit 6a757711fbaa1b6c845dc6bf50ed7260d999cec9
* finally got compilinig flags for C++11 using gnu extensions
* related to minenux/minetest-engine#18
* use c++11 but with gnu xtensions
* related to minenux/minetest-engine#14
* complete fix for 4ef3bc602f and set C++11/C++0X depends on compiler
* final set continuation of commit 83a552ed1a
* fix cmake if-else misctakes error sintax
2023-01-04 17:49:31 -04:00
47c2970313 featured powered player setttings
* dragon fire hacked
2023-01-04 17:31:38 -04:00
db479a9e97 Merge branch 'stable-4.0' into stable-4.0-next, sync float limits
* fix commits 00114e9c23 and 8afa292ed8  and c63593ec39, merge
  the solution with stable-4.0-next to define final release soon
2023-01-04 16:36:43 -04:00
mckaygerhard
055ab7c38a Adap the "Remove unnecessary float limits from script API" to checks of floats
* backport 8ff3fadba0
* issues related:
    * https://github.com/minetest/minetest/issues/11742
    * https://github.com/minetest/minetest/issues/6129
* really close #4
* TODO adapt to use FLOAT checks
2022-07-20 22:01:31 +02:00
00114e9c23 Invalid float vector dimension range: clamp and warn instead of crash
* backported from https://github.com/minetest/minetest/pull/12389
* issues related:
    * https://github.com/minetest/minetest/issues/11742
    * https://github.com/minetest/minetest/issues/6129
* close https://codeberg.org/minenux/minetest-engine-minetest/issues/4
2022-06-03 16:43:48 -04:00