Make rail track intersection detector consider collision masks

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
Post Reply
RockDeicide
Burner Inserter
Burner Inserter
Posts: 17
Joined: Sat Dec 29, 2018 9:25 am
Contact:

Make rail track intersection detector consider collision masks

Post by RockDeicide »

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.

User avatar
DaveMcW
Smart Inserter
Smart Inserter
Posts: 3700
Joined: Tue May 13, 2014 11:06 am
Contact:

Re: Make rail track intersection detector consider collision masks

Post by DaveMcW »

This has the same problem that killed the original version: mods cannot be allowed to change masks in the middle of a game.

RockDeicide
Burner Inserter
Burner Inserter
Posts: 17
Joined: Sat Dec 29, 2018 9:25 am
Contact:

Re: Make rail track intersection detector consider collision masks

Post by RockDeicide »

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.

slippycheeze
Filter Inserter
Filter Inserter
Posts: 587
Joined: Sun Jun 09, 2019 10:40 pm
Contact:

Re: Make rail track intersection detector consider collision masks

Post by slippycheeze »

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.
I think they mean if you update from mod version 1 to version 2, and version 2 defines a different collision mask size.

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.

User avatar
steinio
Smart Inserter
Smart Inserter
Posts: 2633
Joined: Sat Mar 12, 2016 4:19 pm
Contact:

Re: Make rail track intersection detector consider collision masks

Post by steinio »

Probably not.
Even rail_category was removed recently.
Image

Transport Belt Repair Man

View unread Posts

slippycheeze
Filter Inserter
Filter Inserter
Posts: 587
Joined: Sun Jun 09, 2019 10:40 pm
Contact:

Re: Make rail track intersection detector consider collision masks

Post by slippycheeze »

steinio wrote:
Tue Jul 16, 2019 4:45 am
Probably not.
Even rail_category was removed recently.
Yeah, so I learned in another thread. *shrug* guess it is what it is. lua scripting or death!

User avatar
eradicator
Smart Inserter
Smart Inserter
Posts: 5206
Joined: Tue Jul 12, 2016 9:03 am
Contact:

Re: Make rail track intersection detector consider collision masks

Post by eradicator »

slippycheeze wrote:
Wed Jul 17, 2019 12:19 am
steinio wrote:
Tue Jul 16, 2019 4:45 am
Probably not.
Even rail_category was removed recently.
Yeah, so I learned in another thread. *shrug* guess it is what it is. lua scripting or death!
rail_category moddabiltiy has been dead for ages (since 0.16?). What they recently removed was merely the last artifact.
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.

Post Reply

Return to “Modding interface requests”