146 Commits

Author SHA1 Message Date
Auke Kok
57f34f6885 Ask the player before resetting series progress.
This removes the forced teleport to the lobby when you
step on a plate. Just like with the creator plate, I nudge
the player back a node to make sure we don't trigger a ton
of plate events.

The formspec explains what resetting means, and why players
likely do not want this - they should just come back for new
entries to the list at a later time.

Once reset the plate immediately puts the player in the first
box of the series again.
2017-09-04 16:24:26 -07:00
Ekdohibs
79b0e39a04 Add status to admin edit tab 2017-05-04 04:51:47 +02:00
Auke Kok
0451c7324a Retain old privs when granting create. 2017-04-30 12:32:35 -07:00
Ekdohibs
6c836a7b5f Allow stopedit not saving 2017-04-30 20:32:50 +02:00
Ekdohibs
54b40f2bc4 Allow creating other lobbies 2017-04-30 20:27:39 +02:00
Auke Kok
dd5d507bde Tutorial: custom lobbies
These lobbies are only assigned before the player has
completed the lobby. If the tutorial isn't required, they
are also omitted.
2017-04-29 22:26:55 -07:00
Auke Kok
10106a5e13 Teleport to a special location once.
This happens when finishing the tutorial, and is a one-time
event when exiting the last lobby. The state is not persistent
for that reason.
2017-04-29 21:53:23 -07:00
Auke Kok
2a7254c489 Add conf mod to cache all settings.
Remove the need to call setting_get() all the time for no
reason, and parsing it.

All settings are now consolidated into a single namespace `conf`.
2017-04-29 20:57:58 -07:00
Auke Kok
0cd65177db Track player tutorial completion in attributes.
Also grants 'create' priv when completing the tutorial
entirely, and marks it done.
2017-04-29 00:03:30 -07:00
Ekdohibs
41f170d851 Only report stars & icons when a player uses the exit teleport 2017-04-16 02:48:51 +02:00
Ekdohibs
e2c36b5c30 Fix offsets 2017-04-15 18:42:44 +02:00
Ekdohibs
6890eb8898 Fix one more crash 2017-04-15 18:34:44 +02:00
Ekdohibs
6b2be5c272 Prevent crash when editing lobbies 2017-04-15 18:24:06 +02:00
Ekdohibs
9a0ffdb97c Count ratings by players, don't store anything yet 2017-04-15 18:14:16 +02:00
Auke Kok
3aea61a890 Fix misc errors, luacheck warning.
Turns out text fields are always sent on change, so always
process them and do not elseif out after one text field change
processing cycle.
2017-04-14 23:49:14 -07:00
Auke Kok
be083bec71 Set skybox when editing a box too. 2017-04-13 22:43:15 -07:00
Auke Kok
7e0572e7dd Possible crash. 2017-04-13 22:06:03 -07:00
Auke Kok
d69b74294b Skyboxes: select when editing!
Modified (stripped down) skybox mod. No priv or chat command,
hard coded 0 is default (off) skybox. Store by numerical value
in box meta.
2017-04-13 21:30:44 -07:00
Ekdohibs
a411648a6c Very basic admin interface for boxes; make some signs update on box exit to disaply player time 2017-04-12 05:20:16 +02:00
Ekdohibs
a79a117e32 Add nodes that can't be pushed by pistons, use them for box walls. 2017-04-12 03:40:25 +02:00
Ekdohibs
21a89263fb Try to prevent falling when entering a box. 2017-04-08 18:13:12 +02:00
Auke Kok
a2ef429ae0 Allow anyone to /enter boxes. 2017-03-22 21:41:45 -07:00
Ekdohibs
e89e0cde42 Add create priv 2017-03-21 04:56:12 +01:00
Ekdohibs
00bc7b46a8 Report players as finishing a box when they exit it instead of when they open the exit door. 2017-03-21 04:02:02 +01:00
Ekdohibs
5268f9328b Add /series_remove command 2017-03-21 02:54:38 +01:00
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