Quantcast

Jump to content

» «
Photo

'driving_vehicle_type' check keep crashing the game

1 reply to this topic
rerse
  • rerse

    Player Hater

  • Members
  • Joined: 02 Nov 2011

#1

Posted 13 October 2013 - 01:03 PM

I want to modify the beginning of the Checkpoint Charlie mission.

 

I was trying for hours, days, but the game always crash. I think, player $PLAYER_CHAR driving_vehicle_type causes the crash. What's the problem with it?

 

The concept is that the player have to stand in a pink sphere to start the mission. After that, enter a boat.

(The pink sphere part works, but before I could enter a boat, the game crashes.)

 

Here is the code:

:Label134102
0001: wait $DEFAULT_WAIT_TIME ms
00D6: if  0
0256:   player $PLAYER_CHAR defined
004D: jump_if_false ŁŁLabel134102
00D6: if  21
00DE:   player $PLAYER_CHAR driving_vehicle_type #SQUALO
00DE:   player $PLAYER_CHAR driving_vehicle_type #JETMAX
004D: jump_if_false ŁŁLabel134102
00D6: if  0
00F7:   player $PLAYER_CHAR  1 ()near_point_in_car -585.8 -1506.8  5.0 radius  14.0  14.0  4.0
004D: jump_if_false ŁŁLabel134102

018A:  2@ = create_checkpoint_at -540.1 -1526.9  8.0
024F: create_corona  4.0  5  0 with_color  0  200  200 at_point -540.1 -1526.9  8.0
00D6: if  0
0039:    6@ ==  0  ;; integer values
004D: jump_if_false ŁLabel13416A
0213:  8@ = create_pickup #CRAIGPACKAGE type  3 at -540.1 -1526.9  8.0
0006:  6@ =  1  ;; integer values

I added only a few new items.

 

From this line, everything is default:

 

018A:  2@ = create_checkpoint_at -540.1 -1526.9  8.0
 


ZAZ
  • ZAZ

    Kernlochbohrer

  • Feroci
  • Joined: 10 Jan 2005
  • European-Union

#2

Posted 13 October 2013 - 08:40 PM

you're using the old BM Missionbuilder which have following sythax rule: double pound signe ŁŁ to make Labels of Missionscripts and simple pound signe Ł to make Labels of main part of main.scm

 

you modified a mission script and you added code and labels but a label with simple pound signe

00D6: if  0
0039:    6@ ==  0  ;; integer values
004D: jump_if_false ŁLabel13416A
004D: jump_if_false ŁLabel13416A
ŁLabel13416A
Ł
ŁŁ

MB Missionbuilder is outdated

stop immediately learning outdated syntax and use Sannybuilder instead





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users