How to get robot count

Don't know how to use a machine? Looking for efficient setups? Stuck in a mission?
Post Reply
User avatar
mexmer
Filter Inserter
Filter Inserter
Posts: 869
Joined: Wed Aug 03, 2016 2:00 pm
Contact:

How to get robot count

Post by mexmer »

I was trying to setup automated robot upgrading system, which will make new robots after certain time passed, then it will upgrade them.

i have not found yet, how to read number of robots (construction, logistic) in network. If you read content of logistic network, it will show number of robots, if they are stored in storage chests, but not when they are already deployed, or at least, i have not found, how to get number of deployed robots (regardless they idle or working).

you can see number of robots in roboport details, so that value might be available somewhere (but idk where)

Thegrover
Inserter
Inserter
Posts: 31
Joined: Thu Jul 07, 2016 8:00 am
Contact:

Re: How to get robot count

Post by Thegrover »

Roboports can output what you're after. Connect one with a red or green wire and they will output both the available and total number of robots in the entire system (but only from that logistics network)

Mehve
Filter Inserter
Filter Inserter
Posts: 318
Joined: Sat Aug 06, 2016 9:12 pm
Contact:

Re: How to get robot count

Post by Mehve »

Just to clarify, after hooking a red/green wire to a roboport, select the roboport. You'll see an extra heading where it assigns various robot counts (const/logi/total/available) to certain variables, which you can change as desired, and reference at other points in the network.

User avatar
mexmer
Filter Inserter
Filter Inserter
Posts: 869
Joined: Wed Aug 03, 2016 2:00 pm
Contact:

Re: How to get robot count

Post by mexmer »

Thegrover wrote:Roboports can output what you're after. Connect one with a red or green wire and they will output both the available and total number of robots in the entire system (but only from that logistics network)
thanks, that's indeed what i needed.

@thegrover yes i did change roboport mode to robots statistics, which is what i needed.

nuhll
Filter Inserter
Filter Inserter
Posts: 922
Joined: Mon Apr 04, 2016 9:48 pm
Contact:

Re: How to get robot count

Post by nuhll »

Yea set like this:
roboport
L = total logisitics roboter

and connect with inserter, then set it to activate when L < (your desired number of roboters)

You can also change L = total logisitcs rober to e.g. L < total logisitics roboter atm avaible

But i prefer the first method and change it every some hours of gameplay (when i need)

DerRichtige
Burner Inserter
Burner Inserter
Posts: 19
Joined: Tue Nov 11, 2014 3:13 pm
Contact:

Re: How to get robot count

Post by DerRichtige »

Hi is there a way to read how many/type of Robots are in connected port not System cause reading the logistic network content and let the connected inserter grab when a certain amount of robots is reached is not working.

Thanks

Post Reply

Return to “Gameplay Help”