Quantcast
Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
    1. Welcome to GTAForums!   (86,340 visits to this link)

    2. News

    1. GTA Online

      1. Find Lobbies & Players
      2. Guides & Strategies
      3. Vehicles
      4. Content Creator
      5. Help & Support
    2. Crews

      1. Events
      2. Recruitment
    1. Grand Theft Auto Series

    2. GTA Next

    3. GTA V

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

      1. Episodes from Liberty City
      2. Multiplayer
      3. Guides & Strategies
      4. Help & Support
      5. GTA Mods
    5. GTA Chinatown Wars

    6. GTA Vice City Stories

    7. GTA Liberty City Stories

    8. GTA San Andreas

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    9. GTA Vice City

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    10. GTA III

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    11. Top Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    12. Wiki

      1. Merchandising
    1. GTA Modding

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Mod Showroom

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

      1. DYOM
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Red Dead Redemption 2

    2. Red Dead Redemption

    3. Rockstar Games

    1. Off-Topic

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

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

    2. Site Suggestions

Gh1baudi

Created CLEO Mod makes game crashes, HELP!

Recommended Posts

Gh1baudi

Hi, i'm working on a CLEO for a video for my channel and when i activate the mod, game crashes, can help me?

EDIT: Problem are Skins, i tried replacing with Sweet, Ryder and Smoke, so, how to add the Skins to Underground GTA3.IMG?

// This file was decompiled using SASCM.ini published by GTAG (http://gtag.gtagaming.com/opcode-database) on 14.6.2013{$CLEO .cs}//-------------MAIN---------------thread 'PANDILLA' :PANDILLA_19wait 0 if    Player.Defined($PLAYER_CHAR)jf @PANDILLA_19 if 0AB0:   key_pressed 106 jf @PANDILLA_19 023C: load_special_actor 'NIKO BELLIC' as 1 // models 290-299 023C: load_special_actor 'SWEET_A' as 2 // models 290-299 023C: load_special_actor 'PIKACHU' as 3 // models 290-299 Model.Load(#PRIMO)Model.Load(#AK47)Model.Load(#SHAMAL)gosub @PANDILLA_119 :PANDILLA_119wait 2000 if 023D:   special_actor 1 loaded 023D:   special_actor 2 loaded 023D:   special_actor 3 loaded    Model.Available(#PRIMO)   Model.Available(#AK47)   Model.Available(#SHAMAL)jf @PANDILLA_119 $NIKO = Actor.Create(Gang2, #SPECIAL01, 2493.604, -1685.44, 13.5113)Actor.Angle($NIKO) = 181.3407Actor.Health($NIKO) = 1850Actor.GiveWeaponAndAmmo($NIKO, AK47, 99999)Actor.SetWalkStyle($NIKO, "GANG2")$SWEET = Actor.Create(Gang2, #SPECIAL02, 2495.013, -1685.193, 13.5114)Actor.Angle($SWEET) = 183.2207Actor.Health($SWEET) = 1850Actor.GiveWeaponAndAmmo($SWEET, AK47, 99999)Actor.SetWalkStyle($SWEET, "GANG2")$PIKACHU = Actor.Create(Gang2, #SPECIAL03, 2496.146, -1685.234, 13.4501)Actor.Angle($PIKACHU) = 178.6989Actor.Health($PIKACHU) = 1850Actor.GiveWeaponAndAmmo($PIKACHU, AK47, 99999)Actor.SetWalkStyle($PIKACHU, "GANG2")$COCHE = Car.Create(#PRIMO, 2498.109, -1681.785, 13.0355)Car.Angle($COCHE) = 286.44590229: set_car $COCHE primary_color_to 1 secondary_color_to 0 $AVION = Car.Create(#SHAMAL, 1763.386, -2591.002, 14.3963)Car.Angle($AVION) = 88.7135wait 2000 jump @PANDILLA_450 :PANDILLA_450wait 0 if 0AB0:   key_pressed 110 jf @PANDILLA_450 wait 700Actor.DestroyInstantly($NIKO)Actor.DestroyInstantly($SWEET)Actor.DestroyInstantly($PIKACHU)Car.Destroy($COCHE)Car.Destroy($AVION)0296: unload_special_actor 1 0296: unload_special_actor 2 0296: unload_special_actor 3 Model.Destroy(#PRIMO)Model.Destroy(#AK47)Model.Destroy(#SHAMAL)wait 700 jump @PANDILLA_19 

PD: I have the Skins

Edited by Gh1baudi

Share this post


Link to post
Share on other sites
dkluin

Your code has the following errors/flaws:

  • Overusing "wait"
  • Not using 038B: load_requested_models after loading 5 or more models (don't use this in any other case as you don't need to)
  • Using global variables in CLEO scripts (use local variables - [email protected] to [email protected] can be used for normal cases, [email protected] and [email protected] are timers and will always increment)
  • Using 0AB0 without checking if the user is still pressing the key

As for using additional models inside gta3.img, you can't. You need to add an IMG line before any entry in gta.dat for custom_mods.img to be able to use whatever models you desire. It's empty by default, and whatever you end up adding to the IMG archive will be used instead of UG's models. As for custom_mods.IDE, add it after all IMG entries in gta.dat and define additional peds in an additional peds section with a free ID (you can use fastman92's free ID list generator to view a list of free IDs), or you can also use peds.ide.

 

Also, why did you decompile your own scripts?

Share this post


Link to post
Share on other sites
Gh1baudi

Your code has the following errors/flaws:

  • Overusing "wait"
  • Not using 038B: load_requested_models after loading 5 or more models (don't use this in any other case as you don't need to)
  • Using global variables in CLEO scripts (use local variables - [email protected] to [email protected] can be used for normal cases, [email protected] and [email protected] are timers and will always increment)
  • Using 0AB0 without checking if the user is still pressing the key
As for using additional models inside gta3.img, you can't. You need to add an IMG line before any entry in gta.dat for custom_mods.img to be able to use whatever models you desire. It's empty by default, and whatever you end up adding to the IMG archive will be used instead of UG's models. As for custom_mods.IDE, add it after all IMG entries in gta.dat and define additional peds in an additional peds section with a free ID (you can use fastman92's free ID list generator to view a list of free IDs), or you can also use peds.ide.

 

Also, why did you decompile your own scripts?

Thanks men, i gonna try, and i create my own scripts for my YouTube channel vídeos

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.

×

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.