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

Game crashes with this CLEO script - GTA III


atRM
 Share

Recommended Posts

I made this mod for GTA III but the game crashes 3/4s of the way on the loading screen. It says 'Unhandled Exception' or something. Here is the CLEO script. Please help me by figuring out where I went wrong if it is something to do with opcode's etc...

--PLEASE DO NOT TAKE THE MOD--

 

{$CLEO .cs}

0000:
:NUMB
0001: wait 0 ms
00D6: if
00E0: is_player_in_any_car $PLAYER_CHAR
004D: jump_if_false @NUMB
0002: jump @Numb3
:Numb3
0001: wait 0 ms
00D6: if
00E1: key_pressed 18 0
004D: jump_if_false @NUMB
0002: jump @Numb4
:Numb4
0001: wait 0 ms
01B4: set_player $PLAYER_CHAR can_move 0
03C0: [email protected] = actor $PLAYER_ACTOR car
0001: wait 1000000 ms
01B4: set_player $PLAYER_CHAR can_move 1
00E0: is_player_in_any_car $PLAYER_CHAR
004D: jump_if_false @Numb5
0002: jump @Numb3
:Numb5
0001: wait 1000000 ms
00D6: if
0119: is_car_dead [email protected]
004D: jump_if_false @Numb5
0002: jump @Numb6
:Numb6
0001: wait 0 ms
0001: wait 1000 ms
0002: jump @NBSPF
:NBSPF
0001: wait 0 ms
0119: is_car_dead [email protected]
004D: jump_if_false @NBSPF
0002: jump @STITE
:STITE
0001: wait 0 ms
00BA: print_big 'DeadCar' time 1000 style 2
0002: jump @NUMB
I DO NOT KNOW WHAT'S WRONG. Please please help. It is to store a cars coordinates by the way.
Help is appreciated. I am only a beginner with GTA III.
Link to comment
Share on other sites

If I remember, CLEO scripts are loaded AFTER the game is ready, so after the load screen goes away.

 

Try to remove all CLEO scripts first and try again. If it works, try a simple script like 0000:, wait a few seconds, play some music and end_custom_thread and check again.

Link to comment
Share on other sites

If I remember, CLEO scripts are loaded AFTER the game is ready, so after the load screen goes away.

 

Try to remove all CLEO scripts first and try again. If it works, try a simple script like 0000:, wait a few seconds, play some music and end_custom_thread and check again.

So are you saying take all my mods out of the game, then make a 0000: script with 0a93: end_custom_thread at the end, put that in the game, load the game, and then retry.

Thank you for bothering to help anyway. If you could just clarify what you are saying though that would be great :)

Link to comment
Share on other sites

Change {VERSION} in first line, because this is for VC.

 

 

{$VERSION 2.2.0006}{$CLEO .cs}//-------------MAIN---------------        0000:wait 10000394: play_music 105DC: end_custom_thread

 

This should play a mission passed sound and exit. Check if this crashes you game.

Link to comment
Share on other sites

Change {VERSION} in first line, because this is for VC.

{$VERSION 2.2.0006}{$CLEO .cs}//-------------MAIN---------------        0000:wait 10000394: play_music 105DC: end_custom_thread

This should play a mission passed sound and exit. Check if this crashes you game.

Thank you for your help! :)

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.