Jump to content
    1. Welcome to GTAForums!

    1. GTANet.com

    1. GTA Online

      1. Los Santos Drug Wars
      2. Updates
      3. Find Lobbies & Players
      4. Guides & Strategies
      5. Vehicles
      6. Content Creator
      7. Help & Support
    2. Red Dead Online

      1. Blood Money
      2. Frontier Pursuits
      3. Find Lobbies & Outlaws
      4. Help & Support
    3. Crews

    1. Grand Theft Auto Series

      1. Bugs*
      2. St. Andrews Cathedral
    2. GTA VI

    3. GTA V

      1. Guides & Strategies
      2. Help & Support
    4. GTA IV

      1. The Lost and Damned
      2. The Ballad of Gay Tony
      3. Guides & Strategies
      4. Help & Support
    5. GTA San Andreas

      1. Classic GTA SA
      2. Guides & Strategies
      3. Help & Support
    6. GTA Vice City

      1. Classic GTA VC
      2. Guides & Strategies
      3. Help & Support
    7. GTA III

      1. Classic GTA III
      2. Guides & Strategies
      3. Help & Support
    8. Portable Games

      1. GTA Chinatown Wars
      2. GTA Vice City Stories
      3. GTA Liberty City Stories
    9. Top-Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    1. Red Dead Redemption 2

      1. PC
      2. Help & Support
    2. Red Dead Redemption

    1. GTA Mods

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Red Dead Mods

      1. Documentation
    3. Mod Showroom

      1. Scripts & Plugins
      2. Maps
      3. Total Conversions
      4. Vehicles
      5. Textures
      6. Characters
      7. Tools
      8. Other
      9. Workshop
    4. Featured Mods

      1. Design Your Own Mission
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Rockstar Games

    2. Rockstar Collectors

    1. Off-Topic

      1. General Chat
      2. Gaming
      3. Technology
      4. Movies & TV
      5. Music
      6. Sports
      7. Vehicles
    2. Expression

      1. Graphics / Visual Arts
      2. GFX Requests & Tutorials
      3. Writers' Discussion
      4. Debates & Discussion
    1. Announcements

    2. Forum Support

    3. Suggestions

[Help] Custom main.scm save point loading problem


GTA Loyalty
 Share

Recommended Posts

GTA Loyalty

Hi everyone. Ok, so, I've been working on a new main.scm for a few months. In this main I have putted the save point into a house and everything were ok until I code the fourth mission. Since that, everytime I try to load a savegame, the game it freezes into a black screen.

This is the thread of the savegame:

 

:SAVETHREADB_133271
thread 'SAVETHREADB' 
wait 0 
if 
  $ONMISSION == 0 
jf @SAVETHREADB_133271 
jump @SAVETHREADB_133326 

:SAVETHREADB_133326
wait 0 
if
  $ONMISSION == 0  
jf @SAVETHREADB_133271 
$SAVE2 = Pickup.Create(#PICKUPSAVE, 3, 2186.291, -1212.681, 1049.023)
jump @SAVETHREADB_133430 

:SAVETHREADB_133430
wait 0 
if 
   Pickup.Picked_up($SAVE2)
jf @SAVETHREADB_133488 
Player.CanMove($PLAYER_CHAR) = False
$ONMISSION = 1  
jump @SAVETHREADB_133578 

:SAVETHREADB_133488
wait 0 
if 
  $ONMISSION == 1 
jf @SAVETHREADB_133430 
Pickup.Destroy($SAVE2)
jump @SAVETHREADB_133271  

:SAVETHREADB_133578
wait 0 
03D8: show_save_screen 
jump @SAVETHREADB_133592 

:SAVETHREADB_133592
wait 0 
if 
83D9:   not save_done 
jf @SAVETHREADB_133616 
jump @SAVETHREADB_133592 

:SAVETHREADB_133616
fade 0 1000 
wait 0 
if 
   Player.Defined($PLAYER_CHAR)
jf @SAVETHREADB_133616 
fade 1 1000
023C: load_special_actor 'ZERO' as 1 // models 290-299 
016C: restart_if_wasted_at 2027.77 -1420.52 15.99 angle 137.0 town_number 0
Camera.Restore_WithJumpCut
Camera.SetBehindPlayer 
Actor.PutAt($PLAYER_ACTOR, 2188.044, -1212.571, 1049.023)
Actor.Angle($PLAYER_ACTOR) = -90.0
Player.CanMove($PLAYER_CHAR) = True
$ONMISSION = 0
wait 0
0296: unload_special_actor 1

:SAVE_4029
wait 0 
if 
023D:   special_actor 1 loaded 
else_jump @SAVE_4029 
09C7: change_player $PLAYER_CHAR model_to #SPECIAL01 
07FE: set_actor $PLAYER_ACTOR fighting_style_to 7 moves 6 
$ONMISSION = 0 
jump @SAVETHREADB_133271 

:SAVETHREADB_133748
wait 2500 
jump @SAVETHREADB_133748


I tried removing the special actor, the fighting style switch and that for testing and It didn't work either, so what could be? I really don't know what else to do.

Thank you.

Link to comment
Share on other sites

GTA Loyalty

Oh god. My bad, I didn't realize I putted the unload on the wrong line. But that's not the problem, the game still getting freeze

Link to comment
Share on other sites

try this

:SAVETH_01
thread 'SAVETHB'

:SAVETH_03 
wait 0 
if 
  $ONMISSION == 0 
jf @SAVETH_03 
$SAVE2 = Pickup.Create(#PICKUPSAVE, 3, 2186.291, -1212.681, 1049.023) 

:SAVETH_14
wait 0 
if 
   Pickup.Picked_up($SAVE2)
jf @SAVETH_17 
Player.CanMove($PLAYER_CHAR) = False
$ONMISSION = 1  
jump @SAVETH_21 

:SAVETH_17
if 
  $ONMISSION == 1 
jf @SAVETH_14 
Pickup.Destroy($SAVE2)
jump @SAVETH_03  

:SAVETH_21
wait 350 
03D8: show_save_screen  

:SAVETH_25
wait 0 
if 
83D9:   not save_done 
jf @SAVETH_26 
jump @SAVETH_25 

:SAVETH_26
Actor.PutAt($PLAYER_ACTOR, 2188.044, -1212.571, 1049.023)
Actor.Angle($PLAYER_ACTOR) = -90.0
Player.CanMove($PLAYER_CHAR) = True
$ONMISSION = 0 
fade 0 0 

:SAVETH_28
wait 0 
if 
   Player.Defined($PLAYER_CHAR)
jf @SAVETH_28 
fade 1 1000
023C: load_special_actor 'ZERO' as 1 // models 290-299 
016C: restart_if_wasted_at 2027.77 -1420.52 15.99 angle 137.0 town_number 0
Camera.Restore_WithJumpCut
Camera.SetBehindPlayer 

:SAVETH_32
wait 0 
if 
023D:   special_actor 1 loaded 
else_jump @SAVETH_32 
09C7: change_player $PLAYER_CHAR model_to #SPECIAL01 
07FE: set_actor $PLAYER_ACTOR fighting_style_to 7 moves 6
0296: unload_special_actor 1
jump @SAVETH_03

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • 1 User Currently Viewing
    0 members, 0 Anonymous, 1 Guest

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.