Aller au contenu

Photo

Adding items directly to your backpack (save editing).


  • Veuillez vous connecter pour répondre
6 réponses à ce sujet

#1
Hachimando

Hachimando
  • Members
  • 1 messages
So I started off by thinking "hey I picked up almost two sets of Dragon Blood armor in game, but I never got a second breastplate".  So I went about figuring out how to add another breastplate to my game.  I started by trying to follow scripting and the wiki's and stuff to create items and add them to my character and after playing with the toolset I found it much easier to just add the items directly to my saved game.  No need for writing scripts to validate unique items and hand them to your character on loading and all that. 

I guess before I go too far...  Any file you edit will probably break the game if you do something wrong so always, always back your stuff up and don't delete your backups even if you think it's working right.

That said, this is what I did to make it work:
1) Open your saved game in toolset.  In Windows7 my file was at Libraries\\Documents\\Bio Ware\\Dragon Age\\Characters\\<my character>\\saves\\Slot_1\\ <savename>.das

2)  Read the value at: SAVEGAME_WORLDDATABASE,  1,   SAVEGAME_WORLDDB_LASTID.  Write the number down because this is the last OBJECT_ID created in the game currently.  Edit SAVEGAME_WORLDDB_LASTID to a number at least higher than the number of objects you want to add to your save game.  (e.g. if it was 5682   if you make it 5700 you can add 18 items)
3) Go up to SAVEGAME_PARTYLIST,  SAVEGAME_BACKPACK.  This is your current backpack inventory, you can open the items one at a time and view what's what. Right click on a number and copy. Right click on SAVEGAME_BACKPACK and pick paste; it'll paste in as NEWFIELD1.  Rename that to whatever the next number is for your backpack items (if you type 16 it'll call it LABEL16, don't worry it'll fix itself later when you equip the item).
4) Simply edit the fields on your copied item to become whatever item you wanted.  e.g. change the TEMPLATERESREF string to your item TAG such as gen_im_wep_mel_lsw_lsw for a longsword.   Make sure your ITEM_ABILITYID matches what your item is supposed to do (easiest to again just copy a similar item).  Set the SAVEGAME_ITEM_MATERIALTYPE to what quality you want (look at a same type item to get an idea, for instance longswords are 40-46) .  Don't forget to change the OBJECT_ID to the next number from step 1 or 2.  So in this case we'd type 5683. If the OBJECT_ID isn't unique across every item you've seen so far in it may disappear on you at some point.
5) You can then add item properties to your new item (up to 5).  Just remember if you want multiple items you need to make a new backpack number for each item, ITEM_STACKSIZE only works for consumables (potions, grenades, reagents, etc.).  Easiest way for me to do properties is to view an item that has the property I want, write it down and copy it in.
In shorter terms, have the Dragons Blood Breastplate in your backpack when you save.  Open the save game and find the breastplate in your backpack.  Copy -> Paste, update the backpack id number and OBJECT_ID (on both the item, and increase the "1, worlddb_lastid) and now you have a second breastplate in your backpack; or a new dragonbone sword, or whatever you can dream up.

Anyways, took me an hour or so to figure that out, hope it saves someone else some time since
neither of the two provided item creation scripts in the debug container seem to work (CO or CREATEITEM).  Runscript createitem <tag> or runscript co <tag> did nothing for me; unless someone else got them to work?

#2
Shumin14

Shumin14
  • Members
  • 1 messages
Thx, this was a great help.

I accidentily sold an item and no merchant could sell it back to me

(it was a plot gift in this case).

Now to see if it works

#3
Pd69LJ

Pd69LJ
  • Members
  • 3 messages
Hachimando, this is really help, thank u very much.
but i just wondering if i dont edit SAVEGAME_WORLDDB_LASTID, and just copy a item from a save file then paste to another, should it works also? of cause need to make sure every item has a unique OBJECT_ID, and a serial POSITION number.
i did copied some items from save-file A to B, and it just works for me, but just in case, I always sold them once then buy them back in game.

Modifié par Pd69LJ, 25 novembre 2009 - 07:09 .


#4
ThyArtPerverted

ThyArtPerverted
  • Members
  • 1 messages
where does one obtain this "toolbox" thy speaketh of, without dlling it directly from bioware, since this hypothetical person i might be speaking of posesses a not so legal copy of the game.

#5
DotMatrix

DotMatrix
  • Members
  • 2 messages
Worked like a charm! I had two sets of Blood Dragon gear, except for the armor plate, too. Now I have a couple of complete sets thanks to your post! =)

#6
brouk pytlik

brouk pytlik
  • Members
  • 1 messages
Can anybody write parameters for Blood Dragon chest? I have the "disappearing" problem and disable/enable DLC did return helm, etc, but not chest :(

EDIT:
I found it - bought BD boots, look at their parameters and accordingly modify some "civilian cloth" 
TEMPLATERESREF = prm000im_dragon_blood_plate
other properties was leaved unmodified. I have not enought strenght yet, but it appears in inventory and seems to be OK.

Modifié par brouk pytlik, 30 janvier 2011 - 02:18 .


#7
Tripialos

Tripialos
  • Members
  • 3 messages
You are a God! Just restored an item iv lost!!