Closed nonunknown closed 2 years ago
All built-in commands of the game cannot directly output strings. It uses the call text to display the string, the parameter of the command is actually the "Key Name" of the string:
03E5 Text.PrintHelp(key: gxt_key)
Key string
CLEO1 Hello GTA
Text.PrintHelp('CLEO1')
It will display "hello GTA" correctly
If you are a player of the classic GTA trilogy, you should know how to use fxt files to customize text in CLEO. Unfortunately, currently CLEO Redux does not support custom text, so it has this problem. It may take a long time to support.
2.The length of "key name" is too long, causing the game to crash and report an error?
Same as above. "key name" is a short string. It certainly has a length limit.Because it only serves as a name
3.Turn off the subtitles displayed by the DISPLAY_TEXT command?
03F0 USE_TEXT_COMMANDS
Text.UseCommands(state: bool)
1=enable 0=Disable
There are many types of TEXT commands in the game, and they have independent close commands. All text commands with coordinates are closed with 03F0. In addition, when calling the texture command, you need to turn on
I have a similar problem, SA:DE supports Chinese, but I don’t know what encoding it is, so every time I try to use them, I always get garbled characters.
I have a similar problem, SA:DE supports Chinese, but I don’t know what encoding it is, so every time I try to use them, I always get garbled characters.
In fact, you cannot use Chinese. Because the name of the current Text command output is "key name", the game only uses English "key name". There is currently no command to directly display custom strings.
The fxt text of the classic GTA is currently not supported. Even if it supports, it is impossible to fill in Chinese directly. As you said, they have different encodings. But I don’t think it is necessary to support Chinese
CLEO 0.8.5 supports FXT for custom text content https://github.com/cleolibrary/CLEO-Redux/blob/master/using-fxt.md
PS: Using javascript
First bug is, every time you call any method from the class Text which creates a text on screen the word
missing!
appears in front of it:Secong bug is, if your string is too big, the game closes without any crash message:
Third bug: Using
Text.Display()
has no method to clear it() like Help and PrintI took some reading about menus in CLEO and seems you need to create GXT in order to show strings in-game, and to solve that maybe a GXT class should exists? like
Text.Print(GXT("any string here"),500,0)