Page 1 of 1

script for a scenario

Posted: Wed May 09, 2018 6:10 am
by Derserker
i want to make a scenario with a racing track. i decided to have machines automatically use create solid fuel, however i can't use them because the map does not start with the required research. i know there is an answer for something similar but it requires writing a script. My problem is that i don't even know where to start when it comes to writing scripts can someone point me in the right direction?

Re: script for a scenario

Posted: Wed May 09, 2018 7:06 am
by darkfrei
Derserker wrote:i want to make a scenario with a racing track. i decided to have machines automatically use create solid fuel, however i can't use them because the map does not start with the required research. i know there is an answer for something similar but it requires writing a script. My problem is that i don't even know where to start when it comes to writing scripts can someone point me in the right direction?
The same as control.lua, so you are need http://lua-api.factorio.com/latest/
See also autofill https://mods.factorio.com/mods/Nexela/autofill