88 Commits

Author SHA1 Message Date
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
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