Larian Banner: Baldur's Gate Patch 9
Previous Thread
Next Thread
Print Thread
#542888 13/08/14 08:25 AM
Joined: Aug 2014
S
stranger
OP Offline
stranger
S
Joined: Aug 2014
is renaming backpacks possible in game?

i tried to open save files with notepad, it just gives me kinda mess as result..

So how i do it if its possible?

i want to give names to backpacks so i can instantly see which on belongs to who, or which kind of stuff is in any backpack


Joined: Aug 2014
S
stranger
OP Offline
stranger
S
Joined: Aug 2014
bumb. not a single comment?


Joined: Apr 2013
N
addict
Offline
addict
N
Joined: Apr 2013
Items cannot be renamed in savegames AFAIK as their names are always taken from their root template, whose name is fixed.

Joined: Oct 2005
T
journeyman
Offline
journeyman
T
Joined: Oct 2005
Originally Posted by Norbyte
Items cannot be renamed in savegames AFAIK as their names are always taken from their root template, whose name is fixed.

That's right. But it is possible if you somehow familiar with the lstools.

I was able to do it by manipulating files in the Main.pak. Here is what I have done:
1. Create a new Backpack Template in Public\Main\RootTemplates\Loot.lsb
- search for the Backpack in the list (DisplayName is Backpack)
- clone the subtree of the whole "GameObjects"
- the clone appears on the bottom
- edit the MapKey of the clone (mine is 6c70c298-aa29-418f-a659-f8e0b5f5fa61) and the DisplayName

We now should have a new backpack with a new name but the same behaviour and stats as every other backpack.

2. Add the following lines to Public\Main\Stats\Generated\Data\Object.txt

new entry "CONT_Backpack_B"
type "Object"
using "_Generics"
data "Act part" "6"
data "Value" "5"
data "Weight" "1000"
data "InventoryTab" "Misc"

3. Link it with the .lsb in Public\Main\Stats\Generated\Links\Object.txt

object itemstat "CONT_Backpack_B","6c70c298-aa29-418f-a659-f8e0b5f5fa61","",0,0,"Junk",1,1,1,0,6,20

4. Add it to the players inventory.
The last step now is to give this backpack to a player. This can be done in the savegame file.
- search for your player ID under Characters -> CharacterFactory -> Party -> Players -> Character -> Handle
- note it down
- now comes the best part... search for the backpack item under Items -> ItemFactory -> Items
- every Item has a "owner" property, search for your ID and then look under "Stats" for "CONT_Backpack_A_SourceHunter"
- if you found the correct item, replace the "CurrentTemplate" and "OriginalTemplate" with the MapKey you created above

You should now have two backpacks with different names in your characters inventory.

Maybe someone out there could make it less difficult by writing an backpack editor using this technique.


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