Jump to content

F16 Afterburner crash.


zork824

Recommended Posts

Hi!I downloaded f16c fighting falcon by SkylineGTRFreak ( nice mod ) with f16 afterburner from air theft.The mods work properly,and the particle are well placed in the plane.But suddendly,If I do this 4-5 time,I get opcode.I do that again and it crash (seems it's w + 9 that makes him crash,9 is for afterburner) here the log of crash.

 

 

SA-MP 0.3d

Exception At Address: 0x00469FBC

 

Registers:

EAX: 0x00000000 EBX: 0x00000001 ECX: 0x01CD0045 EDX: 0x000116F7

ESI: 0x0298C700 EDI: 0x02987BA8 EBP: 0x0022FDCC ESP: 0x0022FD58

EFLAGS: 0x00210246

 

Stack:

+0000: 0x0298C700 0x00000000 0x0046A220 0xCB59D1CA

+0010: 0x00022624 0x0022FDCC 0x00000000 0x0000000B

+0020: 0x0022FDBC 0x0083C528 0xFFFFFFFF 0x0053BFCC

+0030: 0x0000001A 0xCB2FF355 0x00000000 0x7C80934A

+0040: 0x02E1F484 0xCB2FF355 0x02E530EA 0x0000001A

+0050: 0xCB2FF355 0x00000000 0x0EFAB718 0x0022FDA4

+0060: 0x0022F97C 0x0022FFB0 0x02E658A4 0x02E8A8B0

+0070: 0x00000001 0x7E3ADEB2 0x0053E986 0x00000001

+0080: 0x008241AF 0x004D9486 0x0053ECC2 0x00000001

+0090: 0x00619B71 0x0000001A 0x00000001 0x00000001

+00A0: 0x0000000A 0x00748DA0 0x0000001A 0x00000001

+00B0: 0x7C80B741 0x00000000 0x0022FFC0 0x7FFD7000

+00C0: 0x01250000 0x4F4AFB9C 0x002527B0 0x00000008

+00D0: 0x00000100 0x00000008 0x00000102 0x44000000

+00E0: 0x43C00000 0x00000000 0x00000000 0x00000400

+00F0: 0x00000300 0x00000000 0x00000001 0x001B05FE

+0100: 0x00000200 0x00000000 0x01800200 0x00C481C9

+0110: 0x00000200 0x00000180 0x0000002C 0x00000000

+0120: 0x7FFD7000 0x0022FFB0 0x00825EA4 0x00887E20

+0130: 0xFFFFFFFF 0x0022FE70 0x00835342 0x00000065

+0140: 0x0022FFC0 0x008246F1 0x00400000 0x00000000

+0150: 0x015823D1 0x0000000A 0x00000094 0x00000005

+0160: 0x00000001 0x00000A28 0x00000002 0x76726553

+0170: 0x20656369 0x6B636150 0xA7003320 0xA7B07BF8

+0180: 0xA7B07C80 0xABF5D5C0 0x00000000 0x00000000

+0190: 0x00000000 0x0000001F 0xFFFFFFFF 0xF77BE540

+01A0: 0x00000000 0x806E8410 0x84F8F2FC 0xA7B07C28

+01B0: 0x00000000 0x806E8427 0x00000008 0x00000246

+01C0: 0x80503872 0x84F8F1D0 0x84F8F160 0x804FB078

+01D0: 0x84F8F2CC 0x84F8F160 0x84F8F194 0x00000206

+01E0: 0x806443F2 0x84F50D20 0x00824588 0x00000000

+01F0: 0x0012CAE4 0x7FFD7000 0xC0000005 0x00000005

+0200: 0x015823D1 0x00000044 0x01583A10 0x01583A20

+0210: 0x01583A38 0x00000000 0x00000000 0x00000000

+0220: 0x00000000 0x00000000 0x00000000 0x00000000

+0230: 0x00000000 0x00000000 0x00000000 0xFFFFFFFF

+0240: 0xFFFFFFFF 0xFFFFFFFF 0x00000000 0x00000000

+0250: 0x0022FEB0 0x0022F97C 0x0022FFE0 0x00825EA4

+0260: 0x00888078 0x00000000 0x0022FFF0 0x7C817077

+0270: 0x00000000 0x0012CAE4 0x7FFD7000 0x8054B6ED

 

SCM Op: 0x2BF, lDbg: 0

 

Game Version: US 1.0

 

State Information: Ped Context: 0

P0 (0,0) P1 (0,0) P2 (208,0)

 

Cleo file if you need it.

// This file was decompiled using sascm.ini published by Seemann (http://sannybuilder.com/files/SASCM.rar) on 13.10.2007

 

{$VERSION 3.1.0027}

{$CLEO .cs}

 

//-------------MAIN---------------

thread 'F16BURNER'

 

:F16BURNER_19

wait 0

if

Actor.DrivingVehicleType($PLAYER_ACTOR, #HYDRA)

else_jump @F16BURNER_19

03C0: 0@ = actor $PLAYER_ACTOR car

jump @F16BURNER_57

 

:F16BURNER_57

wait 100

if

0AB0: key_pressed 105

else_jump @F16BURNER_136

0745: set_hydra 0@ thrust_to_horizontal

066B: 1@ = attach_particle "AFTERFIRE" to_car 0@ with_offset 0.001 -6.0 0.0 flag 1

064C: make_particle 1@ visible

jump @F16BURNER_143

jump @F16BURNER_143

 

:F16BURNER_136

jump @F16BURNER_57

 

:F16BURNER_143

wait 100

if

0AB0: key_pressed 105

else_jump @F16BURNER_224

0745: set_hydra 0@ thrust_to_horizontal

066B: 2@ = attach_particle "AFTERBURNER" to_car 0@ with_offset 0.001 -6.0 0.0 flag 1

064C: make_particle 2@ visible

jump @F16BURNER_275

jump @F16BURNER_275

 

:F16BURNER_224

Car.SetSpeedInstantly(0@, 100.0)

gosub @F16BURNER_511

if

0AB0: key_pressed 99

else_jump @F16BURNER_268

0650: destroy_particle 1@

jump @F16BURNER_57

 

:F16BURNER_268

jump @F16BURNER_143

 

:F16BURNER_275

wait 100

if

0AB0: key_pressed 105

else_jump @F16BURNER_313

0745: set_hydra 0@ thrust_to_horizontal

jump @F16BURNER_384

jump @F16BURNER_384

 

:F16BURNER_313

gosub @F16BURNER_563

Car.SetSpeedInstantly(0@, 190.0)

if

01F3: car 0@ in_air

else_jump @F16BURNER_350

Camera.Shake(50)

 

:F16BURNER_350

if

0AB0: key_pressed 99

else_jump @F16BURNER_377

0650: destroy_particle 2@

jump @F16BURNER_143

 

:F16BURNER_377

jump @F16BURNER_275

 

:F16BURNER_384

wait 100

if

0AB0: key_pressed 99

else_jump @F16BURNER_422

0650: destroy_particle 3@

jump @F16BURNER_275

jump @F16BURNER_511

 

:F16BURNER_422

gosub @F16BURNER_620

Car.SetSpeedInstantly(0@, 250.0)

066B: 3@ = attach_particle "BSBHYDRA" to_car 0@ with_offset 0.001 -4.0 0.47229 flag 1

064C: make_particle 3@ visible

wait 300

if

01F3: car 0@ in_air

else_jump @F16BURNER_504

Camera.Shake(80)

 

:F16BURNER_504

jump @F16BURNER_384

 

:F16BURNER_511

wait 0

if or

00E1: player 0 pressed_key 15

80E1: not player 0 pressed_key 16

0AB0: key_pressed 98

else_jump @F16BURNER_561

0650: destroy_particle 1@

jump @F16BURNER_19

jump @F16BURNER_563

 

:F16BURNER_561

return

 

:F16BURNER_563

wait 0

if or

00E1: player 0 pressed_key 15

80E1: not player 0 pressed_key 16

0AB0: key_pressed 98

else_jump @F16BURNER_618

0650: destroy_particle 1@

0650: destroy_particle 2@

jump @F16BURNER_19

jump @F16BURNER_620

 

:F16BURNER_618

return

 

:F16BURNER_620

wait 0

if or

00E1: player 0 pressed_key 15

80E1: not player 0 pressed_key 16

0AB0: key_pressed 98

else_jump @F16BURNER_680

0650: destroy_particle 1@

0650: destroy_particle 2@

0650: destroy_particle 3@

jump @F16BURNER_19

jump @F16BURNER_682

 

:F16BURNER_680

return

 

:F16BURNER_682 // Note: a jump to this label will crash the game

 

Link to comment
Share on other sites

change all lines with this:

 

jump @F16BURNER_19

 

into

 

jump @F16BURNER_680

 

 

 

 

but not this:

 

else_jump @F16BURNER_19

 

because it's ok

Link to comment
Share on other sites

Thanks!I'll give a try!

Edit:Seems it work but the mod get stucks on the sound barrier particle.Particle should stop when I stop to hold W but they continue.Anyway,I crashed again with same opcode but seems that because the hydra exploded and pressed 9 in same time.What could cause this?(I mean,what could cause the barrier bug)

Edit again:It crash when I jump off the vehicle,here the log

SA-MP 0.3d

Exception At Address: 0x00469FBC

 

Registers:

EAX: 0x00000000 EBX: 0x00000001 ECX: 0x59FFFFE5 EDX: 0x40812ECB

ESI: 0x02987BA8 EDI: 0x02982498 EBP: 0x0022FDCC ESP: 0x0022FD58

EFLAGS: 0x00210246

 

Stack:

+0000: 0x02987BA8 0x00000000 0x0046A220 0x95644149

+0010: 0x000131DE 0x0022FDCC 0x00000000 0x0000000B

+0020: 0x0022FDBC 0x0083C528 0xFFFFFFFF 0x0053BFCC

+0030: 0x0000001A 0x94E7255C 0x00000000 0x7C80934A

+0040: 0x02E4F484 0x94E7255C 0x02E830EA 0x0000001A

+0050: 0x94E7255C 0x00000000 0x100CB718 0x0022FDA4

+0060: 0x0022F97C 0x0022FFB0 0x02E958A4 0x02EBA8B0

+0070: 0x00000001 0x7E3ADEB2 0x0053E986 0x00000001

+0080: 0x008241AF 0x004D9486 0x0053ECC2 0x00000001

+0090: 0x00619B71 0x0000001A 0x00000001 0x00000001

+00A0: 0x0000000A 0x00748DA0 0x0000001A 0x00000001

+00B0: 0x7C80B741 0x00000000 0x0022FFC0 0x7FFDC000

+00C0: 0x01250000 0x4F14901A 0x002527B0 0x00000008

+00D0: 0x00000100 0x00000008 0x00000102 0x44000000

+00E0: 0x43C00000 0x00000000 0x00000000 0x00000400

+00F0: 0x00000300 0x00000000 0x00000001 0x004F0078

+0100: 0x00000200 0x00000000 0x01810201 0x00F77C91

+0110: 0x00000201 0x00000181 0x0000002C 0x00000000

+0120: 0x7FFDC000 0x0022FFB0 0x00825EA4 0x00887E20

+0130: 0xFFFFFFFF 0x0022FE70 0x00835342 0x00000065

+0140: 0x0022FFC0 0x008246F1 0x00400000 0x00000000

+0150: 0x015823D1 0x0000000A 0x00000094 0x00000005

+0160: 0x00000001 0x00000A28 0x00000002 0x76726553

+0170: 0x20656369 0x6B636150 0x80003320 0xBADB0D00

+0180: 0x00000000 0x00000000 0x00000000 0x00000000

+0190: 0x00000000 0x0000001F 0xFFFFFFFF 0xF77BE540

+01A0: 0x00000000 0x806E8410 0x8635B7B4 0xA53E7C28

+01B0: 0x00000000 0x806E8427 0x00000008 0x00000246

+01C0: 0x80503872 0x8635B688 0x8635B618 0x804FB078

+01D0: 0x8635B784 0x8635B618 0x8635B64C 0x84E381F0

+01E0: 0x806443F2 0x84F05D08 0x00824588 0x00000000

+01F0: 0x0012A528 0x7FFDC000 0xC0000005 0x00000005

+0200: 0x015823D1 0x00000044 0x01583A10 0x01583A20

+0210: 0x01583A38 0x00000000 0x00000000 0x00000000

+0220: 0x00000000 0x00000000 0x00000000 0x00000000

+0230: 0x00000000 0x00000000 0x00000000 0xFFFFFFFF

+0240: 0xFFFFFFFF 0xFFFFFFFF 0x00000000 0x00000000

+0250: 0x0022FEB0 0x0022F97C 0x0022FFE0 0x00825EA4

+0260: 0x00888078 0x00000000 0x0022FFF0 0x7C817077

+0270: 0x00000000 0x0012A528 0x7FFDC000 0x8054B6ED

 

SCM Op: 0x53F, lDbg: 0

 

Game Version: US 1.0

 

State Information: Ped Context: 0

P1 (0,0)

Edited by zork824
Link to comment
Share on other sites

 

the mod get stucks on the sound barrier particle.Particle should stop when I stop to hold W but they continue

 

I overhauled the script, works fine for me, test the script below

for the "sound barrier particle.Particle", i believe you mean the effect "BSBHYDRA"

it stops now if afterfire stops

but i need detailed information to can improve the script again

 

please open models\effects.fxp with texteditor and search for this line:

FILENAME: X:\SA\FxTools\Data\effects\gta_pc\systems/code/bsbhydra.fxs

 

then scroll down 5 lines and look at PLAYMODE:

is it playmode 2 or 0 ?

 

 

{$CLEO .cs}:F16_Afterburner_overhoald_by_zaz03A4: name_thread 'F16BURN' :F16BURNER_19wait 0if0256:   player $PLAYER_CHAR definedjf @F16BURNER_19 if  and00DD:   actor $PLAYER_ACTOR driving_car_with_model #HYDRA 0AB0:   key_pressed 105//  numeric keypad 9 key jf @F16BURNER_19 03C0: 0@ = actor $PLAYER_ACTOR car 0745: set_hydra 0@ thrust_to_horizontal 066B: 1@ = attach_particle "AFTERFIRE" to_car 0@ with_offset 0.001 -6.0 0.0 flag 1 064C: make_particle 1@ visible0003: shake_camera 50wait 500:F16BURNER_57afterfirewait 0if0256:   player $PLAYER_CHAR definedjf @F16BURNER_cleanupif   and8119:  not   car 0@ wrecked00DF:   actor $PLAYER_ACTOR driving80E1: not  player 0 pressed_key 15// ENTER 8AB0: not  key_pressed 98// numeric keypad 2 keyjf @F16BURNER_cleanupif   and80E1:   not player 0 pressed_key 16// accelerate8AB0:  not  key_pressed 105//  numeric keypad 9 key jf @F16BURNER_610745: set_hydra 0@ thrust_to_horizontal 0650: destroy_particle 1@066B: 1@ = attach_particle "AFTERBURNER" to_car 0@ with_offset 0.001 -6.0 0.0 flag 1 064C: make_particle 1@ visible jump @F16BURNER_143afterBurner :F16BURNER_6104BA: set_car 0@ speed_instantly 100.0if33@ > 1000jf @F16BURNER_57afterfire066B: 3@ = attach_particle "BSBHYDRA" to_car 0@ with_offset 0.001 -4.0 0.47229 flag 1 064C: make_particle 3@ visible0003: shake_camera 8033@ = 0jump @F16BURNER_57afterfire:F16BURNER_143afterBurnerwait 0if0256:   player $PLAYER_CHAR definedjf @F16BURNER_cleanupif   and8119:  not   car 0@ wrecked00DF:   actor $PLAYER_ACTOR driving80E1: not  player 0 pressed_key 15// ENTER 8AB0: not  key_pressed 98// numeric keypad 2 keyjf @F16BURNER_cleanupif   or00E1:   player 0 pressed_key 16// accelerate0AB0:   key_pressed 105//  numeric keypad 9 key jf @F16BURNER_143afterBurner 0745: set_hydra 0@ thrust_to_horizontal 0650: destroy_particle 1@066B: 1@ = attach_particle "AFTERFIRE" to_car 0@ with_offset 0.001 -6.0 0.0 flag 1 064C: make_particle 1@ visible wait 500jump @F16BURNER_57afterfire :F16BURNER_cleanup0650: destroy_particle 1@wait 1000jump @F16BURNER_19

 

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
  • 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.