Closed winex closed 1 month ago
That is indeed a strange thing. If I find the time, I might be looking into it. But no promises, RL is hard right now.
The critical lines are these two in Deadlock-SE-bridge/prototypes/deadlock.lua:
local DBL = require("__deadlock-beltboxes-loaders__/prototypes/shared")
require("__deadlock-beltboxes-loaders__/prototypes/create_loader")
In Factorio, the second require adds a create_loader
value to DBL, while in YAFC the second require does nothing.
The first line of create_loader.lua is local DBL = require("prototypes.shared")
, and shared.lua starts with local DBL = {}
and ends with return DBL
.
My theory is that YAFC sees the local declaration twice and creates two different tables, while Factorio creates only one table.
I don't know where to go from here, but hopefully someone else will be able to take this further.
last messages:
global variable
deadlock_stacking
:they're internally adding to previously
require
d tables, will this work the same way in YAFC?:"static" function to
global
DBL, while required islocal
- this looks weird to me......maybe they're totally wrong, but a crash must not happen!