:
Destination Time
:
Present Time
:
Last Time Departed
Sign in to follow this  
BTTF Forever

code line not working

Recommended Posts

this code line is not working

:THERIDE_2145

040D: unload_wav 2 

03CF: load_wav 'BUST_14' as 2 

wait 0 

if 

03D0:   wav 2 loaded 

else_jump @THERIDE_2145 

03D1: play_wav 2

04C7: toggle_camera_green_scanlines 1 

036A: put_actor $BIFF in_car $04TIME 

020A: set_car $04TIME door_status_to 2 

Camera.SetPosition(-1006.9, -914.71, 35.0, 0.0, 0.0, 0.0)

Camera.PointAt(-910.91, -1072.97, 14.05, 2)

Car.PutAt($04TIME, -1003.03, -941.2, 14.5)

Car.Angle($04TIME) = 220.0

00AE: set_vehicle $04TIME traffic_behavior_to 2 

Car.SetMaxSpeed($04TIME, 5.0)

Car.SetToPsychoDriver($04TIME)

Car.SetDriverBehaviour($04TIME, Nowhere)

Car.DriveTo($04TIME, -904.62, -1096.58, 14.0)

wait 3000 

$BIFFGO = 1 // integer values 

Car.SetMaxSpeed($04TIME, 100.0)

wait 7000 

04C7: toggle_camera_green_scanlines 0 

if 

  $RIDE_SKIP == 1 // integer values 

else_jump @THERIDE_2390 

jump @THERIDE_3512

if it makes any difference, BUST_14 is 42 MB

game crashes when start new or load game

Share this post


Link to post
Share on other sites

From what i know of GTA coding (and that isn't THAT much) is that if you want to load certen things, you need to write a code in the main.scm that makes the game check if the things are loaded or not.

Share this post


Link to post
Share on other sites
You can't load a saved game once you change the code

i know, i started a new game also, still didnt work, i had to reinstall the whole game, but this time i am keeping backups.

so please, all i need to know is whats wrong with the code? is the music file i am trying to play too big? of do i have to add another bit to the main.scm?

please someone tell me! :(:(:(

Share this post


Link to post
Share on other sites
:THERIDE_2145

040D: unload_wav 2 

03CF: load_wav 'BUST_14' as 2 

wait 0 

if 

03D0:   wav 2 loaded 

else_jump @THERIDE_2145

If the wav's not loaded it loops wrong, it always reloads it and instantly checks if it is loaded what maybe fails to then delete the wav from memory and load it again from new.

Share this post


Link to post
Share on other sites

Like what Mini-Me said.

Also be sure to unload the WAV in a later part of the code so the game would free up the memory, otherwise expect more instability mainly because of a loaded WAV.

Share this post


Link to post
Share on other sites
Sign in to follow this