Ellisbury Update Open Beta Lua Errors

I got several Lua errors on an Ellisbury Update Open Beta, so here is my long bug report thread as I compiled bugs.

(1) Here is a first Lua Error

Exception: Lua Function Call: CanTrimBeExported CanTrimBeExported: scripts/shared/functional/COMMON/CDatabase_Cars.lua:1199: attempt to index local ‘trimInfo’ (a nil value)
Stack Traceback

(1) metamethod C function ‘__index’
(2) Lua function ‘?’ at file ‘scripts/shared/functional/COMMON/CDatabase_Cars.lua:1199’ (best guess)
Local variables:
self = table: 0x01e96ebb5180 {UpdateTrimSlotTrim:table: 0x01e9c7538680, InsertUpdateCarProjectRegionStmt:table: 0x01e9c7536900 (more…)}
TrimUID = string: “B651DCAF41EB957D3EF8259F78EFF469”
trimInfo = nil
(*temporary) = number: 1.03932e-311
(*temporary) = table: 0x01e96ebb5180 {UpdateTrimSlotTrim:table: 0x01e9c7538680, InsertUpdateCarProjectRegionStmt:table: 0x01e9c7536900 (more…)}
(*temporary) = string: “B651DCAF41EB957D3EF8259F78EFF469”
(*temporary) = nil
(*temporary) = nil
(*temporary) = string: “attempt to index local ‘trimInfo’ (a nil value)”

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

How to Replicate

  1. Click on an Engine Design button at first.
  2. Second, click on a Car Design button.
  3. After that, you will get a Lua error message.

However, this only occurs when a thumbnail of a deleted car is present.

(2) Another second error is the inability to delete a sandbox company

How to Replicate

  1. Click at a New Company button.
  2. Name any sandbox company.
  3. Click at another New Company button (a trash can icon).
  4. After that, you will get a Lua error message.

Error: Lua self does not contain Function Called: DeleteCompany
BP CallStack
Unable to display Script Callstack. Compile with DO_BLUEPRINT_GUARD=1-----------

(3) Additionally, there is a third Lua error when I try to update the game database by copying tech pool in the sandbox company menu.

How to Replicate

  1. Click at Edit Companies.
  2. Click at New Company.
  3. Select Tech Pool Decade.
  4. Add Tech Pool.
  5. Copy Current Decate to All.
  6. Click Finished, then Agree to overwrite all other decade’s Tech Pool that cannot be undone.
  7. After that, you will get a Lua error message.

SQL Error: FOREIGN KEY constraint failed
Stack Track:
Stack Traceback

