BTTF Forever 0 Report post Posted July 17, 2009 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
crazyjointje 0 Report post Posted July 17, 2009 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
hscitpe 6 Report post Posted July 17, 2009 You can't load a saved game once you change the code Share this post Link to post Share on other sites
BTTF Forever 0 Report post Posted July 18, 2009 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
♠Grim♂ Reaper 1666◙ 17 Report post Posted August 7, 2009 if it is a song then you will need to use multiple .wav files cause vc cant handle a huge file Share this post Link to post Share on other sites
Mini-Me 24 Report post Posted August 8, 2009 :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
daangelo29 5 Report post Posted August 8, 2009 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
Mini-Me 24 Report post Posted August 8, 2009 "Precisely". Share this post Link to post Share on other sites