• Welcome to PiBoSo Official Forum. Please login or sign up.
 
December 08, 2024, 05:52:38 PM

GP Bikes: How to do Digital Marshal Flag

Started by adrmelandri, May 14, 2022, 06:42:53 AM

Previous topic - Next topic

adrmelandri

May 14, 2022, 06:42:53 AM Last Edit: May 14, 2022, 08:08:47 AM by adrmelandri
Digital Marshal Flags Tutorial

There is no official documentation yet for this (that I know of), so I'd like to share what PiBoso told me on how to make digital marshal flag in GPB.

Each digital marshal flag object must have a separate "light off" texture.
For example, if there are 5 digital marshal flags object in the track, then you have to create 5 "light off" texture: marshalflag00.tga, marshalflag01.tga, marshalflag02.tga, and so on.

Create a TXT file with the same name of the "light off" texture, that includes the "light on" textures filenames, e.g. marshalflag00.txt.
The "light on" texture can be used by all digital marshal flag object. So you don't need to create like 5 copies of the "light on" textures like the "light off" textures.
In the TXT file, there must be one texture for each line. The order of the flag color "light on" texture is fixed:
yellow
green
blue

For example:
marshal_yellow.tga
marshal_green.tga
marshal_blue.tga

Then finally, in the marshals.cfg file, each texture must be set like this:

flaglight0
{
  texture = marshalflag00
  long = 100
}
flaglight1
{
  texture = marshalflag01
  long = 500
}

and so on...

"long" is the position of the light on the centerline. Use TrackEd to know the "long" number. The number doesn't have to be precise.

To test if the digital flag works or not, go to testing but with rain condition, the yellow flags will always be displayed or you can test online together with somebody in any condition.
I've tested this on my work in progress ADR Race Park and Lausitzring v1.1 (look at photos) and they both work brilliant ;D



Das Leben ist kein Ponyhof.
Life is not a child's play.
https://adrmeisterwerk.wordpress.com/

matty0l215

For faster responses, please visit the discord server- HERE