Larian Banner: Baldur's Gate Patch 9
Previous Thread
Next Thread
Print Thread
#551331 08/09/14 05:04 PM
Joined: Sep 2014
G
glawen Offline OP
stranger
OP Offline
stranger
G
Joined: Sep 2014
Hi,

I'm trying to modify the treasure tables a bit (to give lucky charm a greater chance to proc.), so i unpacked Main.pak with lstools, modified treasuretable.txt and tried to repack main.pack. Lstools gave me a "bad allocation" error. Searching the forums, i have found a thread that seems to address the problem ( here ). It seems lstools cannot repack when there are multiple folders, but i don't understand the workaround very well. It says i should make a pak file with my modified treasuretable.txt only, but how should i name it (if it's important), and where exactly should i put it (where is this "Mods" folder, and if doesn't exist, where should i create it).

Is there any other way to do what i want to do ?

TIA

Joined: Apr 2013
N
addict
Offline
addict
N
Joined: Apr 2013
Quote

I'm trying to modify the treasure tables a bit (to give lucky charm a greater chance to proc.), so i unpacked Main.pak with lstools, modified treasuretable.txt and tried to repack main.pack.


You don't really need to create a .pak from it (unless you're trying to distribute the mod), leaving the raw file at DivOS\Data\Public\Main\Stats\Generated\TreasureTable.txt should work as well.

Quote
Lstools gave me a "bad allocation" error.

This is a known issue when you're creating large packages. While fixing it is not too hard I won't do it for multiple reasons:
  • Lstools is being deprecated in favor of an in-editor plugin that is currently WIP (though I have less time to work on it than I'd like to)
  • Creating packages that are over 1GB (for most people this involves repacking Main.pak/Textures.pak) is a sure sign that you're doing something Very Wrong. Doing this is never neccessary as you can pack your modifications into separate files without disturbing the original game files that are overridden anyway by paks in Mods\.


Quote
Is there any other way to do what i want to do ?

Either don't create a .pak from the files at all, or create a separate .pak (like TreasureMod.pak or something different) and only add files that you've actually changed (in this case the single TreasureTable.txt file)

Joined: Sep 2014
G
glawen Offline OP
stranger
OP Offline
stranger
G
Joined: Sep 2014
Thank you Norbyte for your quick and useful answer, and also thanks a lot for developing great tools. I'd like to ask 2 other questions if i may :

1: if i follow your instructions and just drop the modified TreasureTable.txt in the right folder, will it work on existing saves (I suppose i will have to create the required subfolders, as there only is an "Asset" subfolder in DivOS\Data\Public\Main ATM).
2: Do i have to activate anything under the "Mods" item in the game main menu ?

And kudos for your next editor plugin.

Joined: Sep 2014
G
glawen Offline OP
stranger
OP Offline
stranger
G
Joined: Sep 2014
Ok, i tested it, no need to answer that (should have done this before asking).
It works on saved games and doesn't need to be activated.

Thanks again


Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.5