IMG

 
IMG
IMG   IMG
  Welcome to GTAForums! Be sure to check out the Grand Theft Auto V Forum.

You are not registered! (If you are, click here to login) Registering is fast, free and easy and allows you to instantly reply to any topic on GTAForums.
Why wait? Click here to register your own unique username and become part of the ever-growing community!


( Log In | Register | Revalidate Validation E-mail )
Quick Log-In:
  IMG
       
>
Forum Rules GTA Modification Forums

Please post mod releases in the Mod Showroom

GTAGarage.com
free mod hosting from GTANet, simply login with your GTAForums account details

GTAModding.com
GTANet's modding wiki

GTA Modding Chatroom
provided by irc.gtanet.com (Don't have an IRC client? Click here)


  Reply to this topicStart new topicStart Poll

 Crash at cutscene

 
Mister X  
Posted: Monday, Aug 6 2012, 18:52
Quote Post


Square Civilian
Group Icon
Group: Members
Joined: Dec 25, 2007

XXXXX



I've a big problem ; here's the code:

CODE
015D: set_gamespeed 0.3
01B8: set_player $PLAYER_CHAR armed_weapon_to 0
01B4: set_player $PLAYER_CHAR control 0
052C: set_player $PLAYER_CHAR drunk_visuals 255
0581: toggle_radar 0
043C: set_game_sounds_fade 1
016A: fade 0 1000 ms
0001: wait 1200 ms
015D: set_gamespeed 1.0
0001: wait 0 ms
052C: set_player $PLAYER_CHAR drunk_visuals 20
01B4: set_player $PLAYER_CHAR control 1
01B8: set_player $PLAYER_CHAR armed_weapon_to 0
0050: gosub @SUBBARCA
0001: wait 0 ms
016A: fade 1 900 ms
0001: wait 300 ms
02EB: restore_camera_with_jumpcut
0001: wait 2500 ms
052C: set_player $PLAYER_CHAR drunk_visuals 10
0001: wait 1500 ms
052C: set_player $PLAYER_CHAR drunk_visuals 0
0581: toggle_radar 1
0051: return


Here's the gosub SUBBARCA:

CODE
:SUBBARCA
0001: wait 0 ms
04E4: unknown_refresh_game_renderer_at 38.5723 -1710.7312 6.0456
0247: request_model #TROPIC

:SUBBARCA2
0001: wait 0 ms
00D6: if
8248:   not model #TROPIC available
004D: jump_if_false @SUBBARCA2

00A5: 9@ = create_car #TROPIC 38.5723 -1710.7312 6.0456
0175: set_car 9@ z_angle_to 250.0
0369: put_player $PLAYER_CHAR in_car 9@
02DB: set_boat 9@ speed_to 50.0
01C3: remove_references_to_car 9@  
0249: release_model #TROPIC
010D: set_player $PLAYER_CHAR wanted_level_to 2
01B6: set_weather 2
0051: return


The problem,seem, very silly: when I launch the code,all run correctly: the screen fade off and ok. But then,at black screen,when game engine run SUBBARCA2 sub,the game crash after a while.

The problem is for sure the sub SUBBARCA,because if I delete it from the code all work correctly.
Someone has an explain?
What I do wrong?
PM
  Top
 

 
Link2012  
Posted: Monday, Aug 6 2012, 19:05
Quote Post


Wut?
Group Icon
Group: Members
Joined: Jan 30, 2011

ba.gif

XXXXX



CODE
:SUBBARCA2
0001: wait 0 ms
00D6: if
8248:   not model #TROPIC available
004D: jump_if_false @SUBBARCA2


If model is NOT available you will load something NOT available.
Yep, the fix is so simple:
CODE
0248:   model #TROPIC available
PMMSN
  Top
 

 
Mister X  
Posted: Tuesday, Aug 7 2012, 09:01
Quote Post


Square Civilian
Group Icon
Group: Members
Joined: Dec 25, 2007

XXXXX



QUOTE (Link2012 @ Monday, Aug 6 2012, 19:05)
CODE
:SUBBARCA2
0001: wait 0 ms
00D6: if
8248:   not model #TROPIC available
004D: jump_if_false @SUBBARCA2


If model is NOT available you will load something NOT available.
Yep, the fix is so simple:
CODE
0248:   model #TROPIC available

Thanks! happy.gif

I make this mistake because I (lazy man) copied my code from another way,but in "that" part of the script NOT MODEL AVAILABLE was the right way to do that.

Thanks again happy.gif .
PM
  Top
 

 

0 User(s) are reading this topic (0 Guests and 0 Anonymous Users)

0 Members:

Topic Options Reply to this topicStart new topicStart Poll
Search topic for posted by (exact match)



 
IMG IMG