Quantcast
Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
    1. Welcome to GTAForums!

    1. GTANet.com

    1. GTA Online

      1. Los Santos Summer Special
      2. The Diamond Casino Heist
      3. Find Lobbies & Players
      4. Guides & Strategies
      5. Vehicles
      6. Content Creator
      7. Help & Support
    2. Red Dead Online

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

    1. Red Dead Redemption 2

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

    1. Grand Theft Auto Series

    2. GTA VI

      1. St. Andrews Cathedral
    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. Guides & Strategies
      2. Help & Support
    6. GTA Vice City

      1. Guides & Strategies
      2. Help & Support
    7. GTA III

      1. Guides & Strategies
      2. 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. 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
    3. Gangs

    1. Announcements

    2. Support

    3. Suggestions

Sign in to follow this  
gtasearcher

[GTA3]Mission-in-mission sequence

Recommended Posts

gtasearcher

Ok, so I was working on GTA3 Improved Edition.

 

I was editing "Salvatore Called A Meeting".

 

I wanted that, after it finishes, it immidiatly starts "Chaperone".

 

Here's the code:

:TONI3_8474$263 = 1 // integer values 0110: clear_player $PLAYER_CHAR wanted_level 0109: player $PLAYER_CHAR money += 1500 0318: set_latest_mission_passed 'TM3'  // 'SALVATORE'S CALLED A MEETING'030C: set_mission_points += 1 create_thread @NONAME_32 0164: disable_marker $LUIGI_MISSION_MARKER 0164: disable_marker $JOEY_MISSION_MARKER 0164: disable_marker $TONI_MISSION_MARKER 0164: disable_marker $SALVATORE_MISSION_MARKER 02A7: $SALVATORE_MISSION_MARKER = create_icon_marker_and_sphere 16 at 1455.688 -187.25 -100.0 00A6: destroy_car $TONI3_LIMOreturn :TONI3_8559$ONMISSION = 0 // integer values $ON_MISSION_FOR_TONI = 0 // integer values 0164: disable_marker $TONI3_LIMO_MARKER 0164: disable_marker $TONI3_SALVATORE_MARKER 0164: disable_marker $TONI3_LUIGI_MARKER 0164: disable_marker $TONI3_TONI_MARKER 0164: disable_marker $1915 034F: destroy_actor_with_fade $JOEY_LEONE // The actor fades away like a ghost 034F: destroy_actor_with_fade $TONI3_LUIGI // The actor fades away like a ghost 034F: destroy_actor_with_fade $TONI_CIPRIANI // The actor fades away like a ghost 0249: release_model #STRETCH 0249: release_model #BELLYUP 0249: release_model #GANG03 0249: release_model #GANG04 0249: release_model #GANG02 0296: unload_special_actor 1 0296: unload_special_actor 2 0296: unload_special_actor 3 0296: unload_special_actor 4 021B: set_garage $SALVATORES_GARAGE to_accept_car -1 03D5: remove_text 'IN_VEH'  // ~g~Hey! Get back in the vehicle!mission_cleanupstart_mission FRANK1 // Chaperone 

 

 

And the bug is, when I finish the mission it says "Mission Failed!" but it imidiatly starts "Chaperone", and everything goes normal.

 

Also, if I fail the mission, the same thing happens. Claude gets teleported to Sal's and the cutscene begins dontgetit.gif

 

What am I doing wrong?

Share this post


Link to post
Share on other sites
loczek47

I don't know much about coding, but maybe try to put " wait 5000 " command? I think without it Chaperone starts a little bit before this mission was passed- that's why you fail it.

Share this post


Link to post
Share on other sites
_VaNkAtA_

 

I don't know much about coding, but maybe try to put " wait 5000 " command? I think without it Chaperone starts a little bit before this mission was passed- that's why you fail it.

Ye, I tought that's a nice way to slove this problem too.

Share this post


Link to post
Share on other sites
gtasearcher

Nope, the wait 5000 ms doesn't work.

 

The only thing that happens is that I get the cash for "Sal Called A Meeting" then, after 5000 ms, "Chaperone" starts and at the begining of the cutscene, I get a "Mission Failed!" dontgetit.gif

 

I'm gonna try to use the return command.

Share this post


Link to post
Share on other sites
loczek47

Um, if you work in Sanny Builder, search for option "search for opcodes". Search for opcode similar to "if_mission_<name of the mission>_passed". Maybe it will find something biggrin.gif

Share this post


Link to post
Share on other sites
gtasearcher

