253 Commits

Author SHA1 Message Date
Cristian Lupascu
02894b2894 Default entry & exit box models that work correctly 2022-03-12 22:29:18 +02: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
4fdbdc020b player atributes: use player:get_meta() instead. 2021-07-07 21:20:04 -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
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
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
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
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
2a87ac818d Replace :[gs]etpos with :[gs]et_pos globally. 2019-10-07 09:08:08 -07:00
Auke Kok
5a0cbbc844 Fix unit of these (os.clock returns 's'). 2019-09-15 21:07:48 -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
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
Wuzzy
207de4dc2c Add I18N support
This adds I18N support for ITB by using Minetest 5.0.0's locale system.
2019-09-11 21:06:59 -07:00
Auke Kok
ea80c7658b Fix debug printing. 2019-09-06 22:43:29 -07:00
Auke Kok
0a5cefdb21 Add some timing data here. 2019-09-06 22:41:19 -07:00
Auke Kok
faff22dd8b Bring down jump to normal. Problems hitting ceilings. 2019-08-31 23:37:34 -07:00
Auke Kok
04dc57066e Actually preserve custom physics parameters.
Using the inspector, I found that the teleport-into-box code
overwrites and deletes the gravity and speed values for each
player. This was never intentional.

This fixes that problem. However, that means that my physics estimates
are completely off and I will need to redo the custom physics
values to match the expectations on the server and to make
sure this doesn't massively nerf those values.

oops :(
2019-08-30 17:29:20 -07:00
Auke Kok
f957f1cab9 Fix incorrect usage of msg.content. 2019-08-29 09:06:03 -07:00
Auke Kok
d5db7412f5 Perks!
These are granted to people who have gotten 2 (zoom) or 5 (lobby
sprint) boxes accepted. A telex is sent to inform them, since, they
are likely not on the server when this is done.
2019-08-24 23:26:08 -07:00
Auke Kok
190f12412e Perks.
`zoom` and `sprint` perks. These are not yet obtainable by playing,
but I intend to roll that out soon.
2019-08-23 23:41:38 -07:00
Auke Kok
f274254b34 Add some better logging for these infrequent events. 2019-08-21 22:50:50 -07:00
Auke Kok
55254a65e5 More liberal IRC and server announcements.
glob all announcements through a single function that
relays the info to IRC, all player chat and logs.
2019-04-20 14:06:45 -07:00
Auke Kok
257539b22b Add pedestal recount code.
I don't 100% trust this code just yet, so make it an admin command
that can be issued while editing a box. The recount seems to work
well and fixes up meta and current count, and stores meta. If edits
are done to the box, these will get the right count as well.

Verified tested with a node creator placing air over creators.
2019-04-16 20:32:56 -07:00
Wuzzy
17389b2678 Make item descriptions more descriptive 2019-04-13 23:54:40 -07:00
Wuzzy
e7e0357926 Rename both "Admin" tabs to disambiguate them 2019-04-13 23:50:18 -07:00
Wuzzy
3b49559131 Improve inventory and wield image of items 2019-04-13 23:46:28 -07:00
Auke Kok
642a40f43a Print result of send_mapblock, and don't wait as long. 2019-01-29 19:52:15 -08:00
Auke Kok
84e2a427f0 If available, send mapblock before teleport.
This relies on minetest PR #8140.
2019-01-28 23:19:25 -08:00
Auke Kok
459325b6d9 Add optional dependency here.
Not really needed at this point, since it isn't used at init
time, but it may be needed later.
2019-01-28 20:52:30 -08:00
Auke Kok
890dd317da Don't nudge on series enter. 2019-01-25 23:05:18 -08:00
Auke Kok
ff881a175b Weird? I managed to series teleport myself in the sky.
Somehow the correction didn't set my proper spawn_pos. And
it flung me to my death. Don't just modify Y unless we're
actually near the box spawn.
2019-01-25 22:58:00 -08:00
Auke Kok
80738b06b7 I've always had the math all wrong here.
Our spawn pos is already .5 above the ground. We want only
to correct players that fall through the floow. At -0.95 they
can still walk normal, but instead we correct them at -0.45
which almost always hits them.
2019-01-25 22:46:19 -08:00
Auke Kok
f547987974 Don't look. 2019-01-25 22:21:11 -08:00
Auke Kok
f486a956e0 Debug. 2019-01-25 22:19:00 -08:00
Auke Kok
ebf18592cb Again, try and fix falling correction. 2019-01-25 22:12:28 -08:00
Auke Kok
b7ae89b58d Try and make the fall/nudge up smarter. 2019-01-25 22:10:37 -08:00
Auke Kok
01b5b690df Always just knock the player off the teleport. 2019-01-18 22:13:22 -08:00
Auke Kok
8447ab9d2a Removing debug code now that the bug was found. 2019-01-18 16:38:49 -08:00
Auke Kok
827cfc565f debug 2019-01-18 16:32:36 -08:00
Auke Kok
060ef9eecb Debugging crashes. 2019-01-18 16:15:11 -08:00
Auke Kok
b75a8b9ee6 Debugging category series. 2019-01-18 16:12:04 -08:00
Auke Kok
e3c5033a57 elseif 2019-01-18 16:05:31 -08:00
Auke Kok
06c900120e Add category series.
These can be accessed using enter teleporters where is_series==2.

At that point, the `box` meta value determines the category, not
the box id. Then the next box that is unplayed in that category
is offered for play.

For now, the player is sent a message if there are no more
unplayed boxes in a category.
2019-01-18 15:50:53 -08:00
Auke Kok
af3f8c1b1f License additions, clarifications.
Overly cautiously list all files explicitly that need covering,
so that it's clear that textures were overwritten with Isabella-II
textures everywhere except a few rare cases (screwdriver etc).

Everything made by me is either listed as derivative of the
origin or CC-BY-SA-4.0 by me.
2018-10-27 23:22:50 -07:00
Auke Kok
80cbd6d34a Add license headers to all lua files.
Some of these are copies from the respective origins from mtg,
to make sure we have headers everywhere listing the proper code.

I've relicensed spectator_mode from WT*PL to LGPL-2.1. No other
licenses were changed.
2018-06-21 22:56:48 -07:00