[2.0.35] Rail planner cannot use modded rail support items/entities

Bugs that are actually features.
half a cat
Inserter
Inserter
Posts: 41
Joined: Sun Jul 16, 2023 4:03 pm
Contact:

[2.0.35] Rail planner cannot use modded rail support items/entities

Post by half a cat »

The rail planner fails to build rail supports if the player inventory has only custom rail supports (not the one defined in elevated-rails). It behaves as if the player does not have any rail supports.

I expected the rail planner to use the items in the player inventory when building in non-ghost mode, so that modded rail supports work like built-in ones for typical gameplay. If there are multiple rail supports in the inventory, I expect it to choose one type in some predictable way.

The rationale for this expectation is that modded rail prototypes should work like built-in ones. In particular, when there is only one choice, the game should use it. I realize that choosing the best of multiple options would be a significant new feature, and I don't consider that to be part of this bug.

You can reproduce it with the attached save file. In front of the player, there is a chest and a span of elevated rail. Take the contents of the chest and use the rail planner to extend the elevated rail. Even though the chest contains rail supports, the rail planner fails to place any.
Attachments
factorio-current.log
(8.26 KiB) Downloaded 32 times
rail-support-demo.zip
(1.92 MiB) Downloaded 26 times
Rseding91
Factorio Staff
Factorio Staff
Posts: 15868
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [2.0.35] Rail planner cannot use modded rail support items/entities

Post by Rseding91 »

Thanks for the report. The items/entities that the rail planner will use are defined on the rail planner itself. The mod(s) you're using can adjust those if they'd like. https://lua-api.factorio.com/latest/pro ... otype.html
If you want to get ahold of me I'm almost always on Discord.
Post Reply

Return to “Not a bug”