Code: Select all
["facto.train.carriagefactory"] = {
instanced = {
["31"] = {
factoobj = {
__self = "userdata"
},
order = 1,
train = {
carriages = {
0
},
factoobj = {
__self = "userdata"
},
id = 2,
surface = {
__self = "userdata"
}
}
}
}
},
["facto.train.trainfactory"] = {
instanced = {
["2"] = 0
}
}
Code: Select all
{
facto.train.trainfactory:{
instanced:{
2:{
factoobj:{
__self:userdata(userdata)
}(table:table)
id:2(number)
carriages:{
1:{
factoobj:{
__self:userdata(userdata)
}(table:table)
train:reference(table:table)
order:1(number)
}(table:table)
}(table:table)
surface:{
__self:userdata(userdata)
}(table:table)
}(table:table)
}(table:table)
}(table:table)
facto.train.carriagefactory:{
instanced:{
31:reference(table:table)
}(table:table)
}(table:table)
}(table:table)
in the same place invoking two dump
Code: Select all
function GameManager.load()
log(var_dump(global.facto))
log(serpent.block(global.facto))
-- if global.facto == nil, that means game already broken
for guid, class in pairs(persisted_classes) do
-- if global.facto[guid] == nil, that means some features added
-- should not change this data in on load
assert(guid == class.guid())
class.load(guid, global.facto[guid])
end
end