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

    1. Red Dead Redemption 2

      1. PC
      2. Gameplay
      3. Missions
      4. Help & Support
    2. Red Dead Online

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

      1. Recruitment
    2. Events

    1. GTA Online

      1. DLC
      2. Find Lobbies & Players
      3. Guides & Strategies
      4. Vehicles
      5. Content Creator
      6. Help & Support
      7. The Diamond Casino Heist
    2. Grand Theft Auto Series

    3. GTA 6

    4. GTA V

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

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

    7. GTA Vice City Stories

    8. GTA Liberty City Stories

    9. GTA San Andreas

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

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

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

      1. GTA Advance
      2. GTA 2
      3. GTA
    13. 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. News

    2. Forum Support

    3. Site Suggestions

Demarest

DARKPACT SAN ANDREAS

Recommended Posts

Demarest

 

new release on 13 Aug 2005 16:20 EST

This corrects an issue that made Darkpact crash games some of the time.

With SAPC as hot as it is both for newness and other irreputable light, SA interest is as high as it will ever be. As large as it is however, we are faced with the uphill challenge of appealing to the crowd as most aren't necessarily willing to start a new game time and time again just to add a few toys. Darkpact as you may already be aware, subverts the need to start a new game through a process that's relatively painless for us. It is now available for SA. Download link here and readme here. From the readme:

 

Attention script authors: You are encouraged to release your work with a DARKPACTOR option. This would include two SCM files and a short readme like so (Coordinator SA v1 used as an example):

 

1 Backup your /data/script/main.scm file.2 Put DARKPACTcoordinatorSA.SCM in /data/script/ and rename it to main.scm3 Load your game. You will immediately be prompted to save.4 Save (different slot is recommended).5 Put mainORIGpluscoordinatorSA.SCM in /data/script/ and rename it to main.scm6 Load the save you made in step 4 to continue your game with Coordinator SA installed.

 

Depending on the size of your mod, this equates to a near 1100 KB ZIP file and will increase not only the amount of people that can use your mod, but also the amount of people willing to since they will not have to start a new game. Should you decide to do so, I ask that you leave the words Darkpact in the name of the files somewhere and refer to this process and that version of your mod as a Darkpactor. Thank you and enjoy.

Edited by Demarest

Share this post


Link to post
Share on other sites
KungFuJebus

so i can use this with my 100% complete game save on any main.scm mod????????? you freaking RULE!!!!!!!!! if this is what i think

Share this post


Link to post
Share on other sites
Demarest
You can add any SCRIPT mod to your SCM and keep your 100% save, yes. Just make sure you follow the instructions imlicitly smile.gif

Share this post


Link to post
Share on other sites
KungFuJebus

Ok let me understand when i start out do i need to have the main.scm and script.img from the mod in the data folder? ok i did everything the read me said but i started the save i made in step 4 but when i started the mods werent on the save... im trying to do it with all in one version 7 i dont understand so far

Edited by KungFuJebus

Share this post


Link to post
Share on other sites
Demarest

Step 4? The steps at the bottom of the readme were there for other authors if they decide to offer DARKPACTOR versions of their releases.

 

All In One is a CODE mod, not a SCRIPT mod. This is covered first thing in the readme.

Share this post


Link to post
Share on other sites
KungFuJebus

so how do i use this stuff then??

Share this post


Link to post
Share on other sites
superglitch
Ok so if I use DarkPact to patch my gamesave for my XYZ mod, then later i want to use it to patch my gamesave for the PackerAttach mod, do i have DarkPact+XYZ+PackerAttach for the patching scm or do i have DarkPact+PackerAttach?

Share this post


Link to post
Share on other sites
Demarest

@KungFu: Um... it's pretty well explained in the instructions. If there's a particular part of it you're not sure about, ask a question about it. For me to sit here and restate everything in the instructions sort of negates my having invested time in making it as clear as possible.

 

This is a new technique. It's going to take time to get used to it and I'm more than happy to help. But I have to know what part isn't clear for you to help.

 

EDIT

@SuperGlitch: Darkpact is what is injecting your mods. So let's say you're using it to inject 1 mod. Then you're going to have one create_thread in mision 0. As far as main is concerned, good question. It has to be Darkpact + whatever your current save is running below the original main + whatever it is you're adding on. I wish I could say it as easily as it has to be main + mods, but that's not true and that's what makes it hard. Darkpact was modified in a way that will auto-launch your code to make it as widely usable as possible with the least amount of side effects.

