The Black Wyrm Lair Forums
The Black Wyrm's Lair Terms of Use Help Search Members Calendar

Welcome Guest ( Log In | Register )

> Seller outside Friendly Amn
melkor_morgoth75
post Sep 27 2007, 07:10 AM
Post #1





Contributor
Posts: 118
Joined: 7-February 06




Hi Baronius,

dunnow if it is caused by some other mods, but the guy who sells u some stuff outside Friendly Amn has ALL items in his store with 0 gold costs, no images, no description and no chance to see any items... i don't remember this bug in a previously game of mine (maybe the new version has this bug?).

The only component i've installed that COULD be the cause is: Storeprices Minimod (http://forums.spellholdstudios.net/index.php?showtopic=22790).

This should not cause issue (all other stores,apart the sell/buy percentage of course, work as espected) ... but i think it's worth to mention, just let me know if i have to open a thread at spellhold as well,

thanks,

mm75

This post has been edited by melkor_morgoth75: Sep 27 2007, 07:10 AM
Go to the top of the page
 
Quote Post
 
Start new topic
Replies
Baronius
post Sep 30 2007, 09:31 PM
Post #2


Master of energies
Group Icon

Council Member
Posts: 3340
Joined: 9-July 04
From: Magyarország




BG1 and BG2 use the same STO resource format, but Baldur's Gate uses a different order of sections.

G3 BG2 Tweak Pack makes a common mistake (no section order check) in its WeiDU code, in Component 3200. This component is called "Sellable Staffs, Clubs, and Slings (Icelus)".

Since Grey Clan Episode One uses a BG template for the store of Jeremias, the aforementioned component of G3 Tweak Pack corrupts the file. It's possible that it corrupts other BG1-based files as well.

If you want to keep using this component of G3 Tweak Pack, fix the bug by adding the crucial code lines to BG2_Tweaks\Setup-BG2_Tweaks.tp2. Search for text "if arrows but no bolts" (without quotes), and insert the red code lines below, then reinstall the component. (Of course, you can report the bug too, I'm not sure if the same occurs in other components of the G3 Tweak Pack as well.)

PATCH_IF ("%bolts%" = 1) BEGIN // if arrows but no bolts
INSERT_BYTES "%buy_off%" 0x04
WRITE_LONG "%buy_off%" 31
WRITE_LONG 0x30 ("%buy_num%" + 1)
READ_LONG 0x34 "saleoffset"
READ_LONG 0x4C "drinksoffset"
READ_LONG 0x70 "curesoffset"
PATCH_IF ("%saleoffset%" > "%buy_off%") BEGIN WRITE_LONG 0x34 ("%saleoffset%" + 4) END
PATCH_IF ("%drinksoffset%" > "%buy_off%") BEGIN WRITE_LONG 0x4C ("%drinksoffset%" + 4) END
PATCH_IF ("%curesoffset%" > "%buy_off%") BEGIN WRITE_LONG 0x70 ("%curesoffset%" + 4) END

END
BUT_ONLY_IF_IT_CHANGES


--------------------
Mental harmony dispels the darkness.
Go to the top of the page
 
Quote Post

Posts in this topic


Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:



- Lo-Fi Version Time is now: 8th November 2026 - 08:45 AM