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

    2. News

    1. Red Dead Redemption 2

      1. News
      2. Red Dead Online
    1. GTA Online

      1. After Hours
      2. Find Lobbies & Players
      3. Guides & Strategies
      4. Vehicles
      5. Content Creator
      6. Help & Support
    2. Crews

      1. Events
      2. Recruitment
    1. Grand Theft Auto Series

    2. GTA Next

    3. GTA V

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

      1. Episodes from Liberty City
      2. Multiplayer
      3. Guides & Strategies
      4. Help & Support
      5. GTA Mods
    5. GTA Chinatown Wars

    6. GTA Vice City Stories

    7. GTA Liberty City Stories

    8. GTA San Andreas

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    9. GTA Vice City

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    10. GTA III

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    11. Top Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    12. Wiki

      1. Merchandising
    1. GTA Modding

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Mod Showroom

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

      1. DYOM
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Red Dead Redemption

    2. Rockstar Games

    1. Off-Topic

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

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

    2. Site Suggestions

Demarest

Rebirth v1 San Andreas

Recommended Posts

Demarest

Rebirth v1 is a Code Tool more than a mod. For those of you that don't know, my Code Tools are code mods that are meant to work with your existing save game. They do not adhere to the old addage that you must start a new game to use the code mod. Rebirth actually REPLACES the original code. Any save made with either the original code or Rebirth can be used with either.

 

So what does Rebirth do? A few things. First of all, it makes it so that when you are killed or arrested, you will not lose your weapons or any cash kind of like when you get Katie up to 100%. This feature won't kick in until you start most missions. Secondly, it acts like Trip Skip, but instead of skipping the trip from the start of the mission to wherever the mission takes place, it takes you straight to where the mission starts. Ever play Wrong Side of the Tracks only to fail and be in the middle of nowhere? Rebirth will take you right back to the mission beginning even if you failed the mission by dieing or getting arrested. And you don't have to start a new game to use it.

 

How does it work? Any time you fail most missions or otherwise quite before they're completed (like Vigilante), a 30 second timer will appear on screen (not always immediately for reasons beyond my control). While that timer is on screen, you may press Sprint and Aim together and you will start that mission over. It is very important that you do not save your game while this timer is on screen. Let's say the mission you were playing was Vigilante. Using Rebirth will put you in the same vehicle, at the same spot, angle, and speed as where you started it last time. A TRUE second chance. Note: Any changes in your weapons/ammo since then will remain; Rebirth does nothing to your ammo besides allow you to keep it after getting arrested or killed.

 

How do I install it? VERY easy. Download it by clicking here. Go to your San Andreas's /data/script/ folder and backup your main.scm any way you like, possibly by renaming it to mainORIGINAL.scm. Now put Rebirth's main.scm into your /data/script/ folder. You are done! Just load your game and all of Rebirth's benefits are yours for using. You can even do this while San Andreas is running.

 

Are there any exceptions? Yes there are. One is quite good while the others aren't. The good one is the Chiliad Challenge. Even if you pass one, you can use Rebirth to start the next one, even if it's outside the racing times. No more having to fight your way back up the mountain! cool.gif The following is a list of missions NOT supported by Rebirth v1: Cesar Vialpando, Wu Zi Mu, Farewell My Love..., all Catalina missions, the Train missions, the Gym fights, and all races from the 4 racing hubs. Yes I plan on releasing a v2 with most of these missions supported. It will take me time and studying however, so for me to release this as is now will allow people to benefit from it until I'm capable of the rest. Worry not as the original game and all versions of Rebirth will be interchangeable. If however you should notice any bugs, feel free to report them here, but know that much has been tested smile.gif Note: The Train missions and Gym fights are likely to never be supported.

 

user posted image

 

 

The following is for coders and those that understand coding only.

