• Dear visitors,

    The email issue seems to have been finally solved.
    Thank you for your patience and happy browsing.

    Team ACM.

QUESTION Need help with flag displays

heregerezd

New Member
Hey! Im working on my first track and i want to add digital flags or flag display which is dynamic according race condition (yellow, green, red) How can i make it in AC?

An i need help with track display where the "crowd" can see the track.
 

John Harding

Active Member
Hello,

This is quite timely seen as I've just been through the process myself.

Firstly you should go through the conditions (link) part of the wiki. Here you will see that 'FLAG_TYPE' is the thing that will control the digital flags.

Then you need to use this condition to control the meshes in a digital flag, this is how it is done at Pinwheel. The 'LUT' is the output colour which is used by the KEY_0 later for the emissive colour, and all the options are pretty much self-explanatory and worth experimenting with.

Code:
[CONDITION_...]
NAME = RACING_FLAG
INPUT = FLAG_TYPE
LUT = (|0=0|1=0|2=1,1,0|3=0|4=0|5=0|6=0|7=0|8=0|9=0|10=0|11=0|12=0,0,1|13=0|14=0|)
INPUT_STAY_FOR = 1.5
INPUT_CHANGE_DELAY = 0
FLASHING_FREQUENCY = 16
FLASHING_SMOOTHNESS = 0.3
FLASHING_SKIP_OFF_STATE = 0
FLASHING_NOISE_AMPLITUDE = 0
FLASHING_MIN_VALUE = 0.0
FLASHING_SYNCED = 1
 
[MATERIAL_ADJUSTMENT_...]
ACTIVE = 1
VISIBILITY_LEVEL = 0
MESHES = DigiflagGroup01, DigiflagGroup02, DigiflagGroup03, DigiflagGroup04, DigiflagGroup05, DigiflagGroup06, DigiflagPIT
KEY_0 = ksEmissive
VALUE_0 = 255,255,255,0.025
VALUE_0_OFF = 0
KEY_1 = ksAlphaRef
VALUE_1 = -193
VALUE_1_OFF = -193
CONDITION = RACING_FLAG
I learnt a lot from this post here by Stonewaiterz.

I hope that helps,

John
 

heregerezd

New Member
Hello,

This is quite timely seen as I've just been through the process myself.

Firstly you should go through the conditions (link) part of the wiki. Here you will see that 'FLAG_TYPE' is the thing that will control the digital flags.

Then you need to use this condition to control the meshes in a digital flag, this is how it is done at Pinwheel. The 'LUT' is the output colour which is used by the KEY_0 later for the emissive colour, and all the options are pretty much self-explanatory and worth experimenting with.

Code:
[CONDITION_...]
NAME = RACING_FLAG
INPUT = FLAG_TYPE
LUT = (|0=0|1=0|2=1,1,0|3=0|4=0|5=0|6=0|7=0|8=0|9=0|10=0|11=0|12=0,0,1|13=0|14=0|)
INPUT_STAY_FOR = 1.5
INPUT_CHANGE_DELAY = 0
FLASHING_FREQUENCY = 16
FLASHING_SMOOTHNESS = 0.3
FLASHING_SKIP_OFF_STATE = 0
FLASHING_NOISE_AMPLITUDE = 0
FLASHING_MIN_VALUE = 0.0
FLASHING_SYNCED = 1
 
[MATERIAL_ADJUSTMENT_...]
ACTIVE = 1
VISIBILITY_LEVEL = 0
MESHES = DigiflagGroup01, DigiflagGroup02, DigiflagGroup03, DigiflagGroup04, DigiflagGroup05, DigiflagGroup06, DigiflagPIT
KEY_0 = ksEmissive
VALUE_0 = 255,255,255,0.025
VALUE_0_OFF = 0
KEY_1 = ksAlphaRef
VALUE_1 = -193
VALUE_1_OFF = -193
CONDITION = RACING_FLAG
I learnt a lot from this post here by Stonewaiterz.

I hope that helps,

John
Thank you! Finally the flags are working :)
 

denis370

Active Member
Hello,

This is quite timely seen as I've just been through the process myself.

Firstly you should go through the conditions (link) part of the wiki. Here you will see that 'FLAG_TYPE' is the thing that will control the digital flags.

Then you need to use this condition to control the meshes in a digital flag, this is how it is done at Pinwheel. The 'LUT' is the output colour which is used by the KEY_0 later for the emissive colour, and all the options are pretty much self-explanatory and worth experimenting with.

