Anfilt's Belt Utilities

by Anfilt

Handy Utility Belts to make working with belts a little more compact or cleaner. Includes a lane balancer and lane swapper in all the base game speeds.

Content
2 years ago
1.1
1.55K
Logistics

g Mini balancers/swappers

2 years ago
(updated 2 years ago)

Hello mate, great mod, definitely a must have!

I was wondering anyways if it is possible to make the entities 1x1 (like miniloaders).

Also had a look at your code and the other discussion about UPS, the approach is just brilliant, really clever workaround to limit CPU hogging, kudos!

2 years ago
(updated 2 years ago)

I have tried making them 1x1, it possible to squeeze two linked belts in 1x1 tile most the time since the smallest allowed size is 1 x 0.5 for a linked belt. However, when I was testing I found that for some reason I could not always do this on every tile I wished to place them down on. Probably something to deal with rounding or how the game internally handles collision masks for belts. I would need to more testing/research to see if I could get create_entity() to work a 100% of the time in 1x1 tile area.

2 years ago
(updated 2 years ago)

What about a placeholder with no collision?
Actually i think i'll do some tests as well as i really like the inner workings of this mod and i'm pretty sure there is a way to get it right.

Also another question, do the entities get created at the same coordinates on the hidden surface?

2 years ago
(updated 2 years ago)

What about a placeholder with no collision?
Actually i think i'll do some tests as well as i really like the inner workings of this mod and i'm pretty sure there is a way to get it right.

Also another question, do the entities get created at the same coordinates on the hidden surface?

So belt entities are required to have a collision mask by the game, and belt entities are on the few entities where overlapping collisions masks are not ignored when using create_entity()

The entities are created on different spots on the hidden surface. There is one surface per gentility type.

1 year, 9 months ago

Any update on this? Would be very cool if this entities could work having 1x1 size!

Thanks.

1 year, 9 months ago

Any update on this? Would be very cool if this entities could work having 1x1 size!

Thanks.

I did look into for a bit, but was unable to find a way to make 1x1 entity that would work properly. The game treats belts a little differently than other entities when it come to their collision masks. Probably was done for UPS reasons.

New response