Surface.upgrade_area{} returns information

Things that we aren't going to implement
Post Reply
User avatar
Mylon
Filter Inserter
Filter Inserter
Posts: 513
Joined: Sun Oct 23, 2016 11:42 pm
Contact:

Surface.upgrade_area{} returns information

Post by Mylon »

I'd like to build a mod which automatically upgrades modules to the next tier as they're made available to the logistic network. What I'm struggling with is limiting how many upgrade requests are made.

Likely the best way to do this would be to have some information returned by the upgrade_area function. Either the number of entities flagged, or (perhaps with a flag passed to the function) a table of the entities themselves.

User avatar
Optera
Smart Inserter
Smart Inserter
Posts: 2915
Joined: Sat Jun 11, 2016 6:41 am
Contact:

Re: Surface.upgrade_area{} returns information

Post by Optera »

Would being able to find only entities flagged for upgrades in a specific area help you?
viewtopic.php?f=28&t=75132

User avatar
Mylon
Filter Inserter
Filter Inserter
Posts: 513
Joined: Sun Oct 23, 2016 11:42 pm
Contact:

Re: Surface.upgrade_area{} returns information

Post by Mylon »

Optera wrote:
Sun Sep 01, 2019 2:54 pm
Would being able to find only entities flagged for upgrades in a specific area help you?
viewtopic.php?f=28&t=75132
This would also solve my usecase, as I could do a count_entities_filtered before and after to determine how many were upgraded.

Post Reply

Return to “Won't implement”