Jump to content
    1. Welcome to GTAForums!

    1. GTANet.com

    1. GTA Online

      1. Los Santos Drug Wars
      2. Updates
      3. Find Lobbies & Players
      4. Guides & Strategies
      5. Vehicles
      6. Content Creator
      7. Help & Support
    2. Red Dead Online

      1. Blood Money
      2. Frontier Pursuits
      3. Find Lobbies & Outlaws
      4. Help & Support
    3. Crews

    1. Grand Theft Auto Series

      1. Bugs*
      2. St. Andrews Cathedral
    2. GTA VI

    3. GTA V

      1. Guides & Strategies
      2. Help & Support
    4. GTA IV

      1. The Lost and Damned
      2. The Ballad of Gay Tony
      3. Guides & Strategies
      4. Help & Support
    5. GTA San Andreas

      1. Classic GTA SA
      2. Guides & Strategies
      3. Help & Support
    6. GTA Vice City

      1. Classic GTA VC
      2. Guides & Strategies
      3. Help & Support
    7. GTA III

      1. Classic GTA III
      2. Guides & Strategies
      3. Help & Support
    8. Portable Games

      1. GTA Chinatown Wars
      2. GTA Vice City Stories
      3. GTA Liberty City Stories
    9. Top-Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    1. Red Dead Redemption 2

      1. PC
      2. Help & Support
    2. Red Dead Redemption

    1. GTA Mods

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Red Dead Mods

      1. Documentation
    3. Mod Showroom

      1. Scripts & Plugins
      2. Maps
      3. Total Conversions
      4. Vehicles
      5. Textures
      6. Characters
      7. Tools
      8. Other
      9. Workshop
    4. Featured Mods

      1. Design Your Own Mission
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Rockstar Games

    2. Rockstar Collectors

    1. Off-Topic

      1. General Chat
      2. Gaming
      3. Technology
      4. Movies & TV
      5. Music
      6. Sports
      7. Vehicles
    2. Expression

      1. Graphics / Visual Arts
      2. GFX Requests & Tutorials
      3. Writers' Discussion
      4. Debates & Discussion
    1. Announcements

    2. Support

    3. Suggestions

Mission Crashing


Pie015
 Share

Recommended Posts

I made this mission which CJ has to kill a serial killer

the problem is that the game freezes when the cutscene finishes and:

 

The pickup doesn't show during the cutscene

'TELLSHIM' doesent show during the cutscene

'REPLYFRM' doesent show during the cutscene

Actor [email protected] doesent his animation, instead he just walks away during the cutscene

 

 

THE QUESTION: How do I make a square marker on the map, like on a mission when you get in the car a yellow square appears how do I do that?

 

 

