Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

advtrains #456

Draft
wants to merge 7 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -79,3 +79,12 @@
[submodule "mods/fakelib"]
path = mods/fakelib
url = https://github.com/OgelGames/fakelib
[submodule "mods/advtrains"]
path = mods/advtrains
url = https://github.com/minetest-mirrors/advtrains
[submodule "mods/basic_trains"]
path = mods/basic_trains
url = https://github.com/minetest-mirrors/basic_trains
[submodule "mods/elevator"]
path = mods/elevator
url = https://github.com/tigris-mt/elevator
1 change: 1 addition & 0 deletions mods/advtrains
Submodule advtrains added at 46fbf8
1 change: 1 addition & 0 deletions mods/basic_trains
Submodule basic_trains added at de64c4
1 change: 1 addition & 0 deletions mods/elevator
Submodule elevator added at 9d3c23
5 changes: 3 additions & 2 deletions mods/mesecons_lab/.luacheckrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
globals = {
"mesecons_lab"
"mesecons_lab",
"technic",
"minetest"
}

read_globals = {
Expand All @@ -8,7 +10,6 @@ read_globals = {
table = {fields = {"copy", "getn"}},

-- Minetest
"minetest",
"vector", "ItemStack",
"dump", "dump2",
"VoxelArea",
Expand Down
1 change: 1 addition & 0 deletions mods/mesecons_lab/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ dofile(MP .. "/doors_hacks.lua")
dofile(MP .. "/skybox.lua")
dofile(MP .. "/spawn.lua")
dofile(MP .. "/time.lua")
dofile(MP .. "/technic.lua")

if minetest.get_modpath("mtt") and mtt.enabled then
dofile(MP .. "/mtt.lua")
Expand Down
2 changes: 1 addition & 1 deletion mods/mesecons_lab/mod.conf
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
name = mesecons_lab
depends = doors, mesecons_doors
depends = doors, mesecons_doors, technic_worldgen
optional_depends = mtt
10 changes: 10 additions & 0 deletions mods/mesecons_lab/technic.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@

-- prevent rubber trees from spawning on mapgen
local old_minetest_spawn_tree = minetest.spawn_tree
function minetest.spawn_tree(pos, model)
if model == technic.rubber_tree_model then
return
else
return old_minetest_spawn_tree(pos, model)
end
end
17 changes: 17 additions & 0 deletions mods/mesecons_lab_mapgen/data/advtrains_atlatc.ls
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
LUA_SER v=2
Sinterrupt:T
Squeue:T
E
Stimer:N8957.4962708975
E
Sversion:N1
Sactive:T
Snodes:T
E
E
Spcnaming:T
E
Senvs:T
E
E
END_SER
49 changes: 49 additions & 0 deletions mods/mesecons_lab_mapgen/data/advtrains_core.ls
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
LUA_SER v=2
Satc:T
Scontrollers:T
E
E
Swagons:T
S660447:T
Swagon_flipped:B1
Sid:S660447
Sowner:Ssingleplayer
Sseatp:T
E
Strain_id:S935295
Stype:Sadvtrains&:subway_wagon
Spos_in_train:N2
Spos_in_trainparts:N1
E
E
Sptmap:T
E
Strains:T
S935295:T
Svelocity:N0
Sil_sections:T
E
Sspeed_restrictions_t:T
Smain:N-1
E
Satc_command:S OC RD1 A1 SM
Strainparts:T
N1:S660447
E
Slast_connid:N1
Starvelocity:N0
Sars_disable:B1
Sis_shunt:B0
Stext_inside:S
Sdoor_open:N-1
Slast_frac:N0.00098159364026174
Slast_pos:T
Sy:N-29
Sx:N75
Sz:N69
E
Satc_delay:N0.43634699657559
E
E
E
END_SER
21 changes: 21 additions & 0 deletions mods/mesecons_lab_mapgen/data/advtrains_interlocking.ls
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
LUA_SER v=2
Stcbs:T
E
Srs_locks:T
E
Srs_callbacks:T
Slck:T
E
Sts:T
E
E
Ssignalass:T
E
Snpr_rails:T
E
Sinfluence_points:T
E
Sts:T
E
E
END_SER
42 changes: 42 additions & 0 deletions mods/mesecons_lab_mapgen/data/advtrains_lines.ls
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
LUA_SER v=2
Sscheduler_queue:T
E
Sstations:T
SS:T
Sname:SSouth station
Sowner:Ssingleplayer
E
SN:T
Sname:SNorth station
Sowner:Ssingleplayer
E
E
Srwt_time:N9165
Sstops:T
S7FE3804B8045:T
Strack:S
Sars:T
Sdefault:B1
E
Sreverse:B1
Sdoors:SL
Sstn:SN
Swait:N5
Sddelay:N1
Sspeed:SM
E
S7FE3804B802C:T
Strack:S
Sars:T
Sdefault:B1
E
Sreverse:B1
Sdoors:SR
Sstn:SS
Swait:N5
Sddelay:N1
Sspeed:SM
E
E
E
END_SER
13 changes: 13 additions & 0 deletions mods/mesecons_lab_mapgen/data/advtrains_ndb4.ls
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
� �mesecons_switch:mesecon_switch_off
�mesecons_switch:mesecon_switch_on
�advtrains:dtrack_st
�advtrains:dtrack_st_45
�advtrains:dtrack_bumper_st
�advtrains_line_automation:dtrack_stop_st
�advtrains:signal_wall_r_off
�advtrains:signal_wall_r_on
� advtrains:signal_wall_l_off
advtrains:dtrack_detector_off_st
� advtrains:dtrack_detector_on_st
V��!�V��4�V���V���V��2�V��0�V��#�~��� �~��� ����~�� �Z��)�Z������v�����р��Ҁ�����Ѐ ~��� �~��� �~��� �~��� �~��� �~��� ���΀�� �j��j��j��j��j���j��j��j��j��j���~��� �s�������р ��Ѐ��Ҁ�����р��Ҁ ��Ѐ �K�+��K�,��K�-��K�.��K�/��K�0��K�1� �K�2� �K�3� �K�4� �K�5� �K�6��K�7� �K�8��K�9��K�:� �K�;� �K�<� �K�=� �K�>� �K�?� �K�@� �K�A� �K�D� �K�F��K�C� �K�E��K�B� ��ǀ��Ȁ��ǀ�S���
1 change: 1 addition & 0 deletions mods/mesecons_lab_mapgen/data/advtrains_timestamp.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
return 1724325447
1 change: 1 addition & 0 deletions mods/mesecons_lab_mapgen/data/elevator.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
local _={};_[1]="elevators";return {motors={["(59,-21,56)"]={[_[1]]={"(59,-23,56)","(59,-28,56)"},pnames={"-23","-28"},labels={"",""}},["(34,3,0)"]={[_[1]]={"(34,1,0)","(34,-28,0)"},pnames={"1","-28"},labels={"Spawn platform","Bottom platform"}},["(81,-21,56)"]={[_[1]]={"(81,-23,56)","(81,-28,56)"},pnames={"-23","-28"},labels={"",""}}}}
Binary file modified mods/mesecons_lab_mapgen/map/chunk_(-1,0,-1).zip
Binary file not shown.
Binary file modified mods/mesecons_lab_mapgen/map/chunk_(-1,0,0).zip
Binary file not shown.
Binary file modified mods/mesecons_lab_mapgen/map/chunk_(-2,0,0).zip
Binary file not shown.
Binary file modified mods/mesecons_lab_mapgen/map/chunk_(-3,0,0).zip
Binary file not shown.
Binary file modified mods/mesecons_lab_mapgen/map/chunk_(0,-1,0).zip
Binary file not shown.
Binary file modified mods/mesecons_lab_mapgen/map/chunk_(0,0,-1).zip
Binary file not shown.
Binary file modified mods/mesecons_lab_mapgen/map/chunk_(0,0,0).zip
Binary file not shown.
Binary file modified mods/mesecons_lab_mapgen/map/chunk_(0,0,1).zip
Binary file not shown.
Binary file modified mods/mesecons_lab_mapgen/map/chunk_(1,0,-1).zip
Binary file not shown.
Binary file modified mods/mesecons_lab_mapgen/map/chunk_(1,0,-2).zip
Binary file not shown.
Binary file modified mods/mesecons_lab_mapgen/map/chunk_(1,0,0).zip
Binary file not shown.
Binary file added mods/mesecons_lab_mapgen/map/chunk_(1,0,1).zip
Binary file not shown.