966 Commits

Author SHA1 Message Date
Athozus
c7a27a7435
Add energy demand to machine infotexts (#317)
* Add a new line in machines infotext to show the current demand

* Fix translations

* Remove i18n.py (mistake)

* Add infotexts for non-register_base_machine()-based machines

* Move demand infotext at the beginning when demand is constant
2023-07-22 20:11:09 +03:00
OgelGames
9067f1a38c
Limit quarry y-offset by max depth (#316)
Also fixes typo with setting y-offset via digilines.
2023-07-22 14:45:03 +10:00
OgelGames
53cfd40f72
Quarry y-offset and fixes (#315) 2023-07-02 13:44:08 +10:00
OgelGames
a4a3be5466 add icon to i3 and craftguide recipe types
for some reason I didn't think to check if they also supported recipe icons, turns out they do
2023-06-30 17:26:44 +10:00
OgelGames
4257537e07
Add version info (#314) 2023-06-27 21:44:52 +10:00
OgelGames
6c09f739c4
Recipe enhancements (#311) 2023-06-27 18:29:50 +10:00
OgelGames
395aba802a
Use vizlib for quarry visualization (#308)
use vizlib for quarry visualization
2023-06-06 21:16:44 +10:00
OgelGames
fd2844ea44 purge quarry every 99 digs instead of 100
so only one stack needs to be ejected when digging through a single material

thanks Huhhila :)
2023-02-13 21:28:31 +11:00
OgelGames
5040260783 fix copypaste typo
fixes #302
2023-01-25 14:33:49 +11:00
SX
a417a6b154
Battery box, no protect complaint without fields (#299)
* Battery box, no protect complaint without fields

* Fix brain fart
2023-01-14 20:30:42 +01:00
The4codeblocks
6e94b20b25
Fix digiline rules for HV reactor (#300)
Fix digiline rules
2023-01-14 20:27:29 +01:00
Buckaroo Banzai
a5d05c132c
license/readme fixes (#298)
Co-authored-by: BuckarooBanzay <BuckarooBanzay@users.noreply.github.com>
2023-01-13 07:32:03 +01:00
OgelGames
0173629ca5 add compatibility fix for #296 2022-12-13 13:07:51 +11:00
OgelGames
1546aa01ee fix quarry can_dig check
oops
2022-11-21 21:45:32 +11:00
OgelGames
755d912a98 add check for new quarries in conversion lbm 2022-11-19 22:26:50 +11:00
SX
0cbbacc357 Fix tests: use VoxelArea with Mineunit 2022-11-19 15:39:09 +11:00
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