950 Commits

Author SHA1 Message Date
Buckaroo Banzai
a7a47d2d90 Use voxel manipulator for LV lamp illumination
Co-authored-by: OgelGames <olliverdc28@gmail.com>
2022-11-19 15:39:09 +11:00
OgelGames
4dc85f2228 Use node timers to spread out LV lamp updates 2022-11-19 15:39:09 +11:00
Buckaroo Banzai
ebba32ad25
Add technic.register_cable_tier(name, tier) (#294)
Co-authored-by: BuckarooBanzay <BuckarooBanzay@users.noreply.github.com>
2022-11-18 15:21:54 +11:00
OgelGames
72753c9e67
Remove frames, power radiator and lighting (#290) 2022-11-16 15:49:53 +11:00
OgelGames
bd975163a6
Translation fixes and improvements (#289) 2022-11-15 15:30:39 +11:00
OgelGames
1b0512d3d7 restore correct behavior of quarry lbm 2022-11-15 02:04:47 +11:00
OgelGames
1686d89d15 fix quarry disabling via digiline not working 2022-11-15 01:13:45 +11:00
OgelGames
6929a646c5 fix quarry update lbm 2022-11-15 00:12:06 +11:00
OgelGames
d58afd8526
Quarry 3.0 (#288) 2022-11-13 14:01:33 +11:00
OgelGames
25b2d0fcdd clarify meaning of percentage in reactor infotext 2022-11-12 21:06:18 +11:00
OgelGames
dc95954853 fix quarries not being able to be disabled
how was this not noticed sooner?
2022-10-31 18:06:57 +11:00
OgelGames
5ad0a8c229
Use minetest.load_area everywhere (#287)
also change `technic.get_or_load_node` to return loaded node instead of nil
2022-10-31 12:40:17 +11:00
Buckaroo Banzai
45d4e239d5
Cache fake player creation and use minetest.load_area for quarry (#285)
cache fake_player creation / use `minetest.load_area` instead of technic vmanip helper

Co-authored-by: BuckarooBanzay <BuckarooBanzay@users.noreply.github.com>
2022-10-25 15:44:38 +02:00
Buckaroo Banzai
b4cde13412
refactor integration tests (#281)
* refactor integration tests

* set deprecated_lua_api_handling to 'error'

Co-authored-by: BuckarooBanzay <BuckarooBanzay@users.noreply.github.com>
2022-08-04 08:47:39 +02:00
OgelGames
5dbb061553 Fix craft recipe warnings (#283) 2022-08-03 22:40:36 +10:00
SX
6e12a05748 Add mesecons checkbox for quarry 2022-07-19 22:04:50 +02:00
SX
88b8a2bb17
Update power tool compatibility shims (#276)
* Update tool compatibility shims

* Tool compatibility tests

* No forced override if technic_get_charge or technic_set_charge is defined
2022-06-16 17:58:18 +03:00
SX
e943e4677a
Compatibility for technic_set_charge/technic_get_charge (#275) 2022-06-16 01:27:35 +03:00
SX
be5b7cf56e Interaction and API tests for power tools
Add some tests for charging and using tools

Fix tool spec, mod loading was updated

Tests using air as default node
2022-06-09 22:29:48 +03:00
SX
ab3a6c81ab Power tool compatibility shims
Digtron battery holder compatibility
2022-06-09 22:29:48 +03:00
SX
b300d3f5dc Use ephemeral sounds for tools 2022-06-09 22:29:48 +03:00
SX
3df86dd24b Add power tool API, refactor existing tools
Cleanup deprecated metadata access for tools

Fix mining drill translations

Remove deprecated power tool functions

Drop charge value completely

Ensure use_RE_charge always uses at least 1 point

Use precalculated wear factor, remove negative set_wear hack...

Use technic_max_charge instead of max_charge in item definition, accept both

Log errors instead of failing with invalid power tool stack

Metadata migration for prospector

Cleanup tool definition max_charge, get_RE_charge log warning for unknown stacks
2022-06-09 22:29:48 +03:00
Buckaroo Banzai
b26132a98b
remove monitoring metrics (#266)
* remove monitoring metrics

* remove unused counter var

Co-authored-by: BuckarooBanzay <BuckarooBanzay@users.noreply.github.com>
2022-05-04 15:00:30 +02:00
SX
99b9001319
Use switching station ref counters (#265)
* Use switching station ref counters

* Fix luacheck and switch supply/demand reporting

* Make switch_index local, fix switching station infotext

* Remove unnecessary variable
2022-05-04 14:58:20 +02:00
SX
4434025c90
Update API documentation (#237)
* API documentation
* Fix switching station description
2022-04-22 15:50:38 +03:00
Jordan Leppert
c6e605ceec
Particle effect when quarry digs a node (#257)
* Magenta particle explosion effect when quarry digs a node

* Option to enable dig particle effects, disabled by default. Reduced particle count to 20.

* Changed dig particle effect - a particle starts in each of the 8 corners of the cube and move to the middle

* Only generate dig particles if network lag is < 35000

* Replaced quarry dig effect with a particle spawner - the node's particles stream towards the quarry, stopping just in front of it, like they're being sucked up.

* Simplifying dig particle vector maths using vector functions

* Fixing comment typo

* Dig particles now accelerate towards the quarry along a particular axis, causing them to approach the quarry in a curve. This also means they end inside the node in front of the quarry, which improves how the effect looks when digging deep down.

* Adding network to run_nodes call, using network passed through to check lag for quarry dig particles

* Missing local

* Missing local

* Using vector.new to copy a vector and make a 0,0,0 vector

* Update technic/machines/HV/quarry.lua

Co-authored-by: OgelGames <olliverdc28@gmail.com>

* Adding enable_quarry_dig_particles to README

* Renaming enable_quarry_dig_particles to quarry_dig_particles

* Reorganising quarry_dig_particles position in config list

* Missing comma

Co-authored-by: OgelGames <olliverdc28@gmail.com>
Co-authored-by: SX <50966843+S-S-X@users.noreply.github.com>
2022-01-20 15:38:06 +02:00
OgelGames
7e466e9b41 Fix crash when placing cable plates with replacer
basically the same fix as 39de284, that was removed in 28e0470
2022-01-13 23:38:18 +11:00
nixnoxus
a39a454c49
Move to MT 5.0.0+ translation system (#255)
* convert to `minetest.get_translator`

* fix material translation

* fix material translation

* Revert "fix material translation"

This reverts commit 35d0979d5828f481b6e53c04f20739983ba35087.

* update */locale/*

* `S("Chernobylite Block")`

* restore non-breaking spaces

* fix technic_chests/spec/api_spec.lua

* fix S(...)

* update technic/locale/

* update german translations

* fix placeholder `%s` in *.zh_CN.tr translations
2022-01-07 13:17:43 +01:00
SX
39d786918c Network code refactoring 2021-11-30 07:29:05 +02:00
SX
d6802c2a48 Update tests for network code refactoring
Drop coverage stats for sources outside of technic directory (technic_cnc, technic_worldgen)
Update technic API functions for tests (were exported just for tests, now part of API)

Move CNC tests, use shared fixtures for tests
2021-11-30 07:29:05 +02:00
SX
5aeeb273ca Tests for overload and important internal data 2021-11-15 11:45:19 +02:00
SX
8095dd9fc0 Update solar array nodenames for tests 2021-11-15 11:45:19 +02:00
SX
d15f7aa4f3 Add tests for custom machine registration 2021-11-15 11:45:19 +02:00
SX
28e047092b Update cable registration 2021-11-15 11:45:19 +02:00
SX
148a858103 Update common machine registration API 2021-11-15 11:45:19 +02:00
SX
6cee944770
Extended Mineunit tests (#208)
* Extended Mineunit tests

* Tests for Technic CNC

* Test node placement for all listed nodes

* Test cable plate placement
2021-11-06 09:12:08 +02:00
OgelGames
b3ee83f759 Fix dependencies
removed dependency on `screwdriver` and added `moreores` dependency
2021-11-02 03:28:12 +11:00
SX
e5e4cbe5a0 Fix mineunit tests for Technic and CNC (#226)
* Add modpaths, remove technic from CNC

* Add technic_cnc to error reporting
2021-10-24 17:03:46 +03:00
SX
513abc068a Change quarry partcile effect to use quarry texture (#221)
Fixes #210
2021-10-24 17:02:02 +03:00
SX
314d87b692 Remove duplicate function (#220)
Removed technic.sw_pos2network
2021-10-24 17:01:01 +03:00
OgelGames
4c998f0400 LV Lamp and LED improvements (#217)
* Optimized LV Lamp code. (generates less than 25% of the previous network "lag", based on my quick testing)
* Fixed LV Lamp code to prevent active and unpowered lamps from fighting when near.
* Added right-click toggle to switch LV Lamps on/off.
* Added inventory and wield images to `technic:dummy_light_source` node.
* Split LV Lamp and LV LED into separate files.
2021-10-15 21:49:28 +11:00
SX
3fef85cab0 Add technic_on_disable callback (#592) (#207)
This adds a new callback to trigger when the machine is no longer powered by the technic power grid. Also allows mods to override the infotext if needed.

Co-authored-by: sfence <sfence.software@gmail.com>
2021-09-11 13:46:19 +03:00
SX
54cd2a7bef Disable repair recipes for crystals and batteries (#205)
* Disable energy crystal tool repair recipe

* Disable RE battery repair recipe
2021-08-15 19:27:52 +03:00
SX
f0bf5999db Delete technic_concrete_block.png / Rename minetest.cfg (#202)
* Delete technic_concrete_block.png

* Rename minetest.cfg to minetest.conf
2021-08-09 13:05:57 +03:00
nixnoxus
05cbffbc3f Add alloying recipes for cheaper digiline cables (#198)
* cheaper recipes for lv,mv,hv digiline cable and plate

* Revert "cheaper recipes for lv,mv,hv digiline cable and plate"

This reverts commit d1ee15fc3afbf567c2050656e0799d07c9aef661.

* add config option to replace "technic:" recipes

* trailing whitespace removed

* Revert "trailing whitespace removed"

This reverts commit cc0f321cbb40b890e5f60443d7c676ba3d8036e9.

* Revert "add config option to replace "technic:" recipes"

This reverts commit 33c272f38ed2f7bd8d53b3b0d21034b973b586da.

* add alternative alloy recipes for lv,mv,hv digiline cable und plate

* longer alloying time for digi cables (3x)

* digi cable crafting recipes removed

* fix lint: line is too long (122 > 120)

Co-authored-by: SX <50966843+S-S-X@users.noreply.github.com>
2021-08-06 20:42:24 +03:00
fnordic
5b2e3d9970 fix for quarry digs until it finds something else than vacuum or air (#199)
Co-authored-by: joe <joe@cbook>
2021-07-30 16:00:58 +02:00
nixnoxus
ac64e0af88 Re-add recipe for wrench enabled by setting enable_wrench_crafting (#197)
* "enable_wrench = yes" adds the wrench recipe
* setting renamed to "enable_wrench_crafting"
2021-07-20 16:12:56 +02:00
OgelGames
86c50dc955 Fix and improve max_lag (#193)
* Monitor max lag from mod
* Add new max lag for technic_get_active_networks command

Co-authored-by: SX <50966843+S-S-X@users.noreply.github.com>
2021-07-12 00:28:20 +10:00
SX
a09d0927dc Revert "machines conduct digilines above (#194)" (#195)
This reverts commit 06c5de3a210903881ddb134b38490073aeb5be4e.
2021-07-08 22:44:03 +03:00
OgelGames
06c5de3a21 machines conduct digilines above (#194) 2021-07-08 22:45:49 +10:00