That opcode doesn't exist confused.gif

Share this post


Link to post
Share on other sites
loczek47

Sorry, I'm outta ideas confused.gif

 

Edited by loczek47

Share this post


Link to post
Share on other sites
loczek47

Hey, I have non-proffesional idea to make Chaperone start after Sal Called A Meeting. Instead of doing it start automatically after finishing Sal Called a Meeting, make player teleport to marker for starting Chaperone after finising Sal Called A meeting.

Share this post


Link to post
Share on other sites
gtasearcher

Maybe it's a good idea, but, somehow, my GTA3 crashes when I ALT+TAB out of it. So I can't use Sanny Buidler's coordinates tool sad.gif

Share this post


Link to post
Share on other sites
_VaNkAtA_
Maybe it's a good idea, but, somehow, my GTA3 crashes when I ALT+TAB out of it. So I can't use Sanny Buidler's coordinates tool sad.gif

Are you using Vista?

Share this post


Link to post
Share on other sites
gtasearcher
Maybe it's a good idea, but, somehow, my GTA3 crashes when I ALT+TAB out of it. So I can't use Sanny Buidler's coordinates tool sad.gif

Are you using Vista?

No, I'm using XP SP3.

Share this post


Link to post
Share on other sites
_VaNkAtA_

 

Maybe it's a good idea, but, somehow, my GTA3 crashes when I ALT+TAB out of it. So I can't use Sanny Buidler's coordinates tool sad.gif

Are you using Vista?

No, I'm using XP SP3.

Try pressing the windows start menu button

Share this post


Link to post
Share on other sites
gtasearcher
Maybe it's a good idea, but, somehow, my GTA3 crashes when I ALT+TAB out of it. So I can't use Sanny Buidler's coordinates tool sad.gif

Are you using Vista?

No, I'm using XP SP3.

Try pressing the windows start menu button

That's exaclty what I was doing all the time, but I kinda forgot how it's called smile.gif

Share this post


Link to post
Share on other sites
_VaNkAtA_
Maybe it's a good idea, but, somehow, my GTA3 crashes when I ALT+TAB out of it. So I can't use Sanny Buidler's coordinates tool sad.gif

Are you using Vista?

No, I'm using XP SP3.

Try pressing the windows start menu button

That's exaclty what I was doing all the time, but I kinda forgot how it's called smile.gif

Well I don't know what you should do now....I'll try to figure it out, if I think of something, I'll tell you.

Share this post


Link to post
Share on other sites
spaceeinstein

You can't start a mission within a mission. Try using several global variables so you can check if the mission is done.

Share this post


Link to post
Share on other sites
gtasearcher

Maybe if I somehow "merge" the missions? Like to copy the contents of Chaperone in Sal Called a Meeting?

Share this post


Link to post
Share on other sites
spaceeinstein

It's probably easier to do what I said. Like make a check if the first mission is ended

 

Add

$missionended = 1

Before

mission_cleanup

 

Then create a thread in the MAIN section so it won't mess up

 

Add

create_thread @missionnext

To where other create_thread are grouped

 

Add

:missionnext

wait 0

if and

$ONMISSION == 0

$missionended == 1

jf @missionnext

start_mission ##

end_thread

Before

//--Mission 1

 

Check the modding wiki on how to create a thread if you want more info on it.

Share this post


Link to post
Share on other sites
NTAuthority

Try changing this code:

 

 

if or00F6:   player $PLAYER_CHAR 0 1455.688 -187.25 55.5625 radius 1.0 1.0 2.0 02B4:   player $PLAYER_CHAR in_cube_on_foot 1466.188 -175.0 50.0 1452.875 -172.0625 60.0 radius 11.5625 sphere 0 else_jump @NONAME_32_333 

 

 

into

 

 

if$263 == 0else_jump @NONAME_32_CONTINUEif or00F6:   player $PLAYER_CHAR 0 1455.688 -187.25 55.5625 radius 1.0 1.0 2.0 02B4:   player $PLAYER_CHAR in_cube_on_foot 1466.188 -175.0 50.0 1452.875 -172.0625 60.0 radius 11.5625 sphere 0 else_jump @NONAME_32_333 :NONAME_32_CONTINUE

 

 

Haven't tested it, and I'm not good at else_jumps, but this should work -- a bit, this removes the normal starting stuff, and if the mission is failed it may restart automatically.

Share this post


