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. The Contract
      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. GTA San Andreas

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

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

      1. Classic GTA III
      2. Guides & Strategies
      3. Help & Support
    4. Bugs*

    1. Grand Theft Auto Series

      1. 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. Portable Games

      1. GTA Chinatown Wars
      2. GTA Vice City Stories
      3. GTA Liberty City Stories
    6. 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

      1. GTANet 20th Anniversary
    2. Support

    3. Suggestions

[GTASA:DE] - Texture Modding Guide


Havi
 Share

Recommended Posts

XAIZOJ2.png

 

Looking to modify Grand Theft Auto San Andreas: The Definitive Edition texture files?
This guide will walk you through the entire process

Beginners Friendly!

 

Utilities
These are all the tools you will need.

Unreal Engine 4
UModel (2.02MB)
Path Creator (220B)

 

Replacing Textures
Grand Theft Auto The Definitive Edition uses Unreal Engine 4.26.2
You can confirm this by going to AppData\Local\UnrealEngine. The game has to have ran once for it to show.

UModel
1. Download UModel and open up umodel_64.exe.
2. At Path to game files, click on the ... on the right and navigate to the San Andreas directory.

3. Enable Override game detected and put it on Unreal engine 4 following by Unreal engine 4.26.

4. Optional: You can leave UE3 package compression and Platform on default if you wish and press OK.

This is how it should look like once you've completed the steps above:
BQkxjqa.png


1. Click on Tools at the bottom middle and select Options.

2. Optional: Change the Export to this folder path to any location you desire.
3. You can tweak and play around and set it to your preference or keep it as is and press OK.

This is how it should look like once you've completed the steps above:
1fDmxBQ.png


UModel - Extracting
We are going to extract the White Tank Top texture.

 

1. Navigate to Game/SanAndreas/Textures/player and search for t_vest_vest.
2. Right click on T_vest_vest_BC.uasset and click Export.
3. The exported file can be found at the export folder you set up during the previous steps.

MNW7wif.png

4. Open the extracted T_vest_vest_BC.png and edit the texture as you desire.
5. Once you're done, make sure you save the file the exact same as before, in this case T_vest_vest_BC.png.
6. Now we need a Normal Map for our texture. You can easily create one by going to SmartNormap website.

7. On the website, Load the image and then right click the image or click the Save button at the top-right.

Reminder, ensure that the file names are exactly the same from the game data.
This is how your textures should end up looking like:
45c8Lbh.png

Unreal Engine 4.26.2
We now need to open up Unreal Engine. Make sure that you have the Engine version 4.26.2 installed.
KV1BS6s.png

1. Click on the Launch Unreal Engine 4.26.2 button.
2. Click on Games and then click the green Next button.

3. Select Blank and click the green Next button.
4. At Project Setting, make sure you set it to No Starter Content.

5. Select a location for your project to be saved and name your project. Name is something like GTADEMods.

6. Click the green Create Project button.

This is how it should look like:
2SIuokN.png

 

1. Drag and Drop your textures into the Content Browser area at the bottom of Unreal Engine.

2. Click on Save All first before you go to the next step otherwise it wouldn't cook these files.
U8Kwf1E.png

2. Navigate to the top left and click on File > Cook Content for Windows.
Note: This process can take a while depending on your system.
3YDvUiS.png

3. Once it's completed cooking, head over to your project folder.
(Mine was C:\Users\Havi\Desktop\GTADEMods)

4. Navigate to Saved\Cooked\WindowsNoEditor\GTADEMods\Content there you will see your Texture files and a bunch of other files.
You only need to grab the ones related to the files you imported earlier.
1U5DCES.png

File Structure
It is very important that we maintain the game's original file structure. We got our file from Game/SanAndreas/Textures/player but the root folder is incorrect. We need to change this.

Wrong Path: Game/SanAndreas/Textures/player
Correct Path: Gameface/SanAndreas/Textures/player

We need to make a new folder with this exact structure. I have created a batch file which easily does this for you without you having to create each and every folder. You can download the Path Creator that was mentioned at the beginning of this guide.

1. Open the Path Creator.bat file and enter in the following path if you followed this exact guide with the same textures.
2.
Press Enter and then press Enter again. Do not click the X button because that won't create the path.
eux76Rq.png

