Why not use UGs Console and let it simple output the entity data, then you can see the structure? (Actuall it uses the same toString system)
78928 is a SIM_BUILDING of a steelmill (as shown on my last screenshot. You get stats by Cargo type (past data only):
Code
>> game.interface.getEntity(78928)
{
id = 78928,
itemsConsumed = {
COAL = 49080,
IRON_ORE = 49080,
_lastMonth = {
COAL = 0,
IRON_ORE = 0,
_sum = 0,
},
_lastYear = {
COAL = 0,
IRON_ORE = 0,
_sum = 0,
},
_sum = 98160,
},
itemsConsumedVehicleUsed = {
COAL = 49080,
IRON_ORE = 49080,
_lastMonth = {
COAL = 0,
IRON_ORE = 0,
_sum = 0,
},
_lastYear = {
COAL = 0,
IRON_ORE = 0,
_sum = 0,
},
_sum = 0,
},
itemsProduced = {
STEEL = 24540,
_lastMonth = {
STEEL = 0,
_sum = 0,
},
_lastYear = {
STEEL = 0,
_sum = 0,
},
_sum = 24540,
},
itemsShipped = {
STEEL = 12878,
_lastMonth = {
STEEL = 0,
_sum = 0,
},
_lastYear = {
STEEL = 0,
_sum = 0,
},
_sum = 12878,
},
level = 1,
name = "Schweiler Stahlwerk",
position = { -5963.3549804688, 1884.6960449219, 34.972873687744, },
stockList = 14088,
type = "SIM_BUILDING",
upgradeProgress = 0,
}
>
Alles anzeigen