Larian Banner: Baldur's Gate Patch 9
Previous Thread
Next Thread
Print Thread
Joined: Jul 2014
I
iru Offline OP
apprentice
OP Offline
apprentice
I
Joined: Jul 2014
So, I've found an easy way to make the vendors regenerate their stock, you only have to leave the barter window not dialog but the barter window will take longer to load. 6-7 seconds for me when I tried it just now.

I made a copy of the Trade in the Story Editor and in my copy I changed line 114 and line 140.

PROC
GenTradeItems((CHARACTER)_Player,(CHARACTER)_Trader)
AND
DB_TraderGeneratedTreasureForLevel(_Trader,_OldLevel)
AND
CharacterGetLevel(_Player,_NewLevel)
AND
_NewLevel > _OldLevel
THEN
NOT DB_TraderGeneratedTreasureForLevel(_Trader,_OldLevel);
DB_TraderGeneratedTreasureForLevel(_Trader,_NewLevel);
DoGenTradeItems(_Player,_Trader);

to _NewLevel >= _OldLevel

And also

PROC
GenTradeItems((CHARACTER)_Player,(CHARACTER)_Trader)
AND
NOT _Trader.DoesNotWantToTrade()
AND
LastTradeItemGeneration(_Trader,(INTEGER)_THLastGen)
AND
_THLastGen != 0
AND // check if last generation was long enough ago:
Time(_,_,_TH)
AND
IntegerSubtract(_TH,_THLastGen,_Delta)
AND
_Delta >= 48
THEN
DoGenTradeItems(_Player,_Trader);

to _Delta >= 0

I haven't looked into how to properly build and publish a mod yet though. I took Rhidians purchasable skill books and added my changes there just to try it out. If someone wanna make a module and share it with the world I'd only be grateful.

EDIT: Successfully made a mod after all:
https://www.dropbox.com/s/9s9snwsogeasitx/ARTI.zip

Last edited by iru; 06/08/14 05:09 PM.
Joined: Jul 2014
I
iru Offline OP
apprentice
OP Offline
apprentice
I
Joined: Jul 2014
WARNING
Please note that this mod makes the game a whole lot easier. With crafting and ever regenerating vendors you got all the gold in the world. And thanks to the mod you can find stuff to spend it on as well.

If you want a challenge this isn't the mod for you.

Joined: Aug 2014
J
stranger
Offline
stranger
J
Joined: Aug 2014
I've been waiting for something like this amazing work! I would love to see this module combined with modified loot and faster walking speed should be fun!

Joined: Jul 2014
I
iru Offline OP
apprentice
OP Offline
apprentice
I
Joined: Jul 2014
I did try this mod out a bit yesterday evening and found out that sometimes the trade will not work properly, resulting in you giving the trader your part of the trade put not receiving what you traded for. I don't know why it happens or how to counter it as of now. It happened rarely.

Joined: Jul 2014
stranger
Offline
stranger
Joined: Jul 2014
I tried your mod with a new game and sold that starter hp potion to the drunken guards at the bridge. I kept reloading trade screen and that potion began duplicating till it hit the stack limit 50. It looks like this bug happens with every stackable item sold to trader's inventory. Odd.

Last edited by Magus; 10/08/14 02:22 PM.
Joined: Jul 2014
I
iru Offline OP
apprentice
OP Offline
apprentice
I
Joined: Jul 2014
That's fascinating. My mod keeps all of the code from Trade for clearing the vendors inventories Before generating so I have no idea why it does that. I'm currently playing without the mod and spend my time trying to finish the game so I won't do any updates to this for the coming week or so in the least. Anyone who feels like making changes to it are welcome to do so.

Joined: Aug 2014
M
stranger
Offline
stranger
M
Joined: Aug 2014
Hi I can't get this mod to work. I placed the folders into the mod and public folders in the \Divinity - Original Sin\Data folder and started a new game then copied the meta.lsb from the save folder across and 2 of the mods(fourplay and purchasable skillbooks) are working but this one is not please help.

Last edited by molerat92; 21/08/14 08:15 AM.
Joined: Aug 2014
W
stranger
Offline
stranger
W
Joined: Aug 2014
I have the same problem.

Last edited by weixxx; 22/08/14 05:30 AM.
Joined: Feb 2010
apprentice
Offline
apprentice
Joined: Feb 2010
Love this mod, makes it a ton of fun, it's almost as fun as loot-whore-reloading, if not more!

For those who cannot get working, all I did was drag the mod files to the Divinity main folder.


ok
Joined: Feb 2010
apprentice
Offline
apprentice
Joined: Feb 2010
Hi, can you please update this mod so traders take less time to load and possibly make the mod crash the game a lot LESS? Thanks, Manwich!


ok
Joined: Sep 2014
S
stranger
Offline
stranger
S
Joined: Sep 2014
Downloaded this and worked great for a day or two...now it crashes to desktop everytime I try and trade with anyone....no idea what its related to but it seems like once I trade one item to a vendor it won't ever let me trade with them again without a crash

Joined: Sep 2014
M
stranger
Offline
stranger
M
Joined: Sep 2014
Here's my attempt at doing the same thing. I deleted the lines which are marked in the first post, and also deleted the line with the "AND" above. Seems to work fine in my game so far.

Download


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