3. A folder is now created following this exact path. Open it all the way up and place your files in there.
JxVIkZo.png

4. Go a few folders back and copy the SanAndreas folder and then go to your game's directory (DefaultC:\Program Files\Rockstar Games\GTA San Andreas - Definitive Edition)
5. Open Gameface > Content and paste your SanAndreas folder in there.

The game is able to read unpacked files because we put them in the exact folder how the game reads them.
Your official Content folder should end up looking like this:
UFVHcEQ.png

And there you go! :D
There is your custom texture. This seems like a lot at first but it's a very simple and easy concept. Just do it a few times and it'll be easy cake.
QkfBY3z.png

Edited by Havi
Removed Audio Guide and moved over to separate topic
Link to comment
Share on other sites

20 minutes ago, Havi said:

Now we are going to compile this into a .PAK so that we can use it in our game :D

You don't have to, game reads these files unpacked as well, given they are put in a proper folder.

  • Like 6
Link to comment
Share on other sites

4 minutes ago, ThirteenAG said:

You don't have to, game reads these files unpacked as well, given they are put in a proper folder.

 

I tried that before I made this guide and it doesn't seem to work. It could also be that I'm doing something wrong. But if you know, let me know!

Link to comment
Share on other sites

9 hours ago, Havi said:

 

I tried that before I made this guide and it doesn't seem to work. It could also be that I'm doing something wrong. But if you know, let me know!

"GTA San Andreas - Definitive Edition\Gameface\Content\SanAndreas\Textures\player\T_vest_vest_BC.ubulk"

5QqA1Ov.png

Link to comment
Share on other sites

17 hours ago, Havi said:

XAIZOJ2.png

 

Looking to mod Grand Theft Auto San Andreas: The Definitive Edition?
This guide will walk you through the entire process
Beginners Friendly!

 

Utilities
These are all the tools you will need.

Unreal Engine 4
UModel (2.02MB)
Path Creator (220B)
PAK Extractor (9.39MB)

 

 

Replacing Textures
To keep this guide compact, I will show you exactly what you need to do for The Definitive Edition.
If you are interested to learn more about UModel, please check out Gildor's Homepage.

Grand Theft Auto The Definitive Edition uses Unreal Engine 4.26.2
You can confirm this by going to AppData\Local\UnrealEngine. The game has to have ran once for it to show.

Configuration
1. Download UModel and open up umodel_64.exe
2. At Path to game files, click on the ... on the right and navigate to the San Andreas directory

3. Enable Override game detected and put it on Unreal engine 4 following by Unreal engine 4.26

4. Optional: You can leave UE3 package compression and Platform on default if you wish and press OK

This is how it should look like once you've completed the steps above:
BQkxjqa.png


1. Click on Tools at the bottom middle and select Options

2. Optional: Change the Export to this folder path to any location you desire
3. You can tweak and play around and set it to your preference or keep it as is and press OK

This is how it should look like once you've completed the steps above:
1fDmxBQ.png


You will be presented with this window.
All you need to focus on is the Game folder. 

For the sake of this tutorial, we are going to extract the White Tank Top texture

 

1. Navigate to Game/SanAndreas/Textures/player and search for t_vest_vest
2. Right click on T_vest_vest_BC.uasset and click Export
3. The exported file can be found at the export folder you set up during the previous steps

MNW7wif.png

4. Open the extracted T_vest_vest_BC.png and edit the texture as you desire
5. Once you're done, make sure you save the file the exact same as before, in this case T_vest_vest_BC.png
6. Now we need a Normal Map for our texture. You can easily create one by going to SmartNormap website

7. On the website, Load the image and then right click the image or click the Save button at the top-right

This is how your textures should end up looking like.
Reminder, ensure that the file names are exactly the same from the game data
45c8Lbh.png

Unreal Engine 4.26.2
We now need to open up Unreal Engine. Make sure that you have the Engine version 4.26.2 installed.
KV1BS6s.png

1. Click on the Launch Unreal Engine 4.26.2 button
2. Click on Games and then click the green Next button

3. Select Blank and click the green Next button
4. At Project Setting, make sure you set it to No Starter Content

5. Select a location for your project to be saved and name your project. Name is something like GTADEMods

