2024-12-05 23:06:14|Myriagame |source:minecraft skins
This tutorial is set by the author's setting without permission.
As we all know, the hybridization of IC2 is very cumbersome, and it is troublesome to cultivate good seeds in the early stage.Here is a ready -made program. The robot provided to OC to simplify the hybrid process
Note that friends who have played GTNH should be clear that IC's OC automatic hybrid code has been written by big bosses.The code I provided here is my own version, as an OC practice
First of all
The figure is the size of my preset. In fact, the size of the field and the input and output box can be set.There are three preset boxes: the input box should be filled with hybrids in advance, and the remaining two boxes should be used for output.The robot is placed on a higher layer, and the charger can be placed below
Robots need: chassis, CPUs, graphics cards, keyboards, monitors, hard disks, EEPROM, container upgrade, item controller upgrade, geological analyzer.Given the lowest -level hard disk will be occupied by Open OS, and a higher -level hard disk needs titanium in GTNH, you may also need to consider a soft disk drive
Then open config.lua
config.inputchest = {x = 0, y = 1}config.outputchest = {x = 0, y = 2}
Config.trashchet = {x = 0, y = 3}
-The box coordinates, using the robot as the original point, move forward as the positive direction of the X axis, and the right of the Y axis to the right
--Inputchest, you should only store enough hybrid frames
--EUTPUTCHEST will output all other crops, products and qualified crops
--Trashchest will output all unqualified crops
config.grothmax = 20
config.gainmax = 30
config.Resistancemax = 0
-The crop attribute maximum value
The writing here is clear.The robot will take the coordinates and directions when you run the program as the origin. X represents the front and back, and y represents the right left.So the three prefabricated bids here are exactly the box coordinates above, that is, the original point to the right 1,2,3 grid
This is the preset of crop targets, that is, the robot will hybridize according to the growth/harvest/resistance of 20/30/0.Note that the setting here is relatively extreme. It is difficult to harvest the seed bag at level 30, and the plants often die, please weigh it yourself
config.g_w = 0.4config.a_w = 0.5
config.r_w = 0.1
-Crop attribute weight
config.g_d = 20^2
config.a_d = 30^2
config.r_d = 5^2
-The crop attribute standardization deviation is generally set to the square with maximum attribute value. If the maximum value of the attribute is 0, it is set to 5 square meters
config.ziel = 0.022
-The target score, the closer 0, the better
The weight and the denominator need to be modified according to the maximum value. Pay attention to weight and 1
The target score has been preset, the closer 0 the more stricter
config.robotmaxslot = 16-S the maximum slot of robot backpack
config.robotcommandlist = {
{sit = sides.front, step = 7},
{sit = sides.right, step = 1},
{sit = sides.right, step = 6},
{side = sides.left, step = 1}, {size = sizeS.Left, step = 6}
}
-An robot instruction list, SIDE is the direction of robot movement, STEP is the number of robots move.The robot turn first, and then move.No need to return to the origin, the robot will automatically return to the origin
-From every point of the hybrid field
-The initialization, the robot will automatically try to place a hybrid frame on each vacant position.And the robot will record all existing crops as the mother generation
The maximum slot means that the number of grooves inside the robot is not bigger, because the large capacity means that each round of retrieval will be slower.
Below is a robot instruction, which controls the robot's running trajectory. Each instruction will control the robot to turn first and then move forward.The meaning of these instructions is 7 square meters, turn right, one forward, turn right, forward 6 square meters, and so on, you can plan the field shape of the field by yourself
Then execute the main file, you will find four instructions
Print ("Welcome to use automatic hybrid system")Print ("1. Scan the farmland, this function is used to determine the position of the hybrid frame. Please first confirm the robot path in the setting file, input output and garbage tank, put a group of hybrids in the first grid of the robot, and equip CROP ++The shovel))
Print ("2. Re -scan the farmland. If your mother -in -law's hybrid frame has not changed, but the crop itself produces this item that has not been recorded.")
Print ("3. Preferred mode, this mode is only applicable to a single type of crops, and it will hybridize according to the settings in the setting file.")
Print ("4. Hybrid mode, this mode will only harvest children, and because of the hybrid characteristics, it will be harvested in the second stage of the countdown (because some crops cannot grow up in specific conditions).")
First of all, initialized robots need to perform scanning to generate FarmData.txt
Note that the equipment of the robot must place a small shovel of CROP ++, and the first grid must be placed enough hybrid frame
The robot will record all the preset crops on the path and record it as the mother generation. It will try to place the hybrid frame on all the spaces on the path.If the hybrid frame cannot be placed, it will be set as empty, so if you do n’t want to place a hybrid frame, do n’t place cultivated land below. The robot can recognize
Then open the preferred mode and enjoy it.The robot will go through and repeatedly screen out more consistent seeds
It should be noted that the robot will only remove the weeds of the child, and will not remove the mother's weeds.Therefore, in order to prevent the spread of weeds, be sure to use crop supervisory machines and provide sufficient herbicide
If you change the settings of the mother's or related crop attributes, you need to execute the 2 re -scan, the scan will not modify the settings of the child and the mother generation
As shown in the figure, you can consider using the GTNH world accelerator, but don't forget the herbicides
The principle is: the robot will give all the crops a score. Each cycle will have the worst score corresponding to the worst mother generation. The robot will destroy all the crops lower than the worst mother's agency and harvest the crops that are higher than the worst mother agent.And every time a mother generation will try to retrieve a higher score, replace it
Code:
Download address
National Service DNF Dark Ni
2025-01-28 09:19:27The new screenshot of the be
2025-01-28 09:18:57The 15th anniversary wallpap
2025-01-28 09:18:273DM Xuanyuan Sinicization Gr
2025-01-28 09:17:57French magazine is the first
2025-01-28 09:17:27The sneak game "Republic" wi
2025-01-28 09:16:57The story between humans and
2025-01-28 09:16:27Capture "Trinity 3: Artifact
2025-01-28 09:15:27Wind direction change "Myste
2025-01-28 09:14:57DICE's new project "Dream" w
2025-01-28 09:14:27Pirate Minecraft Skins
Minecraft Skins
2024-12-10 04:11:27Pirate Minecraft Skins
Minecraft Skins
2024-12-10 04:11:26Master Minecraft Skins
Minecraft Skins
2024-12-10 04:11:25King Minecraft Skins
Minecraft Skins
2024-12-10 04:11:25Guide Minecraft Skins
Minecraft Skins
2024-12-10 04:11:24Dark Knight Minecraft Skins
Minecraft Skins
2024-12-10 04:11:23Sparta Minecraft Skins
Minecraft Skins
2024-12-10 04:11:23Moncraft Skins of the War
Minecraft Skins
2024-12-10 04:11:22Red Witch Minecraft Skins
Minecraft Skins
2024-12-10 04:11:22Golden Cavaliers Minecraft S
Minecraft Skins
2024-12-10 04:11:22