Al-Rilma Patch 8 Sandbox Tech Pool Lua Error

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

  1. Open Car or Engine Designer.
  2. Edit the Sandbox Tech Pool in Car or Engine Designer.
  3. then the Lua Error message apperars.

Thanks for contacting us.

Is this a new company you’re editing, or are you trying to edit the SANDBOX company?

2 Likes

You’re welcome! Well, I edited the SANDBOX company when I initially reported, however, when I created a new company I’m editing, yes, I also encountered Lua Error as well, here:

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: 0x021e1e4ab008 {Finances:table: 0x021e1e4adbf0, Database:table: 0x021e2432c5e8, Info:table: 0x021e1deb2b20 (more…)}
Opt_TotalPoints = number: -10
CostMultiplier = nil
(*temporary) = nil
(*temporary) = number: 10
(*temporary) = nil
(*temporary) = number: -1
(*temporary) = string: “Suspension”
(*temporary) = number: 1
(*temporary) = number: 5000
(*temporary) = table: 0x021e204e8fd0 {rowid:2}
(*temporary) = table: 0x021e204e8fd0 {rowid:2}
(*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: 0x021e1e4ab008 {Finances:table: 0x021e1e4adbf0, Database:table: 0x021e2432c5e8, Info:table: 0x021e1deb2b20 (more…)}
Sections = table: 0x021e1dae6160 {1:Body, 2:Chassis, 3:Interior, 4:DriverAssists, 5:Safety, 6:DriveTrain (more…)}
Values = table: 0x021e243f9400 {1:0, 2:0, 3:0, 4:0, 5:0, 6:0, 7:0, 8:0, 9:0, 10:0}
CountryTechOffset = number: 1
ResearchCosts = number: 95000
totalAddedFundingPoints = number: -10

BP Stack
Unable to display Script Callstack. Compile with DO_BLUEPRINT_GUARD=1