Page 1 of 1
How to add a new type of logistic robots?
Posted: Sat Apr 02, 2016 6:01 pm
by kengonakajima
Hi, I just want to add a new type of logistic robots that can go out of the roboport control area and do something.
I want to color it differently.
I searched factoriomods.com and Lua documents, but I can't find any way to add robot type.
Is there a way to do this?
Re: How to add a new type of logistic robots?
Posted: Sun Apr 03, 2016 12:17 am
by Adil
You probably should check
tutorial and
wiki to learn about possibilities and limitations of the modding.
"type" can not be added to the game by mod, every mod creatively uses those already present and complements what's missing with lua scripting.
Depending on definition of "something" and the scale of "do something" this might be done based on "unit" or "combat-robot" type.
However, one would have to type quite a bunch of lua code to append the "something" functionality.
Re: How to add a new type of logistic robots?
Posted: Sun Apr 03, 2016 10:37 pm
by kengonakajima
I just want to modify destination position of a construction/logistic bot from Lua,
but not found that API in tutorial and Factorio HTML documents included in game.
Re: How to add a new type of logistic robots?
Posted: Mon Apr 04, 2016 11:17 am
by Adil
There's no destination position exported from the game engine to lua.
That's why you'd have to use aforementioned classes, that have some equivalent to that and reimplement in lua functionality that is missing from those classes but can be reimplemented.