[0.18.19] rail duplication when building curved rail with some damaged rail items

This subforum contains all the issues which we already resolved.
User avatar
jan1i3
Long Handed Inserter
Long Handed Inserter
Posts: 60
Joined: Sun Dec 09, 2018 1:36 pm
Contact:

[0.18.19] rail duplication when building curved rail with some damaged rail items

Post by jan1i3 »

What and How
When
  • Having 1 undamaged rail
  • At least 3 damaged rails
  • Using the undamaged rail to build a curved rail
Then
  • The undamaged rail is used to place the whole curved rail
  • The damaged rails remain unused
Which means 3 undamaged rails got duplicated / created out of nothing.
Demonstration
Demonstration
55ldJb4l25.gif (14.13 MiB) Viewed 3478 times
This is more of a general issue, something like
"the total item count of an item is used to determin if it's possible to place, but there are not enough items in all identical item stacks"
Reproduce

Code: Select all

/c
game.player.insert{name = "rail", count = 2}
game.player.insert{name = "rail", count = 3, health = 0.9}
Then put the undamaged ones in the cursor and start building
(1 additional to place the starting rail)
Expected
It should not be possible to place the entity in this case.
Whenever there is any kind of mismatch in identity between stacks, there is no way to know how to merge them.
Especially when the item is an item-with-tags.

Or well in this case specific case i guess it could use the average health value of all items used.

Up to you how to deal with it ;)
Attachments
factorio-current.log
(5.89 KiB) Downloaded 198 times
Also known as JanSharp. jan1i3 was/is my old name ;)
Rseding91
Factorio Staff
Factorio Staff
Posts: 14595
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: [0.18.19] rail duplication when building curved rail with some damaged rail items

Post by Rseding91 »

Thanks for the report. It's now fixed for a future release.
If you want to get ahold of me I'm almost always on Discord.
Post Reply

Return to “Resolved Problems and Bugs”