Page 1 of 1

Request: Add filters to asteroid-collector to Lua side

Posted: Sat Dec 07, 2024 3:22 pm
by gangerM
A few days ago I asked for help on the asteroid-collector how to get/set the filters; viewtopic.php?f=25&t=123642
Due to the low amount of response I think this does not exist yet, would it be possible to be added?

A summation of what I tried;
  • Entity.filter_slot_count --> always 0
  • Entity.get_filter(1) --> always nil
  • Entity.get_control_behavior() -> LuaAsteroidCollectorControlBehavior --> only has things for circuit network related to filters, nothing for active
  • mining_drill_filter_mode / loader_filter_mode / inserter_filter_mode --> errors because not valid for asteroid-collector
  • Entity.get_requester_point() --> nil
  • Entity.get_output_inventory() --> Says it is not filtered
  • Entity.get_driver() -> Its not a vehicle.
If I missed something please let me know.

Re: Request: Add filters to asteroid-collector to Lua side

Posted: Mon Dec 09, 2024 9:15 pm
by protocol_1903
+1