If I use French localization and I run kbTell then the Polish player that is playing with me on the same server will see the radio text message in French instead of Polish
Description
Details
- Legacy ID
- 1935223970
- Severity
- None
- Resolution
- Open
- Reproducibility
- N/A
- Category
- Localization
tested on hosted server with following commands:
player kbAddtopic["toto", "\a3\modules_f\supports\kb\protocol.bikb"];
hint str (player kbHasTopic "toto");
player kbTell [player,"toto","Transport_Request",true];
I am using kbTell in my mission because it allows me to use some audio files from the game (so I don't need add more to the mission).
I am using these radio messages when a player teamhits a friendly player.
The problem is the following script will display the "cease fire" message in the language of the target for both target and shooter (so if shooter is polish and the target is french then polish shooter will see "cease fire" message in french and will not understand what he's doing):
MYTARGET kbAddtopic ["SENTENCES", "sentences.bikb"];
MYTARGET kbTell
[
MYSHOOTER, "SENTENCES", ["CEASE_FIRE_1", "CEASE_FIRE_2", "CEASE_FIRE_3", "CEASE_FIRE_4"] select floor random 4, [ "MESSAGE", {}, format ["%1! %2", name MYSHOOTER, localize "STR_A3_CEASE_FIRE"], [] ], if (group MYTARGET == group MYSHOOTER) then {"GROUP"} else {"SIDE"}
];
sentences.bikb file:
class Sentences
{
class CEASE_FIRE_1
{
text = "%MESSAGE"; speech[] = {"CeaseFire"}; class Arguments { class MESSAGE {type = "simple";}; };
};
class CEASE_FIRE_2
{
text = "%MESSAGE"; speech[] = {"HoldFire"}; class Arguments { class MESSAGE {type = "simple";}; };
};
class CEASE_FIRE_3
{
text = "%MESSAGE"; speech[] = {"DoNotFire"}; class Arguments { class MESSAGE {type = "simple";}; };
};
class CEASE_FIRE_4
{
text = "%MESSAGE"; speech[] = {"CheckYourFire"}; class Arguments { class MESSAGE {type = "simple";}; };
};
};
class Arguments{};
class Special {};
startWithVocal[] = {};
startWithConsonant[] = {};
Event Timeline
I am using kbTell in my mission because it allows me to use some audio files from the game (so I don't need add more to the mission).
I am using these radio messages when a player teamhits a friendly player.
The problem is the following script will display the "cease fire" message in the language of the target for both target and shooter (so if shooter is polish and the target is french then polish shooter will see message in french and will not understand what he's doing):
MYTARGET kbAddtopic ["SENTENCES", "bikb\sentences.bikb"];
MYTARGET kbTell
[
MYSHOOTER, "SENTENCES", ["CEASE_FIRE_1", "CEASE_FIRE_2", "CEASE_FIRE_3", "CEASE_FIRE_4"] select floor random 4, [ "MESSAGE", {}, format ["%1! %2", name MYSHOOTER, localize "STR_A3_CEASE_FIRE"], [] ], if (group MYTARGET == group MYSHOOTER) then {"GROUP"} else {"SIDE"}
];
I am using kbTell in my mission because it allows me to use some audio files from the game (so I don't need add more to the mission).
I am using these radio messages when a player teamhits a friendly player.
The problem is the following script will display the "cease fire" message in the language of the target for both target and shooter (so if shooter is polish and the target is french then polish shooter will see message in french and will not understand what he's doing):
MYTARGET kbAddtopic ["SENTENCES", "bikb\sentences.bikb"];
MYTARGET kbTell
[
MYSHOOTER, "SENTENCES", ["CEASE_FIRE_1", "CEASE_FIRE_2", "CEASE_FIRE_3", "CEASE_FIRE_4"] select floor random 4, [ "MESSAGE", {}, format ["%1! %2", name MYSHOOTER, localize "STR_A3_CEASE_FIRE"], [] ], if (group MYTARGET == group MYSHOOTER) then {"GROUP"} else {"SIDE"}
];