تخطى الى المحتوى
أعمال الشغب

أعمال الشغب

  • بيت
  • أخبار
  • خطوط إرشاد
  • أدلة الفيديو
  • ملاحظات التصحيح
  • بلغ عن سوء معاملة
  • تبديل شكل البحث

Transport Fever 2 – Random Road Number Mod Guide

نشر على 01/07/2023 بواسطة themeatballhero لا تعليقات على Transport Fever 2 – Random Road Number Mod Guide
  • عنوان: Transport Fever 2
  • تاريخ الافراج عنه:
  • المطور:
  • الناشر:
Information about Transport Fever 2 لا يزال غير مكتمل. الرجاء مساعدتنا في ملء تفاصيل اللعبة باستخدام هذا نموذج الاتصال.

Addresses for modders how to incoproate and how the random number mod works.

مقدمة & الأساسيات

Random numbers is a low resource cost solution to cleaning up the buy menu while adding more realism to your consists.

The mod runs off small texture files around 250kb with 10 different cube meshes. Each is UVed next to each other for different numbers. In the code, it uses custom loads in the mdl to achieve this.

The PSD is in two places, in my Google Drive, and in the mod folder (بطاقة تعريف: 2913933660). My google drive also contains a .blend file and obj containing the needed mesh files for modders to incorporate and easily access values for rotations and scaling and transforms needed for the custom cargo slots in the vehicle’s mdl.

هناك 14 fonts included in the base mod, in white (and one for the UG boxcar):

  • CarKnocker
  • Helvetica Neue LT Std
  • Pressure Tank
  • RRoman
  • Railtnk1
  • Railtnk2
  • Rrnumber1
  • Rrnumber2
  • Rrnumber3
  • Rrnumber4
  • Rrnumber5
  • RRoman 1916
  • RRoman 1916 Ultra Expanded
  • RTTX

Textures & the UV Map

Above is an example of the font using the rroman font. It uses a blank background with the color white chosen for the font. You can change the color of the font to your liking in your image editing program. شخصيا, I use photoshop.

كما ترون, the numbers are arranged in a way for each mesh to read the texture. The image size is 1024×256.

These images must be interpolated alpha (dxt5/bc3) with the transparent background.

The walls are indicated below:

PSD Overview

To the right is the structure of each font.

أولاً, we have the emissive mask used for lit number boards on locomotives or other various uses.

For this, you will need a large mesh (#1), behind the numbers meshes (#2).

#1 will be an emissive type material, and preferably a separate object, so you can duplicate it in your mdl for when they’re not lit. When it’s not lit, you’ll need mesh #1 to be white/the color of your choice for the number board digits. I’ll cover this more in the MDL section.

التالي, we have the grunge overlay, which uses a clipping mask tied to the folder below containing the text for each digit. This layer (the grunge) is at 30% opacity, feel free to adjust to your own needs.

I should note I use Photoshop, so I’m not aware if clipping masks are a feature offered in Gimp or paint.net. إذا لم يكن كذلك, you will have to come up with another method or just ditch the grunge. Photopea.com may have it however, it’s very close to the UI of PS.

Shout out to YeastCheese for sending me those grunge textures.

Folder Structure

This is important because going forward, we need to think of all the different font materials that will be used over time.

The MTL folder structure should be used as below:

/res/models/material/meatball/loads/fonts/[font name]_[font color].mtl

The MDL structure:

/res/models/model/vehicle/waggon/fonts/[font name]/[font color]/[mdl files]

Meshes should not be included in your mod, require the base set for your mod as a dependency.

MDL Section

Setting Up the Emissives

أولاً, lets set up your numberboard emissive meshes:

{
materials = { "[your name]/[اسم وزارة الدفاع]/[other folders]/numberboard_background_emmissive.mtl", },
mesh = "[path to your numberboard background mesh]",
name = "Lit Numberboard",
transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, },
},
{
materials = { "[your name]/[اسم وزارة الدفاع]/[other folders]/numberboard_background_physical.mtl", },
mesh = "[path to your numberboard background mesh, should be same as above]",
name = "Unlit Numberboard",
transf = { 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, },
},
Metadata

I would say its incredibly important to give a read over at the wiki regarding custom loads to get a better understanding of the feature, here’s the وصلة.

cargoSlot Provider

هنا, is the first step. This is where you define the paths, transforms and the random ID.

A random ID is a number that, whenever another slot has a matching ID, they will share the same

number choice by the AI. This is how you can have the same road number showing all over one vehicle.

So with this said, if you want two different locations of road numbers (IE one on each side), then you’ll need two instances of each random ID.

Due to character limits in this steam guide, take a look at this mdl for the boxcar.

Because I wanted a road number marking on each side of the vehicle, و 5 different digits per marking, هناك 4 different iterations of Random ID’s #s 1-5 for each ID (that makes 20 different slots).

لكن, if you take notice of Random ID #1 in each one, I have only one mdl referenced, #9. I did this so because I wanted any number generated (the number seen in game) to always start with “9”. You can do this with any digit in the road number.

To get the transforms, rotations, and scales of the numbers, I use the model editor. ضع في اعتبارك, ال

width of each number is .187m و

height is .211m.

This is where using Blender or another 3d model application is helpful in getting the rotations, especially for numberboards.

cargoEntries

{
loadConfigs = {
{
cargoEntries = {
{
capacity = 4, --make this a low number but not 0 so the train will display any open loads as well
customCargoModels = {
configurations = {
{
slotLevels = {
{ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, },--this makes it always show regardless of if car is filled or not. You need to list all slot IDs (numbers next to each slot in the Cargo Slot Provider section, under "models" in the model editor)
},
},
},
},
seats = { },
type = "IRON_ORE",--because these are supposed to contain industry loads, you have to define a type. Make it any vanilla industry type.
},
},
toHide = { },
},
},
},

I encourage you once again to take a look at the wiki to understand the slotLevel section a bit more.

هذا كل ما نشاركه اليوم من أجل هذا Transport Fever 2 مرشد. تم إنشاء هذا الدليل وكتابته في الأصل بواسطة themeatballhero. في حالة فشلنا في تحديث هذا الدليل, يمكنك العثور على آخر تحديث باتباع هذا وصلة.

إذا كنت تعتقد أن أيًا من محتويات هذا الموقع ينتهك حقوقك, بما في ذلك حقوق الملكية الفكرية الخاصة بك, يرجى الاتصال بنا على الفور باستخدام نموذج الاتصال الخاص بنا.
خطوط إرشاد العلامات:Transport Fever 2

آخر الملاحة

المنشور السابق: MX vs ATV Legends – List of All Tricks
المشاركة التالية: Valheim – All Character Emotes

ترك الرد إلغاء الرد

لن يتم نشر عنوان بريدك الإلكتروني. تم وضع علامة على الحقول المطلوبة *

  • عنوان: Transport Fever 2
  • تاريخ الافراج عنه:
  • المطور:
  • الناشر:
Information about Transport Fever 2 لا يزال غير مكتمل. الرجاء مساعدتنا في ملء تفاصيل اللعبة باستخدام هذا نموذج الاتصال.

تنصل

ويستمد كل محتوى استشهد من مصادرها الخاصة. إذا كنت تعتقد أننا استخدمنا المحتوى الخاص بك دون إذن, تأكد من الوصول إلينا وسنأخذ الأمر على محمل الجد.
  • معلومات عنا
  • اتصل بنا
  • سياسة الخصوصية
  • شروط الخدمة

حقوق النشر © 2025 أعمال الشغب.

مشغل بواسطة PressBook News وورد موضوع