Number of satellite sent ?

Place to get help with not working mods / modding interface.
User avatar
binbinhfr
Smart Inserter
Smart Inserter
Posts: 1525
Joined: Sat Feb 27, 2016 7:37 pm
Contact:

Number of satellite sent ?

Post by binbinhfr »

Hi,

I'd like to get the number of sattelites sent (the one displayed in the score frame).
I saw an interesting variable global.satellite_sent[force.name] in \data\base\scenarios\freeplay\control.lua
but I wonder how I can read this variable from my mod ?

Thanks for your help.
My mods on the Factorio Mod Portal :geek:
User avatar
prg
Filter Inserter
Filter Inserter
Posts: 947
Joined: Mon Jan 19, 2015 12:39 am
Contact:

Re: Number of satellite sent ?

Post by prg »

Seems like the freeplay scenario doesn't add a remote interface for that, but you can still get at the value via some player's gui.left.rocket_score.rocket_count.caption.
Automatic Belt (and pipe) Planner—Automate yet another aspect of constructing your factory!
User avatar
binbinhfr
Smart Inserter
Smart Inserter
Posts: 1525
Joined: Sat Feb 27, 2016 7:37 pm
Contact:

Re: Number of satellite sent ?

Post by binbinhfr »

yes you're right ! :-)
My mods on the Factorio Mod Portal :geek:
Post Reply

Return to “Modding help”