Hi Katzer,
The error reported in the stdout is about an issue the game has with compressing transparent .tga textures. Since the last major update the use of the tga textures is showing up as an error in the log. I'm fairly confident (99% sure) this won't be the reason for the game to crash. I used the .tga glass textures until my Iveco Turbostar mod, so they are in many other mods as well.
I will make a small add-on mod to overrule the files and may ask you for some testing with that.
Now I fear the cause for the crash is much harder to discover. Based on the report there is one possible cause I recognize that will result to similar symptoms. And that is when a vehicle mod references a light mesh that is not part of the LOD. It's especially hard to discover when the reference is on e.g. one of the blink lights in a lower LOD, as the game only crashes when the light is triggered and of course within sight of view.
Unfortunately the Validate button in the model editor doesn't warn you of such errors, I wanted to post a request to @UG to include this in the validation, so kind-a herewith; Urban Games, can you please add this in a next update?
For example here a bit of code for a standard vanilla VW Golf that will crash the game, the error is the roadVehicle metadata, where for LOD1 the blinkLightsRight uses mesh # 18, while for this lod the model only has 8 meshes.
function data()
return {
boundingInfo = {
bbMax = { 1.8463107347488, 0.85151165723801, 1.3810857534409, },
bbMin = { -1.8586933612823, -0.85151207447052, 0.010737746953964, },
},
collider = {
params = {
halfExtents = { 1.8525021076202, 0.85151183605194, 0.68517398834229, },
},
transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, },
type = "BOX",
},
lods = {
{
node = {
children = {
{
materials = { "vehicle/car/vw_golf_1_v2/vw_golf_1.mtl", },
mesh = "vehicle/car/vw_golf_1_v2/body_lod0.msh",
name = "body",
transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, },
},
{
children = {
{
materials = { "vehicle/car/vw_golf_1_v2/vw_golf_1_interior_glass.mtl", "vehicle/car/vw_golf_1_v2/vw_golf_1_glass.mtl", },
mesh = "vehicle/car/vw_golf_1_v2/glass_frt_lod0.msh",
name = "glass_frt",
transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0.56812262535095, -2.3841857910156e-07, 1.1119214296341, 1, },
},
{
materials = { "vehicle/car/vw_golf_1_v2/vw_golf_1_interior_glass.mtl", "vehicle/car/vw_golf_1_v2/vw_golf_1_glass.mtl", },
mesh = "vehicle/car/vw_golf_1_v2/glass_lft_lod0.msh",
name = "glass_lft",
transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, -0.45244112610817, 0.63082963228226, 1.0904700756073, 1, },
},
{
materials = { "vehicle/car/vw_golf_1_v2/vw_golf_1_interior_glass.mtl", "vehicle/car/vw_golf_1_v2/vw_golf_1_glass.mtl", },
mesh = "vehicle/car/vw_golf_1_v2/glass_rgt_lod0.msh",
name = "glass_rgt",
transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, -0.45244136452675, -0.63082993030548, 1.0904698371887, 1, },
},
{
materials = { "vehicle/car/vw_golf_1_v2/vw_golf_1_interior_glass.mtl", "vehicle/car/vw_golf_1_v2/vw_golf_1_glass.mtl", },
mesh = "vehicle/car/vw_golf_1_v2/glass_bck_lod0.msh",
name = "glass_bck",
transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, -1.455917596817, 1.1920928955078e-07, 1.0998661518097, 1, },
},
},
name = "glass_grp",
transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, },
},
{
materials = { "vehicle/car/vw_golf_1_v2/vw_golf_1_interior.mtl", },
mesh = "vehicle/car/vw_golf_1_v2/interior_lod0.msh",
name = "interior",
transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, },
},
{
materials = { "vehicle/car/vw_golf_1_v2/vw_golf_1.mtl", },
mesh = "vehicle/car/vw_golf_1_v2/w1_lft_lod0.msh",
name = "w1_lft",
transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 1.1235036849976, 0.71018010377884, 0.29357326030731, 1, },
},
{
materials = { "vehicle/car/vw_golf_1_v2/vw_golf_1.mtl", },
mesh = "vehicle/car/vw_golf_1_v2/w1_lft_lod0.msh",
name = "w1_rgt",
transf = { -1, -8.7422776573476e-08, 1.5099578831723e-07, 0, 8.7422797889758e-08, -1, 1.5099578831723e-07, 0, 1.5099578831723e-07, 1.5099578831723e-07, 1, 0, 1.1517723798752, -0.71018081903458, 0.29357326030731, 1, },
},
{
materials = { "vehicle/car/vw_golf_1_v2/vw_golf_1.mtl", },
mesh = "vehicle/car/vw_golf_1_v2/w2_lod0.msh",
name = "w2",
transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, -1.2010623216629, 1.0721212362341e-07, 0.29357331991196, 1, },
},
{
materials = { "vehicle/car/emissive/car_all_lights.mtl", },
mesh = "vehicle/car/vw_golf_1_v2/headlights_lod0.msh",
name = "headlights",
transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, },
},
{
materials = { "vehicle/car/emissive/car_brake_lights.mtl", },
mesh = "vehicle/car/vw_golf_1_v2/brakelights_lod0.msh",
name = "brakelights",
transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, },
},
{
materials = { "vehicle/car/emissive/car_blink_lights.mtl", },
mesh = "vehicle/car/vw_golf_1_v2/blinklights_lft_lod0.msh",
name = "blinklights_lft",
transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, },
},
{
materials = { "vehicle/car/emissive/car_blink_lights.mtl", },
mesh = "vehicle/car/vw_golf_1_v2/blinklights_rgt_lod0.msh",
name = "blinklights_rgt",
transf = { -1, 1.5099578831723e-07, -1.2246468525852e-16, 0, -1.5099578831723e-07, -1, -1.2246469849341e-16, 0, -1.2246469849341e-16, -1.2246468525852e-16, 1, 0, 0, 0, 0, 1, },
},
{
name = "comp_grp",
transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, },
},
},
name = "RootNode",
transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, },
},
static = false,
visibleFrom = 0,
visibleTo = 100,
},
{
node = {
children = {
{
materials = { "vehicle/car/vw_golf_1_v2/vw_golf_1_lod.mtl", },
mesh = "vehicle/car/vw_golf_1_v2/body_lod1.msh",
name = "body",
transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, },
},
{
materials = { "vehicle/car/vw_golf_1_v2/vw_golf_1_lod.mtl", },
mesh = "vehicle/car/vw_golf_1_v2/w1_lft_lod1.msh",
name = "w1_lft",
transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 1.1235036849976, 0.71018010377884, 0.29357326030731, 1, },
},
{
materials = { "vehicle/car/vw_golf_1_v2/vw_golf_1_lod.mtl", },
mesh = "vehicle/car/vw_golf_1_v2/w1_lft_lod1.msh",
name = "w1_rgt",
transf = { -1, -8.7422776573476e-08, 1.5099578831723e-07, 0, 8.7422797889758e-08, -1, 1.5099578831723e-07, 0, 1.5099578831723e-07, 1.5099578831723e-07, 1, 0, 1.1517723798752, -0.71018081903458, 0.29357326030731, 1, },
},
{
materials = { "vehicle/car/vw_golf_1_v2/vw_golf_1_lod.mtl", },
mesh = "vehicle/car/vw_golf_1_v2/w2_lod1.msh",
name = "w2",
transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, -1.2010623216629, 1.0721212362341e-07, 0.29357331991196, 1, },
},
{
materials = { "vehicle/car/emissive/car_all_lights.mtl", },
mesh = "vehicle/car/vw_golf_1_v2/headLights_lod1.msh",
name = "headLights",
transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, },
},
{
materials = { "vehicle/car/emissive/car_brake_lights.mtl", },
mesh = "vehicle/car/vw_golf_1_v2/brakeLights_lod1.msh",
name = "brakeLights",
transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, },
},
{
materials = { "vehicle/car/emissive/car_blink_lights.mtl", },
mesh = "vehicle/car/vw_golf_1_v2/blinklights_lft_lod1.msh",
name = "blinklights_lft",
transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, },
},
{
materials = { "vehicle/car/emissive/car_blink_lights.mtl", },
mesh = "vehicle/car/vw_golf_1_v2/blinklights_rgt_lod1.msh",
name = "blinklights_rgt",
transf = { -1, 1.5099578831723e-07, -1.2246468525852e-16, 0, -1.5099578831723e-07, -1, -1.2246469849341e-16, 0, -1.2246469849341e-16, -1.2246468525852e-16, 1, 0, 0, 0, 0, 1, },
},
},
name = "RootNode",
transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, },
},
static = false,
visibleFrom = 100,
visibleTo = 250,
},
{
node = {
children = {
{
materials = { "vehicle/car/vw_golf_1_v2/vw_golf_1_lod.mtl", },
mesh = "vehicle/car/vw_golf_1_v2/body_lod2.msh",
name = "body",
transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, },
},
},
name = "RootNode",
transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, },
},
static = false,
visibleFrom = 250,
visibleTo = 625,
},
},
metadata = {
availability = {
yearFrom = 1974,
yearTo = 0,
},
car = { },
colorConfig = {
configs = {
{
{ 0.69019603729248, 0.37241819500923, 0, },
},
{
{ 0.26666665077209, 0.11764705181122, 0.15691992640495, },
},
{
{ 0.29427140951157, 0.33725488185883, 0.29431617259979, },
},
{
{ 0.22340020537376, 0.14085352420807, 0.27843135595322, },
},
{
{ 0.52941179275513, 0.12119378894567, 0.026989618316293, },
},
{
{ 0.85882353782654, 0.85882353782654, 0.85882353782654, },
},
},
},
emission = {
idleEmission = -1,
powerEmission = -1,
speedEmission = -1,
},
roadVehicle = {
blinkInterval = 500,
configs = {
{
axles = { "vehicle/car/vw_golf_1_v2/w2_lod0.msh", },
blinkLightsLeft = { 13, },
blinkLightsRight = { 14, },
brakeLights = { 12, },
fakeBogies = {
{
group = 0,
offset = 0,
position = 0,
upright = false,
},
},
headLights = { 11, },
steeringParts = { },
wheels = { "vehicle/car/vw_golf_1_v2/w1_lft_lod0.msh", },
},
{
axles = { "vehicle/car/vw_golf_1_v2/w2_lod1.msh", },
blinkLightsLeft = { 7, },
blinkLightsRight = { 18, },
brakeLights = { 6, },
fakeBogies = {
{
group = 0,
offset = 0,
position = 0,
upright = false,
},
},
headLights = { 5, },
steeringParts = { },
wheels = { "vehicle/car/vw_golf_1_v2/w1_lft_lod1.msh", },
},
{
axles = { },
blinkLightsLeft = { },
blinkLightsRight = { },
brakeLights = { },
fakeBogies = {
{
group = 0,
offset = 0,
position = 0,
upright = false,
},
},
headLights = { },
steeringParts = { },
wheels = { },
},
},
engine = {
power = 37,
tractiveEffort = 6.5,
type = "DIESEL",
},
soundSet = {
horn = "",
name = "car_modern",
},
topSpeed = 27.780000686646,
weight = 0.80000001192093,
},
seatProvider = {
crewModels = { },
drivingLicense = "BUS",
seats = {
{
animation = "driving",
crew = true,
forward = true,
group = 15,
transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0.0099999997764826, 0.37099996209145, -0.0079999975860119, 1, },
},
},
},
versioning = {
__version = "_v03",
},
},
version = 1,
}
end