Commit Graph

82 Commits

Author SHA1 Message Date
Louis Royer
4179917eb4 Add translation support 2020-03-19 22:46:22 +01:00
Alden Peeters
aca830fd22 Add support for playerfactions mod (#37)
Add faction indicator to HUD
2019-09-21 15:33:42 +02:00
SmallJoker
95c1165e28 Add and parse from settingtypes.txt. Update readme 2019-07-11 20:02:32 +02:00
Panquesito7
5527dc8945 Replace deprecated functions with newer ones (#36)
This commit replaces a few deprecated calls to getpos with get_pos
2019-07-10 20:26:42 +02:00
Auke Kok
6218e5884d Limit areas to -30992,30992 due to MABLOCK_SIZE=16
Internally, when allocating an AreaStore, the limits are required
to be within the last full block, and so, you cannot create one "on"
the edge, as it will trigger an exception. When limited to the last
full mapblock, it all works fine.
2019-04-03 11:10:59 -07:00
Auke Kok
cfd4bb2423 Last of the luacheck cleanups. 2019-04-03 10:26:20 -07:00
Auke Kok
6e2b9a0a51 Needs to be defined earlier. 2019-04-03 10:24:02 -07:00
Auke Kok
024424ee8b Also limit chatcommand area_pos[12] positions. 2019-04-03 10:17:47 -07:00
Vanessa Dannenberg
f70600db30 oops, commas would be nice. 2019-04-02 16:06:19 -07:00
Vanessa Dannenberg
9508a004d0 fix posLimit(pos) to process and return a position table 2019-04-02 14:53:54 -07:00
Auke Kok
630bdefd98 Don't allow areas to cross outside mapgen world limits.
Limit any area to within [-31000,31000].
2019-04-01 21:28:03 -07:00
Auke Kok
a303abe51b Add template .luacheckrc 2019-04-01 21:22:31 -07:00
Tai Kedzierski
7b51f84404 Limit recalculations.
Setting based - limit area recalculation and allow tuning of the
interval.
2019-04-01 21:21:31 -07:00
sofar
1bbb997c7a
Add callbacks for area operations 2019-04-01 20:28:50 -07:00
red-001
09c030352f Use the new minetest.safe_file_write API if possible when saving database. 2019-04-01 20:27:17 -07:00
sofar
2637876555
Fix pos big (#1)
* fix pos being to big

* improve

* make the change instead in hud.lua
2019-04-01 20:24:59 -07:00
AntumDeluge
289d0e623c Update usage of settings API 2017-06-09 13:00:12 -04:00
Jordan Irwin
d3d43d9511 Reference 'settings.lua' instead of 'config.lua' (#21) 2017-05-06 13:41:45 -04:00
Tai @ Flex
6080ff065e Add API for adding areas to HUD 2016-12-19 16:36:37 +00:00
ShadowNinja
23f81f6278 Add mod.conf 2016-12-04 04:12:27 +00:00
Dorian Wouters
7cb8787beb Use get_auth_handler().get_auth() instead of auth_table
minetest.auth_table is an implementation detail of the default auth handler.
No guarantee is made that it even exists and using this table directly is incompatible
with custom auth handlers.  Instead, use the proper auth handler API.
2016-09-03 21:05:52 -04:00
paly2
67507c7591 Fix move_area not updating AreaStore 2016-06-23 15:49:22 -04:00
ShadowNinja
10338cd5d1 Minor isSubarea optimization 2015-10-30 20:31:24 -04:00
est31
8b0b8c1ad2 Add support for the AreaStore API 2015-10-29 16:49:35 -04:00
est31
177f659f4e Add area_info command 2015-03-01 17:31:41 -05:00
ShadowNinja
0cda67f5c1 Use the HUD alignment field instead of manually calculating offset 2015-01-07 18:31:59 -05:00
ShadowNinja
3f777900d4 Simplify settings definitions and namespace settings 2014-11-17 21:16:59 -05:00
ShadowNinja
e4aef02cb9 Add areas_high_limit privilege for trusted players 2014-11-14 13:21:09 -05:00
ShadowNinja
fe52664043 Add move_area command 2014-11-11 17:27:35 -05:00
ShadowNinja
3666f7debb Tweak README 2014-10-25 14:00:19 -04:00
ShadowNinja
21c9e6a4c0 Make HUD area list multi-line 2014-10-13 20:32:02 -04:00
ShadowNinja
b3873fcfaf Make find_areas an admin-only command
Some regexes can be very slow.
This also fixes a bug with single-item result sets.
2014-10-04 15:58:50 -04:00
ShadowNinja
9871caf1e2 Copy positions to avaoid multiple references 2014-07-15 15:41:18 -04:00
ShadowNinja
913e1fe6b3 Make legacy table copy entries 2014-07-12 19:18:31 -04:00
ShadowNinja
57c18fce95 Make all admin checks use one table 2014-07-12 19:10:26 -04:00
ShadowNinja
65013863b2 Make canInteractInArea player optional and add an admin check 2014-07-12 19:06:05 -04:00
ShadowNinja
e17cda925b Add canInteractInArea 2014-07-12 16:37:54 -04:00
ShadowNinja
ee212466bf Fix add_owner validity check 2014-06-23 15:19:19 -04:00
ShadowNinja
8ee86b2366 Fix rename_area's argument validity check 2014-06-18 19:47:14 -04:00
ShadowNinja
bfb260d181 Fix a indexing bug with change_owner 2014-06-14 22:49:06 -04:00
ShadowNinja
abd6a4c709 Centralize position getting and sorting 2014-05-30 17:41:41 -04:00
ShadowNinja
02905caaeb Pass messages by return value 2014-05-29 11:04:37 -04:00
Ciaran Gultnieks
4e1aef5491 Fix various readme typos 2014-03-30 13:54:20 -04:00
ShadowNinja
6f31a56594 Tweak HUD area list display 2014-03-30 13:53:56 -04:00
ShadowNinja
ce8891a325 Allow open areas inside closed areas to be used openly 2014-03-23 12:25:44 -04:00
ShadowNinja
78ca95d5b4 Allow protection of intersecting sub-areas and make error message more informative 2014-03-22 23:24:29 -04:00
Ciaran Gultnieks
1a5efd07f1 Allow areas to be optionally open to all other users
In other words, you can retain ownership of an area but disable and
re-enable the protection aspect at will, via the area_open chat command.

By default, nothing is any different following this commit - all
existing areas are protected, as are new ones. But you can do (for
example) "area_open 1" and if you're the owner of that area, it's
now possible for other users to interact there. "area_open 1" again to
toggle the protection back on.

Where there are sub-areas, the main owner and ALL sub-area owners at a
particulare location must have set the areas to open to disable
protection.
2014-02-07 18:07:56 -05:00
ShadowNinja
a8e5b90aeb Don't overwrite area file if serialization fails 2014-02-04 15:11:02 -05:00
ShadowNinja
72d26dad25 Fix self protection max areas off-by-one error 2014-01-15 20:14:24 -05:00
ShadowNinja
54f9f78c4b Remove redundant if 2014-01-15 20:13:47 -05:00