Edited by Demarest

Share this post


Link to post
Share on other sites
KungFuJebus

Sorry i just dont understand wich im suppossed to use, do i have to learn how to insert the code or use the darkpactor? its just kind of cunfusing lol

Share this post


Link to post
Share on other sites
Demarest
Sorry i just dont understand wich im suppossed to use, do i have to learn how to insert the code or use the darkpactor? its just kind of cunfusing lol

Well which is it? Are you trying to add Coordinator SA to your SCM or some other mod? If it's Coordinator, you're in the wrong topic altogether. If it's to put All In One into your SCM, All In One is a code mode and therefore inelligible for Darkpact insertion.

Share this post


Link to post
Share on other sites
chaosgeneral

Thanks demarest this will let me mod the main.smc. Ive been resisting untill i get 100%

Share this post


Link to post
Share on other sites
superglitch
currently 100% don't work right now or it was my code i tried to put in, dema spent a long time trying to fix it

Share this post


Link to post
Share on other sites
badGoo

i understand you have to edit 2 parts of the txt right? the one in main and the one after mission 0.

 

in the 1 in main, do i have to put just the beginning label like ":Mod_01" and nothing else? then in the create thread in mission 0 i will replace the label with "Mod_01". so i just changed 2 lines? is that correct?

 

and how do i compile this? it asks for tables. i assume i have to decompile the original and instead of using the "main.txt" that came from the decompile, i would use this darkpactv1.txt?

 

i tried the process i did above and it didnt work... suicidal.gif

Share this post


Link to post
Share on other sites
KungFuJebus
Sorry i just dont understand wich im suppossed to use, do i have to learn how to insert the code or use the darkpactor? its just kind of cunfusing lol

Well which is it? Are you trying to add Coordinator SA to your SCM or some other mod? If it's Coordinator, you're in the wrong topic altogether. If it's to put All In One into your SCM, All In One is a code mode and therefore inelligible for Darkpact insertion.

yeah i wanted to add one of the really big mods to my scm.... are all of the big mods like that code mods? back to reality and etc?

Share this post


Link to post
Share on other sites
random_download
i understand you have to edit 2 parts of the txt right? the one in main and the one after mission 0.

 

in the 1 in main, do i have to put just the beginning label like ":Mod_01" and nothing else? then in the create thread in mission 0 i will replace the label with "Mod_01". so i just changed 2 lines? is that correct?

 

and how do i compile this? it asks for tables. i assume i have to decompile the original and instead of using the "main.txt" that came from the decompile, i would use this darkpactv1.txt?

 

i tried the process i did above and it didnt work... suicidal.gif

Basically you do the same as you normally would with an scm mod. You find mission 0 and put your code before that. But with darkpact, put your create_thread line not with the other create_threads but where it is indicated to do so in mission 0. then, you take the original scm and add your mod to it (but without the create_thread line). Then you load a save using darkpact, save again and thn load that using your modified original scm and you mod will be running.

Share this post


Link to post
Share on other sites
DemolitionMan™

OMFG this is realy great. U rule

Share this post


Link to post
Share on other sites
random_download

Hmm... using this without changing anything crashed the game when I loaded one. I added the external scripts back in and used:

 

:INITIAL_1   ;Don't touch this;-------Put your create_threads here004F: create_thread ££loop;-------End of [email protected] = -1:DARKPACT 0001: wait 0 ms  @0 += 100D6: if 000FE:   actor $PLAYER_ACTOR  0 ()near_point  $SAVEPOINTX(@0,18f) $SAVEPOINTY(@0,18f) $SAVEPOINTZ(@0,18f) radius  15.0  15.0  15.0004D: jump_if_false ££DARKPACT00A1: put_actor $PLAYER_ACTOR at  $SAVEPOINTX(@0,18f) $SAVEPOINTY(@0,18f) $SAVEPOINTZ(@0,18f)   :DARKPACTDONE0001: wait 0 ms00D6: if 003D9:  save_done004D: jump_if_false ££DARKPACTDONE0004: $ON_MISSION =  0 ;; integer values004E: end_thread

 