6. Click the green Create Project button

This is how it should look like
2SIuokN.png

 

1. Drag and Drop your textures into the Content Browser area at the bottom of Unreal Engine

2. Click on Save All first before you go to the next step otherwise it wouldn't cook these files
U8Kwf1E.png

2. Navigate to the top left and click on File > Cook Content for Windows
This process can take a while depending on your system
3YDvUiS.png

3. Once it's completed cooking, head over to your project folder
(Mine was C:\Users\Havi\Desktop\GTADEMods)

4. Navigate to Saved\Cooked\WindowsNoEditor\GTADEMods\Content there you will see your Texture files and a bunch of other files
You only need to grab the ones related to the files you imported earlier

1U5DCES.png

Now we are going to compile this into a .PAK so that we can use it in our game :D

File Structure
It is very important that we maintain the game's original file structure. We got our file from Game/SanAndreas/Textures/player but the root folder is incorrect. We need to change this

Current Path: Game/SanAndreas/Textures/player
Real Path: Gameface/SanAndreas/Textures/player

We need to make a new folder with this exact structure. I have created a batch file which easily does this for you without you having to create each and every folder. You can download the Path Creator that was mentioned at the beginning of this guide.

1. Open the Path Creator.bat file and enter in the following path if you followed this exact guide with the same textures
2. Press Enter and close the Command Prompt

eux76Rq.png

3. A folder is now created following this exact path. Open it all the way up and place your files in there
JxVIkZo.png

4. Go a few folders back and copy the SanAndreas folder and then go to your game's directory (Default: C:\Program Files\Rockstar Games\GTA San Andreas - Definitive Edition)
5. Open Gameface > Content and paste your SanAndreas folder in there.

The game is able to read unpacked files because we put them in the exact folder how the game reads them.
Your official Content folder should end up looking like this:
UFVHcEQ.png

And there you go! There is your custom texture. This seems like a lot at first but it's a very simple and easy concept. Just do it a few times and it'll be easy cake.
QkfBY3z.png

I tried to export AK47 GTA III DE, cannot export Umodel! As PNG, i can't believe, always i want to do something, never works!

Link to comment
Share on other sites

Attempted to do a full sound swap, but it threw out this error instead.  

 

"Serialization error - action needed"

Corrupt data found, please verify your installation.

  

 

 

Link to comment
Share on other sites

11 hours ago, Mrblue630 said:

I used photoshop to edit the texture! can that be a reason why mine isn't working?
is it because I have the legit game?

 

(edit:it worked thank you very much for the guide)

 

 

Edited by Tomato__420
Link to comment
Share on other sites

GTAMythsSearcher11

I have done all the steps correctly, I'm sure. 

I textured a custom hoodie for my game overwriting the Base5 Hoodie.

I used upscaling to enlarge the textures to x4 the original and I'm not sure if that's the issue but I will test that later.

In game I get an error along the lines of "Serialization Error" and something about either Corrupt or Invalid files and to verify my game.

Not sure if it's due to enlarging the texture file or what.

Any help or suggestion would be great, thank you.

Edit:
Okay for anyone also getting my issue.  My error was caused by me accidentally not going into the "Cooked" folder. 
I instead went into the content folder copying the wrong files.

So I go the mod actually working but now I have an issue where If I leave my house it sticks on a black screen and crashes after about 20 seconds.

Edited by GTAMythsSearcher11
Fixed and issue I mentioned in the post.
  • Like 1
Link to comment
Share on other sites

Excuse me, how to export SA's Weapons to psk or fbx?

 

 

I export have a ERROR:

Package "/Game/SanAndreas/Weapons/MI_ak47.uasset": wrong name index -254
UnPackage::SerializeFName: pos=000009BC <- FPropertyTag<< <- CTypeInfo::SerializeUnrealProps <- CTypeInfo::ReadUnrealProperty: (UMaterialInstanceConstant.ScalarParameterValues, Type=9, Size=185, TagPos=956) <- CTypeInfo::SerializeUnrealProps <- UObject::Serialize <- LoadObject: MaterialInstanceConstant'MI_ak47.MI_ak47', pos=9BC, ver=522/0 (unversioned), game=ue4.26 <- UObject::EndLoad <- LoadWholePackage: /Game/SanAndreas/Weapons/MI_ak47.uasset <- CUmodelApp::ShowPackageUI <- Main: umodel_build=1576

