Demoanlagen hinzufügen, fixes für Installationsdateien
This commit is contained in:
parent
9ae65e50a1
commit
cd3d5c5962
1
.gitignore
vendored
1
.gitignore
vendored
@ -5,3 +5,4 @@
|
||||
*.log
|
||||
*.out
|
||||
*.zip
|
||||
*.dds
|
||||
|
6
Demos/On_Grundprinzip.anl3
Normal file
6
Demos/On_Grundprinzip.anl3
Normal file
File diff suppressed because one or more lines are too long
20
Demos/On_Grundprinzip.lua
Normal file
20
Demos/On_Grundprinzip.lua
Normal file
@ -0,0 +1,20 @@
|
||||
clearlog()
|
||||
require("kskit\\On")
|
||||
|
||||
-- In jedem Zyklus prüfen wir, ob die Lok vor dem Signal steht
|
||||
Main(function()
|
||||
if EEPGetSignalTrainsCount(2) > 0 then
|
||||
-- Wenn dies der Fall ist, schalten wir das Signal auf Fahrt
|
||||
EEPSetSignal(2, 2, 1)
|
||||
end
|
||||
end)
|
||||
|
||||
-- Wenn das Signal umgestellt wird, wird die Weiche ebenfalls auf Abzweig gestellt
|
||||
OnSignal(2, function(Stellung)
|
||||
print("Signal gestellt auf ", Stellung)
|
||||
EEPSetSwitch(1, 2, 1)
|
||||
end)
|
||||
|
||||
OnSwitch(1, function(Stellung)
|
||||
print("Weiche gestellt auf ", Stellung)
|
||||
end)
|
BIN
Demos/On_GrundprinzipB.bmp
Normal file
BIN
Demos/On_GrundprinzipB.bmp
Normal file
Binary file not shown.
After Width: | Height: | Size: 40 KiB |
BIN
Demos/On_GrundprinzipF.bmp
Normal file
BIN
Demos/On_GrundprinzipF.bmp
Normal file
Binary file not shown.
After Width: | Height: | Size: 40 KiB |
BIN
Demos/On_GrundprinzipH.bmp
Normal file
BIN
Demos/On_GrundprinzipH.bmp
Normal file
Binary file not shown.
After Width: | Height: | Size: 40 KiB |
BIN
Demos/On_GrundprinzipS.bmp
Normal file
BIN
Demos/On_GrundprinzipS.bmp
Normal file
Binary file not shown.
After Width: | Height: | Size: 40 KiB |
BIN
Demos/On_GrundprinzipT.bmp
Normal file
BIN
Demos/On_GrundprinzipT.bmp
Normal file
Binary file not shown.
After Width: | Height: | Size: 40 KiB |
@ -1,6 +1,13 @@
|
||||
[Install_00]
|
||||
Name_GER = "KsKit Scripte"
|
||||
Name_ENG = "KsKit Scripte"
|
||||
Name_ENG = "KsKit Scripts"
|
||||
Desc_GER = "Lua-Toolbox von Nero"
|
||||
Desc_ENG = "Nero's Lua Toolbox"
|
||||
Script = "install.ini"
|
||||
Script = "scripts.ini"
|
||||
|
||||
[Install_01]
|
||||
Name_GER = "KsKit Demoanlagen"
|
||||
Name_ENG = "KsKit Sample Layouts"
|
||||
Desc_GER = "Eine Sammlung von Tutorial- und Demonanlagen für KsKit"
|
||||
Desc_ENG = "A collection of tutorial layouts using KsKit"
|
||||
Script = "demos.ini"
|
||||
|
9
demos.ini
Normal file
9
demos.ini
Normal file
@ -0,0 +1,9 @@
|
||||
[EEPInstall]
|
||||
EEPVersion = 16
|
||||
File001 = "Demos\On_Grundprinzip.anl3","Resourcen\Anlagen\KsKit-Demos\Demos\On_Grundprinzip.anl3"
|
||||
File002 = "Demos\On_Grundprinzip.lua","Resourcen\Anlagen\KsKit-Demos\Demos\On_Grundprinzip.lua"
|
||||
File003 = "Demos\On_GrundprinzipB.bmp","Resourcen\Anlagen\KsKit-Demos\Demos\On_GrundprinzipB.bmp"
|
||||
File004 = "Demos\On_GrundprinzipF.bmp","Resourcen\Anlagen\KsKit-Demos\Demos\On_GrundprinzipF.bmp"
|
||||
File005 = "Demos\On_GrundprinzipH.bmp","Resourcen\Anlagen\KsKit-Demos\Demos\On_GrundprinzipH.bmp"
|
||||
File006 = "Demos\On_GrundprinzipS.bmp","Resourcen\Anlagen\KsKit-Demos\Demos\On_GrundprinzipS.bmp"
|
||||
File007 = "Demos\On_GrundprinzipT.bmp","Resourcen\Anlagen\KsKit-Demos\Demos\On_GrundprinzipT.bmp"
|
@ -1,6 +0,0 @@
|
||||
[EEPInstall]
|
||||
EEPVersion = 10
|
||||
File001 = "../MultiSchalten.lua","LUA\kskit\MultiSchalten.lua"
|
||||
File002 = "../On.lua","LUA\kskit\On.lua"
|
||||
File003 = "../Serializer.lua","LUA\kskit\Serializer.lua"
|
||||
File004 = "../Zuggreifer.lua","LUA\kskit\Zuggreifer.lua"
|
@ -1,4 +1,18 @@
|
||||
#!/bin/sh
|
||||
(
|
||||
printf "[EEPInstall]\n"
|
||||
printf "EEPVersion = 10\n"
|
||||
i=1; for f in *.lua; do printf 'File%03d = "../%s","LUA\\kskit\\%s"\n' "$i" "$f" "$f"; i=$(( i + 1 )); done
|
||||
i=1
|
||||
for f in $(git ls-files|grep '^[^/]*.lua'); do
|
||||
printf 'File%03d = "%s","LUA\\kskit\\%s"\n' "$i" "$f" "$f"; i=$(( i + 1 ));
|
||||
done
|
||||
) >scripts.ini
|
||||
|
||||
(
|
||||
printf "[EEPInstall]\n"
|
||||
printf "EEPVersion = 16\n"
|
||||
i=1;
|
||||
for f in $(git ls-files|grep '^Demos/'|sed 's|/|\\|'g); do
|
||||
printf 'File%03d = "%s","Resourcen\\Anlagen\\KsKit-Demos\\%s"\n' "$i" "$f" "$f"; i=$(( i + 1 ));
|
||||
done
|
||||
) >demos.ini
|
||||
|
5
scripts.ini
Normal file
5
scripts.ini
Normal file
@ -0,0 +1,5 @@
|
||||
[EEPInstall]
|
||||
EEPVersion = 10
|
||||
File001 = "On.lua","LUA\kskit\On.lua"
|
||||
File002 = "Serializer.lua","LUA\kskit\Serializer.lua"
|
||||
File003 = "Zuggreifer.lua","LUA\kskit\Zuggreifer.lua"
|
Loading…
Reference in New Issue
Block a user