Quantcast

Jump to content

» «
Photo

My missions crash The game

3 replies to this topic
Maro Hannover
  • Maro Hannover

    Scriptboy

  • BUSTED!
  • Joined: 06 Jan 2014
  • None

#1

Posted 07 January 2014 - 01:28 PM

I always tried to make Missions by sannybuilder but the game crashes instead. I made everything Loading model,checking model,adding model, cutscenes i made everything properly. i need help for a correct code please.

 

Mission starter:

 

i dont know how to make a mission starter it is very confusing also from tutoriols. i just copy paste from tutoriols.

 

 

Story:

 

Model #VMAFF 1 AND #WMYST Were hanging around LS COUNTY .#WMYST Was in a zr-350 stationary and #VMAFF1 was in standing by the and was talking to #WMYST then CJ Comes And see them then Walks front. but i then the camera to be behind the CJ and the player cant be controllable. like

Player.Controllable($PLAYER_CHAR, false)
Camera.SetBehindPlayer($PLAYER_CHAR)

AND HE WALKS BY

 

AS_actor $PLAYER_ACTOR walk_to 2682.2742 -181.7803 34.8671 angle 0.0 radius 0.2

 

then cj sees them and remembers that they were disturbing him.

 

then he takes a desert eagle and aim. NOTE: I had loaded and given the weapon

 

01B9: set_actor $PLAYER_ACTOR armed_weapon_to 24

0635: AS_actor $PLAYER_ACTOR aim_at_actor 10@ 3000 ms.

 

then #VMAFF1 See CJ and enters the Car Quickly

then #WMTST drive with speed 100.0

 

05D1: AS_actor 5@ drive_car $zr350 to 2487.1799 -1670.8324 13.3359 speed 100.0 0 model #ZR350 1.

 

Then Player Gets wanted level and the camera is restored and controllable

 

HERE IS THE Full Code i did. Only Mission Code not starter.

 

$CLEO .cm}

004F: create_thread @MaroAndBeso


:MaroAndBeso
wait 0
0247: load_model #VMAFF1
0247: load_model #WMYST
0247: load_model #TEC9
0247: load_model #DESERT_EAGLE
0247: load_model #COMET
0247: load_model #BF400
0247: load_model #BAT
0247: load_model #ZR350
038B: load_requested_models
wait 0
0002: jump @Model_Load

:Model_Load
wait 0
00D6: if or
8248: not model #VMAFF1 available
8248: not model #WMYST available
8248: not model #TEC9 available
8248: not model #DESERT_EAGLE available
8248: not model #COMET available
8248: not model #BF400 available
8248: not model #BAT available
8248: not model #ZR350 available
004D: jump_if_false @FADE                                             
0001: wait 0
0002: jump @MODEL_LOAD

:FADE
fade 0 500
repeat
wait 1000 ms
until 816B:   not fading
02A3: enable_widescreen 1
0002: jump @Model_Spawn

