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
30 | |||||
22 | |||||
107 | |||||
16 | |||||
6 | |||||
2 | |||||
2 |
Ladders Top 10
-
#Steam AliasWL%Streak
- 1.968562.633+23
- 2.555227.710+11
- 3.29144.869+1
- 4.275110.714+13
- 5.259143.644+3
- 6.249150.624+10
- 7.19265.747+5
- 8.14138.788+16
- 9.18878.707+2
- 10.669423.613+5
Replay highlight
VS
- cblanco ★
- 보드카 중대
- VonManteuffel
- Heartless Jäger
Einhoven Country
Honor it
7
Download
736
Board Info
507 users are online:
507 guests
0 post in the last 24h
30 posts in the last week
142 posts in the last month
30 posts in the last week
142 posts in the last month
Registered members: 44954
Welcome our newest member, Mtbgbans
Most online: 2043 users on 29 Oct 2023, 01:04 AM
Welcome our newest member, Mtbgbans
Most online: 2043 users on 29 Oct 2023, 01:04 AM