Commit Graph

41 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
Gabriel Pérez-Cerezo
c6611fdede Fix no fuel bug, fix rotation axles and simple controllers being single-use. 2022-10-29 21:45:08 +02:00
tuedel
843dbd2276
Replace deprecated function calls (#70) 2020-08-12 21:15:36 +02:00
Thomas Rudin
445140abaa limit size of the digtron with config option: digtron_size_limit, default to 1000 nodes (#52) 2019-06-09 23:15:27 -06:00
tuedel
d41190a842 execute_downward_dig_cycle: Add missing parameter (#45) 2019-03-17 10:32:35 +01: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
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
94ccab9c39 add automation option to item ejector 2017-10-21 22:29:18 -06:00
FaceDeer
d480b9bf2f mark_diggable needed a player reference to dig steel doors without crashing 2017-10-15 12:54:48 -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
FaceDeer
7ef5e3c892 fix particle effect settings check 2017-10-10 20:55:29 -06:00
FaceDeer
06a2ba85e3 various tidies and tweaks to technic support 2017-10-10 20:33:56 -06:00
h-v-smacker
6290e57d8f Support for RE batteries for fuel 2017-10-10 22:02:35 +03:00
FaceDeer
860890b100 update localization 2017-09-19 23:44:59 -06:00
FaceDeer
46bffd82d3 standardize config settings 2017-09-12 00:20:52 -06:00
FaceDeer
99420acb69 add extrusion capability to build heads 2017-09-10 18:58:25 -06:00
FaceDeer
c57582e775 Internationalization support
What a lot of strings.
2017-02-04 23:08:38 -07:00
FaceDeer
bfa9af888a Add a "stop block" setting to auto-controller 2017-01-27 19:40:10 -07:00
FaceDeer
1becf78dee Traction revamp. Digtrons can now ignore traction when moving down, and pushers ignore traction entirely. 2017-01-22 11:06:37 -07:00
FaceDeer
5008943d94 Ensure rounding never brings fuel_burning display below 0 2017-01-21 01:46:44 -07:00
FaceDeer
68a83a7a8d Switch user-facing strings to use the word "block" instead of "node" 2017-01-20 00:19:33 -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
51c5e9b641 Diagonal movement setting for the auto-controller. 2017-01-14 16:58:37 -07:00
FaceDeer
f0e09f136a Add dual digger heads for eventual use with diagonal movement 2017-01-13 23:20:59 -07:00
FaceDeer
0dadeb054e missed a debug call 2017-01-12 01:11:28 -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
9f13928884 Merge remote-tracking branch 'refs/remotes/origin/master' into layout-refactor 2017-01-11 08:38:02 -07:00
FaceDeer
f665f430fc fix bug in player-movement code, and also turn controller tints into a texture for easier modding by end users 2017-01-11 08:02:40 -07:00
FaceDeer
2912dc34b8 Turn layout into a class. 2017-01-10 00:29:09 -07:00
FaceDeer
eaae4276fc removing the old get_all_digtron_neighbours
This is basically working, but still needs revisions to take advantage
of the new information being stored in the image data. It should be
possible to do all the temporary inventory work directly on the image
file so that no put-back-in-inventory steps will be needed any more.
Much nicer.
2017-01-08 23:52:36 -07:00
FaceDeer
38e1cbc41e Eliminate another minor code redundancy 2017-01-08 22:19:49 -07:00
FaceDeer
7af220009b Just moving some code around in preparation to adding a "lateral shunt" option to the auto-controller 2017-01-08 21:34:27 -07:00
FaceDeer
d7e5309833 Added a rotation controller
Well that was a lot of work. Also, switched the "waiting" timer
management to the actual on_timer system - I noticed that minetest.after
wasn't persisting through server shutdown and restart, that could put a
controller in a "broken" state.
2017-01-08 01:23:10 -07:00
FaceDeer
e704249735 Auto-controller will keep trying if it encounters an unloaded node, this is a condition that can spontaneously self-correct 2017-01-07 17:00:15 -07:00
FaceDeer
e43c5d3974 Splitting some code files into more manageably-sized chunks. 2017-01-07 09:52:39 -07:00