G-Modifications Posted April 30, 2012 Share Posted April 30, 2012 Hello I want to make indicators and reverse lights for cars in GTA SA. I've tried it, but it crashes or doesn't do anything. I don't want to use flairs or something like that. That's to unrealistic. Does anyone knows how to do this? G-Modifications Link to comment Share on other sites More sharing options...
loms Posted April 30, 2012 Share Posted April 30, 2012 There is indicators mod http://www.gtagarage.com/mods/show.php?id=14581 you need CLEO 4 for this mod Link to comment Share on other sites More sharing options...
Bad.boy! Posted April 30, 2012 Share Posted April 30, 2012 (edited) Our most beloved MK came up with this script to make reverse lights. I don't know if it works, I haven't tested it. There are some errors btw (I think he stole something and edited it a bit): {$CLEO .cs}//-------------MAIN---------------thread 'REVLIGT' 0662: NOP "VEHCILES REVERSING LIGHTS" 0662: NOP "VERSION : 1.0" 0662: NOP "AUTHOR : MICHAEL.KNIGHT1" 0662: NOP "VISIT : WWW.GTAUNITEDGANG.UCOZ.COM" 0AB4: [email protected] = var 200 0AB4: [email protected] = var 230 0AB4: [email protected] = var 210 0AB4: [email protected] = var 240 0AB4: [email protected] = var 210 0AB4: [email protected] = var 255 0AB4: [email protected] = var 155 0AF0: [email protected] = get_int_from_ini_file "CLEO\VEHICLESREVERSINGLIGHTS.INI" section "MAIN" key "RADIUS" //IF and SET 0AF0: [email protected] = get_int_from_ini_file "CLEO\VEHICLESREVERSINGLIGHTS.INI" section "MAIN" key "COORDS1" //IF and SET 0AF0: [email protected] = get_int_from_ini_file "CLEO\VEHICLESREVERSINGLIGHTS.INI" section "MAIN" key "COORDS2" //IF and SET 0AF0: [email protected] = get_int_from_ini_file "CLEO\VEHICLESREVERSINGLIGHTS.INI" section "MAIN" key "COORDS3" //IF and SET 0AF0: [email protected] = get_int_from_ini_file "CLEO\VEHICLESREVERSINGLIGHTS.INI" section "MAIN" key "COORDS4" //IF and SET 0AF0: [email protected] = get_int_from_ini_file "CLEO\VEHICLESREVERSINGLIGHTS.INI" section "MAIN" key "COORDS5" //IF and SET 0AF0: [email protected] = get_int_from_ini_file "CLEO\VEHICLESREVERSINGLIGHTS.INI" section "MAIN" key "COORDS6" //IF and SET 0662: NOP "MEMORY FOR ORIGINAL GTA SAN ANDREAS VERSION" 0A8C: write_memory 7282825 size 1 value 88 virtual_protect 1 0A8C: write_memory 7282826 size 4 value 37008 virtual_protect 1 //0AA9: is_game_version_original <-- Don't know what he wanted with this:REVLIGT_634wait 0 if and // he forgot and (as usual) Player.Defined(0) Player.Controllable($PLAYER_CHAR)else_jump @REVLIGT_1493 Actor.StorePos($PLAYER_ACTOR, [email protected], [email protected], [email protected])if 0AE2: [email protected] = random_vehicle_near_point [email protected] [email protected] [email protected] in_radius [email protected] find_next 0 pass_wrecked 1 //IF and SET else_jump @REVLIGT_1493 :REVLIGT_704if Car.Defined([email protected])else_jump @REVLIGT_1446 0AB8: get_vehicle [email protected] current_gear_to [email protected] if [email protected] == 0 else_jump @REVLIGT_1446 0A97: [email protected] = car [email protected] struct 0085: [email protected] = [email protected] // (int) 0A8E: [email protected] = [email protected] + 1424 // int [email protected] += 34 0A8D: [email protected] = read_memory [email protected] size 1 virtual_protect 0 if not [email protected] == 0 else_jump @REVLIGT_836 0AA6: call_method [email protected] [email protected] num_params -53671 pop 88792346 jump @REVLIGT_1446 :REVLIGT_8360AC7: [email protected] = var [email protected] offset 0AC7: [email protected] = var [email protected] offset 0AC7: [email protected] = var [email protected] offset 0AC7: [email protected] = var [email protected] offset 0A8D: [email protected] = read_memory [email protected] size 2 virtual_protect 0 [email protected] *= 4 [email protected] += 11120840 0A8C: write_memory 11120212 size 1 value 4 virtual_protect 0 0A8D: [email protected] = read_memory [email protected] size 4 virtual_protect 0 [email protected] -= 0.05 0A8C: write_memory 11120212 size 1 value 4 virtual_protect 0 0A8D: [email protected] = read_memory [email protected] size 4 virtual_protect 0 [email protected] += 92 0A8C: write_memory 11120212 size 1 value 4 virtual_protect 0 0A8D: [email protected] = read_memory [email protected] size 4 virtual_protect 0 [email protected] += 12 0A8C: write_memory 11120212 size 1 value 4 virtual_protect 0 0A8D: [email protected] = read_memory [email protected] size 4 virtual_protect 0 [email protected] += 4 0A8C: write_memory 11120212 size 1 value 4 virtual_protect 0 0A8D: [email protected] = read_memory [email protected] size 4 virtual_protect 0 [email protected] += 4 0AC7: [email protected] = var [email protected] offset 0AC7: [email protected] = var [email protected] offset 0AC7: [email protected] = var [email protected] offset 0AC7: [email protected] = var [email protected] offset [email protected] += 1 0662: NOP "255 255 255 == [RGBA] WHITE COLOR" 0AA5: call 7325056 21 pop 21 1 0 50.0 0 0.1 0 0 0 0 0 0 0 150.0 0.12 [email protected] 170 255 255 255 [email protected] [email protected] [email protected] *= -1.0 0AC7: [email protected] = var [email protected] offset 0AC7: [email protected] = var [email protected] offset 0AC7: [email protected] = var [email protected] offset 0AC7: [email protected] = var [email protected] offset [email protected] += 1 0662: NOP "255 255 255 == [RGBA] WHITE COLOR" 0AA5: call 7325056 21 pop 21 1 0 50.0 0 0.1 0 0 0 0 0 0 0 150.0 0.12 [email protected] 170 255 255 255 [email protected] [email protected] 0407: store_coords_to [email protected] [email protected] [email protected] from_car [email protected] with_offset [email protected] [email protected] [email protected] 0407: store_coords_to [email protected] [email protected] [email protected] from_car [email protected] with_offset [email protected] [email protected] [email protected] 0AC7: [email protected] = var [email protected] offset 0AC7: [email protected] = var [email protected] offset 0AC7: [email protected] = var [email protected] offset 0AC7: [email protected] = var [email protected] offset :REVLIGT_1446if or03C9: car [email protected] damaged Car.Wrecked([email protected])01F3: car [email protected] in_air 8AE2: not [email protected] = random_vehicle_near_point [email protected] [email protected] [email protected] in_radius [email protected] find_next 1 pass_wrecked 1 //IF and SET else_jump @REVLIGT_704 :REVLIGT_1493jump @REVLIGT_634 EDIT (ini): [MAIN]radius = 60.0coords1 = -0.8coords2 = -2.0coords3 *= -1.5coords4 += 2coords5 -= 6.30coords6 *= 10.00coords7 *= -1.2coords8 += 1 Edited April 30, 2012 by Bad.boy! Link to comment Share on other sites More sharing options...
G-Modifications Posted April 30, 2012 Author Share Posted April 30, 2012 Thank you, but I was thinking to add components or something and then handle them by script, but I don't know how to do that. That looks beter than flares. G-Modifications Link to comment Share on other sites More sharing options...
DK22Pac Posted April 30, 2012 Share Posted April 30, 2012 @Bad.boy! this code was made by izerli from liberticity (the worst place in america) Link to comment Share on other sites More sharing options...
G-Modifications Posted April 30, 2012 Author Share Posted April 30, 2012 Thank you, but thant was not a answer to my question. Link to comment Share on other sites More sharing options...
ZAZ Posted April 30, 2012 Share Posted April 30, 2012 make a light object for attaching to car CLEO MODS CLEO Script Tutorial Link to comment Share on other sites More sharing options...
G-Modifications Posted May 1, 2012 Author Share Posted May 1, 2012 Yes, indeed. I was trying that, but the problem is that I don't know how to handle that external light object by script. How can I do that and what kind of object sould it be (cutscene or …)? I've already made the light objects. G-Modifcations Link to comment Share on other sites More sharing options...
Michael_Knight1 Posted May 1, 2012 Share Posted May 1, 2012 Our most beloved MK came up with this script to make reverse lights. I don't know if it works, I haven't tested it. There are some errors btw (I think he stole something and edited it a bit): {$CLEO .cs}//-------------MAIN---------------thread 'REVLIGT' 0662: NOP "VEHCILES REVERSING LIGHTS" 0662: NOP "VERSION : 1.0" 0662: NOP "AUTHOR : MICHAEL.KNIGHT1" 0662: NOP "VISIT : WWW.GTAUNITEDGANG.UCOZ.COM" 0AB4: [email protected] = var 200 0AB4: [email protected] = var 230 0AB4: [email protected] = var 210 0AB4: [email protected] = var 240 0AB4: [email protected] = var 210 0AB4: [email protected] = var 255 0AB4: [email protected] = var 155 0AF0: [email protected] = get_int_from_ini_file "CLEO\VEHICLESREVERSINGLIGHTS.INI" section "MAIN" key "RADIUS" //IF and SET 0AF0: [email protected] = get_int_from_ini_file "CLEO\VEHICLESREVERSINGLIGHTS.INI" section "MAIN" key "COORDS1" //IF and SET 0AF0: [email protected] = get_int_from_ini_file "CLEO\VEHICLESREVERSINGLIGHTS.INI" section "MAIN" key "COORDS2" //IF and SET 0AF0: [email protected] = get_int_from_ini_file "CLEO\VEHICLESREVERSINGLIGHTS.INI" section "MAIN" key "COORDS3" //IF and SET 0AF0: [email protected] = get_int_from_ini_file "CLEO\VEHICLESREVERSINGLIGHTS.INI" section "MAIN" key "COORDS4" //IF and SET 0AF0: [email protected] = get_int_from_ini_file "CLEO\VEHICLESREVERSINGLIGHTS.INI" section "MAIN" key "COORDS5" //IF and SET 0AF0: [email protected] = get_int_from_ini_file "CLEO\VEHICLESREVERSINGLIGHTS.INI" section "MAIN" key "COORDS6" //IF and SET 0662: NOP "MEMORY FOR ORIGINAL GTA SAN ANDREAS VERSION" 0A8C: write_memory 7282825 size 1 value 88 virtual_protect 1 0A8C: write_memory 7282826 size 4 value 37008 virtual_protect 1 //0AA9: is_game_version_original <-- Don't know what he wanted with this:REVLIGT_634wait 0 if and // he forgot and (as usual) Player.Defined(0) Player.Controllable($PLAYER_CHAR)else_jump @REVLIGT_1493 Actor.StorePos($PLAYER_ACTOR, [email protected], [email protected], [email protected])if 0AE2: [email protected] = random_vehicle_near_point [email protected] [email protected] [email protected] in_radius [email protected] find_next 0 pass_wrecked 1 //IF and SET else_jump @REVLIGT_1493 :REVLIGT_704if Car.Defined([email protected])else_jump @REVLIGT_1446 0AB8: get_vehicle [email protected] current_gear_to [email protected] if [email protected] == 0 else_jump @REVLIGT_1446 0A97: [email protected] = car [email protected] struct 0085: [email protected] = [email protected] // (int) 0A8E: [email protected] = [email protected] + 1424 // int [email protected] += 34 0A8D: [email protected] = read_memory [email protected] size 1 virtual_protect 0 if not [email protected] == 0 else_jump @REVLIGT_836 0AA6: call_method [email protected] [email protected] num_params -53671 pop 88792346 jump @REVLIGT_1446 :REVLIGT_8360AC7: [email protected] = var [email protected] offset 0AC7: [email protected] = var [email protected] offset 0AC7: [email protected] = var [email protected] offset 0AC7: [email protected] = var [email protected] offset 0A8D: [email protected] = read_memory [email protected] size 2 virtual_protect 0 [email protected] *= 4 [email protected] += 11120840 0A8C: write_memory 11120212 size 1 value 4 virtual_protect 0 0A8D: [email protected] = read_memory [email protected] size 4 virtual_protect 0 [email protected] -= 0.05 0A8C: write_memory 11120212 size 1 value 4 virtual_protect 0 0A8D: [email protected] = read_memory [email protected] size 4 virtual_protect 0 [email protected] += 92 0A8C: write_memory 11120212 size 1 value 4 virtual_protect 0 0A8D: [email protected] = read_memory [email protected] size 4 virtual_protect 0 [email protected] += 12 0A8C: write_memory 11120212 size 1 value 4 virtual_protect 0 0A8D: [email protected] = read_memory [email protected] size 4 virtual_protect 0 [email protected] += 4 0A8C: write_memory 11120212 size 1 value 4 virtual_protect 0 0A8D: [email protected] = read_memory [email protected] size 4 virtual_protect 0 [email protected] += 4 0AC7: [email protected] = var [email protected] offset 0AC7: [email protected] = var [email protected] offset 0AC7: [email protected] = var [email protected] offset 0AC7: [email protected] = var [email protected] offset [email protected] += 1 0662: NOP "255 255 255 == [RGBA] WHITE COLOR" 0AA5: call 7325056 21 pop 21 1 0 50.0 0 0.1 0 0 0 0 0 0 0 150.0 0.12 [email protected] 170 255 255 255 [email protected] [email protected] [email protected] *= -1.0 0AC7: [email protected] = var [email protected] offset 0AC7: [email protected] = var [email protected] offset 0AC7: [email protected] = var [email protected] offset 0AC7: [email protected] = var [email protected] offset [email protected] += 1 0662: NOP "255 255 255 == [RGBA] WHITE COLOR" 0AA5: call 7325056 21 pop 21 1 0 50.0 0 0.1 0 0 0 0 0 0 0 150.0 0.12 [email protected] 170 255 255 255 [email protected] [email protected] 0407: store_coords_to [email protected] [email protected] [email protected] from_car [email protected] with_offset [email protected] [email protected] [email protected] 0407: store_coords_to [email protected] [email protected] [email protected] from_car [email protected] with_offset [email protected] [email protected] [email protected] 0AC7: [email protected] = var [email protected] offset 0AC7: [email protected] = var [email protected] offset 0AC7: [email protected] = var [email protected] offset 0AC7: [email protected] = var [email protected] offset :REVLIGT_1446if or03C9: car [email protected] damaged Car.Wrecked([email protected])01F3: car [email protected] in_air 8AE2: not [email protected] = random_vehicle_near_point [email protected] [email protected] [email protected] in_radius [email protected] find_next 1 pass_wrecked 1 //IF and SET else_jump @REVLIGT_704 :REVLIGT_1493jump @REVLIGT_634 EDIT (ini): [MAIN]radius = 60.0coords1 = -0.8coords2 = -2.0coords3 *= -1.5coords4 += 2coords5 -= 6.30coords6 *= 10.00coords7 *= -1.2coords8 += 1 Why You Post The cs File ?? Download From Here : http://www.mediafire.com/?zlgg1j5y9ygx36t Link to comment Share on other sites More sharing options...
fastman92 Posted May 1, 2012 Share Posted May 1, 2012 [MAIN]radius = 60.0coords1 = -0.8coords2 = -2.0coords3 *= -1.5coords4 += 2coords5 -= 6.30coords6 *= 10.00coords7 *= -1.2coords8 += 1 .ini is very simple file, not a programming language where calculations are allowed. Only static values and assignments are allowed. *=, += are not allowed. Only = Link to comment Share on other sites More sharing options...
Bad.boy! Posted May 1, 2012 Share Posted May 1, 2012 @MK we are never going to get rid of you, are we? You are posting a link to a mod which you stole and claim to be the author, and the mod contains a crack which isn't allowed either. @fastman I didn't make that. Link to comment Share on other sites More sharing options...
ZAZ Posted May 1, 2012 Share Posted May 1, 2012 Yes, indeed. I was trying that, but the problem is that I don't know how to handle that external light object by script. have you ever written a script? How can I do that and what kind of object sould it be (cutscene or …)? I've already made the light objects. not cutscene but replace unused objects of multiobj.ide like craigpackage, arrow and such CLEO MODS CLEO Script Tutorial Link to comment Share on other sites More sharing options...
G-Modifications Posted May 1, 2012 Author Share Posted May 1, 2012 (edited) Yes, indeed. I was trying that, but the problem is that I don't know how to handle that external light object by script. have you ever written a script? How can I do that and what kind of object sould it be (cutscene or …)? I've already made the light objects. not cutscene but replace unused objects of multiobj.ide like craigpackage, arrow and such Thank you, I will try that multiobj.ide stuf. I'll post some pics of it when it's done. I've written some scripts, but now you said it I think I know what I have to do. EDIT: It still keeps crashing, I don't get it work. G-Modifications Edited May 1, 2012 by G-Modifications Link to comment Share on other sites More sharing options...
DK22Pac Posted May 1, 2012 Share Posted May 1, 2012 SA already has a way to enable/disable lights. It's based on materials' settings (color&diffuse). This system were released in my mod, IMVehLM (breaklights, turnlights, reversinglights and foglights.) Link to comment Share on other sites More sharing options...
G-Modifications Posted May 1, 2012 Author Share Posted May 1, 2012 Where can i download this mod? I've seen a video, looks really nice. This it exacly what I wanted. G-Modifications 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