Beiträge von aranb


Abonniere unseren Kanal auf WhatsApp (klicke hier zum abonnieren).

    Thanks for the reply.
    But I need the hand to move with the machine stopped, it must simulate an acceleration from 0-240.



    I tried to write the code but it only works in part because the SpeedometerKPH value seems not to work, if instead I rename it SpeedometerKPH2 instead it works in part.


    Code
    if Call("*:GetControlValue", "pulsanteKM", 0) > 0 then
    			-- DebugPrint("ON")
    			-- Call("*:SetControlValue", "SpeedometerKPH2", 0, (Call( "*:GetControlValue", "SpeedometerKPH2", 0) + 0.001))
    			-- else
    			-- Call("*:SetControlValue", "SpeedometerKPH2", 0, (Call( "*:GetControlValue", "SpeedometerKPH2", 0) - 0.001))
    		-- end

    I state that I do not know if this is a correct way of writing

    Hi everyone



    I have to create a test for the SpeedometerKPH hand that goes from 0 to 250 and goes back.



    I tried to write various codes but with the hand named SpeedometerKPH it does not move, while if I rename the object it does its duty.
    can you help me write the code. ?(

    Ciao la Badoni non era prevista per una versione tedesca, ma poi visto l'interesse ho voluto dare un piccolo contributo alla Germania, vorrei poter creare più rotabili ma non so dove poter recuperare foto e suoni dei mezzi storici tedeschi, se vi va di aiutarmi possiamo provare a crearne di nuovi


    Hello Badoni was not intended for a German version, but then given the interest I wanted to make a small contribution to Germany, I would like to create more rolling but I do not know where to retrieve photos and sounds of historical German media, if you want to help me we can try to create new ones

    salve a tutti vorrei presentarvi il mio ETR500 Frecciarossa, sul mio sito potete trovare alcune delle mie creazioni e quelle in fase di sviluppo, riguardano maggiormente treni italiani ma anche esteri. Tutti i modelli sono progettati sia per TS che in futuro per TSW.
    Alcune versioni sono free mentre altre possono essere ricevute con una piccola donazione. Vi lascio i link a disposizione.


    Hallo allerseits, ich möchte Ihnen meinen ETR500 Frecciarossa vorstellen, auf meiner Seite finden Sie einige meiner Kreationen und die in der Entwicklung befindlichen, meist italienischen Züge, aber auch ausländische. Alle Modelle sind für TS und in Zukunft für TSW ausgelegt.
    Einige Versionen sind kostenlos, andere können mit einer kleinen Spende erhalten werden. Ich lasse die Links verfügbar.
    Entschuldigung für die Übersetzung.


    http://trainsimmodeltony.altervista.org/


    https://www.youtube.com/channe…MHUQcg?view_as=subscriber

    the clock was already created and working, I just need to make it visible or invisible at the touch of a button, I tried to post it as if it were a cabin light through a script but it does not work


    if Call("*:GetControlValue", "OrologioSCMT", 0) == 1 then


    Call( "Digitalclock:Activate", 1)


    else
    Call( "Digitalclock:Activate", 0)


    end


    another solution but it does not work



    if Call("OrologioSCMT") == 0 then
    Call ( "ActivateNode", "Digitalclock", 0 )

    elseif Call("OrologioSCMT") == 1 then
    Call ( "ActivateNode", "Digitalclock", 1 )



    end

    Salve a tutti , chiedo il vostro aiuto devo realizare un display digitale per un orologio, associato come children object e ho bisogno di spegnerlo e accenderlo, credo che si possa fare tramite script ma non so come procedere potreste aiutarmi grazie ?(


    Hello everyone, I ask for your help I have to make a digital display for a watch, associated as children object and I need to turn it off and turn it on, I think you can do it through scripts but I do not know how to proceed you could help me thanks ?(


    Chiedo scusa se non è la sezione giusta.


    sorry if it's not the right section.

    hello guys I hope I did not have a wrong section in which case I apologize.I also apologize for my language I use a translatorI'm making an ETR500 for high speed Italian but unfortunately after having model and cabin with all the working parts I had to stop because I do not understand anything about the script and language lua, so I hope someone can help me.I have to create a digital speedometer but without having to create an object for every single number, but something that makes them repeat from 0 to 9 without weighing the project, turning on the network I found several scripts already made but none that could be efficient for me, so I have adapted this that I will show you below, I hope you can help me thanks


    gSpeedo = (math.floor(Call("*:GetControlValue", "SpeedometerMPH", 0)))


    _, _, gHundreds, gTens, gUnits = string.find(gSpeedo, "(%d)(%d)(%d)")



    if Call("*:GetControlValue", "SPUnits", 0) == 0 then
    Call("*:SetControlValue", "SPUnits", 0, tonumber(gUnits))
    Call("*:SetControlValue", "SPTens", 0, (0))
    Call("*:SetControlValue", "SPHundreds", 0, (0))


    elseif Call("*:GetControlValue", "SPTens", 0) == 0 then
    Call("*:SetControlValue", "SPUnits", 0, tonumber(gUnits))
    Call("*:SetControlValue", "SPTens", 0, tonumber(gTens))
    Call("*:SetControlValue", "SPHundreds", 0, (0))



    elseif Call("*:GetControlValue", "SPHundreds", 0) == 0 then
    Call("*:SetControlValue", "SPUnits", 0, tonumber(gUnits))
    Call("*:SetControlValue", "SPTens", 0, tonumber(gTens))
    Call("*:SetControlValue", "SPHundreds", 0, tonumber(gHundreds))
    end



    Externer Inhalt youtu.be
    Inhalte von externen Seiten werden ohne Ihre Zustimmung nicht automatisch geladen und angezeigt.
    Durch die Aktivierung der externen Inhalte erklären Sie sich damit einverstanden, dass personenbezogene Daten an Drittplattformen übermittelt werden. Mehr Informationen dazu haben wir in unserer Datenschutzerklärung zur Verfügung gestellt.

    hi guys I just joined and how you want to share the passion for trains in general, I'm a train builder for TS but I still have a lot to learn, thank you for this community.P.S sorry for my language but I use a translator :/