CLEO Help GTA crashes

CLEO related
Status
Not open for further replies.

_BossErik_

Member
Joined
Oct 6, 2013
Messages
18
Reaction score
0
Hey,
I would create a cleo mod, but my gta crashes if I add the cleo mod in my cleo folder in GTA SA.
I tested it with cleo 3 and 4 but it crashes everytime..

Code:
{$CLEO .cs}

thread 'BMX1'

:BMX1
wait 0
04ED: load_animation "BMX1"
if and
04EE: animation "BMX1" loaded
047A: actor $PLAYER_ACTOR driving:_bike
0AB0: key_pressed 112
else_jump @BMX1
0812: AS_actor $PLAYER_ACTOR perform_animation "BMX_tailwhip" IFP "BMX" framedelta 4.0 loopA 0 lockX 0 lockY 0 lockF 0 time -1 // versionB
jump @BMX1

Can s.o. help me?

Sorry for bad english ;) ;);)
 

xzytro

God
Joined
Apr 1, 2013
Messages
2,294
Reaction score
7
First of all, 047A: actor $PLAYER_ACTOR driving:_bike
remove : symbol between driving and _bike :derp: :derp::derp:

Also, cut 04ED: load_animation "BMX1" and paste it before :BMX1 so that the script will not load it thousand times per second, and it will not overload and then crash anymore :catface: :catface::catface:

By the way you have 1 post count only, so you probably don't know, that we all need samp functions v2.4 or even more in order to use some of the cleo scripts.The sampfunctions by fyp v2.4 .rar package contains not only sampfunctionsv2.4.cleo file, but also the required files for the Sanny Builder's data folder to overwrite. :tongue: :tongue::tongue:
 

xzytro

God
Joined
Apr 1, 2013
Messages
2,294
Reaction score
7
Ohh, it's almost solved, then. That means you need just one more thing to do, that would be one of the elements below :

* Cleo 4.1
* I wrote SampFunctionsv2.4, but since you say you still get opcodes, you might need a higher version of it, like v2.5.1, or v2.6 (latest i think, i am not sure, there might be 2.7 as well)
* If not again, try this code instead :

Code:
{$CLEO .cs}

thread 'BMX1'

:LOAD_ANIM
04ED: load_animation "BMX1"

:BMX1
wait 0
if
04EE: animation "BMX1" loaded
else_jump @LOAD_ANIM
if and
047A: actor $PLAYER_ACTOR driving_bike
0AB0: key_pressed 112
else_jump @BMX1
0812: AS_actor $PLAYER_ACTOR perform_animation "BMX_tailwhip" IFP "BMX" framedelta 4.0 loopA 0 lockX 0 lockY 0 lockF 0 time -1 // versionB
jump @BMX1
I hope it will work, otherwise i have no other solutions or ideas. This is the furthest i can go.
 

_BossErik_

Member
Joined
Oct 6, 2013
Messages
18
Reaction score
0
It doesnt works..
I have sampfuncs 2.6 with the code that you had posted, but it doesnt works..

//I did it like in your tutorial so why it doesnt work :cry: :cry::cry:
 

David_Holan

Active member
Joined
Apr 28, 2013
Messages
145
Reaction score
0
I think you should replace
Code:
047A: actor $PLAYER_ACTOR driving_bike
with
Code:
Actor.DrivingVehicleType($PLAYER_ACTOR, #BMX)
 

David_Holan

Active member
Joined
Apr 28, 2013
Messages
145
Reaction score
0
Hm...why not delete the "framedelta" in
Code:
0812: AS_actor $PLAYER_ACTOR perform_animation "BMX_tailwhip" IFP "BMX" framedelta 4.0 loopA 0 lockX 0 lockY 0 lockF 0 time -1 // versionB
 

xzytro

God
Joined
Apr 1, 2013
Messages
2,294
Reaction score
7
Framedelta should actually exist.

In this case, animation name is the wrong one. BMX_tailwhip does not exist in BMX.ifp. Here's the list of the animations which exist in BMX.ifp

"BMX" - 18 animations
BMX_back
BMX_bunnyhop
BMX_drivebyFT
BMX_drivebyLHS
BMX_drivebyRHS
BMX_fwd
BMX_getoffBACK
BMX_getoffLHS
BMX_getoffRHS
BMX_jumponL
BMX_jumponR
BMX_kick
BMX_Left
BMX_pedal
BMX_pushes
BMX_Ride
BMX_Right
BMX_still

Also in MISC.ifp, there are a few more animations about BMX :

BMX_celebrate
BMX_comeon
bmx_idleloop_01
bmx_idleloop_02
bmx_talkleft_in
bmx_talkleft_loop
bmx_talkleft_out
bmx_talkright_in
bmx_talkright_loop
bmx_talkright_out

The mistake in the cleo was just the wrong animation name (here, tailwhip).
 

Zin

Expert
Joined
Aug 1, 2013
Messages
1,692
Reaction score
105
Ah let me explain so i was asking xzytro how to make this in the cleo dance tutorial it was solved.

@david There is a tailwhip anim but its like 0.44 seconds long but thats with my bmx.ifp so if you want to do it than search bmx tricks mod on the forum i made a post for it.
 
Status
Not open for further replies.
Top