Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Pause when braking, brake lights don't work
11-14-2006, 02:38 AM,
#6
 
Non-working brake light is caused by this line in Gl_Car::exterior_model (),
Code:
joeexterior.AdditiveTexture(settings.GetFullDataPath("cars/" + m_car_file + "/brake.joe"), 1);

joeexterior.AdditiveTexture() is actually trying to load the texture from cars/<carname>/brake.png". (as a side note, there is a slight re-direction in AdditiveTexture() which converts the file extention from .joe to .png. This had me confused for quite a while)

Anyway, in the car data files, brake.png is actually at cars/<carname>/textures/brake.png. So the above line should be changed to
Code:
joeexterior.AdditiveTexture(settings.GetFullDataPath("cars/" + m_car_file + "/textures/brake.joe"), 1);

After this change, the brake light comes on when I press brake. However, when I use the handbrake, the brake light stays on even I release the handbrake button. This seems to be another bug.


There are some other problems with this block of codes in Gl_Car::exterior_model (),
Code:
joeglass.Load(settings.GetFullDataPath("cars/" + m_car_file + "/glass.joe"));
joeglass.AdditiveTexture(settings.GetFullDataPath("cars/" + m_car_file + "/brake-glass.joe"), 1);
joeglass.Load(settings.GetFullDataPath("cars/" + m_car_file + "/glass.joe"));
joeglass.AdditiveTexture(settings.GetFullDataPath("cars/" + m_car_file + "/brake-glass.joe"), 1);
Seems to me the 2 lines are repeated. Also, what is brake-glass.joe? Is it different from brake.joe?
Reply


Messages In This Thread
[No subject] - by cotharyus - 10-31-2006, 01:51 PM
[No subject] - by joevenzon_phpbb2_import3 - 10-31-2006, 10:36 PM
[No subject] - by thelusiv - 11-06-2006, 04:48 AM
[No subject] - by joevenzon_phpbb2_import3 - 11-07-2006, 01:20 AM
[No subject] - by rookie1 - 11-14-2006, 02:38 AM
[No subject] - by thelusiv - 11-14-2006, 05:55 AM
[No subject] - by rookie1 - 11-15-2006, 10:56 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)