1. Trouble with the game?
    Try the troubleshooter!

    Dismiss Notice
  2. Issues with the game?
    Check the Known Issues list before reporting!

    Dismiss Notice
  3. Before reporting issues or bugs, please check the up-to-date Bug Reporting Thread for the current version.
    0.35 Bug Reporting thread
    Solutions and more information may already be available.

Fatal LUA error in partShopping in Career Mode

Discussion in 'Troubleshooting: Bugs, Questions and Support' started by Speed_Freak13, Mar 21, 2025.

  1. Speed_Freak13

    Speed_Freak13
    Expand Collapse

    Joined:
    May 28, 2024
    Messages:
    188
    I am bug testing my mod in Career Mode, and when I go to buy extra parts for one of my mod's config cars, i get this error.


    353.673|E|GameEngineLua|*** FATAL LUA ERROR: [string "lua/ge/extensions/career/modules/partShopping..."]:113: bad argument #1 to 'ipairs' (table expected, got string)
    353.673|E|GameEngineLua|=============== Stack Traceback >> START >>
    353.673|E|GameEngineLua|(1) global C function 'ipairs'
    353.673|E|GameEngineLua|(2) Lua upvalue 'generatePartShop' at line 113 of chunk 'lua/ge/extensions/career/modules/partShopping.lua'
    353.673|E|GameEngineLua| currentVehicleData = table: 0x024b15bee1a8 {vehicleDirectory:/vehicles/j58/, ioCtx:table: 0x024b13d419b0, vdata:table: 0x024b13d41bf0 (more...)}
    353.673|E|GameEngineLua| availableParts = table: 0x024b166f8118 {pigeon_i4_internals:table: 0x024b76a8c098, super_steer_02b:table: 0x024b156c9d88 (more...)}
    353.673|E|GameEngineLua| slotMap = table: 0x024b166f9ba0 {pigeon_i4_internals:table: 0x024b166f8660, digidash_cells_bottom_right_widget:table: 0x024b166f86a8 (more...)}
    353.673|E|GameEngineLua| vehicleObj = userdata: (...)
    353.673|E|GameEngineLua| (for generator) = C function: next
    353.673|E|GameEngineLua| (for state) = table: 0x024b13d41a30 {super_fueltank_R:super_fueltank_R, super_differential_R:super_differential_R_race (more...)}
    353.673|E|GameEngineLua| (for control) = userdata: (...)
    353.673|E|GameEngineLua| _ = string[4]: "main"
    353.673|E|GameEngineLua| partName = string[5]: "super"
    353.673|E|GameEngineLua| partInfo = table: 0x024b14c69868 {authors:BeamNG, description:Civetta J58, slotInfoUi:table: 0x024b144841d8 (more...)}
    353.673|E|GameEngineLua| (for generator) = C function: next
    353.673|E|GameEngineLua| (for state) = table: 0x024b144841d8 {paint_design:table: 0x024b14eebbf0, licenseplate_design_2_1:table: 0x024bfb953068 (more...)}
    353.673|E|GameEngineLua| (for control) = userdata: (...)
    353.673|E|GameEngineLua| mainSlotName = string[9]: "super_mod"
    353.673|E|GameEngineLua| chosenPartSlotInfo = table: 0x024b14c66f58 {denyTypes:Additional Modification, name:super_mod, allowTypes:}
    353.673|E|GameEngineLua|(3) Lua upvalue 'startShoppingActual' at line 256 of chunk 'lua/ge/extensions/career/modules/partShopping.lua'
    353.673|E|GameEngineLua| _originComputerId = string[28]: "servicestationGarageComputer"
    353.673|E|GameEngineLua| vehicles = table: 0x024b01a3d668 {1:table: 0x024b7667a8c8, 2:table: 0x024b29ac3f40, 3:table: 0x024b0aa3e408 (more...)}
    353.673|E|GameEngineLua| currentVehicleData = table: 0x024b15bee1a8 {vehicleDirectory:/vehicles/j58/, ioCtx:table: 0x024b13d419b0, vdata:table: 0x024b13d41bf0 (more...)}
    353.673|E|GameEngineLua|(4) Lua upvalue 'startShopping' at line 299 of chunk 'lua/ge/extensions/career/modules/partShopping.lua'
    353.673|E|GameEngineLua| inventoryId = number: 5
    353.673|E|GameEngineLua| _originComputerId = string[28]: "servicestationGarageComputer"
    353.673|E|GameEngineLua| numberOfBrokenParts = number: 0
    353.673|E|GameEngineLua|(5) Lua field 'callback' at line 635 of chunk 'lua/ge/extensions/career/modules/partShopping.lua'
    353.673|E|GameEngineLua|(6) Lua field 'computerButtonCallback' at line 61 of chunk 'lua/ge/extensions/career/modules/computer.lua'
    353.673|E|GameEngineLua| buttonId = string[8]: "partShop"
    353.673|E|GameEngineLua| inventoryId = number: 5
    353.673|E|GameEngineLua| functionData = table: 0x024b15f571a0 {order:1, callback:function: 0x024b15f57250, id:partShop, label:purchase Parts (more...)}
    353.673|E|GameEngineLua|(7) main chunk of line at line 1
    353.673|E|GameEngineLua|--------------- << END <<

    I know it is something inside my mod it doesn't like, but I don't know what it is. ONLY my mod makes the partShopping crash.

    If I could get a comprehensive answer from someone who LUA's, I would be greatly appreciative.
     
    #1 Speed_Freak13, Mar 21, 2025
    Last edited: Mar 23, 2025
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice