![]() |
Pause when braking, brake lights don't work - Printable Version +- Forums (https://www.vdrift.net/Forum) +-- Forum: Community (https://www.vdrift.net/Forum/forumdisplay.php?fid=3) +--- Forum: Bugs (https://www.vdrift.net/Forum/forumdisplay.php?fid=7) +--- Thread: Pause when braking, brake lights don't work (/showthread.php?tid=383) |
Pause when braking, brake lights don't work - thelusiv - 10-31-2006 For some reason, now the brake lights on the cars don't work, and I get a brief "hang" or pause of the game where the screen freezes for half a second or so. I'm not sure what's causing this...but it makes "brake late" really difficult. Has anybody else noticed this? - cotharyus - 10-31-2006 I haven't noticed this, but then I usually run with the "in car" view - it's typically a much better overall feel for me. - joevenzon - 10-31-2006 I don't have this issue either. - thelusiv - 11-06-2006 Well brake lights still don't work for whatever reason, but I figured out what the pause on braking was - I had the brake button on my joystick mapped to the same thing as "take screenshot". No wonder I had so many screenshots...I guess it would be a good thing to check for duplicate control assignments and disallow them...except in the case of maybe clutch and shifting buttons...hmmm... - joevenzon - 11-07-2006 You have to admit, that's pretty hilarious. ;-) - rookie1 - 11-14-2006 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")); - thelusiv - 11-14-2006 Thanks for finding this! I've fixed it and checked it in. ![]() - rookie1 - 11-15-2006 Quote: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.The cause of this bug is in Gl_Car::draw(). Code: bool illum = false; Code: if (brakesetting > 0) |