Page 1 of 1
Example of a well structured Factorio mod?
Posted: Wed Feb 01, 2017 8:23 pm
by ChineseFountain
Anyone have a mod source that they believe is a good example of the best practices to use when developing factorio mods? I'm going to start working on my first mod soon, and I want it to be clean and easily understandable, so I'm looking for an example.
Thanks
Re: Example of a well structured Factorio mod?
Posted: Thu Feb 02, 2017 12:33 am
by aubergine18
It depends on what you plan to do as to how your mod will be structured. I'd advise looking at existing mods in the mod portal (download some, they are just zip files so you can easily open them to see what's inside).
Generally speaking, it's wise to have just a few files in the main folder (the info.json, data.lua, control.lua, etc) and then put other scripts in to subfolders (prototypes, sprites, etc) to keep things organised. You'll see most mods already follow those patterns.