DoubleVision Posted May 10, 2017 Share Posted May 10, 2017 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: :FILE03A4: name_thread 'FILE'0390: load_txd_dictionary 'FILE' // never used in VC or GTA 3 :FILE_200001: wait 1000 ms00D6: if and8112: not wasted_or_busted03EE: player $PLAYER_CHAR controllable00E1: player 0 pressed_button 18 ///crouch00E1: player 0 pressed_button 19 ///look behind80E0: not player $PLAYER_CHAR driving004D: jump_if_false @FILE_2003BF: set_player $PLAYER_CHAR ignored_by_everyone_to 1 ///ignored038F: load_texture 'BECKY' as 1 // Load dictionary with 0390 first038F: load_texture 'LOCK' as 2 // Load dictionary with 0390 first038F: load_texture 'MAP' as 3 // Load dictionary with 0390 first038F: load_texture 'JILL' as 4 // Load dictionary with 0390 first038F: load_texture 'INTRO1' as 5 // Load dictionary with 0390 first038F: load_texture 'INTRO2' as 6 // Load dictionary with 0390 first038F: load_texture 'INTRO3' as 7 // Load dictionary with 0390 first038F: load_texture 'INTRO4' as 8 // Load dictionary with 0390 first038F: load_texture 'NEWS' as 9 // Load dictionary with 0390 first0004: $FILES = 1 // integer values0001: wait 500 ms:FILE_1110001: wait 0 ms03F0: enable_text_draw $FILES038D: 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 255was00D6: if80E1: not player 0 pressed_button 10004D: jump_if_false @FILE_23000D6: if80E1: not player 0 pressed_button 11004D: jump_if_false @FILE_27400D6: if or00E0: player $PLAYER_CHAR driving00E1: player 0 pressed_button 15 ///y button004D: jump_if_false @FILE_11103BF: set_player $PLAYER_CHAR ignored_by_everyone_to 0 ///not ignored0004: $FILES = 50 // integer values0001: wait 2500 ms0002: jump @FILE_20:FILE_2300001: wait 250 ms000C: $FILES -= 1 // integer values00D6: if002A: 0 >= $FILES // integer values004D: jump_if_false @FILE_1110004: $FILES = 9 // integer values ///complete files in total0002: jump @FILE_111:FILE_2740001: wait 250 ms0008: $FILES += 1 // integer values00D6: if0028: $FILES >= 10 // integer values ///one number higher than the total of files004D: jump_if_false @FILE_1110004: $FILES = 1 // integer values0002: jump @FILE_111 Link to comment Share on other sites More sharing options...
deltaCJ Posted May 10, 2017 Share Posted May 10, 2017 (edited) 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 May 10, 2017 by deltaCJ Link to comment Share on other sites More sharing options...
DoubleVision Posted May 10, 2017 Author Share Posted May 10, 2017 @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 More sharing options...
deltaCJ Posted May 10, 2017 Share Posted May 10, 2017 (edited) @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 ) 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 May 10, 2017 by deltaCJ Link to comment Share on other sites More sharing options...
DoubleVision Posted May 10, 2017 Author Share Posted May 10, 2017 Nice! Thanks man! Gonna try out your fix. : ) Link to comment Share on other sites More sharing options...