In the mission and:

 

:GYM_20001: wait  70 ms0004: $ON_MISSION =  1 ;; integer values0417: start_mission  0  ; Originally: Initial 10002: jump ££GYM_16;00D6: if  0;0038:   $ON_MISSION ==  0 ;; integer values;004D: jump_if_false ££GYM_4700D6: if  00038:   $1348 ==  1 ;; integer values004D: jump_if_false ££GYM_1600D6: if  00038:   $2416 ==  0 ;; integer values004D: jump_if_false ££GYM_1607FB: set_interior 'GYM1' accessible  1 07FB: set_interior 'GYM2' accessible  1 07FB: set_interior 'GYM3' accessible  1 0004: $2416 =  1 ;; integer values:GYM_160001: wait  127 ms0002: jump ££GYM_16;00D6: if  00256:   player $PLAYER_CHAR defined;004D: jump_if_false ££GYM_46

 

To start the mission and it worked fine :s

Share this post


Link to post
Share on other sites
Demarest
yeah i wanted to add one of the really big mods to my scm.... are all of the big mods like that code mods? back to reality and etc?

Honestly, I'm at a loss as to why we keep going over this. The instructions say that mods that require you to fully replace your SCM are code mods while those available as text that you can add to any SCM are script mods and that Darkpact injects script mods only. Now I imagine with something like All In One, you COULD inject it if you had the source. I'm assuming it's just a pile of script mods though and if I'm wrong, then you wouldn't be able to.

 

Thank you, random, for answering goo's question so succinctly. Basically guys, we can't just add code mods because the create_thread line stuffs up the addressing. Darkpact puts that create_thread into a mission where spacing is irrelevant. Why not just create_thread instead of start_mission 0? Mostly because doing it in a mission gives us all the room to add as much code there as possible. This was necessary in VC because of all the warp code that went with it. In SA, it's slimmer due to the predefined arrays, but still necessary in a mission.

 

@random: I'm assuming there's already a wait in the GYM thread. Otherwise you'd be off by 4 bytes. I'll have to try that out. Last night, I spent 5.5 hours trying various things because Glitch revealed to me that this doesn't work with games that are highly developed. I took a lot of reading and all I can think of is that as you gain more properties, the save thread's timing expands and eventually causes a conflict with Darkpact. SO many variations I tried and the best I could do was no crash, code inserted, save thread recovers, but you could never save again cryani.gif I'll keep at it though.

Share this post


Link to post
Share on other sites
random_download

 

@random: I'm assuming there's already a wait in the GYM thread. Otherwise you'd be off by 4 bytes.

Yes, there is a loop there to check if the player is in the gym, so unless they save whilst inside the gym the mission etc. will start

 

SO many variations I tried and the best I could do was no crash, code inserted, save thread recovers, but you could never save again cryani.gif I'll keep at it though.

Using the code I posted above, I can load save and load again no problem. I have only tested it with one save though, and as you said conflicts may arise with saves that are further on in the game confused.gif

I injected some code I posted in another thread using darkpact and it seems to work fine for me: link

 

EDIT: Fixed link

Edited by random_download

Share this post


Link to post
Share on other sites
Demarest
I injected some code I posted in another thread using darkpact and it seems to work fine for me: link (right-click save as)

And so it begins smile.gif This is exactly what I wanted. Finally the bane of code modders bested! Although right-click, save as gave me a corrupt ZIP. But going to the site and clicking on storemod.zip worked fine.

 

Funny story: I went to post on parked vehicles in VC. So I first used Fastbond to unlock all vehicles (Fastbond is a VC Code Tool that uses the Darkpact insertion process). Then I went to insert Coordinator to help me locate the ones I wasn't familiar with. It didn't work! It's because I used two Darkpacting mods back to back and the Firefighter pointer was trapped in the loop. lol.gif So anybody trying to use Darkpactors in succession, you'll need to load up your game with non-Darkpacting code and save again before going on to the next Darkpactor. Or use random's proposal the 2nd time through to use a different thread to initiate it.

Share this post


Link to post
Share on other sites
KungFuJebus

sorry demarest i ask alot of questions i just dont understand this kind of stuff, i know how to replace files in my game and all, i guess i just dont get how it all works, thank you for being patient with me tho smile.gif

