Quantcast

Jump to content

» «
Photo

Created CLEO Mod makes game crashes, HELP!

2 replies to this topic
Gh1baudi
  • Gh1baudi

    Player Hater

  • Members
  • Joined: 03 Feb 2017
  • Argentina

#1

Posted A week ago Edited by Gh1baudi, A week ago.

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_19
wait 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_119
wait 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.3407
Actor.Health($NIKO) = 1850
Actor.GiveWeaponAndAmmo($NIKO, AK47, 99999)
Actor.SetWalkStyle($NIKO, "GANG2")
$SWEET = Actor.Create(Gang2, #SPECIAL02, 2495.013, -1685.193, 13.5114)
Actor.Angle($SWEET) = 183.2207
Actor.Health($SWEET) = 1850
Actor.GiveWeaponAndAmmo($SWEET, AK47, 99999)
Actor.SetWalkStyle($SWEET, "GANG2")
$PIKACHU = Actor.Create(Gang2, #SPECIAL03, 2496.146, -1685.234, 13.4501)
Actor.Angle($PIKACHU) = 178.6989
Actor.Health($PIKACHU) = 1850
Actor.GiveWeaponAndAmmo($PIKACHU, AK47, 99999)
Actor.SetWalkStyle($PIKACHU, "GANG2")
$COCHE = Car.Create(#PRIMO, 2498.109, -1681.785, 13.0355)
Car.Angle($COCHE) = 286.4459
0229: 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.7135
wait 2000 
jump @PANDILLA_450 

:PANDILLA_450
wait 0 
if 
0AB0:   key_pressed 110 
jf @PANDILLA_450 
wait 700
Actor.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


dkluin
  • dkluin

    GTA:Underground Developer

  • Members
  • Joined: 11 Jun 2013
  • Netherlands
  • Best Conversion 2016 [GTA: Underground]

#2

Posted A week ago

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? 


Gh1baudi
  • Gh1baudi

    Player Hater

  • Members
  • Joined: 03 Feb 2017
  • Argentina

#3

Posted A week ago

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




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users