Add backer_name as filter to find_entities_filtered
- Sandman2003
- Long Handed Inserter
- Posts: 67
- Joined: Sun Nov 30, 2014 5:02 am
- Contact:
Add backer_name as filter to find_entities_filtered
The class LuaSurface has a method Find_entities_filtered - it would be useful to enable this to filter based on backer_name (obviously only where backer_name is applicable, so maybe the type has to already define an entity type that supports backer_name). This would reduce needing to deal with over sized datasets when for example looking for specific train stops (stations), or checking for their existence, etc
My Mods - Space Extension Mod (SpaceX)
- Train Supply Manager
Sandman2003 is forum name for LordKTor
SpaceX Extreme mode factory
Rocket Launch every second factory(ie 60rpm) - Bobs mod based
- Train Supply Manager
Sandman2003 is forum name for LordKTor
SpaceX Extreme mode factory
Rocket Launch every second factory(ie 60rpm) - Bobs mod based
Re: Add backer_name as filter to find_entities_filtered
This seems like the completely wrong way to go about finding a train stop by name.
What it sounds like you actually want is a way to get a train stop or stop(s) with a specific name.
What it sounds like you actually want is a way to get a train stop or stop(s) with a specific name.
If you want to get ahold of me I'm almost always on Discord.
Re: Add backer_name as filter to find_entities_filtered
I've added LuaGameScript::get_train_stops(), LuaSurface::get_train_stops(), and LuaForce::get_train_stops() for 0.17.
If you want to get ahold of me I'm almost always on Discord.
- Sandman2003
- Long Handed Inserter
- Posts: 67
- Joined: Sun Nov 30, 2014 5:02 am
- Contact:
Re: Add backer_name as filter to find_entities_filtered
Yes I agree (with it is the wrong way), and thanks.
My Mods - Space Extension Mod (SpaceX)
- Train Supply Manager
Sandman2003 is forum name for LordKTor
SpaceX Extreme mode factory
Rocket Launch every second factory(ie 60rpm) - Bobs mod based
- Train Supply Manager
Sandman2003 is forum name for LordKTor
SpaceX Extreme mode factory
Rocket Launch every second factory(ie 60rpm) - Bobs mod based