diff --git a/advtrains_train_industrial/init.lua b/advtrains_train_industrial/init.lua index f22f806..ffe233a 100644 --- a/advtrains_train_industrial/init.lua +++ b/advtrains_train_industrial/init.lua @@ -9,14 +9,14 @@ advtrains.register_wagon("engine_industrial", { { name=S("Driver Stand (right)"), attach_offset={x=5, y=-3, z=-8}, - view_offset={x=5.2, y=-4, z=0}, + view_offset={x=5, y=-3, z=-8}, driving_ctrl_access=true, group = "dstand", }, { name=S("Driver Stand (left)"), attach_offset={x=5, y=7, z=-8}, - view_offset={x=-5.2, y=-4, z=0}, + view_offset={x=5, y=-7, z=-8}, driving_ctrl_access=true, group = "dstand", }, @@ -46,14 +46,14 @@ advtrains.register_wagon("engine_industrial_big", { { name=S("Driver Stand (right)"), attach_offset={x=5, y=-3, z=20}, - view_offset={x=5.2, y=-4, z=11}, + view_offset={x=5, y=-3, z=20}, driving_ctrl_access=true, group = "dstand", }, { name=S("Driver Stand (left)"), attach_offset={x=5, y=-3, z=-8}, - view_offset={x=-5.2, y=-4, z=0}, + view_offset={x=5, y=-3, z=-8}, driving_ctrl_access=true, group = "dstand", }, diff --git a/advtrains_train_japan/init.lua b/advtrains_train_japan/init.lua index a784845..852ec4e 100644 --- a/advtrains_train_japan/init.lua +++ b/advtrains_train_japan/init.lua @@ -8,32 +8,32 @@ advtrains.register_wagon("engine_japan", { seats = { { name=S("Driver stand"), - attach_offset={x=0, y=-2, z=13}, - view_offset={x=0, y=0, z=0}, + attach_offset={x=0, y=0, z=13}, + view_offset={x=0, y=0, z=13}, group="dstand", }, { name="1", - attach_offset={x=-4, y=-2, z=0}, - view_offset={x=0, y=0, z=0}, + attach_offset={x=-4, y=0, z=0}, + view_offset={x=-4, y=0, z=0}, group="pass", }, { name="2", - attach_offset={x=4, y=-2, z=0}, - view_offset={x=0, y=0, z=0}, + attach_offset={x=4, y=0, z=0}, + view_offset={x=4, y=0, z=0}, group="pass", }, { name="3", - attach_offset={x=-4, y=-2, z=-8}, - view_offset={x=0, y=0, z=0}, + attach_offset={x=-4, y=0, z=-8}, + view_offset={x=-4, y=0, z=-8}, group="pass", }, { name="4", - attach_offset={x=4, y=-2, z=-8}, - view_offset={x=0, y=0, z=0}, + attach_offset={x=4, y=0, z=-8}, + view_offset={x=4, y=0, z=8}, group="pass", }, }, @@ -78,38 +78,38 @@ advtrains.register_wagon("wagon_japan", { seats = { { name="1", - attach_offset={x=-4, y=-2, z=8}, - view_offset={x=0, y=0, z=0}, + attach_offset={x=-4, y=0, z=8}, + view_offset={x=-4, y=0, z=8}, group="pass", }, { name="2", - attach_offset={x=4, y=-2, z=8}, - view_offset={x=0, y=0, z=0}, + attach_offset={x=4, y=0, z=8}, + view_offset={x=4, y=0, z=8}, group="pass", }, { name="1a", - attach_offset={x=-4, y=-2, z=0}, - view_offset={x=0, y=0, z=0}, + attach_offset={x=-4, y=0, z=0}, + view_offset={x=-4, y=0, z=0}, group="pass", }, { name="2a", - attach_offset={x=4, y=-2, z=0}, - view_offset={x=0, y=0, z=0}, + attach_offset={x=4, y=0, z=0}, + view_offset={x=4, y=0, z=0}, group="pass", }, { name="3", - attach_offset={x=-4, y=-2, z=-8}, - view_offset={x=0, y=0, z=0}, + attach_offset={x=-4, y=0, z=-8}, + view_offset={x=-4, y=0, z=-8}, group="pass", }, { name="4", - attach_offset={x=4, y=8, z=-8}, - view_offset={x=0, y=0, z=0}, + attach_offset={x=4, y=0, z=-8}, + view_offset={x=4, y=0, z=-8}, group="pass", }, }, diff --git a/advtrains_train_steam/init.lua b/advtrains_train_steam/init.lua index 2f46ac2..7a6310f 100644 --- a/advtrains_train_steam/init.lua +++ b/advtrains_train_steam/init.lua @@ -12,14 +12,14 @@ advtrains.register_wagon("newlocomotive", { seats = { { name=S("Driver Stand (left)"), - attach_offset={x=-5, y=0, z=-10}, - view_offset={x=0, y=6, z=0}, + attach_offset={x=-4, y=3, z=-8}, + view_offset={x=-4, y=3, z=-8}, group = "dstand", }, { name=S("Driver Stand (right)"), - attach_offset={x=5, y=0, z=-10}, - view_offset={x=0, y=6, z=0}, + attach_offset={x=4, y=3, z=-8}, + view_offset={x=4, y=3, z=-8}, group = "dstand", }, }, @@ -40,7 +40,7 @@ advtrains.register_wagon("newlocomotive", { self.old_anim_velocity=advtrains.abs_ceil(velocity) end end, - + custom_on_activate = function(self, staticdata_table, dtime_s) minetest.add_particlespawner({ amount = 10, @@ -82,13 +82,13 @@ advtrains.register_wagon("detailed_steam_engine", { { name=S("Driver Stand (left)"), attach_offset={x=-8, y=0, z=-10}, - view_offset={x=9, y=-2, z=-6}, + view_offset={x=-8, y=0, z=-10}, group = "dstand", }, { name=S("Driver Stand (right)"), attach_offset={x=8, y=0, z=-10}, - view_offset={x=0, y=6, z=0}, + view_offset={x=8, y=0, z=-10}, group = "dstand", }, }, @@ -191,7 +191,7 @@ advtrains.register_wagon("wagon_default", { access_to = {}, }, }, - + assign_to_seat_group = {"pass"}, visual_size = {x=1, y=1}, wagon_span=2.634, diff --git a/bboe_1080/init.lua b/bboe_1080/init.lua index 11d1243..24a03b3 100644 --- a/bboe_1080/init.lua +++ b/bboe_1080/init.lua @@ -13,32 +13,32 @@ advtrains.register_wagon("engine_BBOE_1080", { seats = { { name=S("Driver stand"), - attach_offset={x=0, y=8, z=13}, - view_offset={x=0, y=0, z=0}, + attach_offset={x=0, y=2, z=13}, + view_offset={x=0, y=2, z=13}, group="dstand", }, { name="1", - attach_offset={x=-4, y=8, z=0}, - view_offset={x=0, y=0, z=0}, + attach_offset={x=-4, y=2, z=0}, + view_offset={x=-4, y=2, z=0}, group="pass", }, { name="2", - attach_offset={x=4, y=8, z=0}, - view_offset={x=0, y=0, z=0}, + attach_offset={x=4, y=2, z=0}, + view_offset={x=4, y=2, z=0}, group="pass", }, { name="3", - attach_offset={x=-4, y=8, z=-8}, - view_offset={x=0, y=0, z=0}, + attach_offset={x=-4, y=2, z=-8}, + view_offset={x=-4, y=2, z=-8}, group="pass", }, { name="4", - attach_offset={x=4, y=8, z=-8}, - view_offset={x=0, y=0, z=0}, + attach_offset={x=4, y=2, z=-8}, + view_offset={x=4, y=2, z=-8}, group="pass", }, }, diff --git a/db_160/init.lua b/db_160/init.lua index 33a8095..5c963ea 100644 --- a/db_160/init.lua +++ b/db_160/init.lua @@ -13,47 +13,18 @@ advtrains.register_wagon("engine_DB_160", { seats = { { name=S("Driver stand"), - attach_offset={x=0, y=8, z=13}, - view_offset={x=0, y=0, z=0}, + attach_offset={x=0, y=1, z=-3}, + view_offset={x=0, y=1, z=-3}, 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"}, + access_to = {}, require_doors_open=true, driving_ctrl_access=true, - }, - pass={ - name = "Engenier's area", - access_to = {"dstand"}, - require_doors_open=true, - }, + } }, assign_to_seat_group = {"dstand"}, doors={ diff --git a/freight_train/init.lua b/freight_train/init.lua old mode 100755 new mode 100644 index 7a7787e..ac74cbc --- a/freight_train/init.lua +++ b/freight_train/init.lua @@ -15,14 +15,14 @@ advtrains.register_wagon("diesel_lokomotive", { seats = { { name = S("Driver Stand (left)"), - attach_offset = {x=-3, y=12, z=-2}, - view_offset = {x=-4, y=3, z=0}, + attach_offset = {x=-3, y=4, z=3}, + view_offset = {x=-3, y=4, z=3}, group = "dstand", }, { name = S("Trainee Seat (right)"), - attach_offset = {x=3, y=12, z=-2}, - view_offset = {x=4, y=3, z=0}, + attach_offset = {x=3, y=4, z=3}, + view_offset = {x=3, y=4, z=3}, group = "tseat", }, }, @@ -90,9 +90,9 @@ advtrains.register_wagon("wagon_gravel", { collisionbox = {-1.0,-0.5,-1.0, 1.0,1.5,1.0}, drops={"advtrains:wagon_gravel"}, has_inventory = true, - get_inventory_formspec = function(self) + get_inventory_formspec = function(self, pname, invname) return "size[8,11]".. - "list[detached:advtrains_wgn_"..self.unique_id..";box;0,0;8,6;]".. + "list[" .. invname .. ";box;0,0;8,6;]".. "list[current_player;main;0,7;8,4;]".. "listring[]" end, @@ -112,9 +112,9 @@ advtrains.register_wagon("wagon_track", { collisionbox = {-1.0,-0.5,-1.0, 1.0,1.5,1.0}, drops={"advtrains:wagon_track"}, has_inventory = true, - get_inventory_formspec = function(self) + get_inventory_formspec = function(self, pname, invname) return "size[8,11]".. - "list[detached:advtrains_wgn_"..self.unique_id..";box;0,0;8,6;]".. + "list[" .. invname .. ";box;0,0;8,6;]".. "list[current_player;main;0,7;8,4;]".. "listring[]" end, @@ -136,11 +136,10 @@ advtrains.register_wagon("wagon_lava", { collisionbox = {-1.0,-0.5,-1.0, 1.0,1.5,1.0}, drops={"advtrains:wagon_lava"}, has_inventory = true, - get_inventory_formspec = function(self) + get_inventory_formspec = function(self, pname, invname) return "size[8,11]".. - "list[detached:advtrains_wgn_"..self.unique_id..";box;0,0;8,6;]".. - "list[current_player;main;0,7;8,4;]".. - "listring[]" + "list[" .. invname .. ";box;0,0;8,6;]".. + "list[current_player;main;0,7;8,4;]" end, inventory_list_sizes = { box=8*6, @@ -159,9 +158,9 @@ advtrains.register_wagon("wagon_tree", { collisionbox = {-1.0,-0.5,-1.0, 1.0,1.5,1.0}, drops={"advtrains:wagon_tree"}, has_inventory = true, - get_inventory_formspec = function(self) + get_inventory_formspec = function(self, pname, invname) return "size[8,11]".. - "list[detached:advtrains_wgn_"..self.unique_id..";box;0,0;8,6;]".. + "list[" .. invname .. ";box;0,0;8,6;]".. "list[current_player;main;0,7;8,4;]".. "listring[]" end, diff --git a/logo.png b/logo.png new file mode 100644 index 0000000..dabae1d Binary files /dev/null and b/logo.png differ diff --git a/moretrains_basic/init.lua b/moretrains_basic/init.lua index aebae4d..2d1eacc 100644 --- a/moretrains_basic/init.lua +++ b/moretrains_basic/init.lua @@ -14,38 +14,38 @@ advtrains.register_wagon("moretrains_railroad_car", { seats = { { name="1", - attach_offset={x=-4, y=-2, z=8}, - view_offset={x=0, y=-2, z=0}, + attach_offset={x=-4, y=-0.4, z=8}, + view_offset={x=-4, y=-0.4, z=8}, group="pass", }, { name="2", - attach_offset={x=4, y=-2, z=8}, - view_offset={x=0, y=-2, z=0}, + attach_offset={x=4, y=-0.4, z=8}, + view_offset={x=4, y=-0.4, z=8}, group="pass", }, { name="1a", - attach_offset={x=-4, y=-2, z=0}, - view_offset={x=0, y=-2, z=0}, + attach_offset={x=-4, y=-0.4, z=0}, + view_offset={x=-4, y=-0.4, z=0}, group="pass", }, { name="2a", - attach_offset={x=4, y=-2, z=0}, - view_offset={x=0, y=-2, z=0}, + attach_offset={x=4, y=-0.4, z=0}, + view_offset={x=4, y=-0.4, z=0}, group="pass", }, { name="3", - attach_offset={x=-4, y=-2, z=-8}, - view_offset={x=0, y=-2, z=0}, + attach_offset={x=-4, y=-0.4, z=-8}, + view_offset={x=-4, y=-0.4, z=-8}, group="pass", }, { name="4", - attach_offset={x=4, y=8, z=-8}, - view_offset={x=0, y=-2, z=0}, + attach_offset={x=4, y=-0.4, z=-8}, + view_offset={x=4, y=-0.4, z=-8}, group="pass", }, }, @@ -82,38 +82,38 @@ advtrains.register_wagon("moretrains_silberling", { seats = { { name="1", - attach_offset={x=-4, y=-2, z=8}, - view_offset={x=0, y=-2, z=0}, + attach_offset={x=-4, y=-0.4, z=8}, + view_offset={x=-4, y=-0.4, z=8}, group="pass", }, { name="2", - attach_offset={x=4, y=-2, z=8}, - view_offset={x=0, y=-2, z=0}, + attach_offset={x=4, y=-0.4, z=8}, + view_offset={x=4, y=-0.4, z=8}, group="pass", }, { name="1a", - attach_offset={x=-4, y=-2, z=0}, - view_offset={x=0, y=-2, z=0}, + attach_offset={x=-4, y=-0.4, z=0}, + view_offset={x=-4, y=-0.4, z=0}, group="pass", }, { name="2a", - attach_offset={x=4, y=-2, z=0}, - view_offset={x=0, y=-2, z=0}, + attach_offset={x=4, y=-0.4, z=0}, + view_offset={x=4, y=-0.4, z=0}, group="pass", }, { name="3", - attach_offset={x=-4, y=-2, z=-8}, - view_offset={x=0, y=-2, z=0}, + attach_offset={x=-4, y=-0.4, z=-8}, + view_offset={x=-4, y=-0.4, z=-8}, group="pass", }, { name="4", - attach_offset={x=4, y=8, z=-8}, - view_offset={x=0, y=-2, z=0}, + attach_offset={x=4, y=-0.4, z=-8}, + view_offset={x=4, y=-0.4, z=-8}, group="pass", }, }, @@ -155,7 +155,7 @@ advtrains.register_wagon("moretrains_diesel_german", { driving_ctrl_access=true, group = "dstand", }, - + }, seat_groups = { dstand={ @@ -182,43 +182,43 @@ advtrains.register_wagon("moretrains_silberling_train", { { name=S("Driver stand"), attach_offset={x=0, y=-0.4, z=21}, - view_offset={x=10.4, y=9, z=0}, + view_offset={x=0, y=-0.4, z=21}, group="dstand", }, { name="1", - attach_offset={x=-4, y=-2, z=8}, - view_offset={x=0, y=-2, z=0}, + attach_offset={x=-4, y=-0.4, z=8}, + view_offset={x=-4, y=-0.4, z=8}, group="pass", }, { name="2", - attach_offset={x=4, y=-2, z=8}, - view_offset={x=0, y=-2, z=0}, + attach_offset={x=4, y=-0.4, z=8}, + view_offset={x=4, y=-0.4, z=8}, group="pass", }, { name="1a", - attach_offset={x=-4, y=-2, z=0}, - view_offset={x=0, y=-2, z=0}, + attach_offset={x=-4, y=-0.4, z=0}, + view_offset={x=-4, y=-0.4, z=0}, group="pass", }, { name="2a", - attach_offset={x=4, y=-2, z=0}, - view_offset={x=0, y=-2, z=0}, + attach_offset={x=4, y=-0.4, z=0}, + view_offset={x=4, y=-0.4, z=0}, group="pass", }, { name="3", - attach_offset={x=-4, y=-2, z=-8}, - view_offset={x=0, y=-2, z=0}, + attach_offset={x=-4, y=-0.4, z=-8}, + view_offset={x=-4, y=-0.4, z=-8}, group="pass", }, { name="4", - attach_offset={x=4, y=8, z=-8}, - view_offset={x=0, y=-2, z=0}, + attach_offset={x=4, y=-0.4, z=-8}, + view_offset={x=4, y=-0.4, z=-8}, group="pass", }, }, @@ -269,7 +269,7 @@ local ingot = 'default:steel_ingot' if minetest.get_modpath("moreores") then block = 'moreores:silver_block' ingot = 'moreores:silver_ingot' - + end minetest.register_craft({ diff --git a/moretrains_industrial/blend/moretrains_wagon_wood_loaded.blend b/moretrains_industrial/blend/moretrains_wagon_wood_loaded.blend index 476d4ff..09448af 100644 Binary files a/moretrains_industrial/blend/moretrains_wagon_wood_loaded.blend and b/moretrains_industrial/blend/moretrains_wagon_wood_loaded.blend differ diff --git a/moretrains_industrial/blend/moretrains_wagon_wood_loaded.blend1 b/moretrains_industrial/blend/moretrains_wagon_wood_loaded.blend1 new file mode 100644 index 0000000..476d4ff Binary files /dev/null and b/moretrains_industrial/blend/moretrains_wagon_wood_loaded.blend1 differ diff --git a/moretrains_industrial/models/moretrains_wagon_wood_loaded.b3d b/moretrains_industrial/models/moretrains_wagon_wood_loaded.b3d index 5d665a5..408ec23 100644 Binary files a/moretrains_industrial/models/moretrains_wagon_wood_loaded.b3d and b/moretrains_industrial/models/moretrains_wagon_wood_loaded.b3d differ diff --git a/railbus/init.lua b/railbus/init.lua index a5999ff..be71841 100644 --- a/railbus/init.lua +++ b/railbus/init.lua @@ -13,32 +13,32 @@ advtrains.register_wagon("engine_railbus", { seats = { { name=S("Driver stand"), - attach_offset={x=0, y=8, z=13}, - view_offset={x=0, y=0, z=0}, + attach_offset={x=0, y=4, z=19}, + view_offset={x=0, y=4, z=19}, group="dstand", }, { name="1", - attach_offset={x=-4, y=8, z=0}, - view_offset={x=0, y=0, z=0}, + attach_offset={x=-4, y=4, z=0}, + view_offset={x=-4, y=4, z=0}, group="pass", }, { name="2", - attach_offset={x=4, y=8, z=0}, - view_offset={x=0, y=0, z=0}, + attach_offset={x=4, y=4, z=0}, + view_offset={x=4, y=4, z=0}, group="pass", }, { name="3", - attach_offset={x=-4, y=8, z=-8}, - view_offset={x=0, y=0, z=0}, + attach_offset={x=-4, y=4, z=-8}, + view_offset={x=-4, y=4, z=-8}, group="pass", }, { name="4", - attach_offset={x=4, y=8, z=-8}, - view_offset={x=0, y=0, z=0}, + attach_offset={x=4, y=4, z=-8}, + view_offset={x=4, y=4, z=-8}, group="pass", }, }, diff --git a/rocket/init.lua b/rocket/init.lua index b8cceb0..6a8f701 100644 --- a/rocket/init.lua +++ b/rocket/init.lua @@ -14,8 +14,8 @@ advtrains.register_wagon("rocket", { seats = { { name=S("Driver Stand"), - attach_offset={x=0, y=10, z=-10}, - view_offset={x=0, y=6, z=0}, + attach_offset={x=0, y=9, z=-6}, + view_offset={x=0, y=9, z=-6}, group = "dstand", }, }, @@ -82,9 +82,9 @@ advtrains.register_wagon("rocket_wagon_tender", { collisionbox = {-1.0,-0.5,-1.0, 1.0,1.5,1.0}, drops={"default:steelblock 4"}, has_inventory = true, - get_inventory_formspec = function(self) + get_inventory_formspec = function(self, pname, invname) return "size[8,11]".. - "list[detached:advtrains_wgn_"..self.unique_id..";box;0,0;8,6;]".. + "list[" .. invname .. ";box;0,0;8,6;]".. "list[current_player;main;0,7;8,4;]".. "listring[]" end, @@ -106,9 +106,9 @@ advtrains.register_wagon("rocket_wagon_box", { collisionbox = {-1.0,-0.5,-1.0, 1.0,1.5,1.0}, drops={"default:steelblock 4"}, has_inventory = true, - get_inventory_formspec = function(self) + get_inventory_formspec = function(self, pname, invname) return "size[8,11]".. - "list[detached:advtrains_wgn_"..self.unique_id..";box;0,0;8,6;]".. + "list[" .. invname .. ";box;0,0;8,6;]".. "list[current_player;main;0,7;8,4;]".. "listring[]" end, diff --git a/train_orient_express/init.lua b/train_orient_express/init.lua index 3f2c0ae..4c585db 100644 --- a/train_orient_express/init.lua +++ b/train_orient_express/init.lua @@ -13,14 +13,14 @@ advtrains.register_wagon("engine_electronic", { seats = { { name=S("Driver Stand (front)"), - attach_offset={x=o, y=6, z=8}, - view_offset={x=0, y=-3, z=0}, + attach_offset={x=0, y=-1, z=12}, + view_offset={x=0, y=-1, z=12}, group = "dstand", }, { name=S("Driver Stand (back)"), - attach_offset={x=o, y=-6, z=8}, - view_offset={x=0, y=-3, z=0}, + attach_offset={x=0, y=-1, z=8}, + view_offset={x=0, y=-1, z=8}, group = "dstand", }, }, @@ -49,26 +49,26 @@ advtrains.register_wagon("wagon_compartment", { seats = { { name="1", - attach_offset={x=2, y=6, z=8}, - view_offset={x=0, y=-4, z=0}, + attach_offset={x=2, y=2, z=8}, + view_offset={x=2, y=2, z=8}, group="pass", }, { name="2", - attach_offset={x=-1, y=6, z=8}, - view_offset={x=0, y=-4, z=0}, + attach_offset={x=-1, y=2, z=8}, + view_offset={x=-1, y=2, z=8}, group="pass", }, { name="3", - attach_offset={x=-4, y=8, z=-8}, - view_offset={x=0, y=0, z=0}, + attach_offset={x=-4, y=2, z=-8}, + view_offset={x=-4, y=2, z=-8}, group="pass", }, { name="4", - attach_offset={x=4, y=8, z=-8}, - view_offset={x=0, y=0, z=0}, + attach_offset={x=4, y=2, z=-8}, + view_offset={x=4, y=2, z=-8}, group="pass", }, }, @@ -94,26 +94,26 @@ advtrains.register_wagon("wagon_sleep", { seats = { { name="1", - attach_offset={x=2, y=6, z=8}, - view_offset={x=0, y=-2, z=0}, + attach_offset={x=2, y=2, z=8}, + view_offset={x=2, y=2, z=8}, group="pass", }, { name="2", - attach_offset={x=-1, y=6, z=8}, - view_offset={x=0, y=-4, z=0}, + attach_offset={x=-1, y=2, z=8}, + view_offset={x=-1, y=2, z=8}, group="pass", }, { name="3", - attach_offset={x=-4, y=8, z=-8}, - view_offset={x=0, y=0, z=0}, + attach_offset={x=-4, y=2, z=-8}, + view_offset={x=-4, y=2, z=-8}, group="pass", }, { name="4", - attach_offset={x=4, y=8, z=-8}, - view_offset={x=0, y=0, z=0}, + attach_offset={x=4, y=2, z=-8}, + view_offset={x=4, y=2, z=-8}, group="pass", }, }, diff --git a/train_orient_express/textures/advtrains_engine_electronic_inv.png b/train_orient_express/textures/advtrains_engine_electronic_inv.png index a4276cc..d411b6f 100644 Binary files a/train_orient_express/textures/advtrains_engine_electronic_inv.png and b/train_orient_express/textures/advtrains_engine_electronic_inv.png differ diff --git a/train_zugspitzbahn/init.lua b/train_zugspitzbahn/init.lua index b7a30ee..6b4d3f7 100644 --- a/train_zugspitzbahn/init.lua +++ b/train_zugspitzbahn/init.lua @@ -14,14 +14,14 @@ advtrains.register_wagon("engine_zugspitzbahn", { seats = { { name=S("Driver Stand (front)"), - attach_offset={x=o, y=6, z=8}, - view_offset={x=0, y=-3, z=0}, + attach_offset={x=0, y=0, z=18}, + view_offset={x=0, y=0, z=18}, group = "dstand", }, { name=S("Driver Stand (back)"), - attach_offset={x=o, y=-6, z=8}, - view_offset={x=0, y=-3, z=0}, + attach_offset={x=0, y=0, z=-18}, + view_offset={x=0, y=0, z=-18}, group = "dstand", }, }, @@ -38,8 +38,8 @@ advtrains.register_wagon("engine_zugspitzbahn", { collisionbox = {-1.0,-0.5,-1.0, 1.0,2.5,1.0}, is_locomotive=true, drops={"advtrains:engine_zugspitzbahn"}, - -}, S("Zugspitzbahn engine"), "advtrains_bzb_inv.png") + +}, S("Zugspitzbahn engine"), "advtrains_engine_bzb_inv.png") advtrains.register_wagon("wagon_zugspitzbahn", { mesh="advtrains_wagon_bzb.b3d", @@ -83,6 +83,6 @@ advtrains.register_wagon("wagon_zugspitzbahn", { wagon_span=3, collisionbox = {-1.0,-0.5,-1.0, 1.0,2.5,1.0}, drops={"default:steelblock 4"}, -}, S("Passenger Zugspitzbahn wagon"), "advtrains_bzb_inv.png") +}, S("Passenger Zugspitzbahn wagon"), "advtrains_bzb_inv.png") diff --git a/train_zugspitzbahn/textures/advtrains_bzb_inv.png b/train_zugspitzbahn/textures/advtrains_bzb_inv.png index 6734b51..633ddce 100644 Binary files a/train_zugspitzbahn/textures/advtrains_bzb_inv.png and b/train_zugspitzbahn/textures/advtrains_bzb_inv.png differ diff --git a/train_zugspitzbahn/textures/advtrains_engine_bzb_inv.png b/train_zugspitzbahn/textures/advtrains_engine_bzb_inv.png new file mode 100644 index 0000000..2723ef8 Binary files /dev/null and b/train_zugspitzbahn/textures/advtrains_engine_bzb_inv.png differ diff --git a/transib/init.lua b/transib/init.lua old mode 100755 new mode 100644 index 16c57d6..e01ab8f --- a/transib/init.lua +++ b/transib/init.lua @@ -13,49 +13,20 @@ advtrains.register_wagon("engine_transib", { seats = { { name=S("Driver stand"), - attach_offset={x=0, y=8, z=13}, - view_offset={x=0, y=0, z=0}, + attach_offset={x=0, y=2, z=10}, + view_offset={x=0, y=2, z=10}, 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"}, + access_to = {}, require_doors_open=true, - }, - pass={ - name = "Passenger area", - access_to = {"dstand"}, - require_doors_open=true, - }, + } }, - assign_to_seat_group = {"dstand", "pass"}, + assign_to_seat_group = {"dstand"}, doors={ open={ [-1]={frames={x=0, y=20}, time=1},