Link to post
Share on other sites
loczek47
Maybe it's a good idea, but, somehow, my GTA3 crashes when I ALT+TAB out of it. So I can't use Sanny Buidler's coordinates tool sad.gif

Are you using Vista?

No, I'm using XP SP3.

Try pressing the windows start menu button

That's exaclty what I was doing all the time, but I kinda forgot how it's called smile.gif

When you are where you want to be- don't press escape and then windows key/alt+ tab, but press M+windows key.

Share this post


Link to post
Share on other sites
gtasearcher

Thanks, spacesteein. I'm gonna try your code, but there is a small problem.

:TONI3_8566$ONMISSION = 0 // integer values $ON_MISSION_FOR_TONI = 0 // integer values 0164: disable_marker $TONI3_LIMO_MARKER 0164: disable_marker $TONI3_SALVATORE_MARKER 0164: disable_marker $TONI3_LUIGI_MARKER 0164: disable_marker $TONI3_TONI_MARKER 0164: disable_marker $1915 034F: destroy_actor_with_fade $JOEY_LEONE // The actor fades away like a ghost 034F: destroy_actor_with_fade $TONI3_LUIGI // The actor fades away like a ghost 034F: destroy_actor_with_fade $TONI_CIPRIANI // The actor fades away like a ghost 0249: release_model #STRETCH 0249: release_model #BELLYUP 0249: release_model #GANG03 0249: release_model #GANG04 0249: release_model #GANG02 0296: unload_special_actor 1 0296: unload_special_actor 2 0296: unload_special_actor 3 0296: unload_special_actor 4 021B: set_garage $SALVATORES_GARAGE to_accept_car -1 03D5: remove_text 'IN_VEH'  // ~g~Hey! Get back in the vehicle!$MISSIONENDED = 1 // integer valuesmission_cleanup return 

 

I think :TONI3_8566 is used when the mission is passed OR when the mission is failed. (At the begining of the mission, it said "gosub @TONI3_8566"). So I tought it would be better like this:

:TONI3_8474$263 = 1 // integer values 0110: clear_player $PLAYER_CHAR wanted_level 0109: player $PLAYER_CHAR money += 1500 0318: set_latest_mission_passed 'TM3'  // 'SALVATORE'S CALLED A MEETING'030C: set_mission_points += 1 create_thread @NONAME_32 0164: disable_marker $LUIGI_MISSION_MARKER 0164: disable_marker $JOEY_MISSION_MARKER 0164: disable_marker $TONI_MISSION_MARKER 0164: disable_marker $SALVATORE_MISSION_MARKER 02A7: $SALVATORE_MISSION_MARKER = create_icon_marker_and_sphere 16 at 1455.688 -187.25 -100.0 00A6: destroy_car $TONI3_LIMO $MISSIONENDED = 1 // integer values return :TONI3_8566$ONMISSION = 0 // integer values $ON_MISSION_FOR_TONI = 0 // integer values 0164: disable_marker $TONI3_LIMO_MARKER 0164: disable_marker $TONI3_SALVATORE_MARKER 0164: disable_marker $TONI3_LUIGI_MARKER 0164: disable_marker $TONI3_TONI_MARKER 0164: disable_marker $1915 034F: destroy_actor_with_fade $JOEY_LEONE // The actor fades away like a ghost 034F: destroy_actor_with_fade $TONI3_LUIGI // The actor fades away like a ghost 034F: destroy_actor_with_fade $TONI_CIPRIANI // The actor fades away like a ghost 0249: release_model #STRETCH 0249: release_model #BELLYUP 0249: release_model #GANG03 0249: release_model #GANG04 0249: release_model #GANG02 0296: unload_special_actor 1 0296: unload_special_actor 2 0296: unload_special_actor 3 0296: unload_special_actor 4 021B: set_garage $SALVATORES_GARAGE to_accept_car -1 03D5: remove_text 'IN_VEH'  // ~g~Hey! Get back in the vehicle!mission_cleanup return 

 

What you think, spacesteein? Which should I try? Changing the MAIN section doesn't let me use the special savegames created whit Demarest's Time Vault, so I always have to start a new game sad.gif ...

Share this post


Link to post
Share on other sites
loczek47

I was first, try out what I said or I will kill you, my friend mad.gif

Share this post


Link to post
Share on other sites
gtasearcher
I was first, try out what I said or I will kill you, my friend mad.gif

O.K.

Share this post


Link to post
Share on other sites
NTAuthority

In case I'm invisible (seems like it is lately) -- my solution WILL solve your problem the fastest.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • 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.