{$CLEO .cs}//-----------MAIN-------------0000: NOP:002A7: [email protected] = create_icon_marker_and_sphere 23 at -776.7021 2763.4634 45.7026:1wait 0if00FE:   actor $PLAYER_ACTOR sphere 0 in_sphere -776.7021 2763.4634 45.7026 radius 1.0 1.0 1.0jf @1Model.Load(#OMYRI)Model.Load(#CHNSAW)Model.Load(#QUAD)Model.Load(#DWMOLC2)038B: load_requested_models Marker.Disable([email protected])04ED: load_animation "GANGS":2if andModel.Available(#OMYRI)Model.Available(#CHNSAW)Model.Available(#QUAD)Model.Available(#DWMOLC2)04EE:  animation "GANGS" loadedjf @2:3wait 0Pickup.Create([email protected], #BAT, 3, -782.6749, 2761.6299, 45.6588)Actor.Create([email protected], CivMale, #OMYRI, -780.4671, 2763.3264, 45.675)Actor.Angle([email protected]) = 270.0746  [email protected] = Car.Create(#QUAD, -786.5001, 2745.6267, 45.6421)Car.Angle([email protected]) = 178.207902A3: enable_widescreen 1Player.CanMove($PLAYER_CHAR, False)Camera.SetPosition(-780.1783, 2763.7344, 46.3851, 0.0, 0.0, 0.0)Camera.PointAt(-776.7692, 2764.4758, 45.8556, 2)074D: AS_actor $PLAYER_ACTOR turns_to_and_look_at_actor [email protected] timelimit -1wait 2000 0605: actor [email protected] perform_animation_sequence "prtial_gngtlkA" IFP_file "GANGS" 4.0 loop 1 0 0 0 time -1 // versionA0605: actor $PLAYER_ACTOR perform_animation_sequence "prtial_gngtlkB" IFP_file "GANGS" 4.0 loop 1 0 0 0 time -1 // versionA00BC: show_text_highpriority GXT 'CANYOU' time 2000 flag 1wait 200000BC: show_text_highpriority GXT 'WHATISW' time 2000 flag 1wait 200000BC: show_text_highpriority GXT 'TELLSHIM' time 2000 flag 1wait 200000BC: show_text_highpriority GXT 'REPLYFRM' time 2000 flag 1wait 2000Camera.SetPosition(-780.1039, 2763.9509, 48.2556, 0.0, 0.0, 0.0)Camera.PointAt(-782.6749, 2761.6299, 45.6588, 2)00BA: show_text_styled GXT 'PLOTTY' time 2000 style 7wait 20000687: clear_actor $PLAYER_ACTOR task009B: destroy_actor [email protected]([email protected])  Camera.Restore_WithJumpCut()02A3: enable_widescreen 0Player.CanMove($PLAYER_CHAR, True):4wait 0if and8741:   not actor $PLAYER_ACTOR busted not Actor.Dead($PLAYER_ACTOR)not Car.Wrecked([email protected])jf @MISSION_CLEANUP_2Marker.CreateAboveCar([email protected], [email protected])Marker.SetColor([email protected], 2)00BC: show_text_highpriority GXT 'GETCARIN' time 2000 flag 1wait 0 msrepeatuntil Actor.InCar($PLAYER_ACTOR, [email protected])Marker.Disable([email protected])03BC: [email protected] = create_sphere_at -812.7591 2358.6523 151.1292 radius 2.0:5wait 0if ornot Car.Wrecked([email protected])not Actor.Dead($PLAYER_ACTOR)jf @MISSION_CLEANUP_2:6repeatwait 0 msuntil 0101:   actor $PLAYER_ACTOR in_sphere -812.7591 2358.6523 151.1292 radius 2.0 2.0 2.0 sphere 0 stopped03BD: destroy_sphere [email protected]([email protected], Criminal, #DWMOLC2, -807.7534, 2392.7275, 154.3364)Actor.Angle([email protected]) = 242.035101B2: give_actor [email protected] weapon 9 ammo 1 // Load the weapon model before using this01B9: set_actor [email protected] armed_weapon_to 905E2: AS_actor [email protected] kill_actor $PLAYER_ACTOR0350: set_actor [email protected] maintain_position_when_attacked 1Actor.Health([email protected]) = 600Marker.CreateAboveActor([email protected], [email protected])Marker.SetColor([email protected], 0):7wait 0 msrepeatuntil Actor.Dead([email protected])jump @MISSION_CLEANUP:MISSION_CLEANUPwait 0if and8741:   not actor $PLAYER_ACTOR bustednot Actor.Dead($PLAYER_ACTOR)jf @MISSION_CLEANUP_2ifActor.Dead([email protected])jf @MISSION_CLEANUP 0394: play_music 101E3: show_text_1number_styled GXT 'M_PASS' number 10000 time 5000 style 1 // MISSION PASSED!~n~~w~$~1~Player.Money($PLAYER_CHAR) += 5000Marker.Disable([email protected])Actor.RemoveReferences([email protected])Car.RemoveReferences([email protected])0249: release_model #DWMOLC2 0249: release_model #QUAD0249: release_model #CHNSAW0249: release_model #OMORI04EF: release_animation "GANGS"jump @0:MISSION_CLEANUP_2wait 000BA: show_text_styled GXT 'M_FAIL' time 5000 style 1  // Beefy Baron009B: destroy_actor [email protected] 00A6: destroy_car [email protected]([email protected])Car.RemoveReferences([email protected])0249: release_model #DWMOLC2 0249: release_model #QUAD0249: release_model #CHNSAW0249: release_model #OMORI04EF: release_animation "GANGS"jump @0

 

 

 

THE FXT

 

CANYOU Hey CJ, Can you help me out a bit?WHATISW What's wrong mofo?TELLSHIM Can you go kill the Serial Killer? He is on the peak of that mountain, here I'll put it on your map.REPLYFRM Ok, Ill see whatta I can do homiePLOTTY Pickup the bat if you need it.GETCARIN ~b~Get on the Quadbike!

 

