941 Commits

Author SHA1 Message Date
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
3a2ef17ce3 Some hints about installation.
Note: this is mostly from memory. I didn't actually test this
as I wrote it but it should be close to what is actually needed
to run this.
2019-01-28 20:53:05 -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
9dbf15df24 Fix frames.
I actually broke most insertions into frames. This is much more
careful, and it now tells the player that something just can not
be put in a frame. Tested with breakable nodes, tools, and torch.

The frames autolock on things like flowers. Attempting to unlock
a frame yields a message explaining why some can not be unlocked.
2019-01-24 21:31:04 -08:00
Auke Kok
05d24a6c24 Fix crash on sign created by mech.
I tested wall signs, not plain style signs. Tested with exit
lobby signs to make sure those still work.
2019-01-24 20:30:54 -08:00
Auke Kok
a5962a296a Protect against frame leak.
Until now, it was possible for the player to obtain any item if
the frame was left unlocked. The items that are not obtainable
have significant placement liberties that can break many boxes and
potentially allow players to brick their box.

To secure this, we lock all frames automatically and do not allow
them to become unlocked unless they contain obtainable items.
2019-01-23 22:08:09 -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
Ekdohibs
f819361ac7 Mech: allow admin interaction outside boxes 2018-11-12 18:19:15 +01:00
Auke Kok
c668ee2352 Add better asserts explaining lack of insecure env, or lsqlite3. 2018-10-28 11:40:22 -07: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
a26353501a Add sound licenses for mech mod. 2018-06-21 23:24:08 -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
Auke Kok
2670782cfb Bugfix: Don't just *save* num_items after erase.
We also need to set the current box meta in memory to 0 num_items,
because otherwise it retains the old (non-0) value, and re-saves that
value when the box is saved.
2018-06-10 14:42:34 -07:00
Auke Kok
de0485e8cc Announce new boxes in IRC. 2018-04-01 12:10:04 -07:00
Auke Kok
d38ab250b7 Add some extra logging. 2018-04-01 12:07:49 -07:00
Auke Kok
1a5801b0ea Fix a potential server crash. 2018-04-01 11:47:06 -07:00
Auke Kok
370e54acae Fix help text. 2018-03-24 22:18:26 -07:00
Ekdohibs
6c68227b22 Hopefully fix double-rightclick making items disappear 2018-03-04 18:40:20 +01:00
Auke Kok
c78f2e5a8c Guard against door removal crash? 2018-02-22 11:41:53 -08:00
Auke Kok
d910804149 Guard against possible field mishap. 2018-02-22 11:40:12 -08:00
Auke Kok
877d057cda Up the spawn position just a little bit to prevent more falls. 2018-02-17 11:46:42 -08:00
Auke Kok
22f77237bd Piston: don't allow breaking nodes with the unconnected piston. 2018-01-04 21:38:53 -08:00
Auke Kok
63e0d6e261 Don't reveal snow ledges, there's just too many. 2017-12-29 00:13:26 -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
Auke Kok
43bebe3a7f Assure node meta is still present and usable.
Prevents a possible crash when a node creator trigger is
deferred while the node creator is removed.
2017-12-23 12:16:27 -08:00
Auke Kok
827ce89e27 Fix glass step/place sounds.
Just fall back to stone sounds for these.
2017-12-22 22:57:54 -08:00
Auke Kok
bcbfe20bc2 Make sure to erase signs, if creator removes them.
This works without needing to depend on `signs` here since
we call the embedded on_destruct. We leave other on_destruct
calls alone for now since we may want to retain the current
behavior where no triggers happen if you use this method of
replacing nodes in a puzzle, which is needed for several
puzzles I've made so far.
2017-12-22 22:23:10 -08:00
Auke Kok
a62dded02d Allow node creators to retain meta.
This allows creating signs with text.
2017-12-22 22:15:34 -08:00
Auke Kok
90570ee340 Light emitting blocks (cube shape).
These add 3 more 8/11/14 brightness blocks that can be switched
with mech, and a 13 brightness glow block that is always on.
2017-12-22 21:33:34 -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
0b106b1a34 Idle kick: 3600sec.
I'm seeing some players idle forever on the server, and this just
consumes resources that cost money, so, remove them.

This also combines 2 globalstep registrations into one, and reduces
player loops from 2 to 1 as well. The added cost is an extra array
and os.time() call and some basic math.
2017-12-11 21:48:20 -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