In the procedure above, when describing a value to be a line or two below another value, it is assuming the hex editor is using the standard 16 column format. After trying out XVI32's wildcard search feature, I noticed it defaults to 17 columns. You can change this in the options, or correct for that by moving left one byte for each line you move down.
BF Merchant TeleportingA couple people have run into problems with the BF traders shifting positions. Since NPC locations are stored in the data.000 file, the above procedure can be used on NPCs where you can figure out what name the game is using for that character. Unlike in Divine Divinity, the displayed name and the internal name are not the same (probably to make translations easier). In DD, NPCs who moved around to different locations during the game had their coordinate data stored in a different format. The same may be true in BD, so likely not all NPCs can be teleported this way, even if you determine their internal name.
If you search the data.000 file for the first instance of 'BF_Trader_1', you will find a list of names, each followed by a number. Technically, the correct method to find the coordinates of an NPC would be to search for the right instance of their internal name, then search backwards in the file for the first 'Start Agent Save' term (about 4 'pages' above). However, you can skip a step by searching for the internal name of the previous NPC in the list (at least for the BF merchants).
To find a BF merchant's coordinates, search for the internal name of the previous NPC (see below). There will be 3 or 4 instances of this. The correct one has the name listed once with a number after it, then again without the number. A bit below that will be the term 'Start Agent Save', where the coordinates can be found as described above. The second location of the coordinates is not shown in the screenshot (below 2 lines of
FF), but does also need to be edited.
![[Linked Image]](http://members.shaw.ca/riftrunner/xybf.png)
BF Merchant | Internal Name to search for | |
Brian | BF_Trader_1 | |
Annabelle | BF_Trader_2 | |
Elkar | BF_Trader_3 | |
Kieth | BF_Trader_4 | |
Olaf | Citadel_Samuel_Death_Knight4 Lich_Cave_Inscription Academy_Entrance_Door Endfight_Damian | Act 1 Act 2 Act 3 Act 4 |