User:LCruel
Hobbyist mod maker from the Netherlands with style
Useful links:
- https://wiki.factorio.com/index.php?title=Modding
- https://wiki.factorio.com/index.php?title=Modding_FAQ
- https://wiki.factorio.com/index.php?title=Console
- https://wiki.factorio.com/index.php?title=Prototype_definitions
- http://lua-api.factorio.com/
- http://lua-api.factorio.com/0.12.26/Concepts.html#Command
- http://lua-api.factorio.com/0.12.27/Concepts.html#Command
- https://wiki.factorio.com/index.php?title=Modding_Tutorial
Usefull commands:
- for i, player in ipairs(game.players) do player.force.reset_technologies() end
- Print table /c for i,ingredient in pairs(game.player.force.recipes["tank"].ingredients) do game.player.print(ingredient.name .. " - " .. ingredient.amount) end
- for i, player in ipairs(game.players) do player.force.reset_recipes() end