summaryrefslogtreecommitdiff
path: root/src
Commit message (Expand)AuthorAge
* Add optional buffer param for bulk data array writes in Luakwolekr2015-05-17
* Noise: Fix interpolation at negative coordinateskwolekr2015-05-17
* Fix current mod name change missed during rebaseShadowNinja2015-05-16
* Add -Wsign-compare for Clang builds and fix some signed/unsigned compiler war...kwolekr2015-05-16
* SAPI: Accept either ARGB8 table or ColorString to specify colorskwolekr2015-05-16
* Add core.get_dir_listShadowNinja2015-05-16
* Add core.request_insecure_environment()ShadowNinja2015-05-16
* Add core.mkdirShadowNinja2015-05-16
* Add mod securityShadowNinja2015-05-16
* Fix build since last commitest312015-05-16
* Finalize init packets and enable protocol v25est312015-05-16
* Add push_ARGB8 to script/common/c_converterTeTpaAka2015-05-15
* Generalize core.get/set_nametag_color into core.get/set_nametag_attributesTeTpaAka2015-05-15
* Noise: Make buffer size parameters unsignedkwolekr2015-05-15
* Schematics: Fix probability values for .mts version 1kwolekr2015-05-15
* Add minetest.register_on_punchplayerBrandon2015-05-15
* Add get and set functions for the nametag colorTeTpaAka2015-05-15
* ANDROID: Do not limit situations where fast is enabledCraig Robbins2015-05-15
* Fix compiler warning about sign comparisonest312015-05-13
* Build and link gmp correctly on MSVCSmallJoker2015-05-12
* is_player() is no player-only functionest312015-05-12
* Mapgen v5/6/7: Cleanup node resolver and aliasesparamat2015-05-12
* Make early protocol auth mechanism generic, and add SRPest312015-05-11
* Add LibGMPest312015-05-11
* Change lower limit of display_gamma to 1.0 (linear light)Craig Robbins2015-05-11
* Schematics: Add per-node force placement optionkwolekr2015-05-09
* Fix typo in WieldMesh::setItem()kwolekr2015-05-08
* Ensure that Map::findNodesWithMetadata() reports nodes strictly within the no...kwolekr2015-05-08
* Replace Wieldmesh::setItem assertion that could be triggered by the server wi...kwolekr2015-05-08
* Fix release build warningest312015-05-08
* Fix compilation for non-client builds, and fix signed comparison warningkwolekr2015-05-08
* Tests: Add schematic unittestskwolekr2015-05-08
* Gracefully handle PacketErrorsest312015-05-08
* Fix missing Y component assignment in check_v3fkwolekr2015-05-08
* Remove duplicate lua_getfield() in c_converter.cppKevin Ott2015-05-07
* Schematics: Add indent-with-space option for schematic Lua table serializationkwolekr2015-05-07
* NodeResolver: Remove NodeResolveMethodkwolekr2015-05-07
* Fix connection speed unit namesShadowNinja2015-05-06
* Fix error messages for type-checking Lua reading functionsShadowNinja2015-05-06
* Improve Redis error messagesShadowNinja2015-05-06
* Fix build on Debian broken by b45df9d (missing include, somehow?)kwolekr2015-05-05
* NodeDefManager: Improve const-correctness of interfaceskwolekr2015-05-05
* Add core.find_nodes_with_meta() script APIkwolekr2015-05-05
* Tests: Add NodeResolver unittestskwolekr2015-05-05
* Make Git version detection use VERSION_STRING instead of tagsShadowNinja2015-05-05
* Fix GCC compiler warningShadowNinja2015-05-04
* Stop NetworkPacket methods from producing bloated packetsJay Arndt2015-05-05
* Cache enable_3d_clouds flagest312015-05-04
* Clouds: Make cloud area radius settable in .confparamat2015-05-04
* Add a check for animation when getting an extruded meshKevin Ott2015-05-04
n, true when the train is driving in the direction of the arrows of the ATC rail. Nil if there is no train. atc_id Train ID of the train currently passing the controller. Nil if there's no train. atc_speed Speed of the train, or nil if there is no train. atc_set_text_outside(text) Set text shown on the outside of the train. Pass nil to show no text. atc_set_text_inside(text) Set text shown to train passengers. Pass nil to show no text. set_line(number) Only for subway wagons: Display a line number (1-9) on the train. # Operator panel This simple node executes its actions when punched. It can be used to change a switch and update the corresponding signals or similar applications. The event fired is {type="punch", punch=true} by default. In case of an interrupt or a digiline message, the events are similar to the ones of the ATC rail. ### Passive components All passive components can be interfaced with the setstate and getstate functions(see above). Below, each apperance is mapped to the "state" of that node. ## Signals The light signals are interfaceable, the analog signals are not. "green" - Signal shows green light "red" - Signal shows red light ## Switches All default rail switches are interfaceable, independent of orientation. "cr" - The switch is set in the direction that is not straight. "st" - The switch is set in the direction that is straight. ## Mesecon Switch The Mesecon switch can be switched using LuaAutomation. Note that this is not possible on levers, only the full-node 'Switch' block. "on" - the switch is switched on "off" - the switch is switched off ##Andrew's Cross "on" - it blinks "off" - it does not blink ### Passive component naming You can assign names to passive components using the Passive Component Naming tool. Once you set a name for any component, you can reference it by that name in the getstate() and setstate() functions, like this: (Imagine a signal that you have named "Stn_P1_out" at position (1,2,3) ) setstate("Stn_P1_out", "green") instead of setstate(POS(1,2,3), "green") This way, you don't need to memorize positions. --TODO: Ein paar mehr Codebeispiele wären schön, insbesondere mit os.date und so...