Changes

Jump to navigation Jump to search

Documentation/Engine/Units/sound data voice navigation

1,399 bytes added, 14:24, 11 July 2019
Sound data folder
'''Sound data - voice navigation pack'''
The each Each voice navigation voice pack is defined in a separate configuration file.
Configuration file is located in this game data folder:
/base/sound/navigation
File is very simply simple unit with this these attributes:
== Attributes ==
{|class="wikitable"
|string
|
|Name of the pack (shown in the game). Format "<code>Language</code> - <code>Actor name</code> (<code>Optional Variant</code>)" (e.g. <code>"English - Skye (UK)"</code>)
|-
|pack_dir
|Name of the folder with sound files. (e.g. <code>pack_dir: "/sound/navigation/english_skye_uk"</code>)
|}
Good practice is to use the same name for the configuration unity unit file and for the folder with sound data.
== Sound data folder ==
Files with the same prefix are used for the same command and their usage is randomized.
(''We strongly recommend using only one file commandsfor each traffic command. Randomization of this is very unintuitive.'')
{|class="wikitable"
!Remark
|-
|and_then_exit_leftturn_left|"Turn left."||-|turn_right|"Turn right."||-|keep_left|"Keep left."||-|keep_right|"Keep right."||-|exit_left|"Exit left."||-|exit_right|"Exit right."||-|go_straight|"Go straight on."||-|roundabout_1|"At the roundabout take the first exit."||-|roundabout_2|"At the roundabout take the second exit."||-|roundabout_3|"At the roundabout take the third exit."||-|roundabout_4|"At the roundabout take the fourth exit."||-|roundabout_5|"At the roundabout take the fifth exit."||-|roundabout_6|"At the roundabout take the sixth exit."||-|exit_now|"Exit now."|''Used on roundabout.''|-|prepare_turn_left|"Get ready to turn left."||-|prepare_turn_right|"Get ready to turn right."||-|prepare_exit_left|"Get ready to exit left. and then "||-|prepare_exit_right|"Get ready to exit right."||-|compound_turn_left|"Turn left ..."|''The first part of the compound command.''|-|compound_turn_right|"Turn right ..."|''The first part of the compound command.''|-|compound_keep_left|"Keep left..."|''The first part of the compound command.''|-|compound_keep_right|"Keep right ..."|''The second first part of the compound command.''|-|compound_exit_left|"Exit left ..."|''The first part of the compound command.''|-|compound_exit_right|"Exit right ..."|''The first part of the compound command.''|-|compound_go_straight|"Go straight on ..."|''The first part of the compound command.''
|-
|and_then_exit_rightand_then_turn_left|"... and then exit rightturn left."
|''The second part of the compound command.''
|-
|and_then_go_straightand_then_turn_right|"... and then continue straight onturn right."
|''The second part of the compound command.''
|-
|''The second part of the compound command.''
|-
|and_then_turn_leftand_then_exit_left|"... and then turn exit left."
|''The second part of the compound command.''
|-
|and_then_turn_rightand_then_exit_right|"... and then turn exit right."
|''The second part of the compound command.''
|-
|compound_exit_leftand_then_go_straight|"Exit left ... and then continue straight on."|''The first second part of the compound command.''
|-
|compound_exit_rightstart|"Exit right .e.g."OK, here we go!"|''The first part Start of the compound commandnew route. Good for randomization.''
|-
|compound_go_straightfinish|e.g. "Go straight on Here we are..."|''The first part End of the compound commandroute. Good for randomization.''
|-
|compound_keep_leftrecomputing|e.g. "Keep left Recomputing..."|''The first part of Used when the player leaves the compound commandselected path. Good for randomization.''
|-
|compound_keep_rightu_turn|"Keep right ..Make a u-turn."|''The first part of the compound commandGood for randomization.''
|-
|compound_turn_left|"Turn left ..."speed_signal|(''The first part of the compound Only acoustic signal, no voice command.'')|
|-
|compound_turn_rightspeed_warning|"Turn right ..Caution, please mind the speed limit."|''The first part of the compound commandWarning when speed is exceeded.'' 
|}

Navigation menu