Commit Graph

32 Commits

Author SHA1 Message Date
Buckaroo Banzai
3e1c1ca208
add luacheck and ci workflow (#88)
* add luacheck and ci workflow

* fix another bunch

* more fixes

* more fixes

* regex magic

* add deps

* doc.lua special rules

* more regex magic

* final fixes

---------

Co-authored-by: BuckarooBanzay <BuckarooBanzay@users.noreply.github.com>
2023-06-19 07:44:40 +02:00
Thomas--S
eea743185d
Change after_dig_node() callbacks to supply metadata as table (#68)
Metadata was previously lost according to my testing.
Now, the behaviour will be as specified in Minetest's lua_api.txt.
2020-07-31 18:33:09 +02:00
FaceDeer
4b810fc584 removing collectgarbage() from layout creation 2019-06-28 15:56:27 -06:00
FaceDeer
e09f1b9f56 found a way for incomplete digtron layouts to be created 2019-01-13 16:02:41 -07:00
FaceDeer
8ea6d7eb70 collectgarbage hammer fix, and add some asserts to crash before corrupting anything in impossible situations. 2019-01-13 03:02:02 -07:00
FaceDeer
1d5d1d20df a little more optimization, and sounds when placing nodes on builders and diggers 2019-01-09 00:20:02 -07:00
FaceDeer
5c0700456c
Optimization of table allocation, more sophisticated entity damage (#37)
This pass cleans up a lot of unnecessary table allocation and disposal, which should help with memory usage and garbage collection.

It also adds some sophistication to the entity damage process from diggers, allowing items to be picked up into Digtron inventory.
2019-01-04 22:06:12 -07:00
Alex
cff5385881 Awards: Use custom triggers (#32)
* Awards: Use custom triggers

* Remove extra trigger

* Remove non-existent type

* Replace missed player arg
2018-12-23 19:06:49 -07:00
Alex
bcc2f64c2e Use updated awards API (#31)
* Use updated awards API

* Fix dig/place incrementing

* Use awards.player() in crates

* Use new 'dig' incrementor for digtron packing

* Only initialize tables if they dont exist

* Fix typo

* Remove init function, use checks instead
2018-12-14 00:48:41 -07:00
Thomas Rudin
d3397563ec Fix undeclared global variable warnings
Closes #26 (trivial)
2018-08-28 20:25:13 +02:00
shivajiva101
bdc7e8e4f2
fix crash vector
add nil check to prevent crash, fixes #17
2018-05-09 09:48:01 +01:00
FaceDeer
33995bc6ec attempt to recover from failure to write to map
There have been reports of large, distant-from-player Digtrons apparently failing to completely write their layouts to the map, resulting in an inconsistency.

This adds an attempt to brute-force a solution. When a map write fails it will be retried until it succeeds, or until 1 second elapses (at which point the write is aborted in a hopefully somewhat clean manner).
2018-01-07 13:38:25 -07:00
FaceDeer
fdde32283a add logging and crash-proofing for issue 17
A user has reported a crash that appears to involve a builder node (group 4) that lacks a "main" inventory somehow. This code prevents a crash in this circumstance and logs the node_image to hopefully identify the culprit.
2017-12-31 18:21:44 -07:00
FaceDeer
94ccab9c39 add automation option to item ejector 2017-10-21 22:29:18 -06:00
FaceDeer
abc7f2e414 fakeplayer for callbacks, switch to whitelist for on_place calls 2017-10-16 21:35:24 -06:00
FaceDeer
51b76e193d restoring "emergency abort" functionality to auto-controller 2017-10-15 00:44:12 -06:00
FaceDeer
d7270210d0 callbacks moved to after full Digtron layout write is finished 2017-10-15 00:33:54 -06:00
FaceDeer
d582f106aa finishing up technic power tap, other misc fixes 2017-10-12 22:53:30 -06:00
FaceDeer
65f5ac8520 add initial support for tapping technic power cables 2017-10-12 03:06:24 -06:00
h-v-smacker
6290e57d8f Support for RE batteries for fuel 2017-10-10 22:02:35 +03:00
FaceDeer
2b84b4a3da Was only testing controller node for player protection 2017-10-01 10:19:14 -06:00
FaceDeer
3bc0eb82fa add formspec auto-upgrade when layout is read 2017-09-19 23:13:31 -06:00
FaceDeer
46bffd82d3 standardize config settings 2017-09-12 00:20:52 -06:00
FaceDeer
c57582e775 Internationalization support
What a lot of strings.
2017-02-04 23:08:38 -07:00
FaceDeer
d962dd1654 Add a bunch of achievements via optional dependency on the Awards mod 2017-01-18 23:42:36 -07:00
FaceDeer
2078572811 Add crates for packing up, transporting, and unpacking digtron arrays 2017-01-15 16:12:07 -07:00
FaceDeer
51c5e9b641 Diagonal movement setting for the auto-controller. 2017-01-14 16:58:37 -07:00
FaceDeer
11ceefa358 add compatibility with the hopper mod, via the API I just added over in a fork of the hopper mod. Hopefully this API will be merged. 2017-01-13 01:17:05 -07:00
FaceDeer
9da077c9ef fix crash when auto-controller reaches unloaded nodes. 2017-01-12 14:51:57 -07:00
FaceDeer
9748fbdd5e Fix a bug in protection-testing when writing layout images to world 2017-01-12 01:10:14 -07:00
FaceDeer
e008aed60c Update axle to new layout class, drop dug items in the right place 2017-01-12 00:50:17 -07:00
FaceDeer
01fb71d2eb renaming class definition files 2017-01-10 00:32:08 -07:00