Prototype vs Lua Class documentation
Posted: Sat Sep 04, 2021 4:37 am
Prototype/Technology is documented here: https://wiki.factorio.com/Prototype/Technology
A "unit" property is documented, and an example is given.
It's possible to configure ingrideients, qtys per cycle, number of cycles, and time per cycle.
The Factorio Lua class LuaTechnology is documented here: https://lua-api.factorio.com/latest/Lua ... Technology
The Factorio Lua class LuaTechnologyPrototype is documented here: https://lua-api.factorio.com/latest/Lua ... otype.html
Neither has a "unit" property documented.
Both classes seem to have different properties (other than "unit") for identifying ingredients (research_unit_ingredients, research unit_count).
There doesn't seem a way to specify the time each processing of lab ingredients should take.
What is the difference between the Prototype and the classes?
Are the classes the C++ side of the Lua/C++ interface?
The documentation I've seen, succeeded in using, and also the vanilla raw data file all indicate I should be using "unit" to define technology ingredients, including time.
To what extent, if any, should I use the Lua class documentation when I just want to add more items to the game, similar to existing ones, using Lua?
Should I just follow the prototype documentation?
A "unit" property is documented, and an example is given.
It's possible to configure ingrideients, qtys per cycle, number of cycles, and time per cycle.
The Factorio Lua class LuaTechnology is documented here: https://lua-api.factorio.com/latest/Lua ... Technology
The Factorio Lua class LuaTechnologyPrototype is documented here: https://lua-api.factorio.com/latest/Lua ... otype.html
Neither has a "unit" property documented.
Both classes seem to have different properties (other than "unit") for identifying ingredients (research_unit_ingredients, research unit_count).
There doesn't seem a way to specify the time each processing of lab ingredients should take.
What is the difference between the Prototype and the classes?
Are the classes the C++ side of the Lua/C++ interface?
The documentation I've seen, succeeded in using, and also the vanilla raw data file all indicate I should be using "unit" to define technology ingredients, including time.
To what extent, if any, should I use the Lua class documentation when I just want to add more items to the game, similar to existing ones, using Lua?
Should I just follow the prototype documentation?