If you have used Darkpact to inject a code mod into your SCM, you will need to download Rebirth v1's source code and add whatever mods you've injected to JUST BEFORE the Rebirth thread (first occurance of the word rebirth) in order for it to be compatible with your saves. Rebirth works by calling a thread in MAIN. At the end of MAIN in fact to maintain savegame compatibility. This thread must be terminated before saving or else the save it creates will NOT be compatible with original code until the game is again saved without it running. It is easy to tell when it is running because of the onscreen timer. The create_thread (found in most mission's failed routines) passes the thread various information that the thread will use. They are as follows:

 

parameter 1 - The X value of the mission start sphere (or where to put you)

parameter 2 - The Y value of the mission start sphere (or where to put you)

parameter 3 - The Z value of the mission start sphere (or where to put you)

parameter 4 - Is not used for most calls. If a mission starts inside an interior however, this flag will be set to 1. If a mission starts inside a vehicle such as the Chiliad Challenge, Pimping, etc, this flag will be set to 2.

 

When parameter 4 is set to 1, parameter 5 indicates which interior to use. This is used for the casino, heist, mafia, and driving school missions.

 

When parameter 4 is set to 2, the following parameters are also passed (they are assigned at the BEGINNING of the actual thread):

parameter 5 - ID of the vehicle you're driving

parameter 6 - Z angle of the vehicle you're driving

parameter 7 - Speed of the vehicle you're driving

parameter 8 - Mission number Rebirth autolaunches once placing you inside an identical vehicle. Missions that start inside a vehicle are the ONLY missions that Rebirth launches automatically. For all others, it merely places you where you need to be and allows the sniffer to detect you and start the mission as it normally would.

 

What was changed: Each mission that counts towards 100% was given spaceeinstein's 08DD and 08DE to allow you to keep your weapons and cash after being killed or arrested. The only reason they all have it despite only needing to be set once is becuase there is no telling where in the game any user will be. It's 8 bytes more per mission, so negligible when compared to the 69,000 byte limit. Also, a create_thread ££REBIRTH was added to each mission where applicable including all parameters that mission needs to pass. Mission that you start in a vehicle also had

03C0: @6 = actor $PLAYER_ACTOR car00AA: store_car @6 position_to @0 @1 @20441: @3 = car @6 model0174: @4 = car @6 z_angle02E3: @5 = car @6 speed

added at the very beginning so that the create_thread would know what to pass Rebirth. Last but not least, missions that you can start even after you've finished them were given checks to ONLY launch Rebirth if the mission was actually still needed. This can also be found at the beginning of the thread just before the end_thread command. Labels added to this area were given B, C, D, etc notations. This area contains the create_thread instead of the mission fail area. These ifs are compound for stacked missions such as BMX / NRG-500 and Courier. The final change made was the Rebirth MAIN thread itself, which is as follows

:REBIRTH03A4: name_thread 'REBIRTH'00D6: if  00038:   $119 ==  0 ;; integer values004D: jump_if_false ££REBIRTH00215: destroy_pickup $6690215: destroy_pickup $6700004: $119 =  1:REBIRTH000D6: if  00038:   $126 ==  0 ;; integer values004D: jump_if_false ££REBIRTH10215: destroy_pickup $6710004: $126 =  1:REBIRTH10004: $5353 =  30000014E: set_timer_to $5353 type  1:REBIRTH20001: wait  100 ms00D6: if  10018:   $5353 >  00038:   $ON_MISSION ==  0 ;; integer values004D: jump_if_false ££REBIRTHEND00D6: if  00256:   player $PLAYER_CHAR defined004D: jump_if_false ££REBIRTH200D6: if  280DF:   NOT   actor $PLAYER_ACTOR driving00E1:   key_pressed  0  600E1:   key_pressed  0  16004D: jump_if_false ££REBIRTH201B4: set_player $PLAYER_CHAR frozen_state  0 (frozen)00D6: if  00039:   @3 ==  1 ;; integer values004D: jump_if_false ££REBIRTH3077E: @5 = active_interior00D6: if  0803B:   NOT   @5 == @4 ;; integer values 004D: jump_if_false ££REBIRTH604BB: select_interior  @4091B: (unknown)0860: link_actor $PLAYER_ACTOR to_interior  @40002: jump ££REBIRTH6:REBIRTH300D6: if  00039:   @3 ==  2 ;; integer values004D: jump_if_false ££REBIRTH60247: request_model @4038B: load_requested_models:REBIRTH40001: wait  0 ms00D6: if  00248:   model @4 available004D: jump_if_false ££REBIRTH400A5: @8 = create_car @4 at @0 @1 @20175: set_car @8 z_angle_to @505CB: action_sequence actor $PLAYER_ACTOR enter_car_as_driver @8  0 ms0249: release_model @4:REBIRTH50001: wait  0 ms00D6: if  000DB:   actor $PLAYER_ACTOR in_car @8004D: jump_if_false ££REBIRTH504BA: set_car @8 speed_instantly @601C3: remove_references_to_car @80004: $ON_MISSION =  10417: start_mission @701B4: set_player $PLAYER_CHAR frozen_state  1 (unfrozen)02EB: restore_camera_with_jumpcut0373: set_camera_directly_behind_player0002: jump ££REBIRTHEND:REBIRTH600A1: put_actor $PLAYER_ACTOR at @0 @1 @2:REBIRTHEND014F: stop_timer $5353004E: end_thread

 

Share this post


Link to post
Share on other sites
JMAN069

Top notch, bout time something like this comes around. Nice work on not having to replace previously saved games. That gets old real quick.

Share this post


Link to post
Share on other sites
DigitallyInsane^

Wonderful, you've done it again Dem, this will open a whole new world of modding to me, as I have never bothered with starting new games just to try a mission mod.

 

Again, big ups, fantastic work.

 

cookie.gifcookie.gifcookie.gifcookie.gifcookie.gif

Share this post


Link to post
Share on other sites
Demarest
this will open a whole new world of modding to me, as I have never bothered with starting new games just to try a mission mod.

Stick by me then. Ever since CyQ taught me byte counting, savegame compatibility has been my primary focus for all 3 games. If this is your first exposure, then be sure to look into the rest of my Code Tools as well as Darkpact. I'm even going to soon be working on advanced authoring for Darkpact that will allow even more mods to be injectable into existing savegames smile.gif

Share this post


Link to post
Share on other sites
Y_Less
Hmm, I'm going to have to update my variable writing code to be compatible with darkpact, then you can utilise it as well to write data to anywhere without a new game, actually, I can start on that for VC now if you're interested.

Share this post


Link to post
Share on other sites
dertyjerzian

 

Using Rebirth will put you in the same vehicle, at the same spot, angle, and speed as where you started it last time. A TRUE second chance.

Doesn't anyone else see the utter beauty in that?

 

"man, If I could do it again, the same way" Deeper than SA...

 

Awesome Demarest. I'm waiting for the drag and drop code writing suite next biggrin.gif

Share this post


Link to post
Share on other sites
DigitallyInsane^
this will open a whole new world of modding to me, as I have never bothered with starting new games just to try a mission mod.

Stick by me then. Ever since CyQ taught me byte counting, savegame compatibility has been my primary focus for all 3 games. If this is your first exposure, then be sure to look into the rest of my Code Tools as well as Darkpact. I'm even going to soon be working on advanced authoring for Darkpact that will allow even more mods to be injectable into existing savegames smile.gif

I'll do that, thanks again!

 

More cookies I found in my back pocket for you

 

cookie.gifcookie.gifcookie.gif

Share this post


Link to post
Share on other sites
Demarest

@Y_Less: Yes, savegame compatibility is a beautiful thing. I hope together we can working on tearing down the remaining limitations instead of having to work around them.

 

@derty: I'm no tooler, but I've thought of getting into it. Have yet to meet a language I didn't pick up quickly. I'd rather make a few tweaks to MB to remove some of its limitations, but that would require having the duck's source code and I don't even known if anybody knows how to get a hold of him. Knowing him, he probably trashed all his sources anyways.

 

@insane: Eww, melty chocolate tounge.gif

Share this post


Link to post
Share on other sites
pozer

Trust you man on any of your mod, i just downloaded this one now and i haven't try it yet, but man, i trust you. Thanks for open a new way of main.scm coding without starting a new game, this will be sample for all main.scm file modders to follow as i don't know how to code one myself, i wish anyway. Thanks.

Share this post


Link to post
Share on other sites
Psalm

Nice work demrast, this will prove extremely helpful.

Share this post


Link to post
Share on other sites
Demarest
I think maybe my marketing skills have gone downhill lol.gif I devised Darkpact and Code Tools that use that technique and people are still mostly impressed with not having to start a new game. Still, it is worth celebrating, so you guys be sure to spread the word. For those wondering, SA Code Tools ARE on my to do list and now that this is out, I may begin Time Vault for SA.

Share this post


Link to post
Share on other sites
ThAtSgOtTaHuRt

WOW! Great work! I would really like for this to develop and open up a whole now world of modding. Keep up the good work, I cant wait to see what you (or others) will come up with next.

 

rah.gifrahkstar2.gifrah.gif

Share this post


Link to post
Share on other sites
HippieCommunist

oh dear Demarest! such a nice work...

 

would it be rude to ask wether you gonna make another mindblowing time twister? blush.gif

 

GREAT JOB!

Share this post


Link to post
Share on other sites
Simon.

Ah, great this will stop some annoyances,

 

I hate failing long missions without tripskips confused.gif

 

Good Work as always Demarest.

Share this post


Link to post
Share on other sites
Demarest
would it be rude to ask wether you gonna make another mindblowing time twister? blush.gif

Not rude, just off-topic tounge.gif GTA3's TT will probably see a v2 at some point with TTVC's improvements included in it. TTVC doesn't really need another version, though I do regret removing a lot of the cutscenes. As for SA, my understanding is that Patrick has made a mod that will allow you to play any SA mission anytime, which is the core of TT's purpose (thought not all of it). Furthermore, my grasp on SA is nowhere near as advanced as it would need to be to write something as authoritative as that on the subject, as evidenced by the fact that this here release is incomplete confused.gif

Share this post


Link to post
Share on other sites
HippieCommunist

with all the respect to all the modders here, i have never seen a better mod then the TT, its the ultimate way to play after youve finished the game a dosen times dozingoff.gif

 

so plz dont give up on the idea of TTSA coz ill wait a year for that one happy.gif

 

keep up the good work...

Share this post


Link to post
Share on other sites
pozer

I really support your opinion thou, HippieCommunist, no better mod than all Demarest TT mod and i can even wait any year if he decided to do it. Your excellency, King Demarest.

Share this post


Link to post
Share on other sites
HippieCommunist

long live the king biggrin.gif *raises toast*

 

for the king!

Share this post


Link to post
Share on other sites
Demarest

You guys... blush.gif

 

And I apologize. I somehow have gotten in the habit of not looking who's posting (mostly know by avs, etc). I didn't realize HC was in the house. Always have to pay my respects there. Glad you're still around.

 

I'll keep it in mind for sure. But it would make more sense to cheer on Time Vault SA. If I can pull that off, then MOST of my understanding of SA in a timeless state will be complete and such a thing would be possible. As for me, I'd find it irritating to have Cesar calling you from the start to alert you of people driving around the countryside. That's just me though.

Share this post


Link to post
Share on other sites
HippieCommunist

im sure you can make CJ call ceaser himself, im sure his phone has outgoing calls aswell music.gif

 

and on that other topic, ive always been here...

some1's gotto find small irritatin' bugs here and there tounge2.gif

Share this post


Link to post
Share on other sites
Xanarki

Rebirth looks pretty good. Next version to be even better I suppose.

Share this post


Link to post
Share on other sites
brokenfish

I just had to give kudos for this. I haven't had time to play any games for a few months now, but I'll be sure to use this (as well as the GTA 3 and VC ones).

 

Like some others have said, you really have opened up a new world of modding. smile.gif

 

Keep up the truly awesome work.

Share this post


Link to post
Share on other sites
Demarest

Always good to see you around colgate.gif

 

 

I'll be sure to use this (as well as the GTA 3 and VC ones).

You must mean the Darkpact technique. Rebirth only exists for SA. A conversion should be plenty easy though.

Share this post


Link to post
Share on other sites
Edmachine

Could you put Rebirth in Space all in one mod v1.1?

Share this post


Link to post
Share on other sites
Demarest
Sort of. It's been a long time since I wrote Rebirth, so I can't answer for sure. I know there's one main thread at the end of MAIN that you would have to put at the end of all in 1's MAIN (to retain savegame compatibility) and then each mission has a create_thread in it that points to that thread, passing it all the necessary parameters. You'd be better off asking space actually since I have no idea how close his mod is to being full, etc.

Share this post


Link to post
Share on other sites
platt

Demarest,

I have a question about this code mod. I wanted to try to convert this to xbox so i could get mods to work with the autoload game feature the xbox has. I have decompiled the xbox code and read thru it and noticed that it is dofferent than the pc version. SO i was wondering were there any other changes you have made to the main.scm that was not listed in your first post? If those are all the changes then do you think this mod will work on an xbox main.scm

 

Edit: Later that day.......

No need to answer my question Demarest. I got bored and decided to start adding the code in to see if i had found all the differences, and now it works perfectly. Thanks for writing the script. Now I can mod my xbox main.scm without having to restart. Thanks a bunch for this. If you or anyone with like the xbox version of rebirth just say and ill post it. Thank you again... and here's a cookie.gif.

 

Edit: A few minutes later....

Well the code it self works fine. But when i add other mod it fails to load. I tried darkpacting the xbox scm but it still fails to load the game with a mod. going to back and look again.

Edited by platt

Share this post


Link to post
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

×

Important Information

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