Skip to content
This repository has been archived by the owner on Sep 20, 2020. It is now read-only.

Resaving properties list breaks index of same-named properties. #1

Open
Tajfun403 opened this issue May 10, 2020 · 0 comments
Open

Comments

@Tajfun403
Copy link

Some properties inside an array have exactly same name, and are distinguished by some that looks like index. Each next property have one bigger index number.
Getting and resaving this property array is clearing indexes, therefore making these properties invalid.
Comparison after, and before resaving:
obraz

Screenshot uses modded file, but same is applicable to vanilla packages.
Example of issue from vanilla game is resaving export 157 from BioA_MPDish_300.pcc.
My code (changed to fit vanilla edit; relevant pcc copy pasted to bin/debug):

ME3ExplorerMinified.DLL.Startup();
var MainFile = MEPackageHandler.OpenMEPackage("BioA_MPDish_300.pcc");
var MainExport = MainFile.getUExport(157);
var PropertiesList = MainExport.GetProperties();
MainExport.WriteProperties(PropertiesList);
MainFile.save("BioA_MPDish_300_edited.pcc");`
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant