Trainz-mp Главная | Форум trainz-mp.ru | Обратная связь (Ваш вопрос, Создание пакетов) На наших часах: 6.05.2024 1:33:52

Здравствуйте Гость ( Войти через форум ) Авторизовавшись Вы сможете загружать сюда любые зависимости формата .CDP для игры Trainz Куиды Поиск

Репозиторий

<kuid:131986:1036> ControlDiamCross

Тип: Команда
Опубликовано: 17.07.2020 21:08:11
Скачиваний: 54
Размер: 22.1 kB

Скачать

Inspired from a discussion going on in a thread in the forum (by the way my special thanks to Mr.Den for his clever idea), I decided to write this command that lets a driver to control a diamond crossing with the signals around it and releases the diamond crossing automatically once the entire train leaves a specified trackmark. The setup however requires a little work on the user side. You need to follow the steps below.

1) place a stretch of track near a diamond crossing. The track must be completely disconnected from the rail network in order to eliminate any conflict.

2) place a trackmark on top of this stretch of track and give a name representative of the diamond crossing

3) place trackmarks around the diamond crossing so that they can be used to release the diamond crossing and reset the signals to automatic states once the entire train leaves one of these trackmarks. These trackmarks can also be used to stop the train and ask permission to control the diamond crossing using this command.

4) place some signals at appropriate places around the diamond crossing.

5) download InputTable rule (kuid:131986:1012) if you havn't done already and include it in your session. Then open the InputTable rule editor and type the following 'dcross' statement on a new line

dcross, control_name, control_trackmark, release_trackmark, signal_1,signal_2,......

where 'dcross' is a (command) name that can be recognized by the driver command.

control_name is any name you wish to give for controlling the diamond crossing. This name will also appear in driver command's menu. So it is importatnt.

control_trackmark is the name of the trackmark placed on top of the track stretch. Name it such that it represents the diamond crossing

release_trackmark is the name of the trackmark to automatically release the diamond crossing to the next available driver once the entire train leaves the trackmark.

signal_1, signal_2, ... are the names of the signals to block (i.e., to turn their lights to red) while the diamond crossing is under a driver's control. They will automatically be set to 'automatic' state once the diamond crossing is released. On this line you can enter as many signal names as the line permits.

Ex: dcross, mycontrol, mycrossing, tm3, sig2, sig4

the control name is mycontrol and the trackmark mycrossing is placed on the track stretch. Once the train leaves tm3, the crossing will be released. The signals with signal names sig2 and sig4 will be turned to red once the driver is given permission to control and released to 'automatic' once the train leaves tm3.

Once everything is setup, use ControlDiamCross driver command and assign the control name(s) to the driver(s) in the session.

As a last note, sample layouts with sample sessions are provided for download from DS. Their names and kuid numbers are

Layout: ContDiamCross (kuid:131896:1037)
Session ContDiamCross (kuid::131986:1039) (single crossing)
Layout: ContDiamCross2 (kuid:131986:1042)
Session: ContDiamCross2: (kuid:131986:1044) (multiple crossings)
It is realy easy once you download this layout along with the session


config.txt:

Файлы:
controltrackattrackmark.texture.txt 41 B
controltrackattrackmarkcommand.gs 7.1 kB
controltrackattrackmarkschedulecommand.gs 3.4 kB
tag.tga 64.0 kB
thumbnail.jpg 8.2 kB
Общий объём файлов: 82.9 kB

Версии элемента:
kuid kind name build date size
<kuid:131986:1036> drivercommand ControlDiamCross 2.5 17.07.2020 21:08:11 22.1 kB

Зависимости:
kuid author kind name build date size
<kuid:-3:10197> #-3 library ПеременныеСессии 0 2.07.2020 9:39:31 257 B
<kuid:-3:10219> #-3 library Звуковые команды 0 1.07.2020 12:56:36 8.4 kB
<kuid2:131986:1012:1> #131986 behavior InputTable 2.5 18.04.2023 15:34:16 22.3 kB
Всего связей: 3, неизвестных связей: 0

Зависимые элементы:
kuid author kind name build date size
<kuid:75284:1088> #75284 profile Wabash Railway 1887 v3-2 2.6 25.07.2023 12:50:00 123.3 kB
<kuid:131986:1039> #131986 profile ContDiamCross 2.5 22.07.2023 5:00:01 15.1 kB
<kuid:131986:1044> #131986 profile ContDiamCross2 2.5 2.08.2020 10:15:56 13.3 kB

Яндекс.Метрика


Powered by AKR © Камиль Ахметзянов aka kemal, 2011 - 2024