diff options
author | rubenwardy <rubenwardy@gmail.com> | 2017-09-20 17:05:04 +0100 |
---|---|---|
committer | orwell96 <mono96.mml@gmail.com> | 2017-09-20 18:05:04 +0200 |
commit | d65c4916ceaeed6eec5fe3f344d4e71b3c96a80b (patch) | |
tree | ae2a4a1ca5bdbcb0a2a867287d4556f92478405a /advtrains | |
parent | b75c83ea43bb9f6e3bee2b4db955e2a9e7be885e (diff) | |
download | advtrains-d65c4916ceaeed6eec5fe3f344d4e71b3c96a80b.tar.gz advtrains-d65c4916ceaeed6eec5fe3f344d4e71b3c96a80b.tar.bz2 advtrains-d65c4916ceaeed6eec5fe3f344d4e71b3c96a80b.zip |
Remove zip release files, move mod to root, exclude assets from Makefile (#92)
Diffstat (limited to 'advtrains')
-rw-r--r-- | advtrains/advtrains.zip | bin | 1488724 -> 0 bytes | |||
-rw-r--r-- | advtrains/advtrains/description.txt | 8 | ||||
-rw-r--r-- | advtrains/advtrains_itrainmap/depends.txt | 1 | ||||
-rw-r--r-- | advtrains/advtrains_itrainmap/init.lua | 149 | ||||
-rw-r--r-- | advtrains/advtrains_itrainmap/textures/itm_example.png | bin | 154460 -> 0 bytes | |||
-rw-r--r-- | advtrains/advtrains_luaautomation/README.txt | 165 | ||||
-rw-r--r-- | advtrains/advtrains_luaautomation/active_common.lua | 134 | ||||
-rw-r--r-- | advtrains/advtrains_luaautomation/atc_rail.lua | 124 | ||||
-rw-r--r-- | advtrains/advtrains_luaautomation/chatcmds.lua | 84 | ||||
-rw-r--r-- | advtrains/advtrains_luaautomation/depends.txt | 2 | ||||
-rw-r--r-- | advtrains/advtrains_luaautomation/environment.lua | 275 | ||||
-rw-r--r-- | advtrains/advtrains_luaautomation/init.lua | 110 | ||||
-rw-r--r-- | advtrains/advtrains_luaautomation/interrupt.lua | 46 | ||||
-rw-r--r-- | advtrains/advtrains_luaautomation/operation_panel.lua | 23 | ||||
-rw-r--r-- | advtrains/advtrains_luaautomation/p_display.lua | 0 | ||||
-rw-r--r-- | advtrains/advtrains_luaautomation/p_mesecon_iface.lua | 53 | ||||
-rw-r--r-- | advtrains/advtrains_luaautomation/passive.lua | 39 | ||||
-rw-r--r-- | advtrains/advtrains_luaautomation/passive_api.txt | 23 | ||||
-rw-r--r-- | advtrains/advtrains_luaautomation/pcnaming.lua | 74 | ||||
-rw-r--r-- | advtrains/advtrains_luaautomation/textures/atlatc_oppanel.png | bin | 631 -> 0 bytes | |||
-rw-r--r-- | advtrains/advtrains_luaautomation/textures/atlatc_pcnaming.png | bin | 329 -> 0 bytes | |||
-rw-r--r-- | advtrains/advtrains_train_industrial/depends.txt | 2 | ||||
-rw-r--r-- | advtrains/advtrains_train_industrial/init.lua | 84 | ||||
-rw-r--r-- | advtrains/advtrains_train_industrial/locale/de.txt | 5 | ||||
-rw-r--r-- | advtrains/advtrains_train_industrial/models/advtrains_engine_industrial.b3d | bin | 143659 -> 0 bytes | |||
-rw-r--r-- | advtrains/advtrains_train_industrial/models/advtrains_wagon_tank.b3d | bin | 223975 -> 0 bytes | |||
-rw-r--r-- | advtrains/advtrains_train_industrial/models/advtrains_wagon_wood.b3d | bin | 193975 -> 0 bytes | |||
-rw-r--r-- | advtrains/advtrains_train_industrial/textures/advtrains_engine_industrial.png | bin | 59019 -> 0 bytes | |||
-rw-r--r-- | advtrains/advtrains_train_industrial/textures/advtrains_engine_industrial_inv.png | bin | 381 -> 0 bytes | |||
-rw-r--r-- | advtrains/advtrains_train_industrial/textures/advtrains_wagon_tank.png | bin | 8975 -> 0 bytes | |||
-rw-r--r-- | advtrains/advtrains_train_industrial/textures/advtrains_wagon_tank_inv.png | bin | 408 -> 0 bytes | |||
-rw-r--r-- | advtrains/advtrains_train_industrial/textures/advtrains_wagon_wood.png | bin | 5974 -> 0 bytes | |||
-rw-r--r-- | advtrains/advtrains_train_industrial/textures/advtrains_wagon_wood_inv.png | bin | 316 -> 0 bytes | |||
-rw-r--r-- | advtrains/advtrains_train_japan/depends.txt | 2 | ||||
-rw-r--r-- | advtrains/advtrains_train_japan/init.lua | 144 | ||||
-rw-r--r-- | advtrains/advtrains_train_japan/locale/de.txt | 4 | ||||
-rw-r--r-- | advtrains/advtrains_train_japan/models/advtrains_engine_japan.b3d | bin | 437635 -> 0 bytes | |||
-rw-r--r-- | advtrains/advtrains_train_japan/models/advtrains_wagon_japan.b3d | bin | 554284 -> 0 bytes | |||
-rw-r--r-- | advtrains/advtrains_train_japan/textures/advtrains_engine_japan.png | bin | 27935 -> 0 bytes | |||
-rw-r--r-- | advtrains/advtrains_train_japan/textures/advtrains_engine_japan_inv.png | bin | 434 -> 0 bytes | |||
-rw-r--r-- | advtrains/advtrains_train_japan/textures/advtrains_wagon_japan.png | bin | 54396 -> 0 bytes | |||
-rw-r--r-- | advtrains/advtrains_train_japan/textures/advtrains_wagon_japan_inv.png | bin | 400 -> 0 bytes | |||
-rwxr-xr-x | advtrains/advtrains_train_steam/depends.txt | 2 | ||||
-rwxr-xr-x | advtrains/advtrains_train_steam/init.lua | 245 | ||||
-rwxr-xr-x | advtrains/advtrains_train_steam/locale/de.txt | 6 | ||||
-rwxr-xr-x | advtrains/advtrains_train_steam/models/advtrains_detailed_steam_engine.b3d | bin | 468002 -> 0 bytes | |||
-rwxr-xr-x | advtrains/advtrains_train_steam/models/advtrains_engine_steam.b3d | bin | 437126 -> 0 bytes | |||
-rw-r--r-- | advtrains/advtrains_train_steam/models/advtrains_passenger_wagon.b3d | bin | 145287 -> 0 bytes | |||
-rw-r--r-- | advtrains/advtrains_train_steam/models/advtrains_wagon.b3d | bin | 107352 -> 0 bytes | |||
-rwxr-xr-x | advtrains/advtrains_train_steam/models/advtrains_wagon_box.b3d | bin | 50385 -> 0 bytes | |||
-rw-r--r-- | advtrains/advtrains_train_steam/screenshot.png | bin | 809738 -> 0 bytes | |||
-rwxr-xr-x | advtrains/advtrains_train_steam/textures/advtrains_detailed_engine_steam_inv.png | bin | 462 -> 0 bytes | |||
-rwxr-xr-x | advtrains/advtrains_train_steam/textures/advtrains_detailed_steam_engine.png | bin | 61988 -> 0 bytes | |||
-rwxr-xr-x | advtrains/advtrains_train_steam/textures/advtrains_engine_steam.png | bin | 31915 -> 0 bytes | |||
-rwxr-xr-x | advtrains/advtrains_train_steam/textures/advtrains_engine_steam_inv.png | bin | 469 -> 0 bytes | |||
-rw-r--r-- | advtrains/advtrains_train_steam/textures/advtrains_wagon.png | bin | 17701 -> 0 bytes | |||
-rwxr-xr-x | advtrains/advtrains_train_steam/textures/advtrains_wagon_box.png | bin | 15197 -> 0 bytes | |||
-rwxr-xr-x | advtrains/advtrains_train_steam/textures/advtrains_wagon_box_inv.png | bin | 347 -> 0 bytes | |||
-rwxr-xr-x | advtrains/advtrains_train_steam/textures/advtrains_wagon_inv.png | bin | 699 -> 0 bytes | |||
-rw-r--r-- | advtrains/advtrains_train_subway/depends.txt | 2 | ||||
-rw-r--r-- | advtrains/advtrains_train_subway/init.lua | 90 | ||||
-rw-r--r-- | advtrains/advtrains_train_subway/locale/de.txt | 2 | ||||
-rw-r--r-- | advtrains/advtrains_train_subway/models/advtrains_subway_wagon.b3d | bin | 460013 -> 0 bytes | |||
-rw-r--r-- | advtrains/advtrains_train_subway/textures/advtrains_subway_wagon.png | bin | 3618 -> 0 bytes | |||
-rw-r--r-- | advtrains/advtrains_train_subway/textures/advtrains_subway_wagon_inv.png | bin | 900 -> 0 bytes | |||
-rw-r--r-- | advtrains/api_doc.txt (renamed from advtrains/advtrains/api_doc.txt) | 0 | ||||
-rw-r--r-- | advtrains/atc.lua (renamed from advtrains/advtrains/atc.lua) | 0 | ||||
-rw-r--r-- | advtrains/atc_command.txt | 83 | ||||
-rw-r--r-- | advtrains/couple.lua (renamed from advtrains/advtrains/couple.lua) | 0 | ||||
-rw-r--r-- | advtrains/craft_items.lua (renamed from advtrains/advtrains/craft_items.lua) | 0 | ||||
-rw-r--r-- | advtrains/crafting.lua (renamed from advtrains/advtrains/crafting.lua) | 0 | ||||
-rw-r--r-- | advtrains/debugitems.lua (renamed from advtrains/advtrains/debugitems.lua) | 0 | ||||
-rw-r--r-- | advtrains/debugringbuffer.lua (renamed from advtrains/advtrains/debugringbuffer.lua) | 0 | ||||
-rw-r--r-- | advtrains/depends.txt (renamed from advtrains/advtrains/depends.txt) | 0 | ||||
-rw-r--r-- | advtrains/description.txt | 9 | ||||
-rw-r--r-- | advtrains/digtron.lua (renamed from advtrains/advtrains/digtron.lua) | 0 | ||||
-rw-r--r-- | advtrains/helpers.lua (renamed from advtrains/advtrains/helpers.lua) | 0 | ||||
-rw-r--r-- | advtrains/init.lua (renamed from advtrains/advtrains/init.lua) | 0 | ||||
-rw-r--r-- | advtrains/license.txt | 142 | ||||
-rw-r--r-- | advtrains/license_media.txt | 68 | ||||
-rw-r--r-- | advtrains/loading.lua (renamed from advtrains/advtrains/loading.lua) | 0 | ||||
-rw-r--r-- | advtrains/locale/de.txt (renamed from advtrains/advtrains/locale/de.txt) | 0 | ||||
-rw-r--r-- | advtrains/manual.pdf | bin | 801491 -> 0 bytes | |||
-rw-r--r-- | advtrains/misc_nodes.lua (renamed from advtrains/advtrains/misc_nodes.lua) | 0 | ||||
-rw-r--r-- | advtrains/models/advtrains_across.obj (renamed from advtrains/advtrains/models/advtrains_across.obj) | 0 | ||||
-rw-r--r-- | advtrains/models/advtrains_dtrack_bumper_st.b3d (renamed from advtrains/advtrains/models/advtrains_dtrack_bumper_st.b3d) | bin | 32927 -> 32927 bytes | |||
-rw-r--r-- | advtrains/models/advtrains_dtrack_bumper_st_30.b3d (renamed from advtrains/advtrains/models/advtrains_dtrack_bumper_st_30.b3d) | bin | 48546 -> 48546 bytes | |||
-rw-r--r-- | advtrains/models/advtrains_dtrack_bumper_st_45.b3d (renamed from advtrains/advtrains/models/advtrains_dtrack_bumper_st_45.b3d) | bin | 32926 -> 32926 bytes | |||
-rw-r--r-- | advtrains/models/advtrains_dtrack_bumper_st_60.b3d (renamed from advtrains/advtrains/models/advtrains_dtrack_bumper_st_60.b3d) | bin | 48546 -> 48546 bytes | |||
-rw-r--r-- | advtrains/models/advtrains_dtrack_cr.b3d (renamed from advtrains/advtrains/models/advtrains_dtrack_cr.b3d) | bin | 28040 -> 28040 bytes | |||
-rw-r--r-- | advtrains/models/advtrains_dtrack_cr_30.b3d (renamed from advtrains/advtrains/models/advtrains_dtrack_cr_30.b3d) | bin | 28043 -> 28043 bytes | |||
-rw-r--r-- | advtrains/models/advtrains_dtrack_cr_45.b3d (renamed from advtrains/advtrains/models/advtrains_dtrack_cr_45.b3d) | bin | 34483 -> 34483 bytes | |||
-rw-r--r-- | advtrains/models/advtrains_dtrack_cr_60.b3d (renamed from advtrains/advtrains/models/advtrains_dtrack_cr_60.b3d) | bin | 34483 -> 34483 bytes | |||
-rw-r--r-- | advtrains/models/advtrains_dtrack_st.b3d (renamed from advtrains/advtrains/models/advtrains_dtrack_st.b3d) | bin | 10712 -> 10712 bytes | |||
-rw-r--r-- | advtrains/models/advtrains_dtrack_st_30.b3d (renamed from advtrains/advtrains/models/advtrains_dtrack_st_30.b3d) | bin | 20043 -> 20043 bytes | |||
-rw-r--r-- | advtrains/models/advtrains_dtrack_st_45.b3d (renamed from advtrains/advtrains/models/advtrains_dtrack_st_45.b3d) | bin | 12235 -> 12235 bytes | |||
-rw-r--r-- | advtrains/models/advtrains_dtrack_st_60.b3d (renamed from advtrains/advtrains/models/advtrains_dtrack_st_60.b3d) | bin | 20043 -> 20043 bytes | |||
-rw-r--r-- | advtrains/models/advtrains_dtrack_swlcr.b3d (renamed from advtrains/advtrains/models/advtrains_dtrack_swlcr.b3d) | bin | 36203 -> 36203 bytes | |||
-rw-r--r-- | advtrains/models/advtrains_dtrack_swlcr_30.b3d (renamed from advtrains/advtrains/models/advtrains_dtrack_swlcr_30.b3d) | bin | 39958 -> 39958 bytes | |||
-rw-r--r-- | advtrains/models/advtrains_dtrack_swlcr_45.b3d (renamed from advtrains/advtrains/models/advtrains_dtrack_swlcr_45.b3d) | bin | 41302 -> 41302 bytes | |||
-rw-r--r-- | advtrains/models/advtrains_dtrack_swlcr_60.b3d (renamed from advtrains/advtrains/models/advtrains_dtrack_swlcr_60.b3d) | bin | 46270 -> 46270 bytes | |||
-rw-r--r-- | advtrains/models/advtrains_dtrack_swlst.b3d (renamed from advtrains/advtrains/models/advtrains_dtrack_swlst.b3d) | bin | 36203 -> 36203 bytes | |||
-rw-r--r-- | advtrains/models/advtrains_dtrack_swlst_30.b3d (renamed from advtrains/advtrains/models/advtrains_dtrack_swlst_30.b3d) | bin | 39958 -> 39958 bytes | |||
-rw-r--r-- | advtrains/models/advtrains_dtrack_swlst_45.b3d (renamed from advtrains/advtrains/models/advtrains_dtrack_swlst_45.b3d) | bin | 41302 -> 41302 bytes | |||
-rw-r--r-- | advtrains/models/advtrains_dtrack_swlst_60.b3d (renamed from advtrains/advtrains/models/advtrains_dtrack_swlst_60.b3d) | bin | 46270 -> 46270 bytes | |||
-rw-r--r-- | advtrains/models/advtrains_dtrack_swrcr.b3d (renamed from advtrains/advtrains/models/advtrains_dtrack_swrcr.b3d) | bin | 36203 -> 36203 bytes | |||
-rw-r--r-- | advtrains/models/advtrains_dtrack_swrcr_30.b3d (renamed from advtrains/advtrains/models/advtrains_dtrack_swrcr_30.b3d) | bin | 46270 -> 46270 bytes | |||
-rw-r--r-- | advtrains/models/advtrains_dtrack_swrcr_45.b3d (renamed from advtrains/advtrains/models/advtrains_dtrack_swrcr_45.b3d) | bin | 41302 -> 41302 bytes | |||
-rw-r--r-- | advtrains/models/advtrains_dtrack_swrcr_60.b3d (renamed from advtrains/advtrains/models/advtrains_dtrack_swrcr_60.b3d) | bin | 39958 -> 39958 bytes | |||
-rw-r--r-- | advtrains/models/advtrains_dtrack_swrst.b3d (renamed from advtrains/advtrains/models/advtrains_dtrack_swrst.b3d) | bin | 36203 -> 36203 bytes | |||
-rw-r--r-- | advtrains/models/advtrains_dtrack_swrst_30.b3d (renamed from advtrains/advtrains/models/advtrains_dtrack_swrst_30.b3d) | bin | 46270 -> 46270 bytes | |||
-rw-r--r-- | advtrains/models/advtrains_dtrack_swrst_45.b3d (renamed from advtrains/advtrains/models/advtrains_dtrack_swrst_45.b3d) | bin | 41302 -> 41302 bytes | |||
-rw-r--r-- | advtrains/models/advtrains_dtrack_swrst_60.b3d (renamed from advtrains/advtrains/models/advtrains_dtrack_swrst_60.b3d) | bin | 39958 -> 39958 bytes | |||
-rw-r--r-- | advtrains/models/advtrains_dtrack_vst1.obj (renamed from advtrains/advtrains/models/advtrains_dtrack_vst1.obj) | 0 | ||||
-rw-r--r-- | advtrains/models/advtrains_dtrack_vst1_45.obj (renamed from advtrains/advtrains/models/advtrains_dtrack_vst1_45.obj) | 0 | ||||
-rw-r--r-- | advtrains/models/advtrains_dtrack_vst2.obj (renamed from advtrains/advtrains/models/advtrains_dtrack_vst2.obj) | 0 | ||||
-rw-r--r-- | advtrains/models/advtrains_dtrack_vst2_45.obj (renamed from advtrains/advtrains/models/advtrains_dtrack_vst2_45.obj) | 0 | ||||
-rw-r--r-- | advtrains/models/advtrains_dtrack_vst31.obj (renamed from advtrains/advtrains/models/advtrains_dtrack_vst31.obj) | 0 | ||||
-rw-r--r-- | advtrains/models/advtrains_dtrack_vst32.obj (renamed from advtrains/advtrains/models/advtrains_dtrack_vst32.obj) | 0 | ||||
-rw-r--r-- | advtrains/models/advtrains_dtrack_vst33.obj (renamed from advtrains/advtrains/models/advtrains_dtrack_vst33.obj) | 0 | ||||
-rw-r--r-- | advtrains/models/advtrains_modernwagon.b3d (renamed from advtrains/advtrains/models/advtrains_modernwagon.b3d) | bin | 172028 -> 172028 bytes | |||
-rw-r--r-- | advtrains/models/advtrains_retrosignal_off.b3d (renamed from advtrains/advtrains/models/advtrains_retrosignal_off.b3d) | bin | 13093 -> 13093 bytes | |||
-rw-r--r-- | advtrains/models/advtrains_retrosignal_off_30.b3d (renamed from advtrains/advtrains/models/advtrains_retrosignal_off_30.b3d) | bin | 13093 -> 13093 bytes | |||
-rw-r--r-- | advtrains/models/advtrains_retrosignal_off_45.b3d (renamed from advtrains/advtrains/models/advtrains_retrosignal_off_45.b3d) | bin | 13093 -> 13093 bytes | |||
-rw-r--r-- | advtrains/models/advtrains_retrosignal_off_60.b3d (renamed from advtrains/advtrains/models/advtrains_retrosignal_off_60.b3d) | bin | 13093 -> 13093 bytes | |||
-rw-r--r-- | advtrains/models/advtrains_retrosignal_on.b3d (renamed from advtrains/advtrains/models/advtrains_retrosignal_on.b3d) | bin | 13093 -> 13093 bytes | |||
-rw-r--r-- | advtrains/models/advtrains_retrosignal_on_30.b3d (renamed from advtrains/advtrains/models/advtrains_retrosignal_on_30.b3d) | bin | 13093 -> 13093 bytes | |||
-rw-r--r-- | advtrains/models/advtrains_retrosignal_on_45.b3d (renamed from advtrains/advtrains/models/advtrains_retrosignal_on_45.b3d) | bin | 13093 -> 13093 bytes | |||
-rw-r--r-- | advtrains/models/advtrains_retrosignal_on_60.b3d (renamed from advtrains/advtrains/models/advtrains_retrosignal_on_60.b3d) | bin | 13093 -> 13093 bytes | |||
-rw-r--r-- | advtrains/models/advtrains_signal.b3d (renamed from advtrains/advtrains/models/advtrains_signal.b3d) | bin | 61544 -> 61544 bytes | |||
-rw-r--r-- | advtrains/models/advtrains_signal_30.b3d (renamed from advtrains/advtrains/models/advtrains_signal_30.b3d) | bin | 61544 -> 61544 bytes | |||
-rw-r--r-- | advtrains/models/advtrains_signal_45.b3d (renamed from advtrains/advtrains/models/advtrains_signal_45.b3d) | bin | 61544 -> 61544 bytes | |||
-rw-r--r-- | advtrains/models/advtrains_signal_60.b3d (renamed from advtrains/advtrains/models/advtrains_signal_60.b3d) | bin | 61544 -> 61544 bytes | |||
-rw-r--r-- | advtrains/models/advtrains_signal_wall_l.b3d (renamed from advtrains/advtrains/models/advtrains_signal_wall_l.b3d) | bin | 40514 -> 40514 bytes | |||
-rw-r--r-- | advtrains/models/advtrains_signal_wall_r.b3d (renamed from advtrains/advtrains/models/advtrains_signal_wall_r.b3d) | bin | 40514 -> 40514 bytes | |||
-rw-r--r-- | advtrains/models/advtrains_signal_wall_t.b3d (renamed from advtrains/advtrains/models/advtrains_signal_wall_t.b3d) | bin | 40514 -> 40514 bytes | |||
-rw-r--r-- | advtrains/models/advtrains_track_cr.b3d (renamed from advtrains/advtrains/models/advtrains_track_cr.b3d) | bin | 8023 -> 8023 bytes | |||
-rw-r--r-- | advtrains/models/advtrains_track_st.b3d (renamed from advtrains/advtrains/models/advtrains_track_st.b3d) | bin | 15831 -> 15831 bytes | |||
-rw-r--r-- | advtrains/models/advtrains_track_st_45.b3d (renamed from advtrains/advtrains/models/advtrains_track_st_45.b3d) | bin | 8935 -> 8935 bytes | |||
-rw-r--r-- | advtrains/models/trackplane.b3d (renamed from advtrains/advtrains/models/trackplane.b3d) | bin | 262 -> 262 bytes | |||
-rw-r--r-- | advtrains/modpack.txt | 0 | ||||
-rw-r--r-- | advtrains/nodedb.lua (renamed from advtrains/advtrains/nodedb.lua) | 0 | ||||
-rw-r--r-- | advtrains/readme.txt | 25 | ||||
-rw-r--r-- | advtrains/screenshot.png | bin | 809738 -> 0 bytes | |||
-rw-r--r-- | advtrains/settingtypes.txt (renamed from advtrains/advtrains/settingtypes.txt) | 0 | ||||
-rw-r--r-- | advtrains/signals.lua (renamed from advtrains/advtrains/signals.lua) | 0 | ||||
-rwxr-xr-x | advtrains/textures/advtrains_across.png (renamed from advtrains/advtrains/textures/advtrains_across.png) | bin | 302 -> 302 bytes | |||
-rwxr-xr-x | advtrains/textures/advtrains_across_anim.png (renamed from advtrains/advtrains/textures/advtrains_across_anim.png) | bin | 524 -> 524 bytes | |||
-rwxr-xr-x | advtrains/textures/advtrains_boiler.png (renamed from advtrains/advtrains/textures/advtrains_boiler.png) | bin | 413 -> 413 bytes | |||
-rwxr-xr-x | advtrains/textures/advtrains_chimney.png (renamed from advtrains/advtrains/textures/advtrains_chimney.png) | bin | 309 -> 309 bytes | |||
-rwxr-xr-x | advtrains/textures/advtrains_couple.png (renamed from advtrains/advtrains/textures/advtrains_couple.png) | bin | 339 -> 339 bytes | |||
-rwxr-xr-x | advtrains/textures/advtrains_discouple.png (renamed from advtrains/advtrains/textures/advtrains_discouple.png) | bin | 293 -> 293 bytes | |||
-rwxr-xr-x | advtrains/textures/advtrains_driver_cab.png (renamed from advtrains/advtrains/textures/advtrains_driver_cab.png) | bin | 352 -> 352 bytes | |||
-rwxr-xr-x | advtrains/textures/advtrains_dtrack_atc_placer.png (renamed from advtrains/advtrains/textures/advtrains_dtrack_atc_placer.png) | bin | 1259 -> 1259 bytes | |||
-rwxr-xr-x | advtrains/textures/advtrains_dtrack_bumper_placer.png (renamed from advtrains/advtrains/textures/advtrains_dtrack_bumper_placer.png) | bin | 2213 -> 2213 bytes | |||
-rwxr-xr-x | advtrains/textures/advtrains_dtrack_detector_placer.png (renamed from advtrains/advtrains/textures/advtrains_dtrack_detector_placer.png) | bin | 1253 -> 1253 bytes | |||
-rwxr-xr-x | advtrains/textures/advtrains_dtrack_load_placer.png (renamed from advtrains/advtrains/textures/advtrains_dtrack_load_placer.png) | bin | 1248 -> 1248 bytes | |||
-rwxr-xr-x | advtrains/textures/advtrains_dtrack_placer.png (renamed from advtrains/advtrains/textures/advtrains_dtrack_placer.png) | bin | 1097 -> 1097 bytes | |||
-rwxr-xr-x | advtrains/textures/advtrains_dtrack_rail.png (renamed from advtrains/advtrains/textures/advtrains_dtrack_rail.png) | bin | 4582 -> 4582 bytes | |||
-rwxr-xr-x | advtrains/textures/advtrains_dtrack_shared.png (renamed from advtrains/advtrains/textures/advtrains_dtrack_shared.png) | bin | 7141 -> 7141 bytes | |||
-rwxr-xr-x | advtrains/textures/advtrains_dtrack_shared_atc.png (renamed from advtrains/advtrains/textures/advtrains_dtrack_shared_atc.png) | bin | 7215 -> 7215 bytes | |||
-rwxr-xr-x | advtrains/textures/advtrains_dtrack_shared_detector_off.png (renamed from advtrains/advtrains/textures/advtrains_dtrack_shared_detector_off.png) | bin | 7180 -> 7180 bytes | |||
-rwxr-xr-x | advtrains/textures/advtrains_dtrack_shared_detector_on.png (renamed from advtrains/advtrains/textures/advtrains_dtrack_shared_detector_on.png) | bin | 7181 -> 7181 bytes | |||
-rwxr-xr-x | advtrains/textures/advtrains_dtrack_shared_load.png (renamed from advtrains/advtrains/textures/advtrains_dtrack_shared_load.png) | bin | 7339 -> 7339 bytes | |||
-rwxr-xr-x | advtrains/textures/advtrains_dtrack_shared_unload.png (renamed from advtrains/advtrains/textures/advtrains_dtrack_shared_unload.png) | bin | 7338 -> 7338 bytes | |||
-rwxr-xr-x | advtrains/textures/advtrains_dtrack_slopeplacer.png (renamed from advtrains/advtrains/textures/advtrains_dtrack_slopeplacer.png) | bin | 2415 -> 2415 bytes | |||
-rwxr-xr-x | advtrains/textures/advtrains_dtrack_unload_placer.png (renamed from advtrains/advtrains/textures/advtrains_dtrack_unload_placer.png) | bin | 1260 -> 1260 bytes | |||
-rwxr-xr-x | advtrains/textures/advtrains_platform.png (renamed from advtrains/advtrains/textures/advtrains_platform.png) | bin | 193 -> 193 bytes | |||
-rwxr-xr-x | advtrains/textures/advtrains_retrosignal.png (renamed from advtrains/advtrains/textures/advtrains_retrosignal.png) | bin | 8496 -> 8496 bytes | |||
-rwxr-xr-x | advtrains/textures/advtrains_retrosignal_inv.png (renamed from advtrains/advtrains/textures/advtrains_retrosignal_inv.png) | bin | 2242 -> 2242 bytes | |||
-rwxr-xr-x | advtrains/textures/advtrains_signal_inv.png (renamed from advtrains/advtrains/textures/advtrains_signal_inv.png) | bin | 856 -> 856 bytes | |||
-rwxr-xr-x | advtrains/textures/advtrains_signal_off.png (renamed from advtrains/advtrains/textures/advtrains_signal_off.png) | bin | 5882 -> 5882 bytes | |||
-rwxr-xr-x | advtrains/textures/advtrains_signal_on.png (renamed from advtrains/advtrains/textures/advtrains_signal_on.png) | bin | 5884 -> 5884 bytes | |||
-rwxr-xr-x | advtrains/textures/advtrains_signal_wall_off.png (renamed from advtrains/advtrains/textures/advtrains_signal_wall_off.png) | bin | 3056 -> 3056 bytes | |||
-rwxr-xr-x | advtrains/textures/advtrains_signal_wall_on.png (renamed from advtrains/advtrains/textures/advtrains_signal_wall_on.png) | bin | 3043 -> 3043 bytes | |||
-rwxr-xr-x | advtrains/textures/advtrains_track_cr.png (renamed from advtrains/advtrains/textures/advtrains_track_cr.png) | bin | 33370 -> 33370 bytes | |||
-rwxr-xr-x | advtrains/textures/advtrains_track_cr_45.png (renamed from advtrains/advtrains/textures/advtrains_track_cr_45.png) | bin | 33938 -> 33938 bytes | |||
-rwxr-xr-x | advtrains/textures/advtrains_track_placer.png (renamed from advtrains/advtrains/textures/advtrains_track_placer.png) | bin | 32349 -> 32349 bytes | |||
-rwxr-xr-x | advtrains/textures/advtrains_track_st.png (renamed from advtrains/advtrains/textures/advtrains_track_st.png) | bin | 20405 -> 20405 bytes | |||
-rwxr-xr-x | advtrains/textures/advtrains_track_st_45.png (renamed from advtrains/advtrains/textures/advtrains_track_st_45.png) | bin | 39977 -> 39977 bytes | |||
-rwxr-xr-x | advtrains/textures/advtrains_track_swlcr.png (renamed from advtrains/advtrains/textures/advtrains_track_swlcr.png) | bin | 33378 -> 33378 bytes | |||
-rwxr-xr-x | advtrains/textures/advtrains_track_swlcr_45.png (renamed from advtrains/advtrains/textures/advtrains_track_swlcr_45.png) | bin | 45772 -> 45772 bytes | |||
-rwxr-xr-x | advtrains/textures/advtrains_track_swlst.png (renamed from advtrains/advtrains/textures/advtrains_track_swlst.png) | bin | 32321 -> 32321 bytes | |||
-rwxr-xr-x | advtrains/textures/advtrains_track_swlst_45.png (renamed from advtrains/advtrains/textures/advtrains_track_swlst_45.png) | bin | 46408 -> 46408 bytes | |||
-rwxr-xr-x | advtrains/textures/advtrains_track_swrcr.png (renamed from advtrains/advtrains/textures/advtrains_track_swrcr.png) | bin | 33670 -> 33670 bytes | |||
-rwxr-xr-x | advtrains/textures/advtrains_track_swrcr_45.png (renamed from advtrains/advtrains/textures/advtrains_track_swrcr_45.png) | bin | 46865 -> 46865 bytes | |||
-rwxr-xr-x | advtrains/textures/advtrains_track_swrst.png (renamed from advtrains/advtrains/textures/advtrains_track_swrst.png) | bin | 32654 -> 32654 bytes | |||
-rwxr-xr-x | advtrains/textures/advtrains_track_swrst_45.png (renamed from advtrains/advtrains/textures/advtrains_track_swrst_45.png) | bin | 47636 -> 47636 bytes | |||
-rwxr-xr-x | advtrains/textures/advtrains_trackworker.png (renamed from advtrains/advtrains/textures/advtrains_trackworker.png) | bin | 328 -> 328 bytes | |||
-rwxr-xr-x | advtrains/textures/advtrains_wheel.png (renamed from advtrains/advtrains/textures/advtrains_wheel.png) | bin | 582 -> 582 bytes | |||
-rwxr-xr-x | advtrains/textures/drwho_screwdriver.png (renamed from advtrains/advtrains/textures/drwho_screwdriver.png) | bin | 328 -> 328 bytes | |||
-rw-r--r-- | advtrains/trackdb_legacy.lua (renamed from advtrains/advtrains/trackdb_legacy.lua) | 0 | ||||
-rw-r--r-- | advtrains/trackplacer.lua (renamed from advtrains/advtrains/trackplacer.lua) | 0 | ||||
-rw-r--r-- | advtrains/tracks.lua (renamed from advtrains/advtrains/tracks.lua) | 0 | ||||
-rw-r--r-- | advtrains/trainhud.lua (renamed from advtrains/advtrains/trainhud.lua) | 0 | ||||
-rw-r--r-- | advtrains/trainlogic.lua (renamed from advtrains/advtrains/trainlogic.lua) | 0 | ||||
-rw-r--r-- | advtrains/wagons.lua (renamed from advtrains/advtrains/wagons.lua) | 0 |
197 files changed, 8 insertions, 2217 deletions
diff --git a/advtrains/advtrains.zip b/advtrains/advtrains.zip Binary files differdeleted file mode 100644 index a3dab82..0000000 --- a/advtrains/advtrains.zip +++ /dev/null diff --git a/advtrains/advtrains/description.txt b/advtrains/advtrains/description.txt deleted file mode 100644 index bb13b97..0000000 --- a/advtrains/advtrains/description.txt +++ /dev/null @@ -1,8 +0,0 @@ -Advanced Trains v1.3.8, by orwell and contributors. Also see readme. -Good-looking, realistic trains for minetest. - -For crafting recipes, see manual.pdf - -Website: http://advtrains.bleipb.de/ -Manual: https://github.com/orwell96/advtrains/blob/master/manual.pdf -Forum : https://forum.minetest.net/viewtopic.php?f=11&t=14726 diff --git a/advtrains/advtrains_itrainmap/depends.txt b/advtrains/advtrains_itrainmap/depends.txt deleted file mode 100644 index 6f00bf6..0000000 --- a/advtrains/advtrains_itrainmap/depends.txt +++ /dev/null @@ -1 +0,0 @@ -advtrains
\ No newline at end of file diff --git a/advtrains/advtrains_itrainmap/init.lua b/advtrains/advtrains_itrainmap/init.lua deleted file mode 100644 index 756f1da..0000000 --- a/advtrains/advtrains_itrainmap/init.lua +++ /dev/null @@ -1,149 +0,0 @@ - - -local map_def={ - example = { - p1x=168, - p1z=530, - p2x=780, - p2z=1016, - background="itm_example.png", - }, -} - -local itm_cache={} -local itm_pdata={} -local itm_conf_mindia=0.1 - -minetest.register_privilege("itm", { description = "Allows to display train map", give_to_singleplayer = true, default = false }) - -local function create_map_form_with_bg(d) - local minx, minz, maxx, maxz = math.min(d.p1x, d.p2x), math.min(d.p1z, d.p2z), math.max(d.p1x, d.p2x), math.max(d.p1z, d.p2z) - local form_x, form_z=10,10 - local edge_x, edge_z = form_x/(maxx-minx), form_z/(maxz-minz) - local len_x, len_z=math.max(edge_x, itm_conf_mindia), math.max(edge_z, itm_conf_mindia) - local form="size["..(form_x+edge_x)..","..(form_z+edge_z).."] background[0,0;0,0;"..d.background..";true] " - local lbl={} - - for pts, tid in pairs(advtrains.detector.on_node) do - local pos=minetest.string_to_pos(pts) - form=form.."box["..(edge_x*(pos.x-minx))..","..(form_z-(edge_z*(pos.z-minz)))..";"..len_x..","..len_z..";red]" - lbl[sid(tid)]=pos - end - - for t_id, xz in pairs(lbl) do - form=form.."label["..(edge_x*(xz.x-minx))..","..(form_x-(edge_z*(xz.z-minz)))..";"..t_id.."]" - end - return form -end - -local function create_map_form(d) - if d.background then - return create_map_form_with_bg(d) - end - - local minx, minz, maxx, maxz = math.min(d.p1x, d.p2x), math.min(d.p1z, d.p2z), math.max(d.p1x, d.p2x), math.max(d.p1z, d.p2z) - local form_x, form_z=10,10 - local edge_x, edge_z = form_x/(maxx-minx), form_z/(maxz-minz) - local len_x, len_z=math.max(edge_x, itm_conf_mindia), math.max(edge_z, itm_conf_mindia) - local form="size["..(form_x+edge_x)..","..(form_z+edge_z).."]" - local lbl={} - - for x,itx in pairs(itm_cache) do - if x>=minx and x<=maxx then - for z,y in pairs(itx) do - if z>=minz and z<=maxz then - local adn=advtrains.detector.on_node[minetest.pos_to_string({x=x, y=y, z=z})] - local color="gray" - if adn then - color="red" - lbl[sid(adn)]={x=x, z=z} - end - form=form.."box["..(edge_x*(x-minx))..","..(form_z-(edge_z*(z-minz)))..";"..len_x..","..len_z..";"..color.."]" - end - end - end - end - for t_id, xz in pairs(lbl) do - form=form.."label["..(edge_x*(xz.x-minx))..","..(form_x-(edge_z*(xz.z-minz)))..";"..t_id.."]" - end - return form -end - -local function cache_ndb() - itm_cache={} - local ndb_nodes=advtrains.ndb.get_nodes() - for y, xzt in pairs(ndb_nodes) do - for x, zt in pairs(xzt) do - for z, _ in pairs(zt) do - if not itm_cache[x] then - itm_cache[x]={} - end - itm_cache[x][z]=y - end - end - end -end - -minetest.register_chatcommand("itm", { - params="[x1 z1 x2 z2] or [mdef]", - description="Display advtrains train map of given area.\nFirst form:[x1 z1 x2 z2] - specify area directly.\nSecond form:[mdef] - Use a predefined map background(see init.lua)\nThird form: No parameters - use WorldEdit position markers.", - privs={itm=true}, - func = function(name, param) - local mdef=string.match(param, "^(%S+)$") - if mdef then - local d=map_def[mdef] - if not d then - return false, "Map definiton not found: "..mdef - end - itm_pdata[name]=map_def[mdef] - minetest.show_formspec(name, "itrainmap", create_map_form(d)) - return true, "Showing train map: "..mdef - end - local x1, z1, x2, z2=string.match(param, "^(%S+) (%S+) (%S+) (%S+)$") - if not (x1 and z1 and x2 and z2) then - if worldedit then - local wep1, wep2=worldedit.pos1[name], worldedit.pos2[name] - if wep1 and wep2 then - x1, z1, x2, z2=wep1.x, wep1.z, wep2.x, wep2.z - end - end - end - if not (x1 and z1 and x2 and z2) then - return false, "Invalid parameters and no WE positions set" - end - local d={p1x=x1, p1z=z1, p2x=x2, p2z=z2} - itm_pdata[name]=d - minetest.show_formspec(name, "itrainmap", create_map_form(d)) - return true, "Showing ("..x1..","..z1..")-("..x2..","..z2..")" - end, -}) -minetest.register_chatcommand("itm_cache_ndb", { - params="", - description="Cache advtrains node database again. Run when tracks changed.", - privs={itm=true}, - func = function(name, param) - cache_ndb() - return true, "Done caching node database." - end, -}) - -local timer=0 -function advtrains_itm_mainloop(dtime) - timer=timer-math.min(dtime, 0.1) - if timer<=0 then - for pname,d in pairs(itm_pdata) do - minetest.show_formspec(pname, "itrainmap", create_map_form(d)) - end - timer=2 - end -end -minetest.register_on_player_receive_fields(function(player, formname, fields) - if formname=="itrainmap" and fields.quit then - itm_pdata[player:get_player_name()]=nil - end -end) - -function advtrains_itm_init() - --automatically run itm_cache_ndb - minetest.after(2, cache_ndb) -end diff --git a/advtrains/advtrains_itrainmap/textures/itm_example.png b/advtrains/advtrains_itrainmap/textures/itm_example.png Binary files differdeleted file mode 100644 index caf084a..0000000 --- a/advtrains/advtrains_itrainmap/textures/itm_example.png +++ /dev/null diff --git a/advtrains/advtrains_luaautomation/README.txt b/advtrains/advtrains_luaautomation/README.txt deleted file mode 100644 index f2219bf..0000000 --- a/advtrains/advtrains_luaautomation/README.txt +++ /dev/null @@ -1,165 +0,0 @@ - -#### Advtrains - Lua Automation features - -This mod offers components that run LUA code and interface with each other through a global environment. It makes complex automated railway systems possible. - -### atlatc -The mod is sometimes abbreviated as 'atlatc'. This stands for AdvTrainsLuaATC. This short name has been chosen for user convenience, since the name of this mod ('advtrains_luaautomation') is very long. - -### Privilege -To perform any operations using this mod (except executing operation panels), players need the "atlatc" privilege. -This privilege should never be granted to anyone except trusted administrators. Even though the LUA environment is sandboxed, it is still possible to DoS the server by coding infinite loops or requesting expotentially growing interrupts. - -### Active and passive -Active components are these who have LUA code running in them. They are triggered on specific events. Passive components are dumb, they only have a state and can be set to another state, they can't perform actions themselves. - -### Environments - -Each active component is assigned to an environment. This is where all data are held. Components in different environments can't inferface with each other. -This system allows multiple independent automation systems to run simultaneously without polluting each other's environment. - -/env_create <env_name> -Create environment with the given name. To be able to do anything, you first need to create an environment. Choose the name wisely, you can't change it afterwards. - -/env_setup <env_name> -Invoke the form to edit the environment's initialization code. For more information, see the section on active components. You can also delete an environment from here. - -### Active components - -The code of every active component is run on specific events which are explained soon. When run, every variable written that is not local and is no function or userdata is saved over code re-runs and over server restarts. Additionally, the following global variables are defined: - -# event -The variable 'event' contains a table with information on the current event. How this table can look is explained below. - -# S -The variable 'S' contains a table which is shared between all components of the environment. Its contents are persistent over server restarts. May not contain functions, every other value is allowed. -Example: -Component 1: S.stuff="foo" -Component 2: print(S.stuff) --> foo - -# F -The variable 'F' also contains a table which is shared between all components of the environment. Its contents are discarded on server shutdown or when the init code gets re-run. Every data type is allowed, even functions. -The purpose of this table is not to save data, but to provide static value and function definitions. The table should be populated by the init code. - -# Standard Lua functions -The following standard Lua libraries are available: -string, math, table, os -The following standard Lua functions are available: -assert, error, ipairs, pairs, next, select, tonumber, tostring, type, unpack - -Every attempt to overwrite any of the predefined values results in an error. - -# LuaAutomation-specific global functions - -POS(x,y,z) -Shorthand function to create a position vector {x=?, y=?, z=?} with less characters - -getstate(pos) -Get the state of the passive component at position 'pos'. See section on passive components for more info. -pos can be either a position vector (created by POS()) or a string, the name of this passive component. - -setstate(pos, newstate) -Set the state of the passive component at position 'pos'. -pos can be either a position vector (created by POS()) or a string, the name of this passive component. - -interrupt(time, message) -Cause LuaAutomation to trigger an 'int' event on this component after the given time in seconds with the specified 'message' field. 'message' can be of any Lua data type. -Not available in init code! - -interrupt_pos(pos, message) -Immediately trigger an 'ext_int' event on the active component at position pos. 'message' is like in interrupt(). -USE WITH CARE, or better don't use! Incorrect use can result in expotential growth of interrupts. - -## Components and events - -The event table is a table of the following format: -{ - type = "<type>", - <type> = true, - ... additional content ... -} -You can check for the event type by either using -if event.type == "wanted" then ...do stuff... end -or -if event.wanted then ...do stuff... end -(if 'wanted' is the event type to check for) - -# Init code -The initialization code is not a component as such, but rather a part of the whole environment. It can (and should) be used to make definitions that other components can refer to. -Examples: -A function to define behavior for trains in subway stations: -function F.station() - if event.train then atc_send("B0WOL") end - if event.int and event.message="depart" then atc_send("OCD1SM") end -end - -The init code is run whenever the F table needs to be refilled with data. This is the case on server startup and whenever the init code is changed and you choose to run it. -Functions are run in the environment of the currently active node, regardless of where they were defined. So, the 'event' table always reflects the state of the calling node. - -The 'event' table of the init code is always {type="init", init=true}. - -# ATC rails -The Lua-controlled ATC rails are the only components that can actually interface with trains. The following event types are generated: - -{type="train", train=true, id="<train_id>"} -This event is fired when a train enters the rail. The field 'id' is the unique train ID, which is a long string (generated by concatenating os.time() and os.clock() at creation time). The Itrainmap mod displays the last 4 digits of this ID. - -{type="int", int=true, message=<message>} -Fired when an interrupt set by the 'interrupt' function runs out. 'message' is the message passed to the interrupt function. -{type="ext_int", ext_int=true, message=<message>} -Fired when another node called 'interrupt_pos' on this position. 'message' is the message passed to the interrupt_pos function. - -In addition to the default environment functions, the following functions are available: - -atc_send(<atc_command>) - Sends the specified ATC command to the train and returns true. If there is no train, returns false and does nothing. -atc_reset() - Resets the train's current ATC command. If there is no train, returns false and does nothing. -atc_arrow - Boolean, 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. - -# 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, 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. - diff --git a/advtrains/advtrains_luaautomation/active_common.lua b/advtrains/advtrains_luaautomation/active_common.lua deleted file mode 100644 index 8c910c6..0000000 --- a/advtrains/advtrains_luaautomation/active_common.lua +++ /dev/null @@ -1,134 +0,0 @@ - - -local ac = {nodes={}} - -function ac.load(data) - if data then - ac.nodes=data.nodes - end -end -function ac.save() - return {nodes = ac.nodes} -end - -function ac.after_place_node(pos, player) - advtrains.ndb.update(pos) - local meta=minetest.get_meta(pos) - meta:set_string("formspec", ac.getform(pos, meta)) - meta:set_string("infotext", "LuaAutomation component, unconfigured.") - local ph=minetest.pos_to_string(pos) - --just get first available key! - for en,_ in pairs(atlatc.envs) do - ac.nodes[ph]={env=en} - return - end -end -function ac.getform(pos, meta_p) - local meta = meta_p or minetest.get_meta(pos) - local envs_asvalues={} - - local ph=minetest.pos_to_string(pos) - local nodetbl = ac.nodes[ph] - local env, code, err = nil, "", "" - if nodetbl then - code=nodetbl.code or "" - err=nodetbl.err or "" - env=nodetbl.env or "" - end - local sel = 1 - for n,_ in pairs(atlatc.envs) do - envs_asvalues[#envs_asvalues+1]=n - if n==env then - sel=#envs_asvalues - end - end - local form = "size[10,10]dropdown[0,0;3;env;"..table.concat(envs_asvalues, ",")..";"..sel.."]" - .."button[4,0;2,1;save;Save]button[7,0;2,1;cle;Clear local env] textarea[0.2,1;10,10;code;Code;"..minetest.formspec_escape(code).."]" - .."label[0,9.8;"..err.."]" - return form -end - -function ac.after_dig_node(pos, node, player) - advtrains.invalidate_all_paths(pos) - advtrains.ndb.clear(pos) - local ph=minetest.pos_to_string(pos) - ac.nodes[ph]=nil -end - -function ac.on_receive_fields(pos, formname, fields, player) - if not minetest.check_player_privs(player:get_player_name(), {atlatc=true}) then - minetest.chat_send_player(player:get_player_name(), "Missing privilege: atlatc - Operation cancelled!") - return - end - - local meta=minetest.get_meta(pos) - local ph=minetest.pos_to_string(pos) - local nodetbl = ac.nodes[ph] or {} - --if fields.quit then return end - if fields.env then - nodetbl.env=fields.env - end - if fields.code then - nodetbl.code=fields.code - end - if fields.save then - nodetbl.err=nil - end - if fields.cle then - nodetbl.data={} - end - - ac.nodes[ph]=nodetbl - - meta:set_string("formspec", ac.getform(pos, meta)) - if nodetbl.env then - meta:set_string("infotext", "LuaAutomation component, assigned to environment '"..nodetbl.env.."'") - else - meta:set_string("infotext", "LuaAutomation component, invalid enviroment set!") - end -end - -function ac.run_in_env(pos, evtdata, customfct_p) - local ph=minetest.pos_to_string(pos) - local nodetbl = ac.nodes[ph] - if not nodetbl then - atwarn("LuaAutomation component at",ph,": Data not in memory! Please visit component and click 'Save'!") - return - end - - local meta - if minetest.get_node_or_nil(pos) then - meta=minetest.get_meta(pos) - end - - if not nodetbl.env or not atlatc.envs[nodetbl.env] then - atwarn("LuaAutomation component at",ph,": Not an existing environment: "..(nodetbl.env or "<nil>")) - return false - end - if not nodetbl.code or nodetbl.code=="" then - atwarn("LuaAutomation component at",ph,": No code to run! (insert -- to suppress warning)") - return false - end - - local customfct=customfct_p or {} - customfct.interrupt=function(t, imesg) - atlatc.interrupt.add(t, pos, {type="int", int=true, message=imesg}) - end - - local datain=nodetbl.data or {} - local succ, dataout = atlatc.envs[nodetbl.env]:execute_code(datain, nodetbl.code, evtdata, customfct) - if succ then - atlatc.active.nodes[ph].data=atlatc.remove_invalid_data(dataout) - else - atlatc.active.nodes[ph].err=dataout - atwarn("LuaAutomation ATC interface rail at",ph,": LUA Error:",dataout) - if meta then - meta:set_string("infotext", "LuaAutomation ATC interface rail, ERROR:"..dataout) - end - end - if meta then - meta:set_string("formspec", ac.getform(pos, meta)) - end -end - -atlatc.active=ac diff --git a/advtrains/advtrains_luaautomation/atc_rail.lua b/advtrains/advtrains_luaautomation/atc_rail.lua deleted file mode 100644 index 3ec82c8..0000000 --- a/advtrains/advtrains_luaautomation/atc_rail.lua +++ /dev/null @@ -1,124 +0,0 @@ --- atc_rail.lua --- registers and handles the ATC rail. Active component. --- This is the only component that can interface with trains, so train interface goes here too. - ---Using subtable -local r={} - -function r.fire_event(pos, evtdata) - - local ph=minetest.pos_to_string(pos) - local railtbl = atlatc.active.nodes[ph] - - if not railtbl then - atwarn("LuaAutomation ATC interface rail at",ph,": Data not in memory! Please visit position and click 'Save'!") - return - end - - - local arrowconn = railtbl.arrowconn - if not arrowconn then - atwarn("LuaAutomation ATC interface rail at",ph,": Incomplete Data! Please visit position and click 'Save'!") - return - end - - --prepare ingame API for ATC. Regenerate each time since pos needs to be known - --If no train, then return false. - local train_id=advtrains.detector.on_node[ph] - local train, atc_arrow, tvel - if train_id then train=advtrains.trains[train_id] end - if train then - if not train.path then - --we happened to get in between an invalidation step - --delay - atlatc.interrupt.add(0,pos,evtdata) - return - end - for index, ppos in pairs(train.path) do - if vector.equals(advtrains.round_vector_floor_y(ppos), pos) then - atc_arrow = - vector.equals( - advtrains.dirCoordSet(pos, arrowconn), - advtrains.round_vector_floor_y(train.path[index+train.movedir]) - ) - end - end - if atc_arrow==nil then - atwarn("LuaAutomation ATC rail at", pos, ": Rail not on train's path! Can't determine arrow direction. Assuming +!") - atc_arrow=true - end - tvel=train.velocity - end - local customfct={ - atc_send = function(cmd) - if not train_id then return false end - assertt(cmd, "string") - advtrains.atc.train_reset_command(train_id) - train.atc_command=cmd - train.atc_arrow=atc_arrow - return true - end, - atc_reset = function(cmd) - if not train_id then return false end - assertt(cmd, "string") - advtrains.atc.train_reset_command(train_id) - return true - end, - atc_arrow = atc_arrow, - atc_id = train_id, - atc_speed = tvel, - atc_set_text_outside = function(text) - if not train_id then return false end - if text then assertt(text, "string") end - advtrains.trains[train_id].text_outside=text - return true - end, - atc_set_text_inside = function(text) - if not train_id then return false end - if text then assertt(text, "string") end - advtrains.trains[train_id].text_inside=text - return true - end, - } - - atlatc.active.run_in_env(pos, evtdata, customfct) - -end - -advtrains.register_tracks("default", { - nodename_prefix="advtrains_luaautomation:dtrack", - texture_prefix="advtrains_dtrack_atc", - models_prefix="advtrains_dtrack", - models_suffix=".b3d", - shared_texture="advtrains_dtrack_shared_atc.png", - description=atltrans("LuaAutomation ATC Rail"), - formats={}, - get_additional_definiton = function(def, preset, suffix, rotation) - return { - after_place_node = atlatc.active.after_place_node, - after_dig_node = atlatc.active.after_dig_node, - - on_receive_fields = function(pos, ...) - atlatc.active.on_receive_fields(pos, ...) - - --set arrowconn (for ATC) - local ph=minetest.pos_to_string(pos) - local _, conn1=advtrains.get_rail_info_at(pos, advtrains.all_tracktypes) - atlatc.active.nodes[ph].arrowconn=conn1 - end, - - advtrains = { - on_train_enter = function(pos, train_id) - --do async. Event is fired in train steps - atlatc.interrupt.add(0, pos, {type="train", train=true, id=train_id}) - end, - }, - luaautomation = { - fire_event=r.fire_event - } - } - end -}, advtrains.trackpresets.t_30deg_straightonly) - - -atlatc.rail = r diff --git a/advtrains/advtrains_luaautomation/chatcmds.lua b/advtrains/advtrains_luaautomation/chatcmds.lua deleted file mode 100644 index 2d0c69d..0000000 --- a/advtrains/advtrains_luaautomation/chatcmds.lua +++ /dev/null @@ -1,84 +0,0 @@ ---chatcmds.lua ---Registers commands to modify the init and step code for LuaAutomation - ---position helper. ---punching a node will result in that position being saved and inserted into a text field on the top of init form. -local punchpos={} - -minetest.register_on_punchnode(function(pos, node, player, pointed_thing) - local pname=player:get_player_name() - punchpos[pname]=pos -end) - -local function get_init_form(env, pname) - local err = env.init_err or "" - local code = env.init_code or "" - local ppos=punchpos[pname] - local pp="" - if ppos then - pp="POS"..minetest.pos_to_string(ppos) - end - local form = "size[10,10]button[0,0;2,1;run;Run InitCode]button[2,0;2,1;cls;Clear S]" - .."button[4,0;2,1;save;Save] button[6,0;2,1;del;Delete Env.] field[8.1,0.5;2,1;punchpos;Last punched position;"..pp.."]" - .."textarea[0.2,1;10,10;code;Environment initialization code;"..minetest.formspec_escape(code).."]" - .."label[0,9.8;"..err.."]" - return form -end - -core.register_chatcommand("env_setup", { - params = "<environment name>", - description = "Set up and modify AdvTrains LuaAutomation environment", - privs = {atlatc=true}, - func = function(name, param) - local env=atlatc.envs[param] - if not env then return false,"Invalid environment name!" end - minetest.show_formspec(name, "atlatc_envsetup_"..param, get_init_form(env, name)) - return true - end, -}) - -core.register_chatcommand("env_create", { - params = "<environment name>", - description = "Create an AdvTrains LuaAutomation environment", - privs = {atlatc=true}, - func = function(name, param) - if not param or param=="" then return false, "Name required!" end - if atlatc.envs[param] then return false, "Environment already exists!" end - atlatc.envs[param] = atlatc.env_new(param) - return true, "Created environment '"..param.."'. Use '/env_setup "..param.."' to define global initialization code, or start building LuaATC components!" - end, -}) - - -minetest.register_on_player_receive_fields(function(player, formname, fields) - - local pname=player:get_player_name() - if not minetest.check_player_privs(pname, {atlatc=true}) then return end - - local envname=string.match(formname, "^atlatc_delconfirm_(.+)$") - if envname and fields.sure=="YES" then - atlatc.envs[envname]=nil - minetest.chat_send_player(pname, "Environment deleted!") - return - end - - envname=string.match(formname, "^atlatc_envsetup_(.+)$") - if not envname then return end - - local env=atlatc.envs[envname] - if not env then return end - - if fields.del then - minetest.show_formspec(pname, "atlatc_delconfirm_"..envname, "field[sure;"..minetest.formspec_escape("SURE TO DELETE ENVIRONMENT "..envname.."? Type YES (all uppercase) to continue or just quit form to cancel.")..";]") - return - end - - env.init_err=nil - if fields.code then - env.init_code=fields.code - end - if fields.run then - env:run_initcode() - minetest.show_formspec(pname, formname, get_init_form(env, pname)) - end -end) diff --git a/advtrains/advtrains_luaautomation/depends.txt b/advtrains/advtrains_luaautomation/depends.txt deleted file mode 100644 index 602cf47..0000000 --- a/advtrains/advtrains_luaautomation/depends.txt +++ /dev/null @@ -1,2 +0,0 @@ -advtrains -mesecons_switch?
\ No newline at end of file diff --git a/advtrains/advtrains_luaautomation/environment.lua b/advtrains/advtrains_luaautomation/environment.lua deleted file mode 100644 index 0b25e87..0000000 --- a/advtrains/advtrains_luaautomation/environment.lua +++ /dev/null @@ -1,275 +0,0 @@ -------------- --- lua sandboxed environment - --- function to cross out functions and userdata. --- modified from dump() -function atlatc.remove_invalid_data(o, nested) - if o==nil then return nil end - local valid_dt={["nil"]=true, boolean=true, number=true, string=true} - if type(o) ~= "table" then - --check valid data type - if not valid_dt[type(o)] then - return nil - end - return o - end - -- Contains table -> true/nil of currently nested tables - nested = nested or {} - if nested[o] then - return nil - end - nested[o] = true - for k, v in pairs(o) do - v = atlatc.remove_invalid_data(v, nested) - end - nested[o] = nil - return o -end - - -local env_proto={ - load = function(self, envname, data) - self.name=envname - self.sdata=data.sdata and atlatc.remove_invalid_data(data.sdata) or {} - self.fdata={} - self.init_code=data.init_code or "" - self.step_code=data.step_code or "" - end, - save = function(self) - -- throw any function values out of the sdata table - self.sdata = atlatc.remove_invalid_data(self.sdata) - return {sdata = self.sdata, init_code=self.init_code, step_code=self.step_code} - end, -} - ---Environment ---Code modified from mesecons_luacontroller (credit goes to Jeija and mesecons contributors) - -local safe_globals = { - "assert", "error", "ipairs", "next", "pairs", "select", - "tonumber", "tostring", "type", "unpack", "_VERSION" -} - ---print is actually minetest.chat_send_all() ---using advtrains.print_concat_table because it's cool -local function safe_print(t, ...) - local str=advtrains.print_concat_table({t, ...}) - minetest.log("action", "[atlatc] "..str) - minetest.chat_send_all(str) -end - -local function safe_date() - return(os.date("*t",os.time())) -end - --- string.rep(str, n) with a high value for n can be used to DoS --- the server. Therefore, limit max. length of generated string. -local function safe_string_rep(str, n) - if #str * n > 2000 then - debug.sethook() -- Clear hook - error("string.rep: string length overflow", 2) - end - - return string.rep(str, n) -end - --- string.find with a pattern can be used to DoS the server. --- Therefore, limit string.find to patternless matching. --- Note: Disabled security since there are enough security leaks and this would be unneccessary anyway to DoS the server -local function safe_string_find(...) - --if (select(4, ...)) ~= true then - -- debug.sethook() -- Clear hook - -- error("string.find: 'plain' (fourth parameter) must always be true for security reasons.") - --end - - return string.find(...) -end - -local mp=minetest.get_modpath("advtrains_luaautomation") -local p_api_getstate, p_api_setstate = dofile(mp.."/passive.lua") - -local static_env = { - --core LUA functions - print = safe_print, - string = { - byte = string.byte, - char = string.char, - format = string.format, - len = string.len, - lower = string.lower, - upper = string.upper, - rep = safe_string_rep, - reverse = string.reverse, - sub = string.sub, - find = safe_string_find, - }, - math = { - abs = math.abs, - acos = math.acos, - asin = math.asin, - atan = math.atan, - atan2 = math.atan2, - ceil = math.ceil, - cos = math.cos, - cosh = math.cosh, - deg = math.deg, - exp = math.exp, - floor = math.floor, - fmod = math.fmod, - frexp = math.frexp, - huge = math.huge, - ldexp = math.ldexp, - log = math.log, - log10 = math.log10, - max = math.max, - min = math.min, - modf = math.modf, - pi = math.pi, - pow = math.pow, - rad = math.rad, - random = math.random, - sin = math.sin, - sinh = math.sinh, - sqrt = math.sqrt, - tan = math.tan, - tanh = math.tanh, - }, - table = { - concat = table.concat, - insert = table.insert, - maxn = table.maxn, - remove = table.remove, - sort = table.sort, - }, - os = { - clock = os.clock, - difftime = os.difftime, - time = os.time, - date = safe_date, - }, - POS = function(x,y,z) return {x=x, y=y, z=z} end, - getstate = p_api_getstate, - setstate = p_api_setstate, - --interrupts are handled per node, position unknown. - --however external interrupts can be set here. - interrupt_pos = function(pos, imesg) - if not type(pos)=="table" or not pos.x or not pos.y or not pos.z then - debug.sethook() - error("Invalid position supplied to interrupt_pos") - end - atlatc.interrupt.add(0, pos, {type="ext_int", ext_int=true, message=imesg}) - end, -} - -for _, name in pairs(safe_globals) do - static_env[name] = _G[name] -end - - ---The environment all code calls get is a table that has set static_env as metatable. ---In general, every variable is local to a single code chunk, but kept persistent over code re-runs. Data is also saved, but functions and userdata and circular references are removed ---Init code and step code's environments are not saved --- S - Table that can contain any save data global to the environment. Will be saved statically. Can't contain functions or userdata or circular references. --- F - Table global to the environment, can contain volatile data that is deleted when server quits. --- The init code should populate this table with functions and other definitions. - -local proxy_env={} ---proxy_env gets a new metatable in every run, but is the shared environment of all functions ever defined. - --- returns: true, fenv if successful; nil, error if error -function env_proto:execute_code(localenv, code, evtdata, customfct) - local metatbl ={ - __index = function(t, i) - if i=="S" then - return self.sdata - elseif i=="F" then - return self.fdata - elseif i=="event" then - return evtdata - elseif customfct and customfct[i] then - return customfct[i] - elseif localenv and localenv[i] then - return localenv[i] - end - return static_env[i] - end, - __newindex = function(t, i, v) - if i=="S" or i=="F" or i=="event" or (customfct and customfct[i]) or static_env[i] then - debug.sethook() - error("Trying to overwrite environment contents") - end - localenv[i]=v - end, - } - setmetatable(proxy_env, metatbl) - local fun, err=loadstring(code) - if not fun then - return false, err - end - - setfenv(fun, proxy_env) - local succ, data = pcall(fun) - if succ then - data=localenv - end - return succ, data -end - -function env_proto:run_initcode() - if self.init_code and self.init_code~="" then - local old_fdata=self.fdata - self.fdata = {} - atprint("[atlatc]Running initialization code for environment '"..self.name.."'") - local succ, err = self:execute_code({}, self.init_code, {type="init", init=true}) - if not succ then - atwarn("[atlatc]Executing InitCode for '"..self.name.."' failed:"..err) - self.init_err=err - if old_fdata then - self.fdata=old_fdata - atwarn("[atlatc]The 'F' table has been restored to the previous state.") - end - end - end -end -function env_proto:run_stepcode() - if self.step_code and self.step_code~="" then - local succ, err = self:execute_code({}, self.step_code, nil, {}) - if not succ then - --TODO - end - end -end - ---- class interface - -function atlatc.env_new(name) - local newenv={ - name=name, - init_code="", - step_code="", - sdata={} - } - setmetatable(newenv, {__index=env_proto}) - return newenv -end -function atlatc.env_load(name, data) - local newenv={} - setmetatable(newenv, {__index=env_proto}) - newenv:load(name, data) - return newenv -end - -function atlatc.run_initcode() - for envname, env in pairs(atlatc.envs) do - env:run_initcode() - end -end -function atlatc.run_stepcode() - for envname, env in pairs(atlatc.envs) do - env:run_stepcode() - end -end - - - - diff --git a/advtrains/advtrains_luaautomation/init.lua b/advtrains/advtrains_luaautomation/init.lua deleted file mode 100644 index 0257aef..0000000 --- a/advtrains/advtrains_luaautomation/init.lua +++ /dev/null @@ -1,110 +0,0 @@ --- advtrains_luaautomation/init.lua --- Lua automation features for advtrains --- Uses global table 'atlatc' (AdvTrains_LuaATC) - --- Boilerplate to support localized strings if intllib mod is installed. -if minetest.get_modpath("intllib") then - atltrans = intllib.Getter() -else - atltrans = function(s,a,...)a={a,...}return s:gsub("@(%d+)",function(n)return a[tonumber(n)]end)end -end - ---Privilege ---Only trusted players should be enabled to build stuff which can break the server. - -atlatc = { envs = {}} - -minetest.register_privilege("atlatc", { description = "Player can place and modify LUA ATC components. Grant with care! Allows to execute bad LUA code.", give_to_singleplayer = false, default= false }) - ---assertt helper. error if a variable is not of a type -function assertt(var, typ) - if type(var)~=typ then - error("Assertion failed, variable has to be of type "..typ) - end -end - -local mp=minetest.get_modpath("advtrains_luaautomation") -if not mp then - error("Mod name error: Mod folder is not named 'advtrains_luaautomation'!") -end -dofile(mp.."/environment.lua") -dofile(mp.."/interrupt.lua") -dofile(mp.."/active_common.lua") -dofile(mp.."/atc_rail.lua") -dofile(mp.."/operation_panel.lua") -dofile(mp.."/pcnaming.lua") -if mesecon then - dofile(mp.."/p_mesecon_iface.lua") -end -dofile(mp.."/chatcmds.lua") - - -local filename=minetest.get_worldpath().."/advtrains_luaautomation" - -function atlatc.load() - local file, err = io.open(filename, "r") - if not file then - minetest.log("error", " Failed to read advtrains_luaautomation save data from file "..filename..": "..(err or "Unknown Error")) - else - atprint("luaautomation reading file:",filename) - local tbl = minetest.deserialize(file:read("*a")) - if type(tbl) == "table" then - if tbl.version==1 then - for envname, data in pairs(tbl.envs) do - atlatc.envs[envname]=atlatc.env_load(envname, data) - end - atlatc.active.load(tbl.active) - atlatc.interrupt.load(tbl.interrupt) - atlatc.pcnaming.load(tbl.pcnaming) - end - else - minetest.log("error", " Failed to read advtrains_luaautomation save data from file "..filename..": Not a table!") - end - file:close() - end - -- run init code of all environments - atlatc.run_initcode() -end - - -atlatc.save = function() - --versions: - -- 1 - Initial save format. - - local envdata={} - for envname, env in pairs(atlatc.envs) do - envdata[envname]=env:save() - end - local save_tbl={ - version = 1, - envs=envdata, - active = atlatc.active.save(), - interrupt = atlatc.interrupt.save(), - pcnaming = atlatc.pcnaming.save(), - } - - local datastr = minetest.serialize(save_tbl) - if not datastr then - minetest.log("error", " Failed to save advtrains_luaautomation save data to file "..filename..": Can't serialize!") - return - end - local file, err = io.open(filename, "w") - if err then - minetest.log("error", " Failed to save advtrains_luaautomation save data to file "..filename..": "..(err or "Unknown Error")) - return - end - file:write(datastr) - file:close() -end - - --- globalstep for step code -local timer, step_int=0, 2 - -function atlatc.mainloop_stepcode(dtime) - timer=timer+dtime - if timer>step_int then - timer=0 - atlatc.run_stepcode() - end -end diff --git a/advtrains/advtrains_luaautomation/interrupt.lua b/advtrains/advtrains_luaautomation/interrupt.lua deleted file mode 100644 index 718b8c7..0000000 --- a/advtrains/advtrains_luaautomation/interrupt.lua +++ /dev/null @@ -1,46 +0,0 @@ --- interrupt.lua --- implements interrupt queue - ---to be saved: pos and evtdata -local iq={} -local queue={} -local timer=0 -local run=false - -function iq.load(data) - local d=data or {} - queue = d.queue or {} - timer = d.timer or 0 -end -function iq.save() - return {queue = queue, timer=timer} -end - -function iq.add(t, pos, evtdata) - queue[#queue+1]={t=t+timer, p=pos, e=evtdata} - run=true -end - -function iq.mainloop(dtime) - timer=timer + math.min(dtime, 0.2) - for i=1,#queue do - local qe=queue[i] - if not qe then - table.remove(queue, i) - i=i-1 - elseif timer>qe.t then - local pos, evtdata=queue[i].p, queue[i].e - local node=advtrains.ndb.get_node(pos) - local ndef=minetest.registered_nodes[node.name] - if ndef and ndef.luaautomation and ndef.luaautomation.fire_event then - ndef.luaautomation.fire_event(pos, evtdata) - end - table.remove(queue, i) - i=i-1 - end - end -end - - - -atlatc.interrupt=iq diff --git a/advtrains/advtrains_luaautomation/operation_panel.lua b/advtrains/advtrains_luaautomation/operation_panel.lua deleted file mode 100644 index 1d585f7..0000000 --- a/advtrains/advtrains_luaautomation/operation_panel.lua +++ /dev/null @@ -1,23 +0,0 @@ - -local function on_punch(pos, player) - atlatc.interrupt.add(0, pos, {type="punch", punch=true}) -end - - -minetest.register_node("advtrains_luaautomation:oppanel", { - drawtype = "normal", - tiles={"atlatc_oppanel.png"}, - description = "LuaAutomation operation panel", - groups = { - choppy = 1, - save_in_nodedb=1, - }, - after_place_node = atlatc.active.after_place_node, - after_dig_node = atlatc.active.after_dig_node, - on_receive_fields = atlatc.active.on_receive_fields, - on_punch = on_punch, - luaautomation = { - fire_event=atlatc.active.run_in_env - } - -}) diff --git a/advtrains/advtrains_luaautomation/p_display.lua b/advtrains/advtrains_luaautomation/p_display.lua deleted file mode 100644 index e69de29..0000000 --- a/advtrains/advtrains_luaautomation/p_display.lua +++ /dev/null diff --git a/advtrains/advtrains_luaautomation/p_mesecon_iface.lua b/advtrains/advtrains_luaautomation/p_mesecon_iface.lua deleted file mode 100644 index 95e5d8a..0000000 --- a/advtrains/advtrains_luaautomation/p_mesecon_iface.lua +++ /dev/null @@ -1,53 +0,0 @@ --- p_mesecon_iface.lua --- Mesecons interface by overriding the switch - -if not mesecon then return end - -minetest.override_item("mesecons_switch:mesecon_switch_off", { - groups = { - dig_immediate=2, - save_in_nodedb=1, - }, - on_rightclick = function (pos, node) - advtrains.ndb.swap_node(pos, {name="mesecons_switch:mesecon_switch_on", param2=node.param2}) - mesecon.receptor_on(pos) - minetest.sound_play("mesecons_switch", {pos=pos}) - end, - on_updated_from_nodedb = function(pos, node) - mesecon.receptor_off(pos) - end, - luaautomation = { - getstate = "off", - setstate = function(pos, node, newstate) - if newstate=="on" then - advtrains.ndb.swap_node(pos, {name="mesecons_switch:mesecon_switch_on", param2=node.param2}) - mesecon.receptor_on(pos) - end - end, - }, -}) - -minetest.override_item("mesecons_switch:mesecon_switch_on", { - groups = { - dig_immediate=2, - save_in_nodedb=1, - not_in_creative_inventory=1, - }, - on_rightclick = function (pos, node) - advtrains.ndb.swap_node(pos, {name="mesecons_switch:mesecon_switch_off", param2=node.param2}) - mesecon.receptor_off(pos) - minetest.sound_play("mesecons_switch", {pos=pos}) - end, - on_updated_from_nodedb = function(pos, node) - mesecon.receptor_on(pos) - end, - luaautomation = { - getstate = "on", - setstate = function(pos, node, newstate) - if newstate=="off" then - advtrains.ndb.swap_node(pos, {name="mesecons_switch:mesecon_switch_off", param2=node.param2}) - mesecon.receptor_off(pos) - end - end, - }, -}) diff --git a/advtrains/advtrains_luaautomation/passive.lua b/advtrains/advtrains_luaautomation/passive.lua deleted file mode 100644 index 774df8a..0000000 --- a/advtrains/advtrains_luaautomation/passive.lua +++ /dev/null @@ -1,39 +0,0 @@ --- passive.lua --- API to passive components, as described in passive_api.txt - -local function getstate(parpos) - local pos=atlatc.pcnaming.resolve_pos(parpos) - if type(pos)~="table" or (not pos.x or not pos.y or not pos.z) then - debug.sethook() - error("Invalid position supplied to getstate") - end - local node=advtrains.ndb.get_node(pos) - local ndef=minetest.registered_nodes[node.name] - if ndef and ndef.luaautomation and ndef.luaautomation.getstate then - local st=ndef.luaautomation.getstate - if type(st)=="function" then - return st(pos, node) - else - return st - end - end - return nil -end - -local function setstate(parpos, newstate) - local pos=atlatc.pcnaming.resolve_pos(parpos) - if type(pos)~="table" or (not pos.x or not pos.y or not pos.z) then - debug.sethook() - error("Invalid position supplied to setstate") - end - local node=advtrains.ndb.get_node(pos) - local ndef=minetest.registered_nodes[node.name] - if ndef and ndef.luaautomation and ndef.luaautomation.setstate then - local st=ndef.luaautomation.setstate - st(pos, node, newstate) - end -end - --- gets called from environment.lua --- return the values here to keep them local -return getstate, setstate diff --git a/advtrains/advtrains_luaautomation/passive_api.txt b/advtrains/advtrains_luaautomation/passive_api.txt deleted file mode 100644 index a735208..0000000 --- a/advtrains/advtrains_luaautomation/passive_api.txt +++ /dev/null @@ -1,23 +0,0 @@ -Lua Automation - Passive Component API - -Passive components are nodes that do not have code running in them. However, active components can query these and request actions from them. Examples: -Switches -Signals -Displays -Mesecon Transmitter - -All passive components have a table called 'luaautomation' in their node definition and have the group 'save_in_nodedb' set, so they work in unloaded chunks. -Example for a switch: -luaautomation = { - getstate = function(pos, node) - return "st" - end, - -- OR - getstate = "st", - - setstate = function(pos, node, newstate) - if newstate=="cr" then - advtrains.ndb.swap_node(pos, <corresponding switch alt>) - end - end -}
\ No newline at end of file diff --git a/advtrains/advtrains_luaautomation/pcnaming.lua b/advtrains/advtrains_luaautomation/pcnaming.lua deleted file mode 100644 index 56ed2d6..0000000 --- a/advtrains/advtrains_luaautomation/pcnaming.lua +++ /dev/null @@ -1,74 +0,0 @@ ---pcnaming.lua ---a.k.a Passive component naming ---Allows to assign names to passive components, so they can be called like: ---setstate("iamasignal", "green") -atlatc.pcnaming={name_map={}} -function atlatc.pcnaming.load(stuff) - if type(stuff)=="table" then - atlatc.pcnaming.name_map=stuff - end -end -function atlatc.pcnaming.save() - return atlatc.pcnaming.name_map -end - -function atlatc.pcnaming.resolve_pos(posorname) - if type(posorname)=="table" then return posorname end - return atlatc.pcnaming.name_map[posorname] -end - -minetest.register_craftitem("advtrains_luaautomation:pcnaming",{ - description = attrans("Passive Component Naming Tool\n\nRight-click to name a passive component."), - groups = {cracky=1}, -- key=name, value=rating; rating=1..3. - inventory_image = "atlatc_pcnaming.png", - wield_image = "atlatc_pcnaming.png", - stack_max = 1, - on_place = function(itemstack, placer, pointed_thing) - local pname = placer:get_player_name() - if not pname then - return - end - if not minetest.check_player_privs(pname, {atlatc=true}) then - minetest.chat_send_player(pname, "Missing privilege: atlatc") - return - end - if pointed_thing.type=="node" then - local pos=pointed_thing.under - if advtrains.is_protected(pos, pname) then - minetest.record_protection_violation(pos, pname) - return - end - local node=minetest.get_node(pos) - local ndef=minetest.registered_nodes[node.name] - if ndef then - if ndef.luaautomation then - --look if this one already has a name - local pn="" - for name, npos in pairs(atlatc.pcnaming.name_map) do - if vector.equals(npos, pos) then - pn=name - end - end - minetest.show_formspec(pname, "atlatc_naming_"..minetest.pos_to_string(pos), "field[pn;Set name of component (empty to clear);"..pn.."]") - end - end - end - end, -}) -minetest.register_on_player_receive_fields(function(player, formname, fields) - local pts=string.match(formname, "^atlatc_naming_(.+)") - if pts then - local pos=minetest.string_to_pos(pts) - if fields.pn then - --first remove all occurences - for name, npos in pairs(atlatc.pcnaming.name_map) do - if vector.equals(npos, pos) then - atlatc.pcnaming.name_map[name]=nil - end - end - if fields.pn~="" then - atlatc.pcnaming.name_map[fields.pn]=pos - end - end - end -end) diff --git a/advtrains/advtrains_luaautomation/textures/atlatc_oppanel.png b/advtrains/advtrains_luaautomation/textures/atlatc_oppanel.png Binary files differdeleted file mode 100644 index 96eb30e..0000000 --- a/advtrains/advtrains_luaautomation/textures/atlatc_oppanel.png +++ /dev/null diff --git a/advtrains/advtrains_luaautomation/textures/atlatc_pcnaming.png b/advtrains/advtrains_luaautomation/textures/atlatc_pcnaming.png Binary files differdeleted file mode 100644 index 3fccdfc..0000000 --- a/advtrains/advtrains_luaautomation/textures/atlatc_pcnaming.png +++ /dev/null diff --git a/advtrains/advtrains_train_industrial/depends.txt b/advtrains/advtrains_train_industrial/depends.txt deleted file mode 100644 index 1fb6665..0000000 --- a/advtrains/advtrains_train_industrial/depends.txt +++ /dev/null @@ -1,2 +0,0 @@ -advtrains -intllib?
\ No newline at end of file diff --git a/advtrains/advtrains_train_industrial/init.lua b/advtrains/advtrains_train_industrial/init.lua deleted file mode 100644 index ebf8d65..0000000 --- a/advtrains/advtrains_train_industrial/init.lua +++ /dev/null @@ -1,84 +0,0 @@ --- Boilerplate to support localized strings if intllib mod is installed. -local S -if minetest.get_modpath("intllib") then - S = intllib.Getter() -else - S = function(s,a,...)a={a,...}return s:gsub("@(%d+)",function(n)return a[tonumber(n)]end)end -end - -advtrains.register_wagon("engine_industrial", { - mesh="advtrains_engine_industrial.b3d", - textures = {"advtrains_engine_industrial.png"}, - drives_on={default=true}, - max_speed=20, - seats = { - { - name=S("Driver Stand (left)"), - attach_offset={x=-5, y=10, z=-10}, - view_offset={x=0, y=10, z=0}, - driving_ctrl_access=true, - group = "dstand", - }, - { - name=S("Driver Stand (right)"), - attach_offset={x=5, y=10, z=-10}, - view_offset={x=0, y=10, z=0}, - driving_ctrl_access=true, - group = "dstand", - }, - }, - seat_groups = { - dstand={ - name = "Driver Stand", - access_to = {}, - }, - }, - assign_to_seat_group = {"dstand"}, - visual_size = {x=1, y=1}, - wagon_span=2.6, - is_locomotive=true, - collisionbox = {-1.0,-0.5,-1.0, 1.0,2.5,1.0}, - drops={"default:steelblock 4"}, -}, S("Industrial Train Engine"), "advtrains_engine_industrial_inv.png") -advtrains.register_wagon("wagon_tank", { - mesh="advtrains_wagon_tank.b3d", - textures = {"advtrains_wagon_tank.png"}, - seats = {}, - drives_on={default=true}, - max_speed=20, - visual_size = {x=1, y=1}, - wagon_span=2.2, - collisionbox = {-1.0,-0.5,-1.0, 1.0,2.5,1.0}, - drops={"default:steelblock 4"}, - has_inventory = true, - get_inventory_formspec = function(self) - return "size[8,11]".. - "list[detached:advtrains_wgn_"..self.unique_id..";box;0,0;8,3;]".. - "list[current_player;main;0,5;8,4;]".. - "listring[]" - end, - inventory_list_sizes = { - box=8*3, - }, -}, S("Industrial tank wagon"), "advtrains_wagon_tank_inv.png") -advtrains.register_wagon("wagon_wood", { - mesh="advtrains_wagon_wood.b3d", - textures = {"advtrains_wagon_wood.png"}, - seats = {}, - drives_on={default=true}, - max_speed=20, - visual_size = {x=1, y=1}, - wagon_span=1.8, - collisionbox = {-1.0,-0.5,-1.0, 1.0,2.5,1.0}, - drops={"default:steelblock 4"}, - has_inventory = true, - get_inventory_formspec = function(self) - return "size[8,11]".. - "list[detached:advtrains_wgn_"..self.unique_id..";box;0,0;8,3;]".. - "list[current_player;main;0,5;8,4;]".. - "listring[]" - end, - inventory_list_sizes = { - box=8*3, - }, -}, S("Industrial wood wagon"), "advtrains_wagon_wood_inv.png") diff --git a/advtrains/advtrains_train_industrial/locale/de.txt b/advtrains/advtrains_train_industrial/locale/de.txt deleted file mode 100644 index a45ca27..0000000 --- a/advtrains/advtrains_train_industrial/locale/de.txt +++ /dev/null @@ -1,5 +0,0 @@ -Driver Stand (left) = Führerstand Links -Driver Stand (right) = Führerstand Rechts -Industrial Train Engine = Industrielle Lokomotive -Industrial tank wagon = Tankwaggon -Industrial wood wagon = Holztransportwaggon
\ No newline at end of file diff --git a/advtrains/advtrains_train_industrial/models/advtrains_engine_industrial.b3d b/advtrains/advtrains_train_industrial/models/advtrains_engine_industrial.b3d Binary files differdeleted file mode 100644 index f1ea485..0000000 --- a/advtrains/advtrains_train_industrial/models/advtrains_engine_industrial.b3d +++ /dev/null diff --git a/advtrains/advtrains_train_industrial/models/advtrains_wagon_tank.b3d b/advtrains/advtrains_train_industrial/models/advtrains_wagon_tank.b3d Binary files differdeleted file mode 100644 index af2604b..0000000 --- a/advtrains/advtrains_train_industrial/models/advtrains_wagon_tank.b3d +++ /dev/null diff --git a/advtrains/advtrains_train_industrial/models/advtrains_wagon_wood.b3d b/advtrains/advtrains_train_industrial/models/advtrains_wagon_wood.b3d Binary files differdeleted file mode 100644 index 0e7fb4b..0000000 --- a/advtrains/advtrains_train_industrial/models/advtrains_wagon_wood.b3d +++ /dev/null diff --git a/advtrains/advtrains_train_industrial/textures/advtrains_engine_industrial.png b/advtrains/advtrains_train_industrial/textures/advtrains_engine_industrial.png Binary files differdeleted file mode 100644 index 38a872f..0000000 --- a/advtrains/advtrains_train_industrial/textures/advtrains_engine_industrial.png +++ /dev/null diff --git a/advtrains/advtrains_train_industrial/textures/advtrains_engine_industrial_inv.png b/advtrains/advtrains_train_industrial/textures/advtrains_engine_industrial_inv.png Binary files differdeleted file mode 100644 index be4e80f..0000000 --- a/advtrains/advtrains_train_industrial/textures/advtrains_engine_industrial_inv.png +++ /dev/null diff --git a/advtrains/advtrains_train_industrial/textures/advtrains_wagon_tank.png b/advtrains/advtrains_train_industrial/textures/advtrains_wagon_tank.png Binary files differdeleted file mode 100644 index 79b1316..0000000 --- a/advtrains/advtrains_train_industrial/textures/advtrains_wagon_tank.png +++ /dev/null diff --git a/advtrains/advtrains_train_industrial/textures/advtrains_wagon_tank_inv.png b/advtrains/advtrains_train_industrial/textures/advtrains_wagon_tank_inv.png Binary files differdeleted file mode 100644 index 03401be..0000000 --- a/advtrains/advtrains_train_industrial/textures/advtrains_wagon_tank_inv.png +++ /dev/null diff --git a/advtrains/advtrains_train_industrial/textures/advtrains_wagon_wood.png b/advtrains/advtrains_train_industrial/textures/advtrains_wagon_wood.png Binary files differdeleted file mode 100644 index acc6f72..0000000 --- a/advtrains/advtrains_train_industrial/textures/advtrains_wagon_wood.png +++ /dev/null diff --git a/advtrains/advtrains_train_industrial/textures/advtrains_wagon_wood_inv.png b/advtrains/advtrains_train_industrial/textures/advtrains_wagon_wood_inv.png Binary files differdeleted file mode 100644 index 87109dd..0000000 --- a/advtrains/advtrains_train_industrial/textures/advtrains_wagon_wood_inv.png +++ /dev/null diff --git a/advtrains/advtrains_train_japan/depends.txt b/advtrains/advtrains_train_japan/depends.txt deleted file mode 100644 index 1fb6665..0000000 --- a/advtrains/advtrains_train_japan/depends.txt +++ /dev/null @@ -1,2 +0,0 @@ -advtrains -intllib?
\ No newline at end of file diff --git a/advtrains/advtrains_train_japan/init.lua b/advtrains/advtrains_train_japan/init.lua deleted file mode 100644 index 8816db3..0000000 --- a/advtrains/advtrains_train_japan/init.lua +++ /dev/null @@ -1,144 +0,0 @@ -local S -if minetest.get_modpath("intllib") then - S = intllib.Getter() -else - S = function(s,a,...)a={a,...}return s:gsub("@(%d+)",function(n)return a[tonumber(n)]end)end -end - -advtrains.register_wagon("engine_japan", { - mesh="advtrains_engine_japan.b3d", - textures = {"advtrains_engine_japan.png"}, - drives_on={default=true}, - max_speed=20, - seats = { - { - name=S("Driver stand"), - attach_offset={x=0, y=8, z=13}, - view_offset={x=0, y=0, z=0}, - driving_ctrl_access=true, - group="dstand", - }, - { - name="1", - attach_offset={x=-4, y=8, z=0}, - view_offset={x=0, y=0, z=0}, - group="pass", - }, - { - name="2", - attach_offset={x=4, y=8, z=0}, - view_offset={x=0, y=0, z=0}, - group="pass", - }, - { - name="3", - attach_offset={x=-4, y=8, z=-8}, - view_offset={x=0, y=0, z=0}, - group="pass", - }, - { - name="4", - attach_offset={x=4, y=8, z=-8}, - view_offset={x=0, y=0, z=0}, - group="pass", - }, - }, - seat_groups = { - dstand={ - name = "Driver Stand", - access_to = {"pass"}, - require_doors_open=true, - }, - pass={ - name = "Passenger area", - access_to = {"dstand"}, - require_doors_open=true, - }, - }, - assign_to_seat_group = {"dstand", "pass"}, - doors={ - open={ - [-1]={frames={x=0, y=20}, time=1}, - [1]={frames={x=40, y=60}, time=1} - }, - close={ - [-1]={frames={x=20, y=40}, time=1}, - [1]={frames={x=60, y=80}, time=1} - } - }, - door_entry={-1}, - visual_size = {x=1, y=1}, - wagon_span=2.5, - is_locomotive=true, - collisionbox = {-1.0,-0.5,-1.0, 1.0,2.5,1.0}, - drops={"default:steelblock 4"}, -}, S("Japanese Train Engine"), "advtrains_engine_japan_inv.png") - -advtrains.register_wagon("wagon_japan", { - mesh="advtrains_wagon_japan.b3d", - textures = {"advtrains_wagon_japan.png"}, - drives_on={default=true}, - max_speed=20, - seats = { - { - name="1", - attach_offset={x=-4, y=8, z=8}, - view_offset={x=0, y=0, z=0}, - group="pass", - }, - { - name="2", - attach_offset={x=4, y=8, z=8}, - view_offset={x=0, y=0, z=0}, - group="pass", - }, - { - name="1a", - attach_offset={x=-4, y=8, z=0}, - view_offset={x=0, y=0, z=0}, - group="pass", - }, - { - name="2a", - attach_offset={x=4, y=8, z=0}, - view_offset={x=0, y=0, z=0}, - group="pass", - }, - { - name="3", - attach_offset={x=-4, y=8, z=-8}, - view_offset={x=0, y=0, z=0}, - group="pass", - }, - { - name="4", - attach_offset={x=4, y=8, z=-8}, - view_offset={x=0, y=0, z=0}, - group="pass", - }, - }, - seat_groups = { - pass={ - name = "Passenger area", - access_to = {}, - require_doors_open=true, - }, - }, - assign_to_seat_group = {"pass"}, - doors={ - open={ - [-1]={frames={x=0, y=20}, time=1}, - [1]={frames={x=40, y=60}, time=1} - }, - close={ - [-1]={frames={x=20, y=40}, time=1}, - [1]={frames={x=60, y=80}, time=1} - } - }, - door_entry={-1, 1}, - visual_size = {x=1, y=1}, - wagon_span=2.3, - collisionbox = {-1.0,-0.5,-1.0, 1.0,2.5,1.0}, - drops={"default:steelblock 4"}, -}, S("Japanese Train Wagon"), "advtrains_wagon_japan_inv.png") - diff --git a/advtrains/advtrains_train_japan/locale/de.txt b/advtrains/advtrains_train_japan/locale/de.txt deleted file mode 100644 index 63d7a97..0000000 --- a/advtrains/advtrains_train_japan/locale/de.txt +++ /dev/null @@ -1,4 +0,0 @@ -Driver Stand = Führerstand -Japanese Train Engine = Japanische Personenzug-Lokomotive -Default Seat = Standardsitzplatz -Japanese Train Wagon = Japanischer Personenzug-Passagierwaggon
\ No newline at end of file diff --git a/advtrains/advtrains_train_japan/models/advtrains_engine_japan.b3d b/advtrains/advtrains_train_japan/models/advtrains_engine_japan.b3d Binary files differdeleted file mode 100644 index 218d965..0000000 --- a/advtrains/advtrains_train_japan/models/advtrains_engine_japan.b3d +++ /dev/null diff --git a/advtrains/advtrains_train_japan/models/advtrains_wagon_japan.b3d b/advtrains/advtrains_train_japan/models/advtrains_wagon_japan.b3d Binary files differdeleted file mode 100644 index e6263dd..0000000 --- a/advtrains/advtrains_train_japan/models/advtrains_wagon_japan.b3d +++ /dev/null diff --git a/advtrains/advtrains_train_japan/textures/advtrains_engine_japan.png b/advtrains/advtrains_train_japan/textures/advtrains_engine_japan.png Binary files differdeleted file mode 100644 index 2bc5fb8..0000000 --- a/advtrains/advtrains_train_japan/textures/advtrains_engine_japan.png +++ /dev/null diff --git a/advtrains/advtrains_train_japan/textures/advtrains_engine_japan_inv.png b/advtrains/advtrains_train_japan/textures/advtrains_engine_japan_inv.png Binary files differdeleted file mode 100644 index 6af0636..0000000 --- a/advtrains/advtrains_train_japan/textures/advtrains_engine_japan_inv.png +++ /dev/null diff --git a/advtrains/advtrains_train_japan/textures/advtrains_wagon_japan.png b/advtrains/advtrains_train_japan/textures/advtrains_wagon_japan.png Binary files differdeleted file mode 100644 index c9cddc8..0000000 --- a/advtrains/advtrains_train_japan/textures/advtrains_wagon_japan.png +++ /dev/null diff --git a/advtrains/advtrains_train_japan/textures/advtrains_wagon_japan_inv.png b/advtrains/advtrains_train_japan/textures/advtrains_wagon_japan_inv.png Binary files differdeleted file mode 100644 index 3e6357c..0000000 --- a/advtrains/advtrains_train_japan/textures/advtrains_wagon_japan_inv.png +++ /dev/null diff --git a/advtrains/advtrains_train_steam/depends.txt b/advtrains/advtrains_train_steam/depends.txt deleted file mode 100755 index 1fb6665..0000000 --- a/advtrains/advtrains_train_steam/depends.txt +++ /dev/null @@ -1,2 +0,0 @@ -advtrains -intllib?
\ No newline at end of file diff --git a/advtrains/advtrains_train_steam/init.lua b/advtrains/advtrains_train_steam/init.lua deleted file mode 100755 index 315104a..0000000 --- a/advtrains/advtrains_train_steam/init.lua +++ /dev/null @@ -1,245 +0,0 @@ -local S -if minetest.get_modpath("intllib") then - S = intllib.Getter() -else - S = function(s,a,...)a={a,...}return s:gsub("@(%d+)",function(n)return a[tonumber(n)]end)end -end - -advtrains.register_wagon("newlocomotive", { - mesh="advtrains_engine_steam.b3d", - textures = {"advtrains_engine_steam.png"}, - is_locomotive=true, - drives_on={default=true}, - max_speed=10, - seats = { - { - name=S("Driver Stand (left)"), - attach_offset={x=-5, y=10, z=-10}, - view_offset={x=0, y=6, z=0}, - driving_ctrl_access=true, - group = "dstand", - }, - { - name=S("Driver Stand (right)"), - attach_offset={x=5, y=10, z=-10}, - view_offset={x=0, y=6, z=0}, - driving_ctrl_access=true, - group = "dstand", - }, - }, - seat_groups = { - dstand={ - name = "Driver Stand", - access_to = {}, - }, - }, - assign_to_seat_group = {"dstand"}, - visual_size = {x=1, y=1}, - wagon_span=2.3, - collisionbox = {-1.0,-0.5,-1.0, 1.0,2.5,1.0}, - update_animation=function(self, velocity) - if self.old_anim_velocity~=advtrains.abs_ceil(velocity) then - self.object:set_animation({x=1,y=80}, advtrains.abs_ceil(velocity)*15, 0, true) - self.old_anim_velocity=advtrains.abs_ceil(velocity) - end - end, - custom_on_activate = function(self, staticdata_table, dtime_s) - minetest.add_particlespawner({ - amount = 10, - time = 0, - -- ^ If time is 0 has infinite lifespan and spawns the amount on a per-second base - minpos = {x=0, y=2, z=1.2}, - maxpos = {x=0, y=2, z=1.2}, - minvel = {x=-0.2, y=1.8, z=-0.2}, - maxvel = {x=0.2, y=2, z=0.2}, - minacc = {x=0, y=-0.1, z=0}, - maxacc = {x=0, y=-0.3, z=0}, - minexptime = 2, - maxexptime = 4, - minsize = 1, - maxsize = 5, - -- ^ The particle's properties are random values in between the bounds: - -- ^ minpos/maxpos, minvel/maxvel (velocity), minacc/maxacc (acceleration), - -- ^ minsize/maxsize, minexptime/maxexptime (expirationtime) - collisiondetection = true, - -- ^ collisiondetection: if true uses collision detection - vertical = false, - -- ^ vertical: if true faces player using y axis only - texture = "smoke_puff.png", - -- ^ Uses texture (string) - attached = self.object, - }) - end, - drops={"default:steelblock 4"}, -}, S("Steam Engine"), "advtrains_engine_steam_inv.png") - -advtrains.register_wagon("detailed_steam_engine", { - mesh="advtrains_detailed_steam_engine.b3d", - textures = {"advtrains_detailed_steam_engine.png"}, - is_locomotive=true, - drives_on={default=true}, - max_speed=10, - seats = { - { - name=S("Driver Stand (left)"), - attach_offset={x=-5, y=10, z=-10}, - view_offset={x=0, y=6, z=0}, - driving_ctrl_access=true, - group = "dstand", - }, - { - name=S("Driver Stand (right)"), - attach_offset={x=5, y=10, z=-10}, - view_offset={x=0, y=6, z=0}, - driving_ctrl_access=true, - group = "dstand", - }, - }, - seat_groups = { - dstand={ - name = "Driver Stand", - access_to = {}, - }, - }, - assign_to_seat_group = {"dstand"}, - visual_size = {x=1, y=1}, - wagon_span=2.05, - collisionbox = {-1.0,-0.5,-1.0, 1.0,2.5,1.0}, - update_animation=function(self, velocity) - if self.old_anim_velocity~=advtrains.abs_ceil(velocity) then - self.object:set_animation({x=1,y=80}, advtrains.abs_ceil(velocity)*15, 0, true) - self.old_anim_velocity=advtrains.abs_ceil(velocity) - end - end, - custom_on_activate = function(self, staticdata_table, dtime_s) - minetest.add_particlespawner({ - amount = 10, - time = 0, - -- ^ If time is 0 has infinite lifespan and spawns the amount on a per-second base - minpos = {x=0, y=2.3, z=1.45}, - maxpos = {x=0, y=2.3, z=1.4}, - minvel = {x=-0.2, y=1.8, z=-0.2}, - maxvel = {x=0.2, y=2, z=0.2}, - minacc = {x=0, y=-0.1, z=0}, - maxacc = {x=0, y=-0.3, z=0}, - minexptime = 2, - maxexptime = 4, - minsize = 1, - maxsize = 5, - -- ^ The particle's properties are random values in between the bounds: - -- ^ minpos/maxpos, minvel/maxvel (velocity), minacc/maxacc (acceleration), - -- ^ minsize/maxsize, minexptime/maxexptime (expirationtime) - collisiondetection = true, - -- ^ collisiondetection: if true uses collision detection - vertical = false, - -- ^ vertical: if true faces player using y axis only - texture = "smoke_puff.png", - -- ^ Uses texture (string) - attached = self.object, - }) - end, - drops={"default:steelblock 4"}, -}, S("Detailed Steam Engine"), "advtrains_detailed_engine_steam_inv.png") - -advtrains.register_wagon("wagon_default", { - mesh="advtrains_passenger_wagon.b3d", - textures = {"advtrains_wagon.png"}, - drives_on={default=true}, - max_speed=10, - seats = { - { - name="1", - attach_offset={x=2, y=6, z=8}, - view_offset={x=0, y=-4, z=0}, - group="pass", - }, - { - name="2", - attach_offset={x=-1, y=6, z=8}, - view_offset={x=0, y=-4, z=0}, - group="pass", - }, - { - name="3", - attach_offset={x=-4, y=8, z=-8}, - view_offset={x=0, y=0, z=0}, - group="pass", - }, - { - name="4", - attach_offset={x=4, y=8, z=-8}, - view_offset={x=0, y=0, z=0}, - group="pass", - }, - }, - seat_groups = { - pass={ - name = "Passenger area", - access_to = {}, - }, - }, - - assign_to_seat_group = {"pass"}, - visual_size = {x=1, y=1}, - wagon_span=2.634, - collisionbox = {-1.0,-0.5,-1.0, 1.0,2.5,1.0}, - drops={"default:steelblock 4"}, -}, S("Passenger Wagon"), "advtrains_wagon_inv.png") - - -advtrains.register_wagon("wagon_box", { - mesh="advtrains_wagon_box.b3d", - textures = {"advtrains_wagon_box.png"}, - drives_on={default=true}, - max_speed=10, - seats = {}, - visual_size = {x=1, y=1}, - wagon_span=2, - collisionbox = {-1.0,-0.5,-1.0, 1.0,2.5,1.0}, - drops={"default:steelblock 4"}, - has_inventory = true, - get_inventory_formspec = function(self) - return "size[8,11]".. - "list[detached:advtrains_wgn_"..self.unique_id..";box;0,0;8,3;]".. - "list[current_player;main;0,5;8,4;]".. - "listring[]" - end, - inventory_list_sizes = { - box=8*3, - }, -}, S("Box Wagon"), "advtrains_wagon_box_inv.png") - -minetest.register_craft({ - output = 'advtrains:newlocomotive', - recipe = { - {'', '', 'advtrains:chimney'}, - {'advtrains:driver_cab', 'dye:black', 'advtrains:boiler'}, - {'advtrains:wheel', 'advtrains:wheel', 'advtrains:wheel'}, - }, -}) - -minetest.register_craft({ - output = 'advtrains:detailed_steam_engine', - recipe = { - {'', '', 'advtrains:chimney'}, - {'advtrains:driver_cab', 'dye:green', 'advtrains:boiler'}, - {'advtrains:wheel', 'advtrains:wheel', 'advtrains:wheel'}, - }, -}) - -minetest.register_craft({ - output = 'advtrains:wagon_default', - recipe = { - {'default:steelblock', 'default:steelblock', 'default:steelblock'}, - {'default:glass', 'dye:dark_green', 'default:glass'}, - {'advtrains:wheel', 'advtrains:wheel', 'advtrains:wheel'}, - }, -}) -minetest.register_craft({ - output = 'advtrains:wagon_box', - recipe = { - {'group:wood', 'group:wood', 'group:wood'}, - {'group:wood', 'default:chest', 'group:wood'}, - {'advtrains:wheel', '', 'advtrains:wheel'}, - }, -}) diff --git a/advtrains/advtrains_train_steam/locale/de.txt b/advtrains/advtrains_train_steam/locale/de.txt deleted file mode 100755 index ac06e20..0000000 --- a/advtrains/advtrains_train_steam/locale/de.txt +++ /dev/null @@ -1,6 +0,0 @@ -Driver Stand (left) = Führerstand Links -Driver Stand (right) = Führerstand Rechts -Steam Engine = Dampflokomotive -Detailed Steam Engine = detaillierte Dampflokomotive -Passenger Wagon = Passagierwaggon -Box wagon = Güterwaggon
\ No newline at end of file diff --git a/advtrains/advtrains_train_steam/models/advtrains_detailed_steam_engine.b3d b/advtrains/advtrains_train_steam/models/advtrains_detailed_steam_engine.b3d Binary files differdeleted file mode 100755 index 7418d8a..0000000 --- a/advtrains/advtrains_train_steam/models/advtrains_detailed_steam_engine.b3d +++ /dev/null diff --git a/advtrains/advtrains_train_steam/models/advtrains_engine_steam.b3d b/advtrains/advtrains_train_steam/models/advtrains_engine_steam.b3d Binary files differdeleted file mode 100755 index 6a92f57..0000000 --- a/advtrains/advtrains_train_steam/models/advtrains_engine_steam.b3d +++ /dev/null diff --git a/advtrains/advtrains_train_steam/models/advtrains_passenger_wagon.b3d b/advtrains/advtrains_train_steam/models/advtrains_passenger_wagon.b3d Binary files differdeleted file mode 100644 index 2bc01b2..0000000 --- a/advtrains/advtrains_train_steam/models/advtrains_passenger_wagon.b3d +++ /dev/null diff --git a/advtrains/advtrains_train_steam/models/advtrains_wagon.b3d b/advtrains/advtrains_train_steam/models/advtrains_wagon.b3d Binary files differdeleted file mode 100644 index 5c8214c..0000000 --- a/advtrains/advtrains_train_steam/models/advtrains_wagon.b3d +++ /dev/null diff --git a/advtrains/advtrains_train_steam/models/advtrains_wagon_box.b3d b/advtrains/advtrains_train_steam/models/advtrains_wagon_box.b3d Binary files differdeleted file mode 100755 index 914975f..0000000 --- a/advtrains/advtrains_train_steam/models/advtrains_wagon_box.b3d +++ /dev/null diff --git a/advtrains/advtrains_train_steam/screenshot.png b/advtrains/advtrains_train_steam/screenshot.png Binary files differdeleted file mode 100644 index 089da73..0000000 --- a/advtrains/advtrains_train_steam/screenshot.png +++ /dev/null diff --git a/advtrains/advtrains_train_steam/textures/advtrains_detailed_engine_steam_inv.png b/advtrains/advtrains_train_steam/textures/advtrains_detailed_engine_steam_inv.png Binary files differdeleted file mode 100755 index 51adb5a..0000000 --- a/advtrains/advtrains_train_steam/textures/advtrains_detailed_engine_steam_inv.png +++ /dev/null diff --git a/advtrains/advtrains_train_steam/textures/advtrains_detailed_steam_engine.png b/advtrains/advtrains_train_steam/textures/advtrains_detailed_steam_engine.png Binary files differdeleted file mode 100755 index eab4dc8..0000000 --- a/advtrains/advtrains_train_steam/textures/advtrains_detailed_steam_engine.png +++ /dev/null diff --git a/advtrains/advtrains_train_steam/textures/advtrains_engine_steam.png b/advtrains/advtrains_train_steam/textures/advtrains_engine_steam.png Binary files differdeleted file mode 100755 index 4b27e77..0000000 --- a/advtrains/advtrains_train_steam/textures/advtrains_engine_steam.png +++ /dev/null diff --git a/advtrains/advtrains_train_steam/textures/advtrains_engine_steam_inv.png b/advtrains/advtrains_train_steam/textures/advtrains_engine_steam_inv.png Binary files differdeleted file mode 100755 index 8d3fafb..0000000 --- a/advtrains/advtrains_train_steam/textures/advtrains_engine_steam_inv.png +++ /dev/null diff --git a/advtrains/advtrains_train_steam/textures/advtrains_wagon.png b/advtrains/advtrains_train_steam/textures/advtrains_wagon.png Binary files differdeleted file mode 100644 index bd34e68..0000000 --- a/advtrains/advtrains_train_steam/textures/advtrains_wagon.png +++ /dev/null diff --git a/advtrains/advtrains_train_steam/textures/advtrains_wagon_box.png b/advtrains/advtrains_train_steam/textures/advtrains_wagon_box.png Binary files differdeleted file mode 100755 index 8cdd440..0000000 --- a/advtrains/advtrains_train_steam/textures/advtrains_wagon_box.png +++ /dev/null diff --git a/advtrains/advtrains_train_steam/textures/advtrains_wagon_box_inv.png b/advtrains/advtrains_train_steam/textures/advtrains_wagon_box_inv.png Binary files differdeleted file mode 100755 index 480f245..0000000 --- a/advtrains/advtrains_train_steam/textures/advtrains_wagon_box_inv.png +++ /dev/null diff --git a/advtrains/advtrains_train_steam/textures/advtrains_wagon_inv.png b/advtrains/advtrains_train_steam/textures/advtrains_wagon_inv.png Binary files differdeleted file mode 100755 index 65f7984..0000000 --- a/advtrains/advtrains_train_steam/textures/advtrains_wagon_inv.png +++ /dev/null diff --git a/advtrains/advtrains_train_subway/depends.txt b/advtrains/advtrains_train_subway/depends.txt deleted file mode 100644 index 1fb6665..0000000 --- a/advtrains/advtrains_train_subway/depends.txt +++ /dev/null @@ -1,2 +0,0 @@ -advtrains -intllib?
\ No newline at end of file diff --git a/advtrains/advtrains_train_subway/init.lua b/advtrains/advtrains_train_subway/init.lua deleted file mode 100644 index 8864e92..0000000 --- a/advtrains/advtrains_train_subway/init.lua +++ /dev/null @@ -1,90 +0,0 @@ -local S -if minetest.get_modpath("intllib") then - S = intllib.Getter() -else - S = function(s,a,...)a={a,...}return s:gsub("@(%d+)",function(n)return a[tonumber(n)]end)end -end - -advtrains.register_wagon("subway_wagon", { - mesh="advtrains_subway_wagon.b3d", - textures = {"advtrains_subway_wagon.png"}, - drives_on={default=true}, - max_speed=15, - seats = { - { - name="Driver stand", - attach_offset={x=0, y=10, z=0}, - view_offset={x=0, y=0, z=0}, - driving_ctrl_access=true, - group="dstand", - }, - { - name="1", - attach_offset={x=-4, y=8, z=8}, - view_offset={x=0, y=0, z=0}, - group="pass", - }, - { - name="2", - attach_offset={x=4, y=8, z=8}, - view_offset={x=0, y=0, z=0}, - group="pass", - }, - { - name="3", - attach_offset={x=-4, y=8, z=-8}, - view_offset={x=0, y=0, z=0}, - group="pass", - }, - { - name="4", - attach_offset={x=4, y=8, z=-8}, - view_offset={x=0, y=0, z=0}, - group="pass", - }, - }, - seat_groups = { - dstand={ - name = "Driver Stand", - access_to = {"pass"}, - require_doors_open=true, - }, - pass={ - name = "Passenger area", - access_to = {"dstand"}, - require_doors_open=true, - }, - }, - assign_to_seat_group = {"pass","dstand"}, - doors={ - open={ - [-1]={frames={x=0, y=20}, time=1}, - [1]={frames={x=40, y=60}, time=1} - }, - close={ - [-1]={frames={x=20, y=40}, time=1}, - [1]={frames={x=60, y=80}, time=1} - } - }, - door_entry={-1, 1}, - visual_size = {x=1, y=1}, - wagon_span=2, - --collisionbox = {-1.0,-0.5,-1.8, 1.0,2.5,1.8}, - collisionbox = {-1.0,-0.5,-1.0, 1.0,2.5,1.0}, - is_locomotive=true, - drops={"default:steelblock 4"}, - --custom_on_activate = function(self, dtime_s) - -- atprint("subway custom_on_activate") - -- self.object:set_animation({x=1,y=80}, 15, 0, true) - --end, -}, S("Subway Passenger Wagon"), "advtrains_subway_wagon_inv.png") - ---wagons -minetest.register_craft({ - output = 'advtrains:subway_wagon', - recipe = { - {'default:steelblock', 'default:steelblock', 'default:steelblock'}, - {'default:steelblock', 'dye:yellow', 'default:steelblock'}, - {'default:steelblock', 'default:steelblock', 'default:steelblock'}, - }, -}) diff --git a/advtrains/advtrains_train_subway/locale/de.txt b/advtrains/advtrains_train_subway/locale/de.txt deleted file mode 100644 index 4aceebd..0000000 --- a/advtrains/advtrains_train_subway/locale/de.txt +++ /dev/null @@ -1,2 +0,0 @@ -Default Seat (driver stand) = Standardsitzplatz (Führerstand) -Subway Passenger Wagon = U-Bahn-Waggon
\ No newline at end of file diff --git a/advtrains/advtrains_train_subway/models/advtrains_subway_wagon.b3d b/advtrains/advtrains_train_subway/models/advtrains_subway_wagon.b3d Binary files differdeleted file mode 100644 index cbd0f8e..0000000 --- a/advtrains/advtrains_train_subway/models/advtrains_subway_wagon.b3d +++ /dev/null diff --git a/advtrains/advtrains_train_subway/textures/advtrains_subway_wagon.png b/advtrains/advtrains_train_subway/textures/advtrains_subway_wagon.png Binary files differdeleted file mode 100644 index 079d797..0000000 --- a/advtrains/advtrains_train_subway/textures/advtrains_subway_wagon.png +++ /dev/null diff --git a/advtrains/advtrains_train_subway/textures/advtrains_subway_wagon_inv.png b/advtrains/advtrains_train_subway/textures/advtrains_subway_wagon_inv.png Binary files differdeleted file mode 100644 index 1d0e809..0000000 --- a/advtrains/advtrains_train_subway/textures/advtrains_subway_wagon_inv.png +++ /dev/null diff --git a/advtrains/advtrains/api_doc.txt b/advtrains/api_doc.txt index 20f285f..20f285f 100644 --- a/advtrains/advtrains/api_doc.txt +++ b/advtrains/api_doc.txt diff --git a/advtrains/advtrains/atc.lua b/advtrains/atc.lua index 5f1f64d..5f1f64d 100644 --- a/advtrains/advtrains/atc.lua +++ b/advtrains/atc.lua diff --git a/advtrains/atc_command.txt b/advtrains/atc_command.txt deleted file mode 100644 index 3df60c8..0000000 --- a/advtrains/atc_command.txt +++ /dev/null @@ -1,83 +0,0 @@ -ATC Command Syntax - -A train runs the current ATC command once it receives it, including delayed instructions. If the train receives a new command, the current command is discarded. -Spaces can be inserted into commands as needed and are ignored. - -# simple commands: - -S<[0-9]+ speed or 'M'> -Set target speed of train to <speed>. Accelerates if slower, rolls if faster. 'M' means maximum speed. -Execution of command continues immediately. - -B<[0-9]+ speed> -Brake until speed is reached. If faster, apply brakes, if slower, do nothing. -Execution of command continues immediately. - -Examples: -SM : accelerate to maximum speed -S0 : roll to stand -B0 : brake to stand -S0B3 or B3S0: brake to 3, then roll to stand. - -W -Wait until S and/or B commands reached the desired speed before continuing execution. - -D<[0-9]+ time> -Delay: Wait for time seconds before continuing execution. - -R -Reverse: change movement direction of train. ONLY WORKS WHEN TRAIN STANDS, else no-op. -Use B0WR to definitely change direction. - -Examples: -B0 W R D10 SM -Subway train stopping in dead end station and returning in opposite direction - -OL -Open left doors -OR -Open right doors -OC -Close Doors -All door commands are relative to the arrow direction, so if a train drives to opposite arrow direction, L will open its right doors from driver perspective. -Execution continues immediately, there is no way to wait for all doors to be opened/closed. - -Example: -B0 W OL D10 OC D1 SM -Subway train: stop in station and open doors, depart after 10 seconds. - -# conditional statements: - -I<condition><code>; -Execute code only if condition applies -I<condition><code1>E<code2>; -Execute code1 only if condition applies, else execute code2 - -Conditions: -+ / - -Tests the train's movement direction against the arrow on the ATC rail: M+ is true when train drives in direction of arrow. - -[</>/<=/>=][speed] -Test if train's speed is greater or smaller than the given value - -Examples: -I- B0 W R ; S8 -If the train drives in the 'wrong' direction, stop and reverse; independently accelerate to speed 8 afterwards. - -I<8 S8 ; -If the train is slower than 8, accelerate to 8. - -# ATC controller operation modes -static: Only give 1 static command. - -mesecon: Give 2 different commands depending on if the controller is mesecon-powered or not -digiline: Don't give any commands by itself. When a train passes, a digiline message in the form of "[+/-][speed]" is sent on the set channel (where +/- means the same as with conditions). Any digiline message sent to the controller will be interpreted as ATC command and sent to the train. -** the latter two are not yet implemented. - -# Persistence -ATC controllers that are configured as 'static' or 'mesecon' are persistent over mapblock unloads and will even command the train when the mapblock is unloaded. This is not possible with digilines since these do not work in unloaded mapchunks. - -# LUA ATC controller (in development) -The LUA ATC Controller will operate by using LUA code. All operations shown above will have a function equivalent. Additionally all LUA ATC controllers share an environment and setting signal and switch status will be possible to allow for complicated railway systems/fully automated subways a.s.o. -Also planned: -- digicompute add-on to allow computer access to the ATC environment (railway maps... ... ... ... ...) diff --git a/advtrains/advtrains/couple.lua b/advtrains/couple.lua index 7bab241..7bab241 100644 --- a/advtrains/advtrains/couple.lua +++ b/advtrains/couple.lua diff --git a/advtrains/advtrains/craft_items.lua b/advtrains/craft_items.lua index a4db385..a4db385 100644 --- a/advtrains/advtrains/craft_items.lua +++ b/advtrains/craft_items.lua diff --git a/advtrains/advtrains/crafting.lua b/advtrains/crafting.lua index 72cd6da..72cd6da 100644 --- a/advtrains/advtrains/crafting.lua +++ b/advtrains/crafting.lua diff --git a/advtrains/advtrains/debugitems.lua b/advtrains/debugitems.lua index dcc95d9..dcc95d9 100644 --- a/advtrains/advtrains/debugitems.lua +++ b/advtrains/debugitems.lua diff --git a/advtrains/advtrains/debugringbuffer.lua b/advtrains/debugringbuffer.lua index 704c0c5..704c0c5 100644 --- a/advtrains/advtrains/debugringbuffer.lua +++ b/advtrains/debugringbuffer.lua diff --git a/advtrains/advtrains/depends.txt b/advtrains/depends.txt index 1815e54..1815e54 100644 --- a/advtrains/advtrains/depends.txt +++ b/advtrains/depends.txt diff --git a/advtrains/description.txt b/advtrains/description.txt index 4fa50ae..bb13b97 100644 --- a/advtrains/description.txt +++ b/advtrains/description.txt @@ -1 +1,8 @@ -advtrains 1.3.8 +Advanced Trains v1.3.8, by orwell and contributors. Also see readme. +Good-looking, realistic trains for minetest. + +For crafting recipes, see manual.pdf + +Website: http://advtrains.bleipb.de/ +Manual: https://github.com/orwell96/advtrains/blob/master/manual.pdf +Forum : https://forum.minetest.net/viewtopic.php?f=11&t=14726 diff --git a/advtrains/advtrains/digtron.lua b/advtrains/digtron.lua index 7105a54..7105a54 100644 --- a/advtrains/advtrains/digtron.lua +++ b/advtrains/digtron.lua diff --git a/advtrains/advtrains/helpers.lua b/advtrains/helpers.lua index df2d9a8..df2d9a8 100644 --- a/advtrains/advtrains/helpers.lua +++ b/advtrains/helpers.lua diff --git a/advtrains/advtrains/init.lua b/advtrains/init.lua index 301ff89..301ff89 100644 --- a/advtrains/advtrains/init.lua +++ b/advtrains/init.lua diff --git a/advtrains/license.txt b/advtrains/license.txt deleted file mode 100644 index 68a4b60..0000000 --- a/advtrains/license.txt +++ /dev/null @@ -1,142 +0,0 @@ -GNU LESSER GENERAL PUBLIC LICENSE - -Version 2.1, February 1999 - -Copyright (C) 1991, 1999 Free Software Foundation, Inc. -51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -Everyone is permitted to copy and distribute verbatim copies -of this license document, but changing it is not allowed. - -[This is the first released version of the Lesser GPL. It also counts - as the successor of the GNU Library Public License, version 2, hence - the version number 2.1.] - -Preamble - -The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public Licenses are intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. - -This license, the Lesser General Public License, applies to some specially designated software packages--typically libraries--of the Free Software Foundation and other authors who decide to use it. You can use it too, but we suggest you first think carefully about whether this license or the ordinary General Public License is the better strategy to use in any particular case, based on the explanations below. - -When we speak of free software, we are referring to freedom of use, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish); that you receive source code or can get it if you want it; that you can change the software and use pieces of it in new free programs; and that you are informed that you can do these things. - -To protect your rights, we need to make restrictions that forbid distributors to deny you these rights or to ask you to surrender these rights. These restrictions translate to certain responsibilities for you if you distribute copies of the library or if you modify it. - -For example, if you distribute copies of the library, whether gratis or for a fee, you must give the recipients all the rights that we gave you. You must make sure that they, too, receive or can get the source code. If you link other code with the library, you must provide complete object files to the recipients, so that they can relink them with the library after making changes to the library and recompiling it. And you must show them these terms so they know their rights. - -We protect your rights with a two-step method: (1) we copyright the library, and (2) we offer you this license, which gives you legal permission to copy, distribute and/or modify the library. - -To protect each distributor, we want to make it very clear that there is no warranty for the free library. Also, if the library is modified by someone else and passed on, the recipients should know that what they have is not the original version, so that the original author's reputation will not be affected by problems that might be introduced by others. - -Finally, software patents pose a constant threat to the existence of any free program. We wish to make sure that a company cannot effectively restrict the users of a free program by obtaining a restrictive license from a patent holder. Therefore, we insist that any patent license obtained for a version of the library must be consistent with the full freedom of use specified in this license. - -Most GNU software, including some libraries, is covered by the ordinary GNU General Public License. This license, the GNU Lesser General Public License, applies to certain designated libraries, and is quite different from the ordinary General Public License. We use this license for certain libraries in order to permit linking those libraries into non-free programs. - -When a program is linked with a library, whether statically or using a shared library, the combination of the two is legally speaking a combined work, a derivative of the original library. The ordinary General Public License therefore permits such linking only if the entire combination fits its criteria of freedom. The Lesser General Public License permits more lax criteria for linking other code with the library. - -We call this license the "Lesser" General Public License because it does Less to protect the user's freedom than the ordinary General Public License. It also provides other free software developers Less of an advantage over competing non-free programs. These disadvantages are the reason we use the ordinary General Public License for many libraries. However, the Lesser license provides advantages in certain special circumstances. - -For example, on rare occasions, there may be a special need to encourage the widest possible use of a certain library, so that it becomes a de-facto standard. To achieve this, non-free programs must be allowed to use the library. A more frequent case is that a free library does the same job as widely used non-free libraries. In this case, there is little to gain by limiting the free library to free software only, so we use the Lesser General Public License. - -In other cases, permission to use a particular library in non-free programs enables a greater number of people to use a large body of free software. For example, permission to use the GNU C Library in non-free programs enables many more people to use the whole GNU operating system, as well as its variant, the GNU/Linux operating system. - -Although the Lesser General Public License is Less protective of the users' freedom, it does ensure that the user of a program that is linked with the Library has the freedom and the wherewithal to run that program using a modified version of the Library. - -The precise terms and conditions for copying, distribution and modification follow. Pay close attention to the difference between a "work based on the library" and a "work that uses the library". The former contains code derived from the library, whereas the latter must be combined with the library in order to run. -TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION - -0. This License Agreement applies to any software library or other program which contains a notice placed by the copyright holder or other authorized party saying it may be distributed under the terms of this Lesser General Public License (also called "this License"). Each licensee is addressed as "you". - -A "library" means a collection of software functions and/or data prepared so as to be conveniently linked with application programs (which use some of those functions and data) to form executables. - -The "Library", below, refers to any such software library or work which has been distributed under these terms. A "work based on the Library" means either the Library or any derivative work under copyright law: that is to say, a work containing the Library or a portion of it, either verbatim or with modifications and/or translated straightforwardly into another language. (Hereinafter, translation is included without limitation in the term "modification".) - -"Source code" for a work means the preferred form of the work for making modifications to it. For a library, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the library. - -Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running a program using the Library is not restricted, and output from such a program is covered only if its contents constitute a work based on the Library (independent of the use of the Library in a tool for writing it). Whether that is true depends on what the Library does and what the program that uses the Library does. - -1. You may copy and distribute verbatim copies of the Library's complete source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and distribute a copy of this License along with the Library. - -You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. - -2. You may modify your copy or copies of the Library or any portion of it, thus forming a work based on the Library, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: - - a) The modified work must itself be a software library. - b) You must cause the files modified to carry prominent notices stating that you changed the files and the date of any change. - c) You must cause the whole of the work to be licensed at no charge to all third parties under the terms of this License. - d) If a facility in the modified Library refers to a function or a table of data to be supplied by an application program that uses the facility, other than as an argument passed when the facility is invoked, then you must make a good faith effort to ensure that, in the event an application does not supply such function or table, the facility still operates, and performs whatever part of its purpose remains meaningful. - - (For example, a function in a library to compute square roots has a purpose that is entirely well-defined independent of the application. Therefore, Subsection 2d requires that any application-supplied function or table used by this function must be optional: if the application does not supply it, the square root function must still compute square roots.) - -These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Library, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Library, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. - -Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Library. - -In addition, mere aggregation of another work not based on the Library with the Library (or with a work based on the Library) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. - -3. You may opt to apply the terms of the ordinary GNU General Public License instead of this License to a given copy of the Library. To do this, you must alter all the notices that refer to this License, so that they refer to the ordinary GNU General Public License, version 2, instead of to this License. (If a newer version than version 2 of the ordinary GNU General Public License has appeared, then you can specify that version instead if you wish.) Do not make any other change in these notices. - -Once this change is made in a given copy, it is irreversible for that copy, so the ordinary GNU General Public License applies to all subsequent copies and derivative works made from that copy. - -This option is useful when you wish to copy part of the code of the Library into a program that is not a library. - -4. You may copy and distribute the Library (or a portion or derivative of it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange. - -If distribution of object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place satisfies the requirement to distribute the source code, even though third parties are not compelled to copy the source along with the object code. - -5. A program that contains no derivative of any portion of the Library, but is designed to work with the Library by being compiled or linked with it, is called a "work that uses the Library". Such a work, in isolation, is not a derivative work of the Library, and therefore falls outside the scope of this License. - -However, linking a "work that uses the Library" with the Library creates an executable that is a derivative of the Library (because it contains portions of the Library), rather than a "work that uses the library". The executable is therefore covered by this License. Section 6 states terms for distribution of such executables. - -When a "work that uses the Library" uses material from a header file that is part of the Library, the object code for the work may be a derivative work of the Library even though the source code is not. Whether this is true is especially significant if the work can be linked without the Library, or if the work is itself a library. The threshold for this to be true is not precisely defined by law. - -If such an object file uses only numerical parameters, data structure layouts and accessors, and small macros and small inline functions (ten lines or less in length), then the use of the object file is unrestricted, regardless of whether it is legally a derivative work. (Executables containing this object code plus portions of the Library will still fall under Section 6.) - -Otherwise, if the work is a derivative of the Library, you may distribute the object code for the work under the terms of Section 6. Any executables containing that work also fall under Section 6, whether or not they are linked directly with the Library itself. - -6. As an exception to the Sections above, you may also combine or link a "work that uses the Library" with the Library to produce a work containing portions of the Library, and distribute that work under terms of your choice, provided that the terms permit modification of the work for the customer's own use and reverse engineering for debugging such modifications. - -You must give prominent notice with each copy of the work that the Library is used in it and that the Library and its use are covered by this License. You must supply a copy of this License. If the work during execution displays copyright notices, you must include the copyright notice for the Library among them, as well as a reference directing the user to the copy of this License. Also, you must do one of these things: - - a) Accompany the work with the complete corresponding machine-readable source code for the Library including whatever changes were used in the work (which must be distributed under Sections 1 and 2 above); and, if the work is an executable linked with the Library, with the complete machine-readable "work that uses the Library", as object code and/or source code, so that the user can modify the Library and then relink to produce a modified executable containing the modified Library. (It is understood that the user who changes the contents of definitions files in the Library will not necessarily be able to recompile the application to use the modified definitions.) - b) Use a suitable shared library mechanism for linking with the Library. A suitable mechanism is one that (1) uses at run time a copy of the library already present on the user's computer system, rather than copying library functions into the executable, and (2) will operate properly with a modified version of the library, if the user installs one, as long as the modified version is interface-compatible with the version that the work was made with. - c) Accompany the work with a written offer, valid for at least three years, to give the same user the materials specified in Subsection 6a, above, for a charge no more than the cost of performing this distribution. - d) If distribution of the work is made by offering access to copy from a designated place, offer equivalent access to copy the above specified materials from the same place. - e) Verify that the user has already received a copy of these materials or that you have already sent this user a copy. - -For an executable, the required form of the "work that uses the Library" must include any data and utility programs needed for reproducing the executable from it. However, as a special exception, the materials to be distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. - -It may happen that this requirement contradicts the license restrictions of other proprietary libraries that do not normally accompany the operating system. Such a contradiction means you cannot use both them and the Library together in an executable that you distribute. - -7. You may place library facilities that are a work based on the Library side-by-side in a single library together with other library facilities not covered by this License, and distribute such a combined library, provided that the separate distribution of the work based on the Library and of the other library facilities is otherwise permitted, and provided that you do these two things: - - a) Accompany the combined library with a copy of the same work based on the Library, uncombined with any other library facilities. This must be distributed under the terms of the Sections above. - b) Give prominent notice with the combined library of the fact that part of it is a work based on the Library, and explaining where to find the accompanying uncombined form of the same work. - -8. You may not copy, modify, sublicense, link with, or distribute the Library except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense, link with, or distribute the Library is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. - -9. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Library or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Library (or any work based on the Library), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Library or works based on it. - -10. Each time you redistribute the Library (or any work based on the Library), the recipient automatically receives a license from the original licensor to copy, distribute, link with or modify the Library subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties with this License. - -11. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Library at all. For example, if a patent license would not permit royalty-free redistribution of the Library by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Library. - -If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply, and the section as a whole is intended to apply in other circumstances. - -It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. - -This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. - -12. If the distribution and/or use of the Library is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Library under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. - -13. The Free Software Foundation may publish revised and/or new versions of the Lesser General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. - -Each version is given a distinguishing version number. If the Library specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Library does not specify a license version number, you may choose any version ever published by the Free Software Foundation. - -14. If you wish to incorporate parts of the Library into other free programs whose distribution conditions are incompatible with these, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. - -NO WARRANTY - -15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. - -16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. -END OF TERMS AND CONDITIONS diff --git a/advtrains/license_media.txt b/advtrains/license_media.txt deleted file mode 100644 index 888cf00..0000000 --- a/advtrains/license_media.txt +++ /dev/null @@ -1,68 +0,0 @@ -THE WORK (AS DEFINED BELOW) IS PROVIDED UNDER THE TERMS OF THIS CREATIVE COMMONS PUBLIC LICENSE ("CCPL" OR "LICENSE"). THE WORK IS PROTECTED BY COPYRIGHT AND/OR OTHER APPLICABLE LAW. ANY USE OF THE WORK OTHER THAN AS AUTHORIZED UNDER THIS LICENSE OR COPYRIGHT LAW IS PROHIBITED. - -BY EXERCISING ANY RIGHTS TO THE WORK PROVIDED HERE, YOU ACCEPT AND AGREE TO BE BOUND BY THE TERMS OF THIS LICENSE. TO THE EXTENT THIS LICENSE MAY BE CONSIDERED TO BE A CONTRACT, THE LICENSOR GRANTS YOU THE RIGHTS CONTAINED HERE IN CONSIDERATION OF YOUR ACCEPTANCE OF SUCH TERMS AND CONDITIONS. - -1. Definitions - - "Adaptation" means a work based upon the Work, or upon the Work and other pre-existing works, such as a translation, adaptation, derivative work, arrangement of music or other alterations of a literary or artistic work, or phonogram or performance and includes cinematographic adaptations or any other form in which the Work may be recast, transformed, or adapted including in any form recognizably derived from the original, except that a work that constitutes a Collection will not be considered an Adaptation for the purpose of this License. For the avoidance of doubt, where the Work is a musical work, performance or phonogram, the synchronization of the Work in timed-relation with a moving image ("synching") will be considered an Adaptation for the purpose of this License. - "Collection" means a collection of literary or artistic works, such as encyclopedias and anthologies, or performances, phonograms or broadcasts, or other works or subject matter other than works listed in Section 1(f) below, which, by reason of the selection and arrangement of their contents, constitute intellectual creations, in which the Work is included in its entirety in unmodified form along with one or more other contributions, each constituting separate and independent works in themselves, which together are assembled into a collective whole. A work that constitutes a Collection will not be considered an Adaptation (as defined below) for the purposes of this License. - "Creative Commons Compatible License" means a license that is listed at https://creativecommons.org/compatiblelicenses that has been approved by Creative Commons as being essentially equivalent to this License, including, at a minimum, because that license: (i) contains terms that have the same purpose, meaning and effect as the License Elements of this License; and, (ii) explicitly permits the relicensing of adaptations of works made available under that license under this License or a Creative Commons jurisdiction license with the same License Elements as this License. - "Distribute" means to make available to the public the original and copies of the Work or Adaptation, as appropriate, through sale or other transfer of ownership. - "License Elements" means the following high-level license attributes as selected by Licensor and indicated in the title of this License: Attribution, ShareAlike. - "Licensor" means the individual, individuals, entity or entities that offer(s) the Work under the terms of this License. - "Original Author" means, in the case of a literary or artistic work, the individual, individuals, entity or entities who created the Work or if no individual or entity can be identified, the publisher; and in addition (i) in the case of a performance the actors, singers, musicians, dancers, and other persons who act, sing, deliver, declaim, play in, interpret or otherwise perform literary or artistic works or expressions of folklore; (ii) in the case of a phonogram the producer being the person or legal entity who first fixes the sounds of a performance or other sounds; and, (iii) in the case of broadcasts, the organization that transmits the broadcast. - "Work" means the literary and/or artistic work offered under the terms of this License including without limitation any production in the literary, scientific and artistic domain, whatever may be the mode or form of its expression including digital form, such as a book, pamphlet and other writing; a lecture, address, sermon or other work of the same nature; a dramatic or dramatico-musical work; a choreographic work or entertainment in dumb show; a musical composition with or without words; a cinematographic work to which are assimilated works expressed by a process analogous to cinematography; a work of drawing, painting, architecture, sculpture, engraving or lithography; a photographic work to which are assimilated works expressed by a process analogous to photography; a work of applied art; an illustration, map, plan, sketch or three-dimensional work relative to geography, topography, architecture or science; a performance; a broadcast; a phonogram; a compilation of data to the extent it is protected as a copyrightable work; or a work performed by a variety or circus performer to the extent it is not otherwise considered a literary or artistic work. - "You" means an individual or entity exercising rights under this License who has not previously violated the terms of this License with respect to the Work, or who has received express permission from the Licensor to exercise rights under this License despite a previous violation. - "Publicly Perform" means to perform public recitations of the Work and to communicate to the public those public recitations, by any means or process, including by wire or wireless means or public digital performances; to make available to the public Works in such a way that members of the public may access these Works from a place and at a place individually chosen by them; to perform the Work to the public by any means or process and the communication to the public of the performances of the Work, including by public digital performance; to broadcast and rebroadcast the Work by any means including signs, sounds or images. - "Reproduce" means to make copies of the Work by any means including without limitation by sound or visual recordings and the right of fixation and reproducing fixations of the Work, including storage of a protected performance or phonogram in digital form or other electronic medium. - -2. Fair Dealing Rights. Nothing in this License is intended to reduce, limit, or restrict any uses free from copyright or rights arising from limitations or exceptions that are provided for in connection with the copyright protection under copyright law or other applicable laws. - -3. License Grant. Subject to the terms and conditions of this License, Licensor hereby grants You a worldwide, royalty-free, non-exclusive, perpetual (for the duration of the applicable copyright) license to exercise the rights in the Work as stated below: - - to Reproduce the Work, to incorporate the Work into one or more Collections, and to Reproduce the Work as incorporated in the Collections; - to create and Reproduce Adaptations provided that any such Adaptation, including any translation in any medium, takes reasonable steps to clearly label, demarcate or otherwise identify that changes were made to the original Work. For example, a translation could be marked "The original work was translated from English to Spanish," or a modification could indicate "The original work has been modified."; - to Distribute and Publicly Perform the Work including as incorporated in Collections; and, - to Distribute and Publicly Perform Adaptations. - - For the avoidance of doubt: - Non-waivable Compulsory License Schemes. In those jurisdictions in which the right to collect royalties through any statutory or compulsory licensing scheme cannot be waived, the Licensor reserves the exclusive right to collect such royalties for any exercise by You of the rights granted under this License; - Waivable Compulsory License Schemes. In those jurisdictions in which the right to collect royalties through any statutory or compulsory licensing scheme can be waived, the Licensor waives the exclusive right to collect such royalties for any exercise by You of the rights granted under this License; and, - Voluntary License Schemes. The Licensor waives the right to collect royalties, whether individually or, in the event that the Licensor is a member of a collecting society that administers voluntary licensing schemes, via that society, from any exercise by You of the rights granted under this License. - -The above rights may be exercised in all media and formats whether now known or hereafter devised. The above rights include the right to make such modifications as are technically necessary to exercise the rights in other media and formats. Subject to Section 8(f), all rights not expressly granted by Licensor are hereby reserved. - -4. Restrictions. The license granted in Section 3 above is expressly made subject to and limited by the following restrictions: - - You may Distribute or Publicly Perform the Work only under the terms of this License. You must include a copy of, or the Uniform Resource Identifier (URI) for, this License with every copy of the Work You Distribute or Publicly Perform. You may not offer or impose any terms on the Work that restrict the terms of this License or the ability of the recipient of the Work to exercise the rights granted to that recipient under the terms of the License. You may not sublicense the Work. You must keep intact all notices that refer to this License and to the disclaimer of warranties with every copy of the Work You Distribute or Publicly Perform. When You Distribute or Publicly Perform the Work, You may not impose any effective technological measures on the Work that restrict the ability of a recipient of the Work from You to exercise the rights granted to that recipient under the terms of the License. This Section 4(a) applies to the Work as incorporated in a Collection, but this does not require the Collection apart from the Work itself to be made subject to the terms of this License. If You create a Collection, upon notice from any Licensor You must, to the extent practicable, remove from the Collection any credit as required by Section 4(c), as requested. If You create an Adaptation, upon notice from any Licensor You must, to the extent practicable, remove from the Adaptation any credit as required by Section 4(c), as requested. - You may Distribute or Publicly Perform an Adaptation only under the terms of: (i) this License; (ii) a later version of this License with the same License Elements as this License; (iii) a Creative Commons jurisdiction license (either this or a later license version) that contains the same License Elements as this License (e.g., Attribution-ShareAlike 3.0 US)); (iv) a Creative Commons Compatible License. If you license the Adaptation under one of the licenses mentioned in (iv), you must comply with the terms of that license. If you license the Adaptation under the terms of any of the licenses mentioned in (i), (ii) or (iii) (the "Applicable License"), you must comply with the terms of the Applicable License generally and the following provisions: (I) You must include a copy of, or the URI for, the Applicable License with every copy of each Adaptation You Distribute or Publicly Perform; (II) You may not offer or impose any terms on the Adaptation that restrict the terms of the Applicable License or the ability of the recipient of the Adaptation to exercise the rights granted to that recipient under the terms of the Applicable License; (III) You must keep intact all notices that refer to the Applicable License and to the disclaimer of warranties with every copy of the Work as included in the Adaptation You Distribute or Publicly Perform; (IV) when You Distribute or Publicly Perform the Adaptation, You may not impose any effective technological measures on the Adaptation that restrict the ability of a recipient of the Adaptation from You to exercise the rights granted to that recipient under the terms of the Applicable License. This Section 4(b) applies to the Adaptation as incorporated in a Collection, but this does not require the Collection apart from the Adaptation itself to be made subject to the terms of the Applicable License. - If You Distribute, or Publicly Perform the Work or any Adaptations or Collections, You must, unless a request has been made pursuant to Section 4(a), keep intact all copyright notices for the Work and provide, reasonable to the medium or means You are utilizing: (i) the name of the Original Author (or pseudonym, if applicable) if supplied, and/or if the Original Author and/or Licensor designate another party or parties (e.g., a sponsor institute, publishing entity, journal) for attribution ("Attribution Parties") in Licensor's copyright notice, terms of service or by other reasonable means, the name of such party or parties; (ii) the title of the Work if supplied; (iii) to the extent reasonably practicable, the URI, if any, that Licensor specifies to be associated with the Work, unless such URI does not refer to the copyright notice or licensing information for the Work; and (iv) , consistent with Ssection 3(b), in the case of an Adaptation, a credit identifying the use of the Work in the Adaptation (e.g., "French translation of the Work by Original Author," or "Screenplay based on original Work by Original Author"). The credit required by this Section 4(c) may be implemented in any reasonable manner; provided, however, that in the case of a Adaptation or Collection, at a minimum such credit will appear, if a credit for all contributing authors of the Adaptation or Collection appears, then as part of these credits and in a manner at least as prominent as the credits for the other contributing authors. For the avoidance of doubt, You may only use the credit required by this Section for the purpose of attribution in the manner set out above and, by exercising Your rights under this License, You may not implicitly or explicitly assert or imply any connection with, sponsorship or endorsement by the Original Author, Licensor and/or Attribution Parties, as appropriate, of You or Your use of the Work, without the separate, express prior written permission of the Original Author, Licensor and/or Attribution Parties. - Except as otherwise agreed in writing by the Licensor or as may be otherwise permitted by applicable law, if You Reproduce, Distribute or Publicly Perform the Work either by itself or as part of any Adaptations or Collections, You must not distort, mutilate, modify or take other derogatory action in relation to the Work which would be prejudicial to the Original Author's honor or reputation. Licensor agrees that in those jurisdictions (e.g. Japan), in which any exercise of the right granted in Section 3(b) of this License (the right to make Adaptations) would be deemed to be a distortion, mutilation, modification or other derogatory action prejudicial to the Original Author's honor and reputation, the Licensor will waive or not assert, as appropriate, this Section, to the fullest extent permitted by the applicable national law, to enable You to reasonably exercise Your right under Section 3(b) of this License (right to make Adaptations) but not otherwise. - -5. Representations, Warranties and Disclaimer - -UNLESS OTHERWISE MUTUALLY AGREED TO BY THE PARTIES IN WRITING, LICENSOR OFFERS THE WORK AS-IS AND MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND CONCERNING THE WORK, EXPRESS, IMPLIED, STATUTORY OR OTHERWISE, INCLUDING, WITHOUT LIMITATION, WARRANTIES OF TITLE, MERCHANTIBILITY, FITNESS FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR THE ABSENCE OF LATENT OR OTHER DEFECTS, ACCURACY, OR THE PRESENCE OF ABSENCE OF ERRORS, WHETHER OR NOT DISCOVERABLE. SOME JURISDICTIONS DO NOT ALLOW THE EXCLUSION OF IMPLIED WARRANTIES, SO SUCH EXCLUSION MAY NOT APPLY TO YOU. - -6. Limitation on Liability. EXCEPT TO THE EXTENT REQUIRED BY APPLICABLE LAW, IN NO EVENT WILL LICENSOR BE LIABLE TO YOU ON ANY LEGAL THEORY FOR ANY SPECIAL, INCIDENTAL, CONSEQUENTIAL, PUNITIVE OR EXEMPLARY DAMAGES ARISING OUT OF THIS LICENSE OR THE USE OF THE WORK, EVEN IF LICENSOR HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. - -7. Termination - - This License and the rights granted hereunder will terminate automatically upon any breach by You of the terms of this License. Individuals or entities who have received Adaptations or Collections from You under this License, however, will not have their licenses terminated provided such individuals or entities remain in full compliance with those licenses. Sections 1, 2, 5, 6, 7, and 8 will survive any termination of this License. - Subject to the above terms and conditions, the license granted here is perpetual (for the duration of the applicable copyright in the Work). Notwithstanding the above, Licensor reserves the right to release the Work under different license terms or to stop distributing the Work at any time; provided, however that any such election will not serve to withdraw this License (or any other license that has been, or is required to be, granted under the terms of this License), and this License will continue in full force and effect unless terminated as stated above. - -8. Miscellaneous - - Each time You Distribute or Publicly Perform the Work or a Collection, the Licensor offers to the recipient a license to the Work on the same terms and conditions as the license granted to You under this License. - Each time You Distribute or Publicly Perform an Adaptation, Licensor offers to the recipient a license to the original Work on the same terms and conditions as the license granted to You under this License. - If any provision of this License is invalid or unenforceable under applicable law, it shall not affect the validity or enforceability of the remainder of the terms of this License, and without further action by the parties to this agreement, such provision shall be reformed to the minimum extent necessary to make such provision valid and enforceable. - No term or provision of this License shall be deemed waived and no breach consented to unless such waiver or consent shall be in writing and signed by the party to be charged with such waiver or consent. - This License constitutes the entire agreement between the parties with respect to the Work licensed here. There are no understandings, agreements or representations with respect to the Work not specified here. Licensor shall not be bound by any additional provisions that may appear in any communication from You. This License may not be modified without the mutual written agreement of the Licensor and You. - The rights granted under, and the subject matter referenced, in this License were drafted utilizing the terminology of the Berne Convention for the Protection of Literary and Artistic Works (as amended on September 28, 1979), the Rome Convention of 1961, the WIPO Copyright Treaty of 1996, the WIPO Performances and Phonograms Treaty of 1996 and the Universal Copyright Convention (as revised on July 24, 1971). These rights and subject matter take effect in the relevant jurisdiction in which the License terms are sought to be enforced according to the corresponding provisions of the implementation of those treaty provisions in the applicable national law. If the standard suite of rights granted under applicable copyright law includes additional rights not granted under this License, such additional rights are deemed to be included in the License; this License is not intended to restrict the license of any rights under applicable law. - - Creative Commons Notice - - Creative Commons is not a party to this License, and makes no warranty whatsoever in connection with the Work. Creative Commons will not be liable to You or any party on any legal theory for any damages whatsoever, including without limitation any general, special, incidental or consequential damages arising in connection to this license. Notwithstanding the foregoing two (2) sentences, if Creative Commons has expressly identified itself as the Licensor hereunder, it shall have all rights and obligations of Licensor. - - Except for the limited purpose of indicating to the public that the Work is licensed under the CCPL, Creative Commons does not authorize the use by either party of the trademark "Creative Commons" or any related trademark or logo of Creative Commons without the prior written consent of Creative Commons. Any permitted use will be in compliance with Creative Commons' then-current trademark usage guidelines, as may be published on its website or otherwise made available upon request from time to time. For the avoidance of doubt, this trademark restriction does not form part of the License. - - Creative Commons may be contacted at https://creativecommons.org/. diff --git a/advtrains/advtrains/loading.lua b/advtrains/loading.lua index 8ac7b00..8ac7b00 100644 --- a/advtrains/advtrains/loading.lua +++ b/advtrains/loading.lua diff --git a/advtrains/advtrains/locale/de.txt b/advtrains/locale/de.txt index fe770d8..fe770d8 100644 --- a/advtrains/advtrains/locale/de.txt +++ b/advtrains/locale/de.txt diff --git a/advtrains/manual.pdf b/advtrains/manual.pdf Binary files differdeleted file mode 100644 index 68691a2..0000000 --- a/advtrains/manual.pdf +++ /dev/null diff --git a/advtrains/advtrains/misc_nodes.lua b/advtrains/misc_nodes.lua index 37f535d..37f535d 100644 --- a/advtrains/advtrains/misc_nodes.lua +++ b/advtrains/misc_nodes.lua diff --git a/advtrains/advtrains/models/advtrains_across.obj b/advtrains/models/advtrains_across.obj index 4ebf393..4ebf393 100644 --- a/advtrains/advtrains/models/advtrains_across.obj +++ b/advtrains/models/advtrains_across.obj diff --git a/advtrains/advtrains/models/advtrains_dtrack_bumper_st.b3d b/advtrains/models/advtrains_dtrack_bumper_st.b3d Binary files differindex a6d9745..a6d9745 100644 --- a/advtrains/advtrains/models/advtrains_dtrack_bumper_st.b3d +++ b/advtrains/models/advtrains_dtrack_bumper_st.b3d diff --git a/advtrains/advtrains/models/advtrains_dtrack_bumper_st_30.b3d b/advtrains/models/advtrains_dtrack_bumper_st_30.b3d Binary files differindex 5f5b3f4..5f5b3f4 100644 --- a/advtrains/advtrains/models/advtrains_dtrack_bumper_st_30.b3d +++ b/advtrains/models/advtrains_dtrack_bumper_st_30.b3d diff --git a/advtrains/advtrains/models/advtrains_dtrack_bumper_st_45.b3d b/advtrains/models/advtrains_dtrack_bumper_st_45.b3d Binary files differindex f13ae75..f13ae75 100644 --- a/advtrains/advtrains/models/advtrains_dtrack_bumper_st_45.b3d +++ b/advtrains/models/advtrains_dtrack_bumper_st_45.b3d diff --git a/advtrains/advtrains/models/advtrains_dtrack_bumper_st_60.b3d b/advtrains/models/advtrains_dtrack_bumper_st_60.b3d Binary files differindex 59a2285..59a2285 100644 --- a/advtrains/advtrains/models/advtrains_dtrack_bumper_st_60.b3d +++ b/advtrains/models/advtrains_dtrack_bumper_st_60.b3d diff --git a/advtrains/advtrains/models/advtrains_dtrack_cr.b3d b/advtrains/models/advtrains_dtrack_cr.b3d Binary files differindex c708292..c708292 100644 --- a/advtrains/advtrains/models/advtrains_dtrack_cr.b3d +++ b/advtrains/models/advtrains_dtrack_cr.b3d diff --git a/advtrains/advtrains/models/advtrains_dtrack_cr_30.b3d b/advtrains/models/advtrains_dtrack_cr_30.b3d Binary files differindex 7ca0bda..7ca0bda 100644 --- a/advtrains/advtrains/models/advtrains_dtrack_cr_30.b3d +++ b/advtrains/models/advtrains_dtrack_cr_30.b3d diff --git a/advtrains/advtrains/models/advtrains_dtrack_cr_45.b3d b/advtrains/models/advtrains_dtrack_cr_45.b3d Binary files differindex b22ea0d..b22ea0d 100644 --- a/advtrains/advtrains/models/advtrains_dtrack_cr_45.b3d +++ b/advtrains/models/advtrains_dtrack_cr_45.b3d diff --git a/advtrains/advtrains/models/advtrains_dtrack_cr_60.b3d b/advtrains/models/advtrains_dtrack_cr_60.b3d Binary files differindex e9b16d6..e9b16d6 100644 --- a/advtrains/advtrains/models/advtrains_dtrack_cr_60.b3d +++ b/advtrains/models/advtrains_dtrack_cr_60.b3d diff --git a/advtrains/advtrains/models/advtrains_dtrack_st.b3d b/advtrains/models/advtrains_dtrack_st.b3d Binary files differindex c240416..c240416 100644 --- a/advtrains/advtrains/models/advtrains_dtrack_st.b3d +++ b/advtrains/models/advtrains_dtrack_st.b3d diff --git a/advtrains/advtrains/models/advtrains_dtrack_st_30.b3d b/advtrains/models/advtrains_dtrack_st_30.b3d Binary files differindex fd77e66..fd77e66 100644 --- a/advtrains/advtrains/models/advtrains_dtrack_st_30.b3d +++ b/advtrains/models/advtrains_dtrack_st_30.b3d diff --git a/advtrains/advtrains/models/advtrains_dtrack_st_45.b3d b/advtrains/models/advtrains_dtrack_st_45.b3d Binary files differindex af3afb1..af3afb1 100644 --- a/advtrains/advtrains/models/advtrains_dtrack_st_45.b3d +++ b/advtrains/models/advtrains_dtrack_st_45.b3d diff --git a/advtrains/advtrains/models/advtrains_dtrack_st_60.b3d b/advtrains/models/advtrains_dtrack_st_60.b3d Binary files differindex 6cb19e6..6cb19e6 100644 --- a/advtrains/advtrains/models/advtrains_dtrack_st_60.b3d +++ b/advtrains/models/advtrains_dtrack_st_60.b3d diff --git a/advtrains/advtrains/models/advtrains_dtrack_swlcr.b3d b/advtrains/models/advtrains_dtrack_swlcr.b3d Binary files differindex 8b1ac0e..8b1ac0e 100644 --- a/advtrains/advtrains/models/advtrains_dtrack_swlcr.b3d +++ b/advtrains/models/advtrains_dtrack_swlcr.b3d diff --git a/advtrains/advtrains/models/advtrains_dtrack_swlcr_30.b3d b/advtrains/models/advtrains_dtrack_swlcr_30.b3d Binary files differindex 6def7ab..6def7ab 100644 --- a/advtrains/advtrains/models/advtrains_dtrack_swlcr_30.b3d +++ b/advtrains/models/advtrains_dtrack_swlcr_30.b3d diff --git a/advtrains/advtrains/models/advtrains_dtrack_swlcr_45.b3d b/advtrains/models/advtrains_dtrack_swlcr_45.b3d Binary files differindex cc874ca..cc874ca 100644 --- a/advtrains/advtrains/models/advtrains_dtrack_swlcr_45.b3d +++ b/advtrains/models/advtrains_dtrack_swlcr_45.b3d diff --git a/advtrains/advtrains/models/advtrains_dtrack_swlcr_60.b3d b/advtrains/models/advtrains_dtrack_swlcr_60.b3d Binary files differindex 1472a00..1472a00 100644 --- a/advtrains/advtrains/models/advtrains_dtrack_swlcr_60.b3d +++ b/advtrains/models/advtrains_dtrack_swlcr_60.b3d diff --git a/advtrains/advtrains/models/advtrains_dtrack_swlst.b3d b/advtrains/models/advtrains_dtrack_swlst.b3d Binary files differindex ecdb326..ecdb326 100644 --- a/advtrains/advtrains/models/advtrains_dtrack_swlst.b3d +++ b/advtrains/models/advtrains_dtrack_swlst.b3d diff --git a/advtrains/advtrains/models/advtrains_dtrack_swlst_30.b3d b/advtrains/models/advtrains_dtrack_swlst_30.b3d Binary files differindex fd6e91d..fd6e91d 100644 --- a/advtrains/advtrains/models/advtrains_dtrack_swlst_30.b3d +++ b/advtrains/models/advtrains_dtrack_swlst_30.b3d diff --git a/advtrains/advtrains/models/advtrains_dtrack_swlst_45.b3d b/advtrains/models/advtrains_dtrack_swlst_45.b3d Binary files differindex dae694e..dae694e 100644 --- a/advtrains/advtrains/models/advtrains_dtrack_swlst_45.b3d +++ b/advtrains/models/advtrains_dtrack_swlst_45.b3d diff --git a/advtrains/advtrains/models/advtrains_dtrack_swlst_60.b3d b/advtrains/models/advtrains_dtrack_swlst_60.b3d Binary files differindex 8f2b0e2..8f2b0e2 100644 --- a/advtrains/advtrains/models/advtrains_dtrack_swlst_60.b3d +++ b/advtrains/models/advtrains_dtrack_swlst_60.b3d diff --git a/advtrains/advtrains/models/advtrains_dtrack_swrcr.b3d b/advtrains/models/advtrains_dtrack_swrcr.b3d Binary files differindex 4610826..4610826 100644 --- a/advtrains/advtrains/models/advtrains_dtrack_swrcr.b3d +++ b/advtrains/models/advtrains_dtrack_swrcr.b3d diff --git a/advtrains/advtrains/models/advtrains_dtrack_swrcr_30.b3d b/advtrains/models/advtrains_dtrack_swrcr_30.b3d Binary files differindex 71b87f3..71b87f3 100644 --- a/advtrains/advtrains/models/advtrains_dtrack_swrcr_30.b3d +++ b/advtrains/models/advtrains_dtrack_swrcr_30.b3d diff --git a/advtrains/advtrains/models/advtrains_dtrack_swrcr_45.b3d b/advtrains/models/advtrains_dtrack_swrcr_45.b3d Binary files differindex 5457972..5457972 100644 --- a/advtrains/advtrains/models/advtrains_dtrack_swrcr_45.b3d +++ b/advtrains/models/advtrains_dtrack_swrcr_45.b3d diff --git a/advtrains/advtrains/models/advtrains_dtrack_swrcr_60.b3d b/advtrains/models/advtrains_dtrack_swrcr_60.b3d Binary files differindex 167a3ff..167a3ff 100644 --- a/advtrains/advtrains/models/advtrains_dtrack_swrcr_60.b3d +++ b/advtrains/models/advtrains_dtrack_swrcr_60.b3d diff --git a/advtrains/advtrains/models/advtrains_dtrack_swrst.b3d b/advtrains/models/advtrains_dtrack_swrst.b3d Binary files differindex 69b6996..69b6996 100644 --- a/advtrains/advtrains/models/advtrains_dtrack_swrst.b3d +++ b/advtrains/models/advtrains_dtrack_swrst.b3d diff --git a/advtrains/advtrains/models/advtrains_dtrack_swrst_30.b3d b/advtrains/models/advtrains_dtrack_swrst_30.b3d Binary files differindex 19ee483..19ee483 100644 --- a/advtrains/advtrains/models/advtrains_dtrack_swrst_30.b3d +++ b/advtrains/models/advtrains_dtrack_swrst_30.b3d diff --git a/advtrains/advtrains/models/advtrains_dtrack_swrst_45.b3d b/advtrains/models/advtrains_dtrack_swrst_45.b3d Binary files differindex 70d051f..70d051f 100644 --- a/advtrains/advtrains/models/advtrains_dtrack_swrst_45.b3d +++ b/advtrains/models/advtrains_dtrack_swrst_45.b3d diff --git a/advtrains/advtrains/models/advtrains_dtrack_swrst_60.b3d b/advtrains/models/advtrains_dtrack_swrst_60.b3d Binary files differindex 69a58fb..69a58fb 100644 --- a/advtrains/advtrains/models/advtrains_dtrack_swrst_60.b3d +++ b/advtrains/models/advtrains_dtrack_swrst_60.b3d diff --git a/advtrains/advtrains/models/advtrains_dtrack_vst1.obj b/advtrains/models/advtrains_dtrack_vst1.obj index 33d9bf3..33d9bf3 100644 --- a/advtrains/advtrains/models/advtrains_dtrack_vst1.obj +++ b/advtrains/models/advtrains_dtrack_vst1.obj diff --git a/advtrains/advtrains/models/advtrains_dtrack_vst1_45.obj b/advtrains/models/advtrains_dtrack_vst1_45.obj index 8ff8343..8ff8343 100644 --- a/advtrains/advtrains/models/advtrains_dtrack_vst1_45.obj +++ b/advtrains/models/advtrains_dtrack_vst1_45.obj diff --git a/advtrains/advtrains/models/advtrains_dtrack_vst2.obj b/advtrains/models/advtrains_dtrack_vst2.obj index 444ce42..444ce42 100644 --- a/advtrains/advtrains/models/advtrains_dtrack_vst2.obj +++ b/advtrains/models/advtrains_dtrack_vst2.obj diff --git a/advtrains/advtrains/models/advtrains_dtrack_vst2_45.obj b/advtrains/models/advtrains_dtrack_vst2_45.obj index 5dc708b..5dc708b 100644 --- a/advtrains/advtrains/models/advtrains_dtrack_vst2_45.obj +++ b/advtrains/models/advtrains_dtrack_vst2_45.obj diff --git a/advtrains/advtrains/models/advtrains_dtrack_vst31.obj b/advtrains/models/advtrains_dtrack_vst31.obj index c4cb84f..c4cb84f 100644 --- a/advtrains/advtrains/models/advtrains_dtrack_vst31.obj +++ b/advtrains/models/advtrains_dtrack_vst31.obj diff --git a/advtrains/advtrains/models/advtrains_dtrack_vst32.obj b/advtrains/models/advtrains_dtrack_vst32.obj index 297d46b..297d46b 100644 --- a/advtrains/advtrains/models/advtrains_dtrack_vst32.obj +++ b/advtrains/models/advtrains_dtrack_vst32.obj diff --git a/advtrains/advtrains/models/advtrains_dtrack_vst33.obj b/advtrains/models/advtrains_dtrack_vst33.obj index 8cb5f04..8cb5f04 100644 --- a/advtrains/advtrains/models/advtrains_dtrack_vst33.obj +++ b/advtrains/models/advtrains_dtrack_vst33.obj diff --git a/advtrains/advtrains/models/advtrains_modernwagon.b3d b/advtrains/models/advtrains_modernwagon.b3d Binary files differindex aacddca..aacddca 100644 --- a/advtrains/advtrains/models/advtrains_modernwagon.b3d +++ b/advtrains/models/advtrains_modernwagon.b3d diff --git a/advtrains/advtrains/models/advtrains_retrosignal_off.b3d b/advtrains/models/advtrains_retrosignal_off.b3d Binary files differindex 3d231dd..3d231dd 100644 --- a/advtrains/advtrains/models/advtrains_retrosignal_off.b3d +++ b/advtrains/models/advtrains_retrosignal_off.b3d diff --git a/advtrains/advtrains/models/advtrains_retrosignal_off_30.b3d b/advtrains/models/advtrains_retrosignal_off_30.b3d Binary files differindex da258e1..da258e1 100644 --- a/advtrains/advtrains/models/advtrains_retrosignal_off_30.b3d +++ b/advtrains/models/advtrains_retrosignal_off_30.b3d diff --git a/advtrains/advtrains/models/advtrains_retrosignal_off_45.b3d b/advtrains/models/advtrains_retrosignal_off_45.b3d Binary files differindex 338224a..338224a 100644 --- a/advtrains/advtrains/models/advtrains_retrosignal_off_45.b3d +++ b/advtrains/models/advtrains_retrosignal_off_45.b3d diff --git a/advtrains/advtrains/models/advtrains_retrosignal_off_60.b3d b/advtrains/models/advtrains_retrosignal_off_60.b3d Binary files differindex c560ca1..c560ca1 100644 --- a/advtrains/advtrains/models/advtrains_retrosignal_off_60.b3d +++ b/advtrains/models/advtrains_retrosignal_off_60.b3d diff --git a/advtrains/advtrains/models/advtrains_retrosignal_on.b3d b/advtrains/models/advtrains_retrosignal_on.b3d Binary files differindex 3d19439..3d19439 100644 --- a/advtrains/advtrains/models/advtrains_retrosignal_on.b3d +++ b/advtrains/models/advtrains_retrosignal_on.b3d diff --git a/advtrains/advtrains/models/advtrains_retrosignal_on_30.b3d b/advtrains/models/advtrains_retrosignal_on_30.b3d Binary files differindex 98f8a92..98f8a92 100644 --- a/advtrains/advtrains/models/advtrains_retrosignal_on_30.b3d +++ b/advtrains/models/advtrains_retrosignal_on_30.b3d diff --git a/advtrains/advtrains/models/advtrains_retrosignal_on_45.b3d b/advtrains/models/advtrains_retrosignal_on_45.b3d Binary files differindex 414e121..414e121 100644 --- a/advtrains/advtrains/models/advtrains_retrosignal_on_45.b3d +++ b/advtrains/models/advtrains_retrosignal_on_45.b3d diff --git a/advtrains/advtrains/models/advtrains_retrosignal_on_60.b3d b/advtrains/models/advtrains_retrosignal_on_60.b3d Binary files differindex a51529a..a51529a 100644 --- a/advtrains/advtrains/models/advtrains_retrosignal_on_60.b3d +++ b/advtrains/models/advtrains_retrosignal_on_60.b3d diff --git a/advtrains/advtrains/models/advtrains_signal.b3d b/advtrains/models/advtrains_signal.b3d Binary files differindex 7f69560..7f69560 100644 --- a/advtrains/advtrains/models/advtrains_signal.b3d +++ b/advtrains/models/advtrains_signal.b3d diff --git a/advtrains/advtrains/models/advtrains_signal_30.b3d b/advtrains/models/advtrains_signal_30.b3d Binary files differindex 0b949a7..0b949a7 100644 --- a/advtrains/advtrains/models/advtrains_signal_30.b3d +++ b/advtrains/models/advtrains_signal_30.b3d diff --git a/advtrains/advtrains/models/advtrains_signal_45.b3d b/advtrains/models/advtrains_signal_45.b3d Binary files differindex ccaebf4..ccaebf4 100644 --- a/advtrains/advtrains/models/advtrains_signal_45.b3d +++ b/advtrains/models/advtrains_signal_45.b3d diff --git a/advtrains/advtrains/models/advtrains_signal_60.b3d b/advtrains/models/advtrains_signal_60.b3d Binary files differindex cf41e6d..cf41e6d 100644 --- a/advtrains/advtrains/models/advtrains_signal_60.b3d +++ b/advtrains/models/advtrains_signal_60.b3d diff --git a/advtrains/advtrains/models/advtrains_signal_wall_l.b3d b/advtrains/models/advtrains_signal_wall_l.b3d Binary files differindex b1bcbcf..b1bcbcf 100644 --- a/advtrains/advtrains/models/advtrains_signal_wall_l.b3d +++ b/advtrains/models/advtrains_signal_wall_l.b3d diff --git a/advtrains/advtrains/models/advtrains_signal_wall_r.b3d b/advtrains/models/advtrains_signal_wall_r.b3d Binary files differindex cf26389..cf26389 100644 --- a/advtrains/advtrains/models/advtrains_signal_wall_r.b3d +++ b/advtrains/models/advtrains_signal_wall_r.b3d diff --git a/advtrains/advtrains/models/advtrains_signal_wall_t.b3d b/advtrains/models/advtrains_signal_wall_t.b3d Binary files differindex 30e77f6..30e77f6 100644 --- a/advtrains/advtrains/models/advtrains_signal_wall_t.b3d +++ b/advtrains/models/advtrains_signal_wall_t.b3d diff --git a/advtrains/advtrains/models/advtrains_track_cr.b3d b/advtrains/models/advtrains_track_cr.b3d Binary files differindex b0f5e4b..b0f5e4b 100644 --- a/advtrains/advtrains/models/advtrains_track_cr.b3d +++ b/advtrains/models/advtrains_track_cr.b3d diff --git a/advtrains/advtrains/models/advtrains_track_st.b3d b/advtrains/models/advtrains_track_st.b3d Binary files differindex 10b5d90..10b5d90 100644 --- a/advtrains/advtrains/models/advtrains_track_st.b3d +++ b/advtrains/models/advtrains_track_st.b3d diff --git a/advtrains/advtrains/models/advtrains_track_st_45.b3d b/advtrains/models/advtrains_track_st_45.b3d Binary files differindex 32505a1..32505a1 100644 --- a/advtrains/advtrains/models/advtrains_track_st_45.b3d +++ b/advtrains/models/advtrains_track_st_45.b3d diff --git a/advtrains/advtrains/models/trackplane.b3d b/advtrains/models/trackplane.b3d Binary files differindex b4728c3..b4728c3 100644 --- a/advtrains/advtrains/models/trackplane.b3d +++ b/advtrains/models/trackplane.b3d diff --git a/advtrains/modpack.txt b/advtrains/modpack.txt deleted file mode 100644 index e69de29..0000000 --- a/advtrains/modpack.txt +++ /dev/null diff --git a/advtrains/advtrains/nodedb.lua b/advtrains/nodedb.lua index 862fd53..862fd53 100644 --- a/advtrains/advtrains/nodedb.lua +++ b/advtrains/nodedb.lua diff --git a/advtrains/readme.txt b/advtrains/readme.txt deleted file mode 100644 index eaed121..0000000 --- a/advtrains/readme.txt +++ /dev/null @@ -1,25 +0,0 @@ -
-## ADVTRAINS ## realistic trains in Minetest!
-by orwell96 and contributors(see below)
-
-For up-to-date information, visit https://forum.minetest.net/viewtopic.php?f=9&t=14726 -
-
-Manual: -If manual.pdf is not present (which is the case when you downloaded the zip file), see https://github.com/orwell96/advtrains/blob/master/manual.pdf
-
-License of code: LGPL 2.1
-License of media: CC-BY-SA 3.0
-
-Contributions:
-
-Gravel Texture : from Minetest Game
-Initial rail model/texture : DS-minetest
-Models for signals/bumpers : mbb
-Steam engine / wagon texture: mbb -Detailed Steam engine : mbb / Krokoschlange(animation) -Industrial engine/wagons : mbb -Inventory images : mbb -Small code contributions : NaruTrey / gpcf -Mod Description : hajo -If I forgot someone please punish me for that.
\ No newline at end of file diff --git a/advtrains/screenshot.png b/advtrains/screenshot.png Binary files differdeleted file mode 100644 index 089da73..0000000 --- a/advtrains/screenshot.png +++ /dev/null diff --git a/advtrains/advtrains/settingtypes.txt b/advtrains/settingtypes.txt index 60f8477..60f8477 100644 --- a/advtrains/advtrains/settingtypes.txt +++ b/advtrains/settingtypes.txt diff --git a/advtrains/advtrains/signals.lua b/advtrains/signals.lua index 5c6e484..5c6e484 100644 --- a/advtrains/advtrains/signals.lua +++ b/advtrains/signals.lua diff --git a/advtrains/advtrains/textures/advtrains_across.png b/advtrains/textures/advtrains_across.png Binary files differindex da65a61..da65a61 100755 --- a/advtrains/advtrains/textures/advtrains_across.png +++ b/advtrains/textures/advtrains_across.png diff --git a/advtrains/advtrains/textures/advtrains_across_anim.png b/advtrains/textures/advtrains_across_anim.png Binary files differindex 584d023..584d023 100755 --- a/advtrains/advtrains/textures/advtrains_across_anim.png +++ b/advtrains/textures/advtrains_across_anim.png diff --git a/advtrains/advtrains/textures/advtrains_boiler.png b/advtrains/textures/advtrains_boiler.png Binary files differindex 8c7ff0d..8c7ff0d 100755 --- a/advtrains/advtrains/textures/advtrains_boiler.png +++ b/advtrains/textures/advtrains_boiler.png diff --git a/advtrains/advtrains/textures/advtrains_chimney.png b/advtrains/textures/advtrains_chimney.png Binary files differindex 285a1a6..285a1a6 100755 --- a/advtrains/advtrains/textures/advtrains_chimney.png +++ b/advtrains/textures/advtrains_chimney.png diff --git a/advtrains/advtrains/textures/advtrains_couple.png b/advtrains/textures/advtrains_couple.png Binary files differindex eda3704..eda3704 100755 --- a/advtrains/advtrains/textures/advtrains_couple.png +++ b/advtrains/textures/advtrains_couple.png diff --git a/advtrains/advtrains/textures/advtrains_discouple.png b/advtrains/textures/advtrains_discouple.png Binary files differindex 5c064c3..5c064c3 100755 --- a/advtrains/advtrains/textures/advtrains_discouple.png +++ b/advtrains/textures/advtrains_discouple.png diff --git a/advtrains/advtrains/textures/advtrains_driver_cab.png b/advtrains/textures/advtrains_driver_cab.png Binary files differindex 331bcc9..331bcc9 100755 --- a/advtrains/advtrains/textures/advtrains_driver_cab.png +++ b/advtrains/textures/advtrains_driver_cab.png diff --git a/advtrains/advtrains/textures/advtrains_dtrack_atc_placer.png b/advtrains/textures/advtrains_dtrack_atc_placer.png Binary files differindex 31c2b30..31c2b30 100755 --- a/advtrains/advtrains/textures/advtrains_dtrack_atc_placer.png +++ b/advtrains/textures/advtrains_dtrack_atc_placer.png diff --git a/advtrains/advtrains/textures/advtrains_dtrack_bumper_placer.png b/advtrains/textures/advtrains_dtrack_bumper_placer.png Binary files differindex 27191fe..27191fe 100755 --- a/advtrains/advtrains/textures/advtrains_dtrack_bumper_placer.png +++ b/advtrains/textures/advtrains_dtrack_bumper_placer.png diff --git a/advtrains/advtrains/textures/advtrains_dtrack_detector_placer.png b/advtrains/textures/advtrains_dtrack_detector_placer.png Binary files differindex e6c6ad6..e6c6ad6 100755 --- a/advtrains/advtrains/textures/advtrains_dtrack_detector_placer.png +++ b/advtrains/textures/advtrains_dtrack_detector_placer.png diff --git a/advtrains/advtrains/textures/advtrains_dtrack_load_placer.png b/advtrains/textures/advtrains_dtrack_load_placer.png Binary files differindex 427c011..427c011 100755 --- a/advtrains/advtrains/textures/advtrains_dtrack_load_placer.png +++ b/advtrains/textures/advtrains_dtrack_load_placer.png diff --git a/advtrains/advtrains/textures/advtrains_dtrack_placer.png b/advtrains/textures/advtrains_dtrack_placer.png Binary files differindex 7bef8a9..7bef8a9 100755 --- a/advtrains/advtrains/textures/advtrains_dtrack_placer.png +++ b/advtrains/textures/advtrains_dtrack_placer.png diff --git a/advtrains/advtrains/textures/advtrains_dtrack_rail.png b/advtrains/textures/advtrains_dtrack_rail.png Binary files differindex bd0c217..bd0c217 100755 --- a/advtrains/advtrains/textures/advtrains_dtrack_rail.png +++ b/advtrains/textures/advtrains_dtrack_rail.png diff --git a/advtrains/advtrains/textures/advtrains_dtrack_shared.png b/advtrains/textures/advtrains_dtrack_shared.png Binary files differindex 736c7db..736c7db 100755 --- a/advtrains/advtrains/textures/advtrains_dtrack_shared.png +++ b/advtrains/textures/advtrains_dtrack_shared.png diff --git a/advtrains/advtrains/textures/advtrains_dtrack_shared_atc.png b/advtrains/textures/advtrains_dtrack_shared_atc.png Binary files differindex 1f83c37..1f83c37 100755 --- a/advtrains/advtrains/textures/advtrains_dtrack_shared_atc.png +++ b/advtrains/textures/advtrains_dtrack_shared_atc.png diff --git a/advtrains/advtrains/textures/advtrains_dtrack_shared_detector_off.png b/advtrains/textures/advtrains_dtrack_shared_detector_off.png Binary files differindex 724d907..724d907 100755 --- a/advtrains/advtrains/textures/advtrains_dtrack_shared_detector_off.png +++ b/advtrains/textures/advtrains_dtrack_shared_detector_off.png diff --git a/advtrains/advtrains/textures/advtrains_dtrack_shared_detector_on.png b/advtrains/textures/advtrains_dtrack_shared_detector_on.png Binary files differindex 7bb29d6..7bb29d6 100755 --- a/advtrains/advtrains/textures/advtrains_dtrack_shared_detector_on.png +++ b/advtrains/textures/advtrains_dtrack_shared_detector_on.png diff --git a/advtrains/advtrains/textures/advtrains_dtrack_shared_load.png b/advtrains/textures/advtrains_dtrack_shared_load.png Binary files differindex 5fd0d7a..5fd0d7a 100755 --- a/advtrains/advtrains/textures/advtrains_dtrack_shared_load.png +++ b/advtrains/textures/advtrains_dtrack_shared_load.png diff --git a/advtrains/advtrains/textures/advtrains_dtrack_shared_unload.png b/advtrains/textures/advtrains_dtrack_shared_unload.png Binary files differindex e9fc5bd..e9fc5bd 100755 --- a/advtrains/advtrains/textures/advtrains_dtrack_shared_unload.png +++ b/advtrains/textures/advtrains_dtrack_shared_unload.png diff --git a/advtrains/advtrains/textures/advtrains_dtrack_slopeplacer.png b/advtrains/textures/advtrains_dtrack_slopeplacer.png Binary files differindex 1d456b0..1d456b0 100755 --- a/advtrains/advtrains/textures/advtrains_dtrack_slopeplacer.png +++ b/advtrains/textures/advtrains_dtrack_slopeplacer.png diff --git a/advtrains/advtrains/textures/advtrains_dtrack_unload_placer.png b/advtrains/textures/advtrains_dtrack_unload_placer.png Binary files differindex 486861e..486861e 100755 --- a/advtrains/advtrains/textures/advtrains_dtrack_unload_placer.png +++ b/advtrains/textures/advtrains_dtrack_unload_placer.png diff --git a/advtrains/advtrains/textures/advtrains_platform.png b/advtrains/textures/advtrains_platform.png Binary files differindex 5ba9663..5ba9663 100755 --- a/advtrains/advtrains/textures/advtrains_platform.png +++ b/advtrains/textures/advtrains_platform.png diff --git a/advtrains/advtrains/textures/advtrains_retrosignal.png b/advtrains/textures/advtrains_retrosignal.png Binary files differindex 141198d..141198d 100755 --- a/advtrains/advtrains/textures/advtrains_retrosignal.png +++ b/advtrains/textures/advtrains_retrosignal.png diff --git a/advtrains/advtrains/textures/advtrains_retrosignal_inv.png b/advtrains/textures/advtrains_retrosignal_inv.png Binary files differindex 1036594..1036594 100755 --- a/advtrains/advtrains/textures/advtrains_retrosignal_inv.png +++ b/advtrains/textures/advtrains_retrosignal_inv.png diff --git a/advtrains/advtrains/textures/advtrains_signal_inv.png b/advtrains/textures/advtrains_signal_inv.png Binary files differindex ed64ed9..ed64ed9 100755 --- a/advtrains/advtrains/textures/advtrains_signal_inv.png +++ b/advtrains/textures/advtrains_signal_inv.png diff --git a/advtrains/advtrains/textures/advtrains_signal_off.png b/advtrains/textures/advtrains_signal_off.png Binary files differindex 8046e52..8046e52 100755 --- a/advtrains/advtrains/textures/advtrains_signal_off.png +++ b/advtrains/textures/advtrains_signal_off.png diff --git a/advtrains/advtrains/textures/advtrains_signal_on.png b/advtrains/textures/advtrains_signal_on.png Binary files differindex 5228bb3..5228bb3 100755 --- a/advtrains/advtrains/textures/advtrains_signal_on.png +++ b/advtrains/textures/advtrains_signal_on.png diff --git a/advtrains/advtrains/textures/advtrains_signal_wall_off.png b/advtrains/textures/advtrains_signal_wall_off.png Binary files differindex 3e7b1e1..3e7b1e1 100755 --- a/advtrains/advtrains/textures/advtrains_signal_wall_off.png +++ b/advtrains/textures/advtrains_signal_wall_off.png diff --git a/advtrains/advtrains/textures/advtrains_signal_wall_on.png b/advtrains/textures/advtrains_signal_wall_on.png Binary files differindex b628c7e..b628c7e 100755 --- a/advtrains/advtrains/textures/advtrains_signal_wall_on.png +++ b/advtrains/textures/advtrains_signal_wall_on.png diff --git a/advtrains/advtrains/textures/advtrains_track_cr.png b/advtrains/textures/advtrains_track_cr.png Binary files differindex 40f0cc5..40f0cc5 100755 --- a/advtrains/advtrains/textures/advtrains_track_cr.png +++ b/advtrains/textures/advtrains_track_cr.png diff --git a/advtrains/advtrains/textures/advtrains_track_cr_45.png b/advtrains/textures/advtrains_track_cr_45.png Binary files differindex 54966b3..54966b3 100755 --- a/advtrains/advtrains/textures/advtrains_track_cr_45.png +++ b/advtrains/textures/advtrains_track_cr_45.png diff --git a/advtrains/advtrains/textures/advtrains_track_placer.png b/advtrains/textures/advtrains_track_placer.png Binary files differindex 03e17ed..03e17ed 100755 --- a/advtrains/advtrains/textures/advtrains_track_placer.png +++ b/advtrains/textures/advtrains_track_placer.png diff --git a/advtrains/advtrains/textures/advtrains_track_st.png b/advtrains/textures/advtrains_track_st.png Binary files differindex 5ad7e4f..5ad7e4f 100755 --- a/advtrains/advtrains/textures/advtrains_track_st.png +++ b/advtrains/textures/advtrains_track_st.png diff --git a/advtrains/advtrains/textures/advtrains_track_st_45.png b/advtrains/textures/advtrains_track_st_45.png Binary files differindex 63b4c96..63b4c96 100755 --- a/advtrains/advtrains/textures/advtrains_track_st_45.png +++ b/advtrains/textures/advtrains_track_st_45.png diff --git a/advtrains/advtrains/textures/advtrains_track_swlcr.png b/advtrains/textures/advtrains_track_swlcr.png Binary files differindex d9b5c0b..d9b5c0b 100755 --- a/advtrains/advtrains/textures/advtrains_track_swlcr.png +++ b/advtrains/textures/advtrains_track_swlcr.png diff --git a/advtrains/advtrains/textures/advtrains_track_swlcr_45.png b/advtrains/textures/advtrains_track_swlcr_45.png Binary files differindex f098fc9..f098fc9 100755 --- a/advtrains/advtrains/textures/advtrains_track_swlcr_45.png +++ b/advtrains/textures/advtrains_track_swlcr_45.png diff --git a/advtrains/advtrains/textures/advtrains_track_swlst.png b/advtrains/textures/advtrains_track_swlst.png Binary files differindex 314bd2d..314bd2d 100755 --- a/advtrains/advtrains/textures/advtrains_track_swlst.png +++ b/advtrains/textures/advtrains_track_swlst.png diff --git a/advtrains/advtrains/textures/advtrains_track_swlst_45.png b/advtrains/textures/advtrains_track_swlst_45.png Binary files differindex 765d0ec..765d0ec 100755 --- a/advtrains/advtrains/textures/advtrains_track_swlst_45.png +++ b/advtrains/textures/advtrains_track_swlst_45.png diff --git a/advtrains/advtrains/textures/advtrains_track_swrcr.png b/advtrains/textures/advtrains_track_swrcr.png Binary files differindex f74e1bc..f74e1bc 100755 --- a/advtrains/advtrains/textures/advtrains_track_swrcr.png +++ b/advtrains/textures/advtrains_track_swrcr.png diff --git a/advtrains/advtrains/textures/advtrains_track_swrcr_45.png b/advtrains/textures/advtrains_track_swrcr_45.png Binary files differindex fa432aa..fa432aa 100755 --- a/advtrains/advtrains/textures/advtrains_track_swrcr_45.png +++ b/advtrains/textures/advtrains_track_swrcr_45.png diff --git a/advtrains/advtrains/textures/advtrains_track_swrst.png b/advtrains/textures/advtrains_track_swrst.png Binary files differindex 06ea29e..06ea29e 100755 --- a/advtrains/advtrains/textures/advtrains_track_swrst.png +++ b/advtrains/textures/advtrains_track_swrst.png diff --git a/advtrains/advtrains/textures/advtrains_track_swrst_45.png b/advtrains/textures/advtrains_track_swrst_45.png Binary files differindex be477b7..be477b7 100755 --- a/advtrains/advtrains/textures/advtrains_track_swrst_45.png +++ b/advtrains/textures/advtrains_track_swrst_45.png diff --git a/advtrains/advtrains/textures/advtrains_trackworker.png b/advtrains/textures/advtrains_trackworker.png Binary files differindex b50bcae..b50bcae 100755 --- a/advtrains/advtrains/textures/advtrains_trackworker.png +++ b/advtrains/textures/advtrains_trackworker.png diff --git a/advtrains/advtrains/textures/advtrains_wheel.png b/advtrains/textures/advtrains_wheel.png Binary files differindex fb72879..fb72879 100755 --- a/advtrains/advtrains/textures/advtrains_wheel.png +++ b/advtrains/textures/advtrains_wheel.png diff --git a/advtrains/advtrains/textures/drwho_screwdriver.png b/advtrains/textures/drwho_screwdriver.png Binary files differindex b50bcae..b50bcae 100755 --- a/advtrains/advtrains/textures/drwho_screwdriver.png +++ b/advtrains/textures/drwho_screwdriver.png diff --git a/advtrains/advtrains/trackdb_legacy.lua b/advtrains/trackdb_legacy.lua index 99349e8..99349e8 100644 --- a/advtrains/advtrains/trackdb_legacy.lua +++ b/advtrains/trackdb_legacy.lua diff --git a/advtrains/advtrains/trackplacer.lua b/advtrains/trackplacer.lua index e94b4ff..e94b4ff 100644 --- a/advtrains/advtrains/trackplacer.lua +++ b/advtrains/trackplacer.lua diff --git a/advtrains/advtrains/tracks.lua b/advtrains/tracks.lua index d63e5c8..d63e5c8 100644 --- a/advtrains/advtrains/tracks.lua +++ b/advtrains/tracks.lua diff --git a/advtrains/advtrains/trainhud.lua b/advtrains/trainhud.lua index 591881a..591881a 100644 --- a/advtrains/advtrains/trainhud.lua +++ b/advtrains/trainhud.lua diff --git a/advtrains/advtrains/trainlogic.lua b/advtrains/trainlogic.lua index 483ea52..483ea52 100644 --- a/advtrains/advtrains/trainlogic.lua +++ b/advtrains/trainlogic.lua diff --git a/advtrains/advtrains/wagons.lua b/advtrains/wagons.lua index 567b560..567b560 100644 --- a/advtrains/advtrains/wagons.lua +++ b/advtrains/wagons.lua |