Editing Modding:Unpacking and converting files

Jump to navigation Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 4: Line 4:
|image=Modding_resources.webp
|image=Modding_resources.webp
}}{{NavModding}}
}}{{NavModding}}
== Necessary Tools ==
== Tools ==
* LSLIB by Norbyte
* LSLIB by Norbyte
** ''Note: This step is primarily for acquiring the '''granny2.dll''' from a previous version of LSLIB. The latest release version may already have this file present, in which case you can just install the latest release.''
** ''Note: This step is primarily for acquiring the '''granny2.dll''' from a previous version of LSLIB. The latest release version may already have this file present, in which case you can just install the latest release.''
** Install [https://github.com/Norbyte/lslib/releases/tag/v1.15.13 1.15.13] first, then install whichever is the [https://github.com/Norbyte/lslib/releases LATEST] release.
** Install [https://github.com/Norbyte/lslib/releases/tag/v1.15.13 1.15.13] first, then install whichever is the [https://github.com/Norbyte/lslib/releases LATEST] release
* Modders Multitool by ShinyHobo
* Modders Multitool by ShinyHobo
** Install [https://github.com/ShinyHobo/BG3-Modders-Multitool/releases LATEST] release.
** Install [https://github.com/ShinyHobo/BG3-Modders-Multitool/releases LATEST] release  
** Make sure the folder you use for Multitool is separate from the LSLIB folder.
** make sure the folder you use for Multitool is separate from LSLIB


'''The Tool has an official wiki that now breaks down unpacking and other parts of the tool: [https://github.com/ShinyHobo/BG3-Modders-Multitool/wiki BG3 Modders Multitool Wiki]'''  
'''The Tool has an official wiki that now breaks down unpacking and other parts of the tool: [https://github.com/ShinyHobo/BG3-Modders-Multitool/wiki BG3 Modders Multitool Wiki]'''  
Line 45: Line 45:
==== Index Search Unpacking ====
==== Index Search Unpacking ====


If you know the common name used on assets you want to unpack, you can use index search (once it has finished indexing) to unpack specific assets. For example, let’s say we want to create head mods, and thus we need the head models unpacked from the assets.
If you know the common name used on assets you want to unpack, you can use index search (once it has finished indexing) to unpack specific assets.


Here we search using the filter to only show GR2 Assets, as shown below:
For example:
 
Here we search for all GR2 assets using the filter to only show GR2 Assets, as shown below:


[[File:Multitool Filter.webp|600px]]
[[File:Multitool Filter.webp|600px]]
Line 54: Line 56:


[[File:Multitool Extract Selected.webp|600px]]
[[File:Multitool Extract Selected.webp|600px]]
 
* Now we Select All and Extract Selected.
Now we Select All and Extract Selected.
* Note that this will extract more than just the races we can play as, but will use considerably less space than extracting the whole of the models.pak, if all we want to do is create head mods. You can also use this to go through the list to select specific assets you want to extract. This is not exclusive to GR2's, just pick the assets you want to filter and then you can extract.
 
** Be aware of your hard drive space where you placed the multitool, as it will create a {{InfoBlob|UnpackedData}} folder where it extracts these files to.
Note that this will extract more than just the races we can play as, but will use considerably less space than extracting the whole of the models.pak, if all we want to do is create head mods. You can also use this to go through the list to select specific assets you want to extract. This is not exclusive to GR2's, just pick the assets you want to filter and then you can extract.
* Be aware of your hard drive space where you placed the multitool, as it will create an {{InfoBlob|UnpackedData}} folder where it extracts these files to.


=== Manually Unpacking ===
=== Manually Unpacking ===


If you still want to unpack game paks manually rather than unpacking individual files via the new method you can use {{InfoBlob|'''Utilities''' > '''Game File Operations''' > '''Unpack Game Files'''.}}  
If you still want to unpack game paks manually rather than unpacking individual files via the new method you can use {{InfoBlob|'''Utilities''' > '''Game File Operations''' > '''Unpack Game Files'''.}}  
* Generally this is only advised if you have more than enough hard drive space to dedicate to unpacked files, as they can take up quite a bit of space.
* Generally this is only advised if you have more than enough hard drive space to dedicate to unpacked files. As they can take up quite a bit of space.
* A menu will appear similar to below:
* A menu will appear similar to below  
** (As of Patch 4 when a new patch is released the hotfix packs get implemented into the main paks)
** as of Patch 4 when a new patch is released the hotfix packs get implemented into the main paks


[[File:Unpack paks.webp]]
[[File:Unpack paks.webp]]


Common files:
Common files:
* English.pak —  this is where the localization files are located, aka all text strings that are displayed in the game.
* English.pak —  this is where the localization files are located. All text strings that are displayed in the game.
* Gustav.pak — text files in .lsf format. Level data, dialog files, equipment stats, spells.
* Gustav.pak — text files in .lsf format. Level data, dialog files, equipment stats, spells.
* Materials.pak — materials (shaders). It is useless in itself, but you can see what materials are in the game to assign them to your model.  
* Materials.pak — materials (shaders). It is useless in itself, but you can see what materials are in the game to assign them to your model.  
* Models.pak — models in .gr2 format. Heads, hair, armour, architecture, etc.
* Models.pak — models in .gr2 format. Heads, hair, armour, architecture, etc.
* Textures.pak — textures in .dds format. There are not a lot of them here, since most textures are held in VirtualTextures. These are mostly color ID masks that divide the armour into zones for coloring. But there are textures for faces, hair, tattoos. Some environment textures.
* Textures.pak — textures in .dds format. There are not a lot of them here, mostly they are color ID masks that divide the armour into zones for coloring. But there are textures for faces, hair, tattoos. Some environment textures.
* Shared.pak — text files in .lsf format. Overlaps with Gustav in some respects. Model data with assigned materials, skin, hair, eye colors, etc. for the character editor, also equipment stats, spells.
* Shared.pak — text files in .lsf format. Overlaps with Gustav in some respects. Model data with assigned materials, skin, hair, eye colors, etc. for the character editor, also equipment stats, spells.
* VirtualTextures.pak — Most of the textures of the game are here, packed in virtual textures to improve performance.
* VirtualTextures.pak — most of the textures of the game, are packed in virtual textures to improve performance.  
* Voice.pak — voice lines.
* Voice.pak — voice lines.


Line 124: Line 124:


=== .loca → .xml ===
=== .loca → .xml ===
Localization text from '''English.pak''' (the same for other languages).
Localization text from '''English.pak''' (presumably the same for other languages).
The <code>.loca</code> files can be converted with Export Tool. Select the <code>.loca</code> file and specify the name of a <code>.xml</code> file to use as output.
The <code>.loca</code> files can be converted with Export Tool. Select the <code>.loca</code> file and specify the name of a <code>.xml</code> file to use as output.
[[Category:Modding guides]]
[[Category:Modding guides]]
Please note that all contributions to Baldur's Gate 3 Wiki are considered to be released under the CC BY-NC-SA license, except when noted otherwise (see BG3Wiki:Copyrights for details). If you do not want your writing to be edited and redistributed at will, do not submit it here. Per our Content Rules, you are promising that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To edit this page, please answer the question that appears below (more info):

Cancel Editing help (opens in new window)