Forums
Tyrell G-P34 bug. - 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: Tyrell G-P34 bug. (/showthread.php?tid=1351)



Tyrell G-P34 bug. - skankerror - 09-30-2010

In data r694, G-P34 can't load.

An oem_wheel_rear.png is missing in textures directory.

I copied oem_wheel.png as oem_wheel_rear.png, and now car can be loaded.

but I discovered that this car only works at first gear. Other gears act as if car is in neutral. rpm grows but it doesn't accelerate. Everything seems ok in [transmission] in G-P34.car, I can't see where's the problem.


- NaN - 09-30-2010

Thanks. Something is going on with the auto clutch. Looks like even if you shift up manually, it wont release the clutch. Will see if I can fix it.


- NaN - 10-03-2010

Looks like the Tyrell config is breaking the AutoClutch heuristic. Means we need a better algorithm here. :?


- NaN - 10-03-2010

The current one looks like:

Code:
const T threshold = 1000.0;
    const T margin = 100.0;
    const T geareffect = 1.0; //zero to 1, defines special consideration of first/reverse gear

    const T rpm = engine.GetRPM();
    const T maxrpm = engine.GetRPMLimit();
    const T stallrpm = engine.GetStallRPM() + margin * (maxrpm / 2000.0);
    const int gear = transmission.GetGear();

    T gearfactor = 1.0;
    if (gear <= 1)
        gearfactor = 2.0;
    T thresh = threshold * (maxrpm/7000.0) * ((1.0-geareffect)+gearfactor*geareffect) + stallrpm;
    if (clutch.IsLocked())
        thresh *= 0.5;
    T clutch = (rpm-stallrpm) / (thresh-stallrpm);

    if (clutch < 0)
        clutch = 0;
    if (clutch > 1.0)
        clutch = 1.0;



- NaN - 10-03-2010

I rewrote the auto clutch code(r2865). Testers are welcomed.


- skankerror - 10-04-2010

Tyrell is working fine !