control.lua for vanilla entities

Place to get help with not working mods / modding interface.
Post Reply
User avatar
aubergine18
Smart Inserter
Smart Inserter
Posts: 1264
Joined: Fri Jul 22, 2016 8:51 pm
Contact:

control.lua for vanilla entities

Post by aubergine18 »

I'm trying to find the control.lua for vanilla entities but to no avail. I can find their prototypes, graphics, etc., but not the code that actually 'actuates' them once placed in game. Anyone know where to find their scripts?
Better forum search for modders: Enclose your search term in quotes, eg. "font_color" or "custom-input" - it prevents the forum search from splitting on hypens and underscores, resulting in much more accurate results.

Helfima
Fast Inserter
Fast Inserter
Posts: 199
Joined: Tue Jun 28, 2016 11:40 am
Contact:

Re: control.lua for vanilla entities

Post by Helfima »

it's not in lua code, i mean is in c++

User avatar
aubergine18
Smart Inserter
Smart Inserter
Posts: 1264
Joined: Fri Jul 22, 2016 8:51 pm
Contact:

Re: control.lua for vanilla entities

Post by aubergine18 »

Uhm, that's a shame. I'm trying to work out how indicator lights change colour based on their circuit input. Or alternatively how train engines change colour based on UI settings.
Better forum search for modders: Enclose your search term in quotes, eg. "font_color" or "custom-input" - it prevents the forum search from splitting on hypens and underscores, resulting in much more accurate results.

User avatar
DedlySpyder
Filter Inserter
Filter Inserter
Posts: 253
Joined: Fri Jun 20, 2014 11:42 am
Contact:

Re: control.lua for vanilla entities

Post by DedlySpyder »

The base game has its folder for creating prototypes, but anything not in there is accomplished in the core game in C++

Post Reply

Return to “Modding help”