Larian Banner: Baldur's Gate Patch 9
Previous Thread
Next Thread
Print Thread
Joined: Feb 2015
M
stranger
OP Offline
stranger
M
Joined: Feb 2015
I'm directly modifying TreasureTable.txt in my...

...\steamapps\common\Divinity - Original Sin\Data\Public\Main\Stats\Generated

folder. If I go to the entry for the main chest in Boreas' treasure room and change it to say THIS:

new treasuretable "_Hiberheim"
new treasuretable "HIB_TreasureRoom_ScriptureChest"
new subtable "-1"
object category "I_CON_Food_Carrot",100,100,0,0,0,0,0,0

Instead of ONE carrot I get what looks like the default loot. A guaranteed legendary, a skillbook, and an herb plus a random chance of some other goodies.

No matter how many times I reload and retry.

Does it matter that I've saved the game WITHOUT having made that mod to the file, and now I've made the mod and reloaded? In other words does it somehow embed the contents of the modded files in the savedgame? I can't imagine it would do so....

Or is it just finding somewhere else to get the contents of this chest which is overriding the TreasureTable.txt entry?

Any advice much appreciated! Thank you in advance.

Joined: Mar 2015
Location: Swedonia
Banned
Offline
Banned
Joined: Mar 2015
Location: Swedonia
Yes! Welcome to Divinity: Original Sin modding, a game where you can't actually activate mods after starting a game and saving it!

Even if you activate your mod in the main menu of your profile, when you load, it'll default to whatever mods is loaded for that specific save. Yes, there's a reason modding isn't a big thing with D:OS.

There's a workaround, though.

First, create a new game with the mods you want to use in your save. Save.

Use Lstools to extract both saves.

Delete the old meta.lsx from the save you want to modify, and paste the new meta.lsx from the recently created save.

You don't need to recompile the save. The game can actually load extracted saves just fine, as long as they're in their own folder.

So why does the meta.lsx sit there and screw with people? Why are saves even compiled and locked? No-one knows. Why does mods work like this? No-one knows. Welcome! *bops head with inflatable hammer*

Joined: Feb 2015
M
stranger
OP Offline
stranger
M
Joined: Feb 2015
Unfortunately this didn't work for me.

I started a new game, was on the beach in Cyseal, saved the game. Extracted.

Extracted original save that I want to be able to play with the updated TreasureTable.txt.

Replaced original save meta.lsb with new save meta.lsb.

Game loaded to a blackscreen, then crashed back to Main Menu with an error 300 or some such.

I've tried thinking this through. WHAT tells the game that a save shouldn't use the files in Data\Public, and to instead use the files in the game's .pak files?

The time stamps?

I tried altering the time stamp on the original save's meta.lsb to no avail. It only made the save unavailable (red).

Admittedly I haven't exhausted all avenues of this theory by checking all the files in the save, and admittedly I'm not a little frustrated at this point. Heh. But like you said, welcome to the world of modding Divinity: OS.

Thanks for the help!

Joined: Mar 2015
Location: Swedonia
Banned
Offline
Banned
Joined: Mar 2015
Location: Swedonia
It should just be the meta.lsb that says whether or not the save should load the specific mods or not.

If replacing the save's meta.lsb with one that has the appropriate mods doesn't work, I'm not sure what else to do. :|

Make sure that you've got all the extracted content dumped straight in the save folder and that the save you extracted isn't in that folder anymore. Only thing I can think of.

Joined: Mar 2003
Location: Canada
Support
Offline
Support
Joined: Mar 2003
Location: Canada

Were your characters in Cyseal in the save where you replaced the meta.lsb file?

Error 300 is a Template not Found error loading the characters.

Joined: Feb 2015
M
stranger
OP Offline
stranger
M
Joined: Feb 2015
That explains it, Raze. They were in ThePrisonStoneWhatsit level.

There must be something about TreasureTable.txt that specifically prevents it from working. Consider...

I made direct changes to the game's weapon data file (located in ...\Data\Public\Main\Stats\Generated\Data\Weapon.txt) and me and my 2 friends all using the same mod played the game. We saved.

I altered something in Weapon.txt and we all got the same copy of the changed file. We loaded from the save and resumed playing and the changes were effective in game. A simple change like altering the AP cost on crossbows for example.

However when I do the same thing but with TreasureTable.txt, it doesn't work. Consider...

I loaded an old save where we had just killed Boreas. I move to the treasure room and position myself right in front of the main treasure chest. I save the game.

I edit the contents of the Hiberia treasure room chest to produce gobs of gold. Like, 50 Trader Golds. I reload the save, open the chest. Nothing but default loot.

/tear-out-hair

Lol?

Thanks Raze. I think I can edit the location. I'll try that.

Joined: Mar 2003
Location: Canada
Support
Offline
Support
Joined: Mar 2003
Location: Canada

Boreas' chest is probably not using the default Hiberheim chest contents.

For the meta file, you might also be able to edit the coordinates. As long as the characters end up somewhere within the map the game shouldn't crash, and you can use the teleporter pyramids to get everyone together if necessary, then Rift Travel to get elsewhere if you are out of the map bounds and can not walk around.
It would likely be easier to just load the save, teleport to Cyseal, resave, and then swap the new game save meta.lsb file there.


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