uniqueitems patchstring and savegame corruption?

Post here about all aspects of D2 mod making whether it's information, problems or whatever. Please specify whether your post is relating to Classic D2 or the Expansion.

Moderator: Nizari

Post Reply
User avatar
DexterNL
Posts: 1
Joined: Sun Oct 02, 2022 6:56 pm
Netherlands

uniqueitems patchstring and savegame corruption?

Post by DexterNL » Sun Oct 02, 2022 7:35 pm

Hi, Im new to modding of Diablo 2 Lod.

I've added items to uniqueitems.txt and added translations to the patchstring .tbl.
And I have been testing with this, and how it effects the character save file.

(1) If you have a save with one of the new uniques.
(2) You change the index in uniqueitems or the key in patchstring of that item.
(3) Restart game and load character the itemname will be "An evil force"
(4) Change index and/or key back.
(5) The unique will have its propper name again.

(6) Now if you load this savefile in a non modded game.
(7) The item will only have the base item name in unique color, and it will NOT show the "An evil force" text.

(8) Start the modded game again with the save file that was loaded in the non modded game.
(9) The unique will look like how it was in the non modded game now.

I think the item in the savegame points to a rownumber or something in the uniqueitems.
And when the uniqueitems rowcount is lower it deletes it from the item on the character and saves it on exit?

My question:
Is there a way so unique items do not loose their pointer to a uniqueitem/translation when someone loads up a savegame from a mod into a non-modded verion of the game?

Or if anyone has more knowledge on this topic please let me know. I like to learn more.
I did not come far with google/forum searches on this. :/

Post Reply

Return to “General Mod Making”