The table system is pretty simple, but tough to read in an editor. For reliability settings, you'll have to find the table of contents to determine which table it will be found in. Table 4, in the example below, is the place to find it. Looking at the table, you'll see "Results" are on Table: {9}.
-- Table: {x} denotes the beginning of a table.
Table: {4}["item"] denotes an item within the table.
["Results"]If the item contains an integer without brackets, then it is data.
["Revision"]=0,If it contains an integer contained within curly brackets, it is referencing another table.
["Results"]={9}- Code:
-- Table: {4}
{
["UID"]="3adfa088-3887-11e4-aa7d-f79c88d3b09d",
["Downforce"]=1,
["EnginePoint"]={6},
["SuspensionDetails"]={7},
["Revision"]=0,
["Entertainment"]={8},
["CoolingAirflowFraction"]=0.18,
["Results"]={9},
["SoundInsulation"]=0.5,
["EngineInfo"]={10},
["TyreDetails"]={11},
["InclinationRear"]=0.22,
["Brakes"]={12},
["BrakeCoolingFraction"]=1,
... }
If we move to Table 9, as indicated by the previous information, we can find what we're looking for. Some will reference other tables, while others will give us integer data. Some integer data is simple to read, while others are more cryptic. For example, the weight of this car is 1602.9kg. The top speed is 244.6km/h. Tameness will be shown on Table: {44}. The 0-62 mph time is 6.7s. You get the idea. Average reliability for this car is 60.8.
- Code:
-- Table: {9}
{
["Weight"]=1602.9138298396,
["TopSpeed"]=244.54816343949,
["Tameness"]={44},
["HundredTime"]=6.6649999999999,
["Offroad"]=27.514675401094,
["KilometerSpeed"]=202.20807699553,
["LargeCircleTest"]={45},
["SixtyTime"]=3.7999999999999,
["HighSpeedcg"]={46},
["BrakingDistance"]=40.897647118499,
["TwoHundredTime"]=25.805,
["EffArea"]=0.93500599864047,
["TotalCosts"]=9520.4427653345,
["PassengerVolume"]=3837.4151981849,
["Comfort"]={47},
["Prestige"]={48},
["Reliability"]=60.845412614576,
["QuarterMileSpeed"]=163.54816415596,
["Safety"]={49},
["cg"]={50},
["Sportiness"]={51},
["KilometerTime"]=26.555,
["HundredAndTwentyTime"]=9.0649999999998,
["EightyTime"]=5.2249999999999,
["Cost"]=7013.8812877232,
["Utility"]=46.662585761657,
["SuperTyresBrakingDistance"]=33.613746326759,
["EnvironmentalResistance"]=77.829948967516,
["ManHours"]=143.23208443493,
["EightyToHundredAndTwentyTime"]=3.8399999999999,
["CargoVolume"]=495.6184387207,
["QuarterMileTime"]=14.945,
["SmallCircleTest"]={52},
["Failures"]={53},
["ServiceCosts"]=2184.4359684765,
["Stiffness"]=3457.1428571429,
["Economy"]=13.842777269086,
["WheelSpinFraction"]=0.446,
},
The keyword "Reliability" is listed for multiple items used on the car, so it would be tough to search for by itself. Here is the reliability for the Rear Suspension:
- Code:
-- Table: {34}
{
["LiveAxle"]=true,
["MaxInsideWidth"]=50,
["Comfort"]="VeryLow",
["Production"]={140},
["RollCentre"]=-0,
["UnsprungWeight"]=70,
["Sportiness"]="VeryLow",
["OneMesh"]=true,
["PosData"]={141},
["Offroad"]="High",
["Weight"]="High",
["MeshPart2"]="LIVELEAF",
["MeshPart"]="LIVELEAF",
["Name"]="Suspend_SolAxLeaf_Name",
["MidEngine"]=false,
["ManHours"]="VeryLow",
["Compactness"]="High",
["Section"]="Chassis",
["Tameness"]="VeryLow",
["CanBeDriven"]=true,
["Reliability"]=95,
["CamberChange"]={142},
["LoadCapacity"]="ExtremelyHigh",
},
After looking through the LUA files for a bit, you can start to understand how to find things, and what is located where. They are not the same for every LUA file, as the order depends on the items used. I'm sure this is probably way more than you wanted to know.
