71 Commits

Author SHA1 Message Date
Auke Kok
4408b95e39 Whitespace: new luacheck version. 2017-03-13 23:19:06 -07:00
Auke Kok
5000b4197d Forgot local here. 2017-03-13 23:14:48 -07:00
Auke Kok
989056cebd /series_list <sid>: list box numbers in a series. 2017-03-13 23:04:14 -07:00
Auke Kok
eb1b3ead5d Reset series if a player steps on a series portal they've completed.
They won't get put into it. A message says "you've completed this,
try again if you want to re-take it entirely".
2017-03-13 22:34:28 -07:00
Auke Kok
8a2882fce0 Music: refine method of operation a bit more.
Leaves music track choice entirely to the server operator.

Use worldmod to provide event->track mapping.
2017-02-27 10:35:30 -08:00
Auke Kok
2e83a5f6c0 Series: improve handling of series
- renamed commands to series_create|destroy so they fit with add|remove logically
- fixed backend to support everything needed to make it work easily
- avoid `SELECT *`
- add `series_list` command to make it complete
2017-02-23 23:45:46 -08:00
Auke Kok
0ec1a1dd40 Bugfix: don't allow empty series name 2017-02-23 22:23:04 -08:00
Ekdohibs
3051872319 Deprecate /edit 2017-02-17 08:42:41 +01:00
Auke Kok
7718961271 Global event chat: Player completes a box announce. 2017-02-16 20:52:40 -08:00
Auke Kok
308af209bf Remove print. Send confirmation of save message to player. 2017-02-13 22:16:42 -08:00
Ekdohibs
edc8c13122 Don't crash on save as new id 2017-02-13 20:23:37 +01:00
Ekdohibs
a1965cdcc2 Add builder and build time 2017-02-12 11:10:01 +01:00
Ekdohibs
b625516f0e Set player direction correctly. 2017-02-11 14:10:20 +01:00
Ekdohibs
b35aeac8ff Prevent placing nexus, add sign API, prevent players from editing and entering boxes at the same time. 2017-02-06 15:04:56 +01:00
Auke Kok
aa0706e002 Log saving of boxes to console. 2017-02-04 12:05:26 -08:00
Ekdohibs
53c0a27caa Fix crash 2017-02-03 16:06:44 +01:00
Ekdohibs
e325341277 Add tool to place a bulk of nodes (for landscaping) 2017-02-03 15:01:24 +01:00
Ekdohibs
b8efd9b9cd Series: mark box as done when exit door opens, not when player takes exit teleport. 2017-02-03 14:23:14 +01:00
Ekdohibs
31fc7f7185 Add a few functions to db to avoid small hacks 2017-02-03 14:14:17 +01:00
Ekdohibs
1571dada8a Get stats on number of deaths & damage as well. 2017-02-03 13:35:52 +01:00
Ekdohibs
19390239f1 Split boxes/init.lua even more. 2017-02-03 12:53:00 +01:00
Ekdohibs
3df4665983 Handle inventory 2017-02-03 10:53:53 +01:00
Ekdohibs
7f1fa31ea0 Expose players_in_boxes and players_editing_boxes; remove luacheck warnings. 2017-02-03 10:12:27 +01:00
Ekdohibs
bbf18c49ba Gather stats on the time the player spent in a box 2017-02-03 09:49:51 +01:00
Ekdohibs
6a12362130 Split boxes/init.lua a bit 2017-02-02 21:19:42 +01:00
Ekdohibs
3172f6ff1b Add lobby teleport 2017-02-02 21:09:26 +01:00
Ekdohibs
fed749346c Respawn player inside box when they die 2017-02-02 16:31:36 +01:00
Ekdohibs
fd4d32c269 Oops. 2017-02-02 15:20:53 +01:00
Ekdohibs
ecfcebe18e Doors to enter boxes 2017-02-02 15:16:03 +01:00
Ekdohibs
69b77a749b Boxes: compute number of items needed. 2017-02-02 14:06:35 +01:00
Auke Kok
077fd084f1 Nodebox light fix. 2017-02-02 00:00:33 -08:00
Auke Kok
f55397968f Large version for the main lobby. 2017-02-01 17:28:26 -08:00
Ekdohibs
cafaddcb30 Add working series 2017-02-01 22:40:44 +01:00
Ekdohibs
177eb19b38 Add box series (can't be created yet) 2017-02-01 21:06:20 +01:00
Auke Kok
e2b531fa9d Finish nexus block and pedestal.
The full receiver node is now gone. The pedestal itself
is a connecting nodebox and adds 4 little "holders" if the
nexus block is above. Right-click accepting code is now
really simple. We should probably handle punch/left click
of the node on the pedestal as well to make it simple for
all users.
2017-02-01 11:17:30 -08:00
Auke Kok
abbae20f83 Selection/collision boxes, and param2 option.
As well as some hints for placement code later.
2017-02-01 11:17:30 -08:00
Ekdohibs
842ebcc987 Disable expo demo so we don't ruin part of the server by being careless 2017-02-01 00:14:21 +01:00
Auke Kok
0d14179db0 Prep this for the mesh node parts. 2017-01-31 14:44:31 -08:00
Ekdohibs
16bdd8a9c1 Add proof-of-concept /expo command.
The goal of box expositions is to show the content of boxes to players,
to incite them to try these boxes. There will be a few boxes that are
exposed quite close to the main lobby to that end.
2017-01-31 17:29:11 +01:00
Ekdohibs
dad9f7b95a Add code to handle collected items by the player. All nodes and textures are still placeholders. 2017-01-30 13:07:29 +01:00
Ekdohibs
3072fce05f Add particles to teleports 2017-01-30 11:00:38 +01:00
Ekdohibs
f0c019bbe9 Clear entities on box cleanup 2017-01-30 10:37:16 +01:00
Ekdohibs
828808c6eb Teleports should no longer belong in group node; update exit box. 2017-01-30 08:20:50 +01:00
Auke Kok
42ce7d1bbc Portals: diamond block look (for now).
Since I made pressure plates out of iron block textures, this
would be somewhat consistent look-and-feel for now. Maybe I'll
add some particles later to make them stand out.
2017-01-29 16:26:15 -08:00
Ekdohibs
2debc3510e Add teleports to enter boxes from the main lobby as well 2017-01-29 14:37:50 +01:00
Ekdohibs
2d4bb9dd71 Add exit teleport that returns player to lobby 2017-01-29 14:09:26 +01:00
Ekdohibs
df41994ba7 At barrier at the top of new boxes 2017-01-29 12:10:52 +01:00
Ekdohibs
eba1c6550a Add possibility to import or export boxes to file; update builtin boxes to use new format. 2017-01-29 11:56:21 +01:00
Ekdohibs
8a691628bf Revert part of "Add teleport to exit lobby". 2017-01-28 23:32:17 +01:00
Ekdohibs
d9354a25b7 Add teleport to exit lobby. 2017-01-28 22:50:19 +01:00