Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
It appears some assets do not have a location, which does not conform to the Asset specification. The following error is seen when the location is not set correctly. Attempt to always set the location of the squadron. 2021-02-02 00:22:16.915 ERROR SCRIPTING: DCT|Theater: protected call - [string "C:\Users\chris\Saved Games\DCS.openbeta\Mods\tech\DCT\lua\dct\utils.lua"]:95: attempt to index local 'point' (a nil value) stack traceback: [string "C:\Users\chris\Saved Games\DCS.openbeta\Mods\tech\DCT\lua\dct\Theater.lua"]:363: in function <[string "C:\Users\chris\Saved Games\DCS.openbeta\Mods\tech\DCT\lua\dct\Theater.lua"]:361> [string "C:\Users\chris\Saved Games\DCS.openbeta\Mods\tech\DCT\lua\dct\utils.lua"]:95: in function 'centroid' [string "C:\Users\chris\Saved Games\DCS.openbeta\Mods\tech\DCT\lua\dct\templates\Region.lua"]:151: in function 'addAndSpawnAsset' [string "C:\Users\chris\Saved Games\DCS.openbeta\Mods\tech\DCT\lua\dct\templates\Region.lua"]:260: in function '_generate' [string "C:\Users\chris\Saved Games\DCS.openbeta\Mods\tech\DCT\lua\dct\templates\Region.lua"]:278: in function 'generate' [string "C:\Users\chris\Saved Games\DCS.openbeta\Mods\tech\DCT\lua\dct\Theater.lua"]:188: in function 'loadOrGenerate' [string "C:\Users\chris\Saved Games\DCS.openbeta\Mods\tech\DCT\lua\dct\Theater.lua"]:209: in function <[string "C:\Users\chris\Saved Games\DCS.openbeta\Mods\tech\DCT\lua\dct\Theater.lua"]:206> (tail call): ? [string "C:\Users\chris\Saved Games\DCS.openbeta\Mods\tech\DCT\lua\dct\Command.lua"]:45: in function 'execute' [string "C:\Users\chris\Saved Games\DCS.openbeta\Mods\tech\DCT\lua\dct\Theater.lua"]:342: in function '_exec' [string "C:\Users\chris\Saved Games\DCS.openbeta\Mods\tech\DCT\lua\dct\Theater.lua"]:366: in function <[string "C:\Users\chris\Saved Games\DCS.openbeta\Mods\tech\DCT\lua\dct\Theater.lua"]:365> [C]: in function 'xpcall' [string "C:\Users\chris\Saved Games\DCS.openbeta\Mods\tech\DCT\lua\dct\Theater.lua"]:369: in function <[string "C:\Users\chris\Saved Games\DCS.openbeta\Mods\tech\DCT\lua\dct\Theater.lua"]:360>
- Loading branch information