Hey aSwedishMagyar, do you think it's possible to remove an inventory item using your script?
I got a nasty bug early on in game where a key didn't leave my inventory when I opened a chest, and now I'm unable to loot any key in-game.
You can try doing a "Find out what addresses this instruction accesses" when opening inventory. Then check which address it is by modifying the quantity and when you find it try setting it to zero. When you go through a load screen it should remove itself.
How to use this cheat table?
Install Cheat Engine
Double-click the .CT file in order to open it.
Click the PC icon in Cheat Engine in order to select the game process.
Keep the list.
Activate the trainer options by checking boxes or setting values from 0 to 1
Thats all what I have in Inventory, cross checked with your list.
Nice, I added them and changed the script to use three text files. In the future just paste them in this format:
hash,name,item type - (item type is which section it is in like collectable, trade good, etc)
I recommend not changing the ones you know don't have a Quantity. I'll post this when you come running back yelling "I bricked my save-game":
BR,
Sun
I did that to try and find the hash for the effed up key in my inventory(see above if needed) but I created a new save in order to do that 'cause I was kinda aware that could break the save...
Turns out I couldn't figure out a way to find hashes for collectibles since they are unique for the most part.
^ Each object in the game has a fixed hash. There's no point adding them to a Resources Editor since they don't have a Quantity value (you can clearly see no number assigned to their icon). Furthermore, what you want is to give yourself stuff, which is completely different than what the script here and the one in my table do: they READ existing stuff. You can't give yourself amounts of something, if you don't own that something in your Inventory. The amounts are associated to an object that has to exist (allocated, initialized, in your inventory). If it's not there, you can bitch however much you want.
^ Each object in the game has a fixed hash. There's no point adding them to a Resources Editor since they don't have a Quantity value (you can clearly see no number assigned to their icon). Furthermore, what you want is to give yourself stuff, which is completely different than what the script here and the one in my table do: they READ existing stuff. You can't give yourself amounts of something, if you don't own that something in your Inventory. The amounts are associated to an object that has to exist (allocated, initialized, in your inventory). If it's not there, you can bitch however much you want.
I actually wanted something removed from my inventory. It is there, it has a hash. All I (theoretically) have to do is find the hash and zero the quantity and force a reload in order for it to go away from the inventory. This should work according to aSwedishMagyar.
There's a [known] bug where sometimes for no known reason one or more keys won't leave the inventory when you open it's chest, and after that, you can't receive keys from quests nor loot other keys in the game. In my case it happened with Ornir's Key, and since then I haven't really noticed I wasn't getting any keys until too far in the game.
But I'll probably start over.
By the way, Ubisoft suggests to load a previous save and open the chest again until the key is gone... Sigh.
^ I noticed something similar with Wealth carried by AIs. You kill them, loot it, but golden icon stays on the map, when you open it. Teleport someplace or exit to main menu, return, you have to kill him again. Then it completes.. No idea what the devs are smoking..