walder/Skynet-IADS

[SOLVED] Traceback error

Closed this issue · 2 comments

image

Getting this error all of a sudden, nothing was touched in the compiled lua.

All scripts have stopped working as well.

Log extract

2022-11-07 10:18:56.195 INFO SCRIPTING (Main): --- SKYNET VERSION: 3.0.1 | BUILD TIME: 06.11.2022 1728Z ---
2022-11-07 10:18:56.197 INFO SCRIPTING (Main): SKYNET: GOING LIVE: IADS ELEMENT: EW 1 | Type: Tall Rack
2022-11-07 10:18:56.197 INFO SCRIPTING (Main): SKYNET: GOING DARK: IADS ELEMENT: EW 1 | Type: Tall Rack
2022-11-07 10:18:56.197 INFO SCRIPTING (Main): SKYNET: GOING LIVE: IADS ELEMENT: EW 1 | Type: Tall Rack
2022-11-07 10:18:56.197 INFO SCRIPTING (Main): SKYNET: ADDED: IADS ELEMENT: EW 1 | Type: Tall Rack
2022-11-07 10:18:56.197 INFO SCRIPTING (Main): SKYNET: GOING LIVE: IADS ELEMENT: SAM 1 | Type: SA-6
2022-11-07 10:18:56.197 INFO SCRIPTING (Main): SKYNET: GOING DARK: IADS ELEMENT: SAM 1 | Type: SA-6
2022-11-07 10:18:56.197 ERROR SCRIPTING (Main): Mission script error: [string "C:\Users\utente\AppData\Local\Temp\DCS.openbeta/~mis00006E83.lua"]:1871: attempt to index local 'dcsRepresentation' (a nil value)
stack traceback:
[C]: ?
[string "C:\Users\utente\AppData\Local\Temp\DCS.openbeta/~mis00006E83.lua"]:1871: in function 'create'
[string "C:\Users\utente\AppData\Local\Temp\DCS.openbeta/~mis00006E83.lua"]:1978: in function 'create'
[string "C:\Users\utente\AppData\Local\Temp\DCS.openbeta/~mis00006E83.lua"]:2120: in function 'create'
[string "C:\Users\utente\AppData\Local\Temp\DCS.openbeta/~mis00006E83.lua"]:3045: in function 'create'
[string "C:\Users\utente\AppData\Local\Temp\DCS.openbeta/~mis00006E83.lua"]:1409: in function 'addCommandCenter'
[string "C:\Users\utente\AppData\Local\Temp\DCS.openbeta/~mis00003E0C.lua"]:27: in main chunk

The issue appears to be caused by one or more SAM types placed on the ground. Will add details.

@theonefrancis check the code where you add the command center, does that unit you are adding really exist?

@walder the issue was the Command Center, yes. The object I chose was not considered a CC.