User:LCruel: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 13: | Line 13: | ||
Usefull commands: | Usefull commands: | ||
* for i, player in ipairs(game.players) do player.force.reset_technologies() end | * 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 |
Revision as of 19:39, 27 April 2016
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