Hi Folks,
need your help in defining a LUA Table.
Script run in Error: "attempt to index field 'GERMAN' (a nil value)"
-- CoH2 Factions, MP Ground Units
_SBP={} <---- think the Problem is here in wrong Table define.
--GERMAN OSTHEER
_SBP.GERMAN.SOLDIERS={
SBP.GERMAN.ASSAULT_GRENADIER_SQUAD_MP,
SBP.GERMAN.GRENADIER_SQUAD_MG42LMG_MP,
SBP.GERMAN.GRENADIER_SQUAD_MP,
SBP.GERMAN.MG42_HEAVY_MACHINE_GUN_SQUAD_MP,
SBP.GERMAN.MORTAR_TEAM_81MM_MP,
SBP.GERMAN.ASSAULT_OFFICER_SQUAD_MP,
SBP.GERMAN.OFFICER_SQUAD_MP,
SBP.GERMAN.OSTRUPPEN_SQUAD_MP,
SBP.GERMAN.OSTRUPPEN_SQUAD_RESERVES_MP,
SBP.GERMAN.PANZER_GRENADIER_SQUAD_MP,
SBP.GERMAN.URBAN_ASSAULT_PANZER_GRENADIER_SQUAD_MP,
SBP.GERMAN.PIONEER_SQUAD_MP,
SBP.GERMAN.SNIPER_SQUAD_MP,
SBP.GERMAN.STORMTROOPER_SQUAD_MP,
SBP.GERMAN.PAK40_75MM_AT_GUN_SQUAD_MP,
SBP.GERMAN.PAK43_88MM_AT_GUN_SQUAD_MP}
_SBP.GERMAN.VEHICLES_LIGHT={
SBP.GERMAN.SCOUTCAR_SDKFZ222_MP,
SBP.GERMAN.MECHANIZED_250_HALFTRACK_GRENADIERS_MP,
SBP.GERMAN.MECHANIZED_250_HALFTRACK_MP,
SBP.GERMAN.MORTAR_250_HALFTRACK_SQUAD_MP,
SBP.GERMAN.SDKFZ_251_HALFTRACK_SQUAD_MP,
SBP.GERMAN.PUMA_EAST_GERMAN_MP,
SBP.GERMAN.PANZERWERFER_SQUAD_MP}
_SBP.GERMAN.VEHICLES_HEAVY={
SBP.GERMAN.BRUMMBAR_SQUAD_MP,
SBP.GERMAN.ELEFANT_TANK_DESTROYER_SQUAD_MP,
SBP.GERMAN.HOWITZER_105MM_LE_FH18_ARTILLERY_MP,
SBP.GERMAN.PANZER_IV_COMMAND_SQUAD_MP,
SBP.GERMAN.OSTWIND_SQUAD_MP,
SBP.GERMAN.STUG_III_E_COMMANDER_SQUAD_MP,
SBP.GERMAN.STUG_III_E_SQUAD_MP,
SBP.GERMAN.STUG_III_SQUAD_MP,
SBP.GERMAN.PANZER_IV_SQUAD_MP,
SBP.GERMAN.PANZER_IV_STUBBY_SQUAD_MP,
SBP.GERMAN.PANTHER_SQUAD_MP,
SBP.GERMAN.TIGER_SQUAD_MP,
SBP.GERMAN.TIGER_ACE_SQUAD_MP}
07:07:15.32 SCAR ERROR Callstack:
Lua test_coh2_units.scar"] Ln 27 (OnInit)
07:07:15.32 GameObj:nFatalScarError: [[string "DATAcenarios\mp\community\test_coh2_units\test_coh2_units.scar"]:27: attempt to index field 'GERMAN' (a nil value)]
07:07:15.32 GAME -- SimulationController:ause 0
never give up greetings
-ernst-
Problem with LUA Table
29 Aug 2015, 07:21 AM
#1
Posts: 42
30 Aug 2015, 04:34 AM
#2
Posts: 42
...never give up, trail and error was the "solution" ;o))
-- CoH2 Factions, MP Ground Units
_SBP={
GERMAN={
SOLDIER={},
VEHICLES_LIGHT={},
VEHICLES_HEAVY={}
},
AEF={
SOLDIER={},
VEHICLES_LIGHT={},
VEHICLES_HEAVY={}
},
SOVIET={
SOLDIER={},
VEHICLES_LIGHT={},
VEHICLES_HEAVY={}
},
WEST_GERMAN={
SOLDIER={},
VEHICLES_LIGHT={},
VEHICLES_HEAVY={}
}
}
_ABILITY={
GERMAN={},
AEF={},
SOVIET={},
WEST_GERMAN={}
}
_UPG={
GERMAN={},
AEF={},
SOVIET={},
WEST_GERMAN={}
}
Now Script run whitout Error,.. ;o)
-- CoH2 Factions, MP Ground Units
_SBP={
GERMAN={
SOLDIER={},
VEHICLES_LIGHT={},
VEHICLES_HEAVY={}
},
AEF={
SOLDIER={},
VEHICLES_LIGHT={},
VEHICLES_HEAVY={}
},
SOVIET={
SOLDIER={},
VEHICLES_LIGHT={},
VEHICLES_HEAVY={}
},
WEST_GERMAN={
SOLDIER={},
VEHICLES_LIGHT={},
VEHICLES_HEAVY={}
}
}
_ABILITY={
GERMAN={},
AEF={},
SOVIET={},
WEST_GERMAN={}
}
_UPG={
GERMAN={},
AEF={},
SOVIET={},
WEST_GERMAN={}
}
Now Script run whitout Error,.. ;o)
PAGES (1)
1 user is browsing this thread:
1 guest
Livestreams
97 | |||||
38 | |||||
9 | |||||
9 | |||||
5 | |||||
3 | |||||
1 | |||||
1 |
Ladders Top 10
-
#Steam AliasWL%Streak
- 1.278110.716+16
- 2.270144.652+2
- 3.29446.865-1
- 4.558230.708+2
- 5.253150.628+14
- 6.968566.631-4
- 7.372.949+7
- 8.22491.711+11
- 9.8120.802-1
- 10.19078.709+4
Replay highlight
VS
- cblanco ★
- 보드카 중대
- VonManteuffel
- Heartless Jäger
Einhoven Country
Honor it
7
Download
780
Board Info
492 users are online:
492 guests
6 posts in the last 24h
38 posts in the last week
147 posts in the last month
38 posts in the last week
147 posts in the last month
Registered members: 45341
Welcome our newest member, coolstufffoodtobacco
Most online: 2043 users on 29 Oct 2023, 01:04 AM
Welcome our newest member, coolstufffoodtobacco
Most online: 2043 users on 29 Oct 2023, 01:04 AM