Tuesday, January 5, 2016

Hello, in this tutorial I'll try explain a method to add more objects, I know than I promised make a video but I had a lot of problems trying record the screen and with the video editor (and my computer is like a toast). This method is a little complicated but if you follow this steps correctly probably you can add unlimited maps, the tutorial will appear long but its just than I'll use images to explain better and make it easy to understand, lets start! (Note: Click in image to zoom it).

First of all we need know the files with we gonna work:

-DFF: Contains the 3d model, the structure, the shape.

-TXD: Contains the texture of the 3d models.

-COL: Interacts with player and other objects, making objects solid.

-IDE: Is like a register, contains an ID (Identification) number, unique for each 3d model.

-IPL: Contains the position on map, rotation and interior of each object.

After install all this tools open IMG Manager and create a new file, this will help to put all your stuff only in one IMG and don't make gta3.img heavier.

Then rename it as you want, in my case I'll name it "hollow_map.img" and save it, I'm gonna save it in desktop:

Now open it again with IMG Manager and import only .DFF and .TXD, don't import .COL files yet! For this example I'll use the sentry objects than I've made (Soon for release).

Now close IMG Manager and open Col editor, click in file->new then click in edit->add and search for the .COL file. You will see than the program added automatically all .col files inside your custom .col file.

Now click in file->save and name it as you want in my case "custom_stuff.col", I saved it in my desktop. You can close Col editor now.

Open IMG Manager again and add your custom col in your IMG file.

Note: We created a new col file because when we add more than 4 .col files the game crashes and doesn't matter what limit adjuster you got, still crashing! (I've made experiments).

Now go to GTA San Andreas/data and open the gta.dat file with Notepad ++ and add a new line with this format:

"IMG MODELS\(The name of your file).IMG" and save. Remember paste your IMGfile in the GTA San Andreas/models folder.

Note: If you installed Notepad ++ you should see the option "Open with notepad" when you do right click on a file.

Now open Med map and you will see a window asking you create a new path, click in add, I'll name it "Test", click in browse and search for the Gta installation click in ok again ok, check the image:

Every time than we create a new path Med map always crash but don't worry, only open med map again and will load normally.

Now go to the label of IDE and click in New file...

Now name it as you want (In my case "Hollow"), I recommend create it in /data folder, you also can create a new folder, click in save and you will see at the end of the list your new file created.

Do the same process with IPL label: click in New file name it as you want, save it and you will see your new IPL file at the end of the list, click in save. Don't try add anything yet! Close Med map and if it ask if you want save your changes click in yes.

Now open Med map, click in IDE label and select your IDE file, go down and click in New item and you will see the "Item Definition" window, watch the ID number.

Click in browse and search the new IMG file and select one .DFF file and click in ok, then browse for the .TXD file, remember in "Model Name" goes .DFF file and "Texture name" goes the .TXD file.

Now you can see your model in screen, controls: mouse wheel to zoom, left click to rotate, right click to move camera. Click in col button to check if the model has collision properties.

As you can see our model is properly collided. If your model is not collided the window will appear empty.

Now its time to put our object into the map so go to Scene label and click in the zone than you want place your object then press render, in this example I'll place the sentry in Cj's Hood.

Watch than we have the camera at top of the stadium of LS, click in the green arrow to get a top down view.

Now we do double click in some object in Cj's Hood and you will see the object selected in red, press the crossed arrows button to get a closer view.

Now return at IPL label and click in New:

Search your custom IDE file and select the object that you want add. Click in ok.

You can play with the position clicking the arrows and when you finish place your object press ok.

You will see than your object disappears but don't worry just return at the Render label, select your IPL file
and render again.

Now we extract the dojo files and only add .DFF and .TXD in your custom IMG archive.

Open your custom .COL file with col editor, click in edit->add and search DOJO.col, save and replace it in your custom IMG file.

Is not necessary open Med map because the author of mod includes the coords, so open the .IDE file inside DOJO folder and the yours too.

Do the same process for IPL file:

DONE! This is the final result!

Why use this method?

This method will allow you add a lot stuff not only new objects, you can create new enex (yellow entrances) and create binary ipl files or add new spawns of cars or weapons! Without disturb the structure of GTA SA too much. And all your stuff in only one file!

Of course I'll make more tutorials teaching how create all those things, and this method is our base for create them. So be patient and read carefully the tutorial for avoid crashes and bugs. Cya later!