Beiträge von AdvEe

    Hallo
    Ich habe eine Frage zum virtuellen Depot.
    Mit dem Dept Manager-Programm weiß ich, wie man Züge hinzufügt. Mir ist auch bekannt, wie ich über die Kontaktstelle Züge hinzufügen kann. Dies mit der Schaltfläche Bearbeiten. Die weitere Nutzung des virtuellen Depots ist mir ebenfalls recht vertraut. Es ist jedoch jetzt so, dass sich irgendwo in meiner Anlage andere Züge befinden, die ich dem Depot hinzufügen möchte, ohne sie manuell zu entfernen und sie auf herkömmliche Weise hinzuzufügen. Jetzt wäre es jedoch schön, wenn ein Zug über den KP-In fährt und dann ins Depot eingeliefert wird. Dies spart viel Arbeit, da Sie Züge hinzufügen und sie dann manuell an ihren alten Platz zurückfahren müssen.

    Fügen Sie also tatsächlich einen neuen Zug hinzu, der noch nicht im Voraus im Depot bekannt war, ohne ihn von seinem Platz zu entfernen. Während des Betriebs kommt dieser Zug dann im Depot an, um hinzugefügt zu werden. Gibt es eine Möglichkeit dazu? Möglicherweise durch Lua.
    Ich hoffe es ist klar was ich meine.

    Ich hoffe Ihr koennt mich helfen.

    Hallo Botho

    Ich habe auch damit gespielt und die einzige Loesing meiner Meinung nach ist wie im #34 mit weisse Flaeche. Bei mir, auch mi viel Wasser, waere das die einzige Loesung fuer einen Horizont am Meer. Ich habe es auch versucht mit Foto´s als Hintergrund, das hilft auch. Der Hintergrund ist unter einen Winkel plaziert. Mann sieht das gruen dann nicht mehr.

    Sonsnt koenntest du nur dein Kamera ein bishen anders aufstellen um die weisse Flaechen am unteren Bildrand nicht zu sehen.

    Vielleicht kommt EEP nochmal mit eine ander Loesung aber es ist jetzt schon viel besser als in EEP6. Waren auch andere Zeiten.

    Thanks @Benny (BH2). Your solution indeed is somewhat shorter then hat I finally proposed. #6. Might be the ultimate solution for my problem.

    Dear Warner. (Double.Youpie), Bedankt voor de tip.:aa_1::aa_1:

    I am struggling with understanding Lua, and as I said I do not want Lua to dictate my EEP life.

    Regarding your tip, I tried " in pairs" in stead of "in ipairs" but it did not solve the problem.

    Unfortunately there are more Lua commands that I do not undestand. I looked in Internet very often, I studied the EEP manuals, I studied the videos in EEP akademy and from Parry36. I spent hours, learnt a couple of things but still..................

    That is why I decided now that I will go for the solution that works and not for the nicest way. See my input #6.


    Thanks for all your ideas.

    Hello,

    I tried a few things but it is to complicated to solve it in a nice way.

    I went to the less nice but very efficient way .:ae_1::ae_1::ae_1:

    See below

    It brings me to the point that I will use Lua to do what I want even if it requires more typing and most probably more memory but it keeps Lua a tool to reach my goals and not the item to destroy my pleasure in EEP.:ak_1::ak_1::ak_1:

    I am sorry for the Lua freaks but Lua is not my computer language. :am_1::am_1::am_1:

    And last but not least I am a railway enthousiast :af_1::af_1::af_1:and not a programmer.

    Thanks @eep_gogo

    I did oversee those errors. I did correct them but indeed they did not solve the problem

    Thanks @trainpilot I tried the ipair solution but it did not help

    Thanks @cetz. Your question about the line number, unfortunately it is not indicated in the error message.

    I will investigate the other proposals.

    I assume that the additional tables for Richtung1, Richtung2 and IO that I put under the table Anfrage do not work then?

    Most probably I have to rewrite the for k,v statements so they follow what is in the table.

    I will come back with results.

    Dear all,

    I need some help. What am I doing wrong.

    When executing this program I get

    table 0x00000000A0C505EF0

    attempt to index a nil value

    With this sub-program I want to initialise a number od Boolean parametrs to set as false so later on I can use them in the script to control my Layout;


    Ich brauche Hilfe. Was mache ich falsch.

    Bei der Ausführung dieses Programms bekomme ich

    table 0x00000000A0C505EF0

    attempt to index a nil value

    Mit diesem Unterprogramm möchte ich eine Anzahl von Booleschen Parametern initialisieren, die als false festgelegt werden sollen, damit ich sie später im Skript zur Steuerung meines Layouts verwenden kann.

    Wenn du dich ein bishen auskennt mit Lua kann mas das folgende versuchen.

    Das Gleis ist meistens aufgeteilt in mehrere Gleisstuecke

    Jedes Gleisstuck fragt man ab wie vorgeschlagen durch Schlingo

    nämlich EEPIsRailTrackReserved.

    Dann fragt mann das Gleis ab ueber die verschiedene Gleisstucke. Wenn eins davon ist true( also Besetzt) dan ist das Gleis besetzt.

    Funktioniert bei mir einwand frei auch wenn es nur ein kurzer Zug gubt wie ein Railbus oder Leerzug.