Search found 3 matches

by Mat5i6
Sun Nov 29, 2020 2:35 pm
Forum: Modding discussion
Topic: Load data folder with lua outside of Factorio
Replies: 6
Views: 2070

Re: Scan data folder with plain lua

Data prototypes and the files that make them are not really "packages" in the sense that I think you might mean. Prototypes are constructed in a variety of ways in Factorio base mod code. Some are just simple data:extend calls that take the whole hand-written prototype as a single hardcod...
by Mat5i6
Sun Nov 29, 2020 1:38 pm
Forum: Modding discussion
Topic: Load data folder with lua outside of Factorio
Replies: 6
Views: 2070

Re: Scan data folder with plain lua

Thank you for the quick response and the link. Sorry if I wrote somewhat confusingly, since I didn't even know what I'm looking for. I've cleaned up my question so I hope now it will be more clear. The reason why I'm asking here is that, I would like to load all the packages as Factorio would but wi...
by Mat5i6
Sun Nov 29, 2020 11:10 am
Forum: Modding discussion
Topic: Load data folder with lua outside of Factorio
Replies: 6
Views: 2070

Load data folder with lua outside of Factorio

Hi! As the title says, my goal is to load (require and execute) all Factorio packages inside data folder as Factorio would. The main problem which troubles me is how the Factorio is able to manage all the require() calls from within the package. I've read the lua documentation about the require func...

Go to advanced search