[0.13.4] item size change not reflected in LuaTransportLine?

Bugs that are actually features.
CmdrKeen
Long Handed Inserter
Long Handed Inserter
Posts: 98
Joined: Tue Sep 29, 2015 9:03 pm
Contact:

[0.13.4] item size change not reflected in LuaTransportLine?

Post by CmdrKeen »

item size changes to seem to of broken LuaTransportLine::insert_at_back(items)
Attachments
compoundsplitters_0.2.2.zip
(69 KiB) Downloaded 86 times
Rseding91
Factorio Staff
Factorio Staff
Posts: 15908
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [0.13.4] item size change not reflected in LuaTransportLine?

Post by Rseding91 »

Can you give screenshots and a test save + steps to reproduce what you're thinking is an error?
If you want to get ahold of me I'm almost always on Discord.
CmdrKeen
Long Handed Inserter
Long Handed Inserter
Posts: 98
Joined: Tue Sep 29, 2015 9:03 pm
Contact:

Re: [0.13.4] item size change not reflected in LuaTransportLine?

Post by CmdrKeen »

sorry about the shortened initial bug report, there was supposed to be more there. (remind me not to bug report when sleepy...)

the changes appear to alter how frequently items can be placed on belts:

expected behavior, seen in 0.13.0:
expected behavior (0.13.0)
expected behavior (0.13.0)
13.0.jpg (135.71 KiB) Viewed 1716 times
behavior in 0.13.4:
behavior in 0.13.4
behavior in 0.13.4
13.4.jpg (138.11 KiB) Viewed 1716 times
save file used:
compoundsplitters2-2.zip
(2.95 MiB) Downloaded 86 times
(turn the c-combinator to on to start test)
Rseding91
Factorio Staff
Factorio Staff
Posts: 15908
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [0.13.4] item size change not reflected in LuaTransportLine?

Post by Rseding91 »

The change to transport line spacing was *so* incredibly tiny. less than half a pixel per transport belt. Nothing that could possibly have the effect you're seeing in those screenshots.
If you want to get ahold of me I'm almost always on Discord.
Rseding91
Factorio Staff
Factorio Staff
Posts: 15908
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [0.13.4] item size change not reflected in LuaTransportLine?

Post by Rseding91 »

What you're experiencing is due to how you insert: can_insert_at_back returns true if there's sufficient space for the item. The belt only moves so fast so it moves *just* not far enough that it can't fit another item on the belt 1 tick later.

2 ticks later it can but now there's 9/10ths of an item room between them and so you get what you're seeing.
If you want to get ahold of me I'm almost always on Discord.
CmdrKeen
Long Handed Inserter
Long Handed Inserter
Posts: 98
Joined: Tue Sep 29, 2015 9:03 pm
Contact:

Re: [0.13.4] item size change not reflected in LuaTransportLine?

Post by CmdrKeen »

This actually is a bug stemming from 0.13.3 changes:
Increased the distance between items on the belt from 0.28 to 0.28125. This way the the circuit network pulse for items will be every 9/4.5/3 ticks for normal/fast/express compressed belts. (27686)
I fixed the problem by changing insert_at_back() to insert_at((1-0.00125),cS)

I'm not sure what other api functions in LuaTransportLine are impacted by the change. can_insert_at_back() for one appears unaffected.
Post Reply

Return to “Not a bug”