A while back I was experimenting with the idea of train tunnels using invisible tracks that phase through everything to allow the pathfinder to "see" through the tunnel, for this I made the "tunnel" tracks use a special collision mask. It worked fine with everything except other rail tracks, as track intersection detector only cares about intersection of collision boxes, but not their collision masks (as in "tunnel" tracks and normal tracks would be in the same signal block, even if their masks don't intersect).
So, how about it? It would allow Rail Bridges mod to make a comeback as well.
Make rail track intersection detector consider collision masks
-
- Burner Inserter
- Posts: 17
- Joined: Sat Dec 29, 2018 9:25 am
- Contact:
Re: Make rail track intersection detector consider collision masks
This has the same problem that killed the original version: mods cannot be allowed to change masks in the middle of a game.
-
- Burner Inserter
- Posts: 17
- Joined: Sat Dec 29, 2018 9:25 am
- Contact:
Re: Make rail track intersection detector consider collision masks
I'm not talking about masks being changed in the middle of the game, I'm talking about different kinds of tracks that have different non-intersecting collision masks.
Dynamic masks feature would be useful for making locos not hit the player while in the tunnel, but that's not necessary and not enough as the loco would also need dynamic visuals to make it invisible.
Dynamic masks feature would be useful for making locos not hit the player while in the tunnel, but that's not necessary and not enough as the loco would also need dynamic visuals to make it invisible.
-
- Filter Inserter
- Posts: 587
- Joined: Sun Jun 09, 2019 10:40 pm
- Contact:
Re: Make rail track intersection detector consider collision masks
I think they mean if you update from mod version 1 to version 2, and version 2 defines a different collision mask size.RockDeicide wrote: Mon Jul 15, 2019 3:02 am I'm not talking about masks being changed in the middle of the game, I'm talking about different kinds of tracks that have different non-intersecting collision masks.
That said, I dream too that they may permit multiple distinct rail systems with zero connection between them, and permit different bounding boxes on them.
Re: Make rail track intersection detector consider collision masks
Probably not.
Even rail_category was removed recently.
Even rail_category was removed recently.
-
- Filter Inserter
- Posts: 587
- Joined: Sun Jun 09, 2019 10:40 pm
- Contact:
Re: Make rail track intersection detector consider collision masks
Yeah, so I learned in another thread. *shrug* guess it is what it is. lua scripting or death!
- eradicator
- Smart Inserter
- Posts: 5211
- Joined: Tue Jul 12, 2016 9:03 am
- Contact:
Re: Make rail track intersection detector consider collision masks
rail_category moddabiltiy has been dead for ages (since 0.16?). What they recently removed was merely the last artifact.slippycheeze wrote: Wed Jul 17, 2019 12:19 amYeah, so I learned in another thread. *shrug* guess it is what it is. lua scripting or death!
Author of: Belt Planner, Hand Crank Generator, Screenshot Maker, /sudo and more.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.