Jump to content

EricD

Members
  • Content Count

    28
  • Joined

  • Last visited

1 Follower

About EricD

  • Birthday 02/25/1947

Recent Profile Visitors

452 profile views
  1. Hallo, Wenn ich das Forum lese, finde ich die animierten Profilbilder, die einige wenige Mitglieder verwenden, sehr ablenkend. Weiß jemand, wie ich sie am Spielen hindern kann? Viele Grüße, EricD (Mürrischer alter Mann) ------------------------------------------------------------------------------- Hello fellow members, When reading the forum, I find the animated profile pictures that a few members use to be very distracting. Does anyone know how I can stop them from playing? Best wishes, EricD (Grumpy old man)
  2. EricD

    Externe Schnittstelle mit Java

    Hello fellow members Please do not discourage others from posting in this forum. I have learned a great deal from reading other peoples' posts. If you do not like the idea of coding in Lua (or C# or Java or even VB) then don't code in Lua etc and don't bother reading the posts which contain code. But please do not try to stop other people from discussing such things. I use the Pascal interface to control such things as locomotive routing. I have gained enormous pleasure from developing Delphi programs to control my layouts. I can, therefore, see the potential of an interface in a more frequently used language. When Lua was included in V5 I chose to learn that from scratch - nobody forced me to, but it gave me great pleasure. A lot of what I learnt came from reading posts in this forum. Programmers - please do continue to share your knowledge here in the forum. Please do not confine your knowledge to PN. Best wishes EricD
  3. Hello Martin I tried .(dot) CTRL+space but not :(colon) CTRL+space. I won't make that mistake again! Best wishes Eric
  4. Thank you HaNNoveraNer I had a memory of "hasEngine" but I was trying vehicle.hasEngine. Once again: thanks for your quick reply. Best wishes Eric
  5. Hello Members Please can someone help me with the following. I am trying to build a table containing all the Locomotives in the layout. I cannot find the Lua code corresponding to "the vehicle has an engine" in the following: function GetAllLocos() local tt = {} g = layout:enumVehicles( function ( vehicle ) if "the vehicle has an engine" then table.insert(tt,vehicle) end end ) return tt end I have searched the forum for quite a long time before making this request. I hope some kind person will tell me the solution. Thank you Eric ---------------------------------------- Google translation: Bitte kann mir jemand bei folgendem helfen. Ich versuche eine Tabelle mit allen Lokomotiven zu erstellen im Layout. Ich kann den entsprechenden Lua-Code nicht finden "Das Fahrzeug hat einen Motor" im Folgenden: <Lua function> Ich habe das Forum ziemlich lange durchsucht, bevor ich es gemacht habe diese Anfrage. Ich hoffe, eine freundliche Person wird mir die Lösung sagen. Vielen Dank Eric
  6. EricD

    Signale und Geschwindigkeit

    Hello HaNNoveraNer (Please excuse English - regrettably, I do not speak German) I use the following method to bring a train to a smooth halt. (The function GetDeceleration is set up for HO gauge.) Event One: --[[ EVENT NAME: ContactBrakeIn A track contact with keyword 'Brake' is triggered upon entering --]] -- ================================== function GetDeceleration(Loco, Distance) local k = Loco.currentSpeed return 0.443451 * k * k / Distance end -- ================================== if contact.variables['Signal'].state == RED then local Distance = contact.variables['Distance'] vehicle.deceleration = GetDeceleration(vehicle, Distance) vehicle.targetSpeed = 5 end -- Event Two: --[[ EVENT NAME: ContactExitIn A track contact with keyword 'Exit' is triggered upon entering This is the complete stop which replaces the need for Lock-Tracks --]] if contact.variables['Signal'].state == RED then vehicle.currentSpeed = 0 end "Distance" is the distance from the BrakeIn contact to the ContactExitIn contact. The BrakeIn decelerates the vehicle to 5kph. It then moves at 5kph until the ContactExitIn which stops it. I hope this will help you. I am happy to answer any questions you may have. Best wishes Eric
  7. EricD

    Twisted track

    Hi Bahnland Thank you. Once again I am in your debt! Cheers Eric
  8. EricD

    Twisted track

    Hi Tom You said "Here I find it easier to use a scaled down (0.1) loco ... for spreading the tracks out" I am intrigued! I cannot scale a loco. When on the track the loco will not scale. When off the track it will scale to 0.1, but as soon as I put it on the track it re-scales itself to 1 Cheers Eric
  9. EricD

    Twisted track

    Hi Bahnland 1. Using the track editor to produce a curved slope is much easier than joining together small pieces of curved track with many different angles. Also the resulting 'cockpit' view is more pleasing. 2. You are absolutely right about the switches - they are totally unnecessary. Thank you for pointing that out. Many greetings Eric Twisted tracks without switches.mbp
  10. EricD

    Twisted track

    If you have a slope which is curved the end of the slope may not be level. You can use a "twisted" track to correct this. You can make a "twisted" track using the track editor: Stage 1: Create six routes as follows Stage 2: Create two switch positions. Switch 0 actives Routes 0,1,2,3,4,5,6. Switch 1 also activates Routes 0,1,2,3,4,5,6 PLEASE NOTE: Edit: Bahnland has kindly told me that stage 2 in NOT NEEDED - so please ignore it! (I am grateful to Goetz for this idea - I learnt this from studying one of his Points designs) That's all you need to do. I know that you could achieve the same by using a group of 7 tracks but I think this is a neater method.Twisted tracks.mbp Best wishes to all Eric
  11. EricD

    neue Weichen für den 1:1 Maßstab

    These look much more realistic - like the rail tracks you see on Google Earth. And a clever idea to combine multiple splines into a route. Very pleasing.
  12. EricD

    Disappearing Signals

    Hi Andy I didn't realise that unless my signal is in the catalogue it will not appear. I thought it was contained inside the .mbp file. My signal is functional but not pretty - it does not compare well to the quality of the German signals in the catalogue. When I produce a better looking version I will upload it. Cheers Eric P.S. My original title "Disappearing Signals" has proved to be true in this mbp file!
  13. EricD

    Disappearing Signals

    Here is the "cube mark 2" produced using Blender. It is a very simple model but it behaves correctly as a signal. Simple British Signal.mbpSimple British Signal.mbp
  14. EricD

    Disappearing Signals

    "From tiny acorns great oak trees grow"
  15. EricD

    Disappearing Signals

    Thank you very much, Andy. I'm now keen to become proficient with Blender. But it's a steep learning curve! UPDATE: Fantastic! Success! I now have a working "cube" which behaves as a signal and can be seen in cockpit view from over 1000mm. Once again, thank you very, very much - this is something that I have been wanting to do for a long time.
×