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. Forum Support

    3. Suggestions

[GTAVC][main.scm]0390: load_txd_dictionary Limit? [HELP]


DoubleVision
 Share

Recommended Posts

DoubleVision

Is it possible to load more than 9 texture dictionaries for GTA VC (main.scm)?

I tried adding more than 9 (example: 038F: load_texture 'NEWS2' as 10 // Load dictionary with 0390 first)

& the game would freeze. Any way around this? Thanks

 

Thus is the script:

 

:FILE
03A4: name_thread 'FILE'
0390: load_txd_dictionary 'FILE' // never used in VC or GTA 3

:FILE_20
0001: wait 1000 ms
00D6: if and
8112: not wasted_or_busted
03EE: player $PLAYER_CHAR controllable
00E1: player 0 pressed_button 18 ///crouch
00E1: player 0 pressed_button 19 ///look behind
80E0: not player $PLAYER_CHAR driving
004D: jump_if_false @FILE_20
03BF: set_player $PLAYER_CHAR ignored_by_everyone_to 1 ///ignored
038F: load_texture 'BECKY' as 1 // Load dictionary with 0390 first
038F: load_texture 'LOCK' as 2 // Load dictionary with 0390 first
038F: load_texture 'MAP' as 3 // Load dictionary with 0390 first
038F: load_texture 'JILL' as 4 // Load dictionary with 0390 first
038F: load_texture 'INTRO1' as 5 // Load dictionary with 0390 first
038F: load_texture 'INTRO2' as 6 // Load dictionary with 0390 first
038F: load_texture 'INTRO3' as 7 // Load dictionary with 0390 first
038F: load_texture 'INTRO4' as 8 // Load dictionary with 0390 first
038F: load_texture 'NEWS' as 9 // Load dictionary with 0390 first
0004: $FILES = 1 // integer values
0001: wait 500 ms

:FILE_111
0001: wait 0 ms
03F0: enable_text_draw $FILES
038D: draw_texture $FILES position 412.0 350.0 size 800.0 712.0 RGBA 255 255 255 255 // never used in VC or GTA 3 //038D: draw_texture $FILES position 512.0 384.0 size 768.0 512.0 RGBA 255 255 255 255was
00D6: if
80E1: not player 0 pressed_button 10
004D: jump_if_false @FILE_230
00D6: if
80E1: not player 0 pressed_button 11
004D: jump_if_false @FILE_274
00D6: if or
00E0: player $PLAYER_CHAR driving
00E1: player 0 pressed_button 15 ///y button
004D: jump_if_false @FILE_111
03BF: set_player $PLAYER_CHAR ignored_by_everyone_to 0 ///not ignored
0004: $FILES = 50 // integer values
0001: wait 2500 ms
0002: jump @FILE_20

:FILE_230
0001: wait 250 ms
000C: $FILES -= 1 // integer values
00D6: if
002A: 0 >= $FILES // integer values
004D: jump_if_false @FILE_111
0004: $FILES = 9 // integer values ///complete files in total
0002: jump @FILE_111

:FILE_274
0001: wait 250 ms
0008: $FILES += 1 // integer values
00D6: if
0028: $FILES >= 10 // integer values ///one number higher than the total of files
004D: jump_if_false @FILE_111
0004: $FILES = 1 // integer values
0002: jump @FILE_111

Link to comment
Share on other sites

Ummm, you are using GTA SA Opcodes for VC, in vice city you can't draw textures, there simply is no opcode for it...

 

 

But if you were to use this for SA, you would load them and release them when you are done...

0391: release_textures

Edited by deltaCJ
Link to comment
Share on other sites

DoubleVision

@deltaCJ: Thanks for replying!

 

I have this working in Vice City. It works. I just want to add more. Is #9 the max number I can use?

 

for examle can I add more after 9 and how do I name them? Thanks

Link to comment
Share on other sites

@deltaCJ: Thanks for replying!

 

I have this working in Vice City. It works. I just want to add more. Is #9 the max number I can use?

 

for examle can I add more after 9 and how do I name them? Thanks

 

 

Well, I am guessing this is cleo? (I've messed with VC Scm, but never to the extent of textures lol :p)

 

Anyways you could always do it where once the $FILE >= 1 you release the first texture, and when it is $FILE >=2 you release the second one

 

 

EDIT: They are already named when you load them

 

EDIT2: You can also add more everytime you release a texture

Edited by deltaCJ
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.