[1.1.48] Entity with "water-tile" collision also collides with rails

Place to get help with not working mods / modding interface.
Post Reply
User avatar
Tubbles
Burner Inserter
Burner Inserter
Posts: 13
Joined: Wed Mar 16, 2016 6:30 pm
Contact:

[1.1.48] Entity with "water-tile" collision also collides with rails

Post by Tubbles »

Hi

I recently got a bug report on my mod https://mods.factorio.com/mod/Updated_C ... 0a1c25fb51

It seems that when adding the "water-tile" collision string to the collision_mask of my entity, it started to also collide with train rails.

Can be seen in the following link:
https://www.youtube.com/watch?v=vkygxOTcpSQ

Is this the intended behavior? If so, in what way should I put the collision_mask variable to make my entities collide with water, but not with rails?


Cheers!
BR,
~Johan

posila
Factorio Staff
Factorio Staff
Posts: 5202
Joined: Thu Jun 11, 2015 1:35 pm
Contact:

Re: [1.1.48] Entity with "water-tile" collision also collides with rails

Post by posila »

Rail also has "water-tile" collision mask by default: https://wiki.factorio.com/Prototype/Ent ... ision_mask, so this is not a bug.
Moving to modding help.

User avatar
Tubbles
Burner Inserter
Burner Inserter
Posts: 13
Joined: Wed Mar 16, 2016 6:30 pm
Contact:

Re: [1.1.48] Entity with "water-tile" collision also collides with rails

Post by Tubbles »

Thank you posila

I figured it out also this morning. I needed to add another collision layer and add that layer to both my entity and the water tile prototype :D

Post Reply

Return to “Modding help”