:Model_Spawn
wait 0                                    
10@ = Actor.Create(GANG6, #VMAFF1, 2667.4241, -269.6395, 37.8234)
0674: set_car_model #ZR350 numberplate "Maro2001"
00A5: $zr350 = create_car #ZR350 at 2671.6646 -269.4298 37.666
0224: set_car $zr350 health_to 500
0674: set_car_model #COMET numberplate "BESO2004"
00A5: $comet = create_car #COMET at 2683.3496 -195.7684 34.2353
5@ = Actor.CreateAsDriver(CIVMALE, #WMYST, $zr350)
01B2: give_actor 10@ weapon 5 ammo 1000
01B9: set_actor 10@ armed_weapon_to 5
0674: set_car_model #BF400 numberplate "ZD98"
00A5: $bf = create_car #BF400 at 2719.0000 -504.0000 61.3750
01B2: give_actor $PLAYER_ACTOR weapon 24 ammo 30000
01B9: set_actor $PLAYER_ACTOR armed_weapon_to 24
01B2: give_actor 5@ weapon 32 ammo 15
01B9: set_actor 5@ armed_weapon_to 32

Player.Controllable($PLAYER_CHAR, false)
Camera.SetBehindPlayer($PLAYER_CHAR)
00BA: show text_styled GXT "is it them" time 3000 style 6
0804: AS_actor $PLAYER_ACTOR walk_to 2682.2742 -181.7803 34.8671 angle 0.0 radius 0.2 animation "GRLFRD_KISS_03" IFP_file "BD_FIRE" 4.0 LA 0 LX 0 LY 0 LF 0 LT -1
wait 10000 ms
00BA: show text_styled GXT "Yes it is that stupid guys" time 3000 style 6
wait 1000 ms
00BA: show text_styled GXT "lets destroy this car" time 3000 style 6
0635: AS_actor $PLAYER_ACTOR aim_at_actor 10@ 3000 ms
wait 3000 ms
Camera.SetPosition(2672.0767, -253.2824, 35.7842, 0.0, 0.0, 0.0)
Camera.PointAt(2667.4241, -269.6395, 37.8234, 2)
074D: AS_actor 10@ turns_to_and_look_at_actor $PLAYER_ACTOR timelimit 10000 ms
00BA: show text_styled GXT "Who is This?" time 3000 style 6
00BA: show text_styled GXT "No sh*t!" time 3000 style 6
00BA: show text_styled GXT "It is The Black Guy" time 3000 style 6
05CA: AS_actor 10@ enter_car $zr350 passenger_seat 1 time -1
wait 1000 ms
00BA: show text_styled GXT "this is Bad!" time 2000 style 6
wait 2000 ms
00BA: show text_styled GXT "Maro Run!" time 2000 style 6
05D1: AS_actor 5@ drive_car $zr350 to 2487.1799 -1670.8324 13.3359 speed 100.0 0 model #ZR350 1
wait 5000 ms
Camera.Restore($PLAYER_CHAR)
Player.Controllable($PLAYER_CHAR, true)
00BA: show text_styled GXT "Cops are on you" time 5000 style 4
wait 5000 ms
00BA: show text_styled GXT "BITCHES!" time 3000 style 6
wait 10000 ms
0004: $ONMISSION = 0
00D8: mission_cleanup

end_thread

 

 

Sorry for my bad english

 


ZAZ
  • ZAZ

    Kernlochbohrer

  • Feroci
  • Joined: 10 Jan 2005
  • European-Union
  • Contribution Award [Mods]
    Helpfulness Awards [Mods]

#2

Posted 07 January 2014 - 06:49 PM Edited by ZAZ, 07 January 2014 - 07:00 PM.

Why the hell did you put this into your script?

004F: create_thread @MaroAndBeso

oh  yes, i know,
because you found this script which was made for main.scm
but you want to write a cleoscript, so read cleo tutorial especially about Special Particularities in Cleo

 

In addition, your script isn't a real missionscript, it's a fake mission which would run as mission in main.scm but not in real mission mode

you can make missionstarter and mission script in one simple thread

 

so, change {$CLEO .cm} into {$CLEO .cs}

remove 004F: create_thread @MaroAndBeso

change end_thread into 0A93: end_custom_thread

 

then you also need a propper scriptbeginn, put the missionstarterscript to the top, below of {$CLEO .cs}


Maro Hannover
  • Maro Hannover

    Scriptboy

  • BUSTED!
  • Joined: 06 Jan 2014
  • None

#3

Posted 08 January 2014 - 08:56 AM Edited by Maro Hannover, 08 January 2014 - 09:02 AM.

Exactly I had Copy Past From your cleo tutoriol the mission starter i made from your TUT: see This is your code
 
{$CLEO .cs}
004F: create_thread @Test_M_Start_2

:Test_M_Start_2
0001: wait  0
00D6: if  0
0256:   player $PLAYER_CHAR defined
004D: jump_if_false @Test_M_Start_2
00D6: if  0
0038:   $ONMISSION ==  0  // integer values
004D: jump_if_false @Test_M_Start_2

:Test_M_Start_6
00D6: if  0
00FE:   actor $PLAYER_ACTOR  1 (in-sphere)near_point 2685.0400 -166.5878 35.1329 radius  3.5  3.5  5.5
004D: jump_if_false @Test_M_Start_2
00BA: text_styled 'Maro and Beso'  1000 ms  2
0004: $ONMISSION =  1  // integer values
0A94: start_custom_mission "MaroAndBeso"  //

0A93: end_custom_thread

 
 
 
and i have a small question.
 
How you make this image script This White image how. how you make it?
 
and also your tutoriols are so confusing i dont understand anything


ZAZ
  • ZAZ

    Kernlochbohrer

  • Feroci
  • Joined: 10 Jan 2005
  • European-Union
  • Contribution Award [Mods]
    Helpfulness Awards [Mods]

#4

Posted 09 January 2014 - 02:42 PM

and also your tutoriols are so confusing i dont understand anything

The tut looks bad because the code format is broken since the forum software change
It looks better at my own website: click





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users