Link to comment
Share on other sites

- It needs to put the wait inside the load check loop

- it needs to put the wait inside the repeat/until loop

- at the end the code jumps back to beginning, to label 0

so it needs also to put a wait after label 0

 

- use either 009B: destroy_actor [email protected] or Actor.RemoveReferences([email protected])

same for actor [email protected] of MISSION_CLEANUP_2

 

- remove the brackets in this code:

Camera.Restore_WithJumpCut()

Link to comment
Share on other sites

Gravedigger69
- It needs to put the wait inside the load check loop

- it needs to put the wait inside the repeat/until loop

- at the end the code jumps back to beginning, to label 0

so it needs also to put a wait after label 0

 

- use either 009B: destroy_actor [email protected] or Actor.RemoveReferences([email protected])

same for actor [email protected] of MISSION_CLEANUP_2

 

- remove the brackets in this code:

Camera.Restore_WithJumpCut()

Do you not answer your PMs?

Link to comment
Share on other sites

 

- It needs to put the wait inside the load check loop

- it needs to put the wait inside the repeat/until loop

- at the end the code jumps back to beginning, to label 0

so it needs also to put a wait after label 0

 

- use either 009B: destroy_actor [email protected] or Actor.RemoveReferences([email protected])

same for actor [email protected] of MISSION_CLEANUP_2

 

- remove the brackets in this code:

Camera.Restore_WithJumpCut()

Do you not answer your PMs?

EDIT: I thought you were talking to me

 

EDIT: The same result, it crashes, and the text and the pickup dont show and the n00b just walks away.

Edited by Pie015
Link to comment
Share on other sites

 

 

EDIT: The same result, it crashes, and the text and the pickup dont show and the n00b just walks away.

post your new script, i'm shure you still have the same mistakes as i mentioned

(i only talk about fixing to protect crashes)

Edited by ZAZ
Link to comment
Share on other sites

 

EDIT: The same result, it crashes, and the text and the pickup dont show and the n00b just walks away.

post your new script, i'm shure you still have the same mistakes as i mentioned

(i only talk about fixing to protect crashes)

 

BTW: Thanks UNRATED

 

 

