|Kaj-aage Henneberg (kahfs)||21.12.2021 19:55|
|Hi there. In FS19 I could use g_storeManager.items[i].specs to read fillType and capacity of various bigbags and pallets.
It seems like the g_storeManager.items[i].specs table has vanished in FS22. I wonder where that information is stored now.
In the xml files for bigbags, the top level is
<fillUnit unitTextOverride="$l10n_unit_literShort" fillTypes="wheat fertilizer oat lime pigFood roadSalt seeds" capacity="1000"
startFillType="wheat" startFillLevel="1000" ignoreFillLimit="true">
But. Is that a clue to where I can find it in the FS22 data tables?
Thanks for any information you can provide.
PS. I'm really missing the FSlua github by Espen Killi. It was such a great help in FS19.
|Bob Bobster (Bobster82)||21.12.2021 20:35|
|pallets and bigbags can be found in the g_currentMission.vehicles table (found it out the hard way haha)
|Kaj-aage Henneberg (kahfs)||21.12.2021 21:06|
|Thank you Bob. I did realize this. But I could not find their spec subtable. But I think I have managed to create them using the function StoreItemUtil.loadSpecsFromXML(item). Have to work a bit more tomorrow to find out if that actually worked.
Note: Log in to post. Create a new account here.