932 Commits

Author SHA1 Message Date
Auke Kok
8a700c4b6b Fix missing ) 2021-07-09 22:25:25 -07:00
Auke Kok
6af528b74f Properly check for nil - tonumber will emit it.
This caused a few crashes on people using the creator pad.
2021-07-09 22:23:44 -07:00
Auke Kok
5a9e1286cd skybox: fix up sun/sunrise showing up.
Ideally, in the public version of the mod, we make this configurable and
allow people to individually set stars/moon/sun parameters.
2021-07-07 21:58:13 -07:00
Auke Kok
4fdbdc020b player atributes: use player:get_meta() instead. 2021-07-07 21:20:04 -07:00
Auke Kok
abec3f27a7 connector tool: do not use :metadata() to avoid serialization bug in MT
The way MT serializes this data is fundamentally unsafe now since 5.1 or
so, and will randomly break due to random box positions. One day it
works fine and the next day the server crashes on the same apparent
link operation. All because the itemstack data can likely not handle
\000 data during either serialization or deserialization. The outcome
is 5, or even 4 bytes returned from deserialization, and thus a server
crash.

This is BW compatible. Old connector tools will be functional and appear
as linked in the tooltip, but there will be an error to the user telling
them to "start" the link again first. No box is broken - this is only
affecting itemstacks.
2021-07-07 21:20:04 -07:00
Auke Kok
8d218d43d6 TExture alpha: fix deprecation warning.
The alpha values here are now no longer used. They are roughly the same
as the original value in the alpha channel, so this looks the same from
my perspective.
2021-07-07 21:20:04 -07:00
auouymous
b07f74eaff Use new set_sky API to eliminate deprecated warnings. (#4)
From minetest-mods/skybox/#4
2021-07-07 21:20:04 -07:00
Auke Kok
05106b1919 Mapgen object - use new method to set. 2021-07-07 21:20:04 -07:00
Auke Kok
6ea91ddefe settings: use global settings object. 2021-07-07 21:20:04 -07:00
Auke Kok
c78a7b5c6b Allow reveal tool to players with review permission. 2020-08-08 12:45:30 -07:00
Auke Kok
c69097e30e Fix 2 permission checks:
- Allow players to use the interface to edit their own boxes again
- Allow reviewers to play any box that has been submitted
2020-08-07 12:02:03 -07:00
Auke Kok
a153f771be Add review permission.
This moves review into a separate permission, aside from "server".

The benefit is that we can grant this to more people without the
need to pass out "server" privs, which has a lot more powers than
needeed.

This doesn't grant noclip. This needs to be done separately. Scoring
will be disabled for those with the review priv.
2020-07-27 16:52:10 -07:00
Auke Kok
633b76717a Allow mail to queue for more than 14 days. 2020-03-08 11:43:14 -07:00
Auke Kok
ba1c93e23f Fix missing tools in tools tab.
Since we converted these tools into craftitems, to allow them to
stack, they have been missing from the tools tab. Explicitly insert
them so builders can obtain them easily again.
2020-03-04 11:19:55 -08:00
Auke Kok
cd3c598f25 perks: Fix undefined variable access
Instead of ANAND's suggestion to put this function in the `player` API,
I feel it belongs in the `boxes` API instead, other than that it's
mostly similar to his MR#18.
2019-12-17 10:55:33 -08:00
Auke Kok
7ea209215c Bugfix: Hardened clay slabs and stairs are dug by axe. 2019-12-16 09:33:20 -08:00
ANAND
542fe47c25 Fix formatting in README.md 2019-12-16 09:10:10 -08:00
ANAND
3d1a448f6d Fix indentation 2019-12-16 09:09:01 -08:00
ANAND
efc6422e3c perks: Fix invalid type-check 2019-12-16 08:47:40 -08:00
Auke Kok
fbb672cfc6 Add dot.sh script to inspect mod dependencies. 2019-12-15 21:44:26 -08:00
Auke Kok
dd78de6412 Move perks code out to separate mod.
This moves the perk code so it can handle offline players
easily. Granted perks are immediate if the player is online
and otherwise granted at login. This avoids any of the issues
with offline players.
2019-12-15 21:43:31 -08:00
Auke Kok
a82776cd81 Can't assign attributes to offline players like this.
Assign them only when online instead. This needs a rewrite.
2019-12-14 21:07:50 -08:00
Auke Kok
22a4490ffc Allow stacking of player tools. 2019-12-09 19:58:32 -08:00
Auke Kok
66b27bd711 Revert "Prevent filling up the inventory with tools."
This reverts commit a819b41782de9960acec6728a6235ee7c8450a8c.

Replaced with stackable player tools.
2019-12-09 19:57:55 -08:00
Auke Kok
a819b41782 Prevent filling up the inventory with tools.
nexus blocks can still be stacked. Tested.
2019-12-06 22:17:03 -08:00
Auke Kok
b38334d484 "more boxes" perk.
Obtained at 3 accepted boxes.

Grants 5 boxes as build max, up from 3.
2019-12-05 22:20:54 -08:00
Auke Kok
6a311f930b MT serializes an empty table as null - account for that.
Serialize the empty table to `{}` instead.
2019-11-10 22:23:29 -08:00
Auke Kok
16e0fc714f Also label wall torch, for the reveal tool. 2019-11-08 21:18:29 -08:00
Auke Kok
2cdbe4a38a Make sure to put placeholder particles on torches. 2019-11-08 21:18:03 -08:00
Auke Kok
162e8d11c1 Fix torches breaking placeholders.
These need to be treated in the same way as other "breakable" nodes
here, so, retain meta on removal.
2019-11-08 21:17:16 -08:00
Auke Kok
d9b5622049 Fix reveal node for placeholders.
We were accidentally shadowing `nodes` which broke the texture
retrieval call, but worse, we never searched for placeholder
nodes in the search filter.
2019-11-08 20:21:35 -08:00
Auke Kok
3be634fa58 Force testing requirement on all boxes.
Boxes need to be tested. Untested boxes can not be submitted.
For small edits, re-testing isn't required (<150sec). Lots of
messaging to the builder as well to make sure it doesn't go
unnoticed.
2019-11-05 21:07:40 -08:00
Auke Kok
d5aebb5e9d Add queue mod. /queue command.
The queue is periodically scanned and output as `queue.json` such
that the website can ingest it and display it.
2019-11-04 20:23:38 -08:00
Auke Kok
2a87ac818d Replace :[gs]etpos with :[gs]et_pos globally. 2019-10-07 09:08:08 -07:00
ANAND
a7403d6600 Nullify velocity and acceleration if player is below y < 50 2019-10-07 09:04:53 -07:00
Auke Kok
3099dd6228 Attempt to allow empty lines in telex/files.
These were previously filtered out. Unfortunately now there's some
awkward emtpy lines in various places, but, I prefer having empty
lines show since that makes typing much simpler.
2019-10-04 22:15:06 -07:00
Auke Kok
27448a62ea Don't kill players that are already dead. 2019-09-18 21:31:31 -07:00
Emerald2
661e7ebe5c Added builder name to irc_whereis 2019-09-17 19:59:21 -07:00
Auke Kok
5a0cbbc844 Fix unit of these (os.clock returns 's'). 2019-09-15 21:07:48 -07:00
Auke Kok
1f493f4ad3 Translations broke this, too.
Unbreak reveal tool.
2019-09-14 23:10:18 -07:00
Auke Kok
71009b5764 Bug made by Wuzzy. 2019-09-14 22:38:19 -07:00
Auke Kok
c2e278898d Don't translate IRC announcements and messages. This doesn't work. 2019-09-14 22:24:36 -07:00
Auke Kok
bf4724938a Can't do this anymore either.
The detector node used to print the description. But this is
broken now. Instead, print the technical name instead, without
translating it.
2019-09-12 22:38:21 -07:00
Auke Kok
ca7c77c895 Undo translation of technical items.
This really breaks badly. Too many untranslatable characters that
completely break things. These are meant to be technical and postion
strings are not translatable either. Revert.
2019-09-12 22:27:45 -07:00
Auke Kok
0dbff53e74 Undo translating some really dangerous stuff that crashes the server.
Tooltips likely need formspec escapes or something else. Revert this
to try and avoid crashing the server.
2019-09-12 15:49:23 -07:00
Auke Kok
7ed72218e0 Don't translate the number. It is parsed by the form code. 2019-09-12 11:04:34 -07:00
Auke Kok
dd2b25a379 Avoid crash in skybox.set.
For some reason, `number` was invalid. It was likely passed from
a formspec. Avoid this part of the crash entirely.
2019-09-12 10:59:59 -07:00
Auke Kok
6f82f9a8b8 Announce messages are like logs: Server language, not localized.
These were malforming IRC and log output messages, so I'm reverting
this.

`(T@boxes)Flerker100E completed box F27E!E`
2019-09-12 08:47:34 -07:00
Auke Kok
6d538955fd Kurtzmusch's experiment skipping nodes without meta. 2019-09-11 21:50:44 -07:00
Auke Kok
3d090e5940 Add timing for boxes.save() 2019-09-11 21:50:44 -07:00