106 Commits

Author SHA1 Message Date
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
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
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
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
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
Wuzzy
17389b2678 Make item descriptions more descriptive 2019-04-13 23:54:40 -07:00
Wuzzy
3b49559131 Improve inventory and wield image of items 2019-04-13 23:46:28 -07:00
Auke Kok
890dd317da Don't nudge on series enter. 2019-01-25 23:05:18 -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
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
Auke Kok
de0485e8cc Announce new boxes in IRC. 2018-04-01 12:10:04 -07:00
Auke Kok
d910804149 Guard against possible field mishap. 2018-02-22 11:40:12 -08:00
Auke Kok
ce3f009b75 Fsc: fix crash in series progress dialog.
The callback was passed `{id = id}` instead of `id` directly,
leading to a concatenate crash.
2017-12-28 14:24:56 -08:00
Auke Kok
44e0ef1647 fsc: secure formspec code.
Implemented for terminal, and signs, rules, inspector and creator interface code.

Also, fix a bazillion usability bugs in here.
2017-12-27 17:46:00 -08:00
Ekdohibs
7a57d6167f Make series_enter_choice linear complexity instead of quadratic. 2017-12-12 09:31:24 +01:00
Auke Kok
fec7f4a25b Color boxes in the random order selection formspec.
white/gray: not yet completed boxes
green: completed boxes

Display the box numbers, since the order numbers may be confusing.
2017-12-11 22:16:37 -08:00
Auke Kok
5943079b6a Slightly make this more pleasant to the eye.
A bit longer, wider, centered, more space in the size and
centered button with "Play" for consistency (creator ui
has this wording as well).
2017-12-10 23:13:22 -08:00
Ekdohibs
2d02f44d07 Teleports: on_teleport method, add return value saying whether player should be moved off the teleport 2017-12-07 22:46:55 +01:00
Ekdohibs
699e4e0bba Add random access series type, which shows a formspec to player to choose box to enter. 2017-12-07 22:22:03 +01:00
Auke Kok
6a778d8ba6 Allow placement anywhere, just adjust pos on the fly to fit.
- removed 2 prints.
- prevents making signs outside the +x side of the box.
2017-12-06 23:14:13 -08:00
Ekdohibs
99b27daa94 Make set door tool able to move digits in a box 2017-12-06 23:52:01 +01:00
Auke Kok
516f22a0ae Slightly rephrase now that this works. 2017-11-09 00:21:23 -08:00
Auke Kok
be8169879e Try this irc say thing again.
This should work according to both the code AND the docs.
2017-11-09 00:17:23 -08:00
Auke Kok
c204228c97 Do not record certain score data.
- builder runs
- admin runs
- box not published
2017-11-05 11:27:18 -08:00
Auke Kok
51c57f9647 Convert most base block tiles to a tilesheet
About 40 textures are in here now, there's space for 26 more.
2017-10-26 23:13:31 -07:00
Auke Kok
b99b365e62 Add a small log helper mod so all mods can use log.fs_data() 2017-10-24 10:29:11 -07:00
Auke Kok
43e9829ec4 Prep for box score migration, fix up loose meta table ends. 2017-10-21 14:28:28 -07:00
Auke Kok
c6fa3b4585 Use points table to score players/boxes.
Adds an icon UI for the category signs.

No longer stores scoring info in box_meta.
2017-10-21 11:21:16 -07:00
Auke Kok
812f5a20d5 Hide all lobbies from the admin view.
These really don't add anything significant here.
2017-10-17 21:25:32 -07:00
Auke Kok
b8bbcc2856 Don't break a nexus block. 2017-10-17 08:36:59 -07:00
Auke Kok
6be84a9111 Cover a potential crash scenario. 2017-10-11 14:05:20 -07:00
Auke Kok
b52895ca8a Player box create limit (tested) and attr admin command.
Allows us to modify attributes of online players. Offline player
attributes need to be modified using sqlite from the cmdline.
2017-10-10 21:50:46 -07:00
Auke Kok
bd20bcb694 Don't spam "limit reached" box count exceeded msgs. 2017-10-09 16:23:18 -07:00
Auke Kok
4853bb65ed Add some minor FIXME's 2017-10-09 16:23:01 -07:00
Auke Kok
b194bc0aef Enforce more strict formspec data checkign, erase contexts. 2017-10-09 16:22:23 -07:00
Auke Kok
2d8f0994b7 Bad test in create gui - this is basically a noop.
We don't want to display non-box stuff in here.
2017-10-07 17:02:47 -07:00