Jump to content
    1. Welcome to GTAForums!

    1. GTANet.com

    1. GTA Online

      1. Los Santos Drug Wars
      2. Updates
      3. Find Lobbies & Players
      4. Guides & Strategies
      5. Vehicles
      6. Content Creator
      7. Help & Support
    2. Red Dead Online

      1. Blood Money
      2. Frontier Pursuits
      3. Find Lobbies & Outlaws
      4. Help & Support
    3. Crews

    1. Grand Theft Auto Series

      1. Bugs*
      2. St. Andrews Cathedral
    2. GTA VI

    3. GTA V

      1. Guides & Strategies
      2. Help & Support
    4. GTA IV

      1. The Lost and Damned
      2. The Ballad of Gay Tony
      3. Guides & Strategies
      4. Help & Support
    5. GTA San Andreas

      1. Classic GTA SA
      2. Guides & Strategies
      3. Help & Support
    6. GTA Vice City

      1. Classic GTA VC
      2. Guides & Strategies
      3. Help & Support
    7. GTA III

      1. Classic GTA III
      2. Guides & Strategies
      3. Help & Support
    8. Portable Games

      1. GTA Chinatown Wars
      2. GTA Vice City Stories
      3. GTA Liberty City Stories
    9. Top-Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    1. Red Dead Redemption 2

      1. PC
      2. Help & Support
    2. Red Dead Redemption

    1. GTA Mods

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Red Dead Mods

      1. Documentation
    3. Mod Showroom

      1. Scripts & Plugins
      2. Maps
      3. Total Conversions
      4. Vehicles
      5. Textures
      6. Characters
      7. Tools
      8. Other
      9. Workshop
    4. Featured Mods

      1. Design Your Own Mission
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Rockstar Games

    2. Rockstar Collectors

    1. Off-Topic

      1. General Chat
      2. Gaming
      3. Technology
      4. Movies & TV
      5. Music
      6. Sports
      7. Vehicles
    2. Expression

      1. Graphics / Visual Arts
      2. GFX Requests & Tutorials
      3. Writers' Discussion
      4. Debates & Discussion
    1. Announcements

    2. Support

    3. Suggestions

Text Help


Pie015
 Share

Recommended Posts

Maybe it depends. You can use a pointer if you can comprehend such things. Then the text is "hard coded" into your script.

 

 

//Text Block0A9F: [email protected] = current_thread_pointer [email protected] += 16 0A8D: [email protected] = read_memory [email protected] size 4 virtual_protect 0 [email protected] -= @TEXT [email protected] += 4 //Game Version Checkwait 00AA9:   is_game_version_originaljf @REALCOPS_200   0AA5: call 0x588BE0 num_params 4 pop 4 0 0 0 [email protected]   jump @REALCOPS_210:REALCOPS_200   0AA5: call 0x5893B0 num_params 4 pop 4 0 0 0 [email protected]   jump @REALCOPS_210:TEXT0900: unknown_set_object "You have about 30 seconds before this ~r~witness~w~ tells the cops." 0000: NOP //End Text Block:REALCOPS_210

 

 

Ok let's examine this code which I used in my "REAL cops mod".

 

The first line sets local variable [email protected] to the address where our script starts. The next 4 lines of code points at the :TEXT label. The next section checks the game version because the original stores the "text box" command at 0x5893B0 address and the other at 0x588BE0. So the line; 0AA5: call 0x5893B0 num_params 4 pop 4 0 0 0 [email protected] places the text line into the text box.

 

Meanwhile the NOP stands for no operation which tells the program that is the end of the string of text. Depending on your skill you could write up a simple subroutine (gosub return) to display many lines of text. In fact, I am working on a detailed example of this.

 

Now the other way not only requires you to make a fxt file but requires the people who download it to use it correctly. I am not calling people foolish but the method above creates 1 file and makes it fool proof.

 

There is one other thing you can do to make life simple for yourself. Make certain what you want to say isn't already inside the game script someplace. Load up the GTASAGXT.text and do a simple search for it in there.

 

Link to comment
Share on other sites

If you are making a cleo mission or script yes

Whats wrong with this script? I created a .fxt and put in the CLEO_TEXT folder

 

 

{$VERSION 3.1.0027}{$CLEO .cs}//-------------MAIN---------------thread 'ICON_HELP'wait 100A95: [email protected] = Pickup.Create(1239, 15, 2492.348, -1700.365, 1018.344)wait 1000if  Pickup.Picked_up([email protected])03E5: show_text_box 'ICON'0A93: end_custom_thread

 

 

and heres the .fxt

 

 

ICON Head over to Binco and pickup the icon and type model to scroll through models, press ~k~~CONVERSATION_YES~ and ~k~~CONVERSATION_NO~ to select. If you want CJ back, go to Binco again.

 

Link to comment
Share on other sites

The wait 10 is not needed here. You need a label and loop. Wait 0 is better than waiting 1 second.

 

 

{$VERSION 3.1.0027}{$CLEO .cs}//-------------MAIN---------------thread 'ICON_HELP'0A95: [email protected] = Pickup.Create(1239, 15, 2492.348, -1700.365, 1018.344):loopwait 0if Pickup.Picked_up([email protected])jf @loop03E5: show_text_box 'ICON'0A93: end_custom_thread

 

 

 

Link to comment
Share on other sites

  • 2 weeks later...

Hi guys, I know im bumping this topic confused.gif But I want to ask a question about text

 

Can we do this kind of text in single???

 

user posted image

Link to comment
Share on other sites

 

Have a look here

Thanks biggrin.gif Is there any way to add colour? Oh and is there any way to make it permanent?

 

 

// This file was decompiled using sascm.ini published by Seemann (http://sannybuilder.com/files/SASCM.rar) on 21/6/2010{$VERSION 3.1.0027}{$CLEO .cs}//-------------MAIN---------------thread 'ICON_HELP' 0A95: enable_thread_saving [email protected] = Pickup.Create(1239, 23, 2430.4353, -1670.5217, 13.5691):loopwait 0 if 00FE:   actor $PLAYER_ACTOR sphere 0 in_sphere  2430.4353 -1670.5217 13.5691 radius 1.0 1.0 1.0 jf @loop 00BA: show_text_styled FXT 'ICON' time 4000 style 10A93: end_custom_thread

 

Link to comment
Share on other sites

Thanks biggrin.gif Is there any way to add colour?

Add ~r~, ~g~, ~b~, ~p~, ~w~ or ~y~ before word, that you want to have a color, and ~s~after it.

 

I think that there is a full list somewhere.

Link to comment
Share on other sites

Thanks biggrin.gif Is there any way to add colour?

Add ~r~, ~g~, ~b~, ~p~, ~w~ or ~y~ before word, that you want to have a color, and ~s~after it.

 

I think that there is a full list somewhere.

biggrin.gif Thanks! What are the colours? cool.gif

Link to comment
Share on other sites

R = Red

G = Green

B = Blue

W = White

Y = Yellow

 

Doesn't take a genious to work that out wink.gif

Link to comment
Share on other sites

R = Red

G = Green

B = Blue

W = White

Y = Yellow

 

Doesn't take a genious to work that out wink.gif

*joyful yay* But when I pick it up it works fine but the second time the text dosent show. notify.giforly.gif

Link to comment
Share on other sites

Is it just me, or are you going for Redgies Roleplay on single player?

 

You're using the wrong pickup type. Try 1 or re-creating the pickup on pick up.

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • 1 User Currently Viewing
    0 members, 0 Anonymous, 1 Guest

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.