Edited by Terry13143
Link to comment
Share on other sites

2 hours ago, Terry13143 said:

Excuse me, how to export SA's Weapons to psk or fbx?

 

 

I export have a ERROR:

Package "/Game/SanAndreas/Weapons/MI_ak47.uasset": wrong name index -254
UnPackage::SerializeFName: pos=000009BC <- FPropertyTag<< <- CTypeInfo::SerializeUnrealProps <- CTypeInfo::ReadUnrealProperty: (UMaterialInstanceConstant.ScalarParameterValues, Type=9, Size=185, TagPos=956) <- CTypeInfo::SerializeUnrealProps <- UObject::Serialize <- LoadObject: MaterialInstanceConstant'MI_ak47.MI_ak47', pos=9BC, ver=522/0 (unversioned), game=ue4.26 <- UObject::EndLoad <- LoadWholePackage: /Game/SanAndreas/Weapons/MI_ak47.uasset <- CUmodelApp::ShowPackageUI <- Main: umodel_build=1576

It's because UEViewer has problems reading the materials from what I heard.
Get this version: https://www.mediafire.com/file/4cfj83j889xhmdu/UEViewer_GTA_Trilogy_DE_fix.rar/file
Run it from "umodel_gta_trilogy" instead and it will work to view and export every model.
Cheers

  • Like 3
Link to comment
Share on other sites

9 minutes ago, Uzzi47 said:

It's because UEViewer has problems reading the materials from what I heard.
Get this version: https://www.mediafire.com/file/4cfj83j889xhmdu/UEViewer_GTA_Trilogy_DE_fix.rar/file
Run it from "umodel_gta_trilogy" instead and it will work to view and export every model.
Cheers

No, some files can't. the cmd write: Objects 0/0 exported i mean...

Link to comment
Share on other sites

9 minutes ago, Thund3Rx said:

No, some files can't. the cmd write: Objects 0/0 exported i mean...

Seems to export anything just fine for me:
 

Spoiler


ikvPnFD.png
E4RndN8.png

 

Link to comment
Share on other sites

28 minutes ago, Uzzi47 said:

Seems to export anything just fine for me:
 

  Hide contents


ikvPnFD.png
E4RndN8.png

 

But for me some assets can't, anyway, i exported 3D Model of Kuruma GTAIII DE, as gltf now the problem is.. how to reimport as uasset :/ i can't i think.. like the weapons, you know?

Link to comment
Share on other sites

7 minutes ago, Uzzi47 said:

It seems to be a problem on your end? Same texture and it exported just fine:
4wPLmkT.png

When export i have the png file ok, but in preview i can't see nothing!

Link to comment
Share on other sites

Replacing Audio section has been added. I wish this forum had Table of Contents so you could easily jump to it

Link to comment
Share on other sites

2 hours ago, sixpence said:

Can you do a tutorial on main.scm editing for GTA 3?


I'll check it out and hopefully get it done by the end of the work week or during the weekends. Busy week regarding work so I'm trying to fit some through

Edited by Havi
Link to comment
Share on other sites

21 minutes ago, ChubbyB0b said:

Can I use same guide for III and VC? Sorry if it's dumb question.

 

Yes! The behavior is the same but the paths are a tiny bit different. Also, there are no dumb questions :D
 

Edited by Havi
Link to comment
Share on other sites

17 hours ago, Uzzi47 said:

It's because UEViewer has problems reading the materials from what I heard.
Get this version: https://www.mediafire.com/file/4cfj83j889xhmdu/UEViewer_GTA_Trilogy_DE_fix.rar/file
Run it from "umodel_gta_trilogy" instead and it will work to view and export every model.
Cheers

 

Thank you very much!

Link to comment
Share on other sites

I dont know why I always get empty object when export this material, work for other material/sounds,I want to change the enemy outline color but when I export the material its says exported 0/0 ,ignoring material3 'M_TargetHalo' due to empty parameters

DIxiAKA.png

 

Link to comment
Share on other sites

I forgot to update the UModel link. It's now fully compatible with Definitive Edition. So make sure you download that one so you don't get errors

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.