#1 14-05-2012 16:40

HuNt3r
Registered: 14-05-2012
Posts: 2

Cleo 4 Script CRASH

I have a cleo parkour mod. When i start game , game crashing on loading screen. Error: 2F2F at offset 0. Please help ! What Is WRONG?
Cleo script:

{$VERSION 3.1.0027}
{$CLEO .cs}

//-------------MAIN---------------
0000: NOP 
thread 'TRICKS' 

TRICKS_439
wait 0 
if 
8818:   not actor $PLAYER_ACTOR in_air 
06AC: 0@ = actor $PLAYER_ACTOR movement_speed 
if and
   not Actor.Driving($PLAYER_ACTOR)
   not Actor.Animation($PLAYER_ACTOR) == "CLIMB_IDLE"
   Player.Controllable($PLAYER_CHAR)
044B:   actor $PLAYER_ACTOR on_foot 
8818:   not actor $PLAYER_ACTOR in_air 
  0@ >= 5.0 
0AB0:   key_pressed 89 
jf @TRICKS_778 
0812: AS_actor $PLAYER_ACTOR perform_animation "CRCKDETH1" IFP_file "CRACK" 10.0 loopA 0 lockX 1 lockY 1 lockF 0 time -1 // versionB 
wait 120 
083C: set_actor $PLAYER_ACTOR velocity_in_direction_XYZ 0.0 0.0 10.0 
wait 10 
04C4: store_coords_to 1@ 2@ 3@ from_actor $PLAYER_ACTOR with_offset 0.0 0.0 0.0 
04C4: store_coords_to 4@ 5@ 6@ from_actor $PLAYER_ACTOR with_offset 0.0 3.0 0.0 
0063: 4@ -= 1@ // (float) 
0063: 5@ -= 2@ // (float) 
083C: set_actor $PLAYER_ACTOR velocity_in_direction_XYZ 4@ 5@ 7.0 
wait 150 
04C4: store_coords_to 1@ 2@ 3@ from_actor $PLAYER_ACTOR with_offset 0.0 0.0 0.0 
04C4: store_coords_to 4@ 5@ 6@ from_actor $PLAYER_ACTOR with_offset 0.0 6.5 0.0 
0063: 4@ -= 1@ // (float) 
0063: 5@ -= 2@ // (float) 
083C: set_actor $PLAYER_ACTOR velocity_in_direction_XYZ 4@ 5@ 7.0 
wait 330

Offline

#2 14-05-2012 21:46

Den_spb
From: Ленинград
Registered: 23-11-2008
Posts: 941
Website

Re: Cleo 4 Script CRASH

Whole code is big mistake. At first, after "if" always "jf" or "jump" must be written. At second, cleo-script always must be finished by command 0A93: end_custom_thread or "jump".

Offline

Board footer

Powered by FluxBB