Ap Neue funktionen

  • das is nicht so einfach erstmal suchts du ungefähr in der mitte solche zeilen



    if (left < 1 and right < 1) or (left > 19 and right > 19) then
    self.autoPilotDelayRight = self.autoPilotDelayRight +1;
    else
    self.autoPilotDelayRight = 0;
    end;
    end;


    if self.autoPilotAreaLeft.available and self.autoPilotAreaLeft.active and self.autopilotId == 7 then
    local x,y,z = getWorldTranslation(self.autoPilotAreaLeft.startOutside);
    local x1,y1,z1 = getWorldTranslation(self.autoPilotAreaLeft.widthOutside);
    local x2,y2,z2 = getWorldTranslation(self.autoPilotAreaLeft.heightOutside);
    local left = Utils.getDensity(g_currentMission.fruits[FruitUtil.FRUITTYPE_MAIZE].cutShortId, 0, x, z, x1, z1, x2, z2);


    local x,y,z = getWorldTranslation(self.autoPilotAreaLeft.startInside);
    local x1,y1,z1 = getWorldTranslation(self.autoPilotAreaLeft.widthInside);
    local x2,y2,z2 = getWorldTranslation(self.autoPilotAreaLeft.heightInside);
    local right = Utils.getDensity(g_currentMission.fruits[FruitUtil.FRUITTYPE_MAIZE].cutShortId, 0, x, z, x1, z1, x2, z2);


    self.turnDirection = ((20 -right) -left*4);


    if (left < 1 and right < 1) or (left > 19 and right > 19) then
    self.autoPilotDelayLeft = self.autoPilotDelayLeft +1;
    else



    also das steht doch was von fruittype maize dies mus du so umändern wie du wilst!und ihr müsst das cutshort noch umändern
    bitte verbessert mich wen es falsch ist! :) :)

  • schu der mal die zeilen an wo nur grass steht und dahinter nicht cutlong oder so was steht und schreib anstat grass ma wheat rein für weizen in deiner anzeige musst du dann auf grass stelln eig funktioniert er dann


    also bei mir funktionert es im lexion


    100%

  • also ich hab mal gesucht und nur das gefunden wo steht da bitte grass oder wheat?


    if self.autopilotId == 0 then
    renderText(self.helpPanelTextPosX, self.helpPanelTextPosY-0.325, 0.023, "AP: gemaehtes Gras");
    setTextColor(0.0, 1.0, 0.0, 1.0);
    renderText(self.helpPanelTextPosX, self.helpPanelTextPosY-0.3, 0.023, "AP: Gras");

  • naja das hab ich etz schon das richtige gefunden


    if self.autoPilotAreaRight.available and self.autoPilotAreaRight.active and self.autopilotId == 0 then
    local x,y,z = getWorldTranslation(self.autoPilotAreaRight.startOutside);
    local x1,y1,z1 = getWorldTranslation(self.autoPilotAreaRight.widthOutside);
    local x2,y2,z2 = getWorldTranslation(self.autoPilotAreaRight.heightOutside);
    local right = Utils.getFruitArea(FruitUtil.FRUITTYPE_GRASS, x, z, x1, z1, x2, z2);


    local x,y,z = getWorldTranslation(self.autoPilotAreaRight.startInside);
    local x1,y1,z1 = getWorldTranslation(self.autoPilotAreaRight.widthInside);
    local x2,y2,z2 = getWorldTranslation(self.autoPilotAreaRight.heightInside);
    local left = Utils.getFruitArea(FruitUtil.FRUITTYPE_GRASS, x, z, x1, z1, x2, z2);
    self.turnDirection = right -(9 -left);


    self.turnDirection = right*4 -(20 -left);


    if (left < 1 and right < 1) or (left > 19 and right > 19) then
    self.autoPilotDelayRight = self.autoPilotDelayRight +1;
    else
    self.autoPilotDelayRight = 0;
    also die roten muss ich ja ändern oder??

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!