Zylinder animiren bei Dreschern!

  • Hi leute,


    ich wolte mal fragen wie man die Zylinder am Einzug von Dreschern animiren kann wie es beim Lexion 770 von SFM der fall ist. Ich selbst bin dort jetzt kein neuling und hab schon zylinder bei Tracktoren animirt aber bei meinen Drescher klapt es nicht egal ob ich alle Einträge bei <movingparts> habe, also wenn mir da jemand helfen könte wär das gut! :)


    PS: Ich hab mal gehört das man noch Einträge und den lua´s brauch aber wenn weis ich nicht welche.

  • Sind nur ein paar Zeilen:


    [lua]function XYZ:update(dt)
    if self:getIsActive() then
    Cylindered.updateMovingPart(self, self.movingParts[1]);
    end;
    end;


    function XYZ:updateTick(dt)
    if self:getIsActive() then
    for _, part in pairs(self.movingParts) do
    part.isDirty = true;
    end;
    end;


    end;[/lua]

  • also es geht immer noch nicht und ich kann in nicht kaufen, in der log stehe folgende fehler! :(


    C:/Users/John/Documents/My Games/FarmingSimulator2011/mods/Claas_Lexion_600/Scripts/Lexion770.lua(1314) : '<eof>' expected near 'end'
    Error: Vehicle types unknown specialization Claas_Lexion_600.Lexion770


    Error loadVehicle: unknown type 'Claas_Lexion_600.Lexion770' in 'C:/Users/John/Documents/My Games/FarmingSimulator2011/mods/Claas_Lexion_600/Lexion600.xml'


    als ich dir einträge vom Lexion von SFM genommen hab wars auch nicht anders.

  • In der Lua gibt es klare Strukturen, die eingehalten werden müssen. Daher kam dein Fehler.


    Da dein gepostetes Script generell sehr unübersichtlich ist, kann die Struktur sehr schnell verloren gehen und so ein Fehler entstehen.


    Ich hoffe mal, das ich nun alle Zeilen passend ausgerichtet habe ;)


    MfG

  • ok ich habs ausprobirt, der Drescher ist wider ingame aberich kann nichtmehr aussteigen oder das spiel normal beenden und alle funktionen sowie das heben des SW funktioniren nichtmehrund in der log stehen massenhaft von dehn fehlermeldungen hr! :(


    Lua: Error running function: update
    C:/Users/John/Documents/My Games/FarmingSimulator2011/mods/Claas_Lexion_600/Scripts/Lexion770.lua(999) : attempt to call field 'movingParts' (a table value)
    Lua: Error running function: update
    C:/Users/John/Documents/My Games/FarmingSimulator2011/mods/Claas_Lexion_600/Scripts/Lexion770.lua(999) : attempt to call field 'movingParts' (a table value)
    Lua: Error running function: update
    C:/Users/John/Documents/My Games/FarmingSimulator2011/mods/Claas_Lexion_600/Scripts/Lexion770.lua(999) : attempt to call field 'movingParts' (a table value)
    Lua: Error running function: update
    C:/Users/John/Documents/My Games/FarmingSimulator2011/mods/Claas_Lexion_600/Scripts/Lexion770.lua(999) : attempt to call field 'movingParts' (a table value)
    Lua: Error running function: update
    C:/Users/John/Documents/My Games/FarmingSimulator2011/mods/Claas_Lexion_600/Scripts/Lexion770.lua(999) : attempt to call field 'movingParts' (a table value)
    Lua: Error running function: update
    C:/Users/John/Documents/My Games/FarmingSimulator2011/mods/Claas_Lexion_600/Scripts/Lexion770.lua(999) : attempt to call field 'movingParts' (a table value)
    Lua: Error running function: update
    C:/Users/John/Documents/My Games/FarmingSimulator2011/mods/Claas_Lexion_600/Scripts/Lexion770.lua(999) : attempt to call field 'movingParts' (a table value)
    Lua: Error running function: update
    C:/Users/John/Documents/My Games/FarmingSimulator2011/mods/Claas_Lexion_600/Scripts/Lexion770.lua(999) : attempt to call field 'movingParts' (a table value)
    Lua: Error running function: update
    C:/Users/John/Documents/My Games/FarmingSimulator2011/mods/Claas_Lexion_600/Scripts/Lexion770.lua(999) : attempt to call field 'movingParts' (a table value)
    Lua: Error running function: update
    C:/Users/John/Documents/My Games/FarmingSimulator2011/mods/Claas_Lexion_600/Scripts/Lexion770.lua(999) : attempt to call field 'movingParts' (a table value)
    Lua: Error running function: update
    C:/Users/John/Documents/My Games/FarmingSimulator2011/mods/Claas_Lexion_600/Scripts/Lexion770.lua(999) : attempt to call field 'movingParts' (a table value)
    Lua: Error running function: update
    C:/Users/John/Documents/My Games/FarmingSimulator2011/mods/Claas_Lexion_600/Scripts/Lexion770.lua(999) : attempt to call field 'movingParts' (a table value)
    Lua: Error running function: update
    C:/Users/John/Documents/My Games/FarmingSimulator2011/mods/Claas_Lexion_600/Scripts/Lexion770.lua(999) : attempt to call field 'movingParts' (a table....


    du kanst es auch selber testen mit nem alten Lexion 770 da mein drescher ein umbau dafon ist.

  • jäh es funzt danke! :D


    und ich hät da noch ne frage an dich die auch mit dem script zu tun hat und zwar wolt ich dich fragen ob du mir das so einsstellen kannst das der radialferteiler wenn man in dern Abeitsmodus wechselt gleich in häckselstellung ist und nicht als erstes in schwad position, fals du das kannst wär das echt gut wenn nicht auch nicht schlimm.

Jetzt mitmachen!

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