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

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

Репозиторий

<kuid:131986:1047> ControlDiamCross2004

Тип: Команда
Опубликовано: 17.07.2020 9:13:59
Скачиваний: 49
Размер: 24.4 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 WorkTable rule (kuid2:131986:230102:3) 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 to the driver in the session.

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

Layout: Crossing04 (kuid:131896:100002)
Session Crossing04 (kuid::131986:100003)


config.txt:

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

Версии элемента:
kuid kind name build date size
<kuid:131986:1047> drivercommand ControlDiamCross2004 2.4 17.07.2020 9:13:59 24.4 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:230102:3> #131986 behavior WorkTable 2.4 5.06.2020 18:52:31 27.0 kB
Всего связей: 3, неизвестных связей: 0

Зависимые элементы:
kuid author kind name build date size
<kuid:131986:100003> #131986 profile Crossing04 2.4 14.07.2023 0:19:06 2.4 kB

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


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