forked from xyqyear/auto-crossbreeding
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathconfig.lua
83 lines (67 loc) · 2.73 KB
/
config.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
local config = {
-- be aware that each config should be followed by a comma
-- the side length of the crossbreeding farm
-- the recommend value is 9 because it's crop-matron's working area size.
farmSize = 6,
-- the side length of the new crop storage farm
-- the recommend value is 13 because it's just enough to hold all the crops in GTNH
storageFarmSize = 9, -- don't change
-- below which percentage should the robot to charge itself.
needChargeLevel = 0.2,
-- the coordinate for charger
chargerPos = {0, 0},
-- the coordinate for the container contains crop sticks
stickContainerPos = {0, 1},
-- the coordinate for the farmland that the dislocaotr is facing
relayFarmlandPos = {0, 2},
-- the coordinate for the transvector dislocator
dislocatorPos = {0, 3},
-- the coordinate for the container to store seeds, products, etc
-- has no effect unless you turn on "takeCareOfDrops" flag.
storagePos = {0, 5},
-- the slot for spade, count from 0, count from bottom-right to top-left
spadeSlot = 0,
-- the slot for binder for the transvector dislocator
binderSlot = -1,
-- the slot for crop sticks
stickSlot = -2,
-- to which slot should the robot stop storing items
storageStopSlot = -3,
-- Max breed round before termination. Used on server to avoid left-alone robot endlessly
-- consuming resources. Set to nil for infinite loop.
maxBreedRound = 1000,
-- flags
-- if you turn on this flag, the robot will try to take care of the item drops
-- from destroying crops, harvesting crops, destroying sticks, etc
-- if you are using this scrip set to do everything, there isn't realy any point to use this.
-- this option and the option below isn't actively maintained because I don't use this function.
takeCareOfDrops = true,
-- if you turn on this flag, you need to prepare a storage farm
-- the recommend size is 13, which you change above.
keepNewCropWhileMinMaxing = false,
-- if you turn on this flag, the robot will only choose the crop with
-- gr > 21, < 24, ga == 31, re == 0 to spread.
-- helpful while debuging.
bestStatWhileSpreading = true,
-- assume there is no bare stick in the farm, should increace speed.
assumeNoBareStick = true,
-----------Do Not Change Zone------------
multifarmCentorOffset = {-3, 4},
multifarmDislocatorPoses = {
{2, 0},
{0, -2},
{-2, 0},
{0, 2}
},
multifarmRelayFarmlandPoses = {
{3, 0},
{0, -3},
{-3, 0},
{0, 3}
},
multifarmSize = 20,
elevatorPos = {0, 4}
}
config.farmArea = config.farmSize^2
config.storageFarmArea = config.storageFarmSize^2
return config