Author Topic: Mistake in script [SA]  (Read 1011 times)

0 Members and 1 Guest are viewing this topic.

Offline A maid

  • Creator of Worlds
  • Senior Member
  • Posts: 9033
  • Defenestration penetration.
    • View Profile
Mistake in script [SA]
« on: February 25, 2010, 08:13:34 AM »
I tried making an example script for a video intro but it's been a while so I forgot a lot.. everything.

I followed stuff of Aschratt's and Labi's tutorials but I have a mistake in the script and don't know how to fix it. Here's the script:

Code: [Select]
DEFINE OBJECTS 3
DEFINE OBJECT SANNY BUILDER 3.03
DEFINE OBJECT NULL2 // Object number -1
DEFINE OBJECT DYN_ROADBARRIER_6 // Object number -2
DEFINE MISSIONS 0
DEFINE EXTERNAL_SCRIPTS 0 // Use -1 in order not to compile AAA script
DEFINE UNKNOWN_EMPTY_SEGMENT 0
DEFINE UNKNOWN_THREADS_MEMORY 0
{$VERSION 3.1.0027}
//-------------MAIN---------------
thread 'MAIN'
042C: set_total_missions_to 0
030D: set_max_progress 187
0997: set_total_respect_points_to 1339
01F0: set_max_wanted_level_to 0
set_wb_check_to 0
00C0: set_current_time_hours_to 8 minutes_to 30
fade 0 10
set_weather 1
select_interior 0
04E4: unknown_refresh_game_renderer_at 0.0 0.0
Camera.SetAtPos(0.0, 0.0, 800.0)
$PLAYER_CHAR = Player.Create(#NULL, 1565.3661 -1359.1052 330.0569)
07AF: $PLAYER_GROUP = player $PLAYER_CHAR group
$PLAYER_ACTOR = Actor.EmulateFromPlayer($PLAYER_CHAR)
Camera.SetBehindPlayer
Actor.Angle($PLAYER_ACTOR) = 261.2598
wait 10
Player.SetClothes($PLAYER_CHAR, "SUIT1GREY", "SUIT1", Torso)
Player.SetClothes($PLAYER_CHAR, "JEANSDENIM", "JEANS", Legs)
Player.SetClothes($PLAYER_CHAR, "SNEAKERBINCBLK", "SNEAKER", Shoes)
Player.SetClothes($PLAYER_CHAR, "PLAYER_FACE", "HEAD", Head)
Player.SetClothes($PLAYER_CHAR, "CAPREDSIDE", "CAPSIDE", 16)
Player.Build($PLAYER_CHAR)
//-------------Second CJ-----------------
0053: $PLAYER_CHAR = Player.Create(#NULL, 1558.3207 -1370.3805 330.0573)
Actor.Angle($PLAYER_ACTOR) = 219.7347
wait 10
Player.SetClothes($PLAYER_CHAR, "SUIT1GREY", "SUIT1", Torso)
Player.SetClothes($PLAYER_CHAR, "JEANSDENIM", "JEANS", Legs)
Player.SetClothes($PLAYER_CHAR, "SNEAKERBINCBLK", "SNEAKER", Shoes)
Player.SetClothes($PLAYER_CHAR, "PLAYER_FACE", "HEAD", Head)
Player.SetClothes($PLAYER_CHAR, "CAPREDSIDE", "CAPSIDE", 16)
Player.Build($PLAYER_CHAR)
//-------------Third CJ-----------------
0053: $PLAYER_CHAR = Player.Create(#NULL, 1562.7572 -1346.4413 330.0495)
Actor.Angle($PLAYER_ACTOR) = 292.5747
wait 10
Player.SetClothes($PLAYER_CHAR, "SUIT1GREY", "SUIT1", Torso)
Player.SetClothes($PLAYER_CHAR, "JEANSDENIM", "JEANS", Legs)
Player.SetClothes($PLAYER_CHAR, "SNEAKERBINCBLK", "SNEAKER", Shoes)
Player.SetClothes($PLAYER_CHAR, "PLAYER_FACE", "HEAD", Head)
Player.SetClothes($PLAYER_CHAR, "CAPREDSIDE", "CAPSIDE", 16)
Player.Build($PLAYER_CHAR)
016C: restart_if_wasted_at 2027.77 -1420.52 15.99 angle 137.0 town_number 0
016D: restart_if_busted_at 1550.68 -1675.49 14.51 angle 90.0 town_number 0
wait 500
fade 1 1000
wait 1000
016A: fade  1 ()  1000 ms
0001: wait  100 ms
03E6: remove_text_box
00D7: create_thread @CAM_001

:MAIN_3
0001: wait 2500 ms
0002: jump @MAIN_3

:CAM_001
03A4: name_thread 'CAMERA'
01B4: toggle_player $PLAYER_CHAR can_move 0
02A3: toggle_widescreen 1 //Widescreen on  (1 = on | 0 = off) | If on, Radar + HUD = off!
0826: toggle_hud 0 //HUD off (0 = off | 1 = on)
0581: toggle_radar 0 //Radar off (0 = off | 1 = on)

:CAM_002
015F: set_camera_position 1576.3165 -1360.0569 324.0495 rotation 0.0 0.0 0.0
0160: set_camera_point_at 1576.317000 -1360.057000 324.049500 mode 2   
0460: set_camera_transverse_delay 0.0 time 10000
0001: wait 10000 ms

:CAM_003
015F: set_camera_position 1564.849000 -1377.977000 324.058900 rotation 0.0 0.0 0.0
0160: set_camera_point_at 1564.849000 -1377.977000 324.058900 mode 1
0001: wait 10000 ms

:CAM_004
015F: set_camera_position 1571.706000 -1341.279000 324.058900 rotation 0.0 0.0 0.0
0160: set_camera_point_at 1571.706000 -1341.279000 324.058900 mode 1
0001: wait 10000 ms

:CAM_100
0001: wait 10000 ms
02A3: toggle_widescreen 0 //Widescreen off
0826: toggle_hud 1 //HUD on
0581: toggle_radar 1 //Radar on
004E: end_thread

Offline XTO --

  • Senior Member
  • Posts: 4333
  • HUEHUEHEU
    • View Profile
Re: Mistake in script [SA]
« Reply #1 on: February 25, 2010, 09:21:53 AM »
016A: fade  1 ()  1000 ms


I dont understand much about scripting, but i think this is the line with a problem :ajaja:

Offline A maid

  • Creator of Worlds
  • Senior Member
  • Posts: 9033
  • Defenestration penetration.
    • View Profile
Re: Mistake in script [SA]
« Reply #2 on: February 25, 2010, 09:26:49 AM »
It said something about 5 parameters missing and goes to a line where I created a character, so I don't think that's the problem.

Offline Simon

  • Admin
  • Posts: 4902
  • aka Darkstar
    • View Profile
Re: Mistake in script [SA]
« Reply #3 on: February 25, 2010, 12:14:58 PM »
wait 500
fade 1 1000
wait 1000


Those line miss the Numbers at the start.

so it would be something like (i think) :

0001: wait 500 ms
016A: fade 1 1000
0001: wait 1000 ms

try checking for more like these, and see if it works out fine after that...
« Last Edit: February 25, 2010, 12:16:47 PM by Simon »

Offline A maid

  • Creator of Worlds
  • Senior Member
  • Posts: 9033
  • Defenestration penetration.
    • View Profile
Re: Mistake in script [SA]
« Reply #4 on: February 25, 2010, 12:17:37 PM »
Thanks, I'll try.

Offline Simon

  • Admin
  • Posts: 4902
  • aka Darkstar
    • View Profile
Re: Mistake in script [SA]
« Reply #5 on: February 25, 2010, 12:21:44 PM »
Though, this is SA. Never done any SA scripting, but it doesn't look to far from vc scripting.

Offline STREEM

  • ☯♫
  • Senior Member
  • Posts: 6039
    • View Profile
Re: Mistake in script [SA]
« Reply #6 on: February 25, 2010, 12:32:05 PM »
im not sure buy maybe u screwd something with clothes if its about character, like you put glasses as pants or so

Offline Xeno

  • Posts: 1542
  • It Is WorthWhile
    • View Profile
    • http://www.facebook.com/xenorizos
Re: Mistake in script [SA]
« Reply #7 on: February 25, 2010, 02:10:30 PM »
thx for the script its perfect for my solo

*STEALED!!!*

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal