Ir para o conteúdo
Riot Bits

Riot Bits

  • Lar
  • Notícias
  • Guias
  • Guias de vídeo
  • Notas do Patch
  • Denunciar abuso
  • Alternar formulário de pesquisa

Febre do Transporte 2 – Guia de mod de número de estrada aleatório

postado em 01/07/2023 Por themeatballhero Sem comentários em Febre do Transporte 2 – Guia de mod de número de estrada aleatório
  • Título: Febre do Transporte 2
  • Data de lançamento:
  • Desenvolvedor:
  • Editor:
Information about Transport Fever 2 ainda está incompleto. Por favor, ajude-nos a preencher os detalhes do jogo usando este formulário de contato.

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

Introdução & Noções básicas

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, no meu Google Drive, and in the mod folder (EU IA: 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.

Há 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

Texturas & 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. Pessoalmente, I use photoshop.

Como você pode ver, 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.

Primeiro, we have the emissive mask used for lit number boards on locomotives or other various uses.

Por esta, 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.

Próximo, 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. Se não, 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

Primeiro, lets set up your numberboard emissive meshes:

{
materials = { "[seu nome]/[nome do mod]/[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 = { "[seu nome]/[nome do mod]/[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 link.

cargoSlot Provider

Aqui, 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, e 5 different digits per marking, há 4 different iterations of Random ID’s #s 1-5 for each ID (that makes 20 different slots).

No entanto, 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. Ter em mente, o

width of each number is .187m e o

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, sob "modelos" 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.

Isso é tudo o que estamos compartilhando hoje para isso Febre do Transporte 2 guia. Este guia foi originalmente criado e escrito por themeatballhero. Caso não atualizemos este guia, você pode encontrar a atualização mais recente seguindo este link.

Se você acredita que algum conteúdo deste site viola seus direitos, incluindo seus direitos de propriedade intelectual, entre em contato conosco imediatamente usando nosso formulário de contato.
Guias Tag:Febre do Transporte 2

Navegação de artigos

Postagem anterior: MX vs ATV Legends – List of All Tricks
próxima postagem: Valheim – Todos os gestos dos personagens

Deixe um comentário Cancelar resposta

O seu endereço de email não será publicado. Campos obrigatórios marcados com *

  • Título: Febre do Transporte 2
  • Data de lançamento:
  • Desenvolvedor:
  • Editor:
Information about Transport Fever 2 ainda está incompleto. Por favor, ajude-nos a preencher os detalhes do jogo usando este formulário de contato.

Isenção de responsabilidade

Todo o conteúdo citado é derivado de suas respectivas fontes. Se você acha que usamos seu conteúdo sem permissão, certifique-se de entrar em contato conosco e levaremos isso a sério.
  • Sobre nós
  • Contate-nos
  • política de Privacidade
  • Termos de serviço

direito autoral © 2025 Riot Bits.

Distribuído por PressBook Notícias tema WordPress