Robot World Continued


Ability to customize the performance of your robots, such as speed, range, battery size, and more. Setting to use robots early. Setting to enable quick start mode. New robotics technologies. And more!

2 months ago
0.18 - 1.1
20.0K
Logistics Logistic network

b New settings not correct.

4 years ago

New Settings adjustments are not working out to be in line with vanilla power ratios:
vanilla robots:
1.5mj energy capacity
(logistic)
18kW max consumption,
15kW move consumption,
(construction)
21kW max consumption,
18kW move consumption.

v0.18.2 mod settings:
5mJ energy capacity,
(logistic)
315kW max consumption,
15kW move consumption,
(construct)
318 kW max consumption,
18 kW move consumption.

If you compare the unmodified to modified data structure you can see that energy per tick is not being set properly:
unmodified:
{
["logistic-robot"] = {
energy_per_move = "5kJ",
energy_per_tick = "0.05kJ",
max_energy = "1.5MJ",
max_health = 100,
max_payload_size = 1,
max_to_charge = 0.95,
min_to_charge = 0.2,
minable = {
mining_time = 0.1,
result = "logistic-robot"
},
name = "logistic-robot",
}
}
{
["construction-robot"] = {
energy_per_move = "5kJ",
energy_per_tick = "0.05kJ",
max_energy = "1.5MJ",
max_health = 100,
max_payload_size = 1,
max_to_charge = 0.95,
min_to_charge = 0.2,
minable = {
mining_time = 0.1,
result = "construction-robot"
},
name = "construction-robot",
}
}

modified:
{
["logistic-robot"] = {
energy_per_move = "5kJ",
energy_per_tick = "5kJ",
max_energy = "5MJ",
max_health = 100,
max_payload_size = 1,
max_to_charge = 0.95,
min_to_charge = 0.2,
minable = {
mining_time = 0.1,
result = "logistic-robot"
},
name = "logistic-robot",
}
}
{
["construction-robot"] = {
energy_per_move = "5kJ",
energy_per_tick = "5kJ",
max_energy = "5MJ",
max_health = 100,
max_payload_size = 1,
max_to_charge = 0.95,
min_to_charge = 0.2,
minable = {
mining_time = 0.1,
result = "construction-robot"
},
name = "construction-robot",
}
}

The bug is in the regex matcher. I will submit a patch.

4.309 Script @robotworld-continued/data-final-fixes.lua:7: SRC: 1.5MJMATCHED: 5MJ
4.309 Script @robotworld-continued/data-final-fixes.lua:7: SRC: 5kJMATCHED: 5kJ
4.309 Script @robotworld-continued/data-final-fixes.lua:7: SRC: 0.05kJMATCHED: 05kJ
4.309 Script @robotworld-continued/data-final-fixes.lua:7: SRC: 1.5MJMATCHED: 5MJ
4.309 Script @robotworld-continued/data-final-fixes.lua:7: SRC: 5kJMATCHED: 5kJ
4.309 Script @robotworld-continued/data-final-fixes.lua:7: SRC: 0.05kJMATCHED: 05kJ

4 years ago

Thank you for the fix!!
All is merged and updated

New response