AnthonyZJiang / D-OS-Save-Editor

A save editor for Divinity Original Sin: Enhanced Edition
Other
51 stars 15 forks source link

Feature Request: add inventory items #16

Open Zitchas opened 5 years ago

Zitchas commented 5 years ago

Is there any way to actually add an item to the inventory instead of simply modifying existing items?

If not, such an addition would be much appreciated.

golebiewsky commented 5 years ago

I would be very glad if you could add option to move item from one savegame to another. I encountered a bug, that used spell (needed for the endgame) in crafting recipie. I have this item on 10 hours older save, but not on the new one...

AnthonyZJiang commented 5 years ago

This is in the planned list, but I have not got time to do anything on this project. Sorry.

Zitchas commented 5 years ago

That's unfortunate, but thanks for letting us know. As far as that goes, thanks for making as much as you have. This is quite a useful tool.

ghost commented 10 months ago

It would be great to have such a feature.

DracarisFire commented 5 months ago

Hi Anthony,

Apologies for the necro. I agree I would love that feature but understand if you don't have the time. Any chance you could point me in the right direction to add my own items using LSLib etc? I can open and view everything but just not sure where to add the new item in so it goes to the inventory of my main character. Love the editor great work!

AnthonyZJiang commented 5 months ago

Hi Anthony,

Apologies for the necro. I agree I would love that feature but understand if you don't have the time. Any chance you could point me in the right direction to add my own items using LSLib etc? I can open and view everything but just not sure where to add the new item in so it goes to the inventory of my main character. Love the editor great work!

It is difficult to look at the codes I wrote six years ago. They're quite badly written…

I haven’t touched c# since this project, so I can’t be of much help. But below maybe a good start point. Perhaps you can start with testing item duplication before the inventory gets written back to the save game.

https://github.com/AnthonyZJiang/D-OS-Save-Editor/blob/c2dfb01fe9227092c52d9a0177998d767736c849/D-OS%20Save%20Editor/savegame/LsxParser.cs#L403