Deadlock's Stacking Beltboxes & Compact Loaders


Adds minimalist 1x1 loaders and stacking beltboxes for 5x belt compression for ores, plates and some intermediate products

Content
16 days ago
0.17 - 2.0
102K
Logistics

g Change loading / unloading speed

5 years ago

Good day. As far as I understand, when calculating the speed of loading / unloading, the value is taken from the capacity of the conveyor. In the code of specific values of the change in speed, I did not find, only a reference to the conveyor. Why when changing the speed of the conveyor does not change the speed of loading / unloading? For my game I increased the speed of the conveyor to 60, but loading / unloading remained a maximum of 45. How can I fix this? Changed speed
local speed3 = 0.03125 * 4
data.raw ["transport-belt"] ["express-transport-belt"]. speed = speed3
Thanks in advance for your prompt response.

Доброго времени суток. Насколько я понимаю, при подсчете скорости загрузки/разгрузки значение берется из пропускной способности конвеера. В коде конкретных значений изменения скорости я не нашел, только отсылку к конвееру. Почему при изменении скорости конвеера не изменяется скорость загрузки /разгрузки? Я для своей игры увеличил скорость конвеера до 60, но загрузка/разгрузка осталась максимум 45. Как мне это можно исправить? Скорость менял
local speed3 = 0.03125 * 4
data.raw["transport-belt"]["express-transport-belt"].speed = speed3
Заранее спасибо за оперативный ответ.

5 years ago

The copy of the speed from the belt happens at the time that the loader is created (here). Since your code to update the speed is probably happening after the loaders copy that speed attribute, you should just need to update the speed of the loaders to match the speed of the belt after your data.raw["transport-belt"]["express-transport-belt"].speed = speed3 line.

This is the code that I added to the integration mod to work with the Double Speed Belts mod, and I'm pretty sure this is the same code you'll need to update the loaders to match your updated belt speed - you can probably paste it right in: https://github.com/shanemadden/factorio-deadlock-integrations/blob/master/prototypes/doublespeed.lua#L3

5 years ago

Thank. It really helped. But I am not a modeller, I don’t know where to insert it correctly:
data-updates.lua or data-final-fixes.lua?

5 years ago

Either should work, as long as it happens after you update the speed in your local changes - later in that same file or in data-final-fixes should work.

New response