Alle erstellten Inhalte von Herman
-
local t = layout:getVehiclesOn(signal)
Hello, Maybe a more special question, but here we go. Just to see if I have a good understanding wich t comes out here : local t = layout:getVehiclesOn(signal) gives a table t with the vehicles on that track contact. ( 1 item or none ) local t = layout:getVehiclesOn($("LongTrack")) gives a table t with the vehicles on that track I want to know if there is a vehicle an the contact of the signal. In previous tests I used # for the number of items in a table. if #t ~= 0 then ( there is a vehicle on the signal , a wagon or a loc ) So far so good, my problem is solved. But t is a table, the test if t ~= {} an empty table failed, why ? Some help is welcome. Kind regards, Herman
-
Container Stacking
Hello, I'm back here, just take it as it is : When testing my container handling, I had also the problem that sometimes the container goes trough the other one when stacking. I alsways used an object from the list to give actions to the crane. Those objects are : a place ( on a train, on the ground ) or another container. I looked to an error in my code first, but it was only a mistake in the list : the ground position was activated (or a lower container), instead of the actual container. And of course .... . The cronological order in my list is import to find what action, so a mistake is easy there. KInd regards, Herman
-
Container Stacking
Hello, It is difficult to see only in your text what is going on, and even then, I'm not an expert, but there ary many experts among the members. Probably I cannot help with your specific question , but maybe ( just maybe ... ) you can find something in 911459D6-84DF-439B-AD37-E5E19B2EDE63 , a layout I published recently in the catalog. I hope somebody can give you a solution. Feel free to ask questions about my own layout, if you think it might help. Kind regards, Herman (BE)
-
ME 08 Block Signal Generic
Hello, I published last days a duo signals called signalG and signalV in the catalog. I just removed them. They were based on the above topic. But there is a serious error in it. So do not use those signals if you should have downloaded them. They do not work properly. (*) Sincere apologies, Herman (BE) (*) When one opens the signal manually, and there is no train before the error occured.
-
conditional change of direction
Hello Götz, Thanks, a logical and very elegant solution, we need only the -20 speed in this case indeed. But I did not see it ... again and again. I focused to much on "relative to direction" and the condition. I struggled longer with this one, and should come earlier to the forum. ( as you said before ... but maybe I was stubborn ) As always thank you very much, I appreciate it a lot ! Kind Regards, Herman (BE) PS. Why this question. I'm working on a project around a turntable, where I want the Loc always going backwards into the depot. Works already nice...
-
conditional change of direction
Hello, Solution in .mdb form. Greetings, Herman (BE)Conditional change of direction.mbp
-
conditional change of direction
Correcttion autodecelleration must be : track contact with Decelerate to 0 km/h
-
conditional change of direction
Hello dear members, I have a solution for the following but ... not entirely happy with it. Task : A track contact with autodecelleration = 0 is triggered by a train. After some time : If the train comes forward on that contact, he must go back to the other direction. If the train comes backwards on that contact, he has to go on further in the same direction. Suggestions for a more elegant solution ? If possible without capturing the current speed in the begin. I did not find another solution to know if the train is triggering with positive speed, or negative speed. Are there ? Probably yes. Thanks for reading - suggestions, Herman (BE)
-
2 PC's
Thank you Goetz, Even if that's the case, fair enough. Nice regards, Herman
-
2 PC's
Hello, just a question, I used this way. But Tutorial layouts is not there for me. Can somebody give a little explanation for the box, upload as a draft .. Greetings, Herman
-
Street extended ( Gizmo ) - ( Edit )
Thank you @Goetz, how could I ever doubt Kind regards, Herman
-
Street extended ( Gizmo ) - ( Edit )
Hello @Goetz, thank you for the answer, this brought me to another reletad issue : are track objects changed with edit usable by others after publishing ? Hello fellow members, If I use edit to make by example a virtual switch to use for walking people. ( works nice of course ). The virtual switch keeps the same id nr as the virtual straight in the catalog. This was the start of the switch. Suppose a layout ( with the virtual switch in it ) is published on the internet, is it for others working as a switch ( as I hope ) or as a straight ? Just to be sure. Thanks in advance for a short answer. I posed the same question aside in another topic ( primitive "ebene") but it was maybe not a clear question from me or it was probably overlooked by other members. Greetings, Herman
-
Street extended ( Gizmo ) - ( Edit )
Hello, , Just to reduce the number of objects ( tracks ) I sometimes edit a track ( rail ) to another length with edit and geometry len/rad. I did the same with an ordinary street from the catalog, and it works not ( only in the beginning of the street ). However good news : extends with the Gizmo works fine. Probably - if not my mistake - a known problem. I just wanted to give the remark here to other members. Greetings, Herman note : changing in the bad solution the "model only" to "road"; only makes the middle track available. TEST street.mbp
-
Verschieben von Objekten per Lua
@Goetz Hallo, Ich habe auch vergessen, dass eine Tabelle auch Zeichenfolgen als Namen hat. Schande Ich habe getestet : local w = { x=26.1, y=26.1, z =0 } $("Buche").transformation.position = w $("Label01").text = w["x"] / 87 -> 0.3 = 0,3 m = 300 mm in HO Viel gelernt, dankeschön.
-
Verschieben von Objekten per Lua
@Goetz Danke vielmals, Herman
-
Verschieben von Objekten per Lua
Wenn wir uns die Tabelle ansehen, ist der Inhalt keine Zeichenfolge und keine Zahl, daher müssen wir konvertieren ? Luas table.tostring ist hier nicht gültig Aber Problem gelöst. Danke Goetz
-
Verschieben von Objekten per Lua
So einfach, aber du musst es wissen. Wirklich danke ! Um eine Antwort zu finden habe ich versucht, den Inhalt der Tabelle in einem Etikett anzuzeigen. local t = $("xxx").transformation.position $("Label01").text = t[1] Aber er hat das Element nicht angegeben Was ist hier los? Wahrscheinlich ein Missverständnis von mir ?
-
Verschieben von Objekten per Lua
google hat ein paar großbuchstaben auf deutsch geschrieben, sorry
-
Verschieben von Objekten per Lua
Hallo, Danke für dieses Thema. Nach einer Weile verstehe ich : vehicle.transformation:rotateZ(z) $("xxx").transformation:translate(0.1*87, 0.1*87, 0) ( in HO ) local t = $("xxx").transformation.position und verwandte Angelegenheiten. Aber um ein Objekt nach (x, y, z) zu verschieben, verwende ich : local zero = {} $("Buche").transformation.position = zero $("Buche").transformation:translate(26.1,26.1,0) -- Transformation zu (300,300,0) mm in scale HO Also über (0,0,0). Funktioniert gut. Ich kann nicht direkt zu (x, y, z) gehen. Eine kleine Reaktion der Experten bitte. Grüße, Herman
-
Vorstellung neuer Mitglieder
Hello Everybody, Since I use the forum it's time to introduce myself to more members than the few I met in a topic. My name is Herman, born in 1950, living near Antwerp and my language is Dutch. Joined 3D Studio aug.2020. Of course retired, since 2010. Career : first a math teacher for 12-14 years old pupils, started to program on a HP67 calculator in reverse polish notation. And gave free lessons wednesday afternoon on some of those pupils. Went in the software branche as a cobol programmer on HP3000, then analyst programmer on IBM S38 in RPGIII. Administrative systems. Because I wanted to go back to the educational field, but lacked an IT degree, back to the VUB to study applied informatics. Believe it or not, one of the pupils I knew was now my assistant prof and docent. Ended my career as an IT teacher in adult education ( in the evening ) combined ( a short time ) with lector for future IT teachers. Hobby : judo, always more of a technician than a competitor, youth trainer and referee. Stopped after 45 years of practice. In my youth I had a Märklin train table, and built a second when my son was 12. Quite simple things a lot of tracks, a tunnel, 6 switches, 2 signals and 3 trains... When retired, I restarted the model train hobby with virtual model train tables. It was "Rule the Rail" from "Brain Bombers", quite nice. Only recent I discovered 3D Studio and I like it a lot. The fact that there was an EV and a program language, made me a member. Many thanks because you all kindly help us newbees. And a quote although it is not mine : "Trains connect stations, train models connect people" Kind regards, HP,
-
Primitive "Ebene"
Hello, I'm still a bit confused and come back here for some minor help. 1) Just for now I managed to put the coca cola board and mountain background in "My 3D models" for future local use. If you do not make models, and use only those from the catalog ... so it took a long time to discover "My 3D Models". Even I'm not planning to do so ( for now ), how can I put a model in the main catalog ? I can upload a layout, but did not figure it out how this works with a model. ( even upload as a draft until Neo approved it ? ) 2. Just to be sure : modified tracks or track switches as in the picture, ( Edit and 3D Model Setup) are always available for everyone, once uploaded with their layout ? Kind regards, Herman.
-
Primitive "Ebene"
@streit_ross Probably you ment how does it look in the layout ? The background is made in the same way. Kind regards, Herman
-
Primitive "Ebene"
@streit_ross Hello, it was only an old advertisement picture for "Coca-Cola'. So certainly it is not made by me. But since i'm not a modeller, i do not really need upload rights. Thanks for the reaction anyway. Greetings, Herman
-
Primitive "Ebene"
I found this conversation on the forum Hello David, you need upload rights in order to share content with the community. Please note that only models designed and created by yourself are allowed to be uploaded to the catalog. Kind regards, Neo I suppose it's the same rule for textures in an "ebene" from a file. I will use the technique only at home layouts. Kind regards, Herman
-
Primitive "Ebene"
@Curt84328 Thanks for the reaction. How can I upload a .JPG to the catalog ? And am I allowed to do so ?