891 Commits

Author SHA1 Message Date
SX
6bbe8e1da5 Fix SC/build/dig bugs, some cleanup 2020-10-31 04:43:10 +02:00
SX
8c5aca5856 Net building tests
Fix few cable place/dig issues

Tests for machine build/dig

Fix machine build/dig bugs

Fix test for machine building

Fix machines acting like cables when placed

Inline fixtures for building/digging tests

fix ignored luacheck warnings

(#105)

fix long lines

(#105)

Add more tests for bugs found

Fix tests, add minetest.get_us_time (implement using socket.gettime)
2020-10-31 04:42:24 +02:00
SX
16f0683c21 Network node placement, utilize locals for frequent names
(#95) Place/remove network nodes. Cleanup sw_pos

(#96) SC infotext / reduce timeout ABM workload
2020-10-31 04:41:45 +02:00
SX
5efafaceb9 (#100) Add compatibility hack for digtron 2020-10-31 04:40:05 +02:00
SX
c6aa02897b Network handles timeouts, remove second switch ABM 2020-10-31 04:38:45 +02:00
SX
11fe7a7bf7 Add machines to all_nodes, no holes in arrays, check if node is added already
Comment out debug prints

Network node place/dig, simple remove_network test

Luacheck warnings

Fix network check

Fix overridden global table
2020-10-31 04:38:21 +02:00
SX
193447ea20 Tests for network constructor
Cleanup network.lua

Add minetest vector.lua

Add tests for network constructor
2020-10-31 04:38:01 +02:00
SX
f66c644fce Remove metadata for supply,demand,battery_count,battery_charge,battery_charge_max
Remove switching station from networks

Disable few debug prints, add removed machines to LBM

clear_networks refatoring #95

Functions remove_network_node and add_network_branch #95

Fix undef network_id, remove flatten #95
2020-10-31 04:37:21 +02:00
SX
c08732cd87 Fix digiline event and luacheck warnings
Add fake get_modpath for busted
2020-10-31 04:37:12 +02:00
SX
a259576894 Network refactoring, proper multi switch support WIP
Update network utils, globalstep use networks, update switch ABM

Removing switching stations from network
2020-10-31 04:36:26 +02:00
SX
79233d764a Add busted unit testing for technic
Fix test framework and luacheck, Add metadata cleanup ABM

Added busted and contentdb badges
2020-10-31 04:35:35 +02:00
SX
7a4826e77d Move basic global network funcs to network.lua 2020-10-31 04:33:20 +02:00
SX
761cd3e14b Add compatibility hack for digtron (#102)
* #100 Add compatibility hack for digtron
* Do not use function introduced in network-ng branch
* #100 Timeout check back to 1 second
2020-10-20 19:42:59 +03:00
OgelGames
b488aa081a add shift-click support to constructor formspec
constructor needs to be reworked to use only one inventory to make this better, but it works

closes #103
2020-10-19 14:57:15 +11:00
SX
b722a9f004 #97 Add LV & MV digi cables 2020-10-13 14:37:14 +02:00
SX
16ebb33c84 Merge pull request #80 from mt-mods/switching
Switching updates
Better than what it was, many bugs introduced in my last PR fixed. Power monitor is simply better. Some new checks for switch activation/deactivation.
2020-09-26 00:13:19 +03:00
SX
6a9212eddd Cleanup caches immediately when new switching station placed 2020-09-20 18:21:34 +03:00
SX
22dd13d622 Do not activate new switch if another is active already 2020-09-20 16:01:47 +03:00
SX
97de34b2f4 Overload skip PR+RE nodes 2020-09-20 13:00:17 +03:00
SX
3981ad18e7 #77 Revert early exit on overload, update overload 2020-09-20 02:01:52 +03:00
SX
ad362a6ecc Remove Power monitor from network #76 not actual machine anymore 2020-09-19 22:34:20 +03:00
BuckarooBanzay
ffc0bb5fa0 remove duplicate after_place_node 2020-09-11 10:37:43 +02:00
BuckarooBanzay
67ff93a865 Merge branch 'master' of https://github.com/minetest-mods/technic 2020-09-11 10:36:34 +02:00
auouymous
57f6815f61 Constructor: Add protection check (#564)
Check if the player who placed constructor can access protected positions before placing or removing nodes.
2020-09-09 18:44:12 +02:00
pull[bot]
efadac10ba Merge pull request #85 from minetest-mods/master
[pull] master from minetest-mods:master
2020-09-07 21:39:09 +00:00
auouymous
264ddc1f22 Restore recipe for bronze block to ingots (#566) 2020-09-07 17:41:34 +02:00
David Leal
b39c410d3c Fix warning reported by LuaCheck (#563) 2020-09-05 18:54:37 +02:00
SX
47cda2d81e Make node_timeout local 2020-09-05 15:14:54 +03:00
SX
b63bfe683e Reduce meta usage, clean cable cache on overload #76 #77 2020-09-05 15:09:32 +03:00
wzy2006
f966046575 Add files via upload 2020-09-05 10:46:10 +02:00
SX
22599b7dd5 Reduce meta, fix network id #76 #77 2020-09-05 11:26:33 +03:00
SX
66f9705ac2 Remove print, add comment 2020-08-22 21:27:53 +02:00
SX
3d12f8966c Machines with multiple networks causes switching overload 2020-08-22 21:27:53 +02:00
BuckarooBanzay
1b5a327d8e fix formspec issue in admin anchor and set meta-fields in mesecons effector
fixes #72
2020-07-23 13:50:03 +02:00
Buckaroo Banzai
5b8557821e refactor supply converter enabling 2020-07-21 23:05:25 +02:00
Alexander Ried
5f9cfc7caf fix: touch disabled switching stations
Otherwise the "switching station reenable abm" (see file
switchting_station.lua) will reenable the disabled switching station at
its next run.
2020-07-21 19:48:53 +02:00
Buckaroo Banzai
1049a02402 add compatibility case for #71 2020-07-21 19:46:59 +02:00
Alexander Ried
340b22868f Add digiline interface to quarry
This adds a digiline interface that can be used to start, stop and restart, set the radius and get the current status.
2020-07-13 14:41:44 +02:00
Alexander Ried
e9dc9780ff Fix quarry rotation (#68)
Previously the model was rotated but the dig position of the quarry was
not updated. If the player did not restart the quarry through the
formspec, it dug at the previous location.
2020-07-06 12:59:21 +10:00
OgelGames
6d19648cff add obsidian+bucket -> lava bucket alloy recipe 2020-07-01 20:57:04 +10:00
Alexander Ried
1f2025a152 Fix server crash on anchor placement (#67) 2020-07-01 18:11:14 +10:00
Alexander Ried
08c3f8cb69 Add documentation for power monitor digiline interface 2020-06-30 15:06:05 +02:00
Alexander Ried
0645e4c1f6 Add digiline interface to power monitor
The power monitor can now be queried for information about the network. They
are retrieved from the associated switching station.

Also export information about the attached batteries.
2020-06-30 15:06:05 +02:00
Alexander Ried
33bc6c506d Add digiline rules to inactive reactor
acd16b133157fdccb8f46a0f6aa3e50a38a6ce20 added the rules only for active
reactor.
2020-06-30 14:07:34 +02:00
BuckarooBanzay
bcb42bab99 Merge remote-tracking branch 'origin/upstream' 2020-06-29 10:31:23 +02:00
KaylebJay
1da2a7f275 Drill and laser: call node-specific on_dig (#556)
This properly digs nodes that have a custom on_dig function specified. For normal nodes, the behaviour is kept the same.
2020-06-27 17:29:50 +02:00
David Leal
c678af2ce9 Remove node_ownership support, cleanup (#560) 2020-06-24 21:14:04 +02:00
KaylebJay
c653171893 Add external machine registration support (#557)
New 'technic.register_base_machine' definition table value: 'modname' (defaults to current run mod)
2020-06-24 21:12:25 +02:00
Buckaroo Banzai
538c5dd708 remove stray prints 2020-06-23 14:01:03 +02:00
SX
acd16b1331 Nuclear reactor conduct digilines above/below 2020-06-23 06:40:10 +02:00