I see that is linked to on
this page, and I probably skimmed through it and decided it wasn't what I needed.
I've been wondering what the difference is while reading through the following pages in recent days:
https://wiki.factorio.com/Tutorial:Mod_structure
https://wiki.factorio.com/Tutorial:Mod_settings
https://wiki.factorio.com/User:Gangsir
But there's no helpful information out in front for a beginner without tribal knowledge, and the data-lifecycle also doesn't explain the practical application like this tiny, concise bit of text:
Added phases to the mod loading. data.lua of all mods is loaded first, then the data-updates.lua and the data-final-fixes.lua as last.
This allows mods to change the data of other mods without the need to be last.
Which would be helpful to learn upfront and then learn the technical side. Because of that, I now infer that the multiple settings files are there for the same reason, which also made no sense to me beforehand.
The way I've interpreted it, from everything I've read including the data-lifecycle page, is that it's just dividing data.lua into three parts. Instead of setting x=1 (data.lua), it was so that you could say x=1 (data.lua), actually x=2 (data-update.lua), I've changed my mind again and x=1 (data-final-fixes.lua). I was pretty sure that wasn't correct, but there was no explanation about the practical application. NOW...if I read data-lifecycle, the "first, next, finally" makes perfect sense. It's similar to showing the Factorio tutorial/campaign to people who have never played it versus those who have played Factorio or a similar game. I can't go back to not knowing it now, so of course it is a helpful page to me, now.
There's the technical part, which is always great to have especially for more complicated functionality and troubleshooting, but there's no practical application part or introduction, which is what's helpful to have before explaining the inner workings.
It's like if a developer was giving a presentation on a surprise and brand new Factorio feature, and their first sentences to the other devs were:
Code: Select all
this code checks which technology has been researched
this code checks if the player is driving
if they're driving, this checks how fast they're moving every tick
if theyr'e moving faster than x/tick (as referenced by technology researched), do the next part...
this checks if they've moved a distance greater x/tick between x1,y1 (previous tick) and x2,y2 (current tick)
A better start would've probably been
This new feature checks if construction bots can keep up with a fast-moving player and whether the playing just driving fast in a tiny circle or actually driving away, because bots will get left behind if they go to build/repair stuff nearby and aren't as fast as the player is moving away. Next, I'll read aloud the comments of each part of the code...
Heh, sorry for the wall of text, but since y'all know this stuff pretty well, I wanted to make sure I communicated my LACK of understanding. I didn't want to add it to the wiki because I hadn't decided where would be best. I definitely think that little explanation should be added, though, maybe in more than one place.