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

Happy Holidays from the GTANet team!

cleo mission crash


ShadowCoderKing
 Share

Recommended Posts

ShadowCoderKing

hey im having another problem sad.gif when the player dies the mission will crash and iv tryed heaps to fix it and i cant i hope someone could solve this problem, sorry bout the massive script

 

 

Edited by spidermight
Link to comment
Share on other sites

player_dead_check label is completely obsolete. That check is done by the EXE by itself.

 

The code looks messy as HELL though. If I looked into it deeper, I'd probably find more issues, but that one is the most apparent one.

Link to comment
Share on other sites

ShadowCoderKing

hey silent i got rid of all the player dead check and it does not crash when you die now but instead it stays on the mission because its not being told to go to TestMiss_fail_1 when player is dead, this is confusing sad.gif

Link to comment
Share on other sites

Do you set the $ONMISSION flag to 1 before launching a mission? If not, do it in the mission script & revert it back to 0 inside mission cleanup routine.

Link to comment
Share on other sites

ShadowCoderKing

yea the onmission flags are set right but i thought without that playerdeadcheck it will not go to the mission_cleanup in the first place, it will stay at that point after you die but with the deadcheck it will crash

Link to comment
Share on other sites

I'll be honest, I have no idea what's wrong with this one (haven't tested it). Although, it'd be good to replace all global vars with local vars. Pretty unlikely, but your globals might have overwritten an important var from main.scm.

 

And yeah, forgot, how do you start this mission? Show me the code.

Link to comment
Share on other sites

ShadowCoderKing

ok i will replace globals with local and see how it goes, here is what starts the mission :

{$VERSION 3.1.0023}{$CLEO .cs}//-------------MAIN---------------thread 'MISSION5STARTER' :MISSION5STARTER_19wait 0 if   Player.Defined($PLAYER_CHAR)jf @MISSION5STARTER_19 if 00EC:   actor $PLAYER_ACTOR 0 near_point 1468.412 -67.3816 radius 200.0 200.0 jf @MISSION5STARTER_19 Model.Load(#ARMY)Model.Load(#M4):MISSION5STARTER_87wait 0 if   Model.Available(#ARMY)jf @MISSION5STARTER_87 [email protected] = Actor.Create(Mission1, #ARMY, 1464.529, -60.5595, 20.7754)Actor.Angle([email protected]) = 152.1441Actor.WeaponAccuracy([email protected]) = 1000446: toggle_actor [email protected] immune_to_headshots 1 07DD: set_actor [email protected] temper_to 100 // see pedstats.dat 03FE: set_actor [email protected] money 0 01B2: give_actor [email protected] weapon 31 ammo 30000 // Load the weapon model before using this Actor.Health([email protected]) = 600Model.Destroy(#ARMY):MISSION5STARTER_193wait 0 if 80EC:   not actor $PLAYER_ACTOR 0 near_point 1468.412 -67.3816 radius 200.0 200.0 jf @MISSION5STARTER_256 wait 0 Actor.DestroyInstantly([email protected])03BD: destroy_sphere [email protected] jump @MISSION5STARTER_19 :MISSION5STARTER_256wait 0 if   Actor.Dead([email protected])jf @MISSION5STARTER_295 jump @MISSION5STARTER_283 :MISSION5STARTER_283Actor.DestroyInstantly([email protected])jump @MISSION5STARTER_19 :MISSION5STARTER_29503BD: destroy_sphere [email protected] wait 0 if   Player.Defined($PLAYER_CHAR)jf @MISSION5STARTER_295 if  $MISSION5_PASSED == 0 jf @MISSION5STARTER_295 03BC: [email protected] = create_sphere_at 1463.914 -62.2285 20.6483 radius 2.0 if 00FF:   actor $PLAYER_ACTOR sphere 1 in_sphere 1463.914 -62.2285 20.6483 radius 1.0 1.0 1.0 on_foot jf @MISSION5STARTER_193 00BA: show_text_styled GXT 'QQWER' time 1000 style 2 Actor.DestroyInstantly([email protected])$MISSION5_PASSED = 1 03BD: destroy_sphere [email protected] 0A94: start_custom_mission "MISSION5"  :MISSION5STARTER_457wait 0 if  $MISSION5_PASSED == 0 jf @MISSION5STARTER_457 jump @MISSION5STARTER_19 

 

 

and thanks for trying to help smile.gif

Link to comment
Share on other sites

yea the onmission flags are set right

Yet I don't see it set in the starter, neither in the mission tounge.gif

Link to comment
Share on other sites

ShadowCoderKing

i thought this was it : $MISSION5_PASSED = 1 / i just replaced the onmission name

Link to comment
Share on other sites

No, you need to set EXACTLY $ONMISSION, unless it's named differently in your CustomVariables.ini. That var is a key to inbuilt wasted/busted check.

Link to comment
Share on other sites

ShadowCoderKing

oh silly me confused.gif i will change this right away and test it

 

edit:

after testing it, it works perfect now,i cant believe i missed something so important like that blush.gif lol

thank you very much silent icon14.gifsmile.gifsmile.gif

Edited by spidermight
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.