10883 Commits

Author SHA1 Message Date
Loïc Blot
a4cac3613a Implement player attribute backend (#4155)
* This backend permit mods to store extra players attributes to a common interface.
* Add the obj:set_attribute(attr, value) Lua call
* Add the obj:get_attribute(attr) Lua call

Examples:
* player:set_attribute("home:home", "10,25,-78")
* player:get_attribute("default:mana")

Attributes are saved as a json in the player file in extended_attributes
key

They are saved only if a modification on the attributes occurs and loaded
when emergePlayer is called (they are attached to PlayerSAO).

 Author:    Loïc Blot <nerzhul@users.noreply.github.com>
 Date:      Fri Jan 27 08:59:30 2017 +0100
 You are currently cherry-picking commit b7a98e985.
2021-11-14 04:58:45 +03:00
rubenwardy
e21edd121f Rename ObjectRef methods to be consistent and predictable
Author:    rubenwardy <rubenwardy@gmail.com>
 Date:      Mon Jan 16 13:08:59 2017 +0000
 You are currently cherry-picking commit 63c892eed.
2021-11-14 03:27:38 +03:00
ShadowNinja
44c489d7bd Use a settings object for the main settings
This unifies the settings APIs.

This also unifies the sync and async registration APIs, since the async
registration API did not support adding non-functions to the API table.

 Author:    ShadowNinja <shadowninja@minetest.net>
 Date:      Fri Dec 12 14:49:19 2014 -0500
 You are currently cherry-picking commit 43d1f375d.
2021-11-14 03:15:12 +03:00
proller
65fd685d52 Farmesh: bit better 2021-10-31 03:00:19 +03:00
proller
48f4df6d57 Farmesh: less lag on camera rorate 2021-10-28 06:15:13 +03:00
proller
180352511b Mapgen v7, math: fix dusting ice with sand 2021-10-28 04:26:47 +03:00
proller
543b962241 Fix finding spawnpoint 2021-09-05 21:41:57 +03:00
proller
a16be7177b static_spawnpoint_find 2021-08-25 00:02:03 +03:00
proller
5c8e14b0b8 Update submodules 2021-08-19 01:43:46 +03:00
proller
3842f62d9f Tune weather apmlitude 2021-08-14 15:57:58 +03:00
proller
2ff8e53cbe cmake: fix msgpack find 2021-08-13 20:05:26 +03:00
proller
e252e2c10e mapgen math: better rooms limit 2021-08-11 18:06:57 +03:00
proller
82043d019f light_ambient setting 2021-08-10 01:08:12 +03:00
proller
ae62cf2eda Mapgen math: room fixes 2021-08-09 23:20:43 +03:00
proller
0d63dcf339 Update submodule 2021-08-09 04:31:53 +03:00
proller
0b502fe23d Increase block humidity from water 2021-08-09 04:27:13 +03:00
proller
2fdfdc5f8f Fix freebsd build 2021-04-02 23:09:54 +03:00
proller
7e3a34a0ff Update jsoncpp 2020-11-07 18:29:43 +03:00
proller
0c6280f042 Fix build 2020-11-07 18:29:07 +03:00
proller
5d2f00fa77 Fix fnv_32_buf (previous works wrong on some archs) 2020-01-03 00:27:23 +03:00
proller
70499cbd62 timelapse_stay 2019-10-25 19:36:13 +03:00
proller
69b31a1732 Fixes 2019-01-20 00:00:03 +03:00
proller
18fda8bb0b Update submodules 2019-01-19 13:37:51 +03:00
proller
a8e93bb6aa build fixes 2018-09-24 16:19:04 +03:00
proller
6c2206a041 Build fixes 2018-09-24 16:15:52 +03:00
proller
0f5535d69f Build fixes 2018-09-22 15:20:25 +03:00
proller
708623a4fc Build fix 2018-09-20 16:25:56 +03:00
proller
0c01416232 Try build with msvc2017 2018-09-19 23:28:38 +03:00
proller
c29643053e Allow use system enet 2018-08-05 20:54:43 +03:00
proller
b3f955f788 Update external libs 2018-06-10 21:08:38 +03:00
proller
1944104681 Fix build on ubuntu bionic 2018-05-26 20:23:49 +03:00
proller
c291133b9b Use ccache for building 2017-07-26 22:58:51 +03:00
proller
0fad8f4da7 Fix 2017-07-16 06:37:49 +03:00
alexxvk
b72980e7c3 Static view range 2017-06-02 19:08:14 +03:00
alexxvk
b56424e821 Remove old code 2017-06-02 19:08:14 +03:00
proller
0803aa6318 Merge pull request #280 from alexxvk/ninja
Enable coloured error messages when using Ninja.
2017-05-26 10:11:34 +03:00
alexxvk
1636fcaaa1 Enable coloured error messages when using Ninja. 2017-05-26 02:12:22 +07:00
proller
becccb5bfe Debian build: temporary irrlicht version fix 2017-04-29 17:45:28 +00:00
proller
c4a6560d52 windows: update libs 2017-04-17 01:42:51 +03:00
proller
207fe40547 android fixes 2017-04-16 22:53:11 +03:00
proller
e69c83c98a update submodules 2017-04-15 19:32:42 +03:00
proller
37b0dc2757 Better fps on minetest clients 2017-04-15 19:02:14 +03:00
proller
2bfd1161f4 update submodules 2016-12-29 19:36:16 +03:00
proller
84f5aa45a5 Merge remote-tracking branch 'minetest/master' 2016-12-29 19:35:29 +03:00
Rogier-5
abd68d3466 Use the outgoing split sequence number for every outgoing packet (#4864)
(instead of the last incoming sequence number...)

Fixes #4848
2016-12-29 13:44:47 +01:00
sfan5
e509ead680 Buildbot: Update Gettext version (#4971) 2016-12-29 13:17:24 +01:00
Auke Kok
094a5a73d3 Redo light.cpp.
Remake the light_decode_table.

The table starts out without pre-filled in values since those
are always discarded by the code apparently. We calculate a
pseudo curve with gamma power function, and then apply a new
adjustment table.

The adjustment table is setup to make the default gamma of 2.2
look decent: not too dark at light level 3 or so, but too dark
at 1 and below to be playable. The curve is much smoother than
before and looks reasonable at the whole range, offering a
pleasant decay of light levels away from lights.

The `display_gamma` setting now actually does something logical:
the game is darker at values below 2.2, and brighter at values
above 2.2. At 3.0, the game is very bright, but still has a good
light scale. At 1.1 or so, the bottom 5 light levels are virtually
black, but you can still see enough detail at light levels 7-8,
so the range and spread is adequate.

I must add that my monitor is somewhat dark to begin with, since
I have a `hc` screen that doesn't dynamic range colors or try to
pull up `black` pixels for me (it is tuned for accurate color and
light levels), so this should look even better on more dynamic
display tunings.
2016-12-28 14:16:39 -08:00
adrido
5a0a59ad46 Dont compare short with bool (#4963)
Fixes a compiler warning on MSVC
2016-12-28 21:22:01 +01:00
proller
e66536dae2 update submodules 2016-12-28 02:44:22 +03:00
proller
1efdd353aa Merge remote-tracking branch 'minetest/master' 2016-12-28 02:43:20 +03:00