mtr:4.0.x:content_developer
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| mtr:4.0.x:content_developer [2025/04/04 07:40] – Add custom destination CJK ratio remarks AmberFrost | mtr:4.0.x:content_developer [2026/04/14 16:09] (current) – Add remark on scripting AmberFrost | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ===== MTR 4 for Custom Content/ | + | ====== MTR 4 for Custom Content/ |
| This page documents some of the migration steps needed when loading MTR 3 custom content in MTR 4. | This page documents some of the migration steps needed when loading MTR 3 custom content in MTR 4. | ||
| - | ==== Javascript | + | ===== JS Scripting |
| - | JS Scripting from the [[mtr_addon: | + | JS Scripting from the [[mtr_addon: |
| - | ==== mtr_custom_resources.json | + | You can also explore with the new Resource Pack Creator in MTR 4 and see whether similar effects can be achieved. |
| + | |||
| + | ===== Train (Concept) ===== | ||
| + | |||
| + | In MTR 3, a train refers to a single type of train, which can be dynamically fitted with any amount of carriage length depending on the siding length. | ||
| + | |||
| + | In MTR 4, the concept of a **Train** no longer exists. Instead we now have carriage (Vehicle car), where player can mixes different carriage together to form a **train (consist)**. (Which, to the surprise of some, is actually how a train is made up in real life!) | ||
| + | |||
| + | * For MTR 4 loading legacy trains made for MTR 3, the MTR mod will try to detect and split your " | ||
| + | * For the new MTR 4 format, you are suppose to define everything per-carriage instead of a single train. | ||
| + | |||
| + | To reflect the different transport types supported in the MTR mod, **train** are now referred as **vehicle.** | ||
| + | |||
| + | ===== Custom Resources ===== | ||
| + | |||
| + | ==== mtr_custom_resources.json | ||
| * Train which uses a '' | * Train which uses a '' | ||
| * Train which does not specify a valid '' | * Train which does not specify a valid '' | ||
| * When specifying built-in MTR barrier/ | * When specifying built-in MTR barrier/ | ||
| + | |||
| + | ==== Dual-versioned resources (MTR 3 Custom Resource + MTR 4 Custom Resource) ==== | ||
| + | |||
| + | MTR 4 supports reading **mtr_custom_resources.json** in both MTR 3 and MTR 4 format. | ||
| + | |||
| + | However during migration period, you may run into a situation where some content are migrated to MTR 4, while others are not, but you want to fit them in to the same resource pack. | ||
| + | |||
| + | To that, MTR 4 supports an alias called **mtr_custom_resources_pending_migration.json**, | ||
| + | |||
| + | This allows you to put MTR 3's custom resources into **mtr_custom_resources_pending_migration.json**, | ||
| ==== Custom Model Changes ==== | ==== Custom Model Changes ==== | ||
mtr/4.0.x/content_developer.1743752444.txt.gz · Last modified: 2025/04/04 07:40 by AmberFrost