Page 1 of 1

Changing gameoptions message in the chat

Posted: 31 March 2022, 11:45
by disu
Hi,
I have some option in my alpha game. When I change one of them in the lobby, a message appear in the chat to inform players.
  • Textual option (specified with 'values' => array(0 => array( 'name' => totranslate('XXXX') ), 0 => array( 'name' => totranslate('YYYY') )) ) insert a readable message in the chat.
  • Numeric option (specified with 'values' => array(0 => array( 'name' => 0), 1 => array( 'name' => 1)) ) shown a message like: "OPTION_NAME changes to:
    gameoptions_4913_2.
Question 1:
Maybe this is because numbers doesn't pass from translation engine (totranslate function)? I don't need to traslate them, how can I show in chat "OPTION_NAME changes to: 2"?

Question 2:
Seems that in studio also textual options are not shown correctly. How can I test it?

Thanks