Trainz/容器/附著軌道容器
外觀
附著軌道容器由kind SceneryWithTrack 用於識別軌道子容器的列表。每條軌道都從子容器的標籤名稱派生其名稱。這些名稱在指令碼中使用。每條軌道都是透過位於預設網格中的附加點自動生成的樣條軌道。
- 附著軌道在 Surveyor 中會自動更新到與其連線的樣條軌道。您可以透過新增 useadjoiningtracktype 0 來覆蓋此自動更新功能(見下文)。
- 正確的軌道末端連線方向至關重要。Y 軸必須以正確的角度指向“外”。Z 軸必須指向“上”。
每個軌道子容器都支援以下標籤和子容器。每個標籤都以其預設值顯示在此處。
track (no default value, this must be track kuid)
useadjoiningtracktype 1
vertices {}
- 型別:Kuid
- 描述:要使用的軌道的 Kuid 或樣條線。
- 型別:布林值
- 描述:如果為真(1),則軌道型別將更改為與連線到物件的第一條軌道的型別匹配。
- 型別:頂點容器
- 描述:這是一個軌道將要連線的附加點的列表。每個條目都必須有一個名稱。
TBS 標準定義
[編輯原始碼]這些標籤和容器是標準定義,幾乎所有資源中都可能存在。一些標籤是可選的,內容建立者可能不會定義它們,因為這是他們的選擇。標籤是關鍵字,並且具有單個分配的鍵值或容器,例如字串陣列或'{' ... '}' 繫結封閉的標籤值對或子容器。(在 Trainz 配置檔案中宣告的所有內容都是成對的,即使 '{' ... '}' 也被認為是一個'鍵值'.
- 容器是'鍵' 和 '鍵值' 對的集合以及 TBS 中的 '上層容器'(與子容器不同,例如縮圖容器中的子容器)通常以 '-table' 為字尾。
| kind | "'字串值'" |
| trainz-build | 'float',一位小數 |
| kuid | <Kuid 編碼值> |
| 使用者名稱 | 使用者名稱 "'字串值'" |
| 使用者名稱-XX | 使用者名稱-XX "'字串值'" |
| 描述 | 描述 "'字串值'" |
| 描述-XX | 描述-XX "'字串值'" |
| kuid-table (容器) { 依賴項列表 |
一個鍵值表,列出此資源所依賴的所有資源。 |
| obsolete-table (容器) { } |
kuids 列出此資源替換的資源(使其過時) 通常為空(空)[注 1] |
| string-table (容器) { } |
資源中使用的字串和訊息的鍵值列表 通常為空,僅在路線和會話中很大。 |
| string-table (容器[s]) { 非英語 語言文字 } |
翻譯字串列表,與強制性的英語string-table匹配 |
| category-region 標籤 列舉 程式碼 | category-region "'字串陣列'" |
| category-class 標籤 | category-class "'列舉 字串值'" |
| category-era 標籤 | category-era "'受限字串陣列'" 年代 |
| category-keyword "'字串陣列'" 最大長度為 64 位元組 | category-keyword 標籤 自然語言搜尋關鍵字 (替換型別,地區) |
| custom-category-list "'字串陣列'" |
指令碼介面功能 |
| must-have-product-rights "'字串值'" |
DRM 字串陣列 |
| must-not-have-product-rights "'字串值'" |
DRM 字串陣列 |
| 許可權 (容器) { } |
更多 DRM |
| 縮圖 (容器) { } |
縮圖容器 |
| 指令碼 (檔名) | "'字串值'" |
| 類 (指令碼資源類) | "'字串值'",必須與指令碼規範類同步。 |
| script-include-table { } |
(列出庫指令碼的容器) |
| 擴充套件 (容器) { } |
資源也使用的正式指令碼擴充套件 |
| 許可 "'字串值'" | 資源建立者的版權宣告 |
| 作者 | "身份 '字串值'" |
| 組織 | "第三方組身份 '字串值'" |
| 聯絡郵箱 | "電子郵件地址 '字串值'" |
| 聯絡網站 | "作者/組的網頁網址 '字串值'" |
| member-of-groups (容器) { } |
此資源所屬的KIND 資源組資源列表。 |
行業資源的示例config.txt 檔案,帶有標準標籤
{
kind industry
attached-track {
slc-spur {
vertices {
0 "a.track0a"
1 "a.track0b"
2 "a.track0c"
3 "a.track0d"
4 "a.track0e"
}
track <kuid:-25:893>
useadjoiningtracktype 1
}
}
attached-trigger {
unload-trigger {
att "a.unload-trigger"
radius 2.00
track "slc-spur"
}
load-trigger {
att "a.load-trigger"
radius 2.00
track "slc-spur"
}
gate-trigger {
radius 10.00
att "a.gate-trigger"
track "slc-spur"
}
}
}
下面可展開的這個是一個完整的kind buildable (industry)
light 1
height-range -10,10
attached-track
{
track_0
{
track <kuid:-1:15>
useadjoiningtracktype 1
vertices
{
0 "a.track0a"
1 "a.track0b"
}
}
}
smoke0
{
attachment "a.smoke0"
mode "time"
color 25,25,25,255
accel 0,0,0.25
start 0
rate 4
period -1
velocity 1
lifetime 2
minsize 0.25
maxsize 2
}
smoke1
{
attachment "a.smoke1"
mode "time"
color 255,255,255,150
accel 0,0,0.25
start 0
rate 4
period -1
velocity 1
lifetime 2
minsize 0.25
maxsize 2
}
obsolete-table
{
}
mesh-table
{
default
{
mesh "Brewery.im"
auto-create 1
}
}
thumbnails
{
A-fmMeshViewer
{
image "$screenshot (240).jpg"
width 240
height 180
}
B-Original
{
image "$Thumbnail.jpg"
width 240
height 180
}
}
username "business wood frame Brewery-aRus"
trainz-build 2.9
kuid <kuid2:210518:1021:2>
kind "buildable"
category-class "BB"
category-region "CA;US"
category-era "1840s;1850s;1860s;1870s;1880s;1890s;1900s;1910s;1920s;1930s"
description "username= 'business wood frame Brewery-aRus'
Original description:
Upgraded for TS2012/SP1 compatibility.
Original username: Brewery
Key Data:
trainz-build 2.9
kind 'buildable' (scenery-w-track)
useadjoiningtracktype 1
kuid <kuid2:210518:1021:2>
--------- ---------
Rev-A 2014-1016 - by Fabartus - Massage description, replace thumb with Mesh-viewer generated version, adjust smoke mode from 'constant' to 'time' (legal enumerated value), added category region and era sorting string arrays and lastly, rename asset and foldername of library per NAMCON to unified format adopted 2014-0612.
--------- ---------
Asset foldername: kuid2 210518 1021 2;v2-9;scenery-w-track business;business wood frame Brewery-aRus
Original folder: F:\TS12\UserData\editing\brewery
*****************************************************************************************************
"
author "Benjamin R. Dorsey (bendorsey)"
contact-email "withheld & deleted"
license "This item is released free of charge for your enjoyment.
You may use, redistribute, and re-skin the model as long as you do not do so for profit or include it in any package for profit."
kuid-table
{
1_track_wood <kuid:-1:15>
}
| 此參考頁面改編自 TrainzOnline Wiki,根據 CC-BY-SA 3.0 許可。此頁面可能比 同一主題的源頁面 包含更多文字解釋、說明、歷史記錄和/或示例。 TrainzOnline Wiki 主要由程式設計師或精通 內容創作者 維護,並且可能包含有關當前 trainz-build 程式碼 標準的更新資訊,這些標準隨著軟體功能的新增而不斷變化。 |