Thor's collection thread for DFI-related questions

  • :flag_gb:Hi,


    I need to construct a specific DFI to be fitted in my Copenhagen bus stops.

    Like these two:


    My question is: After creating the object in Blender, what textures do I need? Like background/nighttex/alpha channel? And what should each of these contain?

    And just a very short general explanation for a dumbhead like me: How should these textures then be configured script-wise?


    :flag_ger: Moin,


    Für meine Kopenhagen-Karte brauche ich ein DFI für die Haltestellen, wie im Bild von oben anzuschauen ist.


    Die Frage, die ich habe, ist: Nachdem ich den Objekt in Blender gebaut habe, welche Texturen brauche ich eigentlich? Hintergrund/Nacht/Alpha-Kanal? Und was müssen sie enthalten?

    Und nur ganz kurz für einen Dummkopf wie ich: Wie muss ich die im Script konfigurieren?


    Best regards/Liebe Grüße,

    Thor

  • Hi Thor,


    since this is a complex undertaking, I cannot write you a simple recipe here. But first the most important:

    - in your case it is sufficient to create a text texture ( https://www.lotus-simulator.de…-and-drawing-on-textures/ ) that directly draws the content of a string variable and uses black as color.

    - the standard texture contains only a dark display (not black, that doesn't look realistic!)

    - then place a rectangular polygon two or three cm above the display. Its blend mode is set to alpha, the standard texture is the text texture and the night texture is a completely white texture.

    - We will take care of the script when you are ready to write characters to the text texture using the string variable. But if you want to have a look already: https://www.lotus-simulator.de…em/#3.2-Script-Funktionen

  • Now that I've got most of the display features to work so far (showing the line number and destination at the correct spots), I still need to get the "time to departure" working. Using the variable "DT_Plan" from "TStatPISTrip" only outputs the scheduled departure time of the day, and not the time to depart.


    What functions/variables do I need to retrieve this information from the timetable and output it as "time to departure"? Converting to minutes I can probably figure out myself.


    EDIT: Figured it out myself. :D


  • thor2950

    Changed the title of the thread from “Creating a DFI, what do I need? - DFI erstellen, was brauche ich dafür?” to “Thor's collection thread for DFI-related questions”.
  • Hello again,


    With the current configuration of my script, the display doesn't include special characters, only the line number itself.


    Example:


    I have the line 250S, which consists of the line number + the special char code 2.

    In the script, the data gathering is done with this procedure:

    So, does the GetTempListData simply not include special characters, or what do I need to do to add this to the line variable?


    -Thor

  • Newly created posts will remain inaccessible for others until approved by a moderator.

    The last reply was more than 60 days ago, this thread is most likely obsolete. It is recommended to create a new thread instead.

    The maximum number of attachments: 5
    Maximum File Size: 500 kB
    Allowed extensions: bmp, cfg, ini, jpeg, jpg, lct, ldl, llg, lob, log, lpmtl, lptmt, ltx, pas, pdf, png, railtrack, rar, txt, veh, wav