(1) Lua global ‘GetCompleteStackTrace’ at file ‘scripts/client/start scripts/debugger.lua:50’
(2) Lua global ‘ExecuteStmt’ at file ‘scripts/shared/functional/COMMON/CDatabase_Main.lua:42’
Local variables:
stmts = table: 0x0238aa146c80 {1:sqlite virtual machine (INSERT OR REPLACE INTO CompanyHistoricTechPool VALUES
(
:CUID,
:InternalDays,
:Chassis,
:Body,
:DriveTrain,
:Tyres,
:Brakes,
:Aerodynamics,
:Interior,
:Safety,
:DriverAssists,
:Suspension,
:Family,
:BottomEnd,
:TopEnd,
:FuelSystem,
:Aspiration,
:Exhaust
):wink: (more…)}
bindNames = table: 0x023833112500 {TopEnd:15, Chassis:15, Family:15, Aspiration:15, Exhaust:15, Interior:15 (more…)}
db = sqlite database (000002389FA5BE30)
(for generator) = C function: next
(for state) = table: 0x0238aa146c80 {1:sqlite virtual machine (INSERT OR REPLACE INTO CompanyHistoricTechPool VALUES
(
:CUID,
:InternalDays,
:Chassis,
:Body,
:DriveTrain,
:Tyres,
:Brakes,
:Aerodynamics,
:Interior,
:Safety,
:DriverAssists,
:Suspension,
:Family,
:BottomEnd,
:TopEnd,
:FuelSystem,
:Aspiration,
:Exhaust
):wink: (more…)}
(for control) = userdata: 0x7fff00000002
_ = number: 1
stmt = sqlite virtual machine (INSERT OR REPLACE INTO CompanyHistoricTechPool VALUES
(
:CUID,
:InternalDays,
:Chassis,
:Body,
:DriveTrain,
:Tyres,
:Brakes,
:Aerodynamics,
:Interior,
:Safety,
:DriverAssists,
:Suspension,
:Family,
:BottomEnd,
:TopEnd,
:FuelSystem,
:Aspiration,
:Exhaust
):wink:
result = number: 19
_ = nil
(*temporary) = C function: 0x0238896040f0
(*temporary) = nil
(*temporary) = string: “LuaSQLUpdateErrorTitle”
(*temporary) = string: “LuaSQLUpdateErrorDesc”
(*temporary) = C function: builtin#89
(*temporary) = sqlite virtual machine (INSERT OR REPLACE INTO CompanyHistoricTechPool VALUES
(
:CUID,
:InternalDays,
:Chassis,
:Body,
:DriveTrain,
:Tyres,
:Brakes,
:Aerodynamics,
:Interior,
:Safety,
:DriverAssists,
:Suspension,
:Family,
:BottomEnd,
:TopEnd,
:FuelSystem,
:Aspiration,
:Exhaust
):wink:
(*temporary) = string: “SQL Error: %s
Stack Track: %s”
(*temporary) = string: “FOREIGN KEY constraint failed”
(3) Lua function ‘?’ at file ‘scripts/shared/functional/COMMON/CDatabase_Companies.lua:535’ (best guess)
Local variables:
self = table: 0x0238aa12aac0 {UpdateTrimSlotTrim:table: 0x0238aa16d980, InsertUpdateCarProjectRegionStmt:table: 0x0238aa16d880 (more…)}
CompanyUID = string: “00000000000000000000000000000000”
TechPool = table: 0x023833112500 {TopEnd:15, Chassis:15, Family:15, Aspiration:15, Exhaust:15, Interior:15 (more…)}
(for index) = number: 1940
(for limit) = number: 2020
(for step) = number: 10
year = number: 1940
date = table: 0x0238931ee640 {Date:table: 0x0238aabd7980}

BP Stack Trace

Unable to display Script Callstack. Compile with DO_BLUEPRINT_GUARD=1

(4) This Car Designer bug has persisted since Lite Campaign 4.2, which still occurs on Ellisbury Update Open Beta

How to Replicate

  1. Click at Car Designer, then select New Car Model.
  2. Choose any car body, then click at Chassis.
  3. Click at Access Engine Manager, then select an engine.
  4. After that, you will get a Lua error message.

Exception: Lua Function Call: SetEngine SetEngine: scripts/shared/functional/COMMON/CCarCalculator_Chassis.lua:378: attempt to index field ‘EngineCalculator’ (a nil value)
Stack Traceback

(1) metamethod C function ‘__newindex’
(2) Lua function ‘?’ at file ‘scripts/shared/functional/COMMON/CCarCalculator_Chassis.lua:378’ (best guess)
Local variables:
self = table: 0x0174ce7cd480 {Database:table: 0x0174cc419000, Stack:table: 0x0174ce7cdcc0, logging:false (more…)}
EngineInfo = table: 0x0174ca956880 {ModelInfo:table: 0x01747a33f780, PlatformInfo:table: 0x01747a338c80}
(*temporary) = nil
(*temporary) = table: 0x0174ca956880 {ModelInfo:table: 0x01747a33f780, PlatformInfo:table: 0x01747a338c80}
(*temporary) = string: “0879940B41830B3F082278BE0F024C27”
(*temporary) = string: “9236F8514C67412A953C238DF76D84FB”
(*temporary) = table: 0x0174ca959880 {Estimators:table: 0x0174c78af780, Database:table: 0x0174cc419000, ProjectInfo:table: 0x0174c78a6940 (more…)}
(*temporary) = string: “attempt to index field ‘EngineCalculator’ (a nil value)”

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

However, if I click at Engine Selection to select an existing engine, I won’t encounter that Lua error message.

Note: I have installed Automation on a brand-new SSD drive, and it still occurred even after I reinstalled it, although all 575 files successfully validated according to Steam.