AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Factorio tutorial12/17/2023 ![]() ![]() They are very similar in structure, so the following instructions apply to both.įor either stage, a single shared Lua state is created that is used to run three specific files for every mod. ![]() Two parts of this process are relevant to mods: The settings stage and the data stage. When Factorio is launched, it proceeds to load all the prototypes and assets that it and any active mods require. Note that Instrument Mode may be enabled for a single mod to inject code for mod development tools, which impacts the data lifecycle for that mod. For mods with identical chain depths, the natural sort order of their internal names then determines the definitive ordering. Specifically, the depth of each mod's dependency chain is taken into account first, sorting the the shorter ones to the front of the queue. This order determines the load sequence of mods at game startup, as well as the order in which events are sent during runtime. The game gives all active mods an order that takes into account their dependencies first and their internal names second. Note that while mods run continuously during a gameplay session, the save startup phase is particularly relevant for a proper understanding the data lifecycle. These stages have different rules and constraints, which are explored separately below. Factorio allows mods to run their code at two distinct points: At game startup, and while a map is actively being played.
0 Comments
Read More
Leave a Reply. |