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
64 | |||||
328 | |||||
39 | |||||
30 | |||||
14 | |||||
4 |
Ladders Top 10
-
#Steam AliasWL%Streak
- 1.831222.789+37
- 2.611220.735+5
- 3.34957.860+14
- 4.1110614.644+11
- 5.276108.719+27
- 6.306114.729+2
- 7.918405.694+2
- 8.262137.657+3
- 9.722440.621+4
- 10.1041674.607-2
Replay highlight
VS
- cblanco ★
- 보드카 중대
- VonManteuffel
- Heartless Jäger
Einhoven Country
Honor it
9
Download
1236
Board Info
858 users are online:
858 guests
0 post in the last 24h
7 posts in the last week
34 posts in the last month
7 posts in the last week
34 posts in the last month
Registered members: 49122
Welcome our newest member, Harda621
Most online: 2043 users on 29 Oct 2023, 01:04 AM
Welcome our newest member, Harda621
Most online: 2043 users on 29 Oct 2023, 01:04 AM