Hi all,
I have just started working on the interior light of my bus, but got a bit stuck on the script and/or mesh...
Basically, I have created a mesh of the fluorescent light tubes for the bus, under, say, a mesh file called FTube1.o3d. I have created two textures, one called Cabin_light_off.tga and another called Cabin_light_on.tga, and then mapped the mesh in Blender with the Cabin_light_off.tga texture file.
Now, after doing the usual export and conversion to .o3d, I went into the model file and added the following, hoping that the mesh will pick up the Cabin_light_off.tga texture file when the light gets turned on:
[mesh]
FTube1.o3d
[illumination_interior]
-1
-1
-1
-1
[matl_change]
Cabin_light_on.tga
0
lights_beleuchtung_unterdeck
After all that, I tried to load the bus in the game and ended up with the "Zugriffsverletzung bei Adresse" (Access violation) error. After going through the file, I noted the following entry:
"File vehicles\Volvo_B10M_PS\model\model_B10M.cfg: texture filename Cabin_light_on.tga not found in mesh file vehicles\Volvo_B10M_PS\model\FTube1.o3d!"
So, what have I done wrong, and how shall I resolve the problem?
Thanks!