Ga naar de inhoud
Rel-bits

Rel-bits

  • Thuis
  • Nieuws
  • Gidsen
  • Videogidsen
  • Patch-opmerkingen
  • Misbruik melden
  • Toggle zoekformulier

Vervoer koorts 2 – Random Road Number Mod Guide

Geplaatst op 01/07/2023 Deur themeatballhero Geen reacties op Vervoer koorts 2 – Random Road Number Mod Guide
  • Titel: Vervoer koorts 2
  • Releasedatum:
  • Ontwikkelaar:
  • Uitgever:
Information about Transport Fever 2 is nog steeds onvolledig. Help ons alstublieft de details van het spel hiermee in te vullen contactformulier.

Adressen voor modders hoe te incoproeren en hoe de willekeurige nummermod werkt.

Invoering & Basisprincipes

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

De mod voert kleine textuurbestanden uit rond 250 kb met 10 Verschillende kubus mazen. 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 (Id: 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.

Er zijn 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

Texturen & 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. Persoonlijk, I use photoshop.

Zoals je kunt zien, 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.

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

Hiervoor, 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.

Volgende, 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. Zo niet, 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

Eerst, lets set up your numberboard emissive meshes:

{
materials = { "[your name]/[mod -naam]/[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]/[mod -naam]/[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

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

Echter, 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. Houd er rekening mee, de

width of each number is .187m en de

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, onder "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.

Dat is alles wat we vandaag hiervoor delen Vervoer koorts 2 gids. Deze handleiding is oorspronkelijk gemaakt en geschreven door themeatballhero. Voor het geval we er niet in slagen deze handleiding bij te werken, U kunt de laatste update vinden door dit te volgen link.

Als u van mening bent dat de inhoud van deze site uw rechten schendt, inclusief uw intellectuele eigendomsrechten, neem dan direct contact met ons op via ons contactformulier.
Gidsen Labels:Vervoer koorts 2

Bericht navigatie

Vorig bericht: MX vs ATV Legends – List of All Tricks
Volgende bericht: Valheim – All Character Emotes

Geef een reactie Reactie annuleren

Je e-mailadres wordt niet gepubliceerd. Vereiste velden zijn gemarkeerd met *

  • Titel: Vervoer koorts 2
  • Releasedatum:
  • Ontwikkelaar:
  • Uitgever:
Information about Transport Fever 2 is nog steeds onvolledig. Help ons alstublieft de details van het spel hiermee in te vullen contactformulier.

Vrijwaring

Alle geciteerde inhoud is afgeleid van hun respectieve bronnen. Als u denkt dat wij uw inhoud zonder toestemming hebben gebruikt, Zorg ervoor dat u ons bereikt en wij zullen het serieus nemen.
  • Over ons
  • Neem contact met ons op
  • Privacybeleid
  • Servicevoorwaarden

Auteursrecht © 2025 Rel-bits.

Aangedreven door PersBoek Nieuws WordPress thema