Sloth- Posted February 11, 2013 Share Posted February 11, 2013 Hi, I am learning all the instructions to display texts on screen, and i'm doing the following: With X GXT Editor, i opened the "american.gxt", and choosed the option "Add table", and once i created a table, i added an item (that was supposed to be my own text), hoping to show it on screen ingame, but the result is that nothing shows, only the items that are already created in the gxt. For example: 00BA: show_text_styled GXT 'BEEFY' time 3000 style 1 00BA: show_text_styled GXT 'DEFTITLE' time 3000 style 1 For the first command, the title "Beefy Baron" appears on the screen succesfully, but the second title (added in the american.gxt by myself) don't. Is there any way to do it? Is there any other file which i must modify before i can use my own tables and items? Link to comment Share on other sites More sharing options...
Jack Posted February 11, 2013 Share Posted February 11, 2013 You can use CLEO for creating your own texts on the screen. Create a txt document, put this in it: fxt_001 your text save it then rename extension .txt to .fxt and put it in the CLEO_TXT folder. After that use some of the text opcodes in scrypt to read the text from the fxt document you just created: 00BC: text_highpriority 'fxt_001' 3000 ms 1 Tank Fire [SA] New Police Helicopter [VC & III] My YouTube Channel Link to comment Share on other sites More sharing options...
ZAZ Posted February 11, 2013 Share Posted February 11, 2013 This entry will never work: 'DEFTITLE' max. 7 charackters are valid like this: 'DEFTITL' CLEO MODS CLEO Script Tutorial Link to comment Share on other sites More sharing options...
Sloth- Posted February 11, 2013 Author Share Posted February 11, 2013 You can use CLEO for creating your own texts on the screen. Create a txt document, put this in it: fxt_001 your text save it then rename extension .txt to .fxt and put it in the CLEO_TXT folder. After that use some of the text opcodes in scrypt to read the text from the fxt document you just created: 00BC: text_highpriority 'fxt_001' 3000 ms 1 Thank you! But i would prefer avoid the use of cleo scripts for the moment. This entry will never work: 'DEFTITLE'max. 7 charackters are valid like this: 'DEFTITL' Thanks! I didn't know that. But i just want to let you know that, even with a better name, the command wasn't working, but i found the solution! I have to begin with the command: 054C: use_GXT_table 'PD', where PD is the name of my table. It was a little strange, because with some text it wasn't necessary to use that command in order to show the text, but there was other predefined texts in the american.gxt that did't show, like my own text. Well, thanks for your help! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now