{
"$type": "site.standard.document",
"bskyPostRef": {
"cid": "bafyreihnebhqhtcfisnndtncdv7xioth5pekueegqp3t5nkbt3tilr2weq",
"uri": "at://did:plc:pvz7ox4x2ehjiezsahttqyyz/app.bsky.feed.post/3mfccbpwq4yx2"
},
"path": "/viewtopic.php?p=449658#p449658",
"publishedAt": "2026-02-19T23:34:17.000Z",
"site": "https://forum.luanti.org",
"tags": [
"yw05"
],
"textContent": "> New feature for my horn track fork with plans to add it to others.\n>\n>\n> directionforhorntrack.png\n\nI would personally suggest putting the sound icon on the other side of the arrow (and at a stroke to the arrow) so that it looks like horn -> instead of > horn in the screenshot.\n\n\n> I feel like if there's an arrow on special tracks, they should consistently have at least the possibility for direction based activity. Otherwise what are the arrows for?\n\nI suppose direction-based activity may have its usecase at terminus stations where trains reverse.\n\n\n> > And a next problem: I want set mem only at the \"save\" but if the train is driving over the LuaRail, it reset the mem and it is nil. How can i do it, that it only set the mem new, if i save it and not, when a train ist driving over it\n>\n> Just curious. Is this about the way the LuaATC track saves things even if you don't hit save or something else? May I ask what it's saving that you don't want? I noticed that in my work on my fork. Pretty sure I have it only save on SAVE and cancel when ESC because it seemed more intuitive to me, but not sure if you are talking about the same thing.\n\nI assume this is about saving _data_ , not code. LuaATC active components have their own (individual) Lua environments that code is run in. If you set a global variable (with some exceptions), the value is saved into the specific enviroment for the component. The environment is preserved across events (I am not sure about server restarts though). This is used by e.g. __approach_callback_mode.\n\nStatistics: Posted by yw05 — Thu Feb 19, 2026 23:34\n\n* * *",
"title": "Mod Releases • Re: [Mod] Advanced Trains [advtrains] [2.8.0]",
"updatedAt": "2026-02-19T23:34:17.000Z"
}