{$CLEO .cs}//-----------MAIN-------------0000: NOP:0wait 002A7: [email protected] = create_icon_marker_and_sphere 23 at -776.7021 2763.4634 45.7026:1wait 0if00FE:   actor $PLAYER_ACTOR sphere 0 in_sphere -776.7021 2763.4634 45.7026 radius 1.0 1.0 1.0jf @1Model.Load(#OMYRI)Model.Load(#CHNSAW)Model.Load(#QUAD)Model.Load(#DWMOLC2)038B: load_requested_models Marker.Disable([email protected])04ED: load_animation "GANGS":2wait 0if andModel.Available(#OMYRI)Model.Available(#CHNSAW)Model.Available(#QUAD)Model.Available(#DWMOLC2)04EE:  animation "GANGS" loadedjf @2:3wait 0Pickup.Create([email protected], #BAT, 3, -782.6749, 2761.6299, 45.6588)Actor.Create([email protected], CivMale, #OMYRI, -780.4671, 2763.3264, 45.675)Actor.Angle([email protected]) = 270.0746  [email protected] = Car.Create(#QUAD, -786.5001, 2745.6267, 45.6421)Car.Angle([email protected]) = 178.207902A3: enable_widescreen 1Player.CanMove($PLAYER_CHAR, False)Camera.SetPosition(-780.1783, 2763.7344, 46.3851, 0.0, 0.0, 0.0)Camera.PointAt(-776.7692, 2764.4758, 45.8556, 2)074D: AS_actor $PLAYER_ACTOR turns_to_and_look_at_actor [email protected] timelimit -1wait 2000 0605: actor [email protected] perform_animation_sequence "prtial_gngtlkA" IFP_file "GANGS" 4.0 loop 1 0 0 0 time -1 // versionA0605: actor $PLAYER_ACTOR perform_animation_sequence "prtial_gngtlkB" IFP_file "GANGS" 4.0 loop 1 0 0 0 time -1 // versionA00BC: show_text_highpriority GXT 'CANYOU' time 2000 flag 1wait 200000BC: show_text_highpriority GXT 'WHATISW' time 2000 flag 1wait 200000BC: show_text_highpriority GXT 'TELLSHIM' time 2000 flag 1wait 200000BC: show_text_highpriority GXT 'REPLYFRM' time 2000 flag 1wait 2000Camera.SetPosition(-780.1039, 2763.9509, 48.2556, 0.0, 0.0, 0.0)Camera.PointAt(-782.6749, 2761.6299, 45.6588, 2)00BA: show_text_styled GXT 'PLOTTY' time 2000 style 7wait 20000687: clear_actor $PLAYER_ACTOR taskActor.RemoveReferences([email protected])  Camera.Restore_WithJumpCut02A3: enable_widescreen 0Player.CanMove($PLAYER_CHAR, True):4wait 0if and8741:   not actor $PLAYER_ACTOR busted not Actor.Dead($PLAYER_ACTOR)not Car.Wrecked([email protected])jf @MISSION_CLEANUP_2Marker.CreateAboveCar([email protected], [email protected])Marker.SetColor([email protected], 2)00BC: show_text_highpriority GXT 'GETCARIN' time 2000 flag 1wait 0 msrepeatuntil Actor.InCar($PLAYER_ACTOR, [email protected])Marker.Disable([email protected])03BC: [email protected] = create_sphere_at -812.7591 2358.6523 151.1292 radius 2.0:5wait 0if ornot Car.Wrecked([email protected])not Actor.Dead($PLAYER_ACTOR)jf @MISSION_CLEANUP_2:6wait 0 msrepeatuntil 0101:   actor $PLAYER_ACTOR in_sphere -812.7591 2358.6523 151.1292 radius 2.0 2.0 2.0 sphere 0 stopped03BD: destroy_sphere [email protected](6@, Criminal, #DWMOLC2, -807.7534, 2392.7275, 154.3364)Actor.Angle([email protected]) = 242.035101B2: give_actor [email protected] weapon 9 ammo 1 // Load the weapon model before using this01B9: set_actor [email protected] armed_weapon_to 905E2: AS_actor [email protected] kill_actor $PLAYER_ACTOR0350: set_actor [email protected] maintain_position_when_attacked 1Actor.Health([email protected]) = 600Marker.CreateAboveActor([email protected], [email protected])Marker.SetColor([email protected], 0):7wait 0 msrepeatuntil Actor.Dead([email protected])jump @MISSION_CLEANUP:MISSION_CLEANUPwait 0if and8741:   not actor $PLAYER_ACTOR bustednot Actor.Dead($PLAYER_ACTOR)jf @MISSION_CLEANUP_2ifActor.Dead([email protected])jf @MISSION_CLEANUP 0394: play_music 101E3: show_text_1number_styled GXT 'M_PASS' number 10000 time 5000 style 1 // MISSION PASSED!~n~~w~$~1~Player.Money($PLAYER_CHAR) += 5000Marker.Disable([email protected])Actor.RemoveReferences([email protected])Car.RemoveReferences([email protected])0249: release_model #DWMOLC2 0249: release_model #QUAD0249: release_model #CHNSAW0249: release_model #OMORI04EF: release_animation "GANGS"jump @0:MISSION_CLEANUP_2wait 000BA: show_text_styled GXT 'M_FAIL' time 5000 style 1  // Beefy BaronActor.RemoveReferences([email protected])Car.RemoveReferences([email protected])0249: release_model #DWMOLC2 0249: release_model #QUAD0249: release_model #CHNSAW0249: release_model #OMORI04EF: release_animation "GANGS"jump @0  

 

Link to comment
Share on other sites

as i said, it needs to put the wait inside the repeat/until loop

 

wrong:

 

repeatuntil 0101:   actor $PLAYER_ACTOR in_sphere -812.7591 2358.6523 151.1292 radius 2.0 2.0 2.0 sphere 0 stopped

 

 

 

repeatuntil Actor.Dead([email protected])

 

 

 

correct:

 

repeatwait 0until 0101:   actor $PLAYER_ACTOR in_sphere -812.7591 2358.6523 151.1292 radius 2.0 2.0 2.0 sphere 0 stopped

 

 

 

repeatwait 0until Actor.Dead([email protected])

 

Link to comment
Share on other sites

It worked!! But this the last problem. When I go into the sphere serial killer doesent attack me but instead just stands there until I attack him, then he attacks me

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
 Share

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