Adding Ground Unit
Hi!
When trying to add a "pilotable" ground unit in the Mods/tech folder (as here) an error occured and the game crash at 72% when loading.
The mod seems to be well installed since I get the following line in my me.log : MOD ADDED VEHICLE: Strela
The errors are :
00007.315 UNKNOWN main: GUI Error: [string ".\MissionEditor\modules\me_vehicle.lua"]:105: table index is nil
GUI debug.traceback: stack traceback:
[C]: ?
[string ".\MissionEditor\modules\me_vehicle.lua"]:105: in function 'create'
[string ".\MissionEditor\MissionEditor.lua"]:632: in function 'loading'
[string ".\MissionEditor\MissionEditor.lua"]:1048: in main chunk
stack traceback:
[C]: ?
[string ".
00007.315 ALERT LUACOMMON: Error: GUI Error: [string ".\MissionEditor\modules\me_vehicle.lua"]:105: table index is nil
GUI debug.traceback: stack traceback:
[C]: ?
[string ".\MissionEditor\modules\me_vehicle.lua"]:105: in function 'create'
[string ".\MissionEditor\MissionEditor.lua"]:632: in function 'loading'
[string ".\MissionEditor\MissionEditor.lua"]:1048: in main chunk
00007.320 INFO SOUND: detaching sdef path ".\sounds\"
I tried to add the unit in the db_countrie.lua, game still crashed.
This situation does not occur when adding a new plane.
********
Faulting line has been identified, the error occurs when using parameters from the line "attribute".
Code involved :
shape_table_data =
{
{
index = WSTYPE_PLACEHOLDER;
},
},
mapclasskey = "P0091000025",
attribute = {wsType_Ground,wsType_SAM,wsType_Miss,WSTYPE_PLACEHOLDER,"SAM",},
Categories = {"{B84C5FC5-9893-45e4-A712-E3D4D201A003}","SAM",},,
Any tips?