857 Commits

Author SHA1 Message Date
OgelGames
062d2b4f35 replace deprecated current_name in formspecs (#114) 2020-11-09 22:41:05 +11:00
SX
54f0009b8e (#123) Mitigation for invalid ABM call crash 2020-11-09 04:45:05 +02:00
SX
76a135d557 Fix digtron HV connector again (broken in #113) (#121)
Co-authored-by: SX <50966843+S-S-X@users.noreply.github.com>
2020-11-08 00:21:14 +02:00
OgelGames
753bc1c4d8 injector and machine formspec fixes
based on two upstream commits in #89
2020-11-06 20:57:03 +11:00
SX
968c64b415 Optimize machine run loops. Battery box reduce node swapping, simpler formspec, no stack splitting, default digiline channel empty (#113)
* Battery cable check is broken, always run batteries

* (#108 #112) Optimize run loops, reduce node swapping, simpler formspec, no stack splitting, default digiline channel empty

Co-authored-by: SX <50966843+S-S-X@users.noreply.github.com>
2020-11-05 14:50:07 +02:00
SX
6a777fbeb9 Use technic.conf for all technic mod settings, update admin commands, some cleanup, averages for network lag detection (#111)
* Configs to correct place, use moving average for net lag, improve admin commands

* Fix luacheck warnings

* Handle file paths, missing cfg file and Settings:set simlar way engine does

* Quarry and radiation settings to technic.conf

Co-authored-by: SX <50966843+S-S-X@users.noreply.github.com>
2020-11-05 12:39:49 +02:00
BuckarooBanzay
7e59c1c3d7 add minetest.get_current_modname() to fixture 2020-11-05 11:42:22 +02:00
OgelGames
50e69217bd remove more excluded files from luacheck 2020-10-31 16:39:27 +11:00
SX
7661ea582d Fix digtron again after removing last SC hacks 2020-10-31 04:43:37 +02:00
SX
93c509d1d9 Better tests for SC placement between networks 2020-10-31 04:43:37 +02:00
SX
7b658a4291 Do not add duplicates to PR_nodes when cable placed near SC 2020-10-31 04:43:37 +02:00
SX
1a83a03ad0 Test SC digging for nil cable network use
Check network table before attempting to use it
2020-10-31 04:43:35 +02:00
SX
9887a5950b Remove global dig/place handlers. Better multi tier support for dig/place
Fix on_construct/on_destruct registration
2020-10-31 04:43:24 +02:00
SX
977913c785 Basic tests for SC, cleaner world fixture management 2020-10-31 04:43:24 +02:00
SX
d206956810 Destroy network if ref switch disappears, cleanup switching station code
Remove rest of SP_nodes from code, it does not contain anything

Reset switch infotext, export machine_tiers

Add tests for cable building between active networks

Remove all networks when cable is placed between networks

Fix SC connectivity issues
2020-10-31 04:43:16 +02:00
SX
bdf8d2e0cc Make default_timeout dynamic, remove power_monitor from machine group 2020-10-31 04:43:10 +02:00
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