Code:
[CONDITION_...]
NAME = RACING_FLAG
INPUT = FLAG_TYPE
LUT = (|0=0|1=0|2=1,1,0|3=0|4=0|5=0|6=0|7=0|8=0|9=0|10=0|11=0|12=0,0,1|13=0|14=0|)
INPUT_STAY_FOR = 1.5
INPUT_CHANGE_DELAY = 0
FLASHING_FREQUENCY = 16
FLASHING_SMOOTHNESS = 0.3
FLASHING_SKIP_OFF_STATE = 0
FLASHING_NOISE_AMPLITUDE = 0
FLASHING_MIN_VALUE = 0.0
FLASHING_SYNCED = 1

[MATERIAL_ADJUSTMENT_...]
ACTIVE = 1
VISIBILITY_LEVEL = 0
MESHES = DigiflagGroup01, DigiflagGroup02, DigiflagGroup03, DigiflagGroup04, DigiflagGroup05, DigiflagGroup06, DigiflagPIT
KEY_0 = ksEmissive
VALUE_0 = 255,255,255,0.025
VALUE_0_OFF = 0
KEY_1 = ksAlphaRef
VALUE_1 = -193
VALUE_1_OFF = -193
CONDITION = RACING_FLAG
I learnt a lot from this post here by Stonewaiterz.

I hope that helps,

John
Hi
I tried to add the cripts but I only get the green that flashes, I can't figure out how to get yellow flag rules in case of stopped vehicles \ accidents, or blue for lapping, white last lap, and then red or black for other situations..
What does the first digit of the LUT mean?
example:
(0=0,0,0|
this " =0,0,0| " is the RGB color that will light up
while this zero " (0= " what does it represent?
I would like to understand how to get all the flags in the relative race situations
 

fughettaboutit

aka leBluem
Hi
I tried to add the cripts but I only get the green that flashes, I can't figure out how to get yellow flag rules in case of stopped vehicles \ accidents, or blue for lapping, white last lap, and then red or black for other situations..
What does the first digit of the LUT mean?
example:
(0=0,0,0|
this " =0,0,0| " is the RGB color that will light up
while this zero " (0= " what does it represent?
I would like to understand how to get all the flags in the relative race situations
0 is one of 16 states listed here:

edit: errors and formatting
Code:
;;; racing flags, last two missing
[CONDITION_...]
NAME=RACING_FLAG_LOCAL
INPUT=FLAG_TYPE
LUT=(|0=0|1=0,1,0|2=1,1,0|3=1,0.5,0|4=1,0.3,0|5=1,0,0|6=0.7,0.7,0.7|7=1,0.5,0.5|8=0.1,0.1,0.1|9=0,0,0.1|10=0.5,0.5,0.5|11=0.5,0.5,0.5|12=0,0,1.5|13=0,0,0|14=1,1,1|)

;;; racing flags without green, last two missing
[CONDITION_...]
NAME=RACING_FLAG_LOCAL_NO_GREEN
INPUT=FLAG_TYPE
LUT=(|0=0|1=0|2=1,1,0|3=1,0.5,0|4=1,0.3,0|5=1,0,0|6=0.7,0.7,0.7|7=1,0.5,0.5|8=0.1,0.1,0.1|9=0,0,0.1|10=0.5,0.5,0.5|11=0.5,0.5,0.5|12=0,0,1.5|13=0,0,0|14=1,1,1|)

; in mat-adjustment dont use color, just white (VALUE)
[MATERIAL_ADJUSTMENT_...]
MATERIALS = DigitalFlag
KEY_... = ksEmissive
VALUE_... = 100
VALUE_OFF_... = 0 ; ORIGINAL
KEY_... = ksAlphaRef  ; optional
VALUE_... = -193 ; more glow
VALUE_OFF_... = 0
CONDITION = RACING_FLAG_LOCAL
 
Last edited:

denis370

Active Member
Thank you very much, they work but not very well...
It gives the green flag, but if there are exits from the track or accidents it does not give the yellow flag..
I would like to ask you another thing if you know it...
to open the pit doors when a car stops, how should this script be compiled?

Is there a track that uses this script to open the doors so I can see how it is set up?
 

Johnr777

Moderator
Thank you very much, they work but not very well...
It gives the green flag, but if there are exits from the track or accidents it does not give the yellow flag..
I would like to ask you another thing if you know it...
to open the pit doors when a car stops, how should this script be compiled?

Is there a track that uses this script to open the doors so I can see how it is set up?
Gunnar's Sachsenring
 
Top