Share this post


Link to post
Share on other sites
nubbel

I'm actually trying to get this working. I think I understood now how it works. But when I try to compile the Darkpact-version I only get the error:

 

Object not defined. The object >#GANGRL3< was not found inside your '.ide' files or defined with 'DEFINE OBJECT'

 

I have all the IDE-Files in the Mission Builders folder (normally I dont get these errors).

And I can't find "GANGRL3" in peds.ide. Whats wrong?

 

EDIT:

To be sure I do everything right, I put a list of my actions here:

 

1. Opened Mission Builer and decompiled the original /data/script/main.scm

2. Searched for "-Mission 0-" and put my code above it

3. Compiled it and ranamed the output to "mymod.scm"

4. Cleared the file and put the source from "darkpactv1.txt" in the clear builder file.

5. Searched for "-Mission 0-" and put my code above it

6. Put the "004F: create_thread ££mymod" under ":INITIAL_1"

7. Compiled it and renamed the output to "DARKPACTmymod.scm"

8. Loaded a savegame using "DARKPACTmymod.scm"

9. well...crash smile.gif

Edited by nubbel

Share this post


Link to post
Share on other sites
DemolitionMan™

i get an error when i compile

user posted image

Share this post


Link to post
Share on other sites
DaEllum67
RTFM: That error can be fixed by reading the readme that comes with the mission builder.

Share this post


Link to post
Share on other sites
DemolitionMan™
RTFM: That error can be fixed by reading the readme that comes with the mission builder.

i copyed the .ide files but that didn't help

Share this post


Link to post
Share on other sites
DaEllum67
RTFM: That error can be fixed by reading the readme that comes with the mission builder.

i copyed the .ide files but that didn't help

That error is caused by missing IDE files or missing entries in the IDE files. Be sure you copied the right ones. If that doesn't work, download the latest version (0.33) of the mission builder.

Share this post


Link to post
Share on other sites
DemolitionMan™

i copyed them from data folder. and i have the lates version of the prog

Edit. It works fine. Forgat to restart the program after i copyed the files xD

Edited by DemolitionMan™

Share this post


Link to post
Share on other sites
superglitch

EDIT: OOPS, that's what i get for not refreshing after being on the same page for a half an hour before i read everything.

Share this post


Link to post
Share on other sites
DemolitionMan™

just to be sure. scripts must be like this right?

 

;----------------------------; only edit below;----------------------------:LabelDARKPACT    014B: $GARAGE_HYDRA = init_parked_car_generator 520 -1 -1 1 alarm 0 door_lock 0 0 10000 at -2028.295 156.7247 34.66154 angle -90.0014C: set_parked_car_generator $GARAGE_HYDRA cars_to_generate_to 101;----------------------------; only edit above;----------------------------;-------------Mission 0---------------; Originally: Initial 1:INITIAL_1;----------------------------; only edit below;----------------------------004F: create_thread ££LabelDARKPACT;----------------------------; only edit above;----------------------------

 

Edited by DemolitionMan™

Share this post


Link to post
Share on other sites
random_download

 

1. Opened Mission Builer and decompiled the original /data/script/main.scm

2. Searched for "-Mission 0-" and put my code above it

3. Compiled it and ranamed the output to "mymod.scm"

4. Cleared the file and put the source from "darkpactv1.txt" in the clear builder file.

5. Searched for "-Mission 0-" and put my code above it

6. Put the "004F: create_thread ££mymod" under ":INITIAL_1"

7. Compiled it and renamed the output to "DARKPACTmymod.scm"

8. Loaded a savegame using "DARKPACTmymod.scm"

9. well...crash smile.gif

First, make sure that you have all the external scripts at the end of the file. If you don't then redownlaod darkpact as I think thye were removed at first and not put back in until now.

Then, make sure that you removed the original create_thread and its label if you are adding your own one in. Once you have done that then it should work fine. If not, try doing a simple thread as a test, to make sure it is not your code that is causing the crash.

 

@DemolitionMan™: you do not need that :LabelDARKPACT line, but leaving it in does no harm

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.
Note: Your post will require moderator approval before it will be visible.

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.


  • 2 Users Currently Viewing
    0 members, 0 Anonymous, 2 Guests

×
×
  • Create New...

Important Information

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