Adrean. Posted March 1, 2016 Share Posted March 1, 2016 Hello guys,i decided to make this mod 3 days ago,since then this mod si freaking me out cuz i cannot find an algorith that works.. I want to make the zonetext mod with rainbow text,colors to pop out and in to make like a rainbow. this is the mod. //[email protected] = 0 [email protected] = 0 [email protected] = 0 [email protected] = 1 [email protected] = 0 0000: NOP :NONAME_37wait 0 gosub @NONAME_171 gosub @NONAME_226 gosub @NONAME_288 gosub @NONAME_337 if or [email protected] == 1 [email protected] == 1 [email protected] == 1 [email protected] == 0 else_jump @NONAME_119 03F0: enable_text_draw 0 jump @NONAME_164 :NONAME_119if and not Actor.Driving($PLAYER_ACTOR)00E1: player $PLAYER_CHAR pressed_key 4 else_jump @NONAME_153 03F0: enable_text_draw 0 jump @NONAME_164 :NONAME_15303F0: enable_text_draw 1 gosub @NONAME_413 :NONAME_164jump @NONAME_37 :NONAME_1710A8D: [email protected] = read_memory 11989093 size 4 virtual_protect 0 if [email protected] == 1 else_jump @NONAME_217 [email protected] = 1 jump @NONAME_224 :[email protected] = 0 :NONAME_224return :NONAME_2260A8D: [email protected] = read_memory 9873356 size 4 virtual_protect 0 if or [email protected] == 1 [email protected] == 2 else_jump @NONAME_279 [email protected] = 1 jump @NONAME_286 :[email protected] = 0 :NONAME_286return :NONAME_288if 06B9: cutscene_data_loaded else_jump @NONAME_328 if 82E9: not cutscene_reached_end else_jump @NONAME_321 [email protected] = 1 :NONAME_321jump @NONAME_335 :[email protected] = 0 :NONAME_335return :NONAME_3370A8D: [email protected] = read_memory 12216172 size 4 virtual_protect 0 0A8D: [email protected] = read_memory 12231675 size 4 virtual_protect 0 if and [email protected] == 2 [email protected] == 0 else_jump @NONAME_404 [email protected] = 0 jump @NONAME_411 :[email protected] = 1 :NONAME_411return :NONAME_413gosub @NONAME_581 if [email protected] == 0 else_jump @NONAME_572 gosub @NONAME_627 gosub @NONAME_657 if or05AD: s$93 == 'LA' // s$ == short // Los Santos05AD: s$93 == 'SF' // s$ == short // San Fierro05AD: s$93 == 'VE' // s$ == short // Las Venturaselse_jump @NONAME_519 05A9: s$93 = 'CT' // s$ :NONAME_519if 05AD: s$93 == 'SAN_AND' // s$ == short // San Andreaselse_jump @NONAME_558 05A9: s$93 = 'CN' // s$ :NONAME_558gosub @NONAME_957 jump @NONAME_579 :NONAME_572gosub @NONAME_1067 :NONAME_579return :NONAME_581077E: get_active_interior_to [email protected] if [email protected] == 0 else_jump @NONAME_618 [email protected] = 0 jump @NONAME_625 :[email protected] = 1 :NONAME_625return :NONAME_627Actor.StorePos($PLAYER_ACTOR, [email protected], [email protected], [email protected])0843: get_zone_at [email protected] [email protected] [email protected] nameA_to s$93 // 8-byte string return :NONAME_657gosub @NONAME_1007 if [email protected] == 0 else_jump @NONAME_696 05A9: s$95 = 'CS' // s$ :NONAME_696if [email protected] == 1 else_jump @NONAME_728 05A9: s$95 = 'LA' // s$ // Los Santos:NONAME_728if [email protected] == 2 else_jump @NONAME_760 05A9: s$95 = 'SF' // s$ // San Fierro:NONAME_760if [email protected] == 3 else_jump @NONAME_792 05A9: s$95 = 'VE' // s$ // Las Venturas:NONAME_792if 05AD: s$93 == 'SAN_AND' // s$ == short // San Andreaselse_jump @NONAME_831 05A9: s$95 = 'SAN_AND' // s$ // San Andreas:NONAME_831if 05AD: s$93 == 'LA' // s$ == short // Los Santoselse_jump @NONAME_870 05A9: s$95 = 'LA' // s$ // Los Santos:NONAME_870if 05AD: s$93 == 'SF' // s$ == short // San Fierroelse_jump @NONAME_909 05A9: s$95 = 'SF' // s$ // San Fierro:NONAME_909if 05AD: s$93 == 'VE' // s$ == short // Las Venturaselse_jump @NONAME_948 05A9: s$95 = 'VE' // s$ // Las Venturas:NONAME_948gosub @NONAME_1017 return :NONAME_95703E0: draw_text_behind_textures 1 033F: set_text_draw_letter_size 0.5 1.4 0342: set_text_draw_centered 1 081C: draw_text_outline 2 RGBA 0 0 0 255 0340: set_text_draw_RGBA [email protected] [email protected] [email protected] 255 033E: set_draw_text_position 310.0 426.0 GXT s$93 return :NONAME_10070842: [email protected] = player $PLAYER_CHAR town_number return :NONAME_101703E0: draw_text_behind_textures 1 033F: set_text_draw_letter_size 0.0 0.0 0342: set_text_draw_centered 1 081C: draw_text_outline 2 RGBA 0 0 0 255 033E: set_draw_text_position 540.0 800.0 GXT s$95 return :NONAME_1067gosub @NONAME_1090 gosub @NONAME_1100 gosub @NONAME_1017 return :NONAME_1090094B: v$99 = get_active_interior_name_from_actor $PLAYER_ACTOR // 16-byte string return :NONAME_110003E0: draw_text_behind_textures 1 033F: set_text_draw_letter_size 0.3 1.2 0342: set_text_draw_centered 1 081C: draw_text_outline 2 RGBA 0 0 0 255 033E: set_draw_text_position 180.0 326.0 GXT v$99 return :NONAME_2wait 0 [email protected] = 255 [email protected] = 0 [email protected] = 0 [email protected] = 0 :NONAME_35wait 0 gosub @[email protected] += 1 [email protected] > 255 jf @NONAME_35 [email protected] = 255 [email protected] = 255 :NONAME_84wait 0 gosub @[email protected] -= 1 0 > [email protected] jf @NONAME_84 [email protected] = 0 [email protected] = 0 :NONAME_130wait 0 gosub @NONAME_957 [email protected] += 1 [email protected] > 255 jf @NONAME_130 [email protected] = 255 [email protected] = 255 :NONAME_179wait 0 gosub @[email protected] -= 1 0 > [email protected] jf @NONAME_179 [email protected] = 0 [email protected] = 0 :NONAME_225wait 0 gosub @[email protected] += 1 [email protected] > 255 jf @NONAME_225 [email protected] = 255 [email protected] = 255 :NONAME_274wait 0 gosub @[email protected] -= 1 0 > [email protected] jf @NONAME_274 [email protected] = 0 jump @NONAME_2 The zonetext mod is untill this code . This code makes the textdraw to change colors. :NONAME_2wait 0 [email protected] = 255 [email protected] = 0 [email protected] = 0 [email protected] = 0 :NONAME_35wait 0 gosub @[email protected] += 1 [email protected] > 255 jf @NONAME_35 [email protected] = 255 [email protected] = 255 :NONAME_84wait 0 gosub @[email protected] -= 1 0 > [email protected] jf @NONAME_84 [email protected] = 0 [email protected] = 0 :NONAME_130wait 0 gosub @NONAME_957 [email protected] += 1 [email protected] > 255 jf @NONAME_130 [email protected] = 255 [email protected] = 255 :NONAME_179wait 0 gosub @[email protected] -= 1 0 > [email protected] jf @NONAME_179 [email protected] = 0 [email protected] = 0 :NONAME_225wait 0 gosub @[email protected] += 1 [email protected] > 255 jf @NONAME_225 [email protected] = 255 [email protected] = 255 :NONAME_274wait 0 gosub @[email protected] -= 1 0 > [email protected] jf @NONAME_274 [email protected] = 0 jump @NONAME_2 What i did wrong ? as an explanation i made a video who shows you guys why the textdraw is only blue ? Link to comment Share on other sites More sharing options...
ZAZ Posted March 1, 2016 Share Posted March 1, 2016 i didn't checked the scripts very much but i saw that [email protected] is used [email protected] += 1 [email protected] > 255jf @NONAME_35 [email protected] = 255 [email protected] = 255 The local variables [email protected] and [email protected] are reserved for using in time checks Their values is permanently counting ascending in milliseconds. [email protected] and [email protected] can't be used for anything else or game can crash They are allways integer values CLEO MODS CLEO Script Tutorial Link to comment Share on other sites More sharing options...
Adrean. Posted March 1, 2016 Author Share Posted March 1, 2016 The initial code was this : :NONAME_2wait 0 [email protected] = 255 [email protected] = 0 [email protected] = 0 [email protected] = 0 :NONAME_35wait 0 gosub @NONAME_320 [email protected] += 1 [email protected] > 255 jf @NONAME_35 [email protected] = 255 [email protected] = 255 :NONAME_84wait 0 gosub @NONAME_320 [email protected] -= 1 0 > [email protected] jf @NONAME_84 [email protected] = 0 [email protected] = 0 :NONAME_130wait 0 gosub @NONAME_320 [email protected] += 1 [email protected] > 255 jf @NONAME_130 [email protected] = 255 [email protected] = 255 :NONAME_179wait 0 gosub @NONAME_320 [email protected] -= 1 0 > [email protected] jf @NONAME_179 [email protected] = 0 [email protected] = 0 :NONAME_225wait 0 gosub @NONAME_320 [email protected] += 1 [email protected] > 255 jf @NONAME_225 [email protected] = 255 [email protected] = 255 :NONAME_274wait 0 gosub @NONAME_320 [email protected] -= 1 0 > [email protected] jf @NONAME_274 [email protected] = 0 jump @NONAME_2 And it has 2 of [email protected] [email protected],i think one is used in time checks but i don't know wich one. Link to comment Share on other sites More sharing options...
ZAZ Posted March 4, 2016 Share Posted March 4, 2016 And it has 2 of [email protected] [email protected],i think one is used in time checks but i don't know wich one.what else do you know?who wrote the script originally? CLEO MODS CLEO Script Tutorial 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