Hello, after the Al-Rilma Patch 8 has been rolled out, I found another Lua error to report in Sandbox, involving Tech Pool.
Exception: Lua Function Call: GetSandboxTechPoolCost GetSandboxTechPoolCost: scripts/shared/functional/COMMON/CCompany_GameLogic.lua:1451: attempt to index field ‘Headquarters’ (a nil value)
Stack Traceback
(1) metamethod C function ‘__index’
(2) Lua method ‘GetResearchLabCost’ at file ‘scripts/shared/functional/COMMON/CCompany_GameLogic.lua:1451’
Local variables:
self = table: 0x028291152838 {Finances:table: 0x0282911528b8, Database:table: 0x02829104bed0, Info:table: 0x028291153040 (more…)}
Opt_TotalPoints = number: 0
CostMultiplier = nil
(*temporary) = nil
(*temporary) = number: 10
(*temporary) = nil
(*temporary) = sqlite virtual machine (SELECT rowid FROM Companies WHERE Companies.UID = :UID;)
(*temporary) = number: 0
(*temporary) = number: 0
(*temporary) = sqlite virtual machine (SELECT rowid FROM Companies WHERE Companies.UID = :UID;)
(*temporary) = table: 0x02827aebdab0 {rowid:1}
(*temporary) = table: 0x02827aebdab0 {rowid:1}
(*temporary) = string: “rowid”
(*temporary) = string: “attempt to index field ‘Headquarters’ (a nil value)”
(3) Lua function ‘?’ at file ‘scripts/shared/functional/COMMON/CCompany_GameLogic.lua:1445’ (best guess)
Local variables:
self = table: 0x028291152838 {Finances:table: 0x0282911528b8, Database:table: 0x02829104bed0, Info:table: 0x028291153040 (more…)}
Sections = table: 0x0282707f2c20 {1:Body, 2:Chassis, 3:Interior, 4:DriverAssists, 5:Safety, 6:DriveTrain (more…)}
Values = table: 0x0282851451b0 {1:0, 2:0, 3:0, 4:0, 5:0, 6:0, 7:0, 8:0, 9:0, 10:0}
CountryTechOffset = number: 0
ResearchCosts = number: 0
totalAddedFundingPoints = number: 0
BP Stack
Unable to display Script Callstack. Compile with DO_BLUEPRINT_GUARD=1
Instructions to Replicate
- Open Car or Engine Designer.
- Edit the Sandbox Tech Pool in Car or Engine Designer.
- then the Lua Error message apperars.