Quantcast

Jump to content

» «
Photo

High Beam GTA SA problem

3 replies to this topic
viva yo
  • viva yo

    Player Hater

  • Members
  • Joined: 18 Oct 2010

#1

Posted 06 May 2014 - 03:07 PM Edited by viva yo, 06 May 2014 - 03:08 PM.

HI, I have a problem with this cleo script. It, enables to switch between high and low beams in gta sa. My problem is that I have another script wich uses the same button so I changed it by remplacing Key_pressed 71 (G) by Key_pressed 72 (H), but when I do this, my game crashes when i get in a car. Can anyone explain me why this happens? Thanks.

 

The code is below (Is not mine, but i don't know the autor, i think is DK22_Pac)

 

Audiostream.Load3D(11@, "Audio\sfx\HONDA_LAMP_START.wav")
Audiostream.Load3D(12@, "Audio\sfx\HONDA_LAMP_END.wav")
0A8C: write_memory 6958803 size 12 value 144 virtual_protect 1 
0A8C: write_memory 6958827 size 12 value 144 virtual_protect 1 
0A8C: write_memory 7069299 size 18 value 144 virtual_protect 1 
0A8C: write_memory 7214761 size 2 value 37008 virtual_protect 1 
0A8C: write_memory 7214419 size 2 value 37008 virtual_protect 1 
0A8C: write_memory 7390858 size 2 value 37008 virtual_protect 1 
0A8C: write_memory 7390874 size 1 value 235 virtual_protect 1 
0A8C: write_memory 7214365 size 1 value 252 virtual_protect 1 
0A8C: write_memory 7390607 size 4 value -1869574000 virtual_protect 1 
0A8C: write_memory 7390611 size 2 value 37008 virtual_protect 1 
0A8C: write_memory 7390674 size 4 value -1869574000 virtual_protect 1 
0A8C: write_memory 7390678 size 2 value 37008 virtual_protect 1 
0A9F: 0@ = current_thread_pointer 
0@ += 16 
0A8D: 0@ = read_memory 0@ size 4 virtual_protect 0 
0@ -= -1448 
0A8C: write_memory 0@ size 4 value 16.0 virtual_protect 0 
0A8C: write_memory 7214755 size 4 value 0@ virtual_protect 1 
0A9F: 0@ = current_thread_pointer 
0@ += 16 
0A8D: 0@ = read_memory 0@ size 4 virtual_protect 0 
0@ -= -1456 
0A8C: write_memory 0@ size 4 value 16.0 virtual_protect 0 
0A8C: write_memory 7214391 size 4 value 0@ virtual_protect 1 
0A9F: 0@ = current_thread_pointer 
0@ += 16 
0A8D: 0@ = read_memory 0@ size 4 virtual_protect 0 
0@ -= -1460 
0A8C: write_memory 0@ size 4 value 8.0 virtual_protect 0 
0A8C: write_memory 7214408 size 4 value 0@ virtual_protect 1 
0A9F: 0@ = current_thread_pointer 
0@ += 16 
0A8D: 0@ = read_memory 0@ size 4 virtual_protect 0 
0@ -= -1452 
0A8C: write_memory 0@ size 4 value 0.35 virtual_protect 0 
0A8C: write_memory 7214769 size 4 value 0@ virtual_protect 1 
0A8C: write_memory 7214425 size 4 value 0@ virtual_protect 1 
0A9F: 31@ = current_thread_pointer 
31@ += 16 
0A8D: 31@ = read_memory 31@ size 4 virtual_protect 0 
31@ -= -1464 
0A9F: 30@ = current_thread_pointer 
30@ += 16 
0A8D: 30@ = read_memory 30@ size 4 virtual_protect 0 
30@ -= -1531 
0AB1: call_scm_func @NONAME_1573 4 31@ 7390987 7391020 30@ 
0A9F: 31@ = current_thread_pointer 
31@ += 16 
0A8D: 31@ = read_memory 31@ size 4 virtual_protect 0 
31@ -= -1536 
0A9F: 30@ = current_thread_pointer 
30@ += 16 
0A8D: 30@ = read_memory 30@ size 4 virtual_protect 0 
30@ -= -1568 
0AB1: call_scm_func @NONAME_1573 4 31@ 7219122 7219127 30@ 
 
:NONAME_704
wait 0 
if 
   Player.Defined(0)
else_jump @NONAME_1381 
if 
   Actor.Driving($PLAYER_ACTOR)
else_jump @NONAME_1381 
 
:NONAME_739
wait 0 
if 
   not Player.Defined(0)
else_jump @NONAME_772 
jump @NONAME_1381 
jump @NONAME_795 
 
:NONAME_772
if 
   not Actor.Driving($PLAYER_ACTOR)
else_jump @NONAME_795 
jump @NONAME_1381 
 
:NONAME_795
if 
0AB0:   key_pressed 71 
else_jump @NONAME_1374 
0A9F: 31@ = current_thread_pointer 
31@ += 16 
0A8D: 31@ = read_memory 31@ size 4 virtual_protect 0 
31@ -= -1464 
31@ += 14 
0A8C: write_memory 31@ size 1 value 252 virtual_protect 0 
0A9F: 31@ = current_thread_pointer 
31@ += 16 
0A8D: 31@ = read_memory 31@ size 4 virtual_protect 0 
31@ -= -1536 
31@ += 21 
0A8C: write_memory 31@ size 4 value 35.0 virtual_protect 0 
0A8D: 8@ = read_memory 12216215 size 1 virtual_protect 0 
0093: 8@ = integer 8@ to_float 
8@ /= 64.0 
Audiostream.PerformAction(11@, PLAY)
Audiostream.Volume(11@) = 8@
0811: 8@ = actor $PLAYER_ACTOR car // versionC 
Audiostream.LinkToCar(11@, 8@)
 
:NONAME_981
0AB0:   key_pressed 71 
else_jump @NONAME_1055 
wait 0 
if 
   not Player.Defined(0)
else_jump @NONAME_1025 
jump @NONAME_1388 
jump @NONAME_1048 
 
:NONAME_1025
if 
   not Actor.Driving($PLAYER_ACTOR)
else_jump @NONAME_1048 
jump @NONAME_1388 
 
:NONAME_1048
jump @NONAME_981 
 
:NONAME_1055
8AB0:   not key_pressed 71 
else_jump @NONAME_1129 
wait 0 
if 
   not Player.Defined(0)
else_jump @NONAME_1099 
jump @NONAME_1388 
jump @NONAME_1122 
 
:NONAME_1099
if 
   not Actor.Driving($PLAYER_ACTOR)
else_jump @NONAME_1122 
jump @NONAME_1388 
 
:NONAME_1122
jump @NONAME_1055 
 
:NONAME_1129
0A9F: 31@ = current_thread_pointer 
31@ += 16 
0A8D: 31@ = read_memory 31@ size 4 virtual_protect 0 
31@ -= -1464 
31@ += 14 
0A8C: write_memory 31@ size 1 value 248 virtual_protect 0 
0A9F: 31@ = current_thread_pointer 
31@ += 16 
0A8D: 31@ = read_memory 31@ size 4 virtual_protect 0 
31@ -= -1536 
31@ += 21 
0A8C: write_memory 31@ size 4 value 20.0 virtual_protect 0 
0A8D: 8@ = read_memory 12216215 size 1 virtual_protect 0 
0093: 8@ = integer 8@ to_float 
8@ /= 64.0 
Audiostream.PerformAction(12@, PLAY)
Audiostream.Volume(12@) = 8@
0811: 8@ = actor $PLAYER_ACTOR car // versionC 
Audiostream.LinkToCar(12@, 8@)
 
:NONAME_1300
0AB0:   key_pressed 71 
else_jump @NONAME_1374 
wait 0 
if 
   not Player.Defined(0)
else_jump @NONAME_1344 
jump @NONAME_1388 
jump @NONAME_1367 
 
:NONAME_1344
if 
   not Actor.Driving($PLAYER_ACTOR)
else_jump @NONAME_1367 
jump @NONAME_1388 
 
:NONAME_1367
jump @NONAME_1300 
 
:NONAME_1374
jump @NONAME_739 
 
:NONAME_1381
jump @NONAME_1441 
 
:NONAME_1388
0A9F: 31@ = current_thread_pointer 
31@ += 16 
0A8D: 31@ = read_memory 31@ size 4 virtual_protect 0 
31@ -= -1464 
31@ += 14 
0A8C: write_memory 31@ size 1 value 248 virtual_protect 0 
 
:NONAME_1441
jump @NONAME_704 
hex
 00 00 00 00
end
hex
 00 00 00 00
end
hex
 00 00 00 00
end
hex
 00 00 00 00
end
hex
 74 0B A1 F8 03 C4 00 89 44 24 2C EB 09 A1 F8 03
 C4 00 89 44 24 2C 8B 44 24 44 6A 00 68 00 00 80
 3F 6A 00 68 00 00 C0 40 68 30 00 00 00 8B 4C 24
 54 68 30 00 00 00 8B 54 24 54 68 30 00 00 00 8B
 44 24 54
end
hex
 E9 00 00 00 00
end
hex
 50 6A 00 6A FF B8 D0 E0 56 00 FF D0 83 C4 08 3B
 F0 58 75 07 68 00 00 A0 41 EB 05 68 00 00 A0 41
end
hex
 E9 00 00 00 00
end
 
:NONAME_1573
0A8C: write_memory 1@ size 1 value 233 virtual_protect 1 
0085: 4@ = 1@ // (int) 
4@ += 5 
0062: 0@ -= 4@ // (int) 
1@ += 1 
0A8C: write_memory 1@ size 4 value 0@ virtual_protect 1 
0085: 4@ = 3@ // (int) 
4@ += 5 
0062: 2@ -= 4@ // (int) 
3@ += 1 
0A8C: write_memory 3@ size 4 value 2@ virtual_protect 1 
0AB2: ret 0 

miclin
  • miclin

    old stager

  • Members
  • Joined: 22 Mar 2009
  • Germany

#2

Posted 06 May 2014 - 03:15 PM

This is a MOd showroom. Please post Coding questions in the coding section, thanks.

Silent
  • Silent

    Altering R* Vision™ since 2008

  • GTA Mods Staff
  • Joined: 01 Feb 2010
  • Poland
  • Contribution Award [Mods]
    Best Script/Plugin 2014 [SilentPatch]
    Most Respected 2014
    Most Helpful [Mods] 2014
    Most Helpful [GTA] 2013
    Most Helpful [Mods] 2013
    Most Talented [Modding] 2013
    Best Map 2013 [ViceCityStories PC Edition]
    Best Vehicle 2013 [III Aircraft]
    Most Helpful [Mods] 2012
    Modder of the Year 2012

#3

Posted 06 May 2014 - 03:45 PM

This is a MOd showroom. Please post Coding questions in the coding section, thanks.


This. Moved.

viva yo
  • viva yo

    Player Hater

  • Members
  • Joined: 18 Oct 2010

#4

Posted 06 May 2014 - 05:19 PM